aizuchi 0.4.0 → 0.7.2
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/CHANGELOG.md +139 -0
- package/README.ja.md +213 -0
- package/README.md +232 -170
- package/dist/bin/aizuchi.js +48 -11
- package/dist/server/app.js +139 -11
- package/dist/server/lib/docs.js +209 -2
- package/dist/server/lib/files.js +18 -4
- package/dist/server/lib/fs-safe.js +81 -21
- package/dist/server/lib/proposal.js +35 -4
- package/dist/server/lib/related-docs-validate.js +37 -0
- package/dist/server/lib/task-ops.js +31 -7
- package/dist/server/lib/trash.js +21 -0
- package/dist/shared/activity-heatmap.js +39 -0
- package/dist/shared/ai-health.js +78 -0
- package/dist/shared/related-docs.js +5 -59
- package/dist/shared/schema.js +27 -5
- package/dist/shared/stats.js +17 -8
- package/dist/shared/task-setters.js +144 -0
- package/dist/web/assets/index-CiZ-pdUZ.css +1 -0
- package/dist/web/assets/index-U2se0dzu.js +99 -0
- package/dist/web/index.html +2 -2
- package/package.json +6 -3
- package/templates/claude-rules.md +5 -0
- package/dist/web/assets/index-BYfu8Hdw.js +0 -93
- package/dist/web/assets/index-DiMXsTSP.css +0 -1
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
var ik=Object.defineProperty;var sk=(e,t,r)=>t in e?ik(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Ni=(e,t,r)=>sk(e,typeof t!="symbol"?t+"":t,r);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))s(l);new MutationObserver(l=>{for(const o of l)if(o.type==="childList")for(const c of o.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&s(c)}).observe(document,{childList:!0,subtree:!0});function r(l){const o={};return l.integrity&&(o.integrity=l.integrity),l.referrerPolicy&&(o.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?o.credentials="include":l.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function s(l){if(l.ep)return;l.ep=!0;const o=r(l);fetch(l.href,o)}})();function nd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ru={exports:{}},el={},iu={exports:{}},Je={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react.production.min.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Facebook, Inc. and its 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 wh;function lk(){if(wh)return Je;wh=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),y=Symbol.iterator;function k(I){return I===null||typeof I!="object"?null:(I=y&&I[y]||I["@@iterator"],typeof I=="function"?I:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,T={};function D(I,V,C){this.props=I,this.context=V,this.refs=T,this.updater=C||x}D.prototype.isReactComponent={},D.prototype.setState=function(I,V){if(typeof I!="object"&&typeof I!="function"&&I!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,I,V,"setState")},D.prototype.forceUpdate=function(I){this.updater.enqueueForceUpdate(this,I,"forceUpdate")};function S(){}S.prototype=D.prototype;function L(I,V,C){this.props=I,this.context=V,this.refs=T,this.updater=C||x}var E=L.prototype=new S;E.constructor=L,_(E,D.prototype),E.isPureReactComponent=!0;var R=Array.isArray,P=Object.prototype.hasOwnProperty,j={current:null},H={key:!0,ref:!0,__self:!0,__source:!0};function Z(I,V,C){var Y,ke={},ye=null,Be=null;if(V!=null)for(Y in V.ref!==void 0&&(Be=V.ref),V.key!==void 0&&(ye=""+V.key),V)P.call(V,Y)&&!H.hasOwnProperty(Y)&&(ke[Y]=V[Y]);var Fe=arguments.length-2;if(Fe===1)ke.children=C;else if(1<Fe){for(var Ve=Array(Fe),Ze=0;Ze<Fe;Ze++)Ve[Ze]=arguments[Ze+2];ke.children=Ve}if(I&&I.defaultProps)for(Y in Fe=I.defaultProps,Fe)ke[Y]===void 0&&(ke[Y]=Fe[Y]);return{$$typeof:e,type:I,key:ye,ref:Be,props:ke,_owner:j.current}}function G(I,V){return{$$typeof:e,type:I.type,key:V,ref:I.ref,props:I.props,_owner:I._owner}}function z(I){return typeof I=="object"&&I!==null&&I.$$typeof===e}function K(I){var V={"=":"=0",":":"=2"};return"$"+I.replace(/[=:]/g,function(C){return V[C]})}var ne=/\/+/g;function xe(I,V){return typeof I=="object"&&I!==null&&I.key!=null?K(""+I.key):V.toString(36)}function ee(I,V,C,Y,ke){var ye=typeof I;(ye==="undefined"||ye==="boolean")&&(I=null);var Be=!1;if(I===null)Be=!0;else switch(ye){case"string":case"number":Be=!0;break;case"object":switch(I.$$typeof){case e:case t:Be=!0}}if(Be)return Be=I,ke=ke(Be),I=Y===""?"."+xe(Be,0):Y,R(ke)?(C="",I!=null&&(C=I.replace(ne,"$&/")+"/"),ee(ke,V,C,"",function(Ze){return Ze})):ke!=null&&(z(ke)&&(ke=G(ke,C+(!ke.key||Be&&Be.key===ke.key?"":(""+ke.key).replace(ne,"$&/")+"/")+I)),V.push(ke)),1;if(Be=0,Y=Y===""?".":Y+":",R(I))for(var Fe=0;Fe<I.length;Fe++){ye=I[Fe];var Ve=Y+xe(ye,Fe);Be+=ee(ye,V,C,Ve,ke)}else if(Ve=k(I),typeof Ve=="function")for(I=Ve.call(I),Fe=0;!(ye=I.next()).done;)ye=ye.value,Ve=Y+xe(ye,Fe++),Be+=ee(ye,V,C,Ve,ke);else if(ye==="object")throw V=String(I),Error("Objects are not valid as a React child (found: "+(V==="[object Object]"?"object with keys {"+Object.keys(I).join(", ")+"}":V)+"). If you meant to render a collection of children, use an array instead.");return Be}function F(I,V,C){if(I==null)return I;var Y=[],ke=0;return ee(I,Y,"","",function(ye){return V.call(C,ye,ke++)}),Y}function ge(I){if(I._status===-1){var V=I._result;V=V(),V.then(function(C){(I._status===0||I._status===-1)&&(I._status=1,I._result=C)},function(C){(I._status===0||I._status===-1)&&(I._status=2,I._result=C)}),I._status===-1&&(I._status=0,I._result=V)}if(I._status===1)return I._result.default;throw I._result}var he={current:null},J={transition:null},fe={ReactCurrentDispatcher:he,ReactCurrentBatchConfig:J,ReactCurrentOwner:j};function N(){throw Error("act(...) is not supported in production builds of React.")}return Je.Children={map:F,forEach:function(I,V,C){F(I,function(){V.apply(this,arguments)},C)},count:function(I){var V=0;return F(I,function(){V++}),V},toArray:function(I){return F(I,function(V){return V})||[]},only:function(I){if(!z(I))throw Error("React.Children.only expected to receive a single React element child.");return I}},Je.Component=D,Je.Fragment=r,Je.Profiler=l,Je.PureComponent=L,Je.StrictMode=s,Je.Suspense=f,Je.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=fe,Je.act=N,Je.cloneElement=function(I,V,C){if(I==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+I+".");var Y=_({},I.props),ke=I.key,ye=I.ref,Be=I._owner;if(V!=null){if(V.ref!==void 0&&(ye=V.ref,Be=j.current),V.key!==void 0&&(ke=""+V.key),I.type&&I.type.defaultProps)var Fe=I.type.defaultProps;for(Ve in V)P.call(V,Ve)&&!H.hasOwnProperty(Ve)&&(Y[Ve]=V[Ve]===void 0&&Fe!==void 0?Fe[Ve]:V[Ve])}var Ve=arguments.length-2;if(Ve===1)Y.children=C;else if(1<Ve){Fe=Array(Ve);for(var Ze=0;Ze<Ve;Ze++)Fe[Ze]=arguments[Ze+2];Y.children=Fe}return{$$typeof:e,type:I.type,key:ke,ref:ye,props:Y,_owner:Be}},Je.createContext=function(I){return I={$$typeof:c,_currentValue:I,_currentValue2:I,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},I.Provider={$$typeof:o,_context:I},I.Consumer=I},Je.createElement=Z,Je.createFactory=function(I){var V=Z.bind(null,I);return V.type=I,V},Je.createRef=function(){return{current:null}},Je.forwardRef=function(I){return{$$typeof:d,render:I}},Je.isValidElement=z,Je.lazy=function(I){return{$$typeof:g,_payload:{_status:-1,_result:I},_init:ge}},Je.memo=function(I,V){return{$$typeof:h,type:I,compare:V===void 0?null:V}},Je.startTransition=function(I){var V=J.transition;J.transition={};try{I()}finally{J.transition=V}},Je.unstable_act=N,Je.useCallback=function(I,V){return he.current.useCallback(I,V)},Je.useContext=function(I){return he.current.useContext(I)},Je.useDebugValue=function(){},Je.useDeferredValue=function(I){return he.current.useDeferredValue(I)},Je.useEffect=function(I,V){return he.current.useEffect(I,V)},Je.useId=function(){return he.current.useId()},Je.useImperativeHandle=function(I,V,C){return he.current.useImperativeHandle(I,V,C)},Je.useInsertionEffect=function(I,V){return he.current.useInsertionEffect(I,V)},Je.useLayoutEffect=function(I,V){return he.current.useLayoutEffect(I,V)},Je.useMemo=function(I,V){return he.current.useMemo(I,V)},Je.useReducer=function(I,V,C){return he.current.useReducer(I,V,C)},Je.useRef=function(I){return he.current.useRef(I)},Je.useState=function(I){return he.current.useState(I)},Je.useSyncExternalStore=function(I,V,C){return he.current.useSyncExternalStore(I,V,C)},Je.useTransition=function(){return he.current.useTransition()},Je.version="18.3.1",Je}var bh;function rd(){return bh||(bh=1,iu.exports=lk()),iu.exports}/**
|
|
10
|
-
* @license React
|
|
11
|
-
* react-jsx-runtime.production.min.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Facebook, Inc. and its 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 Sh;function ok(){if(Sh)return el;Sh=1;var e=rd(),t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,l=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function c(d,f,h){var g,y={},k=null,x=null;h!==void 0&&(k=""+h),f.key!==void 0&&(k=""+f.key),f.ref!==void 0&&(x=f.ref);for(g in f)s.call(f,g)&&!o.hasOwnProperty(g)&&(y[g]=f[g]);if(d&&d.defaultProps)for(g in f=d.defaultProps,f)y[g]===void 0&&(y[g]=f[g]);return{$$typeof:t,type:d,key:k,ref:x,props:y,_owner:l.current}}return el.Fragment=r,el.jsx=c,el.jsxs=c,el}var Ch;function ak(){return Ch||(Ch=1,ru.exports=ok()),ru.exports}var p=ak(),b=rd();const Gn=nd(b);var zo={},su={exports:{}},Dn={},lu={exports:{}},ou={};/**
|
|
18
|
-
* @license React
|
|
19
|
-
* scheduler.production.min.js
|
|
20
|
-
*
|
|
21
|
-
* Copyright (c) Facebook, Inc. and its 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 Nh;function ck(){return Nh||(Nh=1,(function(e){function t(J,fe){var N=J.length;J.push(fe);e:for(;0<N;){var I=N-1>>>1,V=J[I];if(0<l(V,fe))J[I]=fe,J[N]=V,N=I;else break e}}function r(J){return J.length===0?null:J[0]}function s(J){if(J.length===0)return null;var fe=J[0],N=J.pop();if(N!==fe){J[0]=N;e:for(var I=0,V=J.length,C=V>>>1;I<C;){var Y=2*(I+1)-1,ke=J[Y],ye=Y+1,Be=J[ye];if(0>l(ke,N))ye<V&&0>l(Be,ke)?(J[I]=Be,J[ye]=N,I=ye):(J[I]=ke,J[Y]=N,I=Y);else if(ye<V&&0>l(Be,N))J[I]=Be,J[ye]=N,I=ye;else break e}}return fe}function l(J,fe){var N=J.sortIndex-fe.sortIndex;return N!==0?N:J.id-fe.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var c=Date,d=c.now();e.unstable_now=function(){return c.now()-d}}var f=[],h=[],g=1,y=null,k=3,x=!1,_=!1,T=!1,D=typeof setTimeout=="function"?setTimeout:null,S=typeof clearTimeout=="function"?clearTimeout:null,L=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function E(J){for(var fe=r(h);fe!==null;){if(fe.callback===null)s(h);else if(fe.startTime<=J)s(h),fe.sortIndex=fe.expirationTime,t(f,fe);else break;fe=r(h)}}function R(J){if(T=!1,E(J),!_)if(r(f)!==null)_=!0,ge(P);else{var fe=r(h);fe!==null&&he(R,fe.startTime-J)}}function P(J,fe){_=!1,T&&(T=!1,S(Z),Z=-1),x=!0;var N=k;try{for(E(fe),y=r(f);y!==null&&(!(y.expirationTime>fe)||J&&!K());){var I=y.callback;if(typeof I=="function"){y.callback=null,k=y.priorityLevel;var V=I(y.expirationTime<=fe);fe=e.unstable_now(),typeof V=="function"?y.callback=V:y===r(f)&&s(f),E(fe)}else s(f);y=r(f)}if(y!==null)var C=!0;else{var Y=r(h);Y!==null&&he(R,Y.startTime-fe),C=!1}return C}finally{y=null,k=N,x=!1}}var j=!1,H=null,Z=-1,G=5,z=-1;function K(){return!(e.unstable_now()-z<G)}function ne(){if(H!==null){var J=e.unstable_now();z=J;var fe=!0;try{fe=H(!0,J)}finally{fe?xe():(j=!1,H=null)}}else j=!1}var xe;if(typeof L=="function")xe=function(){L(ne)};else if(typeof MessageChannel<"u"){var ee=new MessageChannel,F=ee.port2;ee.port1.onmessage=ne,xe=function(){F.postMessage(null)}}else xe=function(){D(ne,0)};function ge(J){H=J,j||(j=!0,xe())}function he(J,fe){Z=D(function(){J(e.unstable_now())},fe)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(J){J.callback=null},e.unstable_continueExecution=function(){_||x||(_=!0,ge(P))},e.unstable_forceFrameRate=function(J){0>J||125<J?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):G=0<J?Math.floor(1e3/J):5},e.unstable_getCurrentPriorityLevel=function(){return k},e.unstable_getFirstCallbackNode=function(){return r(f)},e.unstable_next=function(J){switch(k){case 1:case 2:case 3:var fe=3;break;default:fe=k}var N=k;k=fe;try{return J()}finally{k=N}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(J,fe){switch(J){case 1:case 2:case 3:case 4:case 5:break;default:J=3}var N=k;k=J;try{return fe()}finally{k=N}},e.unstable_scheduleCallback=function(J,fe,N){var I=e.unstable_now();switch(typeof N=="object"&&N!==null?(N=N.delay,N=typeof N=="number"&&0<N?I+N:I):N=I,J){case 1:var V=-1;break;case 2:V=250;break;case 5:V=1073741823;break;case 4:V=1e4;break;default:V=5e3}return V=N+V,J={id:g++,callback:fe,priorityLevel:J,startTime:N,expirationTime:V,sortIndex:-1},N>I?(J.sortIndex=N,t(h,J),r(f)===null&&J===r(h)&&(T?(S(Z),Z=-1):T=!0,he(R,N-I))):(J.sortIndex=V,t(f,J),_||x||(_=!0,ge(P))),J},e.unstable_shouldYield=K,e.unstable_wrapCallback=function(J){var fe=k;return function(){var N=k;k=fe;try{return J.apply(this,arguments)}finally{k=N}}}})(ou)),ou}var jh;function uk(){return jh||(jh=1,lu.exports=ck()),lu.exports}/**
|
|
26
|
-
* @license React
|
|
27
|
-
* react-dom.production.min.js
|
|
28
|
-
*
|
|
29
|
-
* Copyright (c) Facebook, Inc. and its 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 Eh;function dk(){if(Eh)return Dn;Eh=1;var e=rd(),t=uk();function r(n){for(var i="https://reactjs.org/docs/error-decoder.html?invariant="+n,a=1;a<arguments.length;a++)i+="&args[]="+encodeURIComponent(arguments[a]);return"Minified React error #"+n+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s=new Set,l={};function o(n,i){c(n,i),c(n+"Capture",i)}function c(n,i){for(l[n]=i,n=0;n<i.length;n++)s.add(i[n])}var d=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),f=Object.prototype.hasOwnProperty,h=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,g={},y={};function k(n){return f.call(y,n)?!0:f.call(g,n)?!1:h.test(n)?y[n]=!0:(g[n]=!0,!1)}function x(n,i,a,u){if(a!==null&&a.type===0)return!1;switch(typeof i){case"function":case"symbol":return!0;case"boolean":return u?!1:a!==null?!a.acceptsBooleans:(n=n.toLowerCase().slice(0,5),n!=="data-"&&n!=="aria-");default:return!1}}function _(n,i,a,u){if(i===null||typeof i>"u"||x(n,i,a,u))return!0;if(u)return!1;if(a!==null)switch(a.type){case 3:return!i;case 4:return i===!1;case 5:return isNaN(i);case 6:return isNaN(i)||1>i}return!1}function T(n,i,a,u,m,v,w){this.acceptsBooleans=i===2||i===3||i===4,this.attributeName=u,this.attributeNamespace=m,this.mustUseProperty=a,this.propertyName=n,this.type=i,this.sanitizeURL=v,this.removeEmptyString=w}var D={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(n){D[n]=new T(n,0,!1,n,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(n){var i=n[0];D[i]=new T(i,1,!1,n[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(n){D[n]=new T(n,2,!1,n.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(n){D[n]=new T(n,2,!1,n,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(n){D[n]=new T(n,3,!1,n.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(n){D[n]=new T(n,3,!0,n,null,!1,!1)}),["capture","download"].forEach(function(n){D[n]=new T(n,4,!1,n,null,!1,!1)}),["cols","rows","size","span"].forEach(function(n){D[n]=new T(n,6,!1,n,null,!1,!1)}),["rowSpan","start"].forEach(function(n){D[n]=new T(n,5,!1,n.toLowerCase(),null,!1,!1)});var S=/[\-:]([a-z])/g;function L(n){return n[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(n){var i=n.replace(S,L);D[i]=new T(i,1,!1,n,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(n){var i=n.replace(S,L);D[i]=new T(i,1,!1,n,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(n){var i=n.replace(S,L);D[i]=new T(i,1,!1,n,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(n){D[n]=new T(n,1,!1,n.toLowerCase(),null,!1,!1)}),D.xlinkHref=new T("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(n){D[n]=new T(n,1,!1,n.toLowerCase(),null,!0,!0)});function E(n,i,a,u){var m=D.hasOwnProperty(i)?D[i]:null;(m!==null?m.type!==0:u||!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(_(i,a,m,u)&&(a=null),u||m===null?k(i)&&(a===null?n.removeAttribute(i):n.setAttribute(i,""+a)):m.mustUseProperty?n[m.propertyName]=a===null?m.type===3?!1:"":a:(i=m.attributeName,u=m.attributeNamespace,a===null?n.removeAttribute(i):(m=m.type,a=m===3||m===4&&a===!0?"":""+a,u?n.setAttributeNS(u,i,a):n.setAttribute(i,a))))}var R=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,P=Symbol.for("react.element"),j=Symbol.for("react.portal"),H=Symbol.for("react.fragment"),Z=Symbol.for("react.strict_mode"),G=Symbol.for("react.profiler"),z=Symbol.for("react.provider"),K=Symbol.for("react.context"),ne=Symbol.for("react.forward_ref"),xe=Symbol.for("react.suspense"),ee=Symbol.for("react.suspense_list"),F=Symbol.for("react.memo"),ge=Symbol.for("react.lazy"),he=Symbol.for("react.offscreen"),J=Symbol.iterator;function fe(n){return n===null||typeof n!="object"?null:(n=J&&n[J]||n["@@iterator"],typeof n=="function"?n:null)}var N=Object.assign,I;function V(n){if(I===void 0)try{throw Error()}catch(a){var i=a.stack.trim().match(/\n( *(at )?)/);I=i&&i[1]||""}return`
|
|
34
|
-
`+I+n}var C=!1;function Y(n,i){if(!n||C)return"";C=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(i)if(i=function(){throw Error()},Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(U){var u=U}Reflect.construct(n,[],i)}else{try{i.call()}catch(U){u=U}n.call(i.prototype)}else{try{throw Error()}catch(U){u=U}n()}}catch(U){if(U&&u&&typeof U.stack=="string"){for(var m=U.stack.split(`
|
|
35
|
-
`),v=u.stack.split(`
|
|
36
|
-
`),w=m.length-1,A=v.length-1;1<=w&&0<=A&&m[w]!==v[A];)A--;for(;1<=w&&0<=A;w--,A--)if(m[w]!==v[A]){if(w!==1||A!==1)do if(w--,A--,0>A||m[w]!==v[A]){var M=`
|
|
37
|
-
`+m[w].replace(" at new "," at ");return n.displayName&&M.includes("<anonymous>")&&(M=M.replace("<anonymous>",n.displayName)),M}while(1<=w&&0<=A);break}}}finally{C=!1,Error.prepareStackTrace=a}return(n=n?n.displayName||n.name:"")?V(n):""}function ke(n){switch(n.tag){case 5:return V(n.type);case 16:return V("Lazy");case 13:return V("Suspense");case 19:return V("SuspenseList");case 0:case 2:case 15:return n=Y(n.type,!1),n;case 11:return n=Y(n.type.render,!1),n;case 1:return n=Y(n.type,!0),n;default:return""}}function ye(n){if(n==null)return null;if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case H:return"Fragment";case j:return"Portal";case G:return"Profiler";case Z:return"StrictMode";case xe:return"Suspense";case ee:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case K:return(n.displayName||"Context")+".Consumer";case z:return(n._context.displayName||"Context")+".Provider";case ne:var i=n.render;return n=n.displayName,n||(n=i.displayName||i.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case F:return i=n.displayName||null,i!==null?i:ye(n.type)||"Memo";case ge:i=n._payload,n=n._init;try{return ye(n(i))}catch{}}return null}function Be(n){var i=n.type;switch(n.tag){case 24:return"Cache";case 9:return(i.displayName||"Context")+".Consumer";case 10:return(i._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return n=i.render,n=n.displayName||n.name||"",i.displayName||(n!==""?"ForwardRef("+n+")":"ForwardRef");case 7:return"Fragment";case 5:return i;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ye(i);case 8:return i===Z?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i}return null}function Fe(n){switch(typeof n){case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function Ve(n){var i=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function Ze(n){var i=Ve(n)?"checked":"value",a=Object.getOwnPropertyDescriptor(n.constructor.prototype,i),u=""+n[i];if(!n.hasOwnProperty(i)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var m=a.get,v=a.set;return Object.defineProperty(n,i,{configurable:!0,get:function(){return m.call(this)},set:function(w){u=""+w,v.call(this,w)}}),Object.defineProperty(n,i,{enumerable:a.enumerable}),{getValue:function(){return u},setValue:function(w){u=""+w},stopTracking:function(){n._valueTracker=null,delete n[i]}}}}function dt(n){n._valueTracker||(n._valueTracker=Ze(n))}function _t(n){if(!n)return!1;var i=n._valueTracker;if(!i)return!0;var a=i.getValue(),u="";return n&&(u=Ve(n)?n.checked?"true":"false":n.value),n=u,n!==a?(i.setValue(n),!0):!1}function Zt(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}function pt(n,i){var a=i.checked;return N({},i,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:a??n._wrapperState.initialChecked})}function Yt(n,i){var a=i.defaultValue==null?"":i.defaultValue,u=i.checked!=null?i.checked:i.defaultChecked;a=Fe(i.value!=null?i.value:a),n._wrapperState={initialChecked:u,initialValue:a,controlled:i.type==="checkbox"||i.type==="radio"?i.checked!=null:i.value!=null}}function It(n,i){i=i.checked,i!=null&&E(n,"checked",i,!1)}function kn(n,i){It(n,i);var a=Fe(i.value),u=i.type;if(a!=null)u==="number"?(a===0&&n.value===""||n.value!=a)&&(n.value=""+a):n.value!==""+a&&(n.value=""+a);else if(u==="submit"||u==="reset"){n.removeAttribute("value");return}i.hasOwnProperty("value")?Qt(n,i.type,a):i.hasOwnProperty("defaultValue")&&Qt(n,i.type,Fe(i.defaultValue)),i.checked==null&&i.defaultChecked!=null&&(n.defaultChecked=!!i.defaultChecked)}function Cn(n,i,a){if(i.hasOwnProperty("value")||i.hasOwnProperty("defaultValue")){var u=i.type;if(!(u!=="submit"&&u!=="reset"||i.value!==void 0&&i.value!==null))return;i=""+n._wrapperState.initialValue,a||i===n.value||(n.value=i),n.defaultValue=i}a=n.name,a!==""&&(n.name=""),n.defaultChecked=!!n._wrapperState.initialChecked,a!==""&&(n.name=a)}function Qt(n,i,a){(i!=="number"||Zt(n.ownerDocument)!==n)&&(a==null?n.defaultValue=""+n._wrapperState.initialValue:n.defaultValue!==""+a&&(n.defaultValue=""+a))}var le=Array.isArray;function pe(n,i,a,u){if(n=n.options,i){i={};for(var m=0;m<a.length;m++)i["$"+a[m]]=!0;for(a=0;a<n.length;a++)m=i.hasOwnProperty("$"+n[a].value),n[a].selected!==m&&(n[a].selected=m),m&&u&&(n[a].defaultSelected=!0)}else{for(a=""+Fe(a),i=null,m=0;m<n.length;m++){if(n[m].value===a){n[m].selected=!0,u&&(n[m].defaultSelected=!0);return}i!==null||n[m].disabled||(i=n[m])}i!==null&&(i.selected=!0)}}function ve(n,i){if(i.dangerouslySetInnerHTML!=null)throw Error(r(91));return N({},i,{value:void 0,defaultValue:void 0,children:""+n._wrapperState.initialValue})}function Re(n,i){var a=i.value;if(a==null){if(a=i.children,i=i.defaultValue,a!=null){if(i!=null)throw Error(r(92));if(le(a)){if(1<a.length)throw Error(r(93));a=a[0]}i=a}i==null&&(i=""),a=i}n._wrapperState={initialValue:Fe(a)}}function me(n,i){var a=Fe(i.value),u=Fe(i.defaultValue);a!=null&&(a=""+a,a!==n.value&&(n.value=a),i.defaultValue==null&&n.defaultValue!==a&&(n.defaultValue=a)),u!=null&&(n.defaultValue=""+u)}function Ye(n){var i=n.textContent;i===n._wrapperState.initialValue&&i!==""&&i!==null&&(n.value=i)}function q(n){switch(n){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ie(n,i){return n==null||n==="http://www.w3.org/1999/xhtml"?q(i):n==="http://www.w3.org/2000/svg"&&i==="foreignObject"?"http://www.w3.org/1999/xhtml":n}var Ie,Ue=(function(n){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(i,a,u,m){MSApp.execUnsafeLocalFunction(function(){return n(i,a,u,m)})}:n})(function(n,i){if(n.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in n)n.innerHTML=i;else{for(Ie=Ie||document.createElement("div"),Ie.innerHTML="<svg>"+i.valueOf().toString()+"</svg>",i=Ie.firstChild;n.firstChild;)n.removeChild(n.firstChild);for(;i.firstChild;)n.appendChild(i.firstChild)}});function W(n,i){if(i){var a=n.firstChild;if(a&&a===n.lastChild&&a.nodeType===3){a.nodeValue=i;return}}n.textContent=i}var X={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},je=["Webkit","ms","Moz","O"];Object.keys(X).forEach(function(n){je.forEach(function(i){i=i+n.charAt(0).toUpperCase()+n.substring(1),X[i]=X[n]})});function $e(n,i,a){return i==null||typeof i=="boolean"||i===""?"":a||typeof i!="number"||i===0||X.hasOwnProperty(n)&&X[n]?(""+i).trim():i+"px"}function Mt(n,i){n=n.style;for(var a in i)if(i.hasOwnProperty(a)){var u=a.indexOf("--")===0,m=$e(a,i[a],u);a==="float"&&(a="cssFloat"),u?n.setProperty(a,m):n[a]=m}}var Ht=N({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ht(n,i){if(i){if(Ht[n]&&(i.children!=null||i.dangerouslySetInnerHTML!=null))throw Error(r(137,n));if(i.dangerouslySetInnerHTML!=null){if(i.children!=null)throw Error(r(60));if(typeof i.dangerouslySetInnerHTML!="object"||!("__html"in i.dangerouslySetInnerHTML))throw Error(r(61))}if(i.style!=null&&typeof i.style!="object")throw Error(r(62))}}function Ot(n,i){if(n.indexOf("-")===-1)return typeof i.is=="string";switch(n){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 Q=null;function Se(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var Ct=null,an=null,At=null;function cn(n){if(n=$s(n)){if(typeof Ct!="function")throw Error(r(280));var i=n.stateNode;i&&(i=Gl(i),Ct(n.stateNode,n.type,i))}}function un(n){an?At?At.push(n):At=[n]:an=n}function tr(){if(an){var n=an,i=At;if(At=an=null,cn(n),i)for(n=0;n<i.length;n++)cn(i[n])}}function _n(n,i){return n(i)}function dn(){}var Nn=!1;function Cr(n,i,a){if(Nn)return n(i,a);Nn=!0;try{return _n(n,i,a)}finally{Nn=!1,(an!==null||At!==null)&&(dn(),tr())}}function Dt(n,i){var a=n.stateNode;if(a===null)return null;var u=Gl(a);if(u===null)return null;a=u[i];e:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(u=!u.disabled)||(n=n.type,u=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!u;break e;default:n=!1}if(n)return null;if(a&&typeof a!="function")throw Error(r(231,i,typeof a));return a}var Hn=!1;if(d)try{var fn={};Object.defineProperty(fn,"passive",{get:function(){Hn=!0}}),window.addEventListener("test",fn,fn),window.removeEventListener("test",fn,fn)}catch{Hn=!1}function nr(n,i,a,u,m,v,w,A,M){var U=Array.prototype.slice.call(arguments,3);try{i.apply(a,U)}catch(re){this.onError(re)}}var rr=!1,pr=null,Mn=!1,Nr=null,ks={onError:function(n){rr=!0,pr=n}};function fv(n,i,a,u,m,v,w,A,M){rr=!1,pr=null,nr.apply(ks,arguments)}function pv(n,i,a,u,m,v,w,A,M){if(fv.apply(this,arguments),rr){if(rr){var U=pr;rr=!1,pr=null}else throw Error(r(198));Mn||(Mn=!0,Nr=U)}}function pi(n){var i=n,a=n;if(n.alternate)for(;i.return;)i=i.return;else{n=i;do i=n,(i.flags&4098)!==0&&(a=i.return),n=i.return;while(n)}return i.tag===3?a:null}function Hd(n){if(n.tag===13){var i=n.memoizedState;if(i===null&&(n=n.alternate,n!==null&&(i=n.memoizedState)),i!==null)return i.dehydrated}return null}function Wd(n){if(pi(n)!==n)throw Error(r(188))}function hv(n){var i=n.alternate;if(!i){if(i=pi(n),i===null)throw Error(r(188));return i!==n?null:n}for(var a=n,u=i;;){var m=a.return;if(m===null)break;var v=m.alternate;if(v===null){if(u=m.return,u!==null){a=u;continue}break}if(m.child===v.child){for(v=m.child;v;){if(v===a)return Wd(m),n;if(v===u)return Wd(m),i;v=v.sibling}throw Error(r(188))}if(a.return!==u.return)a=m,u=v;else{for(var w=!1,A=m.child;A;){if(A===a){w=!0,a=m,u=v;break}if(A===u){w=!0,u=m,a=v;break}A=A.sibling}if(!w){for(A=v.child;A;){if(A===a){w=!0,a=v,u=m;break}if(A===u){w=!0,u=v,a=m;break}A=A.sibling}if(!w)throw Error(r(189))}}if(a.alternate!==u)throw Error(r(190))}if(a.tag!==3)throw Error(r(188));return a.stateNode.current===a?n:i}function qd(n){return n=hv(n),n!==null?Kd(n):null}function Kd(n){if(n.tag===5||n.tag===6)return n;for(n=n.child;n!==null;){var i=Kd(n);if(i!==null)return i;n=n.sibling}return null}var Zd=t.unstable_scheduleCallback,Yd=t.unstable_cancelCallback,mv=t.unstable_shouldYield,gv=t.unstable_requestPaint,Ft=t.unstable_now,yv=t.unstable_getCurrentPriorityLevel,ba=t.unstable_ImmediatePriority,Qd=t.unstable_UserBlockingPriority,Dl=t.unstable_NormalPriority,vv=t.unstable_LowPriority,Xd=t.unstable_IdlePriority,Rl=null,hr=null;function xv(n){if(hr&&typeof hr.onCommitFiberRoot=="function")try{hr.onCommitFiberRoot(Rl,n,void 0,(n.current.flags&128)===128)}catch{}}var ir=Math.clz32?Math.clz32:wv,kv=Math.log,_v=Math.LN2;function wv(n){return n>>>=0,n===0?32:31-(kv(n)/_v|0)|0}var Pl=64,Ll=4194304;function _s(n){switch(n&-n){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:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return n&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return n}}function Ml(n,i){var a=n.pendingLanes;if(a===0)return 0;var u=0,m=n.suspendedLanes,v=n.pingedLanes,w=a&268435455;if(w!==0){var A=w&~m;A!==0?u=_s(A):(v&=w,v!==0&&(u=_s(v)))}else w=a&~m,w!==0?u=_s(w):v!==0&&(u=_s(v));if(u===0)return 0;if(i!==0&&i!==u&&(i&m)===0&&(m=u&-u,v=i&-i,m>=v||m===16&&(v&4194240)!==0))return i;if((u&4)!==0&&(u|=a&16),i=n.entangledLanes,i!==0)for(n=n.entanglements,i&=u;0<i;)a=31-ir(i),m=1<<a,u|=n[a],i&=~m;return u}function bv(n,i){switch(n){case 1:case 2:case 4:return i+250;case 8:case 16:case 32:case 64: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 i+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Sv(n,i){for(var a=n.suspendedLanes,u=n.pingedLanes,m=n.expirationTimes,v=n.pendingLanes;0<v;){var w=31-ir(v),A=1<<w,M=m[w];M===-1?((A&a)===0||(A&u)!==0)&&(m[w]=bv(A,i)):M<=i&&(n.expiredLanes|=A),v&=~A}}function Sa(n){return n=n.pendingLanes&-1073741825,n!==0?n:n&1073741824?1073741824:0}function Gd(){var n=Pl;return Pl<<=1,(Pl&4194240)===0&&(Pl=64),n}function Ca(n){for(var i=[],a=0;31>a;a++)i.push(n);return i}function ws(n,i,a){n.pendingLanes|=i,i!==536870912&&(n.suspendedLanes=0,n.pingedLanes=0),n=n.eventTimes,i=31-ir(i),n[i]=a}function Cv(n,i){var a=n.pendingLanes&~i;n.pendingLanes=i,n.suspendedLanes=0,n.pingedLanes=0,n.expiredLanes&=i,n.mutableReadLanes&=i,n.entangledLanes&=i,i=n.entanglements;var u=n.eventTimes;for(n=n.expirationTimes;0<a;){var m=31-ir(a),v=1<<m;i[m]=0,u[m]=-1,n[m]=-1,a&=~v}}function Na(n,i){var a=n.entangledLanes|=i;for(n=n.entanglements;a;){var u=31-ir(a),m=1<<u;m&i|n[u]&i&&(n[u]|=i),a&=~m}}var mt=0;function Jd(n){return n&=-n,1<n?4<n?(n&268435455)!==0?16:536870912:4:1}var ef,ja,tf,nf,rf,Ea=!1,Ol=[],Or=null,zr=null,$r=null,bs=new Map,Ss=new Map,Br=[],Nv="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 submit".split(" ");function sf(n,i){switch(n){case"focusin":case"focusout":Or=null;break;case"dragenter":case"dragleave":zr=null;break;case"mouseover":case"mouseout":$r=null;break;case"pointerover":case"pointerout":bs.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ss.delete(i.pointerId)}}function Cs(n,i,a,u,m,v){return n===null||n.nativeEvent!==v?(n={blockedOn:i,domEventName:a,eventSystemFlags:u,nativeEvent:v,targetContainers:[m]},i!==null&&(i=$s(i),i!==null&&ja(i)),n):(n.eventSystemFlags|=u,i=n.targetContainers,m!==null&&i.indexOf(m)===-1&&i.push(m),n)}function jv(n,i,a,u,m){switch(i){case"focusin":return Or=Cs(Or,n,i,a,u,m),!0;case"dragenter":return zr=Cs(zr,n,i,a,u,m),!0;case"mouseover":return $r=Cs($r,n,i,a,u,m),!0;case"pointerover":var v=m.pointerId;return bs.set(v,Cs(bs.get(v)||null,n,i,a,u,m)),!0;case"gotpointercapture":return v=m.pointerId,Ss.set(v,Cs(Ss.get(v)||null,n,i,a,u,m)),!0}return!1}function lf(n){var i=hi(n.target);if(i!==null){var a=pi(i);if(a!==null){if(i=a.tag,i===13){if(i=Hd(a),i!==null){n.blockedOn=i,rf(n.priority,function(){tf(a)});return}}else if(i===3&&a.stateNode.current.memoizedState.isDehydrated){n.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}n.blockedOn=null}function zl(n){if(n.blockedOn!==null)return!1;for(var i=n.targetContainers;0<i.length;){var a=Ia(n.domEventName,n.eventSystemFlags,i[0],n.nativeEvent);if(a===null){a=n.nativeEvent;var u=new a.constructor(a.type,a);Q=u,a.target.dispatchEvent(u),Q=null}else return i=$s(a),i!==null&&ja(i),n.blockedOn=a,!1;i.shift()}return!0}function of(n,i,a){zl(n)&&a.delete(i)}function Ev(){Ea=!1,Or!==null&&zl(Or)&&(Or=null),zr!==null&&zl(zr)&&(zr=null),$r!==null&&zl($r)&&($r=null),bs.forEach(of),Ss.forEach(of)}function Ns(n,i){n.blockedOn===i&&(n.blockedOn=null,Ea||(Ea=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Ev)))}function js(n){function i(m){return Ns(m,n)}if(0<Ol.length){Ns(Ol[0],n);for(var a=1;a<Ol.length;a++){var u=Ol[a];u.blockedOn===n&&(u.blockedOn=null)}}for(Or!==null&&Ns(Or,n),zr!==null&&Ns(zr,n),$r!==null&&Ns($r,n),bs.forEach(i),Ss.forEach(i),a=0;a<Br.length;a++)u=Br[a],u.blockedOn===n&&(u.blockedOn=null);for(;0<Br.length&&(a=Br[0],a.blockedOn===null);)lf(a),a.blockedOn===null&&Br.shift()}var Pi=R.ReactCurrentBatchConfig,$l=!0;function Tv(n,i,a,u){var m=mt,v=Pi.transition;Pi.transition=null;try{mt=1,Ta(n,i,a,u)}finally{mt=m,Pi.transition=v}}function Iv(n,i,a,u){var m=mt,v=Pi.transition;Pi.transition=null;try{mt=4,Ta(n,i,a,u)}finally{mt=m,Pi.transition=v}}function Ta(n,i,a,u){if($l){var m=Ia(n,i,a,u);if(m===null)Ka(n,i,u,Bl,a),sf(n,u);else if(jv(m,n,i,a,u))u.stopPropagation();else if(sf(n,u),i&4&&-1<Nv.indexOf(n)){for(;m!==null;){var v=$s(m);if(v!==null&&ef(v),v=Ia(n,i,a,u),v===null&&Ka(n,i,u,Bl,a),v===m)break;m=v}m!==null&&u.stopPropagation()}else Ka(n,i,u,null,a)}}var Bl=null;function Ia(n,i,a,u){if(Bl=null,n=Se(u),n=hi(n),n!==null)if(i=pi(n),i===null)n=null;else if(a=i.tag,a===13){if(n=Hd(i),n!==null)return n;n=null}else if(a===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;n=null}else i!==n&&(n=null);return Bl=n,null}function af(n){switch(n){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(yv()){case ba:return 1;case Qd:return 4;case Dl:case vv:return 16;case Xd:return 536870912;default:return 16}default:return 16}}var Fr=null,Aa=null,Fl=null;function cf(){if(Fl)return Fl;var n,i=Aa,a=i.length,u,m="value"in Fr?Fr.value:Fr.textContent,v=m.length;for(n=0;n<a&&i[n]===m[n];n++);var w=a-n;for(u=1;u<=w&&i[a-u]===m[v-u];u++);return Fl=m.slice(n,1<u?1-u:void 0)}function Vl(n){var i=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&i===13&&(n=13)):n=i,n===10&&(n=13),32<=n||n===13?n:0}function Ul(){return!0}function uf(){return!1}function On(n){function i(a,u,m,v,w){this._reactName=a,this._targetInst=m,this.type=u,this.nativeEvent=v,this.target=w,this.currentTarget=null;for(var A in n)n.hasOwnProperty(A)&&(a=n[A],this[A]=a?a(v):v[A]);return this.isDefaultPrevented=(v.defaultPrevented!=null?v.defaultPrevented:v.returnValue===!1)?Ul:uf,this.isPropagationStopped=uf,this}return N(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Ul)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Ul)},persist:function(){},isPersistent:Ul}),i}var Li={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Da=On(Li),Es=N({},Li,{view:0,detail:0}),Av=On(Es),Ra,Pa,Ts,Hl=N({},Es,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ma,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==Ts&&(Ts&&n.type==="mousemove"?(Ra=n.screenX-Ts.screenX,Pa=n.screenY-Ts.screenY):Pa=Ra=0,Ts=n),Ra)},movementY:function(n){return"movementY"in n?n.movementY:Pa}}),df=On(Hl),Dv=N({},Hl,{dataTransfer:0}),Rv=On(Dv),Pv=N({},Es,{relatedTarget:0}),La=On(Pv),Lv=N({},Li,{animationName:0,elapsedTime:0,pseudoElement:0}),Mv=On(Lv),Ov=N({},Li,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),zv=On(Ov),$v=N({},Li,{data:0}),ff=On($v),Bv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Fv={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"},Vv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Uv(n){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(n):(n=Vv[n])?!!i[n]:!1}function Ma(){return Uv}var Hv=N({},Es,{key:function(n){if(n.key){var i=Bv[n.key]||n.key;if(i!=="Unidentified")return i}return n.type==="keypress"?(n=Vl(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?Fv[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ma,charCode:function(n){return n.type==="keypress"?Vl(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?Vl(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),Wv=On(Hv),qv=N({},Hl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),pf=On(qv),Kv=N({},Es,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ma}),Zv=On(Kv),Yv=N({},Li,{propertyName:0,elapsedTime:0,pseudoElement:0}),Qv=On(Yv),Xv=N({},Hl,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),Gv=On(Xv),Jv=[9,13,27,32],Oa=d&&"CompositionEvent"in window,Is=null;d&&"documentMode"in document&&(Is=document.documentMode);var ex=d&&"TextEvent"in window&&!Is,hf=d&&(!Oa||Is&&8<Is&&11>=Is),mf=" ",gf=!1;function yf(n,i){switch(n){case"keyup":return Jv.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function vf(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var Mi=!1;function tx(n,i){switch(n){case"compositionend":return vf(i);case"keypress":return i.which!==32?null:(gf=!0,mf);case"textInput":return n=i.data,n===mf&&gf?null:n;default:return null}}function nx(n,i){if(Mi)return n==="compositionend"||!Oa&&yf(n,i)?(n=cf(),Fl=Aa=Fr=null,Mi=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return hf&&i.locale!=="ko"?null:i.data;default:return null}}var rx={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 xf(n){var i=n&&n.nodeName&&n.nodeName.toLowerCase();return i==="input"?!!rx[n.type]:i==="textarea"}function kf(n,i,a,u){un(u),i=Yl(i,"onChange"),0<i.length&&(a=new Da("onChange","change",null,a,u),n.push({event:a,listeners:i}))}var As=null,Ds=null;function ix(n){zf(n,0)}function Wl(n){var i=Fi(n);if(_t(i))return n}function sx(n,i){if(n==="change")return i}var _f=!1;if(d){var za;if(d){var $a="oninput"in document;if(!$a){var wf=document.createElement("div");wf.setAttribute("oninput","return;"),$a=typeof wf.oninput=="function"}za=$a}else za=!1;_f=za&&(!document.documentMode||9<document.documentMode)}function bf(){As&&(As.detachEvent("onpropertychange",Sf),Ds=As=null)}function Sf(n){if(n.propertyName==="value"&&Wl(Ds)){var i=[];kf(i,Ds,n,Se(n)),Cr(ix,i)}}function lx(n,i,a){n==="focusin"?(bf(),As=i,Ds=a,As.attachEvent("onpropertychange",Sf)):n==="focusout"&&bf()}function ox(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return Wl(Ds)}function ax(n,i){if(n==="click")return Wl(i)}function cx(n,i){if(n==="input"||n==="change")return Wl(i)}function ux(n,i){return n===i&&(n!==0||1/n===1/i)||n!==n&&i!==i}var sr=typeof Object.is=="function"?Object.is:ux;function Rs(n,i){if(sr(n,i))return!0;if(typeof n!="object"||n===null||typeof i!="object"||i===null)return!1;var a=Object.keys(n),u=Object.keys(i);if(a.length!==u.length)return!1;for(u=0;u<a.length;u++){var m=a[u];if(!f.call(i,m)||!sr(n[m],i[m]))return!1}return!0}function Cf(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function Nf(n,i){var a=Cf(n);n=0;for(var u;a;){if(a.nodeType===3){if(u=n+a.textContent.length,n<=i&&u>=i)return{node:a,offset:i-n};n=u}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Cf(a)}}function jf(n,i){return n&&i?n===i?!0:n&&n.nodeType===3?!1:i&&i.nodeType===3?jf(n,i.parentNode):"contains"in n?n.contains(i):n.compareDocumentPosition?!!(n.compareDocumentPosition(i)&16):!1:!1}function Ef(){for(var n=window,i=Zt();i instanceof n.HTMLIFrameElement;){try{var a=typeof i.contentWindow.location.href=="string"}catch{a=!1}if(a)n=i.contentWindow;else break;i=Zt(n.document)}return i}function Ba(n){var i=n&&n.nodeName&&n.nodeName.toLowerCase();return i&&(i==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||i==="textarea"||n.contentEditable==="true")}function dx(n){var i=Ef(),a=n.focusedElem,u=n.selectionRange;if(i!==a&&a&&a.ownerDocument&&jf(a.ownerDocument.documentElement,a)){if(u!==null&&Ba(a)){if(i=u.start,n=u.end,n===void 0&&(n=i),"selectionStart"in a)a.selectionStart=i,a.selectionEnd=Math.min(n,a.value.length);else if(n=(i=a.ownerDocument||document)&&i.defaultView||window,n.getSelection){n=n.getSelection();var m=a.textContent.length,v=Math.min(u.start,m);u=u.end===void 0?v:Math.min(u.end,m),!n.extend&&v>u&&(m=u,u=v,v=m),m=Nf(a,v);var w=Nf(a,u);m&&w&&(n.rangeCount!==1||n.anchorNode!==m.node||n.anchorOffset!==m.offset||n.focusNode!==w.node||n.focusOffset!==w.offset)&&(i=i.createRange(),i.setStart(m.node,m.offset),n.removeAllRanges(),v>u?(n.addRange(i),n.extend(w.node,w.offset)):(i.setEnd(w.node,w.offset),n.addRange(i)))}}for(i=[],n=a;n=n.parentNode;)n.nodeType===1&&i.push({element:n,left:n.scrollLeft,top:n.scrollTop});for(typeof a.focus=="function"&&a.focus(),a=0;a<i.length;a++)n=i[a],n.element.scrollLeft=n.left,n.element.scrollTop=n.top}}var fx=d&&"documentMode"in document&&11>=document.documentMode,Oi=null,Fa=null,Ps=null,Va=!1;function Tf(n,i,a){var u=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Va||Oi==null||Oi!==Zt(u)||(u=Oi,"selectionStart"in u&&Ba(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),Ps&&Rs(Ps,u)||(Ps=u,u=Yl(Fa,"onSelect"),0<u.length&&(i=new Da("onSelect","select",null,i,a),n.push({event:i,listeners:u}),i.target=Oi)))}function ql(n,i){var a={};return a[n.toLowerCase()]=i.toLowerCase(),a["Webkit"+n]="webkit"+i,a["Moz"+n]="moz"+i,a}var zi={animationend:ql("Animation","AnimationEnd"),animationiteration:ql("Animation","AnimationIteration"),animationstart:ql("Animation","AnimationStart"),transitionend:ql("Transition","TransitionEnd")},Ua={},If={};d&&(If=document.createElement("div").style,"AnimationEvent"in window||(delete zi.animationend.animation,delete zi.animationiteration.animation,delete zi.animationstart.animation),"TransitionEvent"in window||delete zi.transitionend.transition);function Kl(n){if(Ua[n])return Ua[n];if(!zi[n])return n;var i=zi[n],a;for(a in i)if(i.hasOwnProperty(a)&&a in If)return Ua[n]=i[a];return n}var Af=Kl("animationend"),Df=Kl("animationiteration"),Rf=Kl("animationstart"),Pf=Kl("transitionend"),Lf=new Map,Mf="abort auxClick 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(" ");function Vr(n,i){Lf.set(n,i),o(i,[n])}for(var Ha=0;Ha<Mf.length;Ha++){var Wa=Mf[Ha],px=Wa.toLowerCase(),hx=Wa[0].toUpperCase()+Wa.slice(1);Vr(px,"on"+hx)}Vr(Af,"onAnimationEnd"),Vr(Df,"onAnimationIteration"),Vr(Rf,"onAnimationStart"),Vr("dblclick","onDoubleClick"),Vr("focusin","onFocus"),Vr("focusout","onBlur"),Vr(Pf,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),o("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),o("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),o("onBeforeInput",["compositionend","keypress","textInput","paste"]),o("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),o("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),o("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ls="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(" "),mx=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ls));function Of(n,i,a){var u=n.type||"unknown-event";n.currentTarget=a,pv(u,i,void 0,n),n.currentTarget=null}function zf(n,i){i=(i&4)!==0;for(var a=0;a<n.length;a++){var u=n[a],m=u.event;u=u.listeners;e:{var v=void 0;if(i)for(var w=u.length-1;0<=w;w--){var A=u[w],M=A.instance,U=A.currentTarget;if(A=A.listener,M!==v&&m.isPropagationStopped())break e;Of(m,A,U),v=M}else for(w=0;w<u.length;w++){if(A=u[w],M=A.instance,U=A.currentTarget,A=A.listener,M!==v&&m.isPropagationStopped())break e;Of(m,A,U),v=M}}}if(Mn)throw n=Nr,Mn=!1,Nr=null,n}function Nt(n,i){var a=i[Ja];a===void 0&&(a=i[Ja]=new Set);var u=n+"__bubble";a.has(u)||($f(i,n,2,!1),a.add(u))}function qa(n,i,a){var u=0;i&&(u|=4),$f(a,n,u,i)}var Zl="_reactListening"+Math.random().toString(36).slice(2);function Ms(n){if(!n[Zl]){n[Zl]=!0,s.forEach(function(a){a!=="selectionchange"&&(mx.has(a)||qa(a,!1,n),qa(a,!0,n))});var i=n.nodeType===9?n:n.ownerDocument;i===null||i[Zl]||(i[Zl]=!0,qa("selectionchange",!1,i))}}function $f(n,i,a,u){switch(af(i)){case 1:var m=Tv;break;case 4:m=Iv;break;default:m=Ta}a=m.bind(null,i,a,n),m=void 0,!Hn||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(m=!0),u?m!==void 0?n.addEventListener(i,a,{capture:!0,passive:m}):n.addEventListener(i,a,!0):m!==void 0?n.addEventListener(i,a,{passive:m}):n.addEventListener(i,a,!1)}function Ka(n,i,a,u,m){var v=u;if((i&1)===0&&(i&2)===0&&u!==null)e:for(;;){if(u===null)return;var w=u.tag;if(w===3||w===4){var A=u.stateNode.containerInfo;if(A===m||A.nodeType===8&&A.parentNode===m)break;if(w===4)for(w=u.return;w!==null;){var M=w.tag;if((M===3||M===4)&&(M=w.stateNode.containerInfo,M===m||M.nodeType===8&&M.parentNode===m))return;w=w.return}for(;A!==null;){if(w=hi(A),w===null)return;if(M=w.tag,M===5||M===6){u=v=w;continue e}A=A.parentNode}}u=u.return}Cr(function(){var U=v,re=Se(a),se=[];e:{var te=Lf.get(n);if(te!==void 0){var _e=Da,Ne=n;switch(n){case"keypress":if(Vl(a)===0)break e;case"keydown":case"keyup":_e=Wv;break;case"focusin":Ne="focus",_e=La;break;case"focusout":Ne="blur",_e=La;break;case"beforeblur":case"afterblur":_e=La;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":_e=df;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":_e=Rv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":_e=Zv;break;case Af:case Df:case Rf:_e=Mv;break;case Pf:_e=Qv;break;case"scroll":_e=Av;break;case"wheel":_e=Gv;break;case"copy":case"cut":case"paste":_e=zv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":_e=pf}var Ee=(i&4)!==0,Vt=!Ee&&n==="scroll",$=Ee?te!==null?te+"Capture":null:te;Ee=[];for(var O=U,B;O!==null;){B=O;var ue=B.stateNode;if(B.tag===5&&ue!==null&&(B=ue,$!==null&&(ue=Dt(O,$),ue!=null&&Ee.push(Os(O,ue,B)))),Vt)break;O=O.return}0<Ee.length&&(te=new _e(te,Ne,null,a,re),se.push({event:te,listeners:Ee}))}}if((i&7)===0){e:{if(te=n==="mouseover"||n==="pointerover",_e=n==="mouseout"||n==="pointerout",te&&a!==Q&&(Ne=a.relatedTarget||a.fromElement)&&(hi(Ne)||Ne[jr]))break e;if((_e||te)&&(te=re.window===re?re:(te=re.ownerDocument)?te.defaultView||te.parentWindow:window,_e?(Ne=a.relatedTarget||a.toElement,_e=U,Ne=Ne?hi(Ne):null,Ne!==null&&(Vt=pi(Ne),Ne!==Vt||Ne.tag!==5&&Ne.tag!==6)&&(Ne=null)):(_e=null,Ne=U),_e!==Ne)){if(Ee=df,ue="onMouseLeave",$="onMouseEnter",O="mouse",(n==="pointerout"||n==="pointerover")&&(Ee=pf,ue="onPointerLeave",$="onPointerEnter",O="pointer"),Vt=_e==null?te:Fi(_e),B=Ne==null?te:Fi(Ne),te=new Ee(ue,O+"leave",_e,a,re),te.target=Vt,te.relatedTarget=B,ue=null,hi(re)===U&&(Ee=new Ee($,O+"enter",Ne,a,re),Ee.target=B,Ee.relatedTarget=Vt,ue=Ee),Vt=ue,_e&&Ne)t:{for(Ee=_e,$=Ne,O=0,B=Ee;B;B=$i(B))O++;for(B=0,ue=$;ue;ue=$i(ue))B++;for(;0<O-B;)Ee=$i(Ee),O--;for(;0<B-O;)$=$i($),B--;for(;O--;){if(Ee===$||$!==null&&Ee===$.alternate)break t;Ee=$i(Ee),$=$i($)}Ee=null}else Ee=null;_e!==null&&Bf(se,te,_e,Ee,!1),Ne!==null&&Vt!==null&&Bf(se,Vt,Ne,Ee,!0)}}e:{if(te=U?Fi(U):window,_e=te.nodeName&&te.nodeName.toLowerCase(),_e==="select"||_e==="input"&&te.type==="file")var Ae=sx;else if(xf(te))if(_f)Ae=cx;else{Ae=ox;var Me=lx}else(_e=te.nodeName)&&_e.toLowerCase()==="input"&&(te.type==="checkbox"||te.type==="radio")&&(Ae=ax);if(Ae&&(Ae=Ae(n,U))){kf(se,Ae,a,re);break e}Me&&Me(n,te,U),n==="focusout"&&(Me=te._wrapperState)&&Me.controlled&&te.type==="number"&&Qt(te,"number",te.value)}switch(Me=U?Fi(U):window,n){case"focusin":(xf(Me)||Me.contentEditable==="true")&&(Oi=Me,Fa=U,Ps=null);break;case"focusout":Ps=Fa=Oi=null;break;case"mousedown":Va=!0;break;case"contextmenu":case"mouseup":case"dragend":Va=!1,Tf(se,a,re);break;case"selectionchange":if(fx)break;case"keydown":case"keyup":Tf(se,a,re)}var Oe;if(Oa)e:{switch(n){case"compositionstart":var He="onCompositionStart";break e;case"compositionend":He="onCompositionEnd";break e;case"compositionupdate":He="onCompositionUpdate";break e}He=void 0}else Mi?yf(n,a)&&(He="onCompositionEnd"):n==="keydown"&&a.keyCode===229&&(He="onCompositionStart");He&&(hf&&a.locale!=="ko"&&(Mi||He!=="onCompositionStart"?He==="onCompositionEnd"&&Mi&&(Oe=cf()):(Fr=re,Aa="value"in Fr?Fr.value:Fr.textContent,Mi=!0)),Me=Yl(U,He),0<Me.length&&(He=new ff(He,n,null,a,re),se.push({event:He,listeners:Me}),Oe?He.data=Oe:(Oe=vf(a),Oe!==null&&(He.data=Oe)))),(Oe=ex?tx(n,a):nx(n,a))&&(U=Yl(U,"onBeforeInput"),0<U.length&&(re=new ff("onBeforeInput","beforeinput",null,a,re),se.push({event:re,listeners:U}),re.data=Oe))}zf(se,i)})}function Os(n,i,a){return{instance:n,listener:i,currentTarget:a}}function Yl(n,i){for(var a=i+"Capture",u=[];n!==null;){var m=n,v=m.stateNode;m.tag===5&&v!==null&&(m=v,v=Dt(n,a),v!=null&&u.unshift(Os(n,v,m)),v=Dt(n,i),v!=null&&u.push(Os(n,v,m))),n=n.return}return u}function $i(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5);return n||null}function Bf(n,i,a,u,m){for(var v=i._reactName,w=[];a!==null&&a!==u;){var A=a,M=A.alternate,U=A.stateNode;if(M!==null&&M===u)break;A.tag===5&&U!==null&&(A=U,m?(M=Dt(a,v),M!=null&&w.unshift(Os(a,M,A))):m||(M=Dt(a,v),M!=null&&w.push(Os(a,M,A)))),a=a.return}w.length!==0&&n.push({event:i,listeners:w})}var gx=/\r\n?/g,yx=/\u0000|\uFFFD/g;function Ff(n){return(typeof n=="string"?n:""+n).replace(gx,`
|
|
38
|
-
`).replace(yx,"")}function Ql(n,i,a){if(i=Ff(i),Ff(n)!==i&&a)throw Error(r(425))}function Xl(){}var Za=null,Ya=null;function Qa(n,i){return n==="textarea"||n==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var Xa=typeof setTimeout=="function"?setTimeout:void 0,vx=typeof clearTimeout=="function"?clearTimeout:void 0,Vf=typeof Promise=="function"?Promise:void 0,xx=typeof queueMicrotask=="function"?queueMicrotask:typeof Vf<"u"?function(n){return Vf.resolve(null).then(n).catch(kx)}:Xa;function kx(n){setTimeout(function(){throw n})}function Ga(n,i){var a=i,u=0;do{var m=a.nextSibling;if(n.removeChild(a),m&&m.nodeType===8)if(a=m.data,a==="/$"){if(u===0){n.removeChild(m),js(i);return}u--}else a!=="$"&&a!=="$?"&&a!=="$!"||u++;a=m}while(a);js(i)}function Ur(n){for(;n!=null;n=n.nextSibling){var i=n.nodeType;if(i===1||i===3)break;if(i===8){if(i=n.data,i==="$"||i==="$!"||i==="$?")break;if(i==="/$")return null}}return n}function Uf(n){n=n.previousSibling;for(var i=0;n;){if(n.nodeType===8){var a=n.data;if(a==="$"||a==="$!"||a==="$?"){if(i===0)return n;i--}else a==="/$"&&i++}n=n.previousSibling}return null}var Bi=Math.random().toString(36).slice(2),mr="__reactFiber$"+Bi,zs="__reactProps$"+Bi,jr="__reactContainer$"+Bi,Ja="__reactEvents$"+Bi,_x="__reactListeners$"+Bi,wx="__reactHandles$"+Bi;function hi(n){var i=n[mr];if(i)return i;for(var a=n.parentNode;a;){if(i=a[jr]||a[mr]){if(a=i.alternate,i.child!==null||a!==null&&a.child!==null)for(n=Uf(n);n!==null;){if(a=n[mr])return a;n=Uf(n)}return i}n=a,a=n.parentNode}return null}function $s(n){return n=n[mr]||n[jr],!n||n.tag!==5&&n.tag!==6&&n.tag!==13&&n.tag!==3?null:n}function Fi(n){if(n.tag===5||n.tag===6)return n.stateNode;throw Error(r(33))}function Gl(n){return n[zs]||null}var ec=[],Vi=-1;function Hr(n){return{current:n}}function jt(n){0>Vi||(n.current=ec[Vi],ec[Vi]=null,Vi--)}function wt(n,i){Vi++,ec[Vi]=n.current,n.current=i}var Wr={},pn=Hr(Wr),jn=Hr(!1),mi=Wr;function Ui(n,i){var a=n.type.contextTypes;if(!a)return Wr;var u=n.stateNode;if(u&&u.__reactInternalMemoizedUnmaskedChildContext===i)return u.__reactInternalMemoizedMaskedChildContext;var m={},v;for(v in a)m[v]=i[v];return u&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=i,n.__reactInternalMemoizedMaskedChildContext=m),m}function En(n){return n=n.childContextTypes,n!=null}function Jl(){jt(jn),jt(pn)}function Hf(n,i,a){if(pn.current!==Wr)throw Error(r(168));wt(pn,i),wt(jn,a)}function Wf(n,i,a){var u=n.stateNode;if(i=i.childContextTypes,typeof u.getChildContext!="function")return a;u=u.getChildContext();for(var m in u)if(!(m in i))throw Error(r(108,Be(n)||"Unknown",m));return N({},a,u)}function eo(n){return n=(n=n.stateNode)&&n.__reactInternalMemoizedMergedChildContext||Wr,mi=pn.current,wt(pn,n),wt(jn,jn.current),!0}function qf(n,i,a){var u=n.stateNode;if(!u)throw Error(r(169));a?(n=Wf(n,i,mi),u.__reactInternalMemoizedMergedChildContext=n,jt(jn),jt(pn),wt(pn,n)):jt(jn),wt(jn,a)}var Er=null,to=!1,tc=!1;function Kf(n){Er===null?Er=[n]:Er.push(n)}function bx(n){to=!0,Kf(n)}function qr(){if(!tc&&Er!==null){tc=!0;var n=0,i=mt;try{var a=Er;for(mt=1;n<a.length;n++){var u=a[n];do u=u(!0);while(u!==null)}Er=null,to=!1}catch(m){throw Er!==null&&(Er=Er.slice(n+1)),Zd(ba,qr),m}finally{mt=i,tc=!1}}return null}var Hi=[],Wi=0,no=null,ro=0,Wn=[],qn=0,gi=null,Tr=1,Ir="";function yi(n,i){Hi[Wi++]=ro,Hi[Wi++]=no,no=n,ro=i}function Zf(n,i,a){Wn[qn++]=Tr,Wn[qn++]=Ir,Wn[qn++]=gi,gi=n;var u=Tr;n=Ir;var m=32-ir(u)-1;u&=~(1<<m),a+=1;var v=32-ir(i)+m;if(30<v){var w=m-m%5;v=(u&(1<<w)-1).toString(32),u>>=w,m-=w,Tr=1<<32-ir(i)+m|a<<m|u,Ir=v+n}else Tr=1<<v|a<<m|u,Ir=n}function nc(n){n.return!==null&&(yi(n,1),Zf(n,1,0))}function rc(n){for(;n===no;)no=Hi[--Wi],Hi[Wi]=null,ro=Hi[--Wi],Hi[Wi]=null;for(;n===gi;)gi=Wn[--qn],Wn[qn]=null,Ir=Wn[--qn],Wn[qn]=null,Tr=Wn[--qn],Wn[qn]=null}var zn=null,$n=null,Tt=!1,lr=null;function Yf(n,i){var a=Qn(5,null,null,0);a.elementType="DELETED",a.stateNode=i,a.return=n,i=n.deletions,i===null?(n.deletions=[a],n.flags|=16):i.push(a)}function Qf(n,i){switch(n.tag){case 5:var a=n.type;return i=i.nodeType!==1||a.toLowerCase()!==i.nodeName.toLowerCase()?null:i,i!==null?(n.stateNode=i,zn=n,$n=Ur(i.firstChild),!0):!1;case 6:return i=n.pendingProps===""||i.nodeType!==3?null:i,i!==null?(n.stateNode=i,zn=n,$n=null,!0):!1;case 13:return i=i.nodeType!==8?null:i,i!==null?(a=gi!==null?{id:Tr,overflow:Ir}:null,n.memoizedState={dehydrated:i,treeContext:a,retryLane:1073741824},a=Qn(18,null,null,0),a.stateNode=i,a.return=n,n.child=a,zn=n,$n=null,!0):!1;default:return!1}}function ic(n){return(n.mode&1)!==0&&(n.flags&128)===0}function sc(n){if(Tt){var i=$n;if(i){var a=i;if(!Qf(n,i)){if(ic(n))throw Error(r(418));i=Ur(a.nextSibling);var u=zn;i&&Qf(n,i)?Yf(u,a):(n.flags=n.flags&-4097|2,Tt=!1,zn=n)}}else{if(ic(n))throw Error(r(418));n.flags=n.flags&-4097|2,Tt=!1,zn=n}}}function Xf(n){for(n=n.return;n!==null&&n.tag!==5&&n.tag!==3&&n.tag!==13;)n=n.return;zn=n}function io(n){if(n!==zn)return!1;if(!Tt)return Xf(n),Tt=!0,!1;var i;if((i=n.tag!==3)&&!(i=n.tag!==5)&&(i=n.type,i=i!=="head"&&i!=="body"&&!Qa(n.type,n.memoizedProps)),i&&(i=$n)){if(ic(n))throw Gf(),Error(r(418));for(;i;)Yf(n,i),i=Ur(i.nextSibling)}if(Xf(n),n.tag===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(317));e:{for(n=n.nextSibling,i=0;n;){if(n.nodeType===8){var a=n.data;if(a==="/$"){if(i===0){$n=Ur(n.nextSibling);break e}i--}else a!=="$"&&a!=="$!"&&a!=="$?"||i++}n=n.nextSibling}$n=null}}else $n=zn?Ur(n.stateNode.nextSibling):null;return!0}function Gf(){for(var n=$n;n;)n=Ur(n.nextSibling)}function qi(){$n=zn=null,Tt=!1}function lc(n){lr===null?lr=[n]:lr.push(n)}var Sx=R.ReactCurrentBatchConfig;function Bs(n,i,a){if(n=a.ref,n!==null&&typeof n!="function"&&typeof n!="object"){if(a._owner){if(a=a._owner,a){if(a.tag!==1)throw Error(r(309));var u=a.stateNode}if(!u)throw Error(r(147,n));var m=u,v=""+n;return i!==null&&i.ref!==null&&typeof i.ref=="function"&&i.ref._stringRef===v?i.ref:(i=function(w){var A=m.refs;w===null?delete A[v]:A[v]=w},i._stringRef=v,i)}if(typeof n!="string")throw Error(r(284));if(!a._owner)throw Error(r(290,n))}return n}function so(n,i){throw n=Object.prototype.toString.call(i),Error(r(31,n==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":n))}function Jf(n){var i=n._init;return i(n._payload)}function ep(n){function i($,O){if(n){var B=$.deletions;B===null?($.deletions=[O],$.flags|=16):B.push(O)}}function a($,O){if(!n)return null;for(;O!==null;)i($,O),O=O.sibling;return null}function u($,O){for($=new Map;O!==null;)O.key!==null?$.set(O.key,O):$.set(O.index,O),O=O.sibling;return $}function m($,O){return $=ei($,O),$.index=0,$.sibling=null,$}function v($,O,B){return $.index=B,n?(B=$.alternate,B!==null?(B=B.index,B<O?($.flags|=2,O):B):($.flags|=2,O)):($.flags|=1048576,O)}function w($){return n&&$.alternate===null&&($.flags|=2),$}function A($,O,B,ue){return O===null||O.tag!==6?(O=Xc(B,$.mode,ue),O.return=$,O):(O=m(O,B),O.return=$,O)}function M($,O,B,ue){var Ae=B.type;return Ae===H?re($,O,B.props.children,ue,B.key):O!==null&&(O.elementType===Ae||typeof Ae=="object"&&Ae!==null&&Ae.$$typeof===ge&&Jf(Ae)===O.type)?(ue=m(O,B.props),ue.ref=Bs($,O,B),ue.return=$,ue):(ue=Io(B.type,B.key,B.props,null,$.mode,ue),ue.ref=Bs($,O,B),ue.return=$,ue)}function U($,O,B,ue){return O===null||O.tag!==4||O.stateNode.containerInfo!==B.containerInfo||O.stateNode.implementation!==B.implementation?(O=Gc(B,$.mode,ue),O.return=$,O):(O=m(O,B.children||[]),O.return=$,O)}function re($,O,B,ue,Ae){return O===null||O.tag!==7?(O=Ci(B,$.mode,ue,Ae),O.return=$,O):(O=m(O,B),O.return=$,O)}function se($,O,B){if(typeof O=="string"&&O!==""||typeof O=="number")return O=Xc(""+O,$.mode,B),O.return=$,O;if(typeof O=="object"&&O!==null){switch(O.$$typeof){case P:return B=Io(O.type,O.key,O.props,null,$.mode,B),B.ref=Bs($,null,O),B.return=$,B;case j:return O=Gc(O,$.mode,B),O.return=$,O;case ge:var ue=O._init;return se($,ue(O._payload),B)}if(le(O)||fe(O))return O=Ci(O,$.mode,B,null),O.return=$,O;so($,O)}return null}function te($,O,B,ue){var Ae=O!==null?O.key:null;if(typeof B=="string"&&B!==""||typeof B=="number")return Ae!==null?null:A($,O,""+B,ue);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case P:return B.key===Ae?M($,O,B,ue):null;case j:return B.key===Ae?U($,O,B,ue):null;case ge:return Ae=B._init,te($,O,Ae(B._payload),ue)}if(le(B)||fe(B))return Ae!==null?null:re($,O,B,ue,null);so($,B)}return null}function _e($,O,B,ue,Ae){if(typeof ue=="string"&&ue!==""||typeof ue=="number")return $=$.get(B)||null,A(O,$,""+ue,Ae);if(typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case P:return $=$.get(ue.key===null?B:ue.key)||null,M(O,$,ue,Ae);case j:return $=$.get(ue.key===null?B:ue.key)||null,U(O,$,ue,Ae);case ge:var Me=ue._init;return _e($,O,B,Me(ue._payload),Ae)}if(le(ue)||fe(ue))return $=$.get(B)||null,re(O,$,ue,Ae,null);so(O,ue)}return null}function Ne($,O,B,ue){for(var Ae=null,Me=null,Oe=O,He=O=0,rn=null;Oe!==null&&He<B.length;He++){Oe.index>He?(rn=Oe,Oe=null):rn=Oe.sibling;var at=te($,Oe,B[He],ue);if(at===null){Oe===null&&(Oe=rn);break}n&&Oe&&at.alternate===null&&i($,Oe),O=v(at,O,He),Me===null?Ae=at:Me.sibling=at,Me=at,Oe=rn}if(He===B.length)return a($,Oe),Tt&&yi($,He),Ae;if(Oe===null){for(;He<B.length;He++)Oe=se($,B[He],ue),Oe!==null&&(O=v(Oe,O,He),Me===null?Ae=Oe:Me.sibling=Oe,Me=Oe);return Tt&&yi($,He),Ae}for(Oe=u($,Oe);He<B.length;He++)rn=_e(Oe,$,He,B[He],ue),rn!==null&&(n&&rn.alternate!==null&&Oe.delete(rn.key===null?He:rn.key),O=v(rn,O,He),Me===null?Ae=rn:Me.sibling=rn,Me=rn);return n&&Oe.forEach(function(ti){return i($,ti)}),Tt&&yi($,He),Ae}function Ee($,O,B,ue){var Ae=fe(B);if(typeof Ae!="function")throw Error(r(150));if(B=Ae.call(B),B==null)throw Error(r(151));for(var Me=Ae=null,Oe=O,He=O=0,rn=null,at=B.next();Oe!==null&&!at.done;He++,at=B.next()){Oe.index>He?(rn=Oe,Oe=null):rn=Oe.sibling;var ti=te($,Oe,at.value,ue);if(ti===null){Oe===null&&(Oe=rn);break}n&&Oe&&ti.alternate===null&&i($,Oe),O=v(ti,O,He),Me===null?Ae=ti:Me.sibling=ti,Me=ti,Oe=rn}if(at.done)return a($,Oe),Tt&&yi($,He),Ae;if(Oe===null){for(;!at.done;He++,at=B.next())at=se($,at.value,ue),at!==null&&(O=v(at,O,He),Me===null?Ae=at:Me.sibling=at,Me=at);return Tt&&yi($,He),Ae}for(Oe=u($,Oe);!at.done;He++,at=B.next())at=_e(Oe,$,He,at.value,ue),at!==null&&(n&&at.alternate!==null&&Oe.delete(at.key===null?He:at.key),O=v(at,O,He),Me===null?Ae=at:Me.sibling=at,Me=at);return n&&Oe.forEach(function(rk){return i($,rk)}),Tt&&yi($,He),Ae}function Vt($,O,B,ue){if(typeof B=="object"&&B!==null&&B.type===H&&B.key===null&&(B=B.props.children),typeof B=="object"&&B!==null){switch(B.$$typeof){case P:e:{for(var Ae=B.key,Me=O;Me!==null;){if(Me.key===Ae){if(Ae=B.type,Ae===H){if(Me.tag===7){a($,Me.sibling),O=m(Me,B.props.children),O.return=$,$=O;break e}}else if(Me.elementType===Ae||typeof Ae=="object"&&Ae!==null&&Ae.$$typeof===ge&&Jf(Ae)===Me.type){a($,Me.sibling),O=m(Me,B.props),O.ref=Bs($,Me,B),O.return=$,$=O;break e}a($,Me);break}else i($,Me);Me=Me.sibling}B.type===H?(O=Ci(B.props.children,$.mode,ue,B.key),O.return=$,$=O):(ue=Io(B.type,B.key,B.props,null,$.mode,ue),ue.ref=Bs($,O,B),ue.return=$,$=ue)}return w($);case j:e:{for(Me=B.key;O!==null;){if(O.key===Me)if(O.tag===4&&O.stateNode.containerInfo===B.containerInfo&&O.stateNode.implementation===B.implementation){a($,O.sibling),O=m(O,B.children||[]),O.return=$,$=O;break e}else{a($,O);break}else i($,O);O=O.sibling}O=Gc(B,$.mode,ue),O.return=$,$=O}return w($);case ge:return Me=B._init,Vt($,O,Me(B._payload),ue)}if(le(B))return Ne($,O,B,ue);if(fe(B))return Ee($,O,B,ue);so($,B)}return typeof B=="string"&&B!==""||typeof B=="number"?(B=""+B,O!==null&&O.tag===6?(a($,O.sibling),O=m(O,B),O.return=$,$=O):(a($,O),O=Xc(B,$.mode,ue),O.return=$,$=O),w($)):a($,O)}return Vt}var Ki=ep(!0),tp=ep(!1),lo=Hr(null),oo=null,Zi=null,oc=null;function ac(){oc=Zi=oo=null}function cc(n){var i=lo.current;jt(lo),n._currentValue=i}function uc(n,i,a){for(;n!==null;){var u=n.alternate;if((n.childLanes&i)!==i?(n.childLanes|=i,u!==null&&(u.childLanes|=i)):u!==null&&(u.childLanes&i)!==i&&(u.childLanes|=i),n===a)break;n=n.return}}function Yi(n,i){oo=n,oc=Zi=null,n=n.dependencies,n!==null&&n.firstContext!==null&&((n.lanes&i)!==0&&(Tn=!0),n.firstContext=null)}function Kn(n){var i=n._currentValue;if(oc!==n)if(n={context:n,memoizedValue:i,next:null},Zi===null){if(oo===null)throw Error(r(308));Zi=n,oo.dependencies={lanes:0,firstContext:n}}else Zi=Zi.next=n;return i}var vi=null;function dc(n){vi===null?vi=[n]:vi.push(n)}function np(n,i,a,u){var m=i.interleaved;return m===null?(a.next=a,dc(i)):(a.next=m.next,m.next=a),i.interleaved=a,Ar(n,u)}function Ar(n,i){n.lanes|=i;var a=n.alternate;for(a!==null&&(a.lanes|=i),a=n,n=n.return;n!==null;)n.childLanes|=i,a=n.alternate,a!==null&&(a.childLanes|=i),a=n,n=n.return;return a.tag===3?a.stateNode:null}var Kr=!1;function fc(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function rp(n,i){n=n.updateQueue,i.updateQueue===n&&(i.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,effects:n.effects})}function Dr(n,i){return{eventTime:n,lane:i,tag:0,payload:null,callback:null,next:null}}function Zr(n,i,a){var u=n.updateQueue;if(u===null)return null;if(u=u.shared,(lt&2)!==0){var m=u.pending;return m===null?i.next=i:(i.next=m.next,m.next=i),u.pending=i,Ar(n,a)}return m=u.interleaved,m===null?(i.next=i,dc(u)):(i.next=m.next,m.next=i),u.interleaved=i,Ar(n,a)}function ao(n,i,a){if(i=i.updateQueue,i!==null&&(i=i.shared,(a&4194240)!==0)){var u=i.lanes;u&=n.pendingLanes,a|=u,i.lanes=a,Na(n,a)}}function ip(n,i){var a=n.updateQueue,u=n.alternate;if(u!==null&&(u=u.updateQueue,a===u)){var m=null,v=null;if(a=a.firstBaseUpdate,a!==null){do{var w={eventTime:a.eventTime,lane:a.lane,tag:a.tag,payload:a.payload,callback:a.callback,next:null};v===null?m=v=w:v=v.next=w,a=a.next}while(a!==null);v===null?m=v=i:v=v.next=i}else m=v=i;a={baseState:u.baseState,firstBaseUpdate:m,lastBaseUpdate:v,shared:u.shared,effects:u.effects},n.updateQueue=a;return}n=a.lastBaseUpdate,n===null?a.firstBaseUpdate=i:n.next=i,a.lastBaseUpdate=i}function co(n,i,a,u){var m=n.updateQueue;Kr=!1;var v=m.firstBaseUpdate,w=m.lastBaseUpdate,A=m.shared.pending;if(A!==null){m.shared.pending=null;var M=A,U=M.next;M.next=null,w===null?v=U:w.next=U,w=M;var re=n.alternate;re!==null&&(re=re.updateQueue,A=re.lastBaseUpdate,A!==w&&(A===null?re.firstBaseUpdate=U:A.next=U,re.lastBaseUpdate=M))}if(v!==null){var se=m.baseState;w=0,re=U=M=null,A=v;do{var te=A.lane,_e=A.eventTime;if((u&te)===te){re!==null&&(re=re.next={eventTime:_e,lane:0,tag:A.tag,payload:A.payload,callback:A.callback,next:null});e:{var Ne=n,Ee=A;switch(te=i,_e=a,Ee.tag){case 1:if(Ne=Ee.payload,typeof Ne=="function"){se=Ne.call(_e,se,te);break e}se=Ne;break e;case 3:Ne.flags=Ne.flags&-65537|128;case 0:if(Ne=Ee.payload,te=typeof Ne=="function"?Ne.call(_e,se,te):Ne,te==null)break e;se=N({},se,te);break e;case 2:Kr=!0}}A.callback!==null&&A.lane!==0&&(n.flags|=64,te=m.effects,te===null?m.effects=[A]:te.push(A))}else _e={eventTime:_e,lane:te,tag:A.tag,payload:A.payload,callback:A.callback,next:null},re===null?(U=re=_e,M=se):re=re.next=_e,w|=te;if(A=A.next,A===null){if(A=m.shared.pending,A===null)break;te=A,A=te.next,te.next=null,m.lastBaseUpdate=te,m.shared.pending=null}}while(!0);if(re===null&&(M=se),m.baseState=M,m.firstBaseUpdate=U,m.lastBaseUpdate=re,i=m.shared.interleaved,i!==null){m=i;do w|=m.lane,m=m.next;while(m!==i)}else v===null&&(m.shared.lanes=0);_i|=w,n.lanes=w,n.memoizedState=se}}function sp(n,i,a){if(n=i.effects,i.effects=null,n!==null)for(i=0;i<n.length;i++){var u=n[i],m=u.callback;if(m!==null){if(u.callback=null,u=a,typeof m!="function")throw Error(r(191,m));m.call(u)}}}var Fs={},gr=Hr(Fs),Vs=Hr(Fs),Us=Hr(Fs);function xi(n){if(n===Fs)throw Error(r(174));return n}function pc(n,i){switch(wt(Us,i),wt(Vs,n),wt(gr,Fs),n=i.nodeType,n){case 9:case 11:i=(i=i.documentElement)?i.namespaceURI:ie(null,"");break;default:n=n===8?i.parentNode:i,i=n.namespaceURI||null,n=n.tagName,i=ie(i,n)}jt(gr),wt(gr,i)}function Qi(){jt(gr),jt(Vs),jt(Us)}function lp(n){xi(Us.current);var i=xi(gr.current),a=ie(i,n.type);i!==a&&(wt(Vs,n),wt(gr,a))}function hc(n){Vs.current===n&&(jt(gr),jt(Vs))}var Rt=Hr(0);function uo(n){for(var i=n;i!==null;){if(i.tag===13){var a=i.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||a.data==="$!"))return i}else if(i.tag===19&&i.memoizedProps.revealOrder!==void 0){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===n)break;for(;i.sibling===null;){if(i.return===null||i.return===n)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var mc=[];function gc(){for(var n=0;n<mc.length;n++)mc[n]._workInProgressVersionPrimary=null;mc.length=0}var fo=R.ReactCurrentDispatcher,yc=R.ReactCurrentBatchConfig,ki=0,Pt=null,Xt=null,tn=null,po=!1,Hs=!1,Ws=0,Cx=0;function hn(){throw Error(r(321))}function vc(n,i){if(i===null)return!1;for(var a=0;a<i.length&&a<n.length;a++)if(!sr(n[a],i[a]))return!1;return!0}function xc(n,i,a,u,m,v){if(ki=v,Pt=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,fo.current=n===null||n.memoizedState===null?Tx:Ix,n=a(u,m),Hs){v=0;do{if(Hs=!1,Ws=0,25<=v)throw Error(r(301));v+=1,tn=Xt=null,i.updateQueue=null,fo.current=Ax,n=a(u,m)}while(Hs)}if(fo.current=go,i=Xt!==null&&Xt.next!==null,ki=0,tn=Xt=Pt=null,po=!1,i)throw Error(r(300));return n}function kc(){var n=Ws!==0;return Ws=0,n}function yr(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return tn===null?Pt.memoizedState=tn=n:tn=tn.next=n,tn}function Zn(){if(Xt===null){var n=Pt.alternate;n=n!==null?n.memoizedState:null}else n=Xt.next;var i=tn===null?Pt.memoizedState:tn.next;if(i!==null)tn=i,Xt=n;else{if(n===null)throw Error(r(310));Xt=n,n={memoizedState:Xt.memoizedState,baseState:Xt.baseState,baseQueue:Xt.baseQueue,queue:Xt.queue,next:null},tn===null?Pt.memoizedState=tn=n:tn=tn.next=n}return tn}function qs(n,i){return typeof i=="function"?i(n):i}function _c(n){var i=Zn(),a=i.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=n;var u=Xt,m=u.baseQueue,v=a.pending;if(v!==null){if(m!==null){var w=m.next;m.next=v.next,v.next=w}u.baseQueue=m=v,a.pending=null}if(m!==null){v=m.next,u=u.baseState;var A=w=null,M=null,U=v;do{var re=U.lane;if((ki&re)===re)M!==null&&(M=M.next={lane:0,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null}),u=U.hasEagerState?U.eagerState:n(u,U.action);else{var se={lane:re,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null};M===null?(A=M=se,w=u):M=M.next=se,Pt.lanes|=re,_i|=re}U=U.next}while(U!==null&&U!==v);M===null?w=u:M.next=A,sr(u,i.memoizedState)||(Tn=!0),i.memoizedState=u,i.baseState=w,i.baseQueue=M,a.lastRenderedState=u}if(n=a.interleaved,n!==null){m=n;do v=m.lane,Pt.lanes|=v,_i|=v,m=m.next;while(m!==n)}else m===null&&(a.lanes=0);return[i.memoizedState,a.dispatch]}function wc(n){var i=Zn(),a=i.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=n;var u=a.dispatch,m=a.pending,v=i.memoizedState;if(m!==null){a.pending=null;var w=m=m.next;do v=n(v,w.action),w=w.next;while(w!==m);sr(v,i.memoizedState)||(Tn=!0),i.memoizedState=v,i.baseQueue===null&&(i.baseState=v),a.lastRenderedState=v}return[v,u]}function op(){}function ap(n,i){var a=Pt,u=Zn(),m=i(),v=!sr(u.memoizedState,m);if(v&&(u.memoizedState=m,Tn=!0),u=u.queue,bc(dp.bind(null,a,u,n),[n]),u.getSnapshot!==i||v||tn!==null&&tn.memoizedState.tag&1){if(a.flags|=2048,Ks(9,up.bind(null,a,u,m,i),void 0,null),nn===null)throw Error(r(349));(ki&30)!==0||cp(a,i,m)}return m}function cp(n,i,a){n.flags|=16384,n={getSnapshot:i,value:a},i=Pt.updateQueue,i===null?(i={lastEffect:null,stores:null},Pt.updateQueue=i,i.stores=[n]):(a=i.stores,a===null?i.stores=[n]:a.push(n))}function up(n,i,a,u){i.value=a,i.getSnapshot=u,fp(i)&&pp(n)}function dp(n,i,a){return a(function(){fp(i)&&pp(n)})}function fp(n){var i=n.getSnapshot;n=n.value;try{var a=i();return!sr(n,a)}catch{return!0}}function pp(n){var i=Ar(n,1);i!==null&&ur(i,n,1,-1)}function hp(n){var i=yr();return typeof n=="function"&&(n=n()),i.memoizedState=i.baseState=n,n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:qs,lastRenderedState:n},i.queue=n,n=n.dispatch=Ex.bind(null,Pt,n),[i.memoizedState,n]}function Ks(n,i,a,u){return n={tag:n,create:i,destroy:a,deps:u,next:null},i=Pt.updateQueue,i===null?(i={lastEffect:null,stores:null},Pt.updateQueue=i,i.lastEffect=n.next=n):(a=i.lastEffect,a===null?i.lastEffect=n.next=n:(u=a.next,a.next=n,n.next=u,i.lastEffect=n)),n}function mp(){return Zn().memoizedState}function ho(n,i,a,u){var m=yr();Pt.flags|=n,m.memoizedState=Ks(1|i,a,void 0,u===void 0?null:u)}function mo(n,i,a,u){var m=Zn();u=u===void 0?null:u;var v=void 0;if(Xt!==null){var w=Xt.memoizedState;if(v=w.destroy,u!==null&&vc(u,w.deps)){m.memoizedState=Ks(i,a,v,u);return}}Pt.flags|=n,m.memoizedState=Ks(1|i,a,v,u)}function gp(n,i){return ho(8390656,8,n,i)}function bc(n,i){return mo(2048,8,n,i)}function yp(n,i){return mo(4,2,n,i)}function vp(n,i){return mo(4,4,n,i)}function xp(n,i){if(typeof i=="function")return n=n(),i(n),function(){i(null)};if(i!=null)return n=n(),i.current=n,function(){i.current=null}}function kp(n,i,a){return a=a!=null?a.concat([n]):null,mo(4,4,xp.bind(null,i,n),a)}function Sc(){}function _p(n,i){var a=Zn();i=i===void 0?null:i;var u=a.memoizedState;return u!==null&&i!==null&&vc(i,u[1])?u[0]:(a.memoizedState=[n,i],n)}function wp(n,i){var a=Zn();i=i===void 0?null:i;var u=a.memoizedState;return u!==null&&i!==null&&vc(i,u[1])?u[0]:(n=n(),a.memoizedState=[n,i],n)}function bp(n,i,a){return(ki&21)===0?(n.baseState&&(n.baseState=!1,Tn=!0),n.memoizedState=a):(sr(a,i)||(a=Gd(),Pt.lanes|=a,_i|=a,n.baseState=!0),i)}function Nx(n,i){var a=mt;mt=a!==0&&4>a?a:4,n(!0);var u=yc.transition;yc.transition={};try{n(!1),i()}finally{mt=a,yc.transition=u}}function Sp(){return Zn().memoizedState}function jx(n,i,a){var u=Gr(n);if(a={lane:u,action:a,hasEagerState:!1,eagerState:null,next:null},Cp(n))Np(i,a);else if(a=np(n,i,a,u),a!==null){var m=bn();ur(a,n,u,m),jp(a,i,u)}}function Ex(n,i,a){var u=Gr(n),m={lane:u,action:a,hasEagerState:!1,eagerState:null,next:null};if(Cp(n))Np(i,m);else{var v=n.alternate;if(n.lanes===0&&(v===null||v.lanes===0)&&(v=i.lastRenderedReducer,v!==null))try{var w=i.lastRenderedState,A=v(w,a);if(m.hasEagerState=!0,m.eagerState=A,sr(A,w)){var M=i.interleaved;M===null?(m.next=m,dc(i)):(m.next=M.next,M.next=m),i.interleaved=m;return}}catch{}finally{}a=np(n,i,m,u),a!==null&&(m=bn(),ur(a,n,u,m),jp(a,i,u))}}function Cp(n){var i=n.alternate;return n===Pt||i!==null&&i===Pt}function Np(n,i){Hs=po=!0;var a=n.pending;a===null?i.next=i:(i.next=a.next,a.next=i),n.pending=i}function jp(n,i,a){if((a&4194240)!==0){var u=i.lanes;u&=n.pendingLanes,a|=u,i.lanes=a,Na(n,a)}}var go={readContext:Kn,useCallback:hn,useContext:hn,useEffect:hn,useImperativeHandle:hn,useInsertionEffect:hn,useLayoutEffect:hn,useMemo:hn,useReducer:hn,useRef:hn,useState:hn,useDebugValue:hn,useDeferredValue:hn,useTransition:hn,useMutableSource:hn,useSyncExternalStore:hn,useId:hn,unstable_isNewReconciler:!1},Tx={readContext:Kn,useCallback:function(n,i){return yr().memoizedState=[n,i===void 0?null:i],n},useContext:Kn,useEffect:gp,useImperativeHandle:function(n,i,a){return a=a!=null?a.concat([n]):null,ho(4194308,4,xp.bind(null,i,n),a)},useLayoutEffect:function(n,i){return ho(4194308,4,n,i)},useInsertionEffect:function(n,i){return ho(4,2,n,i)},useMemo:function(n,i){var a=yr();return i=i===void 0?null:i,n=n(),a.memoizedState=[n,i],n},useReducer:function(n,i,a){var u=yr();return i=a!==void 0?a(i):i,u.memoizedState=u.baseState=i,n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:i},u.queue=n,n=n.dispatch=jx.bind(null,Pt,n),[u.memoizedState,n]},useRef:function(n){var i=yr();return n={current:n},i.memoizedState=n},useState:hp,useDebugValue:Sc,useDeferredValue:function(n){return yr().memoizedState=n},useTransition:function(){var n=hp(!1),i=n[0];return n=Nx.bind(null,n[1]),yr().memoizedState=n,[i,n]},useMutableSource:function(){},useSyncExternalStore:function(n,i,a){var u=Pt,m=yr();if(Tt){if(a===void 0)throw Error(r(407));a=a()}else{if(a=i(),nn===null)throw Error(r(349));(ki&30)!==0||cp(u,i,a)}m.memoizedState=a;var v={value:a,getSnapshot:i};return m.queue=v,gp(dp.bind(null,u,v,n),[n]),u.flags|=2048,Ks(9,up.bind(null,u,v,a,i),void 0,null),a},useId:function(){var n=yr(),i=nn.identifierPrefix;if(Tt){var a=Ir,u=Tr;a=(u&~(1<<32-ir(u)-1)).toString(32)+a,i=":"+i+"R"+a,a=Ws++,0<a&&(i+="H"+a.toString(32)),i+=":"}else a=Cx++,i=":"+i+"r"+a.toString(32)+":";return n.memoizedState=i},unstable_isNewReconciler:!1},Ix={readContext:Kn,useCallback:_p,useContext:Kn,useEffect:bc,useImperativeHandle:kp,useInsertionEffect:yp,useLayoutEffect:vp,useMemo:wp,useReducer:_c,useRef:mp,useState:function(){return _c(qs)},useDebugValue:Sc,useDeferredValue:function(n){var i=Zn();return bp(i,Xt.memoizedState,n)},useTransition:function(){var n=_c(qs)[0],i=Zn().memoizedState;return[n,i]},useMutableSource:op,useSyncExternalStore:ap,useId:Sp,unstable_isNewReconciler:!1},Ax={readContext:Kn,useCallback:_p,useContext:Kn,useEffect:bc,useImperativeHandle:kp,useInsertionEffect:yp,useLayoutEffect:vp,useMemo:wp,useReducer:wc,useRef:mp,useState:function(){return wc(qs)},useDebugValue:Sc,useDeferredValue:function(n){var i=Zn();return Xt===null?i.memoizedState=n:bp(i,Xt.memoizedState,n)},useTransition:function(){var n=wc(qs)[0],i=Zn().memoizedState;return[n,i]},useMutableSource:op,useSyncExternalStore:ap,useId:Sp,unstable_isNewReconciler:!1};function or(n,i){if(n&&n.defaultProps){i=N({},i),n=n.defaultProps;for(var a in n)i[a]===void 0&&(i[a]=n[a]);return i}return i}function Cc(n,i,a,u){i=n.memoizedState,a=a(u,i),a=a==null?i:N({},i,a),n.memoizedState=a,n.lanes===0&&(n.updateQueue.baseState=a)}var yo={isMounted:function(n){return(n=n._reactInternals)?pi(n)===n:!1},enqueueSetState:function(n,i,a){n=n._reactInternals;var u=bn(),m=Gr(n),v=Dr(u,m);v.payload=i,a!=null&&(v.callback=a),i=Zr(n,v,m),i!==null&&(ur(i,n,m,u),ao(i,n,m))},enqueueReplaceState:function(n,i,a){n=n._reactInternals;var u=bn(),m=Gr(n),v=Dr(u,m);v.tag=1,v.payload=i,a!=null&&(v.callback=a),i=Zr(n,v,m),i!==null&&(ur(i,n,m,u),ao(i,n,m))},enqueueForceUpdate:function(n,i){n=n._reactInternals;var a=bn(),u=Gr(n),m=Dr(a,u);m.tag=2,i!=null&&(m.callback=i),i=Zr(n,m,u),i!==null&&(ur(i,n,u,a),ao(i,n,u))}};function Ep(n,i,a,u,m,v,w){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(u,v,w):i.prototype&&i.prototype.isPureReactComponent?!Rs(a,u)||!Rs(m,v):!0}function Tp(n,i,a){var u=!1,m=Wr,v=i.contextType;return typeof v=="object"&&v!==null?v=Kn(v):(m=En(i)?mi:pn.current,u=i.contextTypes,v=(u=u!=null)?Ui(n,m):Wr),i=new i(a,v),n.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=yo,n.stateNode=i,i._reactInternals=n,u&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=m,n.__reactInternalMemoizedMaskedChildContext=v),i}function Ip(n,i,a,u){n=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(a,u),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(a,u),i.state!==n&&yo.enqueueReplaceState(i,i.state,null)}function Nc(n,i,a,u){var m=n.stateNode;m.props=a,m.state=n.memoizedState,m.refs={},fc(n);var v=i.contextType;typeof v=="object"&&v!==null?m.context=Kn(v):(v=En(i)?mi:pn.current,m.context=Ui(n,v)),m.state=n.memoizedState,v=i.getDerivedStateFromProps,typeof v=="function"&&(Cc(n,i,v,a),m.state=n.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof m.getSnapshotBeforeUpdate=="function"||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(i=m.state,typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount(),i!==m.state&&yo.enqueueReplaceState(m,m.state,null),co(n,a,m,u),m.state=n.memoizedState),typeof m.componentDidMount=="function"&&(n.flags|=4194308)}function Xi(n,i){try{var a="",u=i;do a+=ke(u),u=u.return;while(u);var m=a}catch(v){m=`
|
|
39
|
-
Error generating stack: `+v.message+`
|
|
40
|
-
`+v.stack}return{value:n,source:i,stack:m,digest:null}}function jc(n,i,a){return{value:n,source:null,stack:a??null,digest:i??null}}function Ec(n,i){try{console.error(i.value)}catch(a){setTimeout(function(){throw a})}}var Dx=typeof WeakMap=="function"?WeakMap:Map;function Ap(n,i,a){a=Dr(-1,a),a.tag=3,a.payload={element:null};var u=i.value;return a.callback=function(){So||(So=!0,Uc=u),Ec(n,i)},a}function Dp(n,i,a){a=Dr(-1,a),a.tag=3;var u=n.type.getDerivedStateFromError;if(typeof u=="function"){var m=i.value;a.payload=function(){return u(m)},a.callback=function(){Ec(n,i)}}var v=n.stateNode;return v!==null&&typeof v.componentDidCatch=="function"&&(a.callback=function(){Ec(n,i),typeof u!="function"&&(Qr===null?Qr=new Set([this]):Qr.add(this));var w=i.stack;this.componentDidCatch(i.value,{componentStack:w!==null?w:""})}),a}function Rp(n,i,a){var u=n.pingCache;if(u===null){u=n.pingCache=new Dx;var m=new Set;u.set(i,m)}else m=u.get(i),m===void 0&&(m=new Set,u.set(i,m));m.has(a)||(m.add(a),n=qx.bind(null,n,i,a),i.then(n,n))}function Pp(n){do{var i;if((i=n.tag===13)&&(i=n.memoizedState,i=i!==null?i.dehydrated!==null:!0),i)return n;n=n.return}while(n!==null);return null}function Lp(n,i,a,u,m){return(n.mode&1)===0?(n===i?n.flags|=65536:(n.flags|=128,a.flags|=131072,a.flags&=-52805,a.tag===1&&(a.alternate===null?a.tag=17:(i=Dr(-1,1),i.tag=2,Zr(a,i,1))),a.lanes|=1),n):(n.flags|=65536,n.lanes=m,n)}var Rx=R.ReactCurrentOwner,Tn=!1;function wn(n,i,a,u){i.child=n===null?tp(i,null,a,u):Ki(i,n.child,a,u)}function Mp(n,i,a,u,m){a=a.render;var v=i.ref;return Yi(i,m),u=xc(n,i,a,u,v,m),a=kc(),n!==null&&!Tn?(i.updateQueue=n.updateQueue,i.flags&=-2053,n.lanes&=~m,Rr(n,i,m)):(Tt&&a&&nc(i),i.flags|=1,wn(n,i,u,m),i.child)}function Op(n,i,a,u,m){if(n===null){var v=a.type;return typeof v=="function"&&!Qc(v)&&v.defaultProps===void 0&&a.compare===null&&a.defaultProps===void 0?(i.tag=15,i.type=v,zp(n,i,v,u,m)):(n=Io(a.type,null,u,i,i.mode,m),n.ref=i.ref,n.return=i,i.child=n)}if(v=n.child,(n.lanes&m)===0){var w=v.memoizedProps;if(a=a.compare,a=a!==null?a:Rs,a(w,u)&&n.ref===i.ref)return Rr(n,i,m)}return i.flags|=1,n=ei(v,u),n.ref=i.ref,n.return=i,i.child=n}function zp(n,i,a,u,m){if(n!==null){var v=n.memoizedProps;if(Rs(v,u)&&n.ref===i.ref)if(Tn=!1,i.pendingProps=u=v,(n.lanes&m)!==0)(n.flags&131072)!==0&&(Tn=!0);else return i.lanes=n.lanes,Rr(n,i,m)}return Tc(n,i,a,u,m)}function $p(n,i,a){var u=i.pendingProps,m=u.children,v=n!==null?n.memoizedState:null;if(u.mode==="hidden")if((i.mode&1)===0)i.memoizedState={baseLanes:0,cachePool:null,transitions:null},wt(Ji,Bn),Bn|=a;else{if((a&1073741824)===0)return n=v!==null?v.baseLanes|a:a,i.lanes=i.childLanes=1073741824,i.memoizedState={baseLanes:n,cachePool:null,transitions:null},i.updateQueue=null,wt(Ji,Bn),Bn|=n,null;i.memoizedState={baseLanes:0,cachePool:null,transitions:null},u=v!==null?v.baseLanes:a,wt(Ji,Bn),Bn|=u}else v!==null?(u=v.baseLanes|a,i.memoizedState=null):u=a,wt(Ji,Bn),Bn|=u;return wn(n,i,m,a),i.child}function Bp(n,i){var a=i.ref;(n===null&&a!==null||n!==null&&n.ref!==a)&&(i.flags|=512,i.flags|=2097152)}function Tc(n,i,a,u,m){var v=En(a)?mi:pn.current;return v=Ui(i,v),Yi(i,m),a=xc(n,i,a,u,v,m),u=kc(),n!==null&&!Tn?(i.updateQueue=n.updateQueue,i.flags&=-2053,n.lanes&=~m,Rr(n,i,m)):(Tt&&u&&nc(i),i.flags|=1,wn(n,i,a,m),i.child)}function Fp(n,i,a,u,m){if(En(a)){var v=!0;eo(i)}else v=!1;if(Yi(i,m),i.stateNode===null)xo(n,i),Tp(i,a,u),Nc(i,a,u,m),u=!0;else if(n===null){var w=i.stateNode,A=i.memoizedProps;w.props=A;var M=w.context,U=a.contextType;typeof U=="object"&&U!==null?U=Kn(U):(U=En(a)?mi:pn.current,U=Ui(i,U));var re=a.getDerivedStateFromProps,se=typeof re=="function"||typeof w.getSnapshotBeforeUpdate=="function";se||typeof w.UNSAFE_componentWillReceiveProps!="function"&&typeof w.componentWillReceiveProps!="function"||(A!==u||M!==U)&&Ip(i,w,u,U),Kr=!1;var te=i.memoizedState;w.state=te,co(i,u,w,m),M=i.memoizedState,A!==u||te!==M||jn.current||Kr?(typeof re=="function"&&(Cc(i,a,re,u),M=i.memoizedState),(A=Kr||Ep(i,a,A,u,te,M,U))?(se||typeof w.UNSAFE_componentWillMount!="function"&&typeof w.componentWillMount!="function"||(typeof w.componentWillMount=="function"&&w.componentWillMount(),typeof w.UNSAFE_componentWillMount=="function"&&w.UNSAFE_componentWillMount()),typeof w.componentDidMount=="function"&&(i.flags|=4194308)):(typeof w.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=u,i.memoizedState=M),w.props=u,w.state=M,w.context=U,u=A):(typeof w.componentDidMount=="function"&&(i.flags|=4194308),u=!1)}else{w=i.stateNode,rp(n,i),A=i.memoizedProps,U=i.type===i.elementType?A:or(i.type,A),w.props=U,se=i.pendingProps,te=w.context,M=a.contextType,typeof M=="object"&&M!==null?M=Kn(M):(M=En(a)?mi:pn.current,M=Ui(i,M));var _e=a.getDerivedStateFromProps;(re=typeof _e=="function"||typeof w.getSnapshotBeforeUpdate=="function")||typeof w.UNSAFE_componentWillReceiveProps!="function"&&typeof w.componentWillReceiveProps!="function"||(A!==se||te!==M)&&Ip(i,w,u,M),Kr=!1,te=i.memoizedState,w.state=te,co(i,u,w,m);var Ne=i.memoizedState;A!==se||te!==Ne||jn.current||Kr?(typeof _e=="function"&&(Cc(i,a,_e,u),Ne=i.memoizedState),(U=Kr||Ep(i,a,U,u,te,Ne,M)||!1)?(re||typeof w.UNSAFE_componentWillUpdate!="function"&&typeof w.componentWillUpdate!="function"||(typeof w.componentWillUpdate=="function"&&w.componentWillUpdate(u,Ne,M),typeof w.UNSAFE_componentWillUpdate=="function"&&w.UNSAFE_componentWillUpdate(u,Ne,M)),typeof w.componentDidUpdate=="function"&&(i.flags|=4),typeof w.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof w.componentDidUpdate!="function"||A===n.memoizedProps&&te===n.memoizedState||(i.flags|=4),typeof w.getSnapshotBeforeUpdate!="function"||A===n.memoizedProps&&te===n.memoizedState||(i.flags|=1024),i.memoizedProps=u,i.memoizedState=Ne),w.props=u,w.state=Ne,w.context=M,u=U):(typeof w.componentDidUpdate!="function"||A===n.memoizedProps&&te===n.memoizedState||(i.flags|=4),typeof w.getSnapshotBeforeUpdate!="function"||A===n.memoizedProps&&te===n.memoizedState||(i.flags|=1024),u=!1)}return Ic(n,i,a,u,v,m)}function Ic(n,i,a,u,m,v){Bp(n,i);var w=(i.flags&128)!==0;if(!u&&!w)return m&&qf(i,a,!1),Rr(n,i,v);u=i.stateNode,Rx.current=i;var A=w&&typeof a.getDerivedStateFromError!="function"?null:u.render();return i.flags|=1,n!==null&&w?(i.child=Ki(i,n.child,null,v),i.child=Ki(i,null,A,v)):wn(n,i,A,v),i.memoizedState=u.state,m&&qf(i,a,!0),i.child}function Vp(n){var i=n.stateNode;i.pendingContext?Hf(n,i.pendingContext,i.pendingContext!==i.context):i.context&&Hf(n,i.context,!1),pc(n,i.containerInfo)}function Up(n,i,a,u,m){return qi(),lc(m),i.flags|=256,wn(n,i,a,u),i.child}var Ac={dehydrated:null,treeContext:null,retryLane:0};function Dc(n){return{baseLanes:n,cachePool:null,transitions:null}}function Hp(n,i,a){var u=i.pendingProps,m=Rt.current,v=!1,w=(i.flags&128)!==0,A;if((A=w)||(A=n!==null&&n.memoizedState===null?!1:(m&2)!==0),A?(v=!0,i.flags&=-129):(n===null||n.memoizedState!==null)&&(m|=1),wt(Rt,m&1),n===null)return sc(i),n=i.memoizedState,n!==null&&(n=n.dehydrated,n!==null)?((i.mode&1)===0?i.lanes=1:n.data==="$!"?i.lanes=8:i.lanes=1073741824,null):(w=u.children,n=u.fallback,v?(u=i.mode,v=i.child,w={mode:"hidden",children:w},(u&1)===0&&v!==null?(v.childLanes=0,v.pendingProps=w):v=Ao(w,u,0,null),n=Ci(n,u,a,null),v.return=i,n.return=i,v.sibling=n,i.child=v,i.child.memoizedState=Dc(a),i.memoizedState=Ac,n):Rc(i,w));if(m=n.memoizedState,m!==null&&(A=m.dehydrated,A!==null))return Px(n,i,w,u,A,m,a);if(v){v=u.fallback,w=i.mode,m=n.child,A=m.sibling;var M={mode:"hidden",children:u.children};return(w&1)===0&&i.child!==m?(u=i.child,u.childLanes=0,u.pendingProps=M,i.deletions=null):(u=ei(m,M),u.subtreeFlags=m.subtreeFlags&14680064),A!==null?v=ei(A,v):(v=Ci(v,w,a,null),v.flags|=2),v.return=i,u.return=i,u.sibling=v,i.child=u,u=v,v=i.child,w=n.child.memoizedState,w=w===null?Dc(a):{baseLanes:w.baseLanes|a,cachePool:null,transitions:w.transitions},v.memoizedState=w,v.childLanes=n.childLanes&~a,i.memoizedState=Ac,u}return v=n.child,n=v.sibling,u=ei(v,{mode:"visible",children:u.children}),(i.mode&1)===0&&(u.lanes=a),u.return=i,u.sibling=null,n!==null&&(a=i.deletions,a===null?(i.deletions=[n],i.flags|=16):a.push(n)),i.child=u,i.memoizedState=null,u}function Rc(n,i){return i=Ao({mode:"visible",children:i},n.mode,0,null),i.return=n,n.child=i}function vo(n,i,a,u){return u!==null&&lc(u),Ki(i,n.child,null,a),n=Rc(i,i.pendingProps.children),n.flags|=2,i.memoizedState=null,n}function Px(n,i,a,u,m,v,w){if(a)return i.flags&256?(i.flags&=-257,u=jc(Error(r(422))),vo(n,i,w,u)):i.memoizedState!==null?(i.child=n.child,i.flags|=128,null):(v=u.fallback,m=i.mode,u=Ao({mode:"visible",children:u.children},m,0,null),v=Ci(v,m,w,null),v.flags|=2,u.return=i,v.return=i,u.sibling=v,i.child=u,(i.mode&1)!==0&&Ki(i,n.child,null,w),i.child.memoizedState=Dc(w),i.memoizedState=Ac,v);if((i.mode&1)===0)return vo(n,i,w,null);if(m.data==="$!"){if(u=m.nextSibling&&m.nextSibling.dataset,u)var A=u.dgst;return u=A,v=Error(r(419)),u=jc(v,u,void 0),vo(n,i,w,u)}if(A=(w&n.childLanes)!==0,Tn||A){if(u=nn,u!==null){switch(w&-w){case 4:m=2;break;case 16:m=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:m=32;break;case 536870912:m=268435456;break;default:m=0}m=(m&(u.suspendedLanes|w))!==0?0:m,m!==0&&m!==v.retryLane&&(v.retryLane=m,Ar(n,m),ur(u,n,m,-1))}return Yc(),u=jc(Error(r(421))),vo(n,i,w,u)}return m.data==="$?"?(i.flags|=128,i.child=n.child,i=Kx.bind(null,n),m._reactRetry=i,null):(n=v.treeContext,$n=Ur(m.nextSibling),zn=i,Tt=!0,lr=null,n!==null&&(Wn[qn++]=Tr,Wn[qn++]=Ir,Wn[qn++]=gi,Tr=n.id,Ir=n.overflow,gi=i),i=Rc(i,u.children),i.flags|=4096,i)}function Wp(n,i,a){n.lanes|=i;var u=n.alternate;u!==null&&(u.lanes|=i),uc(n.return,i,a)}function Pc(n,i,a,u,m){var v=n.memoizedState;v===null?n.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:u,tail:a,tailMode:m}:(v.isBackwards=i,v.rendering=null,v.renderingStartTime=0,v.last=u,v.tail=a,v.tailMode=m)}function qp(n,i,a){var u=i.pendingProps,m=u.revealOrder,v=u.tail;if(wn(n,i,u.children,a),u=Rt.current,(u&2)!==0)u=u&1|2,i.flags|=128;else{if(n!==null&&(n.flags&128)!==0)e:for(n=i.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&Wp(n,a,i);else if(n.tag===19)Wp(n,a,i);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===i)break e;for(;n.sibling===null;){if(n.return===null||n.return===i)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}u&=1}if(wt(Rt,u),(i.mode&1)===0)i.memoizedState=null;else switch(m){case"forwards":for(a=i.child,m=null;a!==null;)n=a.alternate,n!==null&&uo(n)===null&&(m=a),a=a.sibling;a=m,a===null?(m=i.child,i.child=null):(m=a.sibling,a.sibling=null),Pc(i,!1,m,a,v);break;case"backwards":for(a=null,m=i.child,i.child=null;m!==null;){if(n=m.alternate,n!==null&&uo(n)===null){i.child=m;break}n=m.sibling,m.sibling=a,a=m,m=n}Pc(i,!0,a,null,v);break;case"together":Pc(i,!1,null,null,void 0);break;default:i.memoizedState=null}return i.child}function xo(n,i){(i.mode&1)===0&&n!==null&&(n.alternate=null,i.alternate=null,i.flags|=2)}function Rr(n,i,a){if(n!==null&&(i.dependencies=n.dependencies),_i|=i.lanes,(a&i.childLanes)===0)return null;if(n!==null&&i.child!==n.child)throw Error(r(153));if(i.child!==null){for(n=i.child,a=ei(n,n.pendingProps),i.child=a,a.return=i;n.sibling!==null;)n=n.sibling,a=a.sibling=ei(n,n.pendingProps),a.return=i;a.sibling=null}return i.child}function Lx(n,i,a){switch(i.tag){case 3:Vp(i),qi();break;case 5:lp(i);break;case 1:En(i.type)&&eo(i);break;case 4:pc(i,i.stateNode.containerInfo);break;case 10:var u=i.type._context,m=i.memoizedProps.value;wt(lo,u._currentValue),u._currentValue=m;break;case 13:if(u=i.memoizedState,u!==null)return u.dehydrated!==null?(wt(Rt,Rt.current&1),i.flags|=128,null):(a&i.child.childLanes)!==0?Hp(n,i,a):(wt(Rt,Rt.current&1),n=Rr(n,i,a),n!==null?n.sibling:null);wt(Rt,Rt.current&1);break;case 19:if(u=(a&i.childLanes)!==0,(n.flags&128)!==0){if(u)return qp(n,i,a);i.flags|=128}if(m=i.memoizedState,m!==null&&(m.rendering=null,m.tail=null,m.lastEffect=null),wt(Rt,Rt.current),u)break;return null;case 22:case 23:return i.lanes=0,$p(n,i,a)}return Rr(n,i,a)}var Kp,Lc,Zp,Yp;Kp=function(n,i){for(var a=i.child;a!==null;){if(a.tag===5||a.tag===6)n.appendChild(a.stateNode);else if(a.tag!==4&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===i)break;for(;a.sibling===null;){if(a.return===null||a.return===i)return;a=a.return}a.sibling.return=a.return,a=a.sibling}},Lc=function(){},Zp=function(n,i,a,u){var m=n.memoizedProps;if(m!==u){n=i.stateNode,xi(gr.current);var v=null;switch(a){case"input":m=pt(n,m),u=pt(n,u),v=[];break;case"select":m=N({},m,{value:void 0}),u=N({},u,{value:void 0}),v=[];break;case"textarea":m=ve(n,m),u=ve(n,u),v=[];break;default:typeof m.onClick!="function"&&typeof u.onClick=="function"&&(n.onclick=Xl)}ht(a,u);var w;a=null;for(U in m)if(!u.hasOwnProperty(U)&&m.hasOwnProperty(U)&&m[U]!=null)if(U==="style"){var A=m[U];for(w in A)A.hasOwnProperty(w)&&(a||(a={}),a[w]="")}else U!=="dangerouslySetInnerHTML"&&U!=="children"&&U!=="suppressContentEditableWarning"&&U!=="suppressHydrationWarning"&&U!=="autoFocus"&&(l.hasOwnProperty(U)?v||(v=[]):(v=v||[]).push(U,null));for(U in u){var M=u[U];if(A=m!=null?m[U]:void 0,u.hasOwnProperty(U)&&M!==A&&(M!=null||A!=null))if(U==="style")if(A){for(w in A)!A.hasOwnProperty(w)||M&&M.hasOwnProperty(w)||(a||(a={}),a[w]="");for(w in M)M.hasOwnProperty(w)&&A[w]!==M[w]&&(a||(a={}),a[w]=M[w])}else a||(v||(v=[]),v.push(U,a)),a=M;else U==="dangerouslySetInnerHTML"?(M=M?M.__html:void 0,A=A?A.__html:void 0,M!=null&&A!==M&&(v=v||[]).push(U,M)):U==="children"?typeof M!="string"&&typeof M!="number"||(v=v||[]).push(U,""+M):U!=="suppressContentEditableWarning"&&U!=="suppressHydrationWarning"&&(l.hasOwnProperty(U)?(M!=null&&U==="onScroll"&&Nt("scroll",n),v||A===M||(v=[])):(v=v||[]).push(U,M))}a&&(v=v||[]).push("style",a);var U=v;(i.updateQueue=U)&&(i.flags|=4)}},Yp=function(n,i,a,u){a!==u&&(i.flags|=4)};function Zs(n,i){if(!Tt)switch(n.tailMode){case"hidden":i=n.tail;for(var a=null;i!==null;)i.alternate!==null&&(a=i),i=i.sibling;a===null?n.tail=null:a.sibling=null;break;case"collapsed":a=n.tail;for(var u=null;a!==null;)a.alternate!==null&&(u=a),a=a.sibling;u===null?i||n.tail===null?n.tail=null:n.tail.sibling=null:u.sibling=null}}function mn(n){var i=n.alternate!==null&&n.alternate.child===n.child,a=0,u=0;if(i)for(var m=n.child;m!==null;)a|=m.lanes|m.childLanes,u|=m.subtreeFlags&14680064,u|=m.flags&14680064,m.return=n,m=m.sibling;else for(m=n.child;m!==null;)a|=m.lanes|m.childLanes,u|=m.subtreeFlags,u|=m.flags,m.return=n,m=m.sibling;return n.subtreeFlags|=u,n.childLanes=a,i}function Mx(n,i,a){var u=i.pendingProps;switch(rc(i),i.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return mn(i),null;case 1:return En(i.type)&&Jl(),mn(i),null;case 3:return u=i.stateNode,Qi(),jt(jn),jt(pn),gc(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(n===null||n.child===null)&&(io(i)?i.flags|=4:n===null||n.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,lr!==null&&(qc(lr),lr=null))),Lc(n,i),mn(i),null;case 5:hc(i);var m=xi(Us.current);if(a=i.type,n!==null&&i.stateNode!=null)Zp(n,i,a,u,m),n.ref!==i.ref&&(i.flags|=512,i.flags|=2097152);else{if(!u){if(i.stateNode===null)throw Error(r(166));return mn(i),null}if(n=xi(gr.current),io(i)){u=i.stateNode,a=i.type;var v=i.memoizedProps;switch(u[mr]=i,u[zs]=v,n=(i.mode&1)!==0,a){case"dialog":Nt("cancel",u),Nt("close",u);break;case"iframe":case"object":case"embed":Nt("load",u);break;case"video":case"audio":for(m=0;m<Ls.length;m++)Nt(Ls[m],u);break;case"source":Nt("error",u);break;case"img":case"image":case"link":Nt("error",u),Nt("load",u);break;case"details":Nt("toggle",u);break;case"input":Yt(u,v),Nt("invalid",u);break;case"select":u._wrapperState={wasMultiple:!!v.multiple},Nt("invalid",u);break;case"textarea":Re(u,v),Nt("invalid",u)}ht(a,v),m=null;for(var w in v)if(v.hasOwnProperty(w)){var A=v[w];w==="children"?typeof A=="string"?u.textContent!==A&&(v.suppressHydrationWarning!==!0&&Ql(u.textContent,A,n),m=["children",A]):typeof A=="number"&&u.textContent!==""+A&&(v.suppressHydrationWarning!==!0&&Ql(u.textContent,A,n),m=["children",""+A]):l.hasOwnProperty(w)&&A!=null&&w==="onScroll"&&Nt("scroll",u)}switch(a){case"input":dt(u),Cn(u,v,!0);break;case"textarea":dt(u),Ye(u);break;case"select":case"option":break;default:typeof v.onClick=="function"&&(u.onclick=Xl)}u=m,i.updateQueue=u,u!==null&&(i.flags|=4)}else{w=m.nodeType===9?m:m.ownerDocument,n==="http://www.w3.org/1999/xhtml"&&(n=q(a)),n==="http://www.w3.org/1999/xhtml"?a==="script"?(n=w.createElement("div"),n.innerHTML="<script><\/script>",n=n.removeChild(n.firstChild)):typeof u.is=="string"?n=w.createElement(a,{is:u.is}):(n=w.createElement(a),a==="select"&&(w=n,u.multiple?w.multiple=!0:u.size&&(w.size=u.size))):n=w.createElementNS(n,a),n[mr]=i,n[zs]=u,Kp(n,i,!1,!1),i.stateNode=n;e:{switch(w=Ot(a,u),a){case"dialog":Nt("cancel",n),Nt("close",n),m=u;break;case"iframe":case"object":case"embed":Nt("load",n),m=u;break;case"video":case"audio":for(m=0;m<Ls.length;m++)Nt(Ls[m],n);m=u;break;case"source":Nt("error",n),m=u;break;case"img":case"image":case"link":Nt("error",n),Nt("load",n),m=u;break;case"details":Nt("toggle",n),m=u;break;case"input":Yt(n,u),m=pt(n,u),Nt("invalid",n);break;case"option":m=u;break;case"select":n._wrapperState={wasMultiple:!!u.multiple},m=N({},u,{value:void 0}),Nt("invalid",n);break;case"textarea":Re(n,u),m=ve(n,u),Nt("invalid",n);break;default:m=u}ht(a,m),A=m;for(v in A)if(A.hasOwnProperty(v)){var M=A[v];v==="style"?Mt(n,M):v==="dangerouslySetInnerHTML"?(M=M?M.__html:void 0,M!=null&&Ue(n,M)):v==="children"?typeof M=="string"?(a!=="textarea"||M!=="")&&W(n,M):typeof M=="number"&&W(n,""+M):v!=="suppressContentEditableWarning"&&v!=="suppressHydrationWarning"&&v!=="autoFocus"&&(l.hasOwnProperty(v)?M!=null&&v==="onScroll"&&Nt("scroll",n):M!=null&&E(n,v,M,w))}switch(a){case"input":dt(n),Cn(n,u,!1);break;case"textarea":dt(n),Ye(n);break;case"option":u.value!=null&&n.setAttribute("value",""+Fe(u.value));break;case"select":n.multiple=!!u.multiple,v=u.value,v!=null?pe(n,!!u.multiple,v,!1):u.defaultValue!=null&&pe(n,!!u.multiple,u.defaultValue,!0);break;default:typeof m.onClick=="function"&&(n.onclick=Xl)}switch(a){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break e;case"img":u=!0;break e;default:u=!1}}u&&(i.flags|=4)}i.ref!==null&&(i.flags|=512,i.flags|=2097152)}return mn(i),null;case 6:if(n&&i.stateNode!=null)Yp(n,i,n.memoizedProps,u);else{if(typeof u!="string"&&i.stateNode===null)throw Error(r(166));if(a=xi(Us.current),xi(gr.current),io(i)){if(u=i.stateNode,a=i.memoizedProps,u[mr]=i,(v=u.nodeValue!==a)&&(n=zn,n!==null))switch(n.tag){case 3:Ql(u.nodeValue,a,(n.mode&1)!==0);break;case 5:n.memoizedProps.suppressHydrationWarning!==!0&&Ql(u.nodeValue,a,(n.mode&1)!==0)}v&&(i.flags|=4)}else u=(a.nodeType===9?a:a.ownerDocument).createTextNode(u),u[mr]=i,i.stateNode=u}return mn(i),null;case 13:if(jt(Rt),u=i.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(Tt&&$n!==null&&(i.mode&1)!==0&&(i.flags&128)===0)Gf(),qi(),i.flags|=98560,v=!1;else if(v=io(i),u!==null&&u.dehydrated!==null){if(n===null){if(!v)throw Error(r(318));if(v=i.memoizedState,v=v!==null?v.dehydrated:null,!v)throw Error(r(317));v[mr]=i}else qi(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;mn(i),v=!1}else lr!==null&&(qc(lr),lr=null),v=!0;if(!v)return i.flags&65536?i:null}return(i.flags&128)!==0?(i.lanes=a,i):(u=u!==null,u!==(n!==null&&n.memoizedState!==null)&&u&&(i.child.flags|=8192,(i.mode&1)!==0&&(n===null||(Rt.current&1)!==0?Gt===0&&(Gt=3):Yc())),i.updateQueue!==null&&(i.flags|=4),mn(i),null);case 4:return Qi(),Lc(n,i),n===null&&Ms(i.stateNode.containerInfo),mn(i),null;case 10:return cc(i.type._context),mn(i),null;case 17:return En(i.type)&&Jl(),mn(i),null;case 19:if(jt(Rt),v=i.memoizedState,v===null)return mn(i),null;if(u=(i.flags&128)!==0,w=v.rendering,w===null)if(u)Zs(v,!1);else{if(Gt!==0||n!==null&&(n.flags&128)!==0)for(n=i.child;n!==null;){if(w=uo(n),w!==null){for(i.flags|=128,Zs(v,!1),u=w.updateQueue,u!==null&&(i.updateQueue=u,i.flags|=4),i.subtreeFlags=0,u=a,a=i.child;a!==null;)v=a,n=u,v.flags&=14680066,w=v.alternate,w===null?(v.childLanes=0,v.lanes=n,v.child=null,v.subtreeFlags=0,v.memoizedProps=null,v.memoizedState=null,v.updateQueue=null,v.dependencies=null,v.stateNode=null):(v.childLanes=w.childLanes,v.lanes=w.lanes,v.child=w.child,v.subtreeFlags=0,v.deletions=null,v.memoizedProps=w.memoizedProps,v.memoizedState=w.memoizedState,v.updateQueue=w.updateQueue,v.type=w.type,n=w.dependencies,v.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),a=a.sibling;return wt(Rt,Rt.current&1|2),i.child}n=n.sibling}v.tail!==null&&Ft()>es&&(i.flags|=128,u=!0,Zs(v,!1),i.lanes=4194304)}else{if(!u)if(n=uo(w),n!==null){if(i.flags|=128,u=!0,a=n.updateQueue,a!==null&&(i.updateQueue=a,i.flags|=4),Zs(v,!0),v.tail===null&&v.tailMode==="hidden"&&!w.alternate&&!Tt)return mn(i),null}else 2*Ft()-v.renderingStartTime>es&&a!==1073741824&&(i.flags|=128,u=!0,Zs(v,!1),i.lanes=4194304);v.isBackwards?(w.sibling=i.child,i.child=w):(a=v.last,a!==null?a.sibling=w:i.child=w,v.last=w)}return v.tail!==null?(i=v.tail,v.rendering=i,v.tail=i.sibling,v.renderingStartTime=Ft(),i.sibling=null,a=Rt.current,wt(Rt,u?a&1|2:a&1),i):(mn(i),null);case 22:case 23:return Zc(),u=i.memoizedState!==null,n!==null&&n.memoizedState!==null!==u&&(i.flags|=8192),u&&(i.mode&1)!==0?(Bn&1073741824)!==0&&(mn(i),i.subtreeFlags&6&&(i.flags|=8192)):mn(i),null;case 24:return null;case 25:return null}throw Error(r(156,i.tag))}function Ox(n,i){switch(rc(i),i.tag){case 1:return En(i.type)&&Jl(),n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 3:return Qi(),jt(jn),jt(pn),gc(),n=i.flags,(n&65536)!==0&&(n&128)===0?(i.flags=n&-65537|128,i):null;case 5:return hc(i),null;case 13:if(jt(Rt),n=i.memoizedState,n!==null&&n.dehydrated!==null){if(i.alternate===null)throw Error(r(340));qi()}return n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 19:return jt(Rt),null;case 4:return Qi(),null;case 10:return cc(i.type._context),null;case 22:case 23:return Zc(),null;case 24:return null;default:return null}}var ko=!1,gn=!1,zx=typeof WeakSet=="function"?WeakSet:Set,Ce=null;function Gi(n,i){var a=n.ref;if(a!==null)if(typeof a=="function")try{a(null)}catch(u){zt(n,i,u)}else a.current=null}function Mc(n,i,a){try{a()}catch(u){zt(n,i,u)}}var Qp=!1;function $x(n,i){if(Za=$l,n=Ef(),Ba(n)){if("selectionStart"in n)var a={start:n.selectionStart,end:n.selectionEnd};else e:{a=(a=n.ownerDocument)&&a.defaultView||window;var u=a.getSelection&&a.getSelection();if(u&&u.rangeCount!==0){a=u.anchorNode;var m=u.anchorOffset,v=u.focusNode;u=u.focusOffset;try{a.nodeType,v.nodeType}catch{a=null;break e}var w=0,A=-1,M=-1,U=0,re=0,se=n,te=null;t:for(;;){for(var _e;se!==a||m!==0&&se.nodeType!==3||(A=w+m),se!==v||u!==0&&se.nodeType!==3||(M=w+u),se.nodeType===3&&(w+=se.nodeValue.length),(_e=se.firstChild)!==null;)te=se,se=_e;for(;;){if(se===n)break t;if(te===a&&++U===m&&(A=w),te===v&&++re===u&&(M=w),(_e=se.nextSibling)!==null)break;se=te,te=se.parentNode}se=_e}a=A===-1||M===-1?null:{start:A,end:M}}else a=null}a=a||{start:0,end:0}}else a=null;for(Ya={focusedElem:n,selectionRange:a},$l=!1,Ce=i;Ce!==null;)if(i=Ce,n=i.child,(i.subtreeFlags&1028)!==0&&n!==null)n.return=i,Ce=n;else for(;Ce!==null;){i=Ce;try{var Ne=i.alternate;if((i.flags&1024)!==0)switch(i.tag){case 0:case 11:case 15:break;case 1:if(Ne!==null){var Ee=Ne.memoizedProps,Vt=Ne.memoizedState,$=i.stateNode,O=$.getSnapshotBeforeUpdate(i.elementType===i.type?Ee:or(i.type,Ee),Vt);$.__reactInternalSnapshotBeforeUpdate=O}break;case 3:var B=i.stateNode.containerInfo;B.nodeType===1?B.textContent="":B.nodeType===9&&B.documentElement&&B.removeChild(B.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(ue){zt(i,i.return,ue)}if(n=i.sibling,n!==null){n.return=i.return,Ce=n;break}Ce=i.return}return Ne=Qp,Qp=!1,Ne}function Ys(n,i,a){var u=i.updateQueue;if(u=u!==null?u.lastEffect:null,u!==null){var m=u=u.next;do{if((m.tag&n)===n){var v=m.destroy;m.destroy=void 0,v!==void 0&&Mc(i,a,v)}m=m.next}while(m!==u)}}function _o(n,i){if(i=i.updateQueue,i=i!==null?i.lastEffect:null,i!==null){var a=i=i.next;do{if((a.tag&n)===n){var u=a.create;a.destroy=u()}a=a.next}while(a!==i)}}function Oc(n){var i=n.ref;if(i!==null){var a=n.stateNode;switch(n.tag){case 5:n=a;break;default:n=a}typeof i=="function"?i(n):i.current=n}}function Xp(n){var i=n.alternate;i!==null&&(n.alternate=null,Xp(i)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(i=n.stateNode,i!==null&&(delete i[mr],delete i[zs],delete i[Ja],delete i[_x],delete i[wx])),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}function Gp(n){return n.tag===5||n.tag===3||n.tag===4}function Jp(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||Gp(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function zc(n,i,a){var u=n.tag;if(u===5||u===6)n=n.stateNode,i?a.nodeType===8?a.parentNode.insertBefore(n,i):a.insertBefore(n,i):(a.nodeType===8?(i=a.parentNode,i.insertBefore(n,a)):(i=a,i.appendChild(n)),a=a._reactRootContainer,a!=null||i.onclick!==null||(i.onclick=Xl));else if(u!==4&&(n=n.child,n!==null))for(zc(n,i,a),n=n.sibling;n!==null;)zc(n,i,a),n=n.sibling}function $c(n,i,a){var u=n.tag;if(u===5||u===6)n=n.stateNode,i?a.insertBefore(n,i):a.appendChild(n);else if(u!==4&&(n=n.child,n!==null))for($c(n,i,a),n=n.sibling;n!==null;)$c(n,i,a),n=n.sibling}var ln=null,ar=!1;function Yr(n,i,a){for(a=a.child;a!==null;)eh(n,i,a),a=a.sibling}function eh(n,i,a){if(hr&&typeof hr.onCommitFiberUnmount=="function")try{hr.onCommitFiberUnmount(Rl,a)}catch{}switch(a.tag){case 5:gn||Gi(a,i);case 6:var u=ln,m=ar;ln=null,Yr(n,i,a),ln=u,ar=m,ln!==null&&(ar?(n=ln,a=a.stateNode,n.nodeType===8?n.parentNode.removeChild(a):n.removeChild(a)):ln.removeChild(a.stateNode));break;case 18:ln!==null&&(ar?(n=ln,a=a.stateNode,n.nodeType===8?Ga(n.parentNode,a):n.nodeType===1&&Ga(n,a),js(n)):Ga(ln,a.stateNode));break;case 4:u=ln,m=ar,ln=a.stateNode.containerInfo,ar=!0,Yr(n,i,a),ln=u,ar=m;break;case 0:case 11:case 14:case 15:if(!gn&&(u=a.updateQueue,u!==null&&(u=u.lastEffect,u!==null))){m=u=u.next;do{var v=m,w=v.destroy;v=v.tag,w!==void 0&&((v&2)!==0||(v&4)!==0)&&Mc(a,i,w),m=m.next}while(m!==u)}Yr(n,i,a);break;case 1:if(!gn&&(Gi(a,i),u=a.stateNode,typeof u.componentWillUnmount=="function"))try{u.props=a.memoizedProps,u.state=a.memoizedState,u.componentWillUnmount()}catch(A){zt(a,i,A)}Yr(n,i,a);break;case 21:Yr(n,i,a);break;case 22:a.mode&1?(gn=(u=gn)||a.memoizedState!==null,Yr(n,i,a),gn=u):Yr(n,i,a);break;default:Yr(n,i,a)}}function th(n){var i=n.updateQueue;if(i!==null){n.updateQueue=null;var a=n.stateNode;a===null&&(a=n.stateNode=new zx),i.forEach(function(u){var m=Zx.bind(null,n,u);a.has(u)||(a.add(u),u.then(m,m))})}}function cr(n,i){var a=i.deletions;if(a!==null)for(var u=0;u<a.length;u++){var m=a[u];try{var v=n,w=i,A=w;e:for(;A!==null;){switch(A.tag){case 5:ln=A.stateNode,ar=!1;break e;case 3:ln=A.stateNode.containerInfo,ar=!0;break e;case 4:ln=A.stateNode.containerInfo,ar=!0;break e}A=A.return}if(ln===null)throw Error(r(160));eh(v,w,m),ln=null,ar=!1;var M=m.alternate;M!==null&&(M.return=null),m.return=null}catch(U){zt(m,i,U)}}if(i.subtreeFlags&12854)for(i=i.child;i!==null;)nh(i,n),i=i.sibling}function nh(n,i){var a=n.alternate,u=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:if(cr(i,n),vr(n),u&4){try{Ys(3,n,n.return),_o(3,n)}catch(Ee){zt(n,n.return,Ee)}try{Ys(5,n,n.return)}catch(Ee){zt(n,n.return,Ee)}}break;case 1:cr(i,n),vr(n),u&512&&a!==null&&Gi(a,a.return);break;case 5:if(cr(i,n),vr(n),u&512&&a!==null&&Gi(a,a.return),n.flags&32){var m=n.stateNode;try{W(m,"")}catch(Ee){zt(n,n.return,Ee)}}if(u&4&&(m=n.stateNode,m!=null)){var v=n.memoizedProps,w=a!==null?a.memoizedProps:v,A=n.type,M=n.updateQueue;if(n.updateQueue=null,M!==null)try{A==="input"&&v.type==="radio"&&v.name!=null&&It(m,v),Ot(A,w);var U=Ot(A,v);for(w=0;w<M.length;w+=2){var re=M[w],se=M[w+1];re==="style"?Mt(m,se):re==="dangerouslySetInnerHTML"?Ue(m,se):re==="children"?W(m,se):E(m,re,se,U)}switch(A){case"input":kn(m,v);break;case"textarea":me(m,v);break;case"select":var te=m._wrapperState.wasMultiple;m._wrapperState.wasMultiple=!!v.multiple;var _e=v.value;_e!=null?pe(m,!!v.multiple,_e,!1):te!==!!v.multiple&&(v.defaultValue!=null?pe(m,!!v.multiple,v.defaultValue,!0):pe(m,!!v.multiple,v.multiple?[]:"",!1))}m[zs]=v}catch(Ee){zt(n,n.return,Ee)}}break;case 6:if(cr(i,n),vr(n),u&4){if(n.stateNode===null)throw Error(r(162));m=n.stateNode,v=n.memoizedProps;try{m.nodeValue=v}catch(Ee){zt(n,n.return,Ee)}}break;case 3:if(cr(i,n),vr(n),u&4&&a!==null&&a.memoizedState.isDehydrated)try{js(i.containerInfo)}catch(Ee){zt(n,n.return,Ee)}break;case 4:cr(i,n),vr(n);break;case 13:cr(i,n),vr(n),m=n.child,m.flags&8192&&(v=m.memoizedState!==null,m.stateNode.isHidden=v,!v||m.alternate!==null&&m.alternate.memoizedState!==null||(Vc=Ft())),u&4&&th(n);break;case 22:if(re=a!==null&&a.memoizedState!==null,n.mode&1?(gn=(U=gn)||re,cr(i,n),gn=U):cr(i,n),vr(n),u&8192){if(U=n.memoizedState!==null,(n.stateNode.isHidden=U)&&!re&&(n.mode&1)!==0)for(Ce=n,re=n.child;re!==null;){for(se=Ce=re;Ce!==null;){switch(te=Ce,_e=te.child,te.tag){case 0:case 11:case 14:case 15:Ys(4,te,te.return);break;case 1:Gi(te,te.return);var Ne=te.stateNode;if(typeof Ne.componentWillUnmount=="function"){u=te,a=te.return;try{i=u,Ne.props=i.memoizedProps,Ne.state=i.memoizedState,Ne.componentWillUnmount()}catch(Ee){zt(u,a,Ee)}}break;case 5:Gi(te,te.return);break;case 22:if(te.memoizedState!==null){sh(se);continue}}_e!==null?(_e.return=te,Ce=_e):sh(se)}re=re.sibling}e:for(re=null,se=n;;){if(se.tag===5){if(re===null){re=se;try{m=se.stateNode,U?(v=m.style,typeof v.setProperty=="function"?v.setProperty("display","none","important"):v.display="none"):(A=se.stateNode,M=se.memoizedProps.style,w=M!=null&&M.hasOwnProperty("display")?M.display:null,A.style.display=$e("display",w))}catch(Ee){zt(n,n.return,Ee)}}}else if(se.tag===6){if(re===null)try{se.stateNode.nodeValue=U?"":se.memoizedProps}catch(Ee){zt(n,n.return,Ee)}}else if((se.tag!==22&&se.tag!==23||se.memoizedState===null||se===n)&&se.child!==null){se.child.return=se,se=se.child;continue}if(se===n)break e;for(;se.sibling===null;){if(se.return===null||se.return===n)break e;re===se&&(re=null),se=se.return}re===se&&(re=null),se.sibling.return=se.return,se=se.sibling}}break;case 19:cr(i,n),vr(n),u&4&&th(n);break;case 21:break;default:cr(i,n),vr(n)}}function vr(n){var i=n.flags;if(i&2){try{e:{for(var a=n.return;a!==null;){if(Gp(a)){var u=a;break e}a=a.return}throw Error(r(160))}switch(u.tag){case 5:var m=u.stateNode;u.flags&32&&(W(m,""),u.flags&=-33);var v=Jp(n);$c(n,v,m);break;case 3:case 4:var w=u.stateNode.containerInfo,A=Jp(n);zc(n,A,w);break;default:throw Error(r(161))}}catch(M){zt(n,n.return,M)}n.flags&=-3}i&4096&&(n.flags&=-4097)}function Bx(n,i,a){Ce=n,rh(n)}function rh(n,i,a){for(var u=(n.mode&1)!==0;Ce!==null;){var m=Ce,v=m.child;if(m.tag===22&&u){var w=m.memoizedState!==null||ko;if(!w){var A=m.alternate,M=A!==null&&A.memoizedState!==null||gn;A=ko;var U=gn;if(ko=w,(gn=M)&&!U)for(Ce=m;Ce!==null;)w=Ce,M=w.child,w.tag===22&&w.memoizedState!==null?lh(m):M!==null?(M.return=w,Ce=M):lh(m);for(;v!==null;)Ce=v,rh(v),v=v.sibling;Ce=m,ko=A,gn=U}ih(n)}else(m.subtreeFlags&8772)!==0&&v!==null?(v.return=m,Ce=v):ih(n)}}function ih(n){for(;Ce!==null;){var i=Ce;if((i.flags&8772)!==0){var a=i.alternate;try{if((i.flags&8772)!==0)switch(i.tag){case 0:case 11:case 15:gn||_o(5,i);break;case 1:var u=i.stateNode;if(i.flags&4&&!gn)if(a===null)u.componentDidMount();else{var m=i.elementType===i.type?a.memoizedProps:or(i.type,a.memoizedProps);u.componentDidUpdate(m,a.memoizedState,u.__reactInternalSnapshotBeforeUpdate)}var v=i.updateQueue;v!==null&&sp(i,v,u);break;case 3:var w=i.updateQueue;if(w!==null){if(a=null,i.child!==null)switch(i.child.tag){case 5:a=i.child.stateNode;break;case 1:a=i.child.stateNode}sp(i,w,a)}break;case 5:var A=i.stateNode;if(a===null&&i.flags&4){a=A;var M=i.memoizedProps;switch(i.type){case"button":case"input":case"select":case"textarea":M.autoFocus&&a.focus();break;case"img":M.src&&(a.src=M.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(i.memoizedState===null){var U=i.alternate;if(U!==null){var re=U.memoizedState;if(re!==null){var se=re.dehydrated;se!==null&&js(se)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}gn||i.flags&512&&Oc(i)}catch(te){zt(i,i.return,te)}}if(i===n){Ce=null;break}if(a=i.sibling,a!==null){a.return=i.return,Ce=a;break}Ce=i.return}}function sh(n){for(;Ce!==null;){var i=Ce;if(i===n){Ce=null;break}var a=i.sibling;if(a!==null){a.return=i.return,Ce=a;break}Ce=i.return}}function lh(n){for(;Ce!==null;){var i=Ce;try{switch(i.tag){case 0:case 11:case 15:var a=i.return;try{_o(4,i)}catch(M){zt(i,a,M)}break;case 1:var u=i.stateNode;if(typeof u.componentDidMount=="function"){var m=i.return;try{u.componentDidMount()}catch(M){zt(i,m,M)}}var v=i.return;try{Oc(i)}catch(M){zt(i,v,M)}break;case 5:var w=i.return;try{Oc(i)}catch(M){zt(i,w,M)}}}catch(M){zt(i,i.return,M)}if(i===n){Ce=null;break}var A=i.sibling;if(A!==null){A.return=i.return,Ce=A;break}Ce=i.return}}var Fx=Math.ceil,wo=R.ReactCurrentDispatcher,Bc=R.ReactCurrentOwner,Yn=R.ReactCurrentBatchConfig,lt=0,nn=null,Wt=null,on=0,Bn=0,Ji=Hr(0),Gt=0,Qs=null,_i=0,bo=0,Fc=0,Xs=null,In=null,Vc=0,es=1/0,Pr=null,So=!1,Uc=null,Qr=null,Co=!1,Xr=null,No=0,Gs=0,Hc=null,jo=-1,Eo=0;function bn(){return(lt&6)!==0?Ft():jo!==-1?jo:jo=Ft()}function Gr(n){return(n.mode&1)===0?1:(lt&2)!==0&&on!==0?on&-on:Sx.transition!==null?(Eo===0&&(Eo=Gd()),Eo):(n=mt,n!==0||(n=window.event,n=n===void 0?16:af(n.type)),n)}function ur(n,i,a,u){if(50<Gs)throw Gs=0,Hc=null,Error(r(185));ws(n,a,u),((lt&2)===0||n!==nn)&&(n===nn&&((lt&2)===0&&(bo|=a),Gt===4&&Jr(n,on)),An(n,u),a===1&<===0&&(i.mode&1)===0&&(es=Ft()+500,to&&qr()))}function An(n,i){var a=n.callbackNode;Sv(n,i);var u=Ml(n,n===nn?on:0);if(u===0)a!==null&&Yd(a),n.callbackNode=null,n.callbackPriority=0;else if(i=u&-u,n.callbackPriority!==i){if(a!=null&&Yd(a),i===1)n.tag===0?bx(ah.bind(null,n)):Kf(ah.bind(null,n)),xx(function(){(lt&6)===0&&qr()}),a=null;else{switch(Jd(u)){case 1:a=ba;break;case 4:a=Qd;break;case 16:a=Dl;break;case 536870912:a=Xd;break;default:a=Dl}a=gh(a,oh.bind(null,n))}n.callbackPriority=i,n.callbackNode=a}}function oh(n,i){if(jo=-1,Eo=0,(lt&6)!==0)throw Error(r(327));var a=n.callbackNode;if(ts()&&n.callbackNode!==a)return null;var u=Ml(n,n===nn?on:0);if(u===0)return null;if((u&30)!==0||(u&n.expiredLanes)!==0||i)i=To(n,u);else{i=u;var m=lt;lt|=2;var v=uh();(nn!==n||on!==i)&&(Pr=null,es=Ft()+500,bi(n,i));do try{Hx();break}catch(A){ch(n,A)}while(!0);ac(),wo.current=v,lt=m,Wt!==null?i=0:(nn=null,on=0,i=Gt)}if(i!==0){if(i===2&&(m=Sa(n),m!==0&&(u=m,i=Wc(n,m))),i===1)throw a=Qs,bi(n,0),Jr(n,u),An(n,Ft()),a;if(i===6)Jr(n,u);else{if(m=n.current.alternate,(u&30)===0&&!Vx(m)&&(i=To(n,u),i===2&&(v=Sa(n),v!==0&&(u=v,i=Wc(n,v))),i===1))throw a=Qs,bi(n,0),Jr(n,u),An(n,Ft()),a;switch(n.finishedWork=m,n.finishedLanes=u,i){case 0:case 1:throw Error(r(345));case 2:Si(n,In,Pr);break;case 3:if(Jr(n,u),(u&130023424)===u&&(i=Vc+500-Ft(),10<i)){if(Ml(n,0)!==0)break;if(m=n.suspendedLanes,(m&u)!==u){bn(),n.pingedLanes|=n.suspendedLanes&m;break}n.timeoutHandle=Xa(Si.bind(null,n,In,Pr),i);break}Si(n,In,Pr);break;case 4:if(Jr(n,u),(u&4194240)===u)break;for(i=n.eventTimes,m=-1;0<u;){var w=31-ir(u);v=1<<w,w=i[w],w>m&&(m=w),u&=~v}if(u=m,u=Ft()-u,u=(120>u?120:480>u?480:1080>u?1080:1920>u?1920:3e3>u?3e3:4320>u?4320:1960*Fx(u/1960))-u,10<u){n.timeoutHandle=Xa(Si.bind(null,n,In,Pr),u);break}Si(n,In,Pr);break;case 5:Si(n,In,Pr);break;default:throw Error(r(329))}}}return An(n,Ft()),n.callbackNode===a?oh.bind(null,n):null}function Wc(n,i){var a=Xs;return n.current.memoizedState.isDehydrated&&(bi(n,i).flags|=256),n=To(n,i),n!==2&&(i=In,In=a,i!==null&&qc(i)),n}function qc(n){In===null?In=n:In.push.apply(In,n)}function Vx(n){for(var i=n;;){if(i.flags&16384){var a=i.updateQueue;if(a!==null&&(a=a.stores,a!==null))for(var u=0;u<a.length;u++){var m=a[u],v=m.getSnapshot;m=m.value;try{if(!sr(v(),m))return!1}catch{return!1}}}if(a=i.child,i.subtreeFlags&16384&&a!==null)a.return=i,i=a;else{if(i===n)break;for(;i.sibling===null;){if(i.return===null||i.return===n)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function Jr(n,i){for(i&=~Fc,i&=~bo,n.suspendedLanes|=i,n.pingedLanes&=~i,n=n.expirationTimes;0<i;){var a=31-ir(i),u=1<<a;n[a]=-1,i&=~u}}function ah(n){if((lt&6)!==0)throw Error(r(327));ts();var i=Ml(n,0);if((i&1)===0)return An(n,Ft()),null;var a=To(n,i);if(n.tag!==0&&a===2){var u=Sa(n);u!==0&&(i=u,a=Wc(n,u))}if(a===1)throw a=Qs,bi(n,0),Jr(n,i),An(n,Ft()),a;if(a===6)throw Error(r(345));return n.finishedWork=n.current.alternate,n.finishedLanes=i,Si(n,In,Pr),An(n,Ft()),null}function Kc(n,i){var a=lt;lt|=1;try{return n(i)}finally{lt=a,lt===0&&(es=Ft()+500,to&&qr())}}function wi(n){Xr!==null&&Xr.tag===0&&(lt&6)===0&&ts();var i=lt;lt|=1;var a=Yn.transition,u=mt;try{if(Yn.transition=null,mt=1,n)return n()}finally{mt=u,Yn.transition=a,lt=i,(lt&6)===0&&qr()}}function Zc(){Bn=Ji.current,jt(Ji)}function bi(n,i){n.finishedWork=null,n.finishedLanes=0;var a=n.timeoutHandle;if(a!==-1&&(n.timeoutHandle=-1,vx(a)),Wt!==null)for(a=Wt.return;a!==null;){var u=a;switch(rc(u),u.tag){case 1:u=u.type.childContextTypes,u!=null&&Jl();break;case 3:Qi(),jt(jn),jt(pn),gc();break;case 5:hc(u);break;case 4:Qi();break;case 13:jt(Rt);break;case 19:jt(Rt);break;case 10:cc(u.type._context);break;case 22:case 23:Zc()}a=a.return}if(nn=n,Wt=n=ei(n.current,null),on=Bn=i,Gt=0,Qs=null,Fc=bo=_i=0,In=Xs=null,vi!==null){for(i=0;i<vi.length;i++)if(a=vi[i],u=a.interleaved,u!==null){a.interleaved=null;var m=u.next,v=a.pending;if(v!==null){var w=v.next;v.next=m,u.next=w}a.pending=u}vi=null}return n}function ch(n,i){do{var a=Wt;try{if(ac(),fo.current=go,po){for(var u=Pt.memoizedState;u!==null;){var m=u.queue;m!==null&&(m.pending=null),u=u.next}po=!1}if(ki=0,tn=Xt=Pt=null,Hs=!1,Ws=0,Bc.current=null,a===null||a.return===null){Gt=1,Qs=i,Wt=null;break}e:{var v=n,w=a.return,A=a,M=i;if(i=on,A.flags|=32768,M!==null&&typeof M=="object"&&typeof M.then=="function"){var U=M,re=A,se=re.tag;if((re.mode&1)===0&&(se===0||se===11||se===15)){var te=re.alternate;te?(re.updateQueue=te.updateQueue,re.memoizedState=te.memoizedState,re.lanes=te.lanes):(re.updateQueue=null,re.memoizedState=null)}var _e=Pp(w);if(_e!==null){_e.flags&=-257,Lp(_e,w,A,v,i),_e.mode&1&&Rp(v,U,i),i=_e,M=U;var Ne=i.updateQueue;if(Ne===null){var Ee=new Set;Ee.add(M),i.updateQueue=Ee}else Ne.add(M);break e}else{if((i&1)===0){Rp(v,U,i),Yc();break e}M=Error(r(426))}}else if(Tt&&A.mode&1){var Vt=Pp(w);if(Vt!==null){(Vt.flags&65536)===0&&(Vt.flags|=256),Lp(Vt,w,A,v,i),lc(Xi(M,A));break e}}v=M=Xi(M,A),Gt!==4&&(Gt=2),Xs===null?Xs=[v]:Xs.push(v),v=w;do{switch(v.tag){case 3:v.flags|=65536,i&=-i,v.lanes|=i;var $=Ap(v,M,i);ip(v,$);break e;case 1:A=M;var O=v.type,B=v.stateNode;if((v.flags&128)===0&&(typeof O.getDerivedStateFromError=="function"||B!==null&&typeof B.componentDidCatch=="function"&&(Qr===null||!Qr.has(B)))){v.flags|=65536,i&=-i,v.lanes|=i;var ue=Dp(v,A,i);ip(v,ue);break e}}v=v.return}while(v!==null)}fh(a)}catch(Ae){i=Ae,Wt===a&&a!==null&&(Wt=a=a.return);continue}break}while(!0)}function uh(){var n=wo.current;return wo.current=go,n===null?go:n}function Yc(){(Gt===0||Gt===3||Gt===2)&&(Gt=4),nn===null||(_i&268435455)===0&&(bo&268435455)===0||Jr(nn,on)}function To(n,i){var a=lt;lt|=2;var u=uh();(nn!==n||on!==i)&&(Pr=null,bi(n,i));do try{Ux();break}catch(m){ch(n,m)}while(!0);if(ac(),lt=a,wo.current=u,Wt!==null)throw Error(r(261));return nn=null,on=0,Gt}function Ux(){for(;Wt!==null;)dh(Wt)}function Hx(){for(;Wt!==null&&!mv();)dh(Wt)}function dh(n){var i=mh(n.alternate,n,Bn);n.memoizedProps=n.pendingProps,i===null?fh(n):Wt=i,Bc.current=null}function fh(n){var i=n;do{var a=i.alternate;if(n=i.return,(i.flags&32768)===0){if(a=Mx(a,i,Bn),a!==null){Wt=a;return}}else{if(a=Ox(a,i),a!==null){a.flags&=32767,Wt=a;return}if(n!==null)n.flags|=32768,n.subtreeFlags=0,n.deletions=null;else{Gt=6,Wt=null;return}}if(i=i.sibling,i!==null){Wt=i;return}Wt=i=n}while(i!==null);Gt===0&&(Gt=5)}function Si(n,i,a){var u=mt,m=Yn.transition;try{Yn.transition=null,mt=1,Wx(n,i,a,u)}finally{Yn.transition=m,mt=u}return null}function Wx(n,i,a,u){do ts();while(Xr!==null);if((lt&6)!==0)throw Error(r(327));a=n.finishedWork;var m=n.finishedLanes;if(a===null)return null;if(n.finishedWork=null,n.finishedLanes=0,a===n.current)throw Error(r(177));n.callbackNode=null,n.callbackPriority=0;var v=a.lanes|a.childLanes;if(Cv(n,v),n===nn&&(Wt=nn=null,on=0),(a.subtreeFlags&2064)===0&&(a.flags&2064)===0||Co||(Co=!0,gh(Dl,function(){return ts(),null})),v=(a.flags&15990)!==0,(a.subtreeFlags&15990)!==0||v){v=Yn.transition,Yn.transition=null;var w=mt;mt=1;var A=lt;lt|=4,Bc.current=null,$x(n,a),nh(a,n),dx(Ya),$l=!!Za,Ya=Za=null,n.current=a,Bx(a),gv(),lt=A,mt=w,Yn.transition=v}else n.current=a;if(Co&&(Co=!1,Xr=n,No=m),v=n.pendingLanes,v===0&&(Qr=null),xv(a.stateNode),An(n,Ft()),i!==null)for(u=n.onRecoverableError,a=0;a<i.length;a++)m=i[a],u(m.value,{componentStack:m.stack,digest:m.digest});if(So)throw So=!1,n=Uc,Uc=null,n;return(No&1)!==0&&n.tag!==0&&ts(),v=n.pendingLanes,(v&1)!==0?n===Hc?Gs++:(Gs=0,Hc=n):Gs=0,qr(),null}function ts(){if(Xr!==null){var n=Jd(No),i=Yn.transition,a=mt;try{if(Yn.transition=null,mt=16>n?16:n,Xr===null)var u=!1;else{if(n=Xr,Xr=null,No=0,(lt&6)!==0)throw Error(r(331));var m=lt;for(lt|=4,Ce=n.current;Ce!==null;){var v=Ce,w=v.child;if((Ce.flags&16)!==0){var A=v.deletions;if(A!==null){for(var M=0;M<A.length;M++){var U=A[M];for(Ce=U;Ce!==null;){var re=Ce;switch(re.tag){case 0:case 11:case 15:Ys(8,re,v)}var se=re.child;if(se!==null)se.return=re,Ce=se;else for(;Ce!==null;){re=Ce;var te=re.sibling,_e=re.return;if(Xp(re),re===U){Ce=null;break}if(te!==null){te.return=_e,Ce=te;break}Ce=_e}}}var Ne=v.alternate;if(Ne!==null){var Ee=Ne.child;if(Ee!==null){Ne.child=null;do{var Vt=Ee.sibling;Ee.sibling=null,Ee=Vt}while(Ee!==null)}}Ce=v}}if((v.subtreeFlags&2064)!==0&&w!==null)w.return=v,Ce=w;else e:for(;Ce!==null;){if(v=Ce,(v.flags&2048)!==0)switch(v.tag){case 0:case 11:case 15:Ys(9,v,v.return)}var $=v.sibling;if($!==null){$.return=v.return,Ce=$;break e}Ce=v.return}}var O=n.current;for(Ce=O;Ce!==null;){w=Ce;var B=w.child;if((w.subtreeFlags&2064)!==0&&B!==null)B.return=w,Ce=B;else e:for(w=O;Ce!==null;){if(A=Ce,(A.flags&2048)!==0)try{switch(A.tag){case 0:case 11:case 15:_o(9,A)}}catch(Ae){zt(A,A.return,Ae)}if(A===w){Ce=null;break e}var ue=A.sibling;if(ue!==null){ue.return=A.return,Ce=ue;break e}Ce=A.return}}if(lt=m,qr(),hr&&typeof hr.onPostCommitFiberRoot=="function")try{hr.onPostCommitFiberRoot(Rl,n)}catch{}u=!0}return u}finally{mt=a,Yn.transition=i}}return!1}function ph(n,i,a){i=Xi(a,i),i=Ap(n,i,1),n=Zr(n,i,1),i=bn(),n!==null&&(ws(n,1,i),An(n,i))}function zt(n,i,a){if(n.tag===3)ph(n,n,a);else for(;i!==null;){if(i.tag===3){ph(i,n,a);break}else if(i.tag===1){var u=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(Qr===null||!Qr.has(u))){n=Xi(a,n),n=Dp(i,n,1),i=Zr(i,n,1),n=bn(),i!==null&&(ws(i,1,n),An(i,n));break}}i=i.return}}function qx(n,i,a){var u=n.pingCache;u!==null&&u.delete(i),i=bn(),n.pingedLanes|=n.suspendedLanes&a,nn===n&&(on&a)===a&&(Gt===4||Gt===3&&(on&130023424)===on&&500>Ft()-Vc?bi(n,0):Fc|=a),An(n,i)}function hh(n,i){i===0&&((n.mode&1)===0?i=1:(i=Ll,Ll<<=1,(Ll&130023424)===0&&(Ll=4194304)));var a=bn();n=Ar(n,i),n!==null&&(ws(n,i,a),An(n,a))}function Kx(n){var i=n.memoizedState,a=0;i!==null&&(a=i.retryLane),hh(n,a)}function Zx(n,i){var a=0;switch(n.tag){case 13:var u=n.stateNode,m=n.memoizedState;m!==null&&(a=m.retryLane);break;case 19:u=n.stateNode;break;default:throw Error(r(314))}u!==null&&u.delete(i),hh(n,a)}var mh;mh=function(n,i,a){if(n!==null)if(n.memoizedProps!==i.pendingProps||jn.current)Tn=!0;else{if((n.lanes&a)===0&&(i.flags&128)===0)return Tn=!1,Lx(n,i,a);Tn=(n.flags&131072)!==0}else Tn=!1,Tt&&(i.flags&1048576)!==0&&Zf(i,ro,i.index);switch(i.lanes=0,i.tag){case 2:var u=i.type;xo(n,i),n=i.pendingProps;var m=Ui(i,pn.current);Yi(i,a),m=xc(null,i,u,n,m,a);var v=kc();return i.flags|=1,typeof m=="object"&&m!==null&&typeof m.render=="function"&&m.$$typeof===void 0?(i.tag=1,i.memoizedState=null,i.updateQueue=null,En(u)?(v=!0,eo(i)):v=!1,i.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,fc(i),m.updater=yo,i.stateNode=m,m._reactInternals=i,Nc(i,u,n,a),i=Ic(null,i,u,!0,v,a)):(i.tag=0,Tt&&v&&nc(i),wn(null,i,m,a),i=i.child),i;case 16:u=i.elementType;e:{switch(xo(n,i),n=i.pendingProps,m=u._init,u=m(u._payload),i.type=u,m=i.tag=Qx(u),n=or(u,n),m){case 0:i=Tc(null,i,u,n,a);break e;case 1:i=Fp(null,i,u,n,a);break e;case 11:i=Mp(null,i,u,n,a);break e;case 14:i=Op(null,i,u,or(u.type,n),a);break e}throw Error(r(306,u,""))}return i;case 0:return u=i.type,m=i.pendingProps,m=i.elementType===u?m:or(u,m),Tc(n,i,u,m,a);case 1:return u=i.type,m=i.pendingProps,m=i.elementType===u?m:or(u,m),Fp(n,i,u,m,a);case 3:e:{if(Vp(i),n===null)throw Error(r(387));u=i.pendingProps,v=i.memoizedState,m=v.element,rp(n,i),co(i,u,null,a);var w=i.memoizedState;if(u=w.element,v.isDehydrated)if(v={element:u,isDehydrated:!1,cache:w.cache,pendingSuspenseBoundaries:w.pendingSuspenseBoundaries,transitions:w.transitions},i.updateQueue.baseState=v,i.memoizedState=v,i.flags&256){m=Xi(Error(r(423)),i),i=Up(n,i,u,a,m);break e}else if(u!==m){m=Xi(Error(r(424)),i),i=Up(n,i,u,a,m);break e}else for($n=Ur(i.stateNode.containerInfo.firstChild),zn=i,Tt=!0,lr=null,a=tp(i,null,u,a),i.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(qi(),u===m){i=Rr(n,i,a);break e}wn(n,i,u,a)}i=i.child}return i;case 5:return lp(i),n===null&&sc(i),u=i.type,m=i.pendingProps,v=n!==null?n.memoizedProps:null,w=m.children,Qa(u,m)?w=null:v!==null&&Qa(u,v)&&(i.flags|=32),Bp(n,i),wn(n,i,w,a),i.child;case 6:return n===null&&sc(i),null;case 13:return Hp(n,i,a);case 4:return pc(i,i.stateNode.containerInfo),u=i.pendingProps,n===null?i.child=Ki(i,null,u,a):wn(n,i,u,a),i.child;case 11:return u=i.type,m=i.pendingProps,m=i.elementType===u?m:or(u,m),Mp(n,i,u,m,a);case 7:return wn(n,i,i.pendingProps,a),i.child;case 8:return wn(n,i,i.pendingProps.children,a),i.child;case 12:return wn(n,i,i.pendingProps.children,a),i.child;case 10:e:{if(u=i.type._context,m=i.pendingProps,v=i.memoizedProps,w=m.value,wt(lo,u._currentValue),u._currentValue=w,v!==null)if(sr(v.value,w)){if(v.children===m.children&&!jn.current){i=Rr(n,i,a);break e}}else for(v=i.child,v!==null&&(v.return=i);v!==null;){var A=v.dependencies;if(A!==null){w=v.child;for(var M=A.firstContext;M!==null;){if(M.context===u){if(v.tag===1){M=Dr(-1,a&-a),M.tag=2;var U=v.updateQueue;if(U!==null){U=U.shared;var re=U.pending;re===null?M.next=M:(M.next=re.next,re.next=M),U.pending=M}}v.lanes|=a,M=v.alternate,M!==null&&(M.lanes|=a),uc(v.return,a,i),A.lanes|=a;break}M=M.next}}else if(v.tag===10)w=v.type===i.type?null:v.child;else if(v.tag===18){if(w=v.return,w===null)throw Error(r(341));w.lanes|=a,A=w.alternate,A!==null&&(A.lanes|=a),uc(w,a,i),w=v.sibling}else w=v.child;if(w!==null)w.return=v;else for(w=v;w!==null;){if(w===i){w=null;break}if(v=w.sibling,v!==null){v.return=w.return,w=v;break}w=w.return}v=w}wn(n,i,m.children,a),i=i.child}return i;case 9:return m=i.type,u=i.pendingProps.children,Yi(i,a),m=Kn(m),u=u(m),i.flags|=1,wn(n,i,u,a),i.child;case 14:return u=i.type,m=or(u,i.pendingProps),m=or(u.type,m),Op(n,i,u,m,a);case 15:return zp(n,i,i.type,i.pendingProps,a);case 17:return u=i.type,m=i.pendingProps,m=i.elementType===u?m:or(u,m),xo(n,i),i.tag=1,En(u)?(n=!0,eo(i)):n=!1,Yi(i,a),Tp(i,u,m),Nc(i,u,m,a),Ic(null,i,u,!0,n,a);case 19:return qp(n,i,a);case 22:return $p(n,i,a)}throw Error(r(156,i.tag))};function gh(n,i){return Zd(n,i)}function Yx(n,i,a,u){this.tag=n,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Qn(n,i,a,u){return new Yx(n,i,a,u)}function Qc(n){return n=n.prototype,!(!n||!n.isReactComponent)}function Qx(n){if(typeof n=="function")return Qc(n)?1:0;if(n!=null){if(n=n.$$typeof,n===ne)return 11;if(n===F)return 14}return 2}function ei(n,i){var a=n.alternate;return a===null?(a=Qn(n.tag,i,n.key,n.mode),a.elementType=n.elementType,a.type=n.type,a.stateNode=n.stateNode,a.alternate=n,n.alternate=a):(a.pendingProps=i,a.type=n.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=n.flags&14680064,a.childLanes=n.childLanes,a.lanes=n.lanes,a.child=n.child,a.memoizedProps=n.memoizedProps,a.memoizedState=n.memoizedState,a.updateQueue=n.updateQueue,i=n.dependencies,a.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},a.sibling=n.sibling,a.index=n.index,a.ref=n.ref,a}function Io(n,i,a,u,m,v){var w=2;if(u=n,typeof n=="function")Qc(n)&&(w=1);else if(typeof n=="string")w=5;else e:switch(n){case H:return Ci(a.children,m,v,i);case Z:w=8,m|=8;break;case G:return n=Qn(12,a,i,m|2),n.elementType=G,n.lanes=v,n;case xe:return n=Qn(13,a,i,m),n.elementType=xe,n.lanes=v,n;case ee:return n=Qn(19,a,i,m),n.elementType=ee,n.lanes=v,n;case he:return Ao(a,m,v,i);default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case z:w=10;break e;case K:w=9;break e;case ne:w=11;break e;case F:w=14;break e;case ge:w=16,u=null;break e}throw Error(r(130,n==null?n:typeof n,""))}return i=Qn(w,a,i,m),i.elementType=n,i.type=u,i.lanes=v,i}function Ci(n,i,a,u){return n=Qn(7,n,u,i),n.lanes=a,n}function Ao(n,i,a,u){return n=Qn(22,n,u,i),n.elementType=he,n.lanes=a,n.stateNode={isHidden:!1},n}function Xc(n,i,a){return n=Qn(6,n,null,i),n.lanes=a,n}function Gc(n,i,a){return i=Qn(4,n.children!==null?n.children:[],n.key,i),i.lanes=a,i.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},i}function Xx(n,i,a,u,m){this.tag=i,this.containerInfo=n,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ca(0),this.expirationTimes=Ca(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ca(0),this.identifierPrefix=u,this.onRecoverableError=m,this.mutableSourceEagerHydrationData=null}function Jc(n,i,a,u,m,v,w,A,M){return n=new Xx(n,i,a,A,M),i===1?(i=1,v===!0&&(i|=8)):i=0,v=Qn(3,null,null,i),n.current=v,v.stateNode=n,v.memoizedState={element:u,isDehydrated:a,cache:null,transitions:null,pendingSuspenseBoundaries:null},fc(v),n}function Gx(n,i,a){var u=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:j,key:u==null?null:""+u,children:n,containerInfo:i,implementation:a}}function yh(n){if(!n)return Wr;n=n._reactInternals;e:{if(pi(n)!==n||n.tag!==1)throw Error(r(170));var i=n;do{switch(i.tag){case 3:i=i.stateNode.context;break e;case 1:if(En(i.type)){i=i.stateNode.__reactInternalMemoizedMergedChildContext;break e}}i=i.return}while(i!==null);throw Error(r(171))}if(n.tag===1){var a=n.type;if(En(a))return Wf(n,a,i)}return i}function vh(n,i,a,u,m,v,w,A,M){return n=Jc(a,u,!0,n,m,v,w,A,M),n.context=yh(null),a=n.current,u=bn(),m=Gr(a),v=Dr(u,m),v.callback=i??null,Zr(a,v,m),n.current.lanes=m,ws(n,m,u),An(n,u),n}function Do(n,i,a,u){var m=i.current,v=bn(),w=Gr(m);return a=yh(a),i.context===null?i.context=a:i.pendingContext=a,i=Dr(v,w),i.payload={element:n},u=u===void 0?null:u,u!==null&&(i.callback=u),n=Zr(m,i,w),n!==null&&(ur(n,m,w,v),ao(n,m,w)),w}function Ro(n){if(n=n.current,!n.child)return null;switch(n.child.tag){case 5:return n.child.stateNode;default:return n.child.stateNode}}function xh(n,i){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var a=n.retryLane;n.retryLane=a!==0&&a<i?a:i}}function eu(n,i){xh(n,i),(n=n.alternate)&&xh(n,i)}function Jx(){return null}var kh=typeof reportError=="function"?reportError:function(n){console.error(n)};function tu(n){this._internalRoot=n}Po.prototype.render=tu.prototype.render=function(n){var i=this._internalRoot;if(i===null)throw Error(r(409));Do(n,i,null,null)},Po.prototype.unmount=tu.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var i=n.containerInfo;wi(function(){Do(null,n,null,null)}),i[jr]=null}};function Po(n){this._internalRoot=n}Po.prototype.unstable_scheduleHydration=function(n){if(n){var i=nf();n={blockedOn:null,target:n,priority:i};for(var a=0;a<Br.length&&i!==0&&i<Br[a].priority;a++);Br.splice(a,0,n),a===0&&lf(n)}};function nu(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function Lo(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11&&(n.nodeType!==8||n.nodeValue!==" react-mount-point-unstable "))}function _h(){}function ek(n,i,a,u,m){if(m){if(typeof u=="function"){var v=u;u=function(){var U=Ro(w);v.call(U)}}var w=vh(i,u,n,0,null,!1,!1,"",_h);return n._reactRootContainer=w,n[jr]=w.current,Ms(n.nodeType===8?n.parentNode:n),wi(),w}for(;m=n.lastChild;)n.removeChild(m);if(typeof u=="function"){var A=u;u=function(){var U=Ro(M);A.call(U)}}var M=Jc(n,0,!1,null,null,!1,!1,"",_h);return n._reactRootContainer=M,n[jr]=M.current,Ms(n.nodeType===8?n.parentNode:n),wi(function(){Do(i,M,a,u)}),M}function Mo(n,i,a,u,m){var v=a._reactRootContainer;if(v){var w=v;if(typeof m=="function"){var A=m;m=function(){var M=Ro(w);A.call(M)}}Do(i,w,n,m)}else w=ek(a,i,n,m,u);return Ro(w)}ef=function(n){switch(n.tag){case 3:var i=n.stateNode;if(i.current.memoizedState.isDehydrated){var a=_s(i.pendingLanes);a!==0&&(Na(i,a|1),An(i,Ft()),(lt&6)===0&&(es=Ft()+500,qr()))}break;case 13:wi(function(){var u=Ar(n,1);if(u!==null){var m=bn();ur(u,n,1,m)}}),eu(n,1)}},ja=function(n){if(n.tag===13){var i=Ar(n,134217728);if(i!==null){var a=bn();ur(i,n,134217728,a)}eu(n,134217728)}},tf=function(n){if(n.tag===13){var i=Gr(n),a=Ar(n,i);if(a!==null){var u=bn();ur(a,n,i,u)}eu(n,i)}},nf=function(){return mt},rf=function(n,i){var a=mt;try{return mt=n,i()}finally{mt=a}},Ct=function(n,i,a){switch(i){case"input":if(kn(n,a),i=a.name,a.type==="radio"&&i!=null){for(a=n;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll("input[name="+JSON.stringify(""+i)+'][type="radio"]'),i=0;i<a.length;i++){var u=a[i];if(u!==n&&u.form===n.form){var m=Gl(u);if(!m)throw Error(r(90));_t(u),kn(u,m)}}}break;case"textarea":me(n,a);break;case"select":i=a.value,i!=null&&pe(n,!!a.multiple,i,!1)}},_n=Kc,dn=wi;var tk={usingClientEntryPoint:!1,Events:[$s,Fi,Gl,un,tr,Kc]},Js={findFiberByHostInstance:hi,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nk={bundleType:Js.bundleType,version:Js.version,rendererPackageName:Js.rendererPackageName,rendererConfig:Js.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:R.ReactCurrentDispatcher,findHostInstanceByFiber:function(n){return n=qd(n),n===null?null:n.stateNode},findFiberByHostInstance:Js.findFiberByHostInstance||Jx,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Oo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Oo.isDisabled&&Oo.supportsFiber)try{Rl=Oo.inject(nk),hr=Oo}catch{}}return Dn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tk,Dn.createPortal=function(n,i){var a=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!nu(i))throw Error(r(200));return Gx(n,i,null,a)},Dn.createRoot=function(n,i){if(!nu(n))throw Error(r(299));var a=!1,u="",m=kh;return i!=null&&(i.unstable_strictMode===!0&&(a=!0),i.identifierPrefix!==void 0&&(u=i.identifierPrefix),i.onRecoverableError!==void 0&&(m=i.onRecoverableError)),i=Jc(n,1,!1,null,null,a,!1,u,m),n[jr]=i.current,Ms(n.nodeType===8?n.parentNode:n),new tu(i)},Dn.findDOMNode=function(n){if(n==null)return null;if(n.nodeType===1)return n;var i=n._reactInternals;if(i===void 0)throw typeof n.render=="function"?Error(r(188)):(n=Object.keys(n).join(","),Error(r(268,n)));return n=qd(i),n=n===null?null:n.stateNode,n},Dn.flushSync=function(n){return wi(n)},Dn.hydrate=function(n,i,a){if(!Lo(i))throw Error(r(200));return Mo(null,n,i,!0,a)},Dn.hydrateRoot=function(n,i,a){if(!nu(n))throw Error(r(405));var u=a!=null&&a.hydratedSources||null,m=!1,v="",w=kh;if(a!=null&&(a.unstable_strictMode===!0&&(m=!0),a.identifierPrefix!==void 0&&(v=a.identifierPrefix),a.onRecoverableError!==void 0&&(w=a.onRecoverableError)),i=vh(i,null,n,1,a??null,m,!1,v,w),n[jr]=i.current,Ms(n),u)for(n=0;n<u.length;n++)a=u[n],m=a._getVersion,m=m(a._source),i.mutableSourceEagerHydrationData==null?i.mutableSourceEagerHydrationData=[a,m]:i.mutableSourceEagerHydrationData.push(a,m);return new Po(i)},Dn.render=function(n,i,a){if(!Lo(i))throw Error(r(200));return Mo(null,n,i,!1,a)},Dn.unmountComponentAtNode=function(n){if(!Lo(n))throw Error(r(40));return n._reactRootContainer?(wi(function(){Mo(null,null,n,!1,function(){n._reactRootContainer=null,n[jr]=null})}),!0):!1},Dn.unstable_batchedUpdates=Kc,Dn.unstable_renderSubtreeIntoContainer=function(n,i,a,u){if(!Lo(a))throw Error(r(200));if(n==null||n._reactInternals===void 0)throw Error(r(38));return Mo(n,i,a,!1,u)},Dn.version="18.3.1-next-f1338f8080-20240426",Dn}var Th;function yg(){if(Th)return su.exports;Th=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),su.exports=dk(),su.exports}var Ih;function fk(){if(Ih)return zo;Ih=1;var e=yg();return zo.createRoot=e.createRoot,zo.hydrateRoot=e.hydrateRoot,zo}var pk=fk();class br extends Error{constructor(r,s,l){super(s);Ni(this,"status");Ni(this,"issues");this.name="ApiError",this.status=r,this.issues=l}}class _r extends br{constructor(r){super(409,r.error);Ni(this,"serverContent");Ni(this,"serverMtimeMs");this.name="ConflictError",this.serverContent=r.serverContent,this.serverMtimeMs=r.serverMtimeMs}}async function St(e){if(e.ok)return await e.json();let t={};try{t=await e.json()}catch{}throw new br(e.status,t.error??`エラー (${e.status})`,t.issues)}async function hk(e){return St(await fetch("/api/board",{signal:e}))}async function mk(){return St(await fetch("/api/mode"))}async function gk(e){return St(await fetch("/api/overview",{signal:e}))}async function id(e){return St(await fetch("/api/archive",{signal:e}))}async function yk(e){const t=await fetch(`/api/tasks/${encodeURIComponent(e)}/unarchive`,{method:"POST",headers:{"content-type":"application/json"},body:"{}"});await St(t)}async function vk(e){return St(await fetch("/api/trash",{signal:e}))}async function xk(e,t,r){const s={};t!==void 0&&(s.trashedAt=t),r!==void 0&&(s.overwrite=r);const l=await fetch(`/api/tasks/${encodeURIComponent(e)}/restore`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(s)});await St(l)}async function kk(e){const t=await fetch("/api/tasks",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)});return St(t)}async function _k(e){const{id:t,...r}=e,s=await fetch(`/api/tasks/${encodeURIComponent(t)}`,{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify(r)});return St(s)}async function Ah(e,t,r){const s=await fetch(`/api/tasks/${encodeURIComponent(e)}`,{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify({content:t,baseMtimeMs:r})});if(s.status===409)throw new _r(await s.json());return St(s)}async function wk(e){const t=await fetch(`/api/tasks/${encodeURIComponent(e)}/approve`,{method:"POST",headers:{"content-type":"application/json"},body:"{}"});return St(t)}async function bk(e,t){const r=await fetch(`/api/tasks/${encodeURIComponent(e)}/reject`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({reason:t})});return St(r)}async function vg(e,t,r){const s={};t!==void 0&&(s.reason=t),r!==void 0&&(s.baseMtimeMs=r);const l=await fetch(`/api/tasks/${encodeURIComponent(e)}/revise`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(s)});if(l.status===409){const o=await l.json();throw typeof o.serverContent=="string"&&typeof o.serverMtimeMs=="number"?new _r(o):new br(409,o.error??"エラー (409)")}return St(l)}async function Dh(e){const t=await fetch(`/api/tasks/${encodeURIComponent(e)}/archive`,{method:"POST",headers:{"content-type":"application/json"},body:"{}"});return St(t)}async function Sk(e){const t=await fetch(`/api/tasks/${encodeURIComponent(e)}/rename`,{method:"POST",headers:{"content-type":"application/json"},body:"{}"});return St(t)}async function Qo(){const e=await fetch("/api/config"),t=await St(e),r=e.headers.get("x-config-mtime-ms"),s=r!==null&&r!==""?Number(r):null;return{config:t,mtimeMs:s!==null&&Number.isFinite(s)?s:null}}async function sd(e,t){const r={"content-type":"application/json"};t!=null&&(r["x-base-mtime-ms"]=String(t));const s=await fetch("/api/config",{method:"PUT",headers:r,body:JSON.stringify(e)});if(s.status===409)throw new _r(await s.json());await St(s)}async function Ck(e,t){const r=await fetch("/api/members/rename",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({from:e,to:t})});return St(r)}async function Nk(e){try{const{config:t,mtimeMs:r}=await Qo();if(t.language===e)return;await sd({...t,language:e},r)}catch{}}async function Rh(e){const{config:t,mtimeMs:r}=await Qo();await sd({...t,savedViews:e},r)}async function jk(e,t=!1){const r=t?"&scope=global":"";return St(await fetch(`/api/files?path=${encodeURIComponent(e)}${r}`))}async function Ek(e,t,r,s=!1){const l=await fetch("/api/files",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify({path:e,content:t,baseMtimeMs:r,...s?{scope:"global"}:{}})});return St(l)}async function Tk(){return(await St(await fetch("/api/files/tree"))).trees}async function xg(e){return(await St(await fetch("/api/docs/tree",{signal:e}))).trees}async function kg(e,t){return St(await fetch(`/api/docs?path=${encodeURIComponent(e)}`,{signal:t}))}async function Ph(e=!1){return(await St(await fetch(`/api/files/catalog${e?"?scope=global":""}`))).items}async function Ik(e,t){return(await St(await fetch(`/api/tasks/${encodeURIComponent(e)}/commits`,{signal:t}))).commits}async function Ak(e,t,r){const s=await fetch(`/api/tasks/${encodeURIComponent(e)}/comment`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({member:t,message:r})});return St(s)}function Dk(){const[e,t]=b.useState(null),[r,s]=b.useState(!0),[l,o]=b.useState(null),[c,d]=b.useState(!1),f=b.useRef(0),h=b.useCallback(async()=>{const g=++f.current;try{const y=await hk();g===f.current&&(t(y),o(null))}catch(y){g===f.current&&o(y instanceof Error?y.message:"ボードの取得に失敗しました")}finally{g===f.current&&s(!1)}},[]);return b.useEffect(()=>{h();const g=new EventSource("/api/events");return g.onopen=()=>{d(!0),h()},g.onmessage=y=>{try{const k=JSON.parse(y.data);k.type==="change"?h():k.type==="connected"&&d(!0)}catch{}},g.onerror=()=>{d(!1)},()=>{g.close()}},[h]),{board:e,loading:r,error:l,connected:c,refresh:h}}function Rk(e,t){const r=new Map;for(const o of e)r.set(o.id,o);const s=[],l=[];for(const o of t){const c=r.get(o.id);if(c===void 0){s.push(o.id);continue}(o.status!==c.status||Pk(o.updated,c.updated))&&l.push(o.id)}return{newIds:s,updatedIds:l,changedIds:new Set([...s,...l])}}function Pk(e,t){const r=Date.parse(e),s=Date.parse(t);return Number.isNaN(r)||Number.isNaN(s)?e!==t:r>s}const Lk="aizuchi.seen.";function _g(e){const t=(e??"").trim();return`${Lk}${t===""?"default":t}`}function Lh(e){try{if(typeof localStorage>"u")return{};const t=localStorage.getItem(_g(e));if(t===null)return{};const r=JSON.parse(t);if(r===null||typeof r!="object"||Array.isArray(r))return{};const s={};for(const[l,o]of Object.entries(r))typeof o=="string"&&(s[l]=o);return s}catch{return{}}}function $o(e,t){try{if(typeof localStorage>"u")return;localStorage.setItem(_g(e),JSON.stringify(t))}catch{}}function Bo(e){return`${e.updated}|${e.status}`}function Mk(e){return{id:e.frontmatter.id,updated:e.frontmatter.updated,status:e.frontmatter.status}}function Ok(e,t){const[r,s]=b.useState(()=>Lh(t)),l=b.useRef(null),o=b.useRef(t);o.current=t,b.useEffect(()=>{s(Lh(t)),l.current=null},[t]),b.useEffect(()=>{if(e===null)return;const h=e.map(Mk);if(l.current===null){l.current=h,s(k=>{if(Object.keys(k).length>0)return k;const x={};for(const _ of e)x[_.frontmatter.id]=Bo(_.frontmatter);return $o(o.current,x),x});return}const g=Rk(l.current,h);l.current=h;const y=new Set(h.map(k=>k.id));s(k=>{let x=!1;const _={...k};for(const T of g.changedIds)T in _&&(delete _[T],x=!0);for(const T of Object.keys(_))y.has(T)||(delete _[T],x=!0);return x?($o(o.current,_),_):k})},[e]);const c=b.useMemo(()=>{if(e===null)return new Set;const h=new Set;for(const g of e)r[g.frontmatter.id]!==Bo(g.frontmatter)&&h.add(g.frontmatter.id);return h},[e,r]),d=b.useCallback(h=>{const g=e==null?void 0:e.find(k=>k.frontmatter.id===h);if(!g)return;const y=Bo(g.frontmatter);s(k=>{if(k[h]===y)return k;const x={...k,[h]:y};return $o(o.current,x),x})},[e]),f=b.useCallback(()=>{e!==null&&s(()=>{const h={};for(const g of e)h[g.frontmatter.id]=Bo(g.frontmatter);return $o(o.current,h),h})},[e]);return{unreadIds:c,markRead:d,markAllRead:f}}var ct;(function(e){e.assertEqual=l=>{};function t(l){}e.assertIs=t;function r(l){throw new Error}e.assertNever=r,e.arrayToEnum=l=>{const o={};for(const c of l)o[c]=c;return o},e.getValidEnumValues=l=>{const o=e.objectKeys(l).filter(d=>typeof l[l[d]]!="number"),c={};for(const d of o)c[d]=l[d];return e.objectValues(c)},e.objectValues=l=>e.objectKeys(l).map(function(o){return l[o]}),e.objectKeys=typeof Object.keys=="function"?l=>Object.keys(l):l=>{const o=[];for(const c in l)Object.prototype.hasOwnProperty.call(l,c)&&o.push(c);return o},e.find=(l,o)=>{for(const c of l)if(o(c))return c},e.isInteger=typeof Number.isInteger=="function"?l=>Number.isInteger(l):l=>typeof l=="number"&&Number.isFinite(l)&&Math.floor(l)===l;function s(l,o=" | "){return l.map(c=>typeof c=="string"?`'${c}'`:c).join(o)}e.joinValues=s,e.jsonStringifyReplacer=(l,o)=>typeof o=="bigint"?o.toString():o})(ct||(ct={}));var Mh;(function(e){e.mergeShapes=(t,r)=>({...t,...r})})(Mh||(Mh={}));const Te=ct.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),ii=e=>{switch(typeof e){case"undefined":return Te.undefined;case"string":return Te.string;case"number":return Number.isNaN(e)?Te.nan:Te.number;case"boolean":return Te.boolean;case"function":return Te.function;case"bigint":return Te.bigint;case"symbol":return Te.symbol;case"object":return Array.isArray(e)?Te.array:e===null?Te.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?Te.promise:typeof Map<"u"&&e instanceof Map?Te.map:typeof Set<"u"&&e instanceof Set?Te.set:typeof Date<"u"&&e instanceof Date?Te.date:Te.object;default:return Te.unknown}},oe=ct.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class Lr extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=s=>{this.issues=[...this.issues,s]},this.addIssues=(s=[])=>{this.issues=[...this.issues,...s]};const r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=t}format(t){const r=t||function(o){return o.message},s={_errors:[]},l=o=>{for(const c of o.issues)if(c.code==="invalid_union")c.unionErrors.map(l);else if(c.code==="invalid_return_type")l(c.returnTypeError);else if(c.code==="invalid_arguments")l(c.argumentsError);else if(c.path.length===0)s._errors.push(r(c));else{let d=s,f=0;for(;f<c.path.length;){const h=c.path[f];f===c.path.length-1?(d[h]=d[h]||{_errors:[]},d[h]._errors.push(r(c))):d[h]=d[h]||{_errors:[]},d=d[h],f++}}};return l(this),s}static assert(t){if(!(t instanceof Lr))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,ct.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=r=>r.message){const r={},s=[];for(const l of this.issues)if(l.path.length>0){const o=l.path[0];r[o]=r[o]||[],r[o].push(t(l))}else s.push(t(l));return{formErrors:s,fieldErrors:r}}get formErrors(){return this.flatten()}}Lr.create=e=>new Lr(e);const Iu=(e,t)=>{let r;switch(e.code){case oe.invalid_type:e.received===Te.undefined?r="Required":r=`Expected ${e.expected}, received ${e.received}`;break;case oe.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,ct.jsonStringifyReplacer)}`;break;case oe.unrecognized_keys:r=`Unrecognized key(s) in object: ${ct.joinValues(e.keys,", ")}`;break;case oe.invalid_union:r="Invalid input";break;case oe.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${ct.joinValues(e.options)}`;break;case oe.invalid_enum_value:r=`Invalid enum value. Expected ${ct.joinValues(e.options)}, received '${e.received}'`;break;case oe.invalid_arguments:r="Invalid function arguments";break;case oe.invalid_return_type:r="Invalid function return type";break;case oe.invalid_date:r="Invalid date";break;case oe.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:ct.assertNever(e.validation):e.validation!=="regex"?r=`Invalid ${e.validation}`:r="Invalid";break;case oe.too_small:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:r="Invalid input";break;case oe.too_big:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?r=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:r="Invalid input";break;case oe.custom:r="Invalid input";break;case oe.invalid_intersection_types:r="Intersection results could not be merged";break;case oe.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case oe.not_finite:r="Number must be finite";break;default:r=t.defaultError,ct.assertNever(e)}return{message:r}};let zk=Iu;function $k(){return zk}const Bk=e=>{const{data:t,path:r,errorMaps:s,issueData:l}=e,o=[...r,...l.path||[]],c={...l,path:o};if(l.message!==void 0)return{...l,path:o,message:l.message};let d="";const f=s.filter(h=>!!h).slice().reverse();for(const h of f)d=h(c,{data:t,defaultError:d}).message;return{...l,path:o,message:d}};function we(e,t){const r=$k(),s=Bk({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===Iu?void 0:Iu].filter(l=>!!l)});e.common.issues.push(s)}class Un{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,r){const s=[];for(const l of r){if(l.status==="aborted")return qe;l.status==="dirty"&&t.dirty(),s.push(l.value)}return{status:t.value,value:s}}static async mergeObjectAsync(t,r){const s=[];for(const l of r){const o=await l.key,c=await l.value;s.push({key:o,value:c})}return Un.mergeObjectSync(t,s)}static mergeObjectSync(t,r){const s={};for(const l of r){const{key:o,value:c}=l;if(o.status==="aborted"||c.status==="aborted")return qe;o.status==="dirty"&&t.dirty(),c.status==="dirty"&&t.dirty(),o.value!=="__proto__"&&(typeof c.value<"u"||l.alwaysSet)&&(s[o.value]=c.value)}return{status:t.value,value:s}}}const qe=Object.freeze({status:"aborted"}),ol=e=>({status:"dirty",value:e}),er=e=>({status:"valid",value:e}),Oh=e=>e.status==="aborted",zh=e=>e.status==="dirty",as=e=>e.status==="valid",Xo=e=>typeof Promise<"u"&&e instanceof Promise;var De;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(De||(De={}));class ai{constructor(t,r,s,l){this._cachedPath=[],this.parent=t,this.data=r,this._path=s,this._key=l}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const $h=(e,t)=>{if(as(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const r=new Lr(e.common.issues);return this._error=r,this._error}}};function tt(e){if(!e)return{};const{errorMap:t,invalid_type_error:r,required_error:s,description:l}=e;if(t&&(r||s))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:l}:{errorMap:(c,d)=>{const{message:f}=e;return c.code==="invalid_enum_value"?{message:f??d.defaultError}:typeof d.data>"u"?{message:f??s??d.defaultError}:c.code!=="invalid_type"?{message:d.defaultError}:{message:f??r??d.defaultError}},description:l}}class ot{get description(){return this._def.description}_getType(t){return ii(t.data)}_getOrReturnCtx(t,r){return r||{common:t.parent.common,data:t.data,parsedType:ii(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Un,ctx:{common:t.parent.common,data:t.data,parsedType:ii(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const r=this._parse(t);if(Xo(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(t){const r=this._parse(t);return Promise.resolve(r)}parse(t,r){const s=this.safeParse(t,r);if(s.success)return s.data;throw s.error}safeParse(t,r){const s={common:{issues:[],async:(r==null?void 0:r.async)??!1,contextualErrorMap:r==null?void 0:r.errorMap},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:ii(t)},l=this._parseSync({data:t,path:s.path,parent:s});return $h(s,l)}"~validate"(t){var s,l;const r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:ii(t)};if(!this["~standard"].async)try{const o=this._parseSync({data:t,path:[],parent:r});return as(o)?{value:o.value}:{issues:r.common.issues}}catch(o){(l=(s=o==null?void 0:o.message)==null?void 0:s.toLowerCase())!=null&&l.includes("encountered")&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:r}).then(o=>as(o)?{value:o.value}:{issues:r.common.issues})}async parseAsync(t,r){const s=await this.safeParseAsync(t,r);if(s.success)return s.data;throw s.error}async safeParseAsync(t,r){const s={common:{issues:[],contextualErrorMap:r==null?void 0:r.errorMap,async:!0},path:(r==null?void 0:r.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:ii(t)},l=this._parse({data:t,path:s.path,parent:s}),o=await(Xo(l)?l:Promise.resolve(l));return $h(s,o)}refine(t,r){const s=l=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(l):r;return this._refinement((l,o)=>{const c=t(l),d=()=>o.addIssue({code:oe.custom,...s(l)});return typeof Promise<"u"&&c instanceof Promise?c.then(f=>f?!0:(d(),!1)):c?!0:(d(),!1)})}refinement(t,r){return this._refinement((s,l)=>t(s)?!0:(l.addIssue(typeof r=="function"?r(s,l):r),!1))}_refinement(t){return new ds({schema:this,typeName:Ke.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:r=>this["~validate"](r)}}optional(){return oi.create(this,this._def)}nullable(){return fs.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return wr.create(this)}promise(){return ta.create(this,this._def)}or(t){return Jo.create([this,t],this._def)}and(t){return ea.create(this,t,this._def)}transform(t){return new ds({...tt(this._def),schema:this,typeName:Ke.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const r=typeof t=="function"?t:()=>t;return new Ru({...tt(this._def),innerType:this,defaultValue:r,typeName:Ke.ZodDefault})}brand(){return new c_({typeName:Ke.ZodBranded,type:this,...tt(this._def)})}catch(t){const r=typeof t=="function"?t:()=>t;return new Pu({...tt(this._def),innerType:this,catchValue:r,typeName:Ke.ZodCatch})}describe(t){const r=this.constructor;return new r({...this._def,description:t})}pipe(t){return ld.create(this,t)}readonly(){return Lu.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const Fk=/^c[^\s-]{8,}$/i,Vk=/^[0-9a-z]+$/,Uk=/^[0-9A-HJKMNP-TV-Z]{26}$/i,Hk=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Wk=/^[a-z0-9_-]{21}$/i,qk=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,Kk=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Zk=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Yk="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let au;const Qk=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Xk=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,Gk=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,Jk=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,e_=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,t_=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,wg="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",n_=new RegExp(`^${wg}$`);function bg(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);const r=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${r}`}function r_(e){return new RegExp(`^${bg(e)}$`)}function i_(e){let t=`${wg}T${bg(e)}`;const r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,new RegExp(`^${t}$`)}function s_(e,t){return!!((t==="v4"||!t)&&Qk.test(e)||(t==="v6"||!t)&&Gk.test(e))}function l_(e,t){if(!qk.test(e))return!1;try{const[r]=e.split(".");if(!r)return!1;const s=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),l=JSON.parse(atob(s));return!(typeof l!="object"||l===null||"typ"in l&&(l==null?void 0:l.typ)!=="JWT"||!l.alg||t&&l.alg!==t)}catch{return!1}}function o_(e,t){return!!((t==="v4"||!t)&&Xk.test(e)||(t==="v6"||!t)&&Jk.test(e))}class li extends ot{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==Te.string){const o=this._getOrReturnCtx(t);return we(o,{code:oe.invalid_type,expected:Te.string,received:o.parsedType}),qe}const s=new Un;let l;for(const o of this._def.checks)if(o.kind==="min")t.data.length<o.value&&(l=this._getOrReturnCtx(t,l),we(l,{code:oe.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),s.dirty());else if(o.kind==="max")t.data.length>o.value&&(l=this._getOrReturnCtx(t,l),we(l,{code:oe.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),s.dirty());else if(o.kind==="length"){const c=t.data.length>o.value,d=t.data.length<o.value;(c||d)&&(l=this._getOrReturnCtx(t,l),c?we(l,{code:oe.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):d&&we(l,{code:oe.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),s.dirty())}else if(o.kind==="email")Zk.test(t.data)||(l=this._getOrReturnCtx(t,l),we(l,{validation:"email",code:oe.invalid_string,message:o.message}),s.dirty());else if(o.kind==="emoji")au||(au=new RegExp(Yk,"u")),au.test(t.data)||(l=this._getOrReturnCtx(t,l),we(l,{validation:"emoji",code:oe.invalid_string,message:o.message}),s.dirty());else if(o.kind==="uuid")Hk.test(t.data)||(l=this._getOrReturnCtx(t,l),we(l,{validation:"uuid",code:oe.invalid_string,message:o.message}),s.dirty());else if(o.kind==="nanoid")Wk.test(t.data)||(l=this._getOrReturnCtx(t,l),we(l,{validation:"nanoid",code:oe.invalid_string,message:o.message}),s.dirty());else if(o.kind==="cuid")Fk.test(t.data)||(l=this._getOrReturnCtx(t,l),we(l,{validation:"cuid",code:oe.invalid_string,message:o.message}),s.dirty());else if(o.kind==="cuid2")Vk.test(t.data)||(l=this._getOrReturnCtx(t,l),we(l,{validation:"cuid2",code:oe.invalid_string,message:o.message}),s.dirty());else if(o.kind==="ulid")Uk.test(t.data)||(l=this._getOrReturnCtx(t,l),we(l,{validation:"ulid",code:oe.invalid_string,message:o.message}),s.dirty());else if(o.kind==="url")try{new URL(t.data)}catch{l=this._getOrReturnCtx(t,l),we(l,{validation:"url",code:oe.invalid_string,message:o.message}),s.dirty()}else o.kind==="regex"?(o.regex.lastIndex=0,o.regex.test(t.data)||(l=this._getOrReturnCtx(t,l),we(l,{validation:"regex",code:oe.invalid_string,message:o.message}),s.dirty())):o.kind==="trim"?t.data=t.data.trim():o.kind==="includes"?t.data.includes(o.value,o.position)||(l=this._getOrReturnCtx(t,l),we(l,{code:oe.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),s.dirty()):o.kind==="toLowerCase"?t.data=t.data.toLowerCase():o.kind==="toUpperCase"?t.data=t.data.toUpperCase():o.kind==="startsWith"?t.data.startsWith(o.value)||(l=this._getOrReturnCtx(t,l),we(l,{code:oe.invalid_string,validation:{startsWith:o.value},message:o.message}),s.dirty()):o.kind==="endsWith"?t.data.endsWith(o.value)||(l=this._getOrReturnCtx(t,l),we(l,{code:oe.invalid_string,validation:{endsWith:o.value},message:o.message}),s.dirty()):o.kind==="datetime"?i_(o).test(t.data)||(l=this._getOrReturnCtx(t,l),we(l,{code:oe.invalid_string,validation:"datetime",message:o.message}),s.dirty()):o.kind==="date"?n_.test(t.data)||(l=this._getOrReturnCtx(t,l),we(l,{code:oe.invalid_string,validation:"date",message:o.message}),s.dirty()):o.kind==="time"?r_(o).test(t.data)||(l=this._getOrReturnCtx(t,l),we(l,{code:oe.invalid_string,validation:"time",message:o.message}),s.dirty()):o.kind==="duration"?Kk.test(t.data)||(l=this._getOrReturnCtx(t,l),we(l,{validation:"duration",code:oe.invalid_string,message:o.message}),s.dirty()):o.kind==="ip"?s_(t.data,o.version)||(l=this._getOrReturnCtx(t,l),we(l,{validation:"ip",code:oe.invalid_string,message:o.message}),s.dirty()):o.kind==="jwt"?l_(t.data,o.alg)||(l=this._getOrReturnCtx(t,l),we(l,{validation:"jwt",code:oe.invalid_string,message:o.message}),s.dirty()):o.kind==="cidr"?o_(t.data,o.version)||(l=this._getOrReturnCtx(t,l),we(l,{validation:"cidr",code:oe.invalid_string,message:o.message}),s.dirty()):o.kind==="base64"?e_.test(t.data)||(l=this._getOrReturnCtx(t,l),we(l,{validation:"base64",code:oe.invalid_string,message:o.message}),s.dirty()):o.kind==="base64url"?t_.test(t.data)||(l=this._getOrReturnCtx(t,l),we(l,{validation:"base64url",code:oe.invalid_string,message:o.message}),s.dirty()):ct.assertNever(o);return{status:s.value,value:t.data}}_regex(t,r,s){return this.refinement(l=>t.test(l),{validation:r,code:oe.invalid_string,...De.errToObj(s)})}_addCheck(t){return new li({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...De.errToObj(t)})}url(t){return this._addCheck({kind:"url",...De.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...De.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...De.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...De.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...De.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...De.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...De.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...De.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...De.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...De.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...De.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...De.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(t==null?void 0:t.offset)??!1,local:(t==null?void 0:t.local)??!1,...De.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...De.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...De.errToObj(t)})}regex(t,r){return this._addCheck({kind:"regex",regex:t,...De.errToObj(r)})}includes(t,r){return this._addCheck({kind:"includes",value:t,position:r==null?void 0:r.position,...De.errToObj(r==null?void 0:r.message)})}startsWith(t,r){return this._addCheck({kind:"startsWith",value:t,...De.errToObj(r)})}endsWith(t,r){return this._addCheck({kind:"endsWith",value:t,...De.errToObj(r)})}min(t,r){return this._addCheck({kind:"min",value:t,...De.errToObj(r)})}max(t,r){return this._addCheck({kind:"max",value:t,...De.errToObj(r)})}length(t,r){return this._addCheck({kind:"length",value:t,...De.errToObj(r)})}nonempty(t){return this.min(1,De.errToObj(t))}trim(){return new li({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new li({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new li({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxLength(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}}li.create=e=>new li({checks:[],typeName:Ke.ZodString,coerce:(e==null?void 0:e.coerce)??!1,...tt(e)});function a_(e,t){const r=(e.toString().split(".")[1]||"").length,s=(t.toString().split(".")[1]||"").length,l=r>s?r:s,o=Number.parseInt(e.toFixed(l).replace(".","")),c=Number.parseInt(t.toFixed(l).replace(".",""));return o%c/10**l}class cs extends ot{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==Te.number){const o=this._getOrReturnCtx(t);return we(o,{code:oe.invalid_type,expected:Te.number,received:o.parsedType}),qe}let s;const l=new Un;for(const o of this._def.checks)o.kind==="int"?ct.isInteger(t.data)||(s=this._getOrReturnCtx(t,s),we(s,{code:oe.invalid_type,expected:"integer",received:"float",message:o.message}),l.dirty()):o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(s=this._getOrReturnCtx(t,s),we(s,{code:oe.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),l.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(s=this._getOrReturnCtx(t,s),we(s,{code:oe.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),l.dirty()):o.kind==="multipleOf"?a_(t.data,o.value)!==0&&(s=this._getOrReturnCtx(t,s),we(s,{code:oe.not_multiple_of,multipleOf:o.value,message:o.message}),l.dirty()):o.kind==="finite"?Number.isFinite(t.data)||(s=this._getOrReturnCtx(t,s),we(s,{code:oe.not_finite,message:o.message}),l.dirty()):ct.assertNever(o);return{status:l.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,De.toString(r))}gt(t,r){return this.setLimit("min",t,!1,De.toString(r))}lte(t,r){return this.setLimit("max",t,!0,De.toString(r))}lt(t,r){return this.setLimit("max",t,!1,De.toString(r))}setLimit(t,r,s,l){return new cs({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:s,message:De.toString(l)}]})}_addCheck(t){return new cs({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:De.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:De.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:De.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:De.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:De.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:De.toString(r)})}finite(t){return this._addCheck({kind:"finite",message:De.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:De.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:De.toString(t)})}get minValue(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&ct.isInteger(t.value))}get isFinite(){let t=null,r=null;for(const s of this._def.checks){if(s.kind==="finite"||s.kind==="int"||s.kind==="multipleOf")return!0;s.kind==="min"?(r===null||s.value>r)&&(r=s.value):s.kind==="max"&&(t===null||s.value<t)&&(t=s.value)}return Number.isFinite(r)&&Number.isFinite(t)}}cs.create=e=>new cs({checks:[],typeName:Ke.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...tt(e)});class gl extends ot{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==Te.bigint)return this._getInvalidInput(t);let s;const l=new Un;for(const o of this._def.checks)o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(s=this._getOrReturnCtx(t,s),we(s,{code:oe.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message}),l.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(s=this._getOrReturnCtx(t,s),we(s,{code:oe.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),l.dirty()):o.kind==="multipleOf"?t.data%o.value!==BigInt(0)&&(s=this._getOrReturnCtx(t,s),we(s,{code:oe.not_multiple_of,multipleOf:o.value,message:o.message}),l.dirty()):ct.assertNever(o);return{status:l.value,value:t.data}}_getInvalidInput(t){const r=this._getOrReturnCtx(t);return we(r,{code:oe.invalid_type,expected:Te.bigint,received:r.parsedType}),qe}gte(t,r){return this.setLimit("min",t,!0,De.toString(r))}gt(t,r){return this.setLimit("min",t,!1,De.toString(r))}lte(t,r){return this.setLimit("max",t,!0,De.toString(r))}lt(t,r){return this.setLimit("max",t,!1,De.toString(r))}setLimit(t,r,s,l){return new gl({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:s,message:De.toString(l)}]})}_addCheck(t){return new gl({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:De.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:De.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:De.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:De.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:De.toString(r)})}get minValue(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}}gl.create=e=>new gl({checks:[],typeName:Ke.ZodBigInt,coerce:(e==null?void 0:e.coerce)??!1,...tt(e)});class Au extends ot{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==Te.boolean){const s=this._getOrReturnCtx(t);return we(s,{code:oe.invalid_type,expected:Te.boolean,received:s.parsedType}),qe}return er(t.data)}}Au.create=e=>new Au({typeName:Ke.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...tt(e)});class Go extends ot{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==Te.date){const o=this._getOrReturnCtx(t);return we(o,{code:oe.invalid_type,expected:Te.date,received:o.parsedType}),qe}if(Number.isNaN(t.data.getTime())){const o=this._getOrReturnCtx(t);return we(o,{code:oe.invalid_date}),qe}const s=new Un;let l;for(const o of this._def.checks)o.kind==="min"?t.data.getTime()<o.value&&(l=this._getOrReturnCtx(t,l),we(l,{code:oe.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:"date"}),s.dirty()):o.kind==="max"?t.data.getTime()>o.value&&(l=this._getOrReturnCtx(t,l),we(l,{code:oe.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),s.dirty()):ct.assertNever(o);return{status:s.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Go({...this._def,checks:[...this._def.checks,t]})}min(t,r){return this._addCheck({kind:"min",value:t.getTime(),message:De.toString(r)})}max(t,r){return this._addCheck({kind:"max",value:t.getTime(),message:De.toString(r)})}get minDate(){let t=null;for(const r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t!=null?new Date(t):null}}Go.create=e=>new Go({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:Ke.ZodDate,...tt(e)});class Bh extends ot{_parse(t){if(this._getType(t)!==Te.symbol){const s=this._getOrReturnCtx(t);return we(s,{code:oe.invalid_type,expected:Te.symbol,received:s.parsedType}),qe}return er(t.data)}}Bh.create=e=>new Bh({typeName:Ke.ZodSymbol,...tt(e)});class Fh extends ot{_parse(t){if(this._getType(t)!==Te.undefined){const s=this._getOrReturnCtx(t);return we(s,{code:oe.invalid_type,expected:Te.undefined,received:s.parsedType}),qe}return er(t.data)}}Fh.create=e=>new Fh({typeName:Ke.ZodUndefined,...tt(e)});class Vh extends ot{_parse(t){if(this._getType(t)!==Te.null){const s=this._getOrReturnCtx(t);return we(s,{code:oe.invalid_type,expected:Te.null,received:s.parsedType}),qe}return er(t.data)}}Vh.create=e=>new Vh({typeName:Ke.ZodNull,...tt(e)});class Uh extends ot{constructor(){super(...arguments),this._any=!0}_parse(t){return er(t.data)}}Uh.create=e=>new Uh({typeName:Ke.ZodAny,...tt(e)});class Hh extends ot{constructor(){super(...arguments),this._unknown=!0}_parse(t){return er(t.data)}}Hh.create=e=>new Hh({typeName:Ke.ZodUnknown,...tt(e)});class ci extends ot{_parse(t){const r=this._getOrReturnCtx(t);return we(r,{code:oe.invalid_type,expected:Te.never,received:r.parsedType}),qe}}ci.create=e=>new ci({typeName:Ke.ZodNever,...tt(e)});class Wh extends ot{_parse(t){if(this._getType(t)!==Te.undefined){const s=this._getOrReturnCtx(t);return we(s,{code:oe.invalid_type,expected:Te.void,received:s.parsedType}),qe}return er(t.data)}}Wh.create=e=>new Wh({typeName:Ke.ZodVoid,...tt(e)});class wr extends ot{_parse(t){const{ctx:r,status:s}=this._processInputParams(t),l=this._def;if(r.parsedType!==Te.array)return we(r,{code:oe.invalid_type,expected:Te.array,received:r.parsedType}),qe;if(l.exactLength!==null){const c=r.data.length>l.exactLength.value,d=r.data.length<l.exactLength.value;(c||d)&&(we(r,{code:c?oe.too_big:oe.too_small,minimum:d?l.exactLength.value:void 0,maximum:c?l.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:l.exactLength.message}),s.dirty())}if(l.minLength!==null&&r.data.length<l.minLength.value&&(we(r,{code:oe.too_small,minimum:l.minLength.value,type:"array",inclusive:!0,exact:!1,message:l.minLength.message}),s.dirty()),l.maxLength!==null&&r.data.length>l.maxLength.value&&(we(r,{code:oe.too_big,maximum:l.maxLength.value,type:"array",inclusive:!0,exact:!1,message:l.maxLength.message}),s.dirty()),r.common.async)return Promise.all([...r.data].map((c,d)=>l.type._parseAsync(new ai(r,c,r.path,d)))).then(c=>Un.mergeArray(s,c));const o=[...r.data].map((c,d)=>l.type._parseSync(new ai(r,c,r.path,d)));return Un.mergeArray(s,o)}get element(){return this._def.type}min(t,r){return new wr({...this._def,minLength:{value:t,message:De.toString(r)}})}max(t,r){return new wr({...this._def,maxLength:{value:t,message:De.toString(r)}})}length(t,r){return new wr({...this._def,exactLength:{value:t,message:De.toString(r)}})}nonempty(t){return this.min(1,t)}}wr.create=(e,t)=>new wr({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Ke.ZodArray,...tt(t)});function ss(e){if(e instanceof Kt){const t={};for(const r in e.shape){const s=e.shape[r];t[r]=oi.create(ss(s))}return new Kt({...e._def,shape:()=>t})}else return e instanceof wr?new wr({...e._def,type:ss(e.element)}):e instanceof oi?oi.create(ss(e.unwrap())):e instanceof fs?fs.create(ss(e.unwrap())):e instanceof Ii?Ii.create(e.items.map(t=>ss(t))):e}class Kt extends ot{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),r=ct.objectKeys(t);return this._cached={shape:t,keys:r},this._cached}_parse(t){if(this._getType(t)!==Te.object){const h=this._getOrReturnCtx(t);return we(h,{code:oe.invalid_type,expected:Te.object,received:h.parsedType}),qe}const{status:s,ctx:l}=this._processInputParams(t),{shape:o,keys:c}=this._getCached(),d=[];if(!(this._def.catchall instanceof ci&&this._def.unknownKeys==="strip"))for(const h in l.data)c.includes(h)||d.push(h);const f=[];for(const h of c){const g=o[h],y=l.data[h];f.push({key:{status:"valid",value:h},value:g._parse(new ai(l,y,l.path,h)),alwaysSet:h in l.data})}if(this._def.catchall instanceof ci){const h=this._def.unknownKeys;if(h==="passthrough")for(const g of d)f.push({key:{status:"valid",value:g},value:{status:"valid",value:l.data[g]}});else if(h==="strict")d.length>0&&(we(l,{code:oe.unrecognized_keys,keys:d}),s.dirty());else if(h!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const h=this._def.catchall;for(const g of d){const y=l.data[g];f.push({key:{status:"valid",value:g},value:h._parse(new ai(l,y,l.path,g)),alwaysSet:g in l.data})}}return l.common.async?Promise.resolve().then(async()=>{const h=[];for(const g of f){const y=await g.key,k=await g.value;h.push({key:y,value:k,alwaysSet:g.alwaysSet})}return h}).then(h=>Un.mergeObjectSync(s,h)):Un.mergeObjectSync(s,f)}get shape(){return this._def.shape()}strict(t){return De.errToObj,new Kt({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(r,s)=>{var o,c;const l=((c=(o=this._def).errorMap)==null?void 0:c.call(o,r,s).message)??s.defaultError;return r.code==="unrecognized_keys"?{message:De.errToObj(t).message??l}:{message:l}}}:{}})}strip(){return new Kt({...this._def,unknownKeys:"strip"})}passthrough(){return new Kt({...this._def,unknownKeys:"passthrough"})}extend(t){return new Kt({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Kt({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:Ke.ZodObject})}setKey(t,r){return this.augment({[t]:r})}catchall(t){return new Kt({...this._def,catchall:t})}pick(t){const r={};for(const s of ct.objectKeys(t))t[s]&&this.shape[s]&&(r[s]=this.shape[s]);return new Kt({...this._def,shape:()=>r})}omit(t){const r={};for(const s of ct.objectKeys(this.shape))t[s]||(r[s]=this.shape[s]);return new Kt({...this._def,shape:()=>r})}deepPartial(){return ss(this)}partial(t){const r={};for(const s of ct.objectKeys(this.shape)){const l=this.shape[s];t&&!t[s]?r[s]=l:r[s]=l.optional()}return new Kt({...this._def,shape:()=>r})}required(t){const r={};for(const s of ct.objectKeys(this.shape))if(t&&!t[s])r[s]=this.shape[s];else{let o=this.shape[s];for(;o instanceof oi;)o=o._def.innerType;r[s]=o}return new Kt({...this._def,shape:()=>r})}keyof(){return Sg(ct.objectKeys(this.shape))}}Kt.create=(e,t)=>new Kt({shape:()=>e,unknownKeys:"strip",catchall:ci.create(),typeName:Ke.ZodObject,...tt(t)});Kt.strictCreate=(e,t)=>new Kt({shape:()=>e,unknownKeys:"strict",catchall:ci.create(),typeName:Ke.ZodObject,...tt(t)});Kt.lazycreate=(e,t)=>new Kt({shape:e,unknownKeys:"strip",catchall:ci.create(),typeName:Ke.ZodObject,...tt(t)});class Jo extends ot{_parse(t){const{ctx:r}=this._processInputParams(t),s=this._def.options;function l(o){for(const d of o)if(d.result.status==="valid")return d.result;for(const d of o)if(d.result.status==="dirty")return r.common.issues.push(...d.ctx.common.issues),d.result;const c=o.map(d=>new Lr(d.ctx.common.issues));return we(r,{code:oe.invalid_union,unionErrors:c}),qe}if(r.common.async)return Promise.all(s.map(async o=>{const c={...r,common:{...r.common,issues:[]},parent:null};return{result:await o._parseAsync({data:r.data,path:r.path,parent:c}),ctx:c}})).then(l);{let o;const c=[];for(const f of s){const h={...r,common:{...r.common,issues:[]},parent:null},g=f._parseSync({data:r.data,path:r.path,parent:h});if(g.status==="valid")return g;g.status==="dirty"&&!o&&(o={result:g,ctx:h}),h.common.issues.length&&c.push(h.common.issues)}if(o)return r.common.issues.push(...o.ctx.common.issues),o.result;const d=c.map(f=>new Lr(f));return we(r,{code:oe.invalid_union,unionErrors:d}),qe}}get options(){return this._def.options}}Jo.create=(e,t)=>new Jo({options:e,typeName:Ke.ZodUnion,...tt(t)});function Du(e,t){const r=ii(e),s=ii(t);if(e===t)return{valid:!0,data:e};if(r===Te.object&&s===Te.object){const l=ct.objectKeys(t),o=ct.objectKeys(e).filter(d=>l.indexOf(d)!==-1),c={...e,...t};for(const d of o){const f=Du(e[d],t[d]);if(!f.valid)return{valid:!1};c[d]=f.data}return{valid:!0,data:c}}else if(r===Te.array&&s===Te.array){if(e.length!==t.length)return{valid:!1};const l=[];for(let o=0;o<e.length;o++){const c=e[o],d=t[o],f=Du(c,d);if(!f.valid)return{valid:!1};l.push(f.data)}return{valid:!0,data:l}}else return r===Te.date&&s===Te.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class ea extends ot{_parse(t){const{status:r,ctx:s}=this._processInputParams(t),l=(o,c)=>{if(Oh(o)||Oh(c))return qe;const d=Du(o.value,c.value);return d.valid?((zh(o)||zh(c))&&r.dirty(),{status:r.value,value:d.data}):(we(s,{code:oe.invalid_intersection_types}),qe)};return s.common.async?Promise.all([this._def.left._parseAsync({data:s.data,path:s.path,parent:s}),this._def.right._parseAsync({data:s.data,path:s.path,parent:s})]).then(([o,c])=>l(o,c)):l(this._def.left._parseSync({data:s.data,path:s.path,parent:s}),this._def.right._parseSync({data:s.data,path:s.path,parent:s}))}}ea.create=(e,t,r)=>new ea({left:e,right:t,typeName:Ke.ZodIntersection,...tt(r)});class Ii extends ot{_parse(t){const{status:r,ctx:s}=this._processInputParams(t);if(s.parsedType!==Te.array)return we(s,{code:oe.invalid_type,expected:Te.array,received:s.parsedType}),qe;if(s.data.length<this._def.items.length)return we(s,{code:oe.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),qe;!this._def.rest&&s.data.length>this._def.items.length&&(we(s,{code:oe.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());const o=[...s.data].map((c,d)=>{const f=this._def.items[d]||this._def.rest;return f?f._parse(new ai(s,c,s.path,d)):null}).filter(c=>!!c);return s.common.async?Promise.all(o).then(c=>Un.mergeArray(r,c)):Un.mergeArray(r,o)}get items(){return this._def.items}rest(t){return new Ii({...this._def,rest:t})}}Ii.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Ii({items:e,typeName:Ke.ZodTuple,rest:null,...tt(t)})};class qh extends ot{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:r,ctx:s}=this._processInputParams(t);if(s.parsedType!==Te.map)return we(s,{code:oe.invalid_type,expected:Te.map,received:s.parsedType}),qe;const l=this._def.keyType,o=this._def.valueType,c=[...s.data.entries()].map(([d,f],h)=>({key:l._parse(new ai(s,d,s.path,[h,"key"])),value:o._parse(new ai(s,f,s.path,[h,"value"]))}));if(s.common.async){const d=new Map;return Promise.resolve().then(async()=>{for(const f of c){const h=await f.key,g=await f.value;if(h.status==="aborted"||g.status==="aborted")return qe;(h.status==="dirty"||g.status==="dirty")&&r.dirty(),d.set(h.value,g.value)}return{status:r.value,value:d}})}else{const d=new Map;for(const f of c){const h=f.key,g=f.value;if(h.status==="aborted"||g.status==="aborted")return qe;(h.status==="dirty"||g.status==="dirty")&&r.dirty(),d.set(h.value,g.value)}return{status:r.value,value:d}}}}qh.create=(e,t,r)=>new qh({valueType:t,keyType:e,typeName:Ke.ZodMap,...tt(r)});class yl extends ot{_parse(t){const{status:r,ctx:s}=this._processInputParams(t);if(s.parsedType!==Te.set)return we(s,{code:oe.invalid_type,expected:Te.set,received:s.parsedType}),qe;const l=this._def;l.minSize!==null&&s.data.size<l.minSize.value&&(we(s,{code:oe.too_small,minimum:l.minSize.value,type:"set",inclusive:!0,exact:!1,message:l.minSize.message}),r.dirty()),l.maxSize!==null&&s.data.size>l.maxSize.value&&(we(s,{code:oe.too_big,maximum:l.maxSize.value,type:"set",inclusive:!0,exact:!1,message:l.maxSize.message}),r.dirty());const o=this._def.valueType;function c(f){const h=new Set;for(const g of f){if(g.status==="aborted")return qe;g.status==="dirty"&&r.dirty(),h.add(g.value)}return{status:r.value,value:h}}const d=[...s.data.values()].map((f,h)=>o._parse(new ai(s,f,s.path,h)));return s.common.async?Promise.all(d).then(f=>c(f)):c(d)}min(t,r){return new yl({...this._def,minSize:{value:t,message:De.toString(r)}})}max(t,r){return new yl({...this._def,maxSize:{value:t,message:De.toString(r)}})}size(t,r){return this.min(t,r).max(t,r)}nonempty(t){return this.min(1,t)}}yl.create=(e,t)=>new yl({valueType:e,minSize:null,maxSize:null,typeName:Ke.ZodSet,...tt(t)});class Kh extends ot{get schema(){return this._def.getter()}_parse(t){const{ctx:r}=this._processInputParams(t);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}}Kh.create=(e,t)=>new Kh({getter:e,typeName:Ke.ZodLazy,...tt(t)});class Zh extends ot{_parse(t){if(t.data!==this._def.value){const r=this._getOrReturnCtx(t);return we(r,{received:r.data,code:oe.invalid_literal,expected:this._def.value}),qe}return{status:"valid",value:t.data}}get value(){return this._def.value}}Zh.create=(e,t)=>new Zh({value:e,typeName:Ke.ZodLiteral,...tt(t)});function Sg(e,t){return new us({values:e,typeName:Ke.ZodEnum,...tt(t)})}class us extends ot{_parse(t){if(typeof t.data!="string"){const r=this._getOrReturnCtx(t),s=this._def.values;return we(r,{expected:ct.joinValues(s),received:r.parsedType,code:oe.invalid_type}),qe}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){const r=this._getOrReturnCtx(t),s=this._def.values;return we(r,{received:r.data,code:oe.invalid_enum_value,options:s}),qe}return er(t.data)}get options(){return this._def.values}get enum(){const t={};for(const r of this._def.values)t[r]=r;return t}get Values(){const t={};for(const r of this._def.values)t[r]=r;return t}get Enum(){const t={};for(const r of this._def.values)t[r]=r;return t}extract(t,r=this._def){return us.create(t,{...this._def,...r})}exclude(t,r=this._def){return us.create(this.options.filter(s=>!t.includes(s)),{...this._def,...r})}}us.create=Sg;class Yh extends ot{_parse(t){const r=ct.getValidEnumValues(this._def.values),s=this._getOrReturnCtx(t);if(s.parsedType!==Te.string&&s.parsedType!==Te.number){const l=ct.objectValues(r);return we(s,{expected:ct.joinValues(l),received:s.parsedType,code:oe.invalid_type}),qe}if(this._cache||(this._cache=new Set(ct.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const l=ct.objectValues(r);return we(s,{received:s.data,code:oe.invalid_enum_value,options:l}),qe}return er(t.data)}get enum(){return this._def.values}}Yh.create=(e,t)=>new Yh({values:e,typeName:Ke.ZodNativeEnum,...tt(t)});class ta extends ot{unwrap(){return this._def.type}_parse(t){const{ctx:r}=this._processInputParams(t);if(r.parsedType!==Te.promise&&r.common.async===!1)return we(r,{code:oe.invalid_type,expected:Te.promise,received:r.parsedType}),qe;const s=r.parsedType===Te.promise?r.data:Promise.resolve(r.data);return er(s.then(l=>this._def.type.parseAsync(l,{path:r.path,errorMap:r.common.contextualErrorMap})))}}ta.create=(e,t)=>new ta({type:e,typeName:Ke.ZodPromise,...tt(t)});class ds extends ot{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Ke.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:r,ctx:s}=this._processInputParams(t),l=this._def.effect||null,o={addIssue:c=>{we(s,c),c.fatal?r.abort():r.dirty()},get path(){return s.path}};if(o.addIssue=o.addIssue.bind(o),l.type==="preprocess"){const c=l.transform(s.data,o);if(s.common.async)return Promise.resolve(c).then(async d=>{if(r.value==="aborted")return qe;const f=await this._def.schema._parseAsync({data:d,path:s.path,parent:s});return f.status==="aborted"?qe:f.status==="dirty"||r.value==="dirty"?ol(f.value):f});{if(r.value==="aborted")return qe;const d=this._def.schema._parseSync({data:c,path:s.path,parent:s});return d.status==="aborted"?qe:d.status==="dirty"||r.value==="dirty"?ol(d.value):d}}if(l.type==="refinement"){const c=d=>{const f=l.refinement(d,o);if(s.common.async)return Promise.resolve(f);if(f instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return d};if(s.common.async===!1){const d=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});return d.status==="aborted"?qe:(d.status==="dirty"&&r.dirty(),c(d.value),{status:r.value,value:d.value})}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(d=>d.status==="aborted"?qe:(d.status==="dirty"&&r.dirty(),c(d.value).then(()=>({status:r.value,value:d.value}))))}if(l.type==="transform")if(s.common.async===!1){const c=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});if(!as(c))return qe;const d=l.transform(c.value,o);if(d instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:d}}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(c=>as(c)?Promise.resolve(l.transform(c.value,o)).then(d=>({status:r.value,value:d})):qe);ct.assertNever(l)}}ds.create=(e,t,r)=>new ds({schema:e,typeName:Ke.ZodEffects,effect:t,...tt(r)});ds.createWithPreprocess=(e,t,r)=>new ds({schema:t,effect:{type:"preprocess",transform:e},typeName:Ke.ZodEffects,...tt(r)});class oi extends ot{_parse(t){return this._getType(t)===Te.undefined?er(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}oi.create=(e,t)=>new oi({innerType:e,typeName:Ke.ZodOptional,...tt(t)});class fs extends ot{_parse(t){return this._getType(t)===Te.null?er(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}fs.create=(e,t)=>new fs({innerType:e,typeName:Ke.ZodNullable,...tt(t)});class Ru extends ot{_parse(t){const{ctx:r}=this._processInputParams(t);let s=r.data;return r.parsedType===Te.undefined&&(s=this._def.defaultValue()),this._def.innerType._parse({data:s,path:r.path,parent:r})}removeDefault(){return this._def.innerType}}Ru.create=(e,t)=>new Ru({innerType:e,typeName:Ke.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...tt(t)});class Pu extends ot{_parse(t){const{ctx:r}=this._processInputParams(t),s={...r,common:{...r.common,issues:[]}},l=this._def.innerType._parse({data:s.data,path:s.path,parent:{...s}});return Xo(l)?l.then(o=>({status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new Lr(s.common.issues)},input:s.data})})):{status:"valid",value:l.status==="valid"?l.value:this._def.catchValue({get error(){return new Lr(s.common.issues)},input:s.data})}}removeCatch(){return this._def.innerType}}Pu.create=(e,t)=>new Pu({innerType:e,typeName:Ke.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...tt(t)});class Qh extends ot{_parse(t){if(this._getType(t)!==Te.nan){const s=this._getOrReturnCtx(t);return we(s,{code:oe.invalid_type,expected:Te.nan,received:s.parsedType}),qe}return{status:"valid",value:t.data}}}Qh.create=e=>new Qh({typeName:Ke.ZodNaN,...tt(e)});class c_ extends ot{_parse(t){const{ctx:r}=this._processInputParams(t),s=r.data;return this._def.type._parse({data:s,path:r.path,parent:r})}unwrap(){return this._def.type}}class ld extends ot{_parse(t){const{status:r,ctx:s}=this._processInputParams(t);if(s.common.async)return(async()=>{const o=await this._def.in._parseAsync({data:s.data,path:s.path,parent:s});return o.status==="aborted"?qe:o.status==="dirty"?(r.dirty(),ol(o.value)):this._def.out._parseAsync({data:o.value,path:s.path,parent:s})})();{const l=this._def.in._parseSync({data:s.data,path:s.path,parent:s});return l.status==="aborted"?qe:l.status==="dirty"?(r.dirty(),{status:"dirty",value:l.value}):this._def.out._parseSync({data:l.value,path:s.path,parent:s})}}static create(t,r){return new ld({in:t,out:r,typeName:Ke.ZodPipeline})}}class Lu extends ot{_parse(t){const r=this._def.innerType._parse(t),s=l=>(as(l)&&(l.value=Object.freeze(l.value)),l);return Xo(r)?r.then(l=>s(l)):s(r)}unwrap(){return this._def.innerType}}Lu.create=(e,t)=>new Lu({innerType:e,typeName:Ke.ZodReadonly,...tt(t)});var Ke;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(Ke||(Ke={}));const be=li.create,Bt=cs.create,fa=Au.create;ci.create;const Ut=wr.create,it=Kt.create;Jo.create;ea.create;Ii.create;const en=us.create;ta.create;oi.create;fs.create;const hs=["proposed","backlog","todo","in_progress","pending","done"],od=["decision","external","dependency"],ad=["high","medium","low"],Cg=["human","ai"],u_=["planned","active","done"],Ng=["en","ja"],d_=5151,Xh=be().datetime({offset:!0,message:"ISO 8601 (タイムゾーン付き) の文字列で指定する (例: 2026-06-10T10:00:00+09:00)"}),Gh=be().regex(/^[A-Za-z0-9_]+-\d{3,}$/,"タスク ID は <接頭辞>-<3 桁以上の数字> 形式 (例: TASK-001)"),Ai=be().min(1).regex(/^[^\r\n]+$/,"1 行で書く (改行不可)"),f_=it({id:be().min(1),label:be().min(1).optional(),type:en(Cg)}),p_=it({id:be().min(1),label:be().min(1).optional(),hideWhenEmpty:fa().optional(),wipLimit:Bt().int().positive().optional()}),h_=it({id:be().min(1),title:be().min(1),order:Bt().int().default(0),status:en(u_).default("planned")}),m_=it({name:be().min(1),title:be().optional(),body:be().optional(),labels:Ut(be().min(1)).optional(),priority:en(ad).optional()}).strict(),g_=it({name:be().min(1),query:be().optional(),label:be().optional(),assignee:be().optional(),statuses:Ut(en(hs)).optional()}).strict(),jg=it({projectName:be().min(1).default("project"),idPrefix:be().regex(/^[A-Za-z0-9_]+$/,"idPrefix は英数字とアンダースコアのみ").default("TASK"),port:Bt().int().min(1).max(65535).default(d_),aiTaskCreation:en(["free","proposal"]).default("free"),language:en(Ng).optional(),members:Ut(f_).min(1).default([{id:"member1",type:"human"},{id:"member2",type:"human"},{id:"claude",type:"ai"},{id:"codex",type:"ai"}]).superRefine((e,t)=>{const r=new Set;for(const s of e)r.has(s.id)&&t.addIssue({code:oe.custom,message:`member id が重複しています: ${s.id}`}),r.add(s.id)}),columns:Ut(p_).min(1).default([{id:"proposed",hideWhenEmpty:!0},{id:"backlog"},{id:"todo"},{id:"in_progress",wipLimit:2},{id:"pending"},{id:"done"}]),instructionTemplate:be().default("タスク {id} の内容を {path} で確認し、CLAUDE.md の運用規約に従って実行してください。"),aiConfigPaths:it({settingsFiles:Ut(be()).default([".claude/settings.json",".claude/settings.local.json"]),browseDirs:Ut(be()).default([".claude/skills",".claude/rules",".claude/agents"]),rootFiles:Ut(be()).default(["CLAUDE.md"])}).default({}),milestones:Ut(h_).default([]),taskTemplates:Ut(m_).default([]),savedViews:Ut(g_).default([]),views:Ut(it({id:be().min(1),hidden:fa().optional()})).default([]),docsDirs:Ut(be().min(1)).default([]),trashKeep:Bt().int().positive().optional(),stallThresholds:it({in_progress:Bt().int().positive(),todo:Bt().int().positive(),pending:Bt().int().positive()}).strict().partial().optional()}),y_=it({id:Gh,title:Ai,status:en(hs),assignee:be().min(1).nullable().default(null),created_by:be().min(1),priority:en(ad).default("medium"),labels:Ut(be().min(1)).default([]),blocked_type:en(od).nullable().default(null),blocked_reason:be().min(1).nullable().default(null),depends_on:Ut(Gh).default([]),milestone:be().min(1).nullable().default(null),related_docs:Ut(be().min(1)).optional(),created:Xh,updated:Xh}).strict().superRefine((e,t)=>{e.status==="pending"&&(e.blocked_type===null&&t.addIssue({code:oe.custom,path:["blocked_type"],message:"pending のタスクは blocked_type (decision / external / dependency) が必須"}),e.blocked_reason===null&&t.addIssue({code:oe.custom,path:["blocked_reason"],message:"pending のタスクは blocked_reason (誰の・何待ちか) が必須"}))}),v_=["invalid_task","duplicate_id","unregistered_member","invalid_config","mode_violation"],x_=it({kind:en(v_),path:be(),taskId:be().nullable(),message:be()}),k_=it({frontmatter:y_,path:be(),body:be(),raw:be(),mtimeMs:Bt()});it({tasks:Ut(k_),config:jg,warnings:Ut(x_)});it({title:Ai,created_by:be().min(1),assignee:be().min(1).nullable().optional(),priority:en(ad).optional(),labels:Ut(be().min(1)).optional(),body:be().optional()}).strict();it({status:en(hs),blocked_type:en(od).nullable().optional(),blocked_reason:Ai.nullable().optional()}).strict().superRefine((e,t)=>{e.status!=="pending"&&(e.blocked_type!=null&&t.addIssue({code:oe.custom,path:["blocked_type"],message:"pending 以外への移動では blocked_type を指定しない"}),e.blocked_reason!=null&&t.addIssue({code:oe.custom,path:["blocked_reason"],message:"pending 以外への移動では blocked_reason を指定しない"}))});it({content:be().min(1),baseMtimeMs:Bt()}).strict();it({error:be(),serverContent:be(),serverMtimeMs:Bt()});it({type:en(["connected","change"])});const __=it({proposed:Bt().int().nonnegative(),backlog:Bt().int().nonnegative(),todo:Bt().int().nonnegative(),in_progress:Bt().int().nonnegative(),pending:Bt().int().nonnegative(),done:Bt().int().nonnegative()}),w_=it({name:be().min(1),dir:be().min(1),root:be().min(1),statusCounts:__,warningCount:Bt().int().nonnegative(),wipExceeded:fa()}),b_=it({id:be().min(1),title:be(),status:en(["in_progress","pending","proposed"]),assignee:be().nullable(),blocked_type:en(od).nullable(),blocked_reason:be().nullable(),project:be().min(1)});it({projects:Ut(w_),attention:Ut(b_)});it({mode:en(["board","overview"])});it({reason:Ai}).strict();it({reason:be().max(2e3).optional(),baseMtimeMs:Bt().optional()}).strict();it({path:be(),content:be(),mtimeMs:Bt()});it({path:be().min(1),content:be(),baseMtimeMs:Bt(),scope:en(["local","global"]).optional()}).strict();it({path:be(),name:be().nullable(),description:be().nullable()});it({hash:be(),subject:be(),authorDate:be()});it({member:be().min(1),message:Ai}).strict();it({}).strict();const S_=it({id:be().min(1),trashedAt:Bt().int().nonnegative(),title:be().nullable(),status:en(hs).nullable(),body:be()});it({items:Ut(S_)});it({trashedAt:Bt().int().nonnegative().optional(),overwrite:fa().optional()}).strict();it({from:Ai,to:Ai}).strict().refine(e=>e.from!==e.to,{message:"from と to が同じです"});const Eg={"header.live":"Live","header.live.title":"Live updates are active","header.reconnecting":"Reconnecting","header.reconnecting.title":"Reconnecting…","header.addTask":"+ Add task","header.settings":"Settings","header.help":"Keyboard shortcuts (?)","shortcuts.title":"Keyboard shortcuts","shortcuts.palette":"Open the command palette","shortcuts.help":"Show this help","shortcuts.openCard":"Open the focused card","shortcuts.grabCard":"Grab / drop the focused card","shortcuts.moveCard":"Move the grabbed card between columns","shortcuts.close":"Close the dialog / palette","banner.close":"Close","board.loading":"Loading…","board.unavailable":"Unable to display the board.","error.view.title":"Something went wrong displaying this view.","error.view.detail":"Try switching tabs or retrying. Your tasks are unaffected — this is only a display error.","error.view.retry":"Retry","board.empty.title":"No tasks yet","board.empty.lead":"Create your first task to get started. You (or your AI agent) manage tasks as plain Markdown files under .kanban/tasks/ — this board is just a view of them.","board.empty.addFirst":"+ Create the first task","board.empty.aiNote":"Working with an AI agent? The conventions are already in your project CLAUDE.md. Copy the prompt below and paste it into your AI session — it will read the rules and file the first task for you.","board.empty.copyInstruction":"Copy AI prompt","board.empty.copied":"Copied","board.empty.copyFailed":"Copy failed","board.empty.aiInstruction":'This project is managed with AIzuchi. Read the "AIzuchi operating conventions" section in CLAUDE.md, then create the first task under .kanban/tasks/ following the frontmatter schema (id = TASK-001, set created / updated to the current time with timezone). Pick a small, concrete first task and put it in the todo column.',"view.home":"Home","view.board":"Board","view.critical":"Critical path","view.milestones":"Milestones","view.digest":"Daily digest","view.files":"AI config","view.stats":"Statistics","view.docs":"Related docs","view.archive":"Archive","view.trash":"Trash","detail.tab.docs":"Related docs","docs.empty":"No related docs linked yet.","docs.add":"+ Add a doc","docs.remove":"Remove","docs.broken":"Broken link","docs.pickerTitle":"Add a related doc","docs.pickerEmpty":"No .md files found under docsDirs.","docs.dirtyHint":"Save or discard your edits in the Edit tab before changing related docs.","docs.loadError":"Failed to load the document.","docs.treeError":"Failed to load the document list.","docs.conflict":"The task was changed externally, so the update was not applied. The list has been refreshed — please try again.","docs.noChange":"Could not apply the change to this task file (unexpected file format).","docs.view.treeTitle":"Documents","docs.view.selectPrompt":"Select a document to preview.","docs.view.referencedBy":"Tasks referencing this doc","docs.view.noRefs":"No tasks reference this doc yet.","files.settings":"Settings files","files.browse":"Browse","files.treeLoadError":"Failed to load the file tree / catalog. Individual file operations still work.","files.catalog":"Catalog","files.rootFiles":"Root files","files.selectPrompt":"Select a file to view or edit.","files.save":"Save","files.saving":"Saving…","files.saved":"Saved (.bak created)","files.saveError":"Failed to save","files.loadError":"Failed to load","files.notFound":"File not found (will be created on save).","files.invalidJson":"Invalid JSON","files.conflict":"Changed externally. Reload before saving.","files.reload":"Reload","files.restartNotice":"Changes take effect from a new AI session; restart any running session.","files.confirmSave.title":"Confirm save","files.confirmSave.intro":"Save the following changes to {file}? (a .bak is created on save)","files.confirmSave.diffAria":"Changes to be saved","files.confirmSave.confirm":"Save","files.confirmSave.cancel":"Cancel","files.catalogEmpty":"No skills / agents found.","files.globalCatalog":"Global (skills / agents)","files.globalCatalogEmpty":"No global skills / agents in ~/.claude.","files.globalBadge":"🌐 Global (~/.claude)","files.globalWarn":"This is a GLOBAL config (~/.claude). Saving affects ALL projects, not just this one.","files.noName":"(no name)","search.placeholder":"Search (title / labels / assignee)…","search.label":"Label","search.assignee":"Assignee","search.all":"All","archive.action":"Archive","archive.archiveDone":"Archive all Done","archive.confirm":"Archive {n} done task(s)?","archive.error":"Failed to archive","archive.view.listTitle":"Archived tasks","archive.view.searchPlaceholder":"Search (title / ID / labels / assignee / body)…","archive.view.empty":"No archived tasks yet.","archive.view.noMatch":"No archived tasks match your search.","archive.view.noMonth":"(no month)","archive.view.loadError":"Failed to load the archive.","archive.view.selectPrompt":"Select an archived task to preview.","archive.view.restore":"Restore to board","archive.view.restoreConfirm":"Restore {id} to the board?","archive.view.restoreError":"Failed to restore the task.","trash.view.listTitle":"Trashed snapshots","trash.view.searchPlaceholder":"Search (ID / title / body)…","trash.view.empty":"Nothing in the trash. Snapshots are saved before destructive edits.","trash.view.noMatch":"No snapshots match your search.","trash.view.loadError":"Failed to load the trash.","trash.view.selectPrompt":"Select a snapshot to preview.","trash.view.trashedAt":"Saved at {time}","trash.view.restore":"Restore to board","trash.view.restoreConfirm":"Restore {id} from this snapshot? (The board file must not already exist.)","trash.view.restoreOverwriteConfirm":"Overwrite the current {id} and restore from this snapshot? (The current version is also moved to the trash.)","trash.view.restoreError":"Failed to restore the snapshot.","trash.view.restoreConflict":"{id} already exists on the board, so it was not restored. Delete or rename it first.","trash.view.diffTitle":"Changes since this snapshot (snapshot → current)","trash.view.diff.add":"+ lines in the current task","trash.view.diff.remove":"- lines from the snapshot","trash.view.noDiff":"This snapshot is identical to the current task.","trash.view.noCurrent":"No task with this ID is on the board, so there is nothing to compare.","trash.view.previewTitle":"Snapshot content","bulkInstruction.select":"Select multiple","bulkInstruction.exit":"Done","bulkInstruction.selectedCount":"{n} selected","bulkInstruction.copy":"Copy combined instruction","bulkInstruction.clear":"Clear selection","bulkInstruction.copied":"Copied","bulkInstruction.copyFailed":"Copy failed","bulkInstruction.hint":"Click cards to select; copy them as one dependency-ordered instruction.","bulkInstruction.wrapper":"Please handle the following {n} task(s) in dependency order (do the earlier ones first).","bulkInstruction.checkbox":"Select {id}","savedView.save":"+ Save as view","savedView.saveHint":"Apply a filter first, then save it as a view.","savedView.namePlaceholder":"View name…","savedView.delete":'Delete view "{name}"',"savedView.saveError":"Failed to save the view","savedView.conflict":"config.json was changed externally, so the view was not saved. The board has been refreshed — please try again.","savedView.palette":"View: {name}","rename.action":"Rename to free ID","rename.error":"Failed to rename","comment.title":"Comments","comment.placeholder":"Write a comment (use @member to address)…","comment.send":"Send","comment.empty":"No comments yet.","comment.error":"Failed to add comment","detail.tab.commits":"Commits","commits.empty":"No commits reference this task (or this is not a git repo).","commits.error":"Failed to load commits.","commits.copyHash":"Copy the full commit hash","commits.copied":"Copied","detail.tab.timeline":"Timeline","timeline.empty":"Nothing has happened on this task yet.","timeline.kind.log":"log","timeline.kind.comment":"comment","timeline.kind.commit":"commit","cp.empty":"No incomplete tasks (done tasks are excluded).","cp.level":"Level {n}","cp.dependsOn":"depends on:","cp.criticalPath":"critical path","cp.cycleWarning":"Circular dependency detected: {ids}. Fix depends_on (this chain cannot be ordered).","cp.cycleLevel":"Cycle","cp.copyReorg":"Copy reorganization request","cp.copied":"Copied","cp.copyFailed":"Copy failed","digest.empty":"No work log entries yet.","digest.entries":"{n} entries","digest.days":"Days","stats.empty":"No tasks yet. Statistics will appear once tasks exist.","stats.summary.title":"Overview","stats.summary.total":"Total tasks","stats.summary.done":"Completed","stats.completions.title":"Completions over time","stats.completions.byDay":"By day","stats.completions.byWeek":"By week (Mon)","stats.completions.empty":"No completed tasks yet.","stats.completions.barAria":"{count} completed on {key}","stats.completions.date":"Date","stats.completions.granularity":"Granularity","stats.cycleTime.title":"Cycle time (created → completed)","stats.cycleTime.median":"Median","stats.cycleTime.mean":"Mean","stats.cycleTime.sample":"Sample: {n} task(s)","stats.cycleTime.empty":"Not enough completed tasks to compute cycle time.","stats.days":"{n}d","stats.dwell.title":"Time in current status (approx.)","stats.dwell.note":"Approximation: there is no structured transition log, so this is the time elapsed in the current status only.","stats.dwell.status":"Status","stats.dwell.count":"Tasks","stats.dwell.avg":"Avg","stats.dwell.max":"Max","stats.member.title":"Completions by member","stats.member.name":"Member","stats.member.unassigned":"Unassigned","stats.member.empty":"No completed tasks yet.","stats.bottlenecks.title":"Bottlenecks (longest-pending)","stats.bottlenecks.empty":"No pending tasks.","stats.bottlenecks.task":"Task","stats.bottlenecks.dwell":"Pending for","stats.bottlenecks.type":"Type","stats.bottlenecks.reason":"Reason","stalled.title":"Quiet tasks (stalled)","stalled.note":"Tasks where the time since the last activity (work log / comments) exceeds the per-status threshold (in_progress / todo / pending). Tune them via stallThresholds in config.json (unit: days).","stalled.empty":"No stalled tasks. Everything is moving.","stalled.task":"Task","stalled.status":"Status","stalled.idle":"Idle for","stalled.badge":"Stalled","stalled.cardTitle":"No activity for {n}d (stalled)","stalled.palette":"Jump to stalled task: {id} — {title}","progress.label":"Progress {done}/{total}","newActivity.badge":"New","newActivity.cardTitle":"Changed while you were away (open it to mark as read)","newActivity.markAllRead":"Mark all read ({n})","newActivity.markAllRead.title":"Mark all new activity as read","decisionWaits.badge":"Awaiting decision: {n}","decisionWaits.title":"Tasks awaiting your decision","decisionWaits.empty":"No tasks are awaiting a decision.","decisionWaits.open":"Show tasks awaiting a decision","decisionWaits.assignee":"Assignee","decisionWaits.noReason":"No reason provided","home.lead":"What needs your attention, and what to do next.","home.empty":'No tasks yet — use "+ Add task" above to create your first one.',"home.allClear.title":"All clear","home.allClear.detail":"Nothing is waiting on you, nothing is stalled, and no column is over its WIP limit.","home.next.title":"Next action (critical path)","home.next.empty":"No active tasks — nothing is blocking progress.","home.next.startHere":"Start here","home.next.cycle":"A dependency cycle was detected. Open the Critical path view to resolve it.","home.wip.title":"WIP overflow","home.wip.empty":"No column is over its WIP limit.","home.wip.row":"{label}: {count} / limit {limit}","home.unread.title":"New since you were away","home.unread.empty":"Nothing new.","home.idleDays":"idle {n}d","home.openAria":"Open {id}","milestone.empty":"No milestones defined. Add a milestones[] array to config.json.","milestone.roadmap":"Roadmap","milestone.history":"History","milestone.unassignedTasks":"No milestone","milestone.tasks":"Tasks","milestone.status.planned":"planned","milestone.status.active":"active","milestone.status.done":"done","column.empty":"(no tasks)","column.wipLimit":"WIP limit {limit}","column.wipExceeded":"WIP limit {limit} exceeded","card.unassigned":"Unassigned","card.unregisteredMember":"Unregistered member","card.memberType":"Type: {type}","card.lastUpdated":"Updated {elapsed}","member.human":"human","member.ai":"AI","time.justNow":"just now","time.minutesAgo":"{n}m ago","time.hoursAgo":"{n}h ago","time.daysAgo":"{n}d ago","blocked.decision":"Awaiting decision","blocked.external":"Awaiting external","blocked.dependency":"Awaiting dependency","blocked.decision.option":"decision (waiting on a person)","blocked.external.option":"external (waiting on something external)","blocked.dependency.option":"dependency (waiting on another task)","revise.button":"Request rework","revise.dialog.title":"Request rework","revise.dialog.intro":'Send "{title}" back to Todo.',"revise.dialog.reason":"Reason (optional, multiple lines OK)","revise.dialog.placeholder":"e.g. The error handling does not cover the timeout case — please revisit it.","revise.dialog.confirm":"Send back to Todo","revise.error":"Failed to request rework","revise.conflict":"The task was changed externally, so the rework request was not applied. The board has been refreshed — please try again.","blockedDialog.title":"Reason for putting on hold","blockedDialog.intro":'Moving "{title}" to Pending.',"blockedDialog.type":"Type","blockedDialog.reason":"Reason (who / what you are waiting for, one line)","blockedDialog.reason.placeholder":"e.g. Waiting for RYU to review","blockedDialog.confirm":"Move to Pending","addTask.title":"Add a task","addTask.field.title":"Title (required)","addTask.field.title.placeholder":"e.g. Add validation to the login API","addTask.field.createdBy":"Reporter","addTask.field.assignee":"Assignee (optional)","addTask.field.priority":"Priority","addTask.field.labels":"Labels (optional, comma-separated)","addTask.field.labels.placeholder":"e.g. backend, auth","addTask.field.template":"Template (optional)","addTask.template.none":"(no template)","addTask.field.body":"Body (optional)","addTask.field.body.placeholder":"Task description / acceptance criteria…","addTask.submit":"Create","addTask.submitting":"Creating…","addTask.error":"Failed to create the task","palette.title":"Command palette","palette.placeholder":"Search tasks, switch views, create…","palette.empty":"No matching commands.","palette.go":"Go to","palette.addTask":"Add a task","palette.settings":"Open settings","status.proposed":"Proposed","status.backlog":"Backlog","status.todo":"Todo","status.in_progress":"In progress","status.pending":"Pending","status.done":"Done","overview.title":"Cross-project overview (read-only)","overview.projects":"Projects","overview.attention.title":"Attention tasks (in progress / pending / proposed)","overview.attention.empty":"No tasks in progress, pending, or proposed.","overview.col.project":"Project","overview.col.task":"Task","overview.col.status":"Status","overview.col.assignee":"Assignee","overview.col.blocked":"Blocked","overview.warnings":"{n} warning(s)","overview.wipExceeded":"WIP exceeded","overview.loadError":"Failed to load the overview.","mode.connectError":"Could not connect to the AIzuchi server. Check that it is running, then reload.","common.cancel":"Cancel","common.save":"Save","common.saving":"Saving…","common.discard":"Discard changes","common.unset":"(unset)","move.error":"Failed to change the status","detail.aria":"Details of {id}","detail.close":"Close","detail.tab.preview":"Preview","detail.tab.edit":"Edit","detail.tab.log":"Work log","detail.editAria":"Edit the task file","detail.log.empty":"No work log yet.","detail.dirty":"You have unsaved changes","detail.saveError":"Failed to save","detail.copyInstruction":"Copy instruction for AI","detail.copyInstruction.done":"Copied","detail.copyInstruction.failed":"Copy failed","detail.copyInstruction.title":"Copy a ready-to-paste instruction for the AI to your clipboard","conflict.title":"Save conflict","conflict.intro":"This task was changed externally (by an editor or AI) after you started editing. Below is the diff of your edits against the server version (the base).","conflict.diffAria":"Conflict diff","conflict.legend.add":"+ your additions","conflict.legend.remove":"- lines from the server","conflict.reload":"Reload server version (discard edits)","conflict.overwrite":"Overwrite with my changes","warning.summary":"{n} warning(s) (the board keeps showing)","warning.kind.invalid_task":"Invalid task","warning.kind.duplicate_id":"Duplicate ID","warning.kind.unregistered_member":"Unregistered member","warning.kind.invalid_config":"Config error","warning.kind.mode_violation":"Mode violation","proposal.approve":"Approve","proposal.reject":"Reject","proposal.reject.prompt":"Reason for rejection (recorded in the work log)","proposal.approve.error":"Failed to approve","proposal.reject.error":"Failed to reject","settings.title":"Settings","settings.aiTaskCreation":"AI task creation mode","settings.aiTaskCreation.free":"free (AI may create directly)","settings.aiTaskCreation.proposal":"proposal (approval required)","settings.language":"Language","settings.language.en":"English","settings.language.ja":"日本語","settings.projectName":"Project name","settings.idPrefix":"ID prefix","settings.instructionTemplate":"Instruction template ({id} / {path} are expanded)","settings.members":"Members","settings.members.add":"+ Add member","settings.members.idPlaceholder":"ID (slug)","settings.members.labelPlaceholder":"Display name (optional)","settings.migrate.title":"These member changes affect existing tasks","settings.migrate.rename":"{from} → {to}: reassign {n} referencing task(s)","settings.migrate.removed":"Removing {id} ({n} referencing task(s)). Reassign to:","settings.migrate.noTransfer":"Do not reassign (tasks will show warnings)","settings.migrate.execute":"Save and apply","settings.migrate.skipped":"Some task files could not be updated: {files}","settings.migrate.swap":"Swapping member IDs in one save is not supported. Save in two steps.","settings.migrate.failed":"Settings were saved, but reassigning task references failed. Save again to retry the rest.","settings.members.duplicate":"Duplicate member IDs: {ids}","settings.columns":"Columns","settings.columns.idPlaceholder":"id (e.g. todo)","settings.columns.labelPlaceholder":"Display name (optional)","settings.columns.wipPlaceholder":"WIP","settings.columns.wipAria":"WIP limit","settings.columns.hideWhenEmpty":"Hide when empty","settings.columns.moveUp":"Move up","settings.columns.moveDown":"Move down","settings.columns.remove":"Remove column","settings.columns.add":"+ Add column","settings.paths.settingsFiles":"AI config: settings files","settings.paths.browseDirs":"AI config: browse directories","settings.paths.rootFiles":"AI config: root files","settings.paths.placeholder":"Path from the project root","settings.paths.remove":"Remove path","settings.paths.add":"+ Add path","settings.views":"Tabs (views)","settings.views.show":"Show","settings.views.moveUp":"Move up","settings.views.moveDown":"Move down","settings.advanced":"Advanced (raw JSON)","settings.save":"Save","settings.saving":"Saving…","settings.saved":"Saved","settings.error":"Failed to save the settings","settings.reload":"Reload","settings.loadError":"Failed to load the settings","settings.conflict":"config.json was changed externally (by an editor or AI). Close and reopen Settings to reload, then save again."},C_={"header.live":"ライブ","header.live.title":"ライブ反映が有効です","header.reconnecting":"再接続中","header.reconnecting.title":"再接続中…","header.addTask":"+ タスク追加","header.settings":"設定","header.help":"キーボードショートカット (?)","shortcuts.title":"キーボードショートカット","shortcuts.palette":"コマンドパレットを開く","shortcuts.help":"このヘルプを表示","shortcuts.openCard":"フォーカス中のカードを開く","shortcuts.grabCard":"フォーカス中のカードを掴む / 置く","shortcuts.moveCard":"掴んだカードを列間で移動","shortcuts.close":"ダイアログ / パレットを閉じる","banner.close":"閉じる","board.loading":"読み込み中…","board.unavailable":"ボードを表示できません。","error.view.title":"このビューの表示中にエラーが発生しました。","error.view.detail":"タブを切り替えるか、再試行してください。タスクには影響しません(表示のみのエラーです)。","error.view.retry":"再試行","board.empty.title":"まだタスクがありません","board.empty.lead":"最初のタスクを起票して始めましょう。タスクは .kanban/tasks/ 配下のプレーンな Markdown ファイルとして、あなた (または AI エージェント) が管理します。このボードはそれを表示しているだけです。","board.empty.addFirst":"+ 最初のタスクを起票","board.empty.aiNote":"AI エージェントと一緒に進めますか? 運用規約はすでにプロジェクトの CLAUDE.md に追記済みです。下のプロンプトをコピーして AI セッションに貼り付ければ、規約を読んで最初のタスクを起票してくれます。","board.empty.copyInstruction":"AI へのプロンプトをコピー","board.empty.copied":"コピーしました","board.empty.copyFailed":"コピーに失敗しました","board.empty.aiInstruction":"このプロジェクトは AIzuchi でタスク管理しています。CLAUDE.md の「AIzuchi 運用規約」セクションを読んでから、.kanban/tasks/ 配下に最初のタスクを frontmatter スキーマに従って起票してください (id = TASK-001、created / updated は現在時刻をタイムゾーン付きで)。小さく具体的な最初のタスクを選び、todo カラムに置いてください。","view.home":"ホーム","view.board":"ボード","view.critical":"クリティカルパス","view.milestones":"マイルストーン","view.digest":"日次ダイジェスト","view.files":"AI 設定","view.stats":"統計","view.docs":"関連資料","view.archive":"アーカイブ","view.trash":"ごみ箱","detail.tab.docs":"関連資料","docs.empty":"関連資料はまだありません。","docs.add":"+ 資料を追加","docs.remove":"削除","docs.broken":"リンク切れ","docs.pickerTitle":"関連資料を追加","docs.pickerEmpty":"docsDirs 配下に .md ファイルがありません。","docs.dirtyHint":"編集タブの変更を保存または破棄してから関連資料を変更してください。","docs.loadError":"資料の読み込みに失敗しました。","docs.treeError":"資料一覧の読み込みに失敗しました。","docs.conflict":"外部で変更されたため反映できませんでした。一覧を最新化したので、もう一度操作してください。","docs.noChange":"タスクファイルへ変更を反映できませんでした(想定外のファイル形式です)。","docs.view.treeTitle":"資料","docs.view.selectPrompt":"プレビューする資料を選んでください。","docs.view.referencedBy":"この資料を参照しているタスク","docs.view.noRefs":"この資料を参照しているタスクはまだありません。","files.settings":"設定ファイル","files.browse":"閲覧","files.treeLoadError":"ファイルツリー / カタログの読み込みに失敗しました。個別ファイルの操作は引き続き可能です。","files.catalog":"カタログ","files.rootFiles":"ルートファイル","files.selectPrompt":"閲覧・編集するファイルを選んでください。","files.save":"保存","files.saving":"保存中…","files.saved":"保存しました (.bak 作成)","files.saveError":"保存に失敗しました","files.loadError":"読み込みに失敗しました","files.notFound":"ファイルがありません (保存時に作成されます)。","files.invalidJson":"不正な JSON","files.conflict":"外部で変更されています。再読み込みしてから保存してください。","files.reload":"再読み込み","files.restartNotice":"変更は新しい AI セッションから有効です。実行中のセッションは再起動が必要です。","files.confirmSave.title":"保存前の確認","files.confirmSave.intro":"{file} に以下の変更を保存します。(保存時に .bak を作成します)","files.confirmSave.diffAria":"保存する変更の差分","files.confirmSave.confirm":"この内容で保存","files.confirmSave.cancel":"キャンセル","files.catalogEmpty":"skill / agent が見つかりません。","files.globalCatalog":"グローバル (skills / agents)","files.globalCatalogEmpty":"~/.claude/skills, agents に skill / agent がありません。","files.globalBadge":"🌐 グローバル (~/.claude)","files.globalWarn":"これはグローバル設定 (~/.claude) です。保存するとこのプロジェクトだけでなく全プロジェクトに影響します。","files.noName":"(名前なし)","search.placeholder":"検索 (タイトル / ラベル / 担当)…","search.label":"ラベル","search.assignee":"担当","search.all":"すべて","archive.action":"アーカイブ","archive.archiveDone":"完了した項目を一括アーカイブする","archive.confirm":"完了したタスク {n} 件をアーカイブしますか?","archive.error":"アーカイブに失敗しました","archive.view.listTitle":"アーカイブ済みタスク","archive.view.searchPlaceholder":"検索 (タイトル / ID / ラベル / 担当 / 本文)…","archive.view.empty":"アーカイブ済みのタスクはまだありません。","archive.view.noMatch":"検索条件に一致するアーカイブはありません。","archive.view.noMonth":"(月なし)","archive.view.loadError":"アーカイブの読み込みに失敗しました。","archive.view.selectPrompt":"プレビューするアーカイブを選んでください。","archive.view.restore":"ボードに戻す","archive.view.restoreConfirm":"{id} をボードに戻しますか?","archive.view.restoreError":"タスクの復元に失敗しました。","trash.view.listTitle":"退避した旧版","trash.view.searchPlaceholder":"検索 (ID / タイトル / 本文)…","trash.view.empty":"ごみ箱は空です。破壊的な編集の直前に旧版が自動退避されます。","trash.view.noMatch":"検索条件に一致する退避はありません。","trash.view.loadError":"ごみ箱の読み込みに失敗しました。","trash.view.selectPrompt":"プレビューする退避を選んでください。","trash.view.trashedAt":"退避日時 {time}","trash.view.restore":"ボードに戻す","trash.view.restoreConfirm":"この退避から {id} を復元しますか? (同じ ID がボードに無いことが前提です)","trash.view.restoreOverwriteConfirm":"現在の {id} を上書きして、この退避から復元しますか? (現行もごみ箱へ退避されます)","trash.view.restoreError":"退避の復元に失敗しました。","trash.view.restoreConflict":"{id} は既にボードに存在するため復元しませんでした。先に削除かリネームしてください。","trash.view.diffTitle":"この退避からの変更 (退避版 → 現行)","trash.view.diff.add":"+ 現行タスクにある行","trash.view.diff.remove":"- 退避版にあった行","trash.view.noDiff":"この退避は現行タスクと同一です。","trash.view.noCurrent":"この ID のタスクはボードに無いため、比較対象がありません。","trash.view.previewTitle":"退避内容","bulkInstruction.select":"複数選択","bulkInstruction.exit":"完了","bulkInstruction.selectedCount":"{n} 件選択中","bulkInstruction.copy":"まとめて指示をコピー","bulkInstruction.clear":"選択解除","bulkInstruction.copied":"コピーしました","bulkInstruction.copyFailed":"コピーに失敗","bulkInstruction.hint":"カードをクリックして選び、依存順の 1 つの指示文としてコピーします。","bulkInstruction.wrapper":"次の {n} 件を依存順に (先行するものから順に) 対応してください。","bulkInstruction.checkbox":"{id} を選択","savedView.save":"+ ビューとして保存","savedView.saveHint":"先に絞り込みを設定してから、ビューとして保存できます。","savedView.namePlaceholder":"ビュー名…","savedView.delete":"ビュー「{name}」を削除","savedView.saveError":"ビューの保存に失敗しました","savedView.conflict":"config.json が外部で変更されたため保存できませんでした。ボードを最新化したので、もう一度操作してください。","savedView.palette":"ビュー: {name}","rename.action":"空き ID にリネーム","rename.error":"リネームに失敗しました","comment.title":"やりとり","comment.placeholder":"コメントを書く (@member で宛先指定)…","comment.send":"送信","comment.empty":"コメントはまだありません。","comment.error":"コメントの追加に失敗しました","detail.tab.commits":"コミット","commits.empty":"このタスクを参照しているコミットはありません (または git リポジトリではありません)。","commits.error":"コミットの読み込みに失敗しました。","commits.copyHash":"コミットハッシュ全体をコピー","commits.copied":"コピーしました","detail.tab.timeline":"タイムライン","timeline.empty":"このタスクではまだ何も起きていません。","timeline.kind.log":"作業ログ","timeline.kind.comment":"やりとり","timeline.kind.commit":"コミット","cp.empty":"未完了タスクがありません (done は除外)。","cp.level":"レベル {n}","cp.dependsOn":"依存:","cp.criticalPath":"クリティカルパス","cp.cycleWarning":"循環依存を検出しました: {ids}。depends_on を見直してください (この鎖は順序付けできません)。","cp.cycleLevel":"循環","cp.copyReorg":"再編成指示をコピー","cp.copied":"コピーしました","cp.copyFailed":"コピーに失敗","digest.empty":"作業ログがまだありません。","digest.entries":"{n} 件","digest.days":"日付","stats.empty":"タスクがまだありません。タスクができると統計が表示されます。","stats.summary.title":"概要","stats.summary.total":"タスク総数","stats.summary.done":"完了","stats.completions.title":"完了数の推移","stats.completions.byDay":"日別","stats.completions.byWeek":"週別 (月曜起点)","stats.completions.empty":"完了したタスクがまだありません。","stats.completions.barAria":"{key} に {count} 件完了","stats.completions.date":"日付","stats.completions.granularity":"集計粒度","stats.cycleTime.title":"サイクルタイム (作成 → 完了)","stats.cycleTime.median":"中央値","stats.cycleTime.mean":"平均","stats.cycleTime.sample":"対象: {n} 件","stats.cycleTime.empty":"サイクルタイムを算出できる完了タスクが足りません。","stats.days":"{n} 日","stats.dwell.title":"現ステータスでの滞留時間 (近似)","stats.dwell.note":"近似値: 構造化された遷移ログがないため、現在のステータスでの経過時間のみを示します。","stats.dwell.status":"ステータス","stats.dwell.count":"タスク数","stats.dwell.avg":"平均","stats.dwell.max":"最大","stats.member.title":"メンバー別完了数","stats.member.name":"メンバー","stats.member.unassigned":"未割り当て","stats.member.empty":"完了したタスクがまだありません。","stats.bottlenecks.title":"ボトルネック (滞留の長い保留)","stats.bottlenecks.empty":"保留中のタスクはありません。","stats.bottlenecks.task":"タスク","stats.bottlenecks.dwell":"保留期間","stats.bottlenecks.type":"種別","stats.bottlenecks.reason":"理由","stalled.title":"静かなタスク (停滞)","stalled.note":"最後の活動 (作業ログ・やりとり) からの経過がステータス別の閾値 (in_progress / todo / pending) を超えたタスクです。config.json の stallThresholds で調整できます (単位: 日)。","stalled.empty":"停滞しているタスクはありません。すべて動いています。","stalled.task":"タスク","stalled.status":"ステータス","stalled.idle":"停滞期間","stalled.badge":"停滞","stalled.cardTitle":"{n} 日更新なし (停滞)","stalled.palette":"停滞タスクへジャンプ: {id} — {title}","progress.label":"進捗 {done}/{total}","newActivity.badge":"新着","newActivity.cardTitle":"見ていない間に変わりました (開くと既読になります)","newActivity.markAllRead":"すべて既読 ({n})","newActivity.markAllRead.title":"新着をすべて既読にする","decisionWaits.badge":"判断待ち {n} 件","decisionWaits.title":"あなたの判断待ちのタスク","decisionWaits.empty":"判断待ちのタスクはありません。","decisionWaits.open":"判断待ちのタスクを表示","decisionWaits.assignee":"担当","decisionWaits.noReason":"理由の記載なし","home.lead":"今あなたの注意が必要なこと、そして次にやるべきこと。","home.empty":"まだタスクがありません。上の「+ タスク追加」から最初のタスクを作成してください。","home.allClear.title":"すべて順調","home.allClear.detail":"判断待ち・停滞はなく、WIP 上限を超えた列もありません。","home.next.title":"次の一手(クリティカルパス)","home.next.empty":"未完了タスクはありません(進行を止めているものはなし)。","home.next.startHere":"ここから着手","home.next.cycle":"依存関係に循環があります。クリティカルパスビューで解消してください。","home.wip.title":"WIP 超過","home.wip.empty":"WIP 上限を超えた列はありません。","home.wip.row":"{label}: {count} / 上限 {limit}","home.unread.title":"離席中の新着","home.unread.empty":"新着はありません。","home.idleDays":"{n}日 停滞","home.openAria":"{id} を開く","milestone.empty":"マイルストーンが未定義です。config.json に milestones[] を追加してください。","milestone.roadmap":"予定表","milestone.history":"対応履歴","milestone.unassignedTasks":"マイルストーン未設定","milestone.tasks":"所属タスク","milestone.status.planned":"予定","milestone.status.active":"進行中","milestone.status.done":"完了","column.empty":"(タスクなし)","column.wipLimit":"WIP 上限 {limit}","column.wipExceeded":"WIP 上限 {limit} 超過","card.unassigned":"未割当","card.unregisteredMember":"未登録のメンバー","card.memberType":"種別: {type}","card.lastUpdated":"最終更新 {elapsed}","member.human":"人間","member.ai":"AI","time.justNow":"たった今","time.minutesAgo":"{n}分前","time.hoursAgo":"{n}時間前","time.daysAgo":"{n}日前","blocked.decision":"判断待ち","blocked.external":"外部待ち","blocked.dependency":"依存待ち","blocked.decision.option":"decision(人の判断待ち)","blocked.external.option":"external(外部待ち)","blocked.dependency.option":"dependency(依存タスク待ち)","revise.button":"やり直しを依頼","revise.dialog.title":"やり直しを依頼","revise.dialog.intro":"「{title}」を Todo に差し戻します。","revise.dialog.reason":"理由(任意・複数行可)","revise.dialog.placeholder":"例: エラー処理がタイムアウト時を考慮できていないので見直してください。","revise.dialog.confirm":"Todo へ差し戻す","revise.error":"やり直し依頼に失敗しました","revise.conflict":"外部で変更されたため差し戻しを反映できませんでした。ボードを最新化したので、もう一度操作してください。","blockedDialog.title":"保留にする理由","blockedDialog.intro":"「{title}」を Pending に移動します。","blockedDialog.type":"種別","blockedDialog.reason":"理由(誰の・何待ちか。1 行)","blockedDialog.reason.placeholder":"例: RYU のレビュー待ち","blockedDialog.confirm":"Pending へ移動","addTask.title":"タスクを追加","addTask.field.title":"タイトル(必須)","addTask.field.title.placeholder":"例: ログインAPIのバリデーション追加","addTask.field.createdBy":"起票者","addTask.field.assignee":"担当者(任意)","addTask.field.priority":"優先度","addTask.field.labels":"ラベル(任意・カンマ区切り)","addTask.field.labels.placeholder":"例: backend, auth","addTask.field.template":"テンプレート(任意)","addTask.template.none":"(テンプレートなし)","addTask.field.body":"本文(任意)","addTask.field.body.placeholder":"タスクの説明 / 受け入れ条件など…","addTask.submit":"作成","addTask.submitting":"作成中…","addTask.error":"起票に失敗しました","palette.title":"コマンドパレット","palette.placeholder":"タスク検索・ビュー切替・起票…","palette.empty":"一致するコマンドがありません。","palette.go":"移動","palette.addTask":"タスクを追加","palette.settings":"設定を開く","status.proposed":"提案","status.backlog":"バックログ","status.todo":"未着手","status.in_progress":"進行中","status.pending":"保留","status.done":"完了","overview.title":"案件横断ビュー(閲覧専用)","overview.projects":"プロジェクト","overview.attention.title":"注目タスク(進行中 / 保留 / 提案)","overview.attention.empty":"進行中・保留・提案のタスクはありません。","overview.col.project":"案件","overview.col.task":"タスク","overview.col.status":"ステータス","overview.col.assignee":"担当","overview.col.blocked":"ブロック理由","overview.warnings":"警告 {n} 件","overview.wipExceeded":"WIP 超過","overview.loadError":"横断ビューの取得に失敗しました。","mode.connectError":"AIzuchi サーバーに接続できません。起動していることを確認して再読み込みしてください。","common.cancel":"キャンセル","common.save":"保存","common.saving":"保存中…","common.discard":"変更を取り消す","common.unset":"(未設定)","move.error":"ステータス変更に失敗しました","detail.aria":"{id} の詳細","detail.close":"閉じる","detail.tab.preview":"プレビュー","detail.tab.edit":"編集","detail.tab.log":"作業ログ","detail.editAria":"タスクファイルの編集","detail.log.empty":"作業ログがありません。","detail.dirty":"未保存の変更があります","detail.saveError":"保存に失敗しました","detail.copyInstruction":"AI への指示をコピー","detail.copyInstruction.done":"コピーしました","detail.copyInstruction.failed":"コピーに失敗","detail.copyInstruction.title":"AI に渡せる指示文をクリップボードへコピーします","conflict.title":"保存が競合しました","conflict.intro":"このタスクは、あなたが編集を始めた後に外部(エディタや AI)で変更されています。以下はサーバー側の内容(基準)に対する、あなたの編集の差分です。","conflict.diffAria":"競合の差分","conflict.legend.add":"+ あなたの追加","conflict.legend.remove":"- サーバー側にあった行","conflict.reload":"サーバー側を読み込み直す(編集を破棄)","conflict.overwrite":"自分の内容で上書き","warning.summary":"{n} 件の警告(ボードは表示を継続しています)","warning.kind.invalid_task":"不正なタスク","warning.kind.duplicate_id":"重複 ID","warning.kind.unregistered_member":"未登録メンバー","warning.kind.invalid_config":"設定エラー","warning.kind.mode_violation":"モード違反","proposal.approve":"承認","proposal.reject":"却下","proposal.reject.prompt":"却下理由(作業ログに記録されます)","proposal.approve.error":"承認に失敗しました","proposal.reject.error":"却下に失敗しました","settings.title":"設定","settings.aiTaskCreation":"AI 起票モード","settings.aiTaskCreation.free":"free(AI が直接起票してよい)","settings.aiTaskCreation.proposal":"proposal(承認制)","settings.language":"言語","settings.language.en":"English","settings.language.ja":"日本語","settings.projectName":"プロジェクト名","settings.idPrefix":"ID 接頭辞","settings.instructionTemplate":"指示テンプレート({id} / {path} が展開されます)","settings.members":"メンバー","settings.members.add":"+ メンバー追加","settings.members.idPlaceholder":"ID(スラッグ)","settings.members.labelPlaceholder":"表示名(任意)","settings.migrate.title":"このメンバー変更は既存タスクに影響します","settings.migrate.rename":"{from} → {to}: 参照タスク {n} 件を付け替えます","settings.migrate.removed":"{id} を削除します(参照タスク {n} 件)。移譲先:","settings.migrate.noTransfer":"移譲しない(警告表示のまま)","settings.migrate.execute":"保存して実行","settings.migrate.skipped":"一部のタスクを書き換えられませんでした: {files}","settings.migrate.swap":"メンバー ID の入れ替えは 1 回の保存では実行できません。2 回に分けて保存してください。","settings.migrate.failed":"設定は保存済みです。参照の付け替えに失敗しました — もう一度保存すると残りを再実行します。","settings.members.duplicate":"メンバー ID が重複しています: {ids}","settings.columns":"カラム","settings.columns.idPlaceholder":"id (例: todo)","settings.columns.labelPlaceholder":"表示名 (任意)","settings.columns.wipPlaceholder":"WIP","settings.columns.wipAria":"WIP 上限","settings.columns.hideWhenEmpty":"空のとき隠す","settings.columns.moveUp":"上へ","settings.columns.moveDown":"下へ","settings.columns.remove":"カラムを削除","settings.columns.add":"+ カラムを追加","settings.paths.settingsFiles":"AI 設定: 設定ファイル","settings.paths.browseDirs":"AI 設定: 閲覧ディレクトリ","settings.paths.rootFiles":"AI 設定: ルートファイル","settings.paths.placeholder":"プロジェクトルートからのパス","settings.paths.remove":"パスを削除","settings.paths.add":"+ パスを追加","settings.views":"タブ (ビュー)","settings.views.show":"表示","settings.views.moveUp":"上へ","settings.views.moveDown":"下へ","settings.advanced":"詳細(生 JSON)","settings.save":"保存","settings.saving":"保存中…","settings.saved":"保存しました","settings.error":"設定の保存に失敗しました","settings.reload":"再読み込み","settings.loadError":"設定の読み込みに失敗しました","settings.conflict":"config.json が外部 (エディタや AI) で変更されました。設定を一度閉じて開き直して再読み込みしてから、保存し直してください。"},cd=Ng,Tg="aizuchi.lang",N_={en:Eg,ja:C_};function j_(e,t){return t?e.replace(/\{(\w+)\}/g,(r,s)=>Object.prototype.hasOwnProperty.call(t,s)?String(t[s]):r):e}function Ig(){try{if(typeof localStorage>"u")return null;const e=localStorage.getItem(Tg);return e==="en"||e==="ja"?e:null}catch{return null}}function E_(){return Ig()!==null}const Ag=b.createContext(null);function T_({children:e}){const[t,r]=b.useState(()=>Ig()??"en"),s=b.useRef(!1),l=b.useCallback(h=>{r(h),typeof document<"u"&&(document.documentElement.lang=h)},[]),o=b.useCallback(h=>{s.current=!0,r(h);try{typeof localStorage<"u"&&localStorage.setItem(Tg,h)}catch{}typeof document<"u"&&(document.documentElement.lang=h)},[]),c=b.useCallback(()=>s.current||E_(),[]),d=b.useCallback((h,g)=>{const k=N_[t][h]??Eg[h]??h;return j_(k,g)},[t]),f=b.useMemo(()=>({lang:t,setLang:o,applyLang:l,hasUserChoice:c,t:d}),[t,o,l,c,d]);return p.jsx(Ag.Provider,{value:f,children:e})}function vt(){const e=b.useContext(Ag);if(!e)throw new Error("useI18n は I18nProvider の内側で使ってください");return e}function I_(e,t){switch(t.unit){case"justNow":return e("time.justNow");case"minutes":return e("time.minutesAgo",{n:t.n});case"hours":return e("time.hoursAgo",{n:t.n});case"days":return e("time.daysAgo",{n:t.n})}}const A_=["a[href]","button:not([disabled])","textarea:not([disabled])","input:not([disabled])","select:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(",");function D_(e){return Array.from(e.querySelectorAll(A_)).filter(r=>!r.hasAttribute("disabled")&&r.tabIndex!==-1)}function ud(e,t=!0){b.useEffect(()=>{if(!t)return;const r=e.current;if(!r)return;const s=l=>{if(l.key!=="Tab")return;const o=D_(r);if(o.length===0){l.preventDefault(),r.focus();return}const c=o[0],d=o[o.length-1],f=document.activeElement;l.shiftKey?(f===c||f===r||!r.contains(f))&&(l.preventDefault(),d.focus()):f===d&&(l.preventDefault(),c.focus())};return r.addEventListener("keydown",s),()=>r.removeEventListener("keydown",s)},[e,t])}const R_="_overlay_9olz3_1",P_="_dialog_9olz3_12",L_="_dialogWide_9olz3_23",M_="_title_9olz3_27",O_="_field_9olz3_32",z_="_label_9olz3_39",$_="_input_9olz3_45",B_="_select_9olz3_46",F_="_textarea_9olz3_47",V_="_actions_9olz3_69",U_="_btn_9olz3_76",H_="_btnPrimary_9olz3_88",W_="_btnDanger_9olz3_108",q_="_error_9olz3_114",de={overlay:R_,dialog:P_,dialogWide:L_,title:M_,field:O_,label:z_,input:$_,select:B_,textarea:F_,actions:V_,btn:U_,btnPrimary:H_,btnDanger:W_,error:q_};function dd(e,t){return e===t}function di({title:e,onClose:t,children:r,wide:s}){const l=b.useRef(null);return ud(l),b.useEffect(()=>{var d;const o=document.activeElement,c=f=>{f.key==="Escape"&&t()};return document.addEventListener("keydown",c),(d=l.current)==null||d.focus(),()=>{var f;document.removeEventListener("keydown",c),(f=o==null?void 0:o.focus)==null||f.call(o)}},[t]),p.jsx("div",{className:de.overlay,onClick:o=>{dd(o.target,o.currentTarget)&&(o.stopPropagation(),t())},children:p.jsxs("div",{ref:l,className:`${de.dialog} ${s?de.dialogWide:""}`,role:"dialog","aria-modal":"true","aria-label":e,tabIndex:-1,children:[p.jsx("h2",{className:de.title,children:e}),r]})})}const Jh="aizuchi.createdBy",K_=["high","medium","low"];function Z_({members:e,templates:t=[],onCancel:r,onSubmit:s}){var ee;const{t:l}=vt(),o=typeof localStorage<"u"?localStorage.getItem(Jh):null,c=o&&e.some(F=>F.id===o)?o:((ee=e[0])==null?void 0:ee.id)??"",[d,f]=b.useState(""),[h,g]=b.useState(c),[y,k]=b.useState(""),[x,_]=b.useState("medium"),[T,D]=b.useState(""),[S,L]=b.useState(""),[E,R]=b.useState(-1),[P,j]=b.useState(null),[H,Z]=b.useState(!1),G=F=>{if(R(F),F<0||F>=t.length){f(""),L(""),D(""),_("medium");return}const ge=t[F];f((ge.title??"").replace(/[\r\n]/g,"")),L(ge.body??""),D((ge.labels??[]).join(", ")),_(ge.priority??"medium")},z=b.useRef(!0);b.useEffect(()=>()=>{z.current=!1},[]);const K=d.trim(),ne=K.length>0&&h.length>0&&!H,xe=async()=>{if(ne){Z(!0),j(null);try{const F=T.split(",").map(he=>he.trim()).filter(he=>he.length>0),ge={title:K,created_by:h,assignee:y||null,priority:x,labels:F,...S.length>0?{body:S}:{}};await s(ge),typeof localStorage<"u"&&localStorage.setItem(Jh,h)}catch(F){z.current&&(j(F instanceof Error?F.message:l("addTask.error")),Z(!1))}}};return p.jsxs(di,{title:l("addTask.title"),onClose:r,children:[P&&p.jsx("p",{className:de.error,children:P}),p.jsxs("form",{onSubmit:F=>{F.preventDefault(),xe()},children:[t.length>0&&p.jsxs("div",{className:de.field,children:[p.jsx("label",{className:de.label,htmlFor:"new-template",children:l("addTask.field.template")}),p.jsxs("select",{id:"new-template",className:de.select,value:E,onChange:F=>G(Number(F.target.value)),children:[p.jsx("option",{value:-1,children:l("addTask.template.none")}),t.map((F,ge)=>p.jsx("option",{value:ge,children:F.name},ge))]})]}),p.jsxs("div",{className:de.field,children:[p.jsx("label",{className:de.label,htmlFor:"new-title",children:l("addTask.field.title")}),p.jsx("input",{id:"new-title",className:de.input,value:d,onChange:F=>f(F.target.value.replace(/[\r\n]/g,"")),placeholder:l("addTask.field.title.placeholder"),autoFocus:!0})]}),p.jsxs("div",{className:de.field,children:[p.jsx("label",{className:de.label,htmlFor:"new-created-by",children:l("addTask.field.createdBy")}),p.jsx("select",{id:"new-created-by",className:de.select,value:h,onChange:F=>g(F.target.value),children:e.map(F=>p.jsxs("option",{value:F.id,children:[F.label??F.id,"(",F.type,")"]},F.id))})]}),p.jsxs("div",{className:de.field,children:[p.jsx("label",{className:de.label,htmlFor:"new-assignee",children:l("addTask.field.assignee")}),p.jsxs("select",{id:"new-assignee",className:de.select,value:y,onChange:F=>k(F.target.value),children:[p.jsx("option",{value:"",children:l("card.unassigned")}),e.map(F=>p.jsxs("option",{value:F.id,children:[F.label??F.id,"(",F.type,")"]},F.id))]})]}),p.jsxs("div",{className:de.field,children:[p.jsx("label",{className:de.label,htmlFor:"new-priority",children:l("addTask.field.priority")}),p.jsx("select",{id:"new-priority",className:de.select,value:x,onChange:F=>_(F.target.value),children:K_.map(F=>p.jsx("option",{value:F,children:F},F))})]}),p.jsxs("div",{className:de.field,children:[p.jsx("label",{className:de.label,htmlFor:"new-labels",children:l("addTask.field.labels")}),p.jsx("input",{id:"new-labels",className:de.input,value:T,onChange:F=>D(F.target.value.replace(/[\r\n]/g,"")),placeholder:l("addTask.field.labels.placeholder")})]}),t.length>0&&p.jsxs("div",{className:de.field,children:[p.jsx("label",{className:de.label,htmlFor:"new-body",children:l("addTask.field.body")}),p.jsx("textarea",{id:"new-body",className:de.textarea,value:S,onChange:F=>L(F.target.value),placeholder:l("addTask.field.body.placeholder")})]}),p.jsxs("div",{className:de.actions,children:[p.jsx("button",{type:"button",className:de.btn,onClick:r,children:l("common.cancel")}),p.jsx("button",{type:"submit",className:`${de.btn} ${de.btnPrimary}`,disabled:!ne,children:l(H?"addTask.submitting":"addTask.submit")})]})]})]})}function Y_(e,t){const r={};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const Q_=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,X_=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,G_={};function em(e,t){return(G_.jsx?X_:Q_).test(e)}const J_=/[ \t\n\f\r]/g;function ew(e){return typeof e=="object"?e.type==="text"?tm(e.value):!1:tm(e)}function tm(e){return e.replace(J_,"")===""}class Cl{constructor(t,r,s){this.normal=r,this.property=t,s&&(this.space=s)}}Cl.prototype.normal={};Cl.prototype.property={};Cl.prototype.space=void 0;function Dg(e,t){const r={},s={};for(const l of e)Object.assign(r,l.property),Object.assign(s,l.normal);return new Cl(r,s,t)}function Mu(e){return e.toLowerCase()}class Pn{constructor(t,r){this.attribute=r,this.property=t}}Pn.prototype.attribute="";Pn.prototype.booleanish=!1;Pn.prototype.boolean=!1;Pn.prototype.commaOrSpaceSeparated=!1;Pn.prototype.commaSeparated=!1;Pn.prototype.defined=!1;Pn.prototype.mustUseProperty=!1;Pn.prototype.number=!1;Pn.prototype.overloadedBoolean=!1;Pn.prototype.property="";Pn.prototype.spaceSeparated=!1;Pn.prototype.space=void 0;let tw=0;const We=Ri(),qt=Ri(),Ou=Ri(),ce=Ri(),xt=Ri(),Ti=Ri(),Fn=Ri();function Ri(){return 2**++tw}const zu=Object.freeze(Object.defineProperty({__proto__:null,boolean:We,booleanish:qt,commaOrSpaceSeparated:Fn,commaSeparated:Ti,number:ce,overloadedBoolean:Ou,spaceSeparated:xt},Symbol.toStringTag,{value:"Module"})),cu=Object.keys(zu);class fd extends Pn{constructor(t,r,s,l){let o=-1;if(super(t,r),nm(this,"space",l),typeof s=="number")for(;++o<cu.length;){const c=cu[o];nm(this,cu[o],(s&zu[c])===zu[c])}}}fd.prototype.defined=!0;function nm(e,t,r){r&&(e[t]=r)}function ms(e){const t={},r={};for(const[s,l]of Object.entries(e.properties)){const o=new fd(s,e.transform(e.attributes||{},s),l,e.space);e.mustUseProperty&&e.mustUseProperty.includes(s)&&(o.mustUseProperty=!0),t[s]=o,r[Mu(s)]=s,r[Mu(o.attribute)]=s}return new Cl(t,r,e.space)}const Rg=ms({properties:{ariaActiveDescendant:null,ariaAtomic:qt,ariaAutoComplete:null,ariaBusy:qt,ariaChecked:qt,ariaColCount:ce,ariaColIndex:ce,ariaColSpan:ce,ariaControls:xt,ariaCurrent:null,ariaDescribedBy:xt,ariaDetails:null,ariaDisabled:qt,ariaDropEffect:xt,ariaErrorMessage:null,ariaExpanded:qt,ariaFlowTo:xt,ariaGrabbed:qt,ariaHasPopup:null,ariaHidden:qt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:xt,ariaLevel:ce,ariaLive:null,ariaModal:qt,ariaMultiLine:qt,ariaMultiSelectable:qt,ariaOrientation:null,ariaOwns:xt,ariaPlaceholder:null,ariaPosInSet:ce,ariaPressed:qt,ariaReadOnly:qt,ariaRelevant:null,ariaRequired:qt,ariaRoleDescription:xt,ariaRowCount:ce,ariaRowIndex:ce,ariaRowSpan:ce,ariaSelected:qt,ariaSetSize:ce,ariaSort:null,ariaValueMax:ce,ariaValueMin:ce,ariaValueNow:ce,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Pg(e,t){return t in e?e[t]:t}function Lg(e,t){return Pg(e,t.toLowerCase())}const nw=ms({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ti,acceptCharset:xt,accessKey:xt,action:null,allow:null,allowFullScreen:We,allowPaymentRequest:We,allowUserMedia:We,alpha:We,alt:null,as:null,async:We,autoCapitalize:null,autoComplete:xt,autoFocus:We,autoPlay:We,blocking:xt,capture:null,charSet:null,checked:We,cite:null,className:xt,closedBy:null,colorSpace:null,cols:ce,colSpan:ce,command:null,commandFor:null,content:null,contentEditable:qt,controls:We,controlsList:xt,coords:ce|Ti,crossOrigin:null,data:null,dateTime:null,decoding:null,default:We,defer:We,dir:null,dirName:null,disabled:We,download:Ou,draggable:qt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:We,formTarget:null,headers:xt,height:ce,hidden:Ou,high:ce,href:null,hrefLang:null,htmlFor:xt,httpEquiv:xt,id:null,imageSizes:null,imageSrcSet:null,inert:We,inputMode:null,integrity:null,is:null,isMap:We,itemId:null,itemProp:xt,itemRef:xt,itemScope:We,itemType:xt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:We,low:ce,manifest:null,max:null,maxLength:ce,media:null,method:null,min:null,minLength:ce,multiple:We,muted:We,name:null,nonce:null,noModule:We,noValidate:We,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:We,optimum:ce,pattern:null,ping:xt,placeholder:null,playsInline:We,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:We,referrerPolicy:null,rel:xt,required:We,reversed:We,rows:ce,rowSpan:ce,sandbox:xt,scope:null,scoped:We,seamless:We,selected:We,shadowRootClonable:We,shadowRootCustomElementRegistry:We,shadowRootDelegatesFocus:We,shadowRootMode:null,shadowRootSerializable:We,shape:null,size:ce,sizes:null,slot:null,span:ce,spellCheck:qt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ce,step:null,style:null,tabIndex:ce,target:null,title:null,translate:null,type:null,typeMustMatch:We,useMap:null,value:qt,width:ce,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:xt,axis:null,background:null,bgColor:null,border:ce,borderColor:null,bottomMargin:ce,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:We,declare:We,event:null,face:null,frame:null,frameBorder:null,hSpace:ce,leftMargin:ce,link:null,longDesc:null,lowSrc:null,marginHeight:ce,marginWidth:ce,noResize:We,noHref:We,noShade:We,noWrap:We,object:null,profile:null,prompt:null,rev:null,rightMargin:ce,rules:null,scheme:null,scrolling:qt,standby:null,summary:null,text:null,topMargin:ce,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ce,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:We,disablePictureInPicture:We,disableRemotePlayback:We,exportParts:Ti,part:xt,prefix:null,property:null,results:ce,security:null,unselectable:null},space:"html",transform:Lg}),rw=ms({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",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",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",maskType:"mask-type",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",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",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",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",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Fn,accentHeight:ce,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ce,amplitude:ce,arabicForm:null,ascent:ce,attributeName:null,attributeType:null,azimuth:ce,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ce,by:null,calcMode:null,capHeight:ce,className:xt,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:ce,diffuseConstant:ce,direction:null,display:null,dur:null,divisor:ce,dominantBaseline:null,download:We,dx:null,dy:null,edgeMode:null,editable:null,elevation:ce,enableBackground:null,end:null,event:null,exponent:ce,externalResourcesRequired:null,fill:null,fillOpacity:ce,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Ti,g2:Ti,glyphName:Ti,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ce,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ce,horizOriginX:ce,horizOriginY:ce,id:null,ideographic:ce,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ce,k:ce,k1:ce,k2:ce,k3:ce,k4:ce,kernelMatrix:Fn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ce,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ce,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:ce,overlineThickness:ce,paintOrder:null,panose1:null,path:null,pathLength:ce,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:xt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ce,pointsAtY:ce,pointsAtZ:ce,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Fn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Fn,rev:Fn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Fn,requiredFeatures:Fn,requiredFonts:Fn,requiredFormats:Fn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:ce,specularExponent:ce,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ce,strikethroughThickness:ce,string:null,stroke:null,strokeDashArray:Fn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ce,strokeOpacity:ce,strokeWidth:null,style:null,surfaceScale:ce,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Fn,tabIndex:ce,tableValues:null,target:null,targetX:ce,targetY:ce,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Fn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ce,underlineThickness:ce,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ce,values:null,vAlphabetic:ce,vMathematical:ce,vectorEffect:null,vHanging:ce,vIdeographic:ce,version:null,vertAdvY:ce,vertOriginX:ce,vertOriginY:ce,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ce,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Pg}),Mg=ms({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),Og=ms({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Lg}),zg=ms({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),iw={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},sw=/[A-Z]/g,rm=/-[a-z]/g,lw=/^data[-\w.:]+$/i;function ow(e,t){const r=Mu(t);let s=t,l=Pn;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&lw.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(rm,cw);s="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!rm.test(o)){let c=o.replace(sw,aw);c.charAt(0)!=="-"&&(c="-"+c),t="data"+c}}l=fd}return new l(s,t)}function aw(e){return"-"+e.toLowerCase()}function cw(e){return e.charAt(1).toUpperCase()}const uw=Dg([Rg,nw,Mg,Og,zg],"html"),pd=Dg([Rg,rw,Mg,Og,zg],"svg");function dw(e){return e.join(" ").trim()}var ns={},uu,im;function fw(){if(im)return uu;im=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,s=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,l=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,d=/^\s+|\s+$/g,f=`
|
|
41
|
-
`,h="/",g="*",y="",k="comment",x="declaration";function _(D,S){if(typeof D!="string")throw new TypeError("First argument must be a string");if(!D)return[];S=S||{};var L=1,E=1;function R(ee){var F=ee.match(t);F&&(L+=F.length);var ge=ee.lastIndexOf(f);E=~ge?ee.length-ge:E+ee.length}function P(){var ee={line:L,column:E};return function(F){return F.position=new j(ee),G(),F}}function j(ee){this.start=ee,this.end={line:L,column:E},this.source=S.source}j.prototype.content=D;function H(ee){var F=new Error(S.source+":"+L+":"+E+": "+ee);if(F.reason=ee,F.filename=S.source,F.line=L,F.column=E,F.source=D,!S.silent)throw F}function Z(ee){var F=ee.exec(D);if(F){var ge=F[0];return R(ge),D=D.slice(ge.length),F}}function G(){Z(r)}function z(ee){var F;for(ee=ee||[];F=K();)F!==!1&&ee.push(F);return ee}function K(){var ee=P();if(!(h!=D.charAt(0)||g!=D.charAt(1))){for(var F=2;y!=D.charAt(F)&&(g!=D.charAt(F)||h!=D.charAt(F+1));)++F;if(F+=2,y===D.charAt(F-1))return H("End of comment missing");var ge=D.slice(2,F-2);return E+=2,R(ge),D=D.slice(F),E+=2,ee({type:k,comment:ge})}}function ne(){var ee=P(),F=Z(s);if(F){if(K(),!Z(l))return H("property missing ':'");var ge=Z(o),he=ee({type:x,property:T(F[0].replace(e,y)),value:ge?T(ge[0].replace(e,y)):y});return Z(c),he}}function xe(){var ee=[];z(ee);for(var F;F=ne();)F!==!1&&(ee.push(F),z(ee));return ee}return G(),xe()}function T(D){return D?D.replace(d,y):y}return uu=_,uu}var sm;function pw(){if(sm)return ns;sm=1;var e=ns&&ns.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(ns,"__esModule",{value:!0}),ns.default=r;const t=e(fw());function r(s,l){let o=null;if(!s||typeof s!="string")return o;const c=(0,t.default)(s),d=typeof l=="function";return c.forEach(f=>{if(f.type!=="declaration")return;const{property:h,value:g}=f;d?l(h,g,f):g&&(o=o||{},o[h]=g)}),o}return ns}var tl={},lm;function hw(){if(lm)return tl;lm=1,Object.defineProperty(tl,"__esModule",{value:!0}),tl.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,r=/^[^-]+$/,s=/^-(webkit|moz|ms|o|khtml)-/,l=/^-(ms)-/,o=function(h){return!h||r.test(h)||e.test(h)},c=function(h,g){return g.toUpperCase()},d=function(h,g){return"".concat(g,"-")},f=function(h,g){return g===void 0&&(g={}),o(h)?h:(h=h.toLowerCase(),g.reactCompat?h=h.replace(l,d):h=h.replace(s,d),h.replace(t,c))};return tl.camelCase=f,tl}var nl,om;function mw(){if(om)return nl;om=1;var e=nl&&nl.__importDefault||function(l){return l&&l.__esModule?l:{default:l}},t=e(pw()),r=hw();function s(l,o){var c={};return!l||typeof l!="string"||(0,t.default)(l,function(d,f){d&&f&&(c[(0,r.camelCase)(d,o)]=f)}),c}return s.default=s,nl=s,nl}var gw=mw();const yw=nd(gw),$g=Bg("end"),hd=Bg("start");function Bg(e){return t;function t(r){const s=r&&r.position&&r.position[e]||{};if(typeof s.line=="number"&&s.line>0&&typeof s.column=="number"&&s.column>0)return{line:s.line,column:s.column,offset:typeof s.offset=="number"&&s.offset>-1?s.offset:void 0}}}function vw(e){const t=hd(e),r=$g(e);if(t&&r)return{start:t,end:r}}function cl(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?am(e.position):"start"in e||"end"in e?am(e):"line"in e||"column"in e?$u(e):""}function $u(e){return cm(e&&e.line)+":"+cm(e&&e.column)}function am(e){return $u(e&&e.start)+"-"+$u(e&&e.end)}function cm(e){return e&&typeof e=="number"?e:1}class xn extends Error{constructor(t,r,s){super(),typeof r=="string"&&(s=r,r=void 0);let l="",o={},c=!1;if(r&&("line"in r&&"column"in r?o={place:r}:"start"in r&&"end"in r?o={place:r}:"type"in r?o={ancestors:[r],place:r.position}:o={...r}),typeof t=="string"?l=t:!o.cause&&t&&(c=!0,l=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof s=="string"){const f=s.indexOf(":");f===-1?o.ruleId=s:(o.source=s.slice(0,f),o.ruleId=s.slice(f+1))}if(!o.place&&o.ancestors&&o.ancestors){const f=o.ancestors[o.ancestors.length-1];f&&(o.place=f.position)}const d=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=d?d.column:void 0,this.fatal=void 0,this.file="",this.message=l,this.line=d?d.line:void 0,this.name=cl(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=c&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}xn.prototype.file="";xn.prototype.name="";xn.prototype.reason="";xn.prototype.message="";xn.prototype.stack="";xn.prototype.column=void 0;xn.prototype.line=void 0;xn.prototype.ancestors=void 0;xn.prototype.cause=void 0;xn.prototype.fatal=void 0;xn.prototype.place=void 0;xn.prototype.ruleId=void 0;xn.prototype.source=void 0;const md={}.hasOwnProperty,xw=new Map,kw=/[A-Z]/g,_w=new Set(["table","tbody","thead","tfoot","tr"]),ww=new Set(["td","th"]),Fg="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function bw(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=t.filePath||void 0;let s;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");s=Aw(r,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");s=Iw(r,t.jsx,t.jsxs)}const l={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:s,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?pd:uw,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=Vg(l,e,void 0);return o&&typeof o!="string"?o:l.create(e,l.Fragment,{children:o||void 0},void 0)}function Vg(e,t,r){if(t.type==="element")return Sw(e,t,r);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Cw(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return jw(e,t,r);if(t.type==="mdxjsEsm")return Nw(e,t);if(t.type==="root")return Ew(e,t,r);if(t.type==="text")return Tw(e,t)}function Sw(e,t,r){const s=e.schema;let l=s;t.tagName.toLowerCase()==="svg"&&s.space==="html"&&(l=pd,e.schema=l),e.ancestors.push(t);const o=Hg(e,t.tagName,!1),c=Dw(e,t);let d=yd(e,t);return _w.has(t.tagName)&&(d=d.filter(function(f){return typeof f=="string"?!ew(f):!0})),Ug(e,c,o,t),gd(c,d),e.ancestors.pop(),e.schema=s,e.create(t,o,c,r)}function Cw(e,t){if(t.data&&t.data.estree&&e.evaluater){const s=t.data.estree.body[0];return s.type,e.evaluater.evaluateExpression(s.expression)}vl(e,t.position)}function Nw(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);vl(e,t.position)}function jw(e,t,r){const s=e.schema;let l=s;t.name==="svg"&&s.space==="html"&&(l=pd,e.schema=l),e.ancestors.push(t);const o=t.name===null?e.Fragment:Hg(e,t.name,!0),c=Rw(e,t),d=yd(e,t);return Ug(e,c,o,t),gd(c,d),e.ancestors.pop(),e.schema=s,e.create(t,o,c,r)}function Ew(e,t,r){const s={};return gd(s,yd(e,t)),e.create(t,e.Fragment,s,r)}function Tw(e,t){return t.value}function Ug(e,t,r,s){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(t.node=s)}function gd(e,t){if(t.length>0){const r=t.length>1?t:t[0];r&&(e.children=r)}}function Iw(e,t,r){return s;function s(l,o,c,d){const h=Array.isArray(c.children)?r:t;return d?h(o,c,d):h(o,c)}}function Aw(e,t){return r;function r(s,l,o,c){const d=Array.isArray(o.children),f=hd(s);return t(l,o,c,d,{columnNumber:f?f.column-1:void 0,fileName:e,lineNumber:f?f.line:void 0},void 0)}}function Dw(e,t){const r={};let s,l;for(l in t.properties)if(l!=="children"&&md.call(t.properties,l)){const o=Pw(e,l,t.properties[l]);if(o){const[c,d]=o;e.tableCellAlignToStyle&&c==="align"&&typeof d=="string"&&ww.has(t.tagName)?s=d:r[c]=d}}if(s){const o=r.style||(r.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=s}return r}function Rw(e,t){const r={};for(const s of t.attributes)if(s.type==="mdxJsxExpressionAttribute")if(s.data&&s.data.estree&&e.evaluater){const o=s.data.estree.body[0];o.type;const c=o.expression;c.type;const d=c.properties[0];d.type,Object.assign(r,e.evaluater.evaluateExpression(d.argument))}else vl(e,t.position);else{const l=s.name;let o;if(s.value&&typeof s.value=="object")if(s.value.data&&s.value.data.estree&&e.evaluater){const d=s.value.data.estree.body[0];d.type,o=e.evaluater.evaluateExpression(d.expression)}else vl(e,t.position);else o=s.value===null?!0:s.value;r[l]=o}return r}function yd(e,t){const r=[];let s=-1;const l=e.passKeys?new Map:xw;for(;++s<t.children.length;){const o=t.children[s];let c;if(e.passKeys){const f=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(f){const h=l.get(f)||0;c=f+"-"+h,l.set(f,h+1)}}const d=Vg(e,o,c);d!==void 0&&r.push(d)}return r}function Pw(e,t,r){const s=ow(e.schema,t);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=s.commaSeparated?Y_(r):dw(r)),s.property==="style"){let l=typeof r=="object"?r:Lw(e,String(r));return e.stylePropertyNameCase==="css"&&(l=Mw(l)),["style",l]}return[e.elementAttributeNameCase==="react"&&s.space?iw[s.property]||s.property:s.attribute,r]}}function Lw(e,t){try{return yw(t,{reactCompat:!0})}catch(r){if(e.ignoreInvalidStyle)return{};const s=r,l=new xn("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:s,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw l.file=e.filePath||void 0,l.url=Fg+"#cannot-parse-style-attribute",l}}function Hg(e,t,r){let s;if(!r)s={type:"Literal",value:t};else if(t.includes(".")){const l=t.split(".");let o=-1,c;for(;++o<l.length;){const d=em(l[o])?{type:"Identifier",name:l[o]}:{type:"Literal",value:l[o]};c=c?{type:"MemberExpression",object:c,property:d,computed:!!(o&&d.type==="Literal"),optional:!1}:d}s=c}else s=em(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(s.type==="Literal"){const l=s.value;return md.call(e.components,l)?e.components[l]:l}if(e.evaluater)return e.evaluater.evaluateExpression(s);vl(e)}function vl(e,t){const r=new xn("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=Fg+"#cannot-handle-mdx-estrees-without-createevaluater",r}function Mw(e){const t={};let r;for(r in e)md.call(e,r)&&(t[Ow(r)]=e[r]);return t}function Ow(e){let t=e.replace(kw,zw);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function zw(e){return"-"+e.toLowerCase()}const du={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},$w={};function vd(e,t){const r=$w,s=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,l=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return Wg(e,s,l)}function Wg(e,t,r){if(Bw(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return um(e.children,t,r)}return Array.isArray(e)?um(e,t,r):""}function um(e,t,r){const s=[];let l=-1;for(;++l<e.length;)s[l]=Wg(e[l],t,r);return s.join("")}function Bw(e){return!!(e&&typeof e=="object")}const dm=document.createElement("i");function xd(e){const t="&"+e+";";dm.innerHTML=t;const r=dm.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}function Vn(e,t,r,s){const l=e.length;let o=0,c;if(t<0?t=-t>l?0:l+t:t=t>l?l:t,r=r>0?r:0,s.length<1e4)c=Array.from(s),c.unshift(t,r),e.splice(...c);else for(r&&e.splice(t,r);o<s.length;)c=s.slice(o,o+1e4),c.unshift(t,0),e.splice(...c),o+=1e4,t+=1e4}function Jn(e,t){return e.length>0?(Vn(e,e.length,0,t),e):t}const fm={}.hasOwnProperty;function qg(e){const t={};let r=-1;for(;++r<e.length;)Fw(t,e[r]);return t}function Fw(e,t){let r;for(r in t){const l=(fm.call(e,r)?e[r]:void 0)||(e[r]={}),o=t[r];let c;if(o)for(c in o){fm.call(l,c)||(l[c]=[]);const d=o[c];Vw(l[c],Array.isArray(d)?d:d?[d]:[])}}}function Vw(e,t){let r=-1;const s=[];for(;++r<t.length;)(t[r].add==="after"?e:s).push(t[r]);Vn(e,0,0,s)}function Kg(e,t){const r=Number.parseInt(e,t);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function dr(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Sn=fi(/[A-Za-z]/),vn=fi(/[\dA-Za-z]/),Uw=fi(/[#-'*+\--9=?A-Z^-~]/);function na(e){return e!==null&&(e<32||e===127)}const Bu=fi(/\d/),Hw=fi(/[\dA-Fa-f]/),Ww=fi(/[!-/:-@[-`{-~]/);function ze(e){return e!==null&&e<-2}function kt(e){return e!==null&&(e<0||e===32)}function nt(e){return e===-2||e===-1||e===32}const pa=fi(new RegExp("\\p{P}|\\p{S}","u")),Di=fi(/\s/);function fi(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function gs(e){const t=[];let r=-1,s=0,l=0;for(;++r<e.length;){const o=e.charCodeAt(r);let c="";if(o===37&&vn(e.charCodeAt(r+1))&&vn(e.charCodeAt(r+2)))l=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(c=String.fromCharCode(o));else if(o>55295&&o<57344){const d=e.charCodeAt(r+1);o<56320&&d>56319&&d<57344?(c=String.fromCharCode(o,d),l=1):c="�"}else c=String.fromCharCode(o);c&&(t.push(e.slice(s,r),encodeURIComponent(c)),s=r+l+1,c=""),l&&(r+=l,l=0)}return t.join("")+e.slice(s)}function st(e,t,r,s){const l=s?s-1:Number.POSITIVE_INFINITY;let o=0;return c;function c(f){return nt(f)?(e.enter(r),d(f)):t(f)}function d(f){return nt(f)&&o++<l?(e.consume(f),d):(e.exit(r),t(f))}}const qw={tokenize:Kw};function Kw(e){const t=e.attempt(this.parser.constructs.contentInitial,s,l);let r;return t;function s(d){if(d===null){e.consume(d);return}return e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),st(e,t,"linePrefix")}function l(d){return e.enter("paragraph"),o(d)}function o(d){const f=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=f),r=f,c(d)}function c(d){if(d===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(d);return}return ze(d)?(e.consume(d),e.exit("chunkText"),o):(e.consume(d),c)}}const Zw={tokenize:Yw},pm={tokenize:Qw};function Yw(e){const t=this,r=[];let s=0,l,o,c;return d;function d(E){if(s<r.length){const R=r[s];return t.containerState=R[1],e.attempt(R[0].continuation,f,h)(E)}return h(E)}function f(E){if(s++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,l&&L();const R=t.events.length;let P=R,j;for(;P--;)if(t.events[P][0]==="exit"&&t.events[P][1].type==="chunkFlow"){j=t.events[P][1].end;break}S(s);let H=R;for(;H<t.events.length;)t.events[H][1].end={...j},H++;return Vn(t.events,P+1,0,t.events.slice(R)),t.events.length=H,h(E)}return d(E)}function h(E){if(s===r.length){if(!l)return k(E);if(l.currentConstruct&&l.currentConstruct.concrete)return _(E);t.interrupt=!!(l.currentConstruct&&!l._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(pm,g,y)(E)}function g(E){return l&&L(),S(s),k(E)}function y(E){return t.parser.lazy[t.now().line]=s!==r.length,c=t.now().offset,_(E)}function k(E){return t.containerState={},e.attempt(pm,x,_)(E)}function x(E){return s++,r.push([t.currentConstruct,t.containerState]),k(E)}function _(E){if(E===null){l&&L(),S(0),e.consume(E);return}return l=l||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:l,contentType:"flow",previous:o}),T(E)}function T(E){if(E===null){D(e.exit("chunkFlow"),!0),S(0),e.consume(E);return}return ze(E)?(e.consume(E),D(e.exit("chunkFlow")),s=0,t.interrupt=void 0,d):(e.consume(E),T)}function D(E,R){const P=t.sliceStream(E);if(R&&P.push(null),E.previous=o,o&&(o.next=E),o=E,l.defineSkip(E.start),l.write(P),t.parser.lazy[E.start.line]){let j=l.events.length;for(;j--;)if(l.events[j][1].start.offset<c&&(!l.events[j][1].end||l.events[j][1].end.offset>c))return;const H=t.events.length;let Z=H,G,z;for(;Z--;)if(t.events[Z][0]==="exit"&&t.events[Z][1].type==="chunkFlow"){if(G){z=t.events[Z][1].end;break}G=!0}for(S(s),j=H;j<t.events.length;)t.events[j][1].end={...z},j++;Vn(t.events,Z+1,0,t.events.slice(H)),t.events.length=j}}function S(E){let R=r.length;for(;R-- >E;){const P=r[R];t.containerState=P[1],P[0].exit.call(t,e)}r.length=E}function L(){l.write([null]),o=void 0,l=void 0,t.containerState._closeFlow=void 0}}function Qw(e,t,r){return st(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function ps(e){if(e===null||kt(e)||Di(e))return 1;if(pa(e))return 2}function ha(e,t,r){const s=[];let l=-1;for(;++l<e.length;){const o=e[l].resolveAll;o&&!s.includes(o)&&(t=o(t,r),s.push(o))}return t}const Fu={name:"attention",resolveAll:Xw,tokenize:Gw};function Xw(e,t){let r=-1,s,l,o,c,d,f,h,g;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(s=r;s--;)if(e[s][0]==="exit"&&e[s][1].type==="attentionSequence"&&e[s][1]._open&&t.sliceSerialize(e[s][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[s][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[s][1].end.offset-e[s][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;f=e[s][1].end.offset-e[s][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const y={...e[s][1].end},k={...e[r][1].start};hm(y,-f),hm(k,f),c={type:f>1?"strongSequence":"emphasisSequence",start:y,end:{...e[s][1].end}},d={type:f>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:k},o={type:f>1?"strongText":"emphasisText",start:{...e[s][1].end},end:{...e[r][1].start}},l={type:f>1?"strong":"emphasis",start:{...c.start},end:{...d.end}},e[s][1].end={...c.start},e[r][1].start={...d.end},h=[],e[s][1].end.offset-e[s][1].start.offset&&(h=Jn(h,[["enter",e[s][1],t],["exit",e[s][1],t]])),h=Jn(h,[["enter",l,t],["enter",c,t],["exit",c,t],["enter",o,t]]),h=Jn(h,ha(t.parser.constructs.insideSpan.null,e.slice(s+1,r),t)),h=Jn(h,[["exit",o,t],["enter",d,t],["exit",d,t],["exit",l,t]]),e[r][1].end.offset-e[r][1].start.offset?(g=2,h=Jn(h,[["enter",e[r][1],t],["exit",e[r][1],t]])):g=0,Vn(e,s-1,r-s+3,h),r=s+h.length-g-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function Gw(e,t){const r=this.parser.constructs.attentionMarkers.null,s=this.previous,l=ps(s);let o;return c;function c(f){return o=f,e.enter("attentionSequence"),d(f)}function d(f){if(f===o)return e.consume(f),d;const h=e.exit("attentionSequence"),g=ps(f),y=!g||g===2&&l||r.includes(f),k=!l||l===2&&g||r.includes(s);return h._open=!!(o===42?y:y&&(l||!k)),h._close=!!(o===42?k:k&&(g||!y)),t(f)}}function hm(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Jw={name:"autolink",tokenize:e1};function e1(e,t,r){let s=0;return l;function l(x){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(x),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(x){return Sn(x)?(e.consume(x),c):x===64?r(x):h(x)}function c(x){return x===43||x===45||x===46||vn(x)?(s=1,d(x)):h(x)}function d(x){return x===58?(e.consume(x),s=0,f):(x===43||x===45||x===46||vn(x))&&s++<32?(e.consume(x),d):(s=0,h(x))}function f(x){return x===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(x),e.exit("autolinkMarker"),e.exit("autolink"),t):x===null||x===32||x===60||na(x)?r(x):(e.consume(x),f)}function h(x){return x===64?(e.consume(x),g):Uw(x)?(e.consume(x),h):r(x)}function g(x){return vn(x)?y(x):r(x)}function y(x){return x===46?(e.consume(x),s=0,g):x===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(x),e.exit("autolinkMarker"),e.exit("autolink"),t):k(x)}function k(x){if((x===45||vn(x))&&s++<63){const _=x===45?k:y;return e.consume(x),_}return r(x)}}const Nl={partial:!0,tokenize:t1};function t1(e,t,r){return s;function s(o){return nt(o)?st(e,l,"linePrefix")(o):l(o)}function l(o){return o===null||ze(o)?t(o):r(o)}}const Zg={continuation:{tokenize:r1},exit:i1,name:"blockQuote",tokenize:n1};function n1(e,t,r){const s=this;return l;function l(c){if(c===62){const d=s.containerState;return d.open||(e.enter("blockQuote",{_container:!0}),d.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(c),e.exit("blockQuoteMarker"),o}return r(c)}function o(c){return nt(c)?(e.enter("blockQuotePrefixWhitespace"),e.consume(c),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(c))}}function r1(e,t,r){const s=this;return l;function l(c){return nt(c)?st(e,o,"linePrefix",s.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c):o(c)}function o(c){return e.attempt(Zg,t,r)(c)}}function i1(e){e.exit("blockQuote")}const Yg={name:"characterEscape",tokenize:s1};function s1(e,t,r){return s;function s(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),l}function l(o){return Ww(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(o)}}const Qg={name:"characterReference",tokenize:l1};function l1(e,t,r){const s=this;let l=0,o,c;return d;function d(y){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(y),e.exit("characterReferenceMarker"),f}function f(y){return y===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(y),e.exit("characterReferenceMarkerNumeric"),h):(e.enter("characterReferenceValue"),o=31,c=vn,g(y))}function h(y){return y===88||y===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(y),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,c=Hw,g):(e.enter("characterReferenceValue"),o=7,c=Bu,g(y))}function g(y){if(y===59&&l){const k=e.exit("characterReferenceValue");return c===vn&&!xd(s.sliceSerialize(k))?r(y):(e.enter("characterReferenceMarker"),e.consume(y),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return c(y)&&l++<o?(e.consume(y),g):r(y)}}const mm={partial:!0,tokenize:a1},gm={concrete:!0,name:"codeFenced",tokenize:o1};function o1(e,t,r){const s=this,l={partial:!0,tokenize:P};let o=0,c=0,d;return f;function f(j){return h(j)}function h(j){const H=s.events[s.events.length-1];return o=H&&H[1].type==="linePrefix"?H[2].sliceSerialize(H[1],!0).length:0,d=j,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),g(j)}function g(j){return j===d?(c++,e.consume(j),g):c<3?r(j):(e.exit("codeFencedFenceSequence"),nt(j)?st(e,y,"whitespace")(j):y(j))}function y(j){return j===null||ze(j)?(e.exit("codeFencedFence"),s.interrupt?t(j):e.check(mm,T,R)(j)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),k(j))}function k(j){return j===null||ze(j)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),y(j)):nt(j)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),st(e,x,"whitespace")(j)):j===96&&j===d?r(j):(e.consume(j),k)}function x(j){return j===null||ze(j)?y(j):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),_(j))}function _(j){return j===null||ze(j)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),y(j)):j===96&&j===d?r(j):(e.consume(j),_)}function T(j){return e.attempt(l,R,D)(j)}function D(j){return e.enter("lineEnding"),e.consume(j),e.exit("lineEnding"),S}function S(j){return o>0&&nt(j)?st(e,L,"linePrefix",o+1)(j):L(j)}function L(j){return j===null||ze(j)?e.check(mm,T,R)(j):(e.enter("codeFlowValue"),E(j))}function E(j){return j===null||ze(j)?(e.exit("codeFlowValue"),L(j)):(e.consume(j),E)}function R(j){return e.exit("codeFenced"),t(j)}function P(j,H,Z){let G=0;return z;function z(F){return j.enter("lineEnding"),j.consume(F),j.exit("lineEnding"),K}function K(F){return j.enter("codeFencedFence"),nt(F)?st(j,ne,"linePrefix",s.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(F):ne(F)}function ne(F){return F===d?(j.enter("codeFencedFenceSequence"),xe(F)):Z(F)}function xe(F){return F===d?(G++,j.consume(F),xe):G>=c?(j.exit("codeFencedFenceSequence"),nt(F)?st(j,ee,"whitespace")(F):ee(F)):Z(F)}function ee(F){return F===null||ze(F)?(j.exit("codeFencedFence"),H(F)):Z(F)}}}function a1(e,t,r){const s=this;return l;function l(c){return c===null?r(c):(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),o)}function o(c){return s.parser.lazy[s.now().line]?r(c):t(c)}}const fu={name:"codeIndented",tokenize:u1},c1={partial:!0,tokenize:d1};function u1(e,t,r){const s=this;return l;function l(h){return e.enter("codeIndented"),st(e,o,"linePrefix",5)(h)}function o(h){const g=s.events[s.events.length-1];return g&&g[1].type==="linePrefix"&&g[2].sliceSerialize(g[1],!0).length>=4?c(h):r(h)}function c(h){return h===null?f(h):ze(h)?e.attempt(c1,c,f)(h):(e.enter("codeFlowValue"),d(h))}function d(h){return h===null||ze(h)?(e.exit("codeFlowValue"),c(h)):(e.consume(h),d)}function f(h){return e.exit("codeIndented"),t(h)}}function d1(e,t,r){const s=this;return l;function l(c){return s.parser.lazy[s.now().line]?r(c):ze(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),l):st(e,o,"linePrefix",5)(c)}function o(c){const d=s.events[s.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?t(c):ze(c)?l(c):r(c)}}const f1={name:"codeText",previous:h1,resolve:p1,tokenize:m1};function p1(e){let t=e.length-4,r=3,s,l;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(s=r;++s<t;)if(e[s][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[t][1].type="codeTextPadding",r+=2,t-=2;break}}for(s=r-1,t++;++s<=t;)l===void 0?s!==t&&e[s][1].type!=="lineEnding"&&(l=s):(s===t||e[s][1].type==="lineEnding")&&(e[l][1].type="codeTextData",s!==l+2&&(e[l][1].end=e[s-1][1].end,e.splice(l+2,s-l-2),t-=s-l-2,s=l+2),l=void 0);return e}function h1(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function m1(e,t,r){let s=0,l,o;return c;function c(y){return e.enter("codeText"),e.enter("codeTextSequence"),d(y)}function d(y){return y===96?(e.consume(y),s++,d):(e.exit("codeTextSequence"),f(y))}function f(y){return y===null?r(y):y===32?(e.enter("space"),e.consume(y),e.exit("space"),f):y===96?(o=e.enter("codeTextSequence"),l=0,g(y)):ze(y)?(e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),f):(e.enter("codeTextData"),h(y))}function h(y){return y===null||y===32||y===96||ze(y)?(e.exit("codeTextData"),f(y)):(e.consume(y),h)}function g(y){return y===96?(e.consume(y),l++,g):l===s?(e.exit("codeTextSequence"),e.exit("codeText"),t(y)):(o.type="codeTextData",h(y))}}class g1{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,r){const s=r??Number.POSITIVE_INFINITY;return s<this.left.length?this.left.slice(t,s):t>this.left.length?this.right.slice(this.right.length-s+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-s+this.left.length).reverse())}splice(t,r,s){const l=r||0;this.setCursor(Math.trunc(t));const o=this.right.splice(this.right.length-l,Number.POSITIVE_INFINITY);return s&&rl(this.left,s),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),rl(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),rl(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const r=this.left.splice(t,Number.POSITIVE_INFINITY);rl(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);rl(this.left,r.reverse())}}}function rl(e,t){let r=0;if(t.length<1e4)e.push(...t);else for(;r<t.length;)e.push(...t.slice(r,r+1e4)),r+=1e4}function Xg(e){const t={};let r=-1,s,l,o,c,d,f,h;const g=new g1(e);for(;++r<g.length;){for(;r in t;)r=t[r];if(s=g.get(r),r&&s[1].type==="chunkFlow"&&g.get(r-1)[1].type==="listItemPrefix"&&(f=s[1]._tokenizer.events,o=0,o<f.length&&f[o][1].type==="lineEndingBlank"&&(o+=2),o<f.length&&f[o][1].type==="content"))for(;++o<f.length&&f[o][1].type!=="content";)f[o][1].type==="chunkText"&&(f[o][1]._isInFirstContentOfListItem=!0,o++);if(s[0]==="enter")s[1].contentType&&(Object.assign(t,y1(g,r)),r=t[r],h=!0);else if(s[1]._container){for(o=r,l=void 0;o--;)if(c=g.get(o),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank")c[0]==="enter"&&(l&&(g.get(l)[1].type="lineEndingBlank"),c[1].type="lineEnding",l=o);else if(!(c[1].type==="linePrefix"||c[1].type==="listItemIndent"))break;l&&(s[1].end={...g.get(l)[1].start},d=g.slice(l,r),d.unshift(s),g.splice(l,r-l+1,d))}}return Vn(e,0,Number.POSITIVE_INFINITY,g.slice(0)),!h}function y1(e,t){const r=e.get(t)[1],s=e.get(t)[2];let l=t-1;const o=[];let c=r._tokenizer;c||(c=s.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(c._contentTypeTextTrailing=!0));const d=c.events,f=[],h={};let g,y,k=-1,x=r,_=0,T=0;const D=[T];for(;x;){for(;e.get(++l)[1]!==x;);o.push(l),x._tokenizer||(g=s.sliceStream(x),x.next||g.push(null),y&&c.defineSkip(x.start),x._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=!0),c.write(g),x._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=void 0)),y=x,x=x.next}for(x=r;++k<d.length;)d[k][0]==="exit"&&d[k-1][0]==="enter"&&d[k][1].type===d[k-1][1].type&&d[k][1].start.line!==d[k][1].end.line&&(T=k+1,D.push(T),x._tokenizer=void 0,x.previous=void 0,x=x.next);for(c.events=[],x?(x._tokenizer=void 0,x.previous=void 0):D.pop(),k=D.length;k--;){const S=d.slice(D[k],D[k+1]),L=o.pop();f.push([L,L+S.length-1]),e.splice(L,2,S)}for(f.reverse(),k=-1;++k<f.length;)h[_+f[k][0]]=_+f[k][1],_+=f[k][1]-f[k][0]-1;return h}const v1={resolve:k1,tokenize:_1},x1={partial:!0,tokenize:w1};function k1(e){return Xg(e),e}function _1(e,t){let r;return s;function s(d){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),l(d)}function l(d){return d===null?o(d):ze(d)?e.check(x1,c,o)(d):(e.consume(d),l)}function o(d){return e.exit("chunkContent"),e.exit("content"),t(d)}function c(d){return e.consume(d),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,l}}function w1(e,t,r){const s=this;return l;function l(c){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),st(e,o,"linePrefix")}function o(c){if(c===null||ze(c))return r(c);const d=s.events[s.events.length-1];return!s.parser.constructs.disable.null.includes("codeIndented")&&d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?t(c):e.interrupt(s.parser.constructs.flow,r,t)(c)}}function Gg(e,t,r,s,l,o,c,d,f){const h=f||Number.POSITIVE_INFINITY;let g=0;return y;function y(S){return S===60?(e.enter(s),e.enter(l),e.enter(o),e.consume(S),e.exit(o),k):S===null||S===32||S===41||na(S)?r(S):(e.enter(s),e.enter(c),e.enter(d),e.enter("chunkString",{contentType:"string"}),T(S))}function k(S){return S===62?(e.enter(o),e.consume(S),e.exit(o),e.exit(l),e.exit(s),t):(e.enter(d),e.enter("chunkString",{contentType:"string"}),x(S))}function x(S){return S===62?(e.exit("chunkString"),e.exit(d),k(S)):S===null||S===60||ze(S)?r(S):(e.consume(S),S===92?_:x)}function _(S){return S===60||S===62||S===92?(e.consume(S),x):x(S)}function T(S){return!g&&(S===null||S===41||kt(S))?(e.exit("chunkString"),e.exit(d),e.exit(c),e.exit(s),t(S)):g<h&&S===40?(e.consume(S),g++,T):S===41?(e.consume(S),g--,T):S===null||S===32||S===40||na(S)?r(S):(e.consume(S),S===92?D:T)}function D(S){return S===40||S===41||S===92?(e.consume(S),T):T(S)}}function Jg(e,t,r,s,l,o){const c=this;let d=0,f;return h;function h(x){return e.enter(s),e.enter(l),e.consume(x),e.exit(l),e.enter(o),g}function g(x){return d>999||x===null||x===91||x===93&&!f||x===94&&!d&&"_hiddenFootnoteSupport"in c.parser.constructs?r(x):x===93?(e.exit(o),e.enter(l),e.consume(x),e.exit(l),e.exit(s),t):ze(x)?(e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),g):(e.enter("chunkString",{contentType:"string"}),y(x))}function y(x){return x===null||x===91||x===93||ze(x)||d++>999?(e.exit("chunkString"),g(x)):(e.consume(x),f||(f=!nt(x)),x===92?k:y)}function k(x){return x===91||x===92||x===93?(e.consume(x),d++,y):y(x)}}function ey(e,t,r,s,l,o){let c;return d;function d(k){return k===34||k===39||k===40?(e.enter(s),e.enter(l),e.consume(k),e.exit(l),c=k===40?41:k,f):r(k)}function f(k){return k===c?(e.enter(l),e.consume(k),e.exit(l),e.exit(s),t):(e.enter(o),h(k))}function h(k){return k===c?(e.exit(o),f(c)):k===null?r(k):ze(k)?(e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),st(e,h,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),g(k))}function g(k){return k===c||k===null||ze(k)?(e.exit("chunkString"),h(k)):(e.consume(k),k===92?y:g)}function y(k){return k===c||k===92?(e.consume(k),g):g(k)}}function ul(e,t){let r;return s;function s(l){return ze(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),r=!0,s):nt(l)?st(e,s,r?"linePrefix":"lineSuffix")(l):t(l)}}const b1={name:"definition",tokenize:C1},S1={partial:!0,tokenize:N1};function C1(e,t,r){const s=this;let l;return o;function o(x){return e.enter("definition"),c(x)}function c(x){return Jg.call(s,e,d,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(x)}function d(x){return l=dr(s.sliceSerialize(s.events[s.events.length-1][1]).slice(1,-1)),x===58?(e.enter("definitionMarker"),e.consume(x),e.exit("definitionMarker"),f):r(x)}function f(x){return kt(x)?ul(e,h)(x):h(x)}function h(x){return Gg(e,g,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(x)}function g(x){return e.attempt(S1,y,y)(x)}function y(x){return nt(x)?st(e,k,"whitespace")(x):k(x)}function k(x){return x===null||ze(x)?(e.exit("definition"),s.parser.defined.push(l),t(x)):r(x)}}function N1(e,t,r){return s;function s(d){return kt(d)?ul(e,l)(d):r(d)}function l(d){return ey(e,o,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(d)}function o(d){return nt(d)?st(e,c,"whitespace")(d):c(d)}function c(d){return d===null||ze(d)?t(d):r(d)}}const j1={name:"hardBreakEscape",tokenize:E1};function E1(e,t,r){return s;function s(o){return e.enter("hardBreakEscape"),e.consume(o),l}function l(o){return ze(o)?(e.exit("hardBreakEscape"),t(o)):r(o)}}const T1={name:"headingAtx",resolve:I1,tokenize:A1};function I1(e,t){let r=e.length-2,s=3,l,o;return e[s][1].type==="whitespace"&&(s+=2),r-2>s&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(s===r-1||r-4>s&&e[r-2][1].type==="whitespace")&&(r-=s+1===r?2:4),r>s&&(l={type:"atxHeadingText",start:e[s][1].start,end:e[r][1].end},o={type:"chunkText",start:e[s][1].start,end:e[r][1].end,contentType:"text"},Vn(e,s,r-s+1,[["enter",l,t],["enter",o,t],["exit",o,t],["exit",l,t]])),e}function A1(e,t,r){let s=0;return l;function l(g){return e.enter("atxHeading"),o(g)}function o(g){return e.enter("atxHeadingSequence"),c(g)}function c(g){return g===35&&s++<6?(e.consume(g),c):g===null||kt(g)?(e.exit("atxHeadingSequence"),d(g)):r(g)}function d(g){return g===35?(e.enter("atxHeadingSequence"),f(g)):g===null||ze(g)?(e.exit("atxHeading"),t(g)):nt(g)?st(e,d,"whitespace")(g):(e.enter("atxHeadingText"),h(g))}function f(g){return g===35?(e.consume(g),f):(e.exit("atxHeadingSequence"),d(g))}function h(g){return g===null||g===35||kt(g)?(e.exit("atxHeadingText"),d(g)):(e.consume(g),h)}}const D1=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],ym=["pre","script","style","textarea"],R1={concrete:!0,name:"htmlFlow",resolveTo:M1,tokenize:O1},P1={partial:!0,tokenize:$1},L1={partial:!0,tokenize:z1};function M1(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function O1(e,t,r){const s=this;let l,o,c,d,f;return h;function h(C){return g(C)}function g(C){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(C),y}function y(C){return C===33?(e.consume(C),k):C===47?(e.consume(C),o=!0,T):C===63?(e.consume(C),l=3,s.interrupt?t:N):Sn(C)?(e.consume(C),c=String.fromCharCode(C),D):r(C)}function k(C){return C===45?(e.consume(C),l=2,x):C===91?(e.consume(C),l=5,d=0,_):Sn(C)?(e.consume(C),l=4,s.interrupt?t:N):r(C)}function x(C){return C===45?(e.consume(C),s.interrupt?t:N):r(C)}function _(C){const Y="CDATA[";return C===Y.charCodeAt(d++)?(e.consume(C),d===Y.length?s.interrupt?t:ne:_):r(C)}function T(C){return Sn(C)?(e.consume(C),c=String.fromCharCode(C),D):r(C)}function D(C){if(C===null||C===47||C===62||kt(C)){const Y=C===47,ke=c.toLowerCase();return!Y&&!o&&ym.includes(ke)?(l=1,s.interrupt?t(C):ne(C)):D1.includes(c.toLowerCase())?(l=6,Y?(e.consume(C),S):s.interrupt?t(C):ne(C)):(l=7,s.interrupt&&!s.parser.lazy[s.now().line]?r(C):o?L(C):E(C))}return C===45||vn(C)?(e.consume(C),c+=String.fromCharCode(C),D):r(C)}function S(C){return C===62?(e.consume(C),s.interrupt?t:ne):r(C)}function L(C){return nt(C)?(e.consume(C),L):z(C)}function E(C){return C===47?(e.consume(C),z):C===58||C===95||Sn(C)?(e.consume(C),R):nt(C)?(e.consume(C),E):z(C)}function R(C){return C===45||C===46||C===58||C===95||vn(C)?(e.consume(C),R):P(C)}function P(C){return C===61?(e.consume(C),j):nt(C)?(e.consume(C),P):E(C)}function j(C){return C===null||C===60||C===61||C===62||C===96?r(C):C===34||C===39?(e.consume(C),f=C,H):nt(C)?(e.consume(C),j):Z(C)}function H(C){return C===f?(e.consume(C),f=null,G):C===null||ze(C)?r(C):(e.consume(C),H)}function Z(C){return C===null||C===34||C===39||C===47||C===60||C===61||C===62||C===96||kt(C)?P(C):(e.consume(C),Z)}function G(C){return C===47||C===62||nt(C)?E(C):r(C)}function z(C){return C===62?(e.consume(C),K):r(C)}function K(C){return C===null||ze(C)?ne(C):nt(C)?(e.consume(C),K):r(C)}function ne(C){return C===45&&l===2?(e.consume(C),ge):C===60&&l===1?(e.consume(C),he):C===62&&l===4?(e.consume(C),I):C===63&&l===3?(e.consume(C),N):C===93&&l===5?(e.consume(C),fe):ze(C)&&(l===6||l===7)?(e.exit("htmlFlowData"),e.check(P1,V,xe)(C)):C===null||ze(C)?(e.exit("htmlFlowData"),xe(C)):(e.consume(C),ne)}function xe(C){return e.check(L1,ee,V)(C)}function ee(C){return e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),F}function F(C){return C===null||ze(C)?xe(C):(e.enter("htmlFlowData"),ne(C))}function ge(C){return C===45?(e.consume(C),N):ne(C)}function he(C){return C===47?(e.consume(C),c="",J):ne(C)}function J(C){if(C===62){const Y=c.toLowerCase();return ym.includes(Y)?(e.consume(C),I):ne(C)}return Sn(C)&&c.length<8?(e.consume(C),c+=String.fromCharCode(C),J):ne(C)}function fe(C){return C===93?(e.consume(C),N):ne(C)}function N(C){return C===62?(e.consume(C),I):C===45&&l===2?(e.consume(C),N):ne(C)}function I(C){return C===null||ze(C)?(e.exit("htmlFlowData"),V(C)):(e.consume(C),I)}function V(C){return e.exit("htmlFlow"),t(C)}}function z1(e,t,r){const s=this;return l;function l(c){return ze(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),o):r(c)}function o(c){return s.parser.lazy[s.now().line]?r(c):t(c)}}function $1(e,t,r){return s;function s(l){return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),e.attempt(Nl,t,r)}}const B1={name:"htmlText",tokenize:F1};function F1(e,t,r){const s=this;let l,o,c;return d;function d(N){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(N),f}function f(N){return N===33?(e.consume(N),h):N===47?(e.consume(N),P):N===63?(e.consume(N),E):Sn(N)?(e.consume(N),Z):r(N)}function h(N){return N===45?(e.consume(N),g):N===91?(e.consume(N),o=0,_):Sn(N)?(e.consume(N),L):r(N)}function g(N){return N===45?(e.consume(N),x):r(N)}function y(N){return N===null?r(N):N===45?(e.consume(N),k):ze(N)?(c=y,he(N)):(e.consume(N),y)}function k(N){return N===45?(e.consume(N),x):y(N)}function x(N){return N===62?ge(N):N===45?k(N):y(N)}function _(N){const I="CDATA[";return N===I.charCodeAt(o++)?(e.consume(N),o===I.length?T:_):r(N)}function T(N){return N===null?r(N):N===93?(e.consume(N),D):ze(N)?(c=T,he(N)):(e.consume(N),T)}function D(N){return N===93?(e.consume(N),S):T(N)}function S(N){return N===62?ge(N):N===93?(e.consume(N),S):T(N)}function L(N){return N===null||N===62?ge(N):ze(N)?(c=L,he(N)):(e.consume(N),L)}function E(N){return N===null?r(N):N===63?(e.consume(N),R):ze(N)?(c=E,he(N)):(e.consume(N),E)}function R(N){return N===62?ge(N):E(N)}function P(N){return Sn(N)?(e.consume(N),j):r(N)}function j(N){return N===45||vn(N)?(e.consume(N),j):H(N)}function H(N){return ze(N)?(c=H,he(N)):nt(N)?(e.consume(N),H):ge(N)}function Z(N){return N===45||vn(N)?(e.consume(N),Z):N===47||N===62||kt(N)?G(N):r(N)}function G(N){return N===47?(e.consume(N),ge):N===58||N===95||Sn(N)?(e.consume(N),z):ze(N)?(c=G,he(N)):nt(N)?(e.consume(N),G):ge(N)}function z(N){return N===45||N===46||N===58||N===95||vn(N)?(e.consume(N),z):K(N)}function K(N){return N===61?(e.consume(N),ne):ze(N)?(c=K,he(N)):nt(N)?(e.consume(N),K):G(N)}function ne(N){return N===null||N===60||N===61||N===62||N===96?r(N):N===34||N===39?(e.consume(N),l=N,xe):ze(N)?(c=ne,he(N)):nt(N)?(e.consume(N),ne):(e.consume(N),ee)}function xe(N){return N===l?(e.consume(N),l=void 0,F):N===null?r(N):ze(N)?(c=xe,he(N)):(e.consume(N),xe)}function ee(N){return N===null||N===34||N===39||N===60||N===61||N===96?r(N):N===47||N===62||kt(N)?G(N):(e.consume(N),ee)}function F(N){return N===47||N===62||kt(N)?G(N):r(N)}function ge(N){return N===62?(e.consume(N),e.exit("htmlTextData"),e.exit("htmlText"),t):r(N)}function he(N){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),J}function J(N){return nt(N)?st(e,fe,"linePrefix",s.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(N):fe(N)}function fe(N){return e.enter("htmlTextData"),c(N)}}const kd={name:"labelEnd",resolveAll:W1,resolveTo:q1,tokenize:K1},V1={tokenize:Z1},U1={tokenize:Y1},H1={tokenize:Q1};function W1(e){let t=-1;const r=[];for(;++t<e.length;){const s=e[t][1];if(r.push(e[t]),s.type==="labelImage"||s.type==="labelLink"||s.type==="labelEnd"){const l=s.type==="labelImage"?4:2;s.type="data",t+=l}}return e.length!==r.length&&Vn(e,0,e.length,r),e}function q1(e,t){let r=e.length,s=0,l,o,c,d;for(;r--;)if(l=e[r][1],o){if(l.type==="link"||l.type==="labelLink"&&l._inactive)break;e[r][0]==="enter"&&l.type==="labelLink"&&(l._inactive=!0)}else if(c){if(e[r][0]==="enter"&&(l.type==="labelImage"||l.type==="labelLink")&&!l._balanced&&(o=r,l.type!=="labelLink")){s=2;break}}else l.type==="labelEnd"&&(c=r);const f={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},h={type:"label",start:{...e[o][1].start},end:{...e[c][1].end}},g={type:"labelText",start:{...e[o+s+2][1].end},end:{...e[c-2][1].start}};return d=[["enter",f,t],["enter",h,t]],d=Jn(d,e.slice(o+1,o+s+3)),d=Jn(d,[["enter",g,t]]),d=Jn(d,ha(t.parser.constructs.insideSpan.null,e.slice(o+s+4,c-3),t)),d=Jn(d,[["exit",g,t],e[c-2],e[c-1],["exit",h,t]]),d=Jn(d,e.slice(c+1)),d=Jn(d,[["exit",f,t]]),Vn(e,o,e.length,d),e}function K1(e,t,r){const s=this;let l=s.events.length,o,c;for(;l--;)if((s.events[l][1].type==="labelImage"||s.events[l][1].type==="labelLink")&&!s.events[l][1]._balanced){o=s.events[l][1];break}return d;function d(k){return o?o._inactive?y(k):(c=s.parser.defined.includes(dr(s.sliceSerialize({start:o.end,end:s.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(k),e.exit("labelMarker"),e.exit("labelEnd"),f):r(k)}function f(k){return k===40?e.attempt(V1,g,c?g:y)(k):k===91?e.attempt(U1,g,c?h:y)(k):c?g(k):y(k)}function h(k){return e.attempt(H1,g,y)(k)}function g(k){return t(k)}function y(k){return o._balanced=!0,r(k)}}function Z1(e,t,r){return s;function s(y){return e.enter("resource"),e.enter("resourceMarker"),e.consume(y),e.exit("resourceMarker"),l}function l(y){return kt(y)?ul(e,o)(y):o(y)}function o(y){return y===41?g(y):Gg(e,c,d,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(y)}function c(y){return kt(y)?ul(e,f)(y):g(y)}function d(y){return r(y)}function f(y){return y===34||y===39||y===40?ey(e,h,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(y):g(y)}function h(y){return kt(y)?ul(e,g)(y):g(y)}function g(y){return y===41?(e.enter("resourceMarker"),e.consume(y),e.exit("resourceMarker"),e.exit("resource"),t):r(y)}}function Y1(e,t,r){const s=this;return l;function l(d){return Jg.call(s,e,o,c,"reference","referenceMarker","referenceString")(d)}function o(d){return s.parser.defined.includes(dr(s.sliceSerialize(s.events[s.events.length-1][1]).slice(1,-1)))?t(d):r(d)}function c(d){return r(d)}}function Q1(e,t,r){return s;function s(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),l}function l(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):r(o)}}const X1={name:"labelStartImage",resolveAll:kd.resolveAll,tokenize:G1};function G1(e,t,r){const s=this;return l;function l(d){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(d),e.exit("labelImageMarker"),o}function o(d){return d===91?(e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelImage"),c):r(d)}function c(d){return d===94&&"_hiddenFootnoteSupport"in s.parser.constructs?r(d):t(d)}}const J1={name:"labelStartLink",resolveAll:kd.resolveAll,tokenize:eb};function eb(e,t,r){const s=this;return l;function l(c){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelLink"),o}function o(c){return c===94&&"_hiddenFootnoteSupport"in s.parser.constructs?r(c):t(c)}}const pu={name:"lineEnding",tokenize:tb};function tb(e,t){return r;function r(s){return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),st(e,t,"linePrefix")}}const Ko={name:"thematicBreak",tokenize:nb};function nb(e,t,r){let s=0,l;return o;function o(h){return e.enter("thematicBreak"),c(h)}function c(h){return l=h,d(h)}function d(h){return h===l?(e.enter("thematicBreakSequence"),f(h)):s>=3&&(h===null||ze(h))?(e.exit("thematicBreak"),t(h)):r(h)}function f(h){return h===l?(e.consume(h),s++,f):(e.exit("thematicBreakSequence"),nt(h)?st(e,d,"whitespace")(h):d(h))}}const Rn={continuation:{tokenize:lb},exit:ab,name:"list",tokenize:sb},rb={partial:!0,tokenize:cb},ib={partial:!0,tokenize:ob};function sb(e,t,r){const s=this,l=s.events[s.events.length-1];let o=l&&l[1].type==="linePrefix"?l[2].sliceSerialize(l[1],!0).length:0,c=0;return d;function d(x){const _=s.containerState.type||(x===42||x===43||x===45?"listUnordered":"listOrdered");if(_==="listUnordered"?!s.containerState.marker||x===s.containerState.marker:Bu(x)){if(s.containerState.type||(s.containerState.type=_,e.enter(_,{_container:!0})),_==="listUnordered")return e.enter("listItemPrefix"),x===42||x===45?e.check(Ko,r,h)(x):h(x);if(!s.interrupt||x===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),f(x)}return r(x)}function f(x){return Bu(x)&&++c<10?(e.consume(x),f):(!s.interrupt||c<2)&&(s.containerState.marker?x===s.containerState.marker:x===41||x===46)?(e.exit("listItemValue"),h(x)):r(x)}function h(x){return e.enter("listItemMarker"),e.consume(x),e.exit("listItemMarker"),s.containerState.marker=s.containerState.marker||x,e.check(Nl,s.interrupt?r:g,e.attempt(rb,k,y))}function g(x){return s.containerState.initialBlankLine=!0,o++,k(x)}function y(x){return nt(x)?(e.enter("listItemPrefixWhitespace"),e.consume(x),e.exit("listItemPrefixWhitespace"),k):r(x)}function k(x){return s.containerState.size=o+s.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(x)}}function lb(e,t,r){const s=this;return s.containerState._closeFlow=void 0,e.check(Nl,l,o);function l(d){return s.containerState.furtherBlankLines=s.containerState.furtherBlankLines||s.containerState.initialBlankLine,st(e,t,"listItemIndent",s.containerState.size+1)(d)}function o(d){return s.containerState.furtherBlankLines||!nt(d)?(s.containerState.furtherBlankLines=void 0,s.containerState.initialBlankLine=void 0,c(d)):(s.containerState.furtherBlankLines=void 0,s.containerState.initialBlankLine=void 0,e.attempt(ib,t,c)(d))}function c(d){return s.containerState._closeFlow=!0,s.interrupt=void 0,st(e,e.attempt(Rn,t,r),"linePrefix",s.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d)}}function ob(e,t,r){const s=this;return st(e,l,"listItemIndent",s.containerState.size+1);function l(o){const c=s.events[s.events.length-1];return c&&c[1].type==="listItemIndent"&&c[2].sliceSerialize(c[1],!0).length===s.containerState.size?t(o):r(o)}}function ab(e){e.exit(this.containerState.type)}function cb(e,t,r){const s=this;return st(e,l,"listItemPrefixWhitespace",s.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function l(o){const c=s.events[s.events.length-1];return!nt(o)&&c&&c[1].type==="listItemPrefixWhitespace"?t(o):r(o)}}const vm={name:"setextUnderline",resolveTo:ub,tokenize:db};function ub(e,t){let r=e.length,s,l,o;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){s=r;break}e[r][1].type==="paragraph"&&(l=r)}else e[r][1].type==="content"&&e.splice(r,1),!o&&e[r][1].type==="definition"&&(o=r);const c={type:"setextHeading",start:{...e[s][1].start},end:{...e[e.length-1][1].end}};return e[l][1].type="setextHeadingText",o?(e.splice(l,0,["enter",c,t]),e.splice(o+1,0,["exit",e[s][1],t]),e[s][1].end={...e[o][1].end}):e[s][1]=c,e.push(["exit",c,t]),e}function db(e,t,r){const s=this;let l;return o;function o(h){let g=s.events.length,y;for(;g--;)if(s.events[g][1].type!=="lineEnding"&&s.events[g][1].type!=="linePrefix"&&s.events[g][1].type!=="content"){y=s.events[g][1].type==="paragraph";break}return!s.parser.lazy[s.now().line]&&(s.interrupt||y)?(e.enter("setextHeadingLine"),l=h,c(h)):r(h)}function c(h){return e.enter("setextHeadingLineSequence"),d(h)}function d(h){return h===l?(e.consume(h),d):(e.exit("setextHeadingLineSequence"),nt(h)?st(e,f,"lineSuffix")(h):f(h))}function f(h){return h===null||ze(h)?(e.exit("setextHeadingLine"),t(h)):r(h)}}const fb={tokenize:pb};function pb(e){const t=this,r=e.attempt(Nl,s,e.attempt(this.parser.constructs.flowInitial,l,st(e,e.attempt(this.parser.constructs.flow,l,e.attempt(v1,l)),"linePrefix")));return r;function s(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function l(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,r}}const hb={resolveAll:ny()},mb=ty("string"),gb=ty("text");function ty(e){return{resolveAll:ny(e==="text"?yb:void 0),tokenize:t};function t(r){const s=this,l=this.parser.constructs[e],o=r.attempt(l,c,d);return c;function c(g){return h(g)?o(g):d(g)}function d(g){if(g===null){r.consume(g);return}return r.enter("data"),r.consume(g),f}function f(g){return h(g)?(r.exit("data"),o(g)):(r.consume(g),f)}function h(g){if(g===null)return!0;const y=l[g];let k=-1;if(y)for(;++k<y.length;){const x=y[k];if(!x.previous||x.previous.call(s,s.previous))return!0}return!1}}}function ny(e){return t;function t(r,s){let l=-1,o;for(;++l<=r.length;)o===void 0?r[l]&&r[l][1].type==="data"&&(o=l,l++):(!r[l]||r[l][1].type!=="data")&&(l!==o+2&&(r[o][1].end=r[l-1][1].end,r.splice(o+2,l-o-2),l=o+2),o=void 0);return e?e(r,s):r}}function yb(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){const s=e[r-1][1],l=t.sliceStream(s);let o=l.length,c=-1,d=0,f;for(;o--;){const h=l[o];if(typeof h=="string"){for(c=h.length;h.charCodeAt(c-1)===32;)d++,c--;if(c)break;c=-1}else if(h===-2)f=!0,d++;else if(h!==-1){o++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(d=0),d){const h={type:r===e.length||f||d<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?c:s.start._bufferIndex+c,_index:s.start._index+o,line:s.end.line,column:s.end.column-d,offset:s.end.offset-d},end:{...s.end}};s.end={...h.start},s.start.offset===s.end.offset?Object.assign(s,h):(e.splice(r,0,["enter",h,t],["exit",h,t]),r+=2)}r++}return e}const vb={42:Rn,43:Rn,45:Rn,48:Rn,49:Rn,50:Rn,51:Rn,52:Rn,53:Rn,54:Rn,55:Rn,56:Rn,57:Rn,62:Zg},xb={91:b1},kb={[-2]:fu,[-1]:fu,32:fu},_b={35:T1,42:Ko,45:[vm,Ko],60:R1,61:vm,95:Ko,96:gm,126:gm},wb={38:Qg,92:Yg},bb={[-5]:pu,[-4]:pu,[-3]:pu,33:X1,38:Qg,42:Fu,60:[Jw,B1],91:J1,92:[j1,Yg],93:kd,95:Fu,96:f1},Sb={null:[Fu,hb]},Cb={null:[42,95]},Nb={null:[]},jb=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Cb,contentInitial:xb,disable:Nb,document:vb,flow:_b,flowInitial:kb,insideSpan:Sb,string:wb,text:bb},Symbol.toStringTag,{value:"Module"}));function Eb(e,t,r){let s={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const l={},o=[];let c=[],d=[];const f={attempt:H(P),check:H(j),consume:L,enter:E,exit:R,interrupt:H(j,{interrupt:!0})},h={code:null,containerState:{},defineSkip:T,events:[],now:_,parser:e,previous:null,sliceSerialize:k,sliceStream:x,write:y};let g=t.tokenize.call(h,f);return t.resolveAll&&o.push(t),h;function y(K){return c=Jn(c,K),D(),c[c.length-1]!==null?[]:(Z(t,0),h.events=ha(o,h.events,h),h.events)}function k(K,ne){return Ib(x(K),ne)}function x(K){return Tb(c,K)}function _(){const{_bufferIndex:K,_index:ne,line:xe,column:ee,offset:F}=s;return{_bufferIndex:K,_index:ne,line:xe,column:ee,offset:F}}function T(K){l[K.line]=K.column,z()}function D(){let K;for(;s._index<c.length;){const ne=c[s._index];if(typeof ne=="string")for(K=s._index,s._bufferIndex<0&&(s._bufferIndex=0);s._index===K&&s._bufferIndex<ne.length;)S(ne.charCodeAt(s._bufferIndex));else S(ne)}}function S(K){g=g(K)}function L(K){ze(K)?(s.line++,s.column=1,s.offset+=K===-3?2:1,z()):K!==-1&&(s.column++,s.offset++),s._bufferIndex<0?s._index++:(s._bufferIndex++,s._bufferIndex===c[s._index].length&&(s._bufferIndex=-1,s._index++)),h.previous=K}function E(K,ne){const xe=ne||{};return xe.type=K,xe.start=_(),h.events.push(["enter",xe,h]),d.push(xe),xe}function R(K){const ne=d.pop();return ne.end=_(),h.events.push(["exit",ne,h]),ne}function P(K,ne){Z(K,ne.from)}function j(K,ne){ne.restore()}function H(K,ne){return xe;function xe(ee,F,ge){let he,J,fe,N;return Array.isArray(ee)?V(ee):"tokenize"in ee?V([ee]):I(ee);function I(ye){return Be;function Be(Fe){const Ve=Fe!==null&&ye[Fe],Ze=Fe!==null&&ye.null,dt=[...Array.isArray(Ve)?Ve:Ve?[Ve]:[],...Array.isArray(Ze)?Ze:Ze?[Ze]:[]];return V(dt)(Fe)}}function V(ye){return he=ye,J=0,ye.length===0?ge:C(ye[J])}function C(ye){return Be;function Be(Fe){return N=G(),fe=ye,ye.partial||(h.currentConstruct=ye),ye.name&&h.parser.constructs.disable.null.includes(ye.name)?ke():ye.tokenize.call(ne?Object.assign(Object.create(h),ne):h,f,Y,ke)(Fe)}}function Y(ye){return K(fe,N),F}function ke(ye){return N.restore(),++J<he.length?C(he[J]):ge}}}function Z(K,ne){K.resolveAll&&!o.includes(K)&&o.push(K),K.resolve&&Vn(h.events,ne,h.events.length-ne,K.resolve(h.events.slice(ne),h)),K.resolveTo&&(h.events=K.resolveTo(h.events,h))}function G(){const K=_(),ne=h.previous,xe=h.currentConstruct,ee=h.events.length,F=Array.from(d);return{from:ee,restore:ge};function ge(){s=K,h.previous=ne,h.currentConstruct=xe,h.events.length=ee,d=F,z()}}function z(){s.line in l&&s.column<2&&(s.column=l[s.line],s.offset+=l[s.line]-1)}}function Tb(e,t){const r=t.start._index,s=t.start._bufferIndex,l=t.end._index,o=t.end._bufferIndex;let c;if(r===l)c=[e[r].slice(s,o)];else{if(c=e.slice(r,l),s>-1){const d=c[0];typeof d=="string"?c[0]=d.slice(s):c.shift()}o>0&&c.push(e[l].slice(0,o))}return c}function Ib(e,t){let r=-1;const s=[];let l;for(;++r<e.length;){const o=e[r];let c;if(typeof o=="string")c=o;else switch(o){case-5:{c="\r";break}case-4:{c=`
|
|
42
|
-
`;break}case-3:{c=`\r
|
|
43
|
-
`;break}case-2:{c=t?" ":" ";break}case-1:{if(!t&&l)continue;c=" ";break}default:c=String.fromCharCode(o)}l=o===-2,s.push(c)}return s.join("")}function Ab(e){const s={constructs:qg([jb,...(e||{}).extensions||[]]),content:l(qw),defined:[],document:l(Zw),flow:l(fb),lazy:{},string:l(mb),text:l(gb)};return s;function l(o){return c;function c(d){return Eb(s,o,d)}}}function Db(e){for(;!Xg(e););return e}const xm=/[\0\t\n\r]/g;function Rb(){let e=1,t="",r=!0,s;return l;function l(o,c,d){const f=[];let h,g,y,k,x;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(c||void 0).decode(o)),y=0,t="",r&&(o.charCodeAt(0)===65279&&y++,r=void 0);y<o.length;){if(xm.lastIndex=y,h=xm.exec(o),k=h&&h.index!==void 0?h.index:o.length,x=o.charCodeAt(k),!h){t=o.slice(y);break}if(x===10&&y===k&&s)f.push(-3),s=void 0;else switch(s&&(f.push(-5),s=void 0),y<k&&(f.push(o.slice(y,k)),e+=k-y),x){case 0:{f.push(65533),e++;break}case 9:{for(g=Math.ceil(e/4)*4,f.push(-2);e++<g;)f.push(-1);break}case 10:{f.push(-4),e=1;break}default:s=!0,e=1}y=k+1}return d&&(s&&f.push(-5),t&&f.push(t),f.push(null)),f}}const Pb=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Lb(e){return e.replace(Pb,Mb)}function Mb(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){const l=r.charCodeAt(1),o=l===120||l===88;return Kg(r.slice(o?2:1),o?16:10)}return xd(r)||e}const ry={}.hasOwnProperty;function Ob(e,t,r){return t&&typeof t=="object"&&(r=t,t=void 0),zb(r)(Db(Ab(r).document().write(Rb()(e,t,!0))))}function zb(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(Qt),autolinkProtocol:G,autolinkEmail:G,atxHeading:o(Yt),blockQuote:o(Ze),characterEscape:G,characterReference:G,codeFenced:o(dt),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:o(dt,c),codeText:o(_t,c),codeTextData:G,data:G,codeFlowValue:G,definition:o(Zt),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:o(pt),hardBreakEscape:o(It),hardBreakTrailing:o(It),htmlFlow:o(kn,c),htmlFlowData:G,htmlText:o(kn,c),htmlTextData:G,image:o(Cn),label:c,link:o(Qt),listItem:o(pe),listItemValue:k,listOrdered:o(le,y),listUnordered:o(le),paragraph:o(ve),reference:C,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:o(Yt),strong:o(Re),thematicBreak:o(Ye)},exit:{atxHeading:f(),atxHeadingSequence:P,autolink:f(),autolinkEmail:Ve,autolinkProtocol:Fe,blockQuote:f(),characterEscapeValue:z,characterReferenceMarkerHexadecimal:ke,characterReferenceMarkerNumeric:ke,characterReferenceValue:ye,characterReference:Be,codeFenced:f(D),codeFencedFence:T,codeFencedFenceInfo:x,codeFencedFenceMeta:_,codeFlowValue:z,codeIndented:f(S),codeText:f(F),codeTextData:z,data:z,definition:f(),definitionDestinationString:R,definitionLabelString:L,definitionTitleString:E,emphasis:f(),hardBreakEscape:f(ne),hardBreakTrailing:f(ne),htmlFlow:f(xe),htmlFlowData:z,htmlText:f(ee),htmlTextData:z,image:f(he),label:fe,labelText:J,lineEnding:K,link:f(ge),listItem:f(),listOrdered:f(),listUnordered:f(),paragraph:f(),referenceString:Y,resourceDestinationString:N,resourceTitleString:I,resource:V,setextHeading:f(Z),setextHeadingLineSequence:H,setextHeadingText:j,strong:f(),thematicBreak:f()}};iy(t,(e||{}).mdastExtensions||[]);const r={};return s;function s(q){let ie={type:"root",children:[]};const Ie={stack:[ie],tokenStack:[],config:t,enter:d,exit:h,buffer:c,resume:g,data:r},Ue=[];let W=-1;for(;++W<q.length;)if(q[W][1].type==="listOrdered"||q[W][1].type==="listUnordered")if(q[W][0]==="enter")Ue.push(W);else{const X=Ue.pop();W=l(q,X,W)}for(W=-1;++W<q.length;){const X=t[q[W][0]];ry.call(X,q[W][1].type)&&X[q[W][1].type].call(Object.assign({sliceSerialize:q[W][2].sliceSerialize},Ie),q[W][1])}if(Ie.tokenStack.length>0){const X=Ie.tokenStack[Ie.tokenStack.length-1];(X[1]||km).call(Ie,void 0,X[0])}for(ie.position={start:ni(q.length>0?q[0][1].start:{line:1,column:1,offset:0}),end:ni(q.length>0?q[q.length-2][1].end:{line:1,column:1,offset:0})},W=-1;++W<t.transforms.length;)ie=t.transforms[W](ie)||ie;return ie}function l(q,ie,Ie){let Ue=ie-1,W=-1,X=!1,je,$e,Mt,Ht;for(;++Ue<=Ie;){const ht=q[Ue];switch(ht[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ht[0]==="enter"?W++:W--,Ht=void 0;break}case"lineEndingBlank":{ht[0]==="enter"&&(je&&!Ht&&!W&&!Mt&&(Mt=Ue),Ht=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Ht=void 0}if(!W&&ht[0]==="enter"&&ht[1].type==="listItemPrefix"||W===-1&&ht[0]==="exit"&&(ht[1].type==="listUnordered"||ht[1].type==="listOrdered")){if(je){let Ot=Ue;for($e=void 0;Ot--;){const Q=q[Ot];if(Q[1].type==="lineEnding"||Q[1].type==="lineEndingBlank"){if(Q[0]==="exit")continue;$e&&(q[$e][1].type="lineEndingBlank",X=!0),Q[1].type="lineEnding",$e=Ot}else if(!(Q[1].type==="linePrefix"||Q[1].type==="blockQuotePrefix"||Q[1].type==="blockQuotePrefixWhitespace"||Q[1].type==="blockQuoteMarker"||Q[1].type==="listItemIndent"))break}Mt&&(!$e||Mt<$e)&&(je._spread=!0),je.end=Object.assign({},$e?q[$e][1].start:ht[1].end),q.splice($e||Ue,0,["exit",je,ht[2]]),Ue++,Ie++}if(ht[1].type==="listItemPrefix"){const Ot={type:"listItem",_spread:!1,start:Object.assign({},ht[1].start),end:void 0};je=Ot,q.splice(Ue,0,["enter",Ot,ht[2]]),Ue++,Ie++,Mt=void 0,Ht=!0}}}return q[ie][1]._spread=X,Ie}function o(q,ie){return Ie;function Ie(Ue){d.call(this,q(Ue),Ue),ie&&ie.call(this,Ue)}}function c(){this.stack.push({type:"fragment",children:[]})}function d(q,ie,Ie){this.stack[this.stack.length-1].children.push(q),this.stack.push(q),this.tokenStack.push([ie,Ie||void 0]),q.position={start:ni(ie.start),end:void 0}}function f(q){return ie;function ie(Ie){q&&q.call(this,Ie),h.call(this,Ie)}}function h(q,ie){const Ie=this.stack.pop(),Ue=this.tokenStack.pop();if(Ue)Ue[0].type!==q.type&&(ie?ie.call(this,q,Ue[0]):(Ue[1]||km).call(this,q,Ue[0]));else throw new Error("Cannot close `"+q.type+"` ("+cl({start:q.start,end:q.end})+"): it’s not open");Ie.position.end=ni(q.end)}function g(){return vd(this.stack.pop())}function y(){this.data.expectingFirstListItemValue=!0}function k(q){if(this.data.expectingFirstListItemValue){const ie=this.stack[this.stack.length-2];ie.start=Number.parseInt(this.sliceSerialize(q),10),this.data.expectingFirstListItemValue=void 0}}function x(){const q=this.resume(),ie=this.stack[this.stack.length-1];ie.lang=q}function _(){const q=this.resume(),ie=this.stack[this.stack.length-1];ie.meta=q}function T(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function D(){const q=this.resume(),ie=this.stack[this.stack.length-1];ie.value=q.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function S(){const q=this.resume(),ie=this.stack[this.stack.length-1];ie.value=q.replace(/(\r?\n|\r)$/g,"")}function L(q){const ie=this.resume(),Ie=this.stack[this.stack.length-1];Ie.label=ie,Ie.identifier=dr(this.sliceSerialize(q)).toLowerCase()}function E(){const q=this.resume(),ie=this.stack[this.stack.length-1];ie.title=q}function R(){const q=this.resume(),ie=this.stack[this.stack.length-1];ie.url=q}function P(q){const ie=this.stack[this.stack.length-1];if(!ie.depth){const Ie=this.sliceSerialize(q).length;ie.depth=Ie}}function j(){this.data.setextHeadingSlurpLineEnding=!0}function H(q){const ie=this.stack[this.stack.length-1];ie.depth=this.sliceSerialize(q).codePointAt(0)===61?1:2}function Z(){this.data.setextHeadingSlurpLineEnding=void 0}function G(q){const Ie=this.stack[this.stack.length-1].children;let Ue=Ie[Ie.length-1];(!Ue||Ue.type!=="text")&&(Ue=me(),Ue.position={start:ni(q.start),end:void 0},Ie.push(Ue)),this.stack.push(Ue)}function z(q){const ie=this.stack.pop();ie.value+=this.sliceSerialize(q),ie.position.end=ni(q.end)}function K(q){const ie=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Ie=ie.children[ie.children.length-1];Ie.position.end=ni(q.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(ie.type)&&(G.call(this,q),z.call(this,q))}function ne(){this.data.atHardBreak=!0}function xe(){const q=this.resume(),ie=this.stack[this.stack.length-1];ie.value=q}function ee(){const q=this.resume(),ie=this.stack[this.stack.length-1];ie.value=q}function F(){const q=this.resume(),ie=this.stack[this.stack.length-1];ie.value=q}function ge(){const q=this.stack[this.stack.length-1];if(this.data.inReference){const ie=this.data.referenceType||"shortcut";q.type+="Reference",q.referenceType=ie,delete q.url,delete q.title}else delete q.identifier,delete q.label;this.data.referenceType=void 0}function he(){const q=this.stack[this.stack.length-1];if(this.data.inReference){const ie=this.data.referenceType||"shortcut";q.type+="Reference",q.referenceType=ie,delete q.url,delete q.title}else delete q.identifier,delete q.label;this.data.referenceType=void 0}function J(q){const ie=this.sliceSerialize(q),Ie=this.stack[this.stack.length-2];Ie.label=Lb(ie),Ie.identifier=dr(ie).toLowerCase()}function fe(){const q=this.stack[this.stack.length-1],ie=this.resume(),Ie=this.stack[this.stack.length-1];if(this.data.inReference=!0,Ie.type==="link"){const Ue=q.children;Ie.children=Ue}else Ie.alt=ie}function N(){const q=this.resume(),ie=this.stack[this.stack.length-1];ie.url=q}function I(){const q=this.resume(),ie=this.stack[this.stack.length-1];ie.title=q}function V(){this.data.inReference=void 0}function C(){this.data.referenceType="collapsed"}function Y(q){const ie=this.resume(),Ie=this.stack[this.stack.length-1];Ie.label=ie,Ie.identifier=dr(this.sliceSerialize(q)).toLowerCase(),this.data.referenceType="full"}function ke(q){this.data.characterReferenceType=q.type}function ye(q){const ie=this.sliceSerialize(q),Ie=this.data.characterReferenceType;let Ue;Ie?(Ue=Kg(ie,Ie==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Ue=xd(ie);const W=this.stack[this.stack.length-1];W.value+=Ue}function Be(q){const ie=this.stack.pop();ie.position.end=ni(q.end)}function Fe(q){z.call(this,q);const ie=this.stack[this.stack.length-1];ie.url=this.sliceSerialize(q)}function Ve(q){z.call(this,q);const ie=this.stack[this.stack.length-1];ie.url="mailto:"+this.sliceSerialize(q)}function Ze(){return{type:"blockquote",children:[]}}function dt(){return{type:"code",lang:null,meta:null,value:""}}function _t(){return{type:"inlineCode",value:""}}function Zt(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function pt(){return{type:"emphasis",children:[]}}function Yt(){return{type:"heading",depth:0,children:[]}}function It(){return{type:"break"}}function kn(){return{type:"html",value:""}}function Cn(){return{type:"image",title:null,url:"",alt:null}}function Qt(){return{type:"link",title:null,url:"",children:[]}}function le(q){return{type:"list",ordered:q.type==="listOrdered",start:null,spread:q._spread,children:[]}}function pe(q){return{type:"listItem",spread:q._spread,checked:null,children:[]}}function ve(){return{type:"paragraph",children:[]}}function Re(){return{type:"strong",children:[]}}function me(){return{type:"text",value:""}}function Ye(){return{type:"thematicBreak"}}}function ni(e){return{line:e.line,column:e.column,offset:e.offset}}function iy(e,t){let r=-1;for(;++r<t.length;){const s=t[r];Array.isArray(s)?iy(e,s):$b(e,s)}}function $b(e,t){let r;for(r in t)if(ry.call(t,r))switch(r){case"canContainEols":{const s=t[r];s&&e[r].push(...s);break}case"transforms":{const s=t[r];s&&e[r].push(...s);break}case"enter":case"exit":{const s=t[r];s&&Object.assign(e[r],s);break}}}function km(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+cl({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+cl({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+cl({start:t.start,end:t.end})+") is still open")}function Bb(e){const t=this;t.parser=r;function r(s){return Ob(s,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Fb(e,t){const r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,r),e.applyData(t,r)}function Vb(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`
|
|
44
|
-
`}]}function Ub(e,t){const r=t.value?t.value+`
|
|
45
|
-
`:"",s={},l=t.lang?t.lang.split(/\s+/):[];l.length>0&&(s.className=["language-"+l[0]]);let o={type:"element",tagName:"code",properties:s,children:[{type:"text",value:r}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o}function Hb(e,t){const r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Wb(e,t){const r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function qb(e,t){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",s=String(t.identifier).toUpperCase(),l=gs(s.toLowerCase()),o=e.footnoteOrder.indexOf(s);let c,d=e.footnoteCounts.get(s);d===void 0?(d=0,e.footnoteOrder.push(s),c=e.footnoteOrder.length):c=o+1,d+=1,e.footnoteCounts.set(s,d);const f={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+l,id:r+"fnref-"+l+(d>1?"-"+d:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(c)}]};e.patch(t,f);const h={type:"element",tagName:"sup",properties:{},children:[f]};return e.patch(t,h),e.applyData(t,h)}function Kb(e,t){const r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Zb(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function sy(e,t){const r=t.referenceType;let s="]";if(r==="collapsed"?s+="[]":r==="full"&&(s+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+s}];const l=e.all(t),o=l[0];o&&o.type==="text"?o.value="["+o.value:l.unshift({type:"text",value:"["});const c=l[l.length-1];return c&&c.type==="text"?c.value+=s:l.push({type:"text",value:s}),l}function Yb(e,t){const r=String(t.identifier).toUpperCase(),s=e.definitionById.get(r);if(!s)return sy(e,t);const l={src:gs(s.url||""),alt:t.alt};s.title!==null&&s.title!==void 0&&(l.title=s.title);const o={type:"element",tagName:"img",properties:l,children:[]};return e.patch(t,o),e.applyData(t,o)}function Qb(e,t){const r={src:gs(t.url)};t.alt!==null&&t.alt!==void 0&&(r.alt=t.alt),t.title!==null&&t.title!==void 0&&(r.title=t.title);const s={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,s),e.applyData(t,s)}function Xb(e,t){const r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);const s={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,s),e.applyData(t,s)}function Gb(e,t){const r=String(t.identifier).toUpperCase(),s=e.definitionById.get(r);if(!s)return sy(e,t);const l={href:gs(s.url||"")};s.title!==null&&s.title!==void 0&&(l.title=s.title);const o={type:"element",tagName:"a",properties:l,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function Jb(e,t){const r={href:gs(t.url)};t.title!==null&&t.title!==void 0&&(r.title=t.title);const s={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,s),e.applyData(t,s)}function e0(e,t,r){const s=e.all(t),l=r?t0(r):ly(t),o={},c=[];if(typeof t.checked=="boolean"){const g=s[0];let y;g&&g.type==="element"&&g.tagName==="p"?y=g:(y={type:"element",tagName:"p",properties:{},children:[]},s.unshift(y)),y.children.length>0&&y.children.unshift({type:"text",value:" "}),y.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let d=-1;for(;++d<s.length;){const g=s[d];(l||d!==0||g.type!=="element"||g.tagName!=="p")&&c.push({type:"text",value:`
|
|
46
|
-
`}),g.type==="element"&&g.tagName==="p"&&!l?c.push(...g.children):c.push(g)}const f=s[s.length-1];f&&(l||f.type!=="element"||f.tagName!=="p")&&c.push({type:"text",value:`
|
|
47
|
-
`});const h={type:"element",tagName:"li",properties:o,children:c};return e.patch(t,h),e.applyData(t,h)}function t0(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const r=e.children;let s=-1;for(;!t&&++s<r.length;)t=ly(r[s])}return t}function ly(e){const t=e.spread;return t??e.children.length>1}function n0(e,t){const r={},s=e.all(t);let l=-1;for(typeof t.start=="number"&&t.start!==1&&(r.start=t.start);++l<s.length;){const c=s[l];if(c.type==="element"&&c.tagName==="li"&&c.properties&&Array.isArray(c.properties.className)&&c.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:r,children:e.wrap(s,!0)};return e.patch(t,o),e.applyData(t,o)}function r0(e,t){const r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function i0(e,t){const r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)}function s0(e,t){const r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function l0(e,t){const r=e.all(t),s=r.shift(),l=[];if(s){const c={type:"element",tagName:"thead",properties:{},children:e.wrap([s],!0)};e.patch(t.children[0],c),l.push(c)}if(r.length>0){const c={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},d=hd(t.children[1]),f=$g(t.children[t.children.length-1]);d&&f&&(c.position={start:d,end:f}),l.push(c)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(l,!0)};return e.patch(t,o),e.applyData(t,o)}function o0(e,t,r){const s=r?r.children:void 0,o=(s?s.indexOf(t):1)===0?"th":"td",c=r&&r.type==="table"?r.align:void 0,d=c?c.length:t.children.length;let f=-1;const h=[];for(;++f<d;){const y=t.children[f],k={},x=c?c[f]:void 0;x&&(k.align=x);let _={type:"element",tagName:o,properties:k,children:[]};y&&(_.children=e.all(y),e.patch(y,_),_=e.applyData(y,_)),h.push(_)}const g={type:"element",tagName:"tr",properties:{},children:e.wrap(h,!0)};return e.patch(t,g),e.applyData(t,g)}function a0(e,t){const r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}const _m=9,wm=32;function c0(e){const t=String(e),r=/\r?\n|\r/g;let s=r.exec(t),l=0;const o=[];for(;s;)o.push(bm(t.slice(l,s.index),l>0,!0),s[0]),l=s.index+s[0].length,s=r.exec(t);return o.push(bm(t.slice(l),l>0,!1)),o.join("")}function bm(e,t,r){let s=0,l=e.length;if(t){let o=e.codePointAt(s);for(;o===_m||o===wm;)s++,o=e.codePointAt(s)}if(r){let o=e.codePointAt(l-1);for(;o===_m||o===wm;)l--,o=e.codePointAt(l-1)}return l>s?e.slice(s,l):""}function u0(e,t){const r={type:"text",value:c0(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function d0(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const f0={blockquote:Fb,break:Vb,code:Ub,delete:Hb,emphasis:Wb,footnoteReference:qb,heading:Kb,html:Zb,imageReference:Yb,image:Qb,inlineCode:Xb,linkReference:Gb,link:Jb,listItem:e0,list:n0,paragraph:r0,root:i0,strong:s0,table:l0,tableCell:a0,tableRow:o0,text:u0,thematicBreak:d0,toml:Fo,yaml:Fo,definition:Fo,footnoteDefinition:Fo};function Fo(){}const oy=-1,ma=0,dl=1,ra=2,_d=3,wd=4,bd=5,Sd=6,ay=7,cy=8,p0=typeof self=="object"?self:globalThis,Sm=(e,t)=>{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+e)}return new p0[e](t)},h0=(e,t)=>{const r=(l,o)=>(e.set(o,l),l),s=l=>{if(e.has(l))return e.get(l);const[o,c]=t[l];switch(o){case ma:case oy:return r(c,l);case dl:{const d=r([],l);for(const f of c)d.push(s(f));return d}case ra:{const d=r({},l);for(const[f,h]of c)d[s(f)]=s(h);return d}case _d:return r(new Date(c),l);case wd:{const{source:d,flags:f}=c;return r(new RegExp(d,f),l)}case bd:{const d=r(new Map,l);for(const[f,h]of c)d.set(s(f),s(h));return d}case Sd:{const d=r(new Set,l);for(const f of c)d.add(s(f));return d}case ay:{const{name:d,message:f}=c;return r(Sm(d,f),l)}case cy:return r(BigInt(c),l);case"BigInt":return r(Object(BigInt(c)),l);case"ArrayBuffer":return r(new Uint8Array(c).buffer,c);case"DataView":{const{buffer:d}=new Uint8Array(c);return r(new DataView(d),c)}}return r(Sm(o,c),l)};return s},Cm=e=>h0(new Map,e)(0),rs="",{toString:m0}={},{keys:g0}=Object,il=e=>{const t=typeof e;if(t!=="object"||!e)return[ma,t];const r=m0.call(e).slice(8,-1);switch(r){case"Array":return[dl,rs];case"Object":return[ra,rs];case"Date":return[_d,rs];case"RegExp":return[wd,rs];case"Map":return[bd,rs];case"Set":return[Sd,rs];case"DataView":return[dl,r]}return r.includes("Array")?[dl,r]:r.includes("Error")?[ay,r]:[ra,r]},Vo=([e,t])=>e===ma&&(t==="function"||t==="symbol"),y0=(e,t,r,s)=>{const l=(c,d)=>{const f=s.push(c)-1;return r.set(d,f),f},o=c=>{if(r.has(c))return r.get(c);let[d,f]=il(c);switch(d){case ma:{let g=c;switch(f){case"bigint":d=cy,g=c.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+f);g=null;break;case"undefined":return l([oy],c)}return l([d,g],c)}case dl:{if(f){let k=c;return f==="DataView"?k=new Uint8Array(c.buffer):f==="ArrayBuffer"&&(k=new Uint8Array(c)),l([f,[...k]],c)}const g=[],y=l([d,g],c);for(const k of c)g.push(o(k));return y}case ra:{if(f)switch(f){case"BigInt":return l([f,c.toString()],c);case"Boolean":case"Number":case"String":return l([f,c.valueOf()],c)}if(t&&"toJSON"in c)return o(c.toJSON());const g=[],y=l([d,g],c);for(const k of g0(c))(e||!Vo(il(c[k])))&&g.push([o(k),o(c[k])]);return y}case _d:return l([d,c.toISOString()],c);case wd:{const{source:g,flags:y}=c;return l([d,{source:g,flags:y}],c)}case bd:{const g=[],y=l([d,g],c);for(const[k,x]of c)(e||!(Vo(il(k))||Vo(il(x))))&&g.push([o(k),o(x)]);return y}case Sd:{const g=[],y=l([d,g],c);for(const k of c)(e||!Vo(il(k)))&&g.push(o(k));return y}}const{message:h}=c;return l([d,{name:f,message:h}],c)};return o},Nm=(e,{json:t,lossy:r}={})=>{const s=[];return y0(!(t||r),!!t,new Map,s)(e),s},ia=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Cm(Nm(e,t)):structuredClone(e):(e,t)=>Cm(Nm(e,t));function v0(e,t){const r=[{type:"text",value:"↩"}];return t>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),r}function x0(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function k0(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||v0,s=e.options.footnoteBackLabel||x0,l=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",c=e.options.footnoteLabelProperties||{className:["sr-only"]},d=[];let f=-1;for(;++f<e.footnoteOrder.length;){const h=e.footnoteById.get(e.footnoteOrder[f]);if(!h)continue;const g=e.all(h),y=String(h.identifier).toUpperCase(),k=gs(y.toLowerCase());let x=0;const _=[],T=e.footnoteCounts.get(y);for(;T!==void 0&&++x<=T;){_.length>0&&_.push({type:"text",value:" "});let L=typeof r=="string"?r:r(f,x);typeof L=="string"&&(L={type:"text",value:L}),_.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+k+(x>1?"-"+x:""),dataFootnoteBackref:"",ariaLabel:typeof s=="string"?s:s(f,x),className:["data-footnote-backref"]},children:Array.isArray(L)?L:[L]})}const D=g[g.length-1];if(D&&D.type==="element"&&D.tagName==="p"){const L=D.children[D.children.length-1];L&&L.type==="text"?L.value+=" ":D.children.push({type:"text",value:" "}),D.children.push(..._)}else g.push(..._);const S={type:"element",tagName:"li",properties:{id:t+"fn-"+k},children:e.wrap(g,!0)};e.patch(h,S),d.push(S)}if(d.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...ia(c),id:"footnote-label"},children:[{type:"text",value:l}]},{type:"text",value:`
|
|
48
|
-
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(d,!0)},{type:"text",value:`
|
|
49
|
-
`}]}}const ga=(function(e){if(e==null)return S0;if(typeof e=="function")return ya(e);if(typeof e=="object")return Array.isArray(e)?_0(e):w0(e);if(typeof e=="string")return b0(e);throw new Error("Expected function, string, or object as test")});function _0(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=ga(e[r]);return ya(s);function s(...l){let o=-1;for(;++o<t.length;)if(t[o].apply(this,l))return!0;return!1}}function w0(e){const t=e;return ya(r);function r(s){const l=s;let o;for(o in e)if(l[o]!==t[o])return!1;return!0}}function b0(e){return ya(t);function t(r){return r&&r.type===e}}function ya(e){return t;function t(r,s,l){return!!(C0(r)&&e.call(this,r,typeof s=="number"?s:void 0,l||void 0))}}function S0(){return!0}function C0(e){return e!==null&&typeof e=="object"&&"type"in e}const uy=[],N0=!0,Vu=!1,j0="skip";function dy(e,t,r,s){let l;typeof t=="function"&&typeof r!="function"?(s=r,r=t):l=t;const o=ga(l),c=s?-1:1;d(e,void 0,[])();function d(f,h,g){const y=f&&typeof f=="object"?f:{};if(typeof y.type=="string"){const x=typeof y.tagName=="string"?y.tagName:typeof y.name=="string"?y.name:void 0;Object.defineProperty(k,"name",{value:"node ("+(f.type+(x?"<"+x+">":""))+")"})}return k;function k(){let x=uy,_,T,D;if((!t||o(f,h,g[g.length-1]||void 0))&&(x=E0(r(f,g)),x[0]===Vu))return x;if("children"in f&&f.children){const S=f;if(S.children&&x[0]!==j0)for(T=(s?S.children.length:-1)+c,D=g.concat(S);T>-1&&T<S.children.length;){const L=S.children[T];if(_=d(L,T,D)(),_[0]===Vu)return _;T=typeof _[1]=="number"?_[1]:T+c}}return x}}}function E0(e){return Array.isArray(e)?e:typeof e=="number"?[N0,e]:e==null?uy:[e]}function Cd(e,t,r,s){let l,o,c;typeof t=="function"&&typeof r!="function"?(o=void 0,c=t,l=r):(o=t,c=r,l=s),dy(e,o,d,l);function d(f,h){const g=h[h.length-1],y=g?g.children.indexOf(f):void 0;return c(f,y,g)}}const Uu={}.hasOwnProperty,T0={};function I0(e,t){const r=t||T0,s=new Map,l=new Map,o=new Map,c={...f0,...r.handlers},d={all:h,applyData:D0,definitionById:s,footnoteById:l,footnoteCounts:o,footnoteOrder:[],handlers:c,one:f,options:r,patch:A0,wrap:P0};return Cd(e,function(g){if(g.type==="definition"||g.type==="footnoteDefinition"){const y=g.type==="definition"?s:l,k=String(g.identifier).toUpperCase();y.has(k)||y.set(k,g)}}),d;function f(g,y){const k=g.type,x=d.handlers[k];if(Uu.call(d.handlers,k)&&x)return x(d,g,y);if(d.options.passThrough&&d.options.passThrough.includes(k)){if("children"in g){const{children:T,...D}=g,S=ia(D);return S.children=d.all(g),S}return ia(g)}return(d.options.unknownHandler||R0)(d,g,y)}function h(g){const y=[];if("children"in g){const k=g.children;let x=-1;for(;++x<k.length;){const _=d.one(k[x],g);if(_){if(x&&k[x-1].type==="break"&&(!Array.isArray(_)&&_.type==="text"&&(_.value=jm(_.value)),!Array.isArray(_)&&_.type==="element")){const T=_.children[0];T&&T.type==="text"&&(T.value=jm(T.value))}Array.isArray(_)?y.push(..._):y.push(_)}}}return y}}function A0(e,t){e.position&&(t.position=vw(e))}function D0(e,t){let r=t;if(e&&e.data){const s=e.data.hName,l=e.data.hChildren,o=e.data.hProperties;if(typeof s=="string")if(r.type==="element")r.tagName=s;else{const c="children"in r?r.children:[r];r={type:"element",tagName:s,properties:{},children:c}}r.type==="element"&&o&&Object.assign(r.properties,ia(o)),"children"in r&&r.children&&l!==null&&l!==void 0&&(r.children=l)}return r}function R0(e,t){const r=t.data||{},s="value"in t&&!(Uu.call(r,"hProperties")||Uu.call(r,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,s),e.applyData(t,s)}function P0(e,t){const r=[];let s=-1;for(t&&r.push({type:"text",value:`
|
|
50
|
-
`});++s<e.length;)s&&r.push({type:"text",value:`
|
|
51
|
-
`}),r.push(e[s]);return t&&e.length>0&&r.push({type:"text",value:`
|
|
52
|
-
`}),r}function jm(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function Em(e,t){const r=I0(e,t),s=r.one(e,void 0),l=k0(r),o=Array.isArray(s)?{type:"root",children:s}:s||{type:"root",children:[]};return l&&o.children.push({type:"text",value:`
|
|
53
|
-
`},l),o}function L0(e,t){return e&&"run"in e?async function(r,s){const l=Em(r,{file:s,...t});await e.run(l,s)}:function(r,s){return Em(r,{file:s,...e||t})}}function Tm(e){if(e)throw e}var hu,Im;function M0(){if(Im)return hu;Im=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,s=Object.getOwnPropertyDescriptor,l=function(h){return typeof Array.isArray=="function"?Array.isArray(h):t.call(h)==="[object Array]"},o=function(h){if(!h||t.call(h)!=="[object Object]")return!1;var g=e.call(h,"constructor"),y=h.constructor&&h.constructor.prototype&&e.call(h.constructor.prototype,"isPrototypeOf");if(h.constructor&&!g&&!y)return!1;var k;for(k in h);return typeof k>"u"||e.call(h,k)},c=function(h,g){r&&g.name==="__proto__"?r(h,g.name,{enumerable:!0,configurable:!0,value:g.newValue,writable:!0}):h[g.name]=g.newValue},d=function(h,g){if(g==="__proto__")if(e.call(h,g)){if(s)return s(h,g).value}else return;return h[g]};return hu=function f(){var h,g,y,k,x,_,T=arguments[0],D=1,S=arguments.length,L=!1;for(typeof T=="boolean"&&(L=T,T=arguments[1]||{},D=2),(T==null||typeof T!="object"&&typeof T!="function")&&(T={});D<S;++D)if(h=arguments[D],h!=null)for(g in h)y=d(T,g),k=d(h,g),T!==k&&(L&&k&&(o(k)||(x=l(k)))?(x?(x=!1,_=y&&l(y)?y:[]):_=y&&o(y)?y:{},c(T,{name:g,newValue:f(L,_,k)})):typeof k<"u"&&c(T,{name:g,newValue:k}));return T},hu}var O0=M0();const mu=nd(O0);function Hu(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function z0(){const e=[],t={run:r,use:s};return t;function r(...l){let o=-1;const c=l.pop();if(typeof c!="function")throw new TypeError("Expected function as last argument, not "+c);d(null,...l);function d(f,...h){const g=e[++o];let y=-1;if(f){c(f);return}for(;++y<l.length;)(h[y]===null||h[y]===void 0)&&(h[y]=l[y]);l=h,g?$0(g,d)(...h):c(null,...h)}}function s(l){if(typeof l!="function")throw new TypeError("Expected `middelware` to be a function, not "+l);return e.push(l),t}}function $0(e,t){let r;return s;function s(...c){const d=e.length>c.length;let f;d&&c.push(l);try{f=e.apply(this,c)}catch(h){const g=h;if(d&&r)throw g;return l(g)}d||(f&&f.then&&typeof f.then=="function"?f.then(o,l):f instanceof Error?l(f):o(f))}function l(c,...d){r||(r=!0,t(c,...d))}function o(c){l(null,c)}}const kr={basename:B0,dirname:F0,extname:V0,join:U0,sep:"/"};function B0(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');jl(e);let r=0,s=-1,l=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;l--;)if(e.codePointAt(l)===47){if(o){r=l+1;break}}else s<0&&(o=!0,s=l+1);return s<0?"":e.slice(r,s)}if(t===e)return"";let c=-1,d=t.length-1;for(;l--;)if(e.codePointAt(l)===47){if(o){r=l+1;break}}else c<0&&(o=!0,c=l+1),d>-1&&(e.codePointAt(l)===t.codePointAt(d--)?d<0&&(s=l):(d=-1,s=c));return r===s?s=c:s<0&&(s=e.length),e.slice(r,s)}function F0(e){if(jl(e),e.length===0)return".";let t=-1,r=e.length,s;for(;--r;)if(e.codePointAt(r)===47){if(s){t=r;break}}else s||(s=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function V0(e){jl(e);let t=e.length,r=-1,s=0,l=-1,o=0,c;for(;t--;){const d=e.codePointAt(t);if(d===47){if(c){s=t+1;break}continue}r<0&&(c=!0,r=t+1),d===46?l<0?l=t:o!==1&&(o=1):l>-1&&(o=-1)}return l<0||r<0||o===0||o===1&&l===r-1&&l===s+1?"":e.slice(l,r)}function U0(...e){let t=-1,r;for(;++t<e.length;)jl(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":H0(r)}function H0(e){jl(e);const t=e.codePointAt(0)===47;let r=W0(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function W0(e,t){let r="",s=0,l=-1,o=0,c=-1,d,f;for(;++c<=e.length;){if(c<e.length)d=e.codePointAt(c);else{if(d===47)break;d=47}if(d===47){if(!(l===c-1||o===1))if(l!==c-1&&o===2){if(r.length<2||s!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(f=r.lastIndexOf("/"),f!==r.length-1){f<0?(r="",s=0):(r=r.slice(0,f),s=r.length-1-r.lastIndexOf("/")),l=c,o=0;continue}}else if(r.length>0){r="",s=0,l=c,o=0;continue}}t&&(r=r.length>0?r+"/..":"..",s=2)}else r.length>0?r+="/"+e.slice(l+1,c):r=e.slice(l+1,c),s=c-l-1;l=c,o=0}else d===46&&o>-1?o++:o=-1}return r}function jl(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const q0={cwd:K0};function K0(){return"/"}function Wu(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Z0(e){if(typeof e=="string")e=new URL(e);else if(!Wu(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Y0(e)}function Y0(e){if(e.hostname!==""){const s=new TypeError('File URL host must be "localhost" or empty on darwin');throw s.code="ERR_INVALID_FILE_URL_HOST",s}const t=e.pathname;let r=-1;for(;++r<t.length;)if(t.codePointAt(r)===37&&t.codePointAt(r+1)===50){const s=t.codePointAt(r+2);if(s===70||s===102){const l=new TypeError("File URL path must not include encoded / characters");throw l.code="ERR_INVALID_FILE_URL_PATH",l}}return decodeURIComponent(t)}const gu=["history","path","basename","stem","extname","dirname"];class fy{constructor(t){let r;t?Wu(t)?r={path:t}:typeof t=="string"||Q0(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":q0.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let s=-1;for(;++s<gu.length;){const o=gu[s];o in r&&r[o]!==void 0&&r[o]!==null&&(this[o]=o==="history"?[...r[o]]:r[o])}let l;for(l in r)gu.includes(l)||(this[l]=r[l])}get basename(){return typeof this.path=="string"?kr.basename(this.path):void 0}set basename(t){vu(t,"basename"),yu(t,"basename"),this.path=kr.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?kr.dirname(this.path):void 0}set dirname(t){Am(this.basename,"dirname"),this.path=kr.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?kr.extname(this.path):void 0}set extname(t){if(yu(t,"extname"),Am(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=kr.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Wu(t)&&(t=Z0(t)),vu(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?kr.basename(this.path,this.extname):void 0}set stem(t){vu(t,"stem"),yu(t,"stem"),this.path=kr.join(this.dirname||"",t+(this.extname||""))}fail(t,r,s){const l=this.message(t,r,s);throw l.fatal=!0,l}info(t,r,s){const l=this.message(t,r,s);return l.fatal=void 0,l}message(t,r,s){const l=new xn(t,r,s);return this.path&&(l.name=this.path+":"+l.name,l.file=this.path),l.fatal=!1,this.messages.push(l),l}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function yu(e,t){if(e&&e.includes(kr.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+kr.sep+"`")}function vu(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Am(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function Q0(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const X0=(function(e){const s=this.constructor.prototype,l=s[e],o=function(){return l.apply(o,arguments)};return Object.setPrototypeOf(o,s),o}),G0={}.hasOwnProperty;class Nd extends X0{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=z0()}copy(){const t=new Nd;let r=-1;for(;++r<this.attachers.length;){const s=this.attachers[r];t.use(...s)}return t.data(mu(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(_u("data",this.frozen),this.namespace[t]=r,this):G0.call(this.namespace,t)&&this.namespace[t]||void 0:t?(_u("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...s]=this.attachers[this.freezeIndex];if(s[0]===!1)continue;s[0]===!0&&(s[0]=void 0);const l=r.call(t,...s);typeof l=="function"&&this.transformers.use(l)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const r=Uo(t),s=this.parser||this.Parser;return xu("parse",s),s(String(r),r)}process(t,r){const s=this;return this.freeze(),xu("process",this.parser||this.Parser),ku("process",this.compiler||this.Compiler),r?l(void 0,r):new Promise(l);function l(o,c){const d=Uo(t),f=s.parse(d);s.run(f,d,function(g,y,k){if(g||!y||!k)return h(g);const x=y,_=s.stringify(x,k);tS(_)?k.value=_:k.result=_,h(g,k)});function h(g,y){g||!y?c(g):o?o(y):r(void 0,y)}}}processSync(t){let r=!1,s;return this.freeze(),xu("processSync",this.parser||this.Parser),ku("processSync",this.compiler||this.Compiler),this.process(t,l),Rm("processSync","process",r),s;function l(o,c){r=!0,Tm(o),s=c}}run(t,r,s){Dm(t),this.freeze();const l=this.transformers;return!s&&typeof r=="function"&&(s=r,r=void 0),s?o(void 0,s):new Promise(o);function o(c,d){const f=Uo(r);l.run(t,f,h);function h(g,y,k){const x=y||t;g?d(g):c?c(x):s(void 0,x,k)}}}runSync(t,r){let s=!1,l;return this.run(t,r,o),Rm("runSync","run",s),l;function o(c,d){Tm(c),l=d,s=!0}}stringify(t,r){this.freeze();const s=Uo(r),l=this.compiler||this.Compiler;return ku("stringify",l),Dm(t),l(t,s)}use(t,...r){const s=this.attachers,l=this.namespace;if(_u("use",this.frozen),t!=null)if(typeof t=="function")f(t,r);else if(typeof t=="object")Array.isArray(t)?d(t):c(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function o(h){if(typeof h=="function")f(h,[]);else if(typeof h=="object")if(Array.isArray(h)){const[g,...y]=h;f(g,y)}else c(h);else throw new TypeError("Expected usable value, not `"+h+"`")}function c(h){if(!("plugins"in h)&&!("settings"in h))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");d(h.plugins),h.settings&&(l.settings=mu(!0,l.settings,h.settings))}function d(h){let g=-1;if(h!=null)if(Array.isArray(h))for(;++g<h.length;){const y=h[g];o(y)}else throw new TypeError("Expected a list of plugins, not `"+h+"`")}function f(h,g){let y=-1,k=-1;for(;++y<s.length;)if(s[y][0]===h){k=y;break}if(k===-1)s.push([h,...g]);else if(g.length>0){let[x,..._]=g;const T=s[k][1];Hu(T)&&Hu(x)&&(x=mu(!0,T,x)),s[k]=[h,x,..._]}}}}const J0=new Nd().freeze();function xu(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function ku(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function _u(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Dm(e){if(!Hu(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Rm(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Uo(e){return eS(e)?e:new fy(e)}function eS(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function tS(e){return typeof e=="string"||nS(e)}function nS(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const rS="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Pm=[],Lm={allowDangerousHtml:!0},iS=/^(https?|ircs?|mailto|xmpp)$/i,sS=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function xl(e){const t=lS(e),r=oS(e);return aS(t.runSync(t.parse(r),r),e)}function lS(e){const t=e.rehypePlugins||Pm,r=e.remarkPlugins||Pm,s=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Lm}:Lm;return J0().use(Bb).use(r).use(L0,s).use(t)}function oS(e){const t=e.children||"",r=new fy;return typeof t=="string"&&(r.value=t),r}function aS(e,t){const r=t.allowedElements,s=t.allowElement,l=t.components,o=t.disallowedElements,c=t.skipHtml,d=t.unwrapDisallowed,f=t.urlTransform||cS;for(const g of sS)Object.hasOwn(t,g.from)&&(""+g.from+(g.to?"use `"+g.to+"` instead":"remove it")+rS+g.id,void 0);return t.className&&(e={type:"element",tagName:"div",properties:{className:t.className},children:e.type==="root"?e.children:[e]}),Cd(e,h),bw(e,{Fragment:p.Fragment,components:l,ignoreInvalidStyle:!0,jsx:p.jsx,jsxs:p.jsxs,passKeys:!0,passNode:!0});function h(g,y,k){if(g.type==="raw"&&k&&typeof y=="number")return c?k.children.splice(y,1):k.children[y]={type:"text",value:g.value},y;if(g.type==="element"){let x;for(x in du)if(Object.hasOwn(du,x)&&Object.hasOwn(g.properties,x)){const _=g.properties[x],T=du[x];(T===null||T.includes(g.tagName))&&(g.properties[x]=f(String(_||""),x,g))}}if(g.type==="element"){let x=r?!r.includes(g.tagName):o?o.includes(g.tagName):!1;if(!x&&s&&typeof y=="number"&&(x=!s(g,y,k)),x&&k&&typeof y=="number")return d&&g.children?k.children.splice(y,1,...g.children):k.children.splice(y,1),y}}}function cS(e){const t=e.indexOf(":"),r=e.indexOf("?"),s=e.indexOf("#"),l=e.indexOf("/");return t===-1||l!==-1&&t>l||r!==-1&&t>r||s!==-1&&t>s||iS.test(e.slice(0,t))?e:""}function Mm(e,t){const r=String(e);if(typeof t!="string")throw new TypeError("Expected character");let s=0,l=r.indexOf(t);for(;l!==-1;)s++,l=r.indexOf(t,l+t.length);return s}function uS(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function dS(e,t,r){const l=ga((r||{}).ignore||[]),o=fS(t);let c=-1;for(;++c<o.length;)dy(e,"text",d);function d(h,g){let y=-1,k;for(;++y<g.length;){const x=g[y],_=k?k.children:void 0;if(l(x,_?_.indexOf(x):void 0,k))return;k=x}if(k)return f(h,g)}function f(h,g){const y=g[g.length-1],k=o[c][0],x=o[c][1];let _=0;const D=y.children.indexOf(h);let S=!1,L=[];k.lastIndex=0;let E=k.exec(h.value);for(;E;){const R=E.index,P={index:E.index,input:E.input,stack:[...g,h]};let j=x(...E,P);if(typeof j=="string"&&(j=j.length>0?{type:"text",value:j}:void 0),j===!1?k.lastIndex=R+1:(_!==R&&L.push({type:"text",value:h.value.slice(_,R)}),Array.isArray(j)?L.push(...j):j&&L.push(j),_=R+E[0].length,S=!0),!k.global)break;E=k.exec(h.value)}return S?(_<h.value.length&&L.push({type:"text",value:h.value.slice(_)}),y.children.splice(D,1,...L)):L=[h],D+L.length}}function fS(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const r=!e[0]||Array.isArray(e[0])?e:[e];let s=-1;for(;++s<r.length;){const l=r[s];t.push([pS(l[0]),hS(l[1])])}return t}function pS(e){return typeof e=="string"?new RegExp(uS(e),"g"):e}function hS(e){return typeof e=="function"?e:function(){return e}}const wu="phrasing",bu=["autolink","link","image","label"];function mS(){return{transforms:[wS],enter:{literalAutolink:yS,literalAutolinkEmail:Su,literalAutolinkHttp:Su,literalAutolinkWww:Su},exit:{literalAutolink:_S,literalAutolinkEmail:kS,literalAutolinkHttp:vS,literalAutolinkWww:xS}}}function gS(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:wu,notInConstruct:bu},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:wu,notInConstruct:bu},{character:":",before:"[ps]",after:"\\/",inConstruct:wu,notInConstruct:bu}]}}function yS(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Su(e){this.config.enter.autolinkProtocol.call(this,e)}function vS(e){this.config.exit.autolinkProtocol.call(this,e)}function xS(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function kS(e){this.config.exit.autolinkEmail.call(this,e)}function _S(e){this.exit(e)}function wS(e){dS(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,bS],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),SS]],{ignore:["link","linkReference"]})}function bS(e,t,r,s,l){let o="";if(!py(l)||(/^w/i.test(t)&&(r=t+r,t="",o="http://"),!CS(r)))return!1;const c=NS(r+s);if(!c[0])return!1;const d={type:"link",title:null,url:o+t+c[0],children:[{type:"text",value:t+c[0]}]};return c[1]?[d,{type:"text",value:c[1]}]:d}function SS(e,t,r,s){return!py(s,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}function CS(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function NS(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let r=t[0],s=r.indexOf(")");const l=Mm(e,"(");let o=Mm(e,")");for(;s!==-1&&l>o;)e+=r.slice(0,s+1),r=r.slice(s+1),s=r.indexOf(")"),o++;return[e,r]}function py(e,t){const r=e.input.charCodeAt(e.index-1);return(e.index===0||Di(r)||pa(r))&&(!t||r!==47)}hy.peek=LS;function jS(){this.buffer()}function ES(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function TS(){this.buffer()}function IS(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function AS(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=dr(this.sliceSerialize(e)).toLowerCase(),r.label=t}function DS(e){this.exit(e)}function RS(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=dr(this.sliceSerialize(e)).toLowerCase(),r.label=t}function PS(e){this.exit(e)}function LS(){return"["}function hy(e,t,r,s){const l=r.createTracker(s);let o=l.move("[^");const c=r.enter("footnoteReference"),d=r.enter("reference");return o+=l.move(r.safe(r.associationId(e),{after:"]",before:o})),d(),c(),o+=l.move("]"),o}function MS(){return{enter:{gfmFootnoteCallString:jS,gfmFootnoteCall:ES,gfmFootnoteDefinitionLabelString:TS,gfmFootnoteDefinition:IS},exit:{gfmFootnoteCallString:AS,gfmFootnoteCall:DS,gfmFootnoteDefinitionLabelString:RS,gfmFootnoteDefinition:PS}}}function OS(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:r,footnoteReference:hy},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function r(s,l,o,c){const d=o.createTracker(c);let f=d.move("[^");const h=o.enter("footnoteDefinition"),g=o.enter("label");return f+=d.move(o.safe(o.associationId(s),{before:f,after:"]"})),g(),f+=d.move("]:"),s.children&&s.children.length>0&&(d.shift(4),f+=d.move((t?`
|
|
54
|
-
`:" ")+o.indentLines(o.containerFlow(s,d.current()),t?my:zS))),h(),f}}function zS(e,t,r){return t===0?e:my(e,t,r)}function my(e,t,r){return(r?"":" ")+e}const $S=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];gy.peek=HS;function BS(){return{canContainEols:["delete"],enter:{strikethrough:VS},exit:{strikethrough:US}}}function FS(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:$S}],handlers:{delete:gy}}}function VS(e){this.enter({type:"delete",children:[]},e)}function US(e){this.exit(e)}function gy(e,t,r,s){const l=r.createTracker(s),o=r.enter("strikethrough");let c=l.move("~~");return c+=r.containerPhrasing(e,{...l.current(),before:c,after:"~"}),c+=l.move("~~"),o(),c}function HS(){return"~"}function WS(e){return e.length}function qS(e,t){const r=t||{},s=(r.align||[]).concat(),l=r.stringLength||WS,o=[],c=[],d=[],f=[];let h=0,g=-1;for(;++g<e.length;){const T=[],D=[];let S=-1;for(e[g].length>h&&(h=e[g].length);++S<e[g].length;){const L=KS(e[g][S]);if(r.alignDelimiters!==!1){const E=l(L);D[S]=E,(f[S]===void 0||E>f[S])&&(f[S]=E)}T.push(L)}c[g]=T,d[g]=D}let y=-1;if(typeof s=="object"&&"length"in s)for(;++y<h;)o[y]=Om(s[y]);else{const T=Om(s);for(;++y<h;)o[y]=T}y=-1;const k=[],x=[];for(;++y<h;){const T=o[y];let D="",S="";T===99?(D=":",S=":"):T===108?D=":":T===114&&(S=":");let L=r.alignDelimiters===!1?1:Math.max(1,f[y]-D.length-S.length);const E=D+"-".repeat(L)+S;r.alignDelimiters!==!1&&(L=D.length+L+S.length,L>f[y]&&(f[y]=L),x[y]=L),k[y]=E}c.splice(1,0,k),d.splice(1,0,x),g=-1;const _=[];for(;++g<c.length;){const T=c[g],D=d[g];y=-1;const S=[];for(;++y<h;){const L=T[y]||"";let E="",R="";if(r.alignDelimiters!==!1){const P=f[y]-(D[y]||0),j=o[y];j===114?E=" ".repeat(P):j===99?P%2?(E=" ".repeat(P/2+.5),R=" ".repeat(P/2-.5)):(E=" ".repeat(P/2),R=E):R=" ".repeat(P)}r.delimiterStart!==!1&&!y&&S.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&L==="")&&(r.delimiterStart!==!1||y)&&S.push(" "),r.alignDelimiters!==!1&&S.push(E),S.push(L),r.alignDelimiters!==!1&&S.push(R),r.padding!==!1&&S.push(" "),(r.delimiterEnd!==!1||y!==h-1)&&S.push("|")}_.push(r.delimiterEnd===!1?S.join("").replace(/ +$/,""):S.join(""))}return _.join(`
|
|
55
|
-
`)}function KS(e){return e==null?"":String(e)}function Om(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function ZS(e,t,r,s){const l=r.enter("blockquote"),o=r.createTracker(s);o.move("> "),o.shift(2);const c=r.indentLines(r.containerFlow(e,o.current()),YS);return l(),c}function YS(e,t,r){return">"+(r?"":" ")+e}function QS(e,t){return zm(e,t.inConstruct,!0)&&!zm(e,t.notInConstruct,!1)}function zm(e,t,r){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return r;let s=-1;for(;++s<t.length;)if(e.includes(t[s]))return!0;return!1}function $m(e,t,r,s){let l=-1;for(;++l<r.unsafe.length;)if(r.unsafe[l].character===`
|
|
56
|
-
`&&QS(r.stack,r.unsafe[l]))return/[ \t]/.test(s.before)?"":" ";return`\\
|
|
57
|
-
`}function XS(e,t){const r=String(e);let s=r.indexOf(t),l=s,o=0,c=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;s!==-1;)s===l?++o>c&&(c=o):o=1,l=s+t.length,s=r.indexOf(t,l);return c}function GS(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function JS(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function eC(e,t,r,s){const l=JS(r),o=e.value||"",c=l==="`"?"GraveAccent":"Tilde";if(GS(e,r)){const y=r.enter("codeIndented"),k=r.indentLines(o,tC);return y(),k}const d=r.createTracker(s),f=l.repeat(Math.max(XS(o,l)+1,3)),h=r.enter("codeFenced");let g=d.move(f);if(e.lang){const y=r.enter(`codeFencedLang${c}`);g+=d.move(r.safe(e.lang,{before:g,after:" ",encode:["`"],...d.current()})),y()}if(e.lang&&e.meta){const y=r.enter(`codeFencedMeta${c}`);g+=d.move(" "),g+=d.move(r.safe(e.meta,{before:g,after:`
|
|
58
|
-
`,encode:["`"],...d.current()})),y()}return g+=d.move(`
|
|
59
|
-
`),o&&(g+=d.move(o+`
|
|
60
|
-
`)),g+=d.move(f),h(),g}function tC(e,t,r){return(r?"":" ")+e}function jd(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function nC(e,t,r,s){const l=jd(r),o=l==='"'?"Quote":"Apostrophe",c=r.enter("definition");let d=r.enter("label");const f=r.createTracker(s);let h=f.move("[");return h+=f.move(r.safe(r.associationId(e),{before:h,after:"]",...f.current()})),h+=f.move("]: "),d(),!e.url||/[\0- \u007F]/.test(e.url)?(d=r.enter("destinationLiteral"),h+=f.move("<"),h+=f.move(r.safe(e.url,{before:h,after:">",...f.current()})),h+=f.move(">")):(d=r.enter("destinationRaw"),h+=f.move(r.safe(e.url,{before:h,after:e.title?" ":`
|
|
61
|
-
`,...f.current()}))),d(),e.title&&(d=r.enter(`title${o}`),h+=f.move(" "+l),h+=f.move(r.safe(e.title,{before:h,after:l,...f.current()})),h+=f.move(l),d()),c(),h}function rC(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function kl(e){return"&#x"+e.toString(16).toUpperCase()+";"}function sa(e,t,r){const s=ps(e),l=ps(t);return s===void 0?l===void 0?r==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:l===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:s===1?l===void 0?{inside:!1,outside:!1}:l===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:l===void 0?{inside:!1,outside:!1}:l===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}yy.peek=iC;function yy(e,t,r,s){const l=rC(r),o=r.enter("emphasis"),c=r.createTracker(s),d=c.move(l);let f=c.move(r.containerPhrasing(e,{after:l,before:d,...c.current()}));const h=f.charCodeAt(0),g=sa(s.before.charCodeAt(s.before.length-1),h,l);g.inside&&(f=kl(h)+f.slice(1));const y=f.charCodeAt(f.length-1),k=sa(s.after.charCodeAt(0),y,l);k.inside&&(f=f.slice(0,-1)+kl(y));const x=c.move(l);return o(),r.attentionEncodeSurroundingInfo={after:k.outside,before:g.outside},d+f+x}function iC(e,t,r){return r.options.emphasis||"*"}function sC(e,t){let r=!1;return Cd(e,function(s){if("value"in s&&/\r?\n|\r/.test(s.value)||s.type==="break")return r=!0,Vu}),!!((!e.depth||e.depth<3)&&vd(e)&&(t.options.setext||r))}function lC(e,t,r,s){const l=Math.max(Math.min(6,e.depth||1),1),o=r.createTracker(s);if(sC(e,r)){const g=r.enter("headingSetext"),y=r.enter("phrasing"),k=r.containerPhrasing(e,{...o.current(),before:`
|
|
62
|
-
`,after:`
|
|
63
|
-
`});return y(),g(),k+`
|
|
64
|
-
`+(l===1?"=":"-").repeat(k.length-(Math.max(k.lastIndexOf("\r"),k.lastIndexOf(`
|
|
65
|
-
`))+1))}const c="#".repeat(l),d=r.enter("headingAtx"),f=r.enter("phrasing");o.move(c+" ");let h=r.containerPhrasing(e,{before:"# ",after:`
|
|
66
|
-
`,...o.current()});return/^[\t ]/.test(h)&&(h=kl(h.charCodeAt(0))+h.slice(1)),h=h?c+" "+h:c,r.options.closeAtx&&(h+=" "+c),f(),d(),h}vy.peek=oC;function vy(e){return e.value||""}function oC(){return"<"}xy.peek=aC;function xy(e,t,r,s){const l=jd(r),o=l==='"'?"Quote":"Apostrophe",c=r.enter("image");let d=r.enter("label");const f=r.createTracker(s);let h=f.move("![");return h+=f.move(r.safe(e.alt,{before:h,after:"]",...f.current()})),h+=f.move("]("),d(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(d=r.enter("destinationLiteral"),h+=f.move("<"),h+=f.move(r.safe(e.url,{before:h,after:">",...f.current()})),h+=f.move(">")):(d=r.enter("destinationRaw"),h+=f.move(r.safe(e.url,{before:h,after:e.title?" ":")",...f.current()}))),d(),e.title&&(d=r.enter(`title${o}`),h+=f.move(" "+l),h+=f.move(r.safe(e.title,{before:h,after:l,...f.current()})),h+=f.move(l),d()),h+=f.move(")"),c(),h}function aC(){return"!"}ky.peek=cC;function ky(e,t,r,s){const l=e.referenceType,o=r.enter("imageReference");let c=r.enter("label");const d=r.createTracker(s);let f=d.move("![");const h=r.safe(e.alt,{before:f,after:"]",...d.current()});f+=d.move(h+"]["),c();const g=r.stack;r.stack=[],c=r.enter("reference");const y=r.safe(r.associationId(e),{before:f,after:"]",...d.current()});return c(),r.stack=g,o(),l==="full"||!h||h!==y?f+=d.move(y+"]"):l==="shortcut"?f=f.slice(0,-1):f+=d.move("]"),f}function cC(){return"!"}_y.peek=uC;function _y(e,t,r){let s=e.value||"",l="`",o=-1;for(;new RegExp("(^|[^`])"+l+"([^`]|$)").test(s);)l+="`";for(/[^ \r\n]/.test(s)&&(/^[ \r\n]/.test(s)&&/[ \r\n]$/.test(s)||/^`|`$/.test(s))&&(s=" "+s+" ");++o<r.unsafe.length;){const c=r.unsafe[o],d=r.compilePattern(c);let f;if(c.atBreak)for(;f=d.exec(s);){let h=f.index;s.charCodeAt(h)===10&&s.charCodeAt(h-1)===13&&h--,s=s.slice(0,h)+" "+s.slice(f.index+1)}}return l+s+l}function uC(){return"`"}function wy(e,t){const r=vd(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(r===e.url||"mailto:"+r===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}by.peek=dC;function by(e,t,r,s){const l=jd(r),o=l==='"'?"Quote":"Apostrophe",c=r.createTracker(s);let d,f;if(wy(e,r)){const g=r.stack;r.stack=[],d=r.enter("autolink");let y=c.move("<");return y+=c.move(r.containerPhrasing(e,{before:y,after:">",...c.current()})),y+=c.move(">"),d(),r.stack=g,y}d=r.enter("link"),f=r.enter("label");let h=c.move("[");return h+=c.move(r.containerPhrasing(e,{before:h,after:"](",...c.current()})),h+=c.move("]("),f(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(f=r.enter("destinationLiteral"),h+=c.move("<"),h+=c.move(r.safe(e.url,{before:h,after:">",...c.current()})),h+=c.move(">")):(f=r.enter("destinationRaw"),h+=c.move(r.safe(e.url,{before:h,after:e.title?" ":")",...c.current()}))),f(),e.title&&(f=r.enter(`title${o}`),h+=c.move(" "+l),h+=c.move(r.safe(e.title,{before:h,after:l,...c.current()})),h+=c.move(l),f()),h+=c.move(")"),d(),h}function dC(e,t,r){return wy(e,r)?"<":"["}Sy.peek=fC;function Sy(e,t,r,s){const l=e.referenceType,o=r.enter("linkReference");let c=r.enter("label");const d=r.createTracker(s);let f=d.move("[");const h=r.containerPhrasing(e,{before:f,after:"]",...d.current()});f+=d.move(h+"]["),c();const g=r.stack;r.stack=[],c=r.enter("reference");const y=r.safe(r.associationId(e),{before:f,after:"]",...d.current()});return c(),r.stack=g,o(),l==="full"||!h||h!==y?f+=d.move(y+"]"):l==="shortcut"?f=f.slice(0,-1):f+=d.move("]"),f}function fC(){return"["}function Ed(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function pC(e){const t=Ed(e),r=e.options.bulletOther;if(!r)return t==="*"?"-":"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+r+"`) to be different");return r}function hC(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function Cy(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function mC(e,t,r,s){const l=r.enter("list"),o=r.bulletCurrent;let c=e.ordered?hC(r):Ed(r);const d=e.ordered?c==="."?")":".":pC(r);let f=t&&r.bulletLastUsed?c===r.bulletLastUsed:!1;if(!e.ordered){const g=e.children?e.children[0]:void 0;if((c==="*"||c==="-")&&g&&(!g.children||!g.children[0])&&r.stack[r.stack.length-1]==="list"&&r.stack[r.stack.length-2]==="listItem"&&r.stack[r.stack.length-3]==="list"&&r.stack[r.stack.length-4]==="listItem"&&r.indexStack[r.indexStack.length-1]===0&&r.indexStack[r.indexStack.length-2]===0&&r.indexStack[r.indexStack.length-3]===0&&(f=!0),Cy(r)===c&&g){let y=-1;for(;++y<e.children.length;){const k=e.children[y];if(k&&k.type==="listItem"&&k.children&&k.children[0]&&k.children[0].type==="thematicBreak"){f=!0;break}}}}f&&(c=d),r.bulletCurrent=c;const h=r.containerFlow(e,s);return r.bulletLastUsed=c,r.bulletCurrent=o,l(),h}function gC(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function yC(e,t,r,s){const l=gC(r);let o=r.bulletCurrent||Ed(r);t&&t.type==="list"&&t.ordered&&(o=(typeof t.start=="number"&&t.start>-1?t.start:1)+(r.options.incrementListMarker===!1?0:t.children.indexOf(e))+o);let c=o.length+1;(l==="tab"||l==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(c=Math.ceil(c/4)*4);const d=r.createTracker(s);d.move(o+" ".repeat(c-o.length)),d.shift(c);const f=r.enter("listItem"),h=r.indentLines(r.containerFlow(e,d.current()),g);return f(),h;function g(y,k,x){return k?(x?"":" ".repeat(c))+y:(x?o:o+" ".repeat(c-o.length))+y}}function vC(e,t,r,s){const l=r.enter("paragraph"),o=r.enter("phrasing"),c=r.containerPhrasing(e,s);return o(),l(),c}const xC=ga(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function kC(e,t,r,s){return(e.children.some(function(c){return xC(c)})?r.containerPhrasing:r.containerFlow).call(r,e,s)}function _C(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Ny.peek=wC;function Ny(e,t,r,s){const l=_C(r),o=r.enter("strong"),c=r.createTracker(s),d=c.move(l+l);let f=c.move(r.containerPhrasing(e,{after:l,before:d,...c.current()}));const h=f.charCodeAt(0),g=sa(s.before.charCodeAt(s.before.length-1),h,l);g.inside&&(f=kl(h)+f.slice(1));const y=f.charCodeAt(f.length-1),k=sa(s.after.charCodeAt(0),y,l);k.inside&&(f=f.slice(0,-1)+kl(y));const x=c.move(l+l);return o(),r.attentionEncodeSurroundingInfo={after:k.outside,before:g.outside},d+f+x}function wC(e,t,r){return r.options.strong||"*"}function bC(e,t,r,s){return r.safe(e.value,s)}function SC(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function CC(e,t,r){const s=(Cy(r)+(r.options.ruleSpaces?" ":"")).repeat(SC(r));return r.options.ruleSpaces?s.slice(0,-1):s}const jy={blockquote:ZS,break:$m,code:eC,definition:nC,emphasis:yy,hardBreak:$m,heading:lC,html:vy,image:xy,imageReference:ky,inlineCode:_y,link:by,linkReference:Sy,list:mC,listItem:yC,paragraph:vC,root:kC,strong:Ny,text:bC,thematicBreak:CC};function NC(){return{enter:{table:jC,tableData:Bm,tableHeader:Bm,tableRow:TC},exit:{codeText:IC,table:EC,tableData:Cu,tableHeader:Cu,tableRow:Cu}}}function jC(e){const t=e._align;this.enter({type:"table",align:t.map(function(r){return r==="none"?null:r}),children:[]},e),this.data.inTable=!0}function EC(e){this.exit(e),this.data.inTable=void 0}function TC(e){this.enter({type:"tableRow",children:[]},e)}function Cu(e){this.exit(e)}function Bm(e){this.enter({type:"tableCell",children:[]},e)}function IC(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,AC));const r=this.stack[this.stack.length-1];r.type,r.value=t,this.exit(e)}function AC(e,t){return t==="|"?t:e}function DC(e){const t=e||{},r=t.tableCellPadding,s=t.tablePipeAlign,l=t.stringLength,o=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
67
|
-
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:k,table:c,tableCell:f,tableRow:d}};function c(x,_,T,D){return h(g(x,T,D),x.align)}function d(x,_,T,D){const S=y(x,T,D),L=h([S]);return L.slice(0,L.indexOf(`
|
|
68
|
-
`))}function f(x,_,T,D){const S=T.enter("tableCell"),L=T.enter("phrasing"),E=T.containerPhrasing(x,{...D,before:o,after:o});return L(),S(),E}function h(x,_){return qS(x,{align:_,alignDelimiters:s,padding:r,stringLength:l})}function g(x,_,T){const D=x.children;let S=-1;const L=[],E=_.enter("table");for(;++S<D.length;)L[S]=y(D[S],_,T);return E(),L}function y(x,_,T){const D=x.children;let S=-1;const L=[],E=_.enter("tableRow");for(;++S<D.length;)L[S]=f(D[S],x,_,T);return E(),L}function k(x,_,T){let D=jy.inlineCode(x,_,T);return T.stack.includes("tableCell")&&(D=D.replace(/\|/g,"\\$&")),D}}function RC(){return{exit:{taskListCheckValueChecked:Fm,taskListCheckValueUnchecked:Fm,paragraph:LC}}}function PC(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:MC}}}function Fm(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function LC(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const r=this.stack[this.stack.length-1];r.type;const s=r.children[0];if(s&&s.type==="text"){const l=t.children;let o=-1,c;for(;++o<l.length;){const d=l[o];if(d.type==="paragraph"){c=d;break}}c===r&&(s.value=s.value.slice(1),s.value.length===0?r.children.shift():r.position&&s.position&&typeof s.position.start.offset=="number"&&(s.position.start.column++,s.position.start.offset++,r.position.start=Object.assign({},s.position.start)))}}this.exit(e)}function MC(e,t,r,s){const l=e.children[0],o=typeof e.checked=="boolean"&&l&&l.type==="paragraph",c="["+(e.checked?"x":" ")+"] ",d=r.createTracker(s);o&&d.move(c);let f=jy.listItem(e,t,r,{...s,...d.current()});return o&&(f=f.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,h)),f;function h(g){return g+c}}function OC(){return[mS(),MS(),BS(),NC(),RC()]}function zC(e){return{extensions:[gS(),OS(e),FS(),DC(e),PC()]}}const $C={tokenize:WC,partial:!0},Ey={tokenize:qC,partial:!0},Ty={tokenize:KC,partial:!0},Iy={tokenize:ZC,partial:!0},BC={tokenize:YC,partial:!0},Ay={name:"wwwAutolink",tokenize:UC,previous:Ry},Dy={name:"protocolAutolink",tokenize:HC,previous:Py},Mr={name:"emailAutolink",tokenize:VC,previous:Ly},Sr={};function FC(){return{text:Sr}}let ji=48;for(;ji<123;)Sr[ji]=Mr,ji++,ji===58?ji=65:ji===91&&(ji=97);Sr[43]=Mr;Sr[45]=Mr;Sr[46]=Mr;Sr[95]=Mr;Sr[72]=[Mr,Dy];Sr[104]=[Mr,Dy];Sr[87]=[Mr,Ay];Sr[119]=[Mr,Ay];function VC(e,t,r){const s=this;let l,o;return c;function c(y){return!qu(y)||!Ly.call(s,s.previous)||Td(s.events)?r(y):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),d(y))}function d(y){return qu(y)?(e.consume(y),d):y===64?(e.consume(y),f):r(y)}function f(y){return y===46?e.check(BC,g,h)(y):y===45||y===95||vn(y)?(o=!0,e.consume(y),f):g(y)}function h(y){return e.consume(y),l=!0,f}function g(y){return o&&l&&Sn(s.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(y)):r(y)}}function UC(e,t,r){const s=this;return l;function l(c){return c!==87&&c!==119||!Ry.call(s,s.previous)||Td(s.events)?r(c):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check($C,e.attempt(Ey,e.attempt(Ty,o),r),r)(c))}function o(c){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(c)}}function HC(e,t,r){const s=this;let l="",o=!1;return c;function c(y){return(y===72||y===104)&&Py.call(s,s.previous)&&!Td(s.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),l+=String.fromCodePoint(y),e.consume(y),d):r(y)}function d(y){if(Sn(y)&&l.length<5)return l+=String.fromCodePoint(y),e.consume(y),d;if(y===58){const k=l.toLowerCase();if(k==="http"||k==="https")return e.consume(y),f}return r(y)}function f(y){return y===47?(e.consume(y),o?h:(o=!0,f)):r(y)}function h(y){return y===null||na(y)||kt(y)||Di(y)||pa(y)?r(y):e.attempt(Ey,e.attempt(Ty,g),r)(y)}function g(y){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(y)}}function WC(e,t,r){let s=0;return l;function l(c){return(c===87||c===119)&&s<3?(s++,e.consume(c),l):c===46&&s===3?(e.consume(c),o):r(c)}function o(c){return c===null?r(c):t(c)}}function qC(e,t,r){let s,l,o;return c;function c(h){return h===46||h===95?e.check(Iy,f,d)(h):h===null||kt(h)||Di(h)||h!==45&&pa(h)?f(h):(o=!0,e.consume(h),c)}function d(h){return h===95?s=!0:(l=s,s=void 0),e.consume(h),c}function f(h){return l||s||!o?r(h):t(h)}}function KC(e,t){let r=0,s=0;return l;function l(c){return c===40?(r++,e.consume(c),l):c===41&&s<r?o(c):c===33||c===34||c===38||c===39||c===41||c===42||c===44||c===46||c===58||c===59||c===60||c===63||c===93||c===95||c===126?e.check(Iy,t,o)(c):c===null||kt(c)||Di(c)?t(c):(e.consume(c),l)}function o(c){return c===41&&s++,e.consume(c),l}}function ZC(e,t,r){return s;function s(d){return d===33||d===34||d===39||d===41||d===42||d===44||d===46||d===58||d===59||d===63||d===95||d===126?(e.consume(d),s):d===38?(e.consume(d),o):d===93?(e.consume(d),l):d===60||d===null||kt(d)||Di(d)?t(d):r(d)}function l(d){return d===null||d===40||d===91||kt(d)||Di(d)?t(d):s(d)}function o(d){return Sn(d)?c(d):r(d)}function c(d){return d===59?(e.consume(d),s):Sn(d)?(e.consume(d),c):r(d)}}function YC(e,t,r){return s;function s(o){return e.consume(o),l}function l(o){return vn(o)?r(o):t(o)}}function Ry(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||kt(e)}function Py(e){return!Sn(e)}function Ly(e){return!(e===47||qu(e))}function qu(e){return e===43||e===45||e===46||e===95||vn(e)}function Td(e){let t=e.length,r=!1;for(;t--;){const s=e[t][1];if((s.type==="labelLink"||s.type==="labelImage")&&!s._balanced){r=!0;break}if(s._gfmAutolinkLiteralWalkedInto){r=!1;break}}return e.length>0&&!r&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}const QC={tokenize:iN,partial:!0};function XC(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:tN,continuation:{tokenize:nN},exit:rN}},text:{91:{name:"gfmFootnoteCall",tokenize:eN},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:GC,resolveTo:JC}}}}function GC(e,t,r){const s=this;let l=s.events.length;const o=s.parser.gfmFootnotes||(s.parser.gfmFootnotes=[]);let c;for(;l--;){const f=s.events[l][1];if(f.type==="labelImage"){c=f;break}if(f.type==="gfmFootnoteCall"||f.type==="labelLink"||f.type==="label"||f.type==="image"||f.type==="link")break}return d;function d(f){if(!c||!c._balanced)return r(f);const h=dr(s.sliceSerialize({start:c.end,end:s.now()}));return h.codePointAt(0)!==94||!o.includes(h.slice(1))?r(f):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),t(f))}}function JC(e,t){let r=e.length;for(;r--;)if(e[r][1].type==="labelImage"&&e[r][0]==="enter"){e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";const s={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},l={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};l.end.column++,l.end.offset++,l.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},l.end),end:Object.assign({},e[e.length-1][1].start)},c={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},d=[e[r+1],e[r+2],["enter",s,t],e[r+3],e[r+4],["enter",l,t],["exit",l,t],["enter",o,t],["enter",c,t],["exit",c,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",s,t]];return e.splice(r,e.length-r+1,...d),e}function eN(e,t,r){const s=this,l=s.parser.gfmFootnotes||(s.parser.gfmFootnotes=[]);let o=0,c;return d;function d(y){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(y),e.exit("gfmFootnoteCallLabelMarker"),f}function f(y){return y!==94?r(y):(e.enter("gfmFootnoteCallMarker"),e.consume(y),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",h)}function h(y){if(o>999||y===93&&!c||y===null||y===91||kt(y))return r(y);if(y===93){e.exit("chunkString");const k=e.exit("gfmFootnoteCallString");return l.includes(dr(s.sliceSerialize(k)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(y),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):r(y)}return kt(y)||(c=!0),o++,e.consume(y),y===92?g:h}function g(y){return y===91||y===92||y===93?(e.consume(y),o++,h):h(y)}}function tN(e,t,r){const s=this,l=s.parser.gfmFootnotes||(s.parser.gfmFootnotes=[]);let o,c=0,d;return f;function f(_){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(_),e.exit("gfmFootnoteDefinitionLabelMarker"),h}function h(_){return _===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(_),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",g):r(_)}function g(_){if(c>999||_===93&&!d||_===null||_===91||kt(_))return r(_);if(_===93){e.exit("chunkString");const T=e.exit("gfmFootnoteDefinitionLabelString");return o=dr(s.sliceSerialize(T)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(_),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),k}return kt(_)||(d=!0),c++,e.consume(_),_===92?y:g}function y(_){return _===91||_===92||_===93?(e.consume(_),c++,g):g(_)}function k(_){return _===58?(e.enter("definitionMarker"),e.consume(_),e.exit("definitionMarker"),l.includes(o)||l.push(o),st(e,x,"gfmFootnoteDefinitionWhitespace")):r(_)}function x(_){return t(_)}}function nN(e,t,r){return e.check(Nl,t,e.attempt(QC,t,r))}function rN(e){e.exit("gfmFootnoteDefinition")}function iN(e,t,r){const s=this;return st(e,l,"gfmFootnoteDefinitionIndent",5);function l(o){const c=s.events[s.events.length-1];return c&&c[1].type==="gfmFootnoteDefinitionIndent"&&c[2].sliceSerialize(c[1],!0).length===4?t(o):r(o)}}function sN(e){let r=(e||{}).singleTilde;const s={name:"strikethrough",tokenize:o,resolveAll:l};return r==null&&(r=!0),{text:{126:s},insideSpan:{null:[s]},attentionMarkers:{null:[126]}};function l(c,d){let f=-1;for(;++f<c.length;)if(c[f][0]==="enter"&&c[f][1].type==="strikethroughSequenceTemporary"&&c[f][1]._close){let h=f;for(;h--;)if(c[h][0]==="exit"&&c[h][1].type==="strikethroughSequenceTemporary"&&c[h][1]._open&&c[f][1].end.offset-c[f][1].start.offset===c[h][1].end.offset-c[h][1].start.offset){c[f][1].type="strikethroughSequence",c[h][1].type="strikethroughSequence";const g={type:"strikethrough",start:Object.assign({},c[h][1].start),end:Object.assign({},c[f][1].end)},y={type:"strikethroughText",start:Object.assign({},c[h][1].end),end:Object.assign({},c[f][1].start)},k=[["enter",g,d],["enter",c[h][1],d],["exit",c[h][1],d],["enter",y,d]],x=d.parser.constructs.insideSpan.null;x&&Vn(k,k.length,0,ha(x,c.slice(h+1,f),d)),Vn(k,k.length,0,[["exit",y,d],["enter",c[f][1],d],["exit",c[f][1],d],["exit",g,d]]),Vn(c,h-1,f-h+3,k),f=h+k.length-2;break}}for(f=-1;++f<c.length;)c[f][1].type==="strikethroughSequenceTemporary"&&(c[f][1].type="data");return c}function o(c,d,f){const h=this.previous,g=this.events;let y=0;return k;function k(_){return h===126&&g[g.length-1][1].type!=="characterEscape"?f(_):(c.enter("strikethroughSequenceTemporary"),x(_))}function x(_){const T=ps(h);if(_===126)return y>1?f(_):(c.consume(_),y++,x);if(y<2&&!r)return f(_);const D=c.exit("strikethroughSequenceTemporary"),S=ps(_);return D._open=!S||S===2&&!!T,D._close=!T||T===2&&!!S,d(_)}}}class lN{constructor(){this.map=[]}add(t,r,s){oN(this,t,r,s)}consume(t){if(this.map.sort(function(o,c){return o[0]-c[0]}),this.map.length===0)return;let r=this.map.length;const s=[];for(;r>0;)r-=1,s.push(t.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),t.length=this.map[r][0];s.push(t.slice()),t.length=0;let l=s.pop();for(;l;){for(const o of l)t.push(o);l=s.pop()}this.map.length=0}}function oN(e,t,r,s){let l=0;if(!(r===0&&s.length===0)){for(;l<e.map.length;){if(e.map[l][0]===t){e.map[l][1]+=r,e.map[l][2].push(...s);return}l+=1}e.map.push([t,r,s])}}function aN(e,t){let r=!1;const s=[];for(;t<e.length;){const l=e[t];if(r){if(l[0]==="enter")l[1].type==="tableContent"&&s.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(l[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const o=s.length-1;s[o]=s[o]==="left"?"center":"right"}}else if(l[1].type==="tableDelimiterRow")break}else l[0]==="enter"&&l[1].type==="tableDelimiterRow"&&(r=!0);t+=1}return s}function cN(){return{flow:{null:{name:"table",tokenize:uN,resolveAll:dN}}}}function uN(e,t,r){const s=this;let l=0,o=0,c;return d;function d(z){let K=s.events.length-1;for(;K>-1;){const ee=s.events[K][1].type;if(ee==="lineEnding"||ee==="linePrefix")K--;else break}const ne=K>-1?s.events[K][1].type:null,xe=ne==="tableHead"||ne==="tableRow"?j:f;return xe===j&&s.parser.lazy[s.now().line]?r(z):xe(z)}function f(z){return e.enter("tableHead"),e.enter("tableRow"),h(z)}function h(z){return z===124||(c=!0,o+=1),g(z)}function g(z){return z===null?r(z):ze(z)?o>1?(o=0,s.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(z),e.exit("lineEnding"),x):r(z):nt(z)?st(e,g,"whitespace")(z):(o+=1,c&&(c=!1,l+=1),z===124?(e.enter("tableCellDivider"),e.consume(z),e.exit("tableCellDivider"),c=!0,g):(e.enter("data"),y(z)))}function y(z){return z===null||z===124||kt(z)?(e.exit("data"),g(z)):(e.consume(z),z===92?k:y)}function k(z){return z===92||z===124?(e.consume(z),y):y(z)}function x(z){return s.interrupt=!1,s.parser.lazy[s.now().line]?r(z):(e.enter("tableDelimiterRow"),c=!1,nt(z)?st(e,_,"linePrefix",s.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(z):_(z))}function _(z){return z===45||z===58?D(z):z===124?(c=!0,e.enter("tableCellDivider"),e.consume(z),e.exit("tableCellDivider"),T):P(z)}function T(z){return nt(z)?st(e,D,"whitespace")(z):D(z)}function D(z){return z===58?(o+=1,c=!0,e.enter("tableDelimiterMarker"),e.consume(z),e.exit("tableDelimiterMarker"),S):z===45?(o+=1,S(z)):z===null||ze(z)?R(z):P(z)}function S(z){return z===45?(e.enter("tableDelimiterFiller"),L(z)):P(z)}function L(z){return z===45?(e.consume(z),L):z===58?(c=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(z),e.exit("tableDelimiterMarker"),E):(e.exit("tableDelimiterFiller"),E(z))}function E(z){return nt(z)?st(e,R,"whitespace")(z):R(z)}function R(z){return z===124?_(z):z===null||ze(z)?!c||l!==o?P(z):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(z)):P(z)}function P(z){return r(z)}function j(z){return e.enter("tableRow"),H(z)}function H(z){return z===124?(e.enter("tableCellDivider"),e.consume(z),e.exit("tableCellDivider"),H):z===null||ze(z)?(e.exit("tableRow"),t(z)):nt(z)?st(e,H,"whitespace")(z):(e.enter("data"),Z(z))}function Z(z){return z===null||z===124||kt(z)?(e.exit("data"),H(z)):(e.consume(z),z===92?G:Z)}function G(z){return z===92||z===124?(e.consume(z),Z):Z(z)}}function dN(e,t){let r=-1,s=!0,l=0,o=[0,0,0,0],c=[0,0,0,0],d=!1,f=0,h,g,y;const k=new lN;for(;++r<e.length;){const x=e[r],_=x[1];x[0]==="enter"?_.type==="tableHead"?(d=!1,f!==0&&(Vm(k,t,f,h,g),g=void 0,f=0),h={type:"table",start:Object.assign({},_.start),end:Object.assign({},_.end)},k.add(r,0,[["enter",h,t]])):_.type==="tableRow"||_.type==="tableDelimiterRow"?(s=!0,y=void 0,o=[0,0,0,0],c=[0,r+1,0,0],d&&(d=!1,g={type:"tableBody",start:Object.assign({},_.start),end:Object.assign({},_.end)},k.add(r,0,[["enter",g,t]])),l=_.type==="tableDelimiterRow"?2:g?3:1):l&&(_.type==="data"||_.type==="tableDelimiterMarker"||_.type==="tableDelimiterFiller")?(s=!1,c[2]===0&&(o[1]!==0&&(c[0]=c[1],y=Ho(k,t,o,l,void 0,y),o=[0,0,0,0]),c[2]=r)):_.type==="tableCellDivider"&&(s?s=!1:(o[1]!==0&&(c[0]=c[1],y=Ho(k,t,o,l,void 0,y)),o=c,c=[o[1],r,0,0])):_.type==="tableHead"?(d=!0,f=r):_.type==="tableRow"||_.type==="tableDelimiterRow"?(f=r,o[1]!==0?(c[0]=c[1],y=Ho(k,t,o,l,r,y)):c[1]!==0&&(y=Ho(k,t,c,l,r,y)),l=0):l&&(_.type==="data"||_.type==="tableDelimiterMarker"||_.type==="tableDelimiterFiller")&&(c[3]=r)}for(f!==0&&Vm(k,t,f,h,g),k.consume(t.events),r=-1;++r<t.events.length;){const x=t.events[r];x[0]==="enter"&&x[1].type==="table"&&(x[1]._align=aN(t.events,r))}return e}function Ho(e,t,r,s,l,o){const c=s===1?"tableHeader":s===2?"tableDelimiter":"tableData",d="tableContent";r[0]!==0&&(o.end=Object.assign({},ls(t.events,r[0])),e.add(r[0],0,[["exit",o,t]]));const f=ls(t.events,r[1]);if(o={type:c,start:Object.assign({},f),end:Object.assign({},f)},e.add(r[1],0,[["enter",o,t]]),r[2]!==0){const h=ls(t.events,r[2]),g=ls(t.events,r[3]),y={type:d,start:Object.assign({},h),end:Object.assign({},g)};if(e.add(r[2],0,[["enter",y,t]]),s!==2){const k=t.events[r[2]],x=t.events[r[3]];if(k[1].end=Object.assign({},x[1].end),k[1].type="chunkText",k[1].contentType="text",r[3]>r[2]+1){const _=r[2]+1,T=r[3]-r[2]-1;e.add(_,T,[])}}e.add(r[3]+1,0,[["exit",y,t]])}return l!==void 0&&(o.end=Object.assign({},ls(t.events,l)),e.add(l,0,[["exit",o,t]]),o=void 0),o}function Vm(e,t,r,s,l){const o=[],c=ls(t.events,r);l&&(l.end=Object.assign({},c),o.push(["exit",l,t])),s.end=Object.assign({},c),o.push(["exit",s,t]),e.add(r+1,0,o)}function ls(e,t){const r=e[t],s=r[0]==="enter"?"start":"end";return r[1][s]}const fN={name:"tasklistCheck",tokenize:hN};function pN(){return{text:{91:fN}}}function hN(e,t,r){const s=this;return l;function l(f){return s.previous!==null||!s._gfmTasklistFirstContentOfListItem?r(f):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(f),e.exit("taskListCheckMarker"),o)}function o(f){return kt(f)?(e.enter("taskListCheckValueUnchecked"),e.consume(f),e.exit("taskListCheckValueUnchecked"),c):f===88||f===120?(e.enter("taskListCheckValueChecked"),e.consume(f),e.exit("taskListCheckValueChecked"),c):r(f)}function c(f){return f===93?(e.enter("taskListCheckMarker"),e.consume(f),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),d):r(f)}function d(f){return ze(f)?t(f):nt(f)?e.check({tokenize:mN},t,r)(f):r(f)}}function mN(e,t,r){return st(e,s,"whitespace");function s(l){return l===null?r(l):t(l)}}function gN(e){return qg([FC(),XC(),sN(e),cN(),pN()])}const yN={};function _l(e){const t=this,r=e||yN,s=t.data(),l=s.micromarkExtensions||(s.micromarkExtensions=[]),o=s.fromMarkdownExtensions||(s.fromMarkdownExtensions=[]),c=s.toMarkdownExtensions||(s.toMarkdownExtensions=[]);l.push(gN(r)),o.push(OC()),c.push(zC(r))}const la={proposed:"status.proposed",backlog:"status.backlog",todo:"status.todo",in_progress:"status.in_progress",pending:"status.pending",done:"status.done"};function Id(e,t){if(t.label!==void 0)return t.label;const r=la[t.id];return r!==void 0?e(r):t.id}function El(e,t){const r=new Map(t.map(s=>[s.id,Id(e,s)]));return s=>r.get(s)??e(la[s])}function ys(e){const t=new Map(e.map(r=>[r.id,r.label??r.id]));return r=>t.get(r)??r}const vN="_view_13xsq_1",xN="_list_13xsq_8",kN="_search_13xsq_18",_N="_searchInput_13xsq_23",wN="_listScroll_13xsq_39",bN="_monthGroup_13xsq_45",SN="_monthName_13xsq_49",CN="_taskList_13xsq_57",NN="_taskBtn_13xsq_66",jN="_taskBtnActive_13xsq_89",EN="_taskId_13xsq_99",TN="_taskTitle_13xsq_105",IN="_detail_13xsq_113",AN="_detailHeader_13xsq_120",DN="_detailHeadText_13xsq_127",RN="_detailTitle_13xsq_132",PN="_meta_13xsq_139",LN="_metaId_13xsq_148",MN="_labels_13xsq_152",ON="_label_13xsq_152",zN="_restoreBtn_13xsq_164",$N="_markdown_13xsq_191",BN="_muted_13xsq_210",FN="_error_13xsq_215",bt={view:vN,list:xN,search:kN,searchInput:_N,listScroll:wN,monthGroup:bN,monthName:SN,taskList:CN,taskBtn:NN,taskBtnActive:jN,taskId:EN,taskTitle:TN,detail:IN,detailHeader:AN,detailHeadText:DN,detailTitle:RN,meta:PN,metaId:LN,labels:MN,label:ON,restoreBtn:zN,markdown:$N,muted:BN,error:FN};function VN({board:e,onChanged:t,onError:r}){const{t:s}=vt(),[l,o]=b.useState(null),[c,d]=b.useState(!1),[f,h]=b.useState(""),[g,y]=b.useState(null),[k,x]=b.useState(!1);b.useEffect(()=>{let R=!0;const P=new AbortController;return(async()=>{try{const j=await id(P.signal);R&&(o(j.tasks),d(!1))}catch{R&&(o([]),d(!0))}})(),()=>{R=!1,P.abort()}},[e]);const _=b.useMemo(()=>El(s,e.config.columns),[s,e.config.columns]),T=b.useMemo(()=>ys(e.config.members),[e.config.members]),D=b.useMemo(()=>{const R=l??[],P=f.trim().toLowerCase();return P===""?R:R.filter(j=>[j.id,j.title??"",(j.labels??[]).join(" "),j.assignee??"",j.body].some(Z=>Z.toLowerCase().includes(P)))},[l,f]),S=b.useMemo(()=>{const R=new Map;for(const P of D){const j=P.month??"",H=R.get(j);H?H.push(P):R.set(j,[P])}return[...R.entries()].sort((P,j)=>P[0]===""&&j[0]===""?0:P[0]===""?1:j[0]===""?-1:j[0].localeCompare(P[0])).map(([P,j])=>({month:P,tasks:j.slice().sort((H,Z)=>H.id.localeCompare(Z.id,"en",{numeric:!0}))}))},[D]),L=g!==null?D.find(R=>R.id===g)??null:null,E=async R=>{if(!(typeof window<"u"&&!window.confirm(s("archive.view.restoreConfirm",{id:R})))){x(!0);try{await yk(R),y(null),t()}catch(P){const j=P instanceof br||P instanceof Error?P.message:s("archive.view.restoreError");r(j)}finally{x(!1)}}};return p.jsxs("div",{className:bt.view,children:[p.jsxs("nav",{className:bt.list,"aria-label":s("archive.view.listTitle"),children:[p.jsx("div",{className:bt.search,children:p.jsx("input",{className:bt.searchInput,type:"search",value:f,onChange:R=>h(R.target.value),placeholder:s("archive.view.searchPlaceholder"),"aria-label":s("archive.view.searchPlaceholder")})}),p.jsx("div",{className:bt.listScroll,children:c?p.jsx("p",{className:bt.error,role:"alert",children:s("archive.view.loadError")}):l===null?p.jsx("p",{className:bt.muted,children:s("board.loading")}):D.length===0?p.jsx("p",{className:bt.muted,children:f.trim()===""?s("archive.view.empty"):s("archive.view.noMatch")}):S.map(R=>p.jsxs("div",{className:bt.monthGroup,children:[p.jsx("span",{className:bt.monthName,children:R.month||s("archive.view.noMonth")}),p.jsx("ul",{className:bt.taskList,children:R.tasks.map(P=>p.jsx("li",{children:p.jsxs("button",{type:"button",className:`${bt.taskBtn} ${g===P.id?bt.taskBtnActive:""}`,onClick:()=>y(P.id),"aria-current":g===P.id?"true":void 0,children:[p.jsx("span",{className:bt.taskId,children:P.id})," ",p.jsx("span",{className:bt.taskTitle,children:P.title??P.id})]})},P.id))})]},R.month||"__none__"))})]}),p.jsx("section",{className:bt.detail,"aria-label":s("view.archive"),children:L===null?p.jsx("p",{className:bt.muted,children:s("archive.view.selectPrompt")}):p.jsxs(p.Fragment,{children:[p.jsxs("div",{className:bt.detailHeader,children:[p.jsxs("div",{className:bt.detailHeadText,children:[p.jsx("h2",{className:bt.detailTitle,children:L.title??L.id}),p.jsxs("p",{className:bt.meta,children:[p.jsx("span",{className:bt.metaId,children:L.id}),L.status!==void 0&&p.jsx("span",{children:_(L.status)}),L.month!==null&&p.jsx("span",{children:L.month}),L.assignee!=null&&L.assignee!==""&&p.jsx("span",{children:T(L.assignee)}),L.labels!==void 0&&L.labels.length>0&&p.jsx("span",{className:bt.labels,children:L.labels.map(R=>p.jsx("span",{className:bt.label,children:R},R))})]})]}),p.jsx("button",{type:"button",className:bt.restoreBtn,onClick:()=>void E(L.id),disabled:k,children:s("archive.view.restore")})]}),p.jsx("div",{className:bt.markdown,children:p.jsx(xl,{remarkPlugins:[_l],children:L.body})})]})})]})}var al=yg();const va=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function vs(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function Ad(e){return"nodeType"in e}function Ln(e){var t,r;return e?vs(e)?e:Ad(e)&&(t=(r=e.ownerDocument)==null?void 0:r.defaultView)!=null?t:window:window}function Dd(e){const{Document:t}=Ln(e);return e instanceof t}function Tl(e){return vs(e)?!1:e instanceof Ln(e).HTMLElement}function My(e){return e instanceof Ln(e).SVGElement}function xs(e){return e?vs(e)?e.document:Ad(e)?Dd(e)?e:Tl(e)||My(e)?e.ownerDocument:document:document:document}const ui=va?b.useLayoutEffect:b.useEffect;function Rd(e){const t=b.useRef(e);return ui(()=>{t.current=e}),b.useCallback(function(){for(var r=arguments.length,s=new Array(r),l=0;l<r;l++)s[l]=arguments[l];return t.current==null?void 0:t.current(...s)},[])}function UN(){const e=b.useRef(null),t=b.useCallback((s,l)=>{e.current=setInterval(s,l)},[]),r=b.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,r]}function wl(e,t){t===void 0&&(t=[e]);const r=b.useRef(e);return ui(()=>{r.current!==e&&(r.current=e)},t),r}function Il(e,t){const r=b.useRef();return b.useMemo(()=>{const s=e(r.current);return r.current=s,s},[...t])}function oa(e){const t=Rd(e),r=b.useRef(null),s=b.useCallback(l=>{l!==r.current&&(t==null||t(l,r.current)),r.current=l},[]);return[r,s]}function Ku(e){const t=b.useRef();return b.useEffect(()=>{t.current=e},[e]),t.current}let Nu={};function xa(e,t){return b.useMemo(()=>{if(t)return t;const r=Nu[e]==null?0:Nu[e]+1;return Nu[e]=r,e+"-"+r},[e,t])}function Oy(e){return function(t){for(var r=arguments.length,s=new Array(r>1?r-1:0),l=1;l<r;l++)s[l-1]=arguments[l];return s.reduce((o,c)=>{const d=Object.entries(c);for(const[f,h]of d){const g=o[f];g!=null&&(o[f]=g+e*h)}return o},{...t})}}const os=Oy(1),aa=Oy(-1);function HN(e){return"clientX"in e&&"clientY"in e}function zy(e){if(!e)return!1;const{KeyboardEvent:t}=Ln(e.target);return t&&e instanceof t}function WN(e){if(!e)return!1;const{TouchEvent:t}=Ln(e.target);return t&&e instanceof t}function Zu(e){if(WN(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:r}=e.touches[0];return{x:t,y:r}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:r}=e.changedTouches[0];return{x:t,y:r}}}return HN(e)?{x:e.clientX,y:e.clientY}:null}const Yu=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:r}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(r?Math.round(r):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:r}=e;return"scaleX("+t+") scaleY("+r+")"}},Transform:{toString(e){if(e)return[Yu.Translate.toString(e),Yu.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:r,easing:s}=e;return t+" "+r+"ms "+s}}}),Um="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function qN(e){return e.matches(Um)?e:e.querySelector(Um)}const KN={display:"none"};function ZN(e){let{id:t,value:r}=e;return Gn.createElement("div",{id:t,style:KN},r)}function YN(e){let{id:t,announcement:r,ariaLiveType:s="assertive"}=e;const l={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 Gn.createElement("div",{id:t,style:l,role:"status","aria-live":s,"aria-atomic":!0},r)}function QN(){const[e,t]=b.useState("");return{announce:b.useCallback(s=>{s!=null&&t(s)},[]),announcement:e}}const $y=b.createContext(null);function XN(e){const t=b.useContext($y);b.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function GN(){const[e]=b.useState(()=>new Set),t=b.useCallback(s=>(e.add(s),()=>e.delete(s)),[e]);return[b.useCallback(s=>{let{type:l,event:o}=s;e.forEach(c=>{var d;return(d=c[l])==null?void 0:d.call(c,o)})},[e]),t]}const JN={draggable:`
|
|
69
|
-
To pick up a draggable item, press the space bar.
|
|
70
|
-
While dragging, use the arrow keys to move the item.
|
|
71
|
-
Press space again to drop the item in its new position, or press escape to cancel.
|
|
72
|
-
`},ej={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:r}=e;return r?"Draggable item "+t.id+" was moved over droppable area "+r.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:r}=e;return r?"Draggable item "+t.id+" was dropped over droppable area "+r.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function tj(e){let{announcements:t=ej,container:r,hiddenTextDescribedById:s,screenReaderInstructions:l=JN}=e;const{announce:o,announcement:c}=QN(),d=xa("DndLiveRegion"),[f,h]=b.useState(!1);if(b.useEffect(()=>{h(!0)},[]),XN(b.useMemo(()=>({onDragStart(y){let{active:k}=y;o(t.onDragStart({active:k}))},onDragMove(y){let{active:k,over:x}=y;t.onDragMove&&o(t.onDragMove({active:k,over:x}))},onDragOver(y){let{active:k,over:x}=y;o(t.onDragOver({active:k,over:x}))},onDragEnd(y){let{active:k,over:x}=y;o(t.onDragEnd({active:k,over:x}))},onDragCancel(y){let{active:k,over:x}=y;o(t.onDragCancel({active:k,over:x}))}}),[o,t])),!f)return null;const g=Gn.createElement(Gn.Fragment,null,Gn.createElement(ZN,{id:s,value:l.draggable}),Gn.createElement(YN,{id:d,announcement:c}));return r?al.createPortal(g,r):g}var Jt;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(Jt||(Jt={}));function ca(){}function Hm(e,t){return b.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function nj(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return b.useMemo(()=>[...t].filter(s=>s!=null),[...t])}const fr=Object.freeze({x:0,y:0});function rj(e,t){let{data:{value:r}}=e,{data:{value:s}}=t;return s-r}function ij(e,t){if(!e||e.length===0)return null;const[r]=e;return r[t]}function sj(e,t){const r=Math.max(t.top,e.top),s=Math.max(t.left,e.left),l=Math.min(t.left+t.width,e.left+e.width),o=Math.min(t.top+t.height,e.top+e.height),c=l-s,d=o-r;if(s<l&&r<o){const f=t.width*t.height,h=e.width*e.height,g=c*d,y=g/(f+h-g);return Number(y.toFixed(4))}return 0}const lj=e=>{let{collisionRect:t,droppableRects:r,droppableContainers:s}=e;const l=[];for(const o of s){const{id:c}=o,d=r.get(c);if(d){const f=sj(d,t);f>0&&l.push({id:c,data:{droppableContainer:o,value:f}})}}return l.sort(rj)};function oj(e,t,r){return{...e,scaleX:t&&r?t.width/r.width:1,scaleY:t&&r?t.height/r.height:1}}function By(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:fr}function aj(e){return function(r){for(var s=arguments.length,l=new Array(s>1?s-1:0),o=1;o<s;o++)l[o-1]=arguments[o];return l.reduce((c,d)=>({...c,top:c.top+e*d.y,bottom:c.bottom+e*d.y,left:c.left+e*d.x,right:c.right+e*d.x}),{...r})}}const cj=aj(1);function uj(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function dj(e,t,r){const s=uj(t);if(!s)return e;const{scaleX:l,scaleY:o,x:c,y:d}=s,f=e.left-c-(1-l)*parseFloat(r),h=e.top-d-(1-o)*parseFloat(r.slice(r.indexOf(" ")+1)),g=l?e.width/l:e.width,y=o?e.height/o:e.height;return{width:g,height:y,top:h,right:f+g,bottom:h+y,left:f}}const fj={ignoreTransform:!1};function Al(e,t){t===void 0&&(t=fj);let r=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:h,transformOrigin:g}=Ln(e).getComputedStyle(e);h&&(r=dj(r,h,g))}const{top:s,left:l,width:o,height:c,bottom:d,right:f}=r;return{top:s,left:l,width:o,height:c,bottom:d,right:f}}function Wm(e){return Al(e,{ignoreTransform:!0})}function pj(e){const t=e.innerWidth,r=e.innerHeight;return{top:0,left:0,right:t,bottom:r,width:t,height:r}}function hj(e,t){return t===void 0&&(t=Ln(e).getComputedStyle(e)),t.position==="fixed"}function mj(e,t){t===void 0&&(t=Ln(e).getComputedStyle(e));const r=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(l=>{const o=t[l];return typeof o=="string"?r.test(o):!1})}function Pd(e,t){const r=[];function s(l){if(t!=null&&r.length>=t||!l)return r;if(Dd(l)&&l.scrollingElement!=null&&!r.includes(l.scrollingElement))return r.push(l.scrollingElement),r;if(!Tl(l)||My(l)||r.includes(l))return r;const o=Ln(e).getComputedStyle(l);return l!==e&&mj(l,o)&&r.push(l),hj(l,o)?r:s(l.parentNode)}return e?s(e):r}function Fy(e){const[t]=Pd(e,1);return t??null}function ju(e){return!va||!e?null:vs(e)?e:Ad(e)?Dd(e)||e===xs(e).scrollingElement?window:Tl(e)?e:null:null}function Vy(e){return vs(e)?e.scrollX:e.scrollLeft}function Uy(e){return vs(e)?e.scrollY:e.scrollTop}function Qu(e){return{x:Vy(e),y:Uy(e)}}var sn;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(sn||(sn={}));function Hy(e){return!va||!e?!1:e===document.scrollingElement}function Wy(e){const t={x:0,y:0},r=Hy(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},s={x:e.scrollWidth-r.width,y:e.scrollHeight-r.height},l=e.scrollTop<=t.y,o=e.scrollLeft<=t.x,c=e.scrollTop>=s.y,d=e.scrollLeft>=s.x;return{isTop:l,isLeft:o,isBottom:c,isRight:d,maxScroll:s,minScroll:t}}const gj={x:.2,y:.2};function yj(e,t,r,s,l){let{top:o,left:c,right:d,bottom:f}=r;s===void 0&&(s=10),l===void 0&&(l=gj);const{isTop:h,isBottom:g,isLeft:y,isRight:k}=Wy(e),x={x:0,y:0},_={x:0,y:0},T={height:t.height*l.y,width:t.width*l.x};return!h&&o<=t.top+T.height?(x.y=sn.Backward,_.y=s*Math.abs((t.top+T.height-o)/T.height)):!g&&f>=t.bottom-T.height&&(x.y=sn.Forward,_.y=s*Math.abs((t.bottom-T.height-f)/T.height)),!k&&d>=t.right-T.width?(x.x=sn.Forward,_.x=s*Math.abs((t.right-T.width-d)/T.width)):!y&&c<=t.left+T.width&&(x.x=sn.Backward,_.x=s*Math.abs((t.left+T.width-c)/T.width)),{direction:x,speed:_}}function vj(e){if(e===document.scrollingElement){const{innerWidth:o,innerHeight:c}=window;return{top:0,left:0,right:o,bottom:c,width:o,height:c}}const{top:t,left:r,right:s,bottom:l}=e.getBoundingClientRect();return{top:t,left:r,right:s,bottom:l,width:e.clientWidth,height:e.clientHeight}}function qy(e){return e.reduce((t,r)=>os(t,Qu(r)),fr)}function xj(e){return e.reduce((t,r)=>t+Vy(r),0)}function kj(e){return e.reduce((t,r)=>t+Uy(r),0)}function _j(e,t){if(t===void 0&&(t=Al),!e)return;const{top:r,left:s,bottom:l,right:o}=t(e);Fy(e)&&(l<=0||o<=0||r>=window.innerHeight||s>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const wj=[["x",["left","right"],xj],["y",["top","bottom"],kj]];class Ld{constructor(t,r){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 s=Pd(r),l=qy(s);this.rect={...t},this.width=t.width,this.height=t.height;for(const[o,c,d]of wj)for(const f of c)Object.defineProperty(this,f,{get:()=>{const h=d(s),g=l[o]-h;return this.rect[f]+g},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class fl{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(r=>{var s;return(s=this.target)==null?void 0:s.removeEventListener(...r)})},this.target=t}add(t,r,s){var l;(l=this.target)==null||l.addEventListener(t,r,s),this.listeners.push([t,r,s])}}function bj(e){const{EventTarget:t}=Ln(e);return e instanceof t?e:xs(e)}function Eu(e,t){const r=Math.abs(e.x),s=Math.abs(e.y);return typeof t=="number"?Math.sqrt(r**2+s**2)>t:"x"in t&&"y"in t?r>t.x&&s>t.y:"x"in t?r>t.x:"y"in t?s>t.y:!1}var Xn;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(Xn||(Xn={}));function qm(e){e.preventDefault()}function Sj(e){e.stopPropagation()}var ut;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(ut||(ut={}));const Ky={start:[ut.Space,ut.Enter],cancel:[ut.Esc],end:[ut.Space,ut.Enter,ut.Tab]},Cj=(e,t)=>{let{currentCoordinates:r}=t;switch(e.code){case ut.Right:return{...r,x:r.x+25};case ut.Left:return{...r,x:r.x-25};case ut.Down:return{...r,y:r.y+25};case ut.Up:return{...r,y:r.y-25}}};class Md{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:r}}=t;this.props=t,this.listeners=new fl(xs(r)),this.windowListeners=new fl(Ln(r)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(Xn.Resize,this.handleCancel),this.windowListeners.add(Xn.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(Xn.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:r}=this.props,s=t.node.current;s&&_j(s),r(fr)}handleKeyDown(t){if(zy(t)){const{active:r,context:s,options:l}=this.props,{keyboardCodes:o=Ky,coordinateGetter:c=Cj,scrollBehavior:d="smooth"}=l,{code:f}=t;if(o.end.includes(f)){this.handleEnd(t);return}if(o.cancel.includes(f)){this.handleCancel(t);return}const{collisionRect:h}=s.current,g=h?{x:h.left,y:h.top}:fr;this.referenceCoordinates||(this.referenceCoordinates=g);const y=c(t,{active:r,context:s.current,currentCoordinates:g});if(y){const k=aa(y,g),x={x:0,y:0},{scrollableAncestors:_}=s.current;for(const T of _){const D=t.code,{isTop:S,isRight:L,isLeft:E,isBottom:R,maxScroll:P,minScroll:j}=Wy(T),H=vj(T),Z={x:Math.min(D===ut.Right?H.right-H.width/2:H.right,Math.max(D===ut.Right?H.left:H.left+H.width/2,y.x)),y:Math.min(D===ut.Down?H.bottom-H.height/2:H.bottom,Math.max(D===ut.Down?H.top:H.top+H.height/2,y.y))},G=D===ut.Right&&!L||D===ut.Left&&!E,z=D===ut.Down&&!R||D===ut.Up&&!S;if(G&&Z.x!==y.x){const K=T.scrollLeft+k.x,ne=D===ut.Right&&K<=P.x||D===ut.Left&&K>=j.x;if(ne&&!k.y){T.scrollTo({left:K,behavior:d});return}ne?x.x=T.scrollLeft-K:x.x=D===ut.Right?T.scrollLeft-P.x:T.scrollLeft-j.x,x.x&&T.scrollBy({left:-x.x,behavior:d});break}else if(z&&Z.y!==y.y){const K=T.scrollTop+k.y,ne=D===ut.Down&&K<=P.y||D===ut.Up&&K>=j.y;if(ne&&!k.x){T.scrollTo({top:K,behavior:d});return}ne?x.y=T.scrollTop-K:x.y=D===ut.Down?T.scrollTop-P.y:T.scrollTop-j.y,x.y&&T.scrollBy({top:-x.y,behavior:d});break}}this.handleMove(t,os(aa(y,this.referenceCoordinates),x))}}}handleMove(t,r){const{onMove:s}=this.props;t.preventDefault(),s(r)}handleEnd(t){const{onEnd:r}=this.props;t.preventDefault(),this.detach(),r()}handleCancel(t){const{onCancel:r}=this.props;t.preventDefault(),this.detach(),r()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}Md.activators=[{eventName:"onKeyDown",handler:(e,t,r)=>{let{keyboardCodes:s=Ky,onActivation:l}=t,{active:o}=r;const{code:c}=e.nativeEvent;if(s.start.includes(c)){const d=o.activatorNode.current;return d&&e.target!==d?!1:(e.preventDefault(),l==null||l({event:e.nativeEvent}),!0)}return!1}}];function Km(e){return!!(e&&"distance"in e)}function Zm(e){return!!(e&&"delay"in e)}class Od{constructor(t,r,s){var l;s===void 0&&(s=bj(t.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=t,this.events=r;const{event:o}=t,{target:c}=o;this.props=t,this.events=r,this.document=xs(c),this.documentListeners=new fl(this.document),this.listeners=new fl(s),this.windowListeners=new fl(Ln(c)),this.initialCoordinates=(l=Zu(o))!=null?l:fr,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:t,props:{options:{activationConstraint:r,bypassActivationConstraint:s}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add(Xn.Resize,this.handleCancel),this.windowListeners.add(Xn.DragStart,qm),this.windowListeners.add(Xn.VisibilityChange,this.handleCancel),this.windowListeners.add(Xn.ContextMenu,qm),this.documentListeners.add(Xn.Keydown,this.handleKeydown),r){if(s!=null&&s({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Zm(r)){this.timeoutId=setTimeout(this.handleStart,r.delay),this.handlePending(r);return}if(Km(r)){this.handlePending(r);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(t,r){const{active:s,onPending:l}=this.props;l(s,t,this.initialCoordinates,r)}handleStart(){const{initialCoordinates:t}=this,{onStart:r}=this.props;t&&(this.activated=!0,this.documentListeners.add(Xn.Click,Sj,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(Xn.SelectionChange,this.removeTextSelection),r(t))}handleMove(t){var r;const{activated:s,initialCoordinates:l,props:o}=this,{onMove:c,options:{activationConstraint:d}}=o;if(!l)return;const f=(r=Zu(t))!=null?r:fr,h=aa(l,f);if(!s&&d){if(Km(d)){if(d.tolerance!=null&&Eu(h,d.tolerance))return this.handleCancel();if(Eu(h,d.distance))return this.handleStart()}if(Zm(d)&&Eu(h,d.tolerance))return this.handleCancel();this.handlePending(d,h);return}t.cancelable&&t.preventDefault(),c(f)}handleEnd(){const{onAbort:t,onEnd:r}=this.props;this.detach(),this.activated||t(this.props.active),r()}handleCancel(){const{onAbort:t,onCancel:r}=this.props;this.detach(),this.activated||t(this.props.active),r()}handleKeydown(t){t.code===ut.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const Nj={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class zd extends Od{constructor(t){const{event:r}=t,s=xs(r.target);super(t,Nj,s)}}zd.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:s}=t;return!r.isPrimary||r.button!==0?!1:(s==null||s({event:r}),!0)}}];const jj={move:{name:"mousemove"},end:{name:"mouseup"}};var Xu;(function(e){e[e.RightClick=2]="RightClick"})(Xu||(Xu={}));class Ej extends Od{constructor(t){super(t,jj,xs(t.event.target))}}Ej.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:s}=t;return r.button===Xu.RightClick?!1:(s==null||s({event:r}),!0)}}];const Tu={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class Tj extends Od{constructor(t){super(t,Tu)}static setup(){return window.addEventListener(Tu.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(Tu.move.name,t)};function t(){}}}Tj.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:s}=t;const{touches:l}=r;return l.length>1?!1:(s==null||s({event:r}),!0)}}];var pl;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(pl||(pl={}));var ua;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(ua||(ua={}));function Ij(e){let{acceleration:t,activator:r=pl.Pointer,canScroll:s,draggingRect:l,enabled:o,interval:c=5,order:d=ua.TreeOrder,pointerCoordinates:f,scrollableAncestors:h,scrollableAncestorRects:g,delta:y,threshold:k}=e;const x=Dj({delta:y,disabled:!o}),[_,T]=UN(),D=b.useRef({x:0,y:0}),S=b.useRef({x:0,y:0}),L=b.useMemo(()=>{switch(r){case pl.Pointer:return f?{top:f.y,bottom:f.y,left:f.x,right:f.x}:null;case pl.DraggableRect:return l}},[r,l,f]),E=b.useRef(null),R=b.useCallback(()=>{const j=E.current;if(!j)return;const H=D.current.x*S.current.x,Z=D.current.y*S.current.y;j.scrollBy(H,Z)},[]),P=b.useMemo(()=>d===ua.TreeOrder?[...h].reverse():h,[d,h]);b.useEffect(()=>{if(!o||!h.length||!L){T();return}for(const j of P){if((s==null?void 0:s(j))===!1)continue;const H=h.indexOf(j),Z=g[H];if(!Z)continue;const{direction:G,speed:z}=yj(j,Z,L,t,k);for(const K of["x","y"])x[K][G[K]]||(z[K]=0,G[K]=0);if(z.x>0||z.y>0){T(),E.current=j,_(R,c),D.current=z,S.current=G;return}}D.current={x:0,y:0},S.current={x:0,y:0},T()},[t,R,s,T,o,c,JSON.stringify(L),JSON.stringify(x),_,h,P,g,JSON.stringify(k)])}const Aj={x:{[sn.Backward]:!1,[sn.Forward]:!1},y:{[sn.Backward]:!1,[sn.Forward]:!1}};function Dj(e){let{delta:t,disabled:r}=e;const s=Ku(t);return Il(l=>{if(r||!s||!l)return Aj;const o={x:Math.sign(t.x-s.x),y:Math.sign(t.y-s.y)};return{x:{[sn.Backward]:l.x[sn.Backward]||o.x===-1,[sn.Forward]:l.x[sn.Forward]||o.x===1},y:{[sn.Backward]:l.y[sn.Backward]||o.y===-1,[sn.Forward]:l.y[sn.Forward]||o.y===1}}},[r,t,s])}function Rj(e,t){const r=t!=null?e.get(t):void 0,s=r?r.node.current:null;return Il(l=>{var o;return t==null?null:(o=s??l)!=null?o:null},[s,t])}function Pj(e,t){return b.useMemo(()=>e.reduce((r,s)=>{const{sensor:l}=s,o=l.activators.map(c=>({eventName:c.eventName,handler:t(c.handler,s)}));return[...r,...o]},[]),[e,t])}var bl;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(bl||(bl={}));var Gu;(function(e){e.Optimized="optimized"})(Gu||(Gu={}));const Ym=new Map;function Lj(e,t){let{dragging:r,dependencies:s,config:l}=t;const[o,c]=b.useState(null),{frequency:d,measure:f,strategy:h}=l,g=b.useRef(e),y=D(),k=wl(y),x=b.useCallback(function(S){S===void 0&&(S=[]),!k.current&&c(L=>L===null?S:L.concat(S.filter(E=>!L.includes(E))))},[k]),_=b.useRef(null),T=Il(S=>{if(y&&!r)return Ym;if(!S||S===Ym||g.current!==e||o!=null){const L=new Map;for(let E of e){if(!E)continue;if(o&&o.length>0&&!o.includes(E.id)&&E.rect.current){L.set(E.id,E.rect.current);continue}const R=E.node.current,P=R?new Ld(f(R),R):null;E.rect.current=P,P&&L.set(E.id,P)}return L}return S},[e,o,r,y,f]);return b.useEffect(()=>{g.current=e},[e]),b.useEffect(()=>{y||x()},[r,y]),b.useEffect(()=>{o&&o.length>0&&c(null)},[JSON.stringify(o)]),b.useEffect(()=>{y||typeof d!="number"||_.current!==null||(_.current=setTimeout(()=>{x(),_.current=null},d))},[d,y,x,...s]),{droppableRects:T,measureDroppableContainers:x,measuringScheduled:o!=null};function D(){switch(h){case bl.Always:return!1;case bl.BeforeDragging:return r;default:return!r}}}function Zy(e,t){return Il(r=>e?r||(typeof t=="function"?t(e):e):null,[t,e])}function Mj(e,t){return Zy(e,t)}function Oj(e){let{callback:t,disabled:r}=e;const s=Rd(t),l=b.useMemo(()=>{if(r||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:o}=window;return new o(s)},[s,r]);return b.useEffect(()=>()=>l==null?void 0:l.disconnect(),[l]),l}function ka(e){let{callback:t,disabled:r}=e;const s=Rd(t),l=b.useMemo(()=>{if(r||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:o}=window;return new o(s)},[r]);return b.useEffect(()=>()=>l==null?void 0:l.disconnect(),[l]),l}function zj(e){return new Ld(Al(e),e)}function Qm(e,t,r){t===void 0&&(t=zj);const[s,l]=b.useState(null);function o(){l(f=>{if(!e)return null;if(e.isConnected===!1){var h;return(h=f??r)!=null?h:null}const g=t(e);return JSON.stringify(f)===JSON.stringify(g)?f:g})}const c=Oj({callback(f){if(e)for(const h of f){const{type:g,target:y}=h;if(g==="childList"&&y instanceof HTMLElement&&y.contains(e)){o();break}}}}),d=ka({callback:o});return ui(()=>{o(),e?(d==null||d.observe(e),c==null||c.observe(document.body,{childList:!0,subtree:!0})):(d==null||d.disconnect(),c==null||c.disconnect())},[e]),s}function $j(e){const t=Zy(e);return By(e,t)}const Xm=[];function Bj(e){const t=b.useRef(e),r=Il(s=>e?s&&s!==Xm&&e&&t.current&&e.parentNode===t.current.parentNode?s:Pd(e):Xm,[e]);return b.useEffect(()=>{t.current=e},[e]),r}function Fj(e){const[t,r]=b.useState(null),s=b.useRef(e),l=b.useCallback(o=>{const c=ju(o.target);c&&r(d=>d?(d.set(c,Qu(c)),new Map(d)):null)},[]);return b.useEffect(()=>{const o=s.current;if(e!==o){c(o);const d=e.map(f=>{const h=ju(f);return h?(h.addEventListener("scroll",l,{passive:!0}),[h,Qu(h)]):null}).filter(f=>f!=null);r(d.length?new Map(d):null),s.current=e}return()=>{c(e),c(o)};function c(d){d.forEach(f=>{const h=ju(f);h==null||h.removeEventListener("scroll",l)})}},[l,e]),b.useMemo(()=>e.length?t?Array.from(t.values()).reduce((o,c)=>os(o,c),fr):qy(e):fr,[e,t])}function Gm(e,t){t===void 0&&(t=[]);const r=b.useRef(null);return b.useEffect(()=>{r.current=null},t),b.useEffect(()=>{const s=e!==fr;s&&!r.current&&(r.current=e),!s&&r.current&&(r.current=null)},[e]),r.current?aa(e,r.current):fr}function Vj(e){b.useEffect(()=>{if(!va)return;const t=e.map(r=>{let{sensor:s}=r;return s.setup==null?void 0:s.setup()});return()=>{for(const r of t)r==null||r()}},e.map(t=>{let{sensor:r}=t;return r}))}function Uj(e,t){return b.useMemo(()=>e.reduce((r,s)=>{let{eventName:l,handler:o}=s;return r[l]=c=>{o(c,t)},r},{}),[e,t])}function Yy(e){return b.useMemo(()=>e?pj(e):null,[e])}const Jm=[];function Hj(e,t){t===void 0&&(t=Al);const[r]=e,s=Yy(r?Ln(r):null),[l,o]=b.useState(Jm);function c(){o(()=>e.length?e.map(f=>Hy(f)?s:new Ld(t(f),f)):Jm)}const d=ka({callback:c});return ui(()=>{d==null||d.disconnect(),c(),e.forEach(f=>d==null?void 0:d.observe(f))},[e]),l}function Wj(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return Tl(t)?t:e}function qj(e){let{measure:t}=e;const[r,s]=b.useState(null),l=b.useCallback(h=>{for(const{target:g}of h)if(Tl(g)){s(y=>{const k=t(g);return y?{...y,width:k.width,height:k.height}:k});break}},[t]),o=ka({callback:l}),c=b.useCallback(h=>{const g=Wj(h);o==null||o.disconnect(),g&&(o==null||o.observe(g)),s(g?t(g):null)},[t,o]),[d,f]=oa(c);return b.useMemo(()=>({nodeRef:d,rect:r,setRef:f}),[r,d,f])}const Kj=[{sensor:zd,options:{}},{sensor:Md,options:{}}],Zj={current:{}},Zo={draggable:{measure:Wm},droppable:{measure:Wm,strategy:bl.WhileDragging,frequency:Gu.Optimized},dragOverlay:{measure:Al}};class hl extends Map{get(t){var r;return t!=null&&(r=super.get(t))!=null?r:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:r}=t;return!r})}getNodeFor(t){var r,s;return(r=(s=this.get(t))==null?void 0:s.node.current)!=null?r:void 0}}const Yj={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new hl,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:ca},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Zo,measureDroppableContainers:ca,windowRect:null,measuringScheduled:!1},Qj={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:ca,draggableNodes:new Map,over:null,measureDroppableContainers:ca},_a=b.createContext(Qj),Xj=b.createContext(Yj);function Gj(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new hl}}}function Jj(e,t){switch(t.type){case Jt.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case Jt.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case Jt.DragEnd:case Jt.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Jt.RegisterDroppable:{const{element:r}=t,{id:s}=r,l=new hl(e.droppable.containers);return l.set(s,r),{...e,droppable:{...e.droppable,containers:l}}}case Jt.SetDroppableDisabled:{const{id:r,key:s,disabled:l}=t,o=e.droppable.containers.get(r);if(!o||s!==o.key)return e;const c=new hl(e.droppable.containers);return c.set(r,{...o,disabled:l}),{...e,droppable:{...e.droppable,containers:c}}}case Jt.UnregisterDroppable:{const{id:r,key:s}=t,l=e.droppable.containers.get(r);if(!l||s!==l.key)return e;const o=new hl(e.droppable.containers);return o.delete(r),{...e,droppable:{...e.droppable,containers:o}}}default:return e}}function eE(e){let{disabled:t}=e;const{active:r,activatorEvent:s,draggableNodes:l}=b.useContext(_a),o=Ku(s),c=Ku(r==null?void 0:r.id);return b.useEffect(()=>{if(!t&&!s&&o&&c!=null){if(!zy(o)||document.activeElement===o.target)return;const d=l.get(c);if(!d)return;const{activatorNode:f,node:h}=d;if(!f.current&&!h.current)return;requestAnimationFrame(()=>{for(const g of[f.current,h.current]){if(!g)continue;const y=qN(g);if(y){y.focus();break}}})}},[s,t,l,c,o]),null}function tE(e,t){let{transform:r,...s}=t;return e!=null&&e.length?e.reduce((l,o)=>o({transform:l,...s}),r):r}function nE(e){return b.useMemo(()=>({draggable:{...Zo.draggable,...e==null?void 0:e.draggable},droppable:{...Zo.droppable,...e==null?void 0:e.droppable},dragOverlay:{...Zo.dragOverlay,...e==null?void 0:e.dragOverlay}}),[e==null?void 0:e.draggable,e==null?void 0:e.droppable,e==null?void 0:e.dragOverlay])}function rE(e){let{activeNode:t,measure:r,initialRect:s,config:l=!0}=e;const o=b.useRef(!1),{x:c,y:d}=typeof l=="boolean"?{x:l,y:l}:l;ui(()=>{if(!c&&!d||!t){o.current=!1;return}if(o.current||!s)return;const h=t==null?void 0:t.node.current;if(!h||h.isConnected===!1)return;const g=r(h),y=By(g,s);if(c||(y.x=0),d||(y.y=0),o.current=!0,Math.abs(y.x)>0||Math.abs(y.y)>0){const k=Fy(h);k&&k.scrollBy({top:y.y,left:y.x})}},[t,c,d,s,r])}const Qy=b.createContext({...fr,scaleX:1,scaleY:1});var si;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(si||(si={}));const iE=b.memo(function(t){var r,s,l,o;let{id:c,accessibility:d,autoScroll:f=!0,children:h,sensors:g=Kj,collisionDetection:y=lj,measuring:k,modifiers:x,..._}=t;const T=b.useReducer(Jj,void 0,Gj),[D,S]=T,[L,E]=GN(),[R,P]=b.useState(si.Uninitialized),j=R===si.Initialized,{draggable:{active:H,nodes:Z,translate:G},droppable:{containers:z}}=D,K=H!=null?Z.get(H):null,ne=b.useRef({initial:null,translated:null}),xe=b.useMemo(()=>{var At;return H!=null?{id:H,data:(At=K==null?void 0:K.data)!=null?At:Zj,rect:ne}:null},[H,K]),ee=b.useRef(null),[F,ge]=b.useState(null),[he,J]=b.useState(null),fe=wl(_,Object.values(_)),N=xa("DndDescribedBy",c),I=b.useMemo(()=>z.getEnabled(),[z]),V=nE(k),{droppableRects:C,measureDroppableContainers:Y,measuringScheduled:ke}=Lj(I,{dragging:j,dependencies:[G.x,G.y],config:V.droppable}),ye=Rj(Z,H),Be=b.useMemo(()=>he?Zu(he):null,[he]),Fe=an(),Ve=Mj(ye,V.draggable.measure);rE({activeNode:H!=null?Z.get(H):null,config:Fe.layoutShiftCompensation,initialRect:Ve,measure:V.draggable.measure});const Ze=Qm(ye,V.draggable.measure,Ve),dt=Qm(ye?ye.parentElement:null),_t=b.useRef({activatorEvent:null,active:null,activeNode:ye,collisionRect:null,collisions:null,droppableRects:C,draggableNodes:Z,draggingNode:null,draggingNodeRect:null,droppableContainers:z,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Zt=z.getNodeFor((r=_t.current.over)==null?void 0:r.id),pt=qj({measure:V.dragOverlay.measure}),Yt=(s=pt.nodeRef.current)!=null?s:ye,It=j?(l=pt.rect)!=null?l:Ze:null,kn=!!(pt.nodeRef.current&&pt.rect),Cn=$j(kn?null:Ze),Qt=Yy(Yt?Ln(Yt):null),le=Bj(j?Zt??ye:null),pe=Hj(le),ve=tE(x,{transform:{x:G.x-Cn.x,y:G.y-Cn.y,scaleX:1,scaleY:1},activatorEvent:he,active:xe,activeNodeRect:Ze,containerNodeRect:dt,draggingNodeRect:It,over:_t.current.over,overlayNodeRect:pt.rect,scrollableAncestors:le,scrollableAncestorRects:pe,windowRect:Qt}),Re=Be?os(Be,G):null,me=Fj(le),Ye=Gm(me),q=Gm(me,[Ze]),ie=os(ve,Ye),Ie=It?cj(It,ve):null,Ue=xe&&Ie?y({active:xe,collisionRect:Ie,droppableRects:C,droppableContainers:I,pointerCoordinates:Re}):null,W=ij(Ue,"id"),[X,je]=b.useState(null),$e=kn?ve:os(ve,q),Mt=oj($e,(o=X==null?void 0:X.rect)!=null?o:null,Ze),Ht=b.useRef(null),ht=b.useCallback((At,cn)=>{let{sensor:un,options:tr}=cn;if(ee.current==null)return;const _n=Z.get(ee.current);if(!_n)return;const dn=At.nativeEvent,Nn=new un({active:ee.current,activeNode:_n,event:dn,options:tr,context:_t,onAbort(Dt){if(!Z.get(Dt))return;const{onDragAbort:fn}=fe.current,nr={id:Dt};fn==null||fn(nr),L({type:"onDragAbort",event:nr})},onPending(Dt,Hn,fn,nr){if(!Z.get(Dt))return;const{onDragPending:pr}=fe.current,Mn={id:Dt,constraint:Hn,initialCoordinates:fn,offset:nr};pr==null||pr(Mn),L({type:"onDragPending",event:Mn})},onStart(Dt){const Hn=ee.current;if(Hn==null)return;const fn=Z.get(Hn);if(!fn)return;const{onDragStart:nr}=fe.current,rr={activatorEvent:dn,active:{id:Hn,data:fn.data,rect:ne}};al.unstable_batchedUpdates(()=>{nr==null||nr(rr),P(si.Initializing),S({type:Jt.DragStart,initialCoordinates:Dt,active:Hn}),L({type:"onDragStart",event:rr}),ge(Ht.current),J(dn)})},onMove(Dt){S({type:Jt.DragMove,coordinates:Dt})},onEnd:Cr(Jt.DragEnd),onCancel:Cr(Jt.DragCancel)});Ht.current=Nn;function Cr(Dt){return async function(){const{active:fn,collisions:nr,over:rr,scrollAdjustedTranslate:pr}=_t.current;let Mn=null;if(fn&&pr){const{cancelDrop:Nr}=fe.current;Mn={activatorEvent:dn,active:fn,collisions:nr,delta:pr,over:rr},Dt===Jt.DragEnd&&typeof Nr=="function"&&await Promise.resolve(Nr(Mn))&&(Dt=Jt.DragCancel)}ee.current=null,al.unstable_batchedUpdates(()=>{S({type:Dt}),P(si.Uninitialized),je(null),ge(null),J(null),Ht.current=null;const Nr=Dt===Jt.DragEnd?"onDragEnd":"onDragCancel";if(Mn){const ks=fe.current[Nr];ks==null||ks(Mn),L({type:Nr,event:Mn})}})}}},[Z]),Ot=b.useCallback((At,cn)=>(un,tr)=>{const _n=un.nativeEvent,dn=Z.get(tr);if(ee.current!==null||!dn||_n.dndKit||_n.defaultPrevented)return;const Nn={active:dn};At(un,cn.options,Nn)===!0&&(_n.dndKit={capturedBy:cn.sensor},ee.current=tr,ht(un,cn))},[Z,ht]),Q=Pj(g,Ot);Vj(g),ui(()=>{Ze&&R===si.Initializing&&P(si.Initialized)},[Ze,R]),b.useEffect(()=>{const{onDragMove:At}=fe.current,{active:cn,activatorEvent:un,collisions:tr,over:_n}=_t.current;if(!cn||!un)return;const dn={active:cn,activatorEvent:un,collisions:tr,delta:{x:ie.x,y:ie.y},over:_n};al.unstable_batchedUpdates(()=>{At==null||At(dn),L({type:"onDragMove",event:dn})})},[ie.x,ie.y]),b.useEffect(()=>{const{active:At,activatorEvent:cn,collisions:un,droppableContainers:tr,scrollAdjustedTranslate:_n}=_t.current;if(!At||ee.current==null||!cn||!_n)return;const{onDragOver:dn}=fe.current,Nn=tr.get(W),Cr=Nn&&Nn.rect.current?{id:Nn.id,rect:Nn.rect.current,data:Nn.data,disabled:Nn.disabled}:null,Dt={active:At,activatorEvent:cn,collisions:un,delta:{x:_n.x,y:_n.y},over:Cr};al.unstable_batchedUpdates(()=>{je(Cr),dn==null||dn(Dt),L({type:"onDragOver",event:Dt})})},[W]),ui(()=>{_t.current={activatorEvent:he,active:xe,activeNode:ye,collisionRect:Ie,collisions:Ue,droppableRects:C,draggableNodes:Z,draggingNode:Yt,draggingNodeRect:It,droppableContainers:z,over:X,scrollableAncestors:le,scrollAdjustedTranslate:ie},ne.current={initial:It,translated:Ie}},[xe,ye,Ue,Ie,Z,Yt,It,C,z,X,le,ie]),Ij({...Fe,delta:G,draggingRect:Ie,pointerCoordinates:Re,scrollableAncestors:le,scrollableAncestorRects:pe});const Se=b.useMemo(()=>({active:xe,activeNode:ye,activeNodeRect:Ze,activatorEvent:he,collisions:Ue,containerNodeRect:dt,dragOverlay:pt,draggableNodes:Z,droppableContainers:z,droppableRects:C,over:X,measureDroppableContainers:Y,scrollableAncestors:le,scrollableAncestorRects:pe,measuringConfiguration:V,measuringScheduled:ke,windowRect:Qt}),[xe,ye,Ze,he,Ue,dt,pt,Z,z,C,X,Y,le,pe,V,ke,Qt]),Ct=b.useMemo(()=>({activatorEvent:he,activators:Q,active:xe,activeNodeRect:Ze,ariaDescribedById:{draggable:N},dispatch:S,draggableNodes:Z,over:X,measureDroppableContainers:Y}),[he,Q,xe,Ze,S,N,Z,X,Y]);return Gn.createElement($y.Provider,{value:E},Gn.createElement(_a.Provider,{value:Ct},Gn.createElement(Xj.Provider,{value:Se},Gn.createElement(Qy.Provider,{value:Mt},h)),Gn.createElement(eE,{disabled:(d==null?void 0:d.restoreFocus)===!1})),Gn.createElement(tj,{...d,hiddenTextDescribedById:N}));function an(){const At=(F==null?void 0:F.autoScrollEnabled)===!1,cn=typeof f=="object"?f.enabled===!1:f===!1,un=j&&!At&&!cn;return typeof f=="object"?{...f,enabled:un}:{enabled:un}}}),sE=b.createContext(null),eg="button",lE="Draggable";function oE(e){let{id:t,data:r,disabled:s=!1,attributes:l}=e;const o=xa(lE),{activators:c,activatorEvent:d,active:f,activeNodeRect:h,ariaDescribedById:g,draggableNodes:y,over:k}=b.useContext(_a),{role:x=eg,roleDescription:_="draggable",tabIndex:T=0}=l??{},D=(f==null?void 0:f.id)===t,S=b.useContext(D?Qy:sE),[L,E]=oa(),[R,P]=oa(),j=Uj(c,t),H=wl(r);ui(()=>(y.set(t,{id:t,key:o,node:L,activatorNode:R,data:H}),()=>{const G=y.get(t);G&&G.key===o&&y.delete(t)}),[y,t]);const Z=b.useMemo(()=>({role:x,tabIndex:T,"aria-disabled":s,"aria-pressed":D&&x===eg?!0:void 0,"aria-roledescription":_,"aria-describedby":g.draggable}),[s,x,T,D,_,g.draggable]);return{active:f,activatorEvent:d,activeNodeRect:h,attributes:Z,isDragging:D,listeners:s?void 0:j,node:L,over:k,setNodeRef:E,setActivatorNodeRef:P,transform:S}}const aE="Droppable",cE={timeout:25};function uE(e){let{data:t,disabled:r=!1,id:s,resizeObserverConfig:l}=e;const o=xa(aE),{active:c,dispatch:d,over:f,measureDroppableContainers:h}=b.useContext(_a),g=b.useRef({disabled:r}),y=b.useRef(!1),k=b.useRef(null),x=b.useRef(null),{disabled:_,updateMeasurementsFor:T,timeout:D}={...cE,...l},S=wl(T??s),L=b.useCallback(()=>{if(!y.current){y.current=!0;return}x.current!=null&&clearTimeout(x.current),x.current=setTimeout(()=>{h(Array.isArray(S.current)?S.current:[S.current]),x.current=null},D)},[D]),E=ka({callback:L,disabled:_||!c}),R=b.useCallback((Z,G)=>{E&&(G&&(E.unobserve(G),y.current=!1),Z&&E.observe(Z))},[E]),[P,j]=oa(R),H=wl(t);return b.useEffect(()=>{!E||!P.current||(E.disconnect(),y.current=!1,E.observe(P.current))},[P,E]),b.useEffect(()=>(d({type:Jt.RegisterDroppable,element:{id:s,key:o,disabled:r,node:P,rect:k,data:H}}),()=>d({type:Jt.UnregisterDroppable,key:o,id:s})),[s]),b.useEffect(()=>{r!==g.current.disabled&&(d({type:Jt.SetDroppableDisabled,id:s,key:o,disabled:r}),g.current.disabled=r)},[s,o,r,d]),{active:c,rect:k,isOver:(f==null?void 0:f.id)===s,node:P,over:f,setNodeRef:j}}const dE=/^\s*[-*]\s*(\d{4}-\d{2}-\d{2})\s+(\d{2}:\d{2})\s+\[([^\]]+)\]\s*(.*)$/;function $d(e){const t=[];for(const r of e.split(`
|
|
73
|
-
`)){const s=r.match(dE);if(!s)continue;const[,l,o,c,d]=s;t.push({date:l,time:o,member:c,message:d})}return t}function fE(e){const t=new Map;for(const s of e)for(const{date:l,time:o,member:c,message:d}of $d(s.body)){const f=t.get(l)??[];f.push({taskId:s.id,time:o,member:c,message:d}),t.set(l,f)}const r=[...t.entries()].map(([s,l])=>({date:s,entries:l.sort((o,c)=>o.time.localeCompare(c.time)||o.taskId.localeCompare(c.taskId,"en",{numeric:!0}))}));return r.sort((s,l)=>l.date.localeCompare(s.date)),r}const Bd=1440*60*1e3,pE=5,hE=["in_progress","todo","pending"],mE={in_progress:2,todo:7,pending:5};function Xy(e){return e.filter(t=>t.status==="pending"&&t.blocked_type==="decision").map(t=>({id:t.id,title:t.title,blocked_reason:t.blocked_reason,assignee:t.assignee})).sort((t,r)=>t.id.localeCompare(r.id,"en",{numeric:!0}))}function gE(e){return hE.includes(e)}const yE=/^\s{0,3}#{1,6}\s+作業ログ\s*$/,vE=/^\s{0,3}#{1,6}\s+/;function Gy(e){const t=e.split(`
|
|
74
|
-
`);let r=-1;for(let l=0;l<t.length;l++)if(yE.test(t[l])){r=l+1;break}if(r===-1)return e;const s=[];for(let l=r;l<t.length&&!vE.test(t[l]);l++)s.push(t[l]);return s.join(`
|
|
75
|
-
`)}function xE(e){const t=$d(Gy(e.body));let r=null;for(const l of t){const o=`${l.date}T${l.time}`,c=Date.parse(o);Number.isNaN(c)||(r===null||c>r.ms)&&(r={ms:c,iso:o})}if(r!==null)return r;const s=ml(e.updated);return s===null?null:{ms:s,iso:e.updated}}function wa(e,t,r={}){const s=[];for(const l of e){if(!gE(l.status))continue;const o=xE(l);if(o===null)continue;const c=r[l.status]??mE[l.status],d=t-o.ms;d<=c*Bd||s.push({id:l.id,title:l.title,status:l.status,lastActivityIso:o.iso,idleDays:Yo(d)})}return s.sort((l,o)=>o.idleDays-l.idleDays||l.id.localeCompare(o.id,"en",{numeric:!0}))}const kE=/未完了|未完|完了予定|完了見込|完了せず|undone|not\s+(done|finished|closed)|n['’]t\s+(done|finished|closed)/i,_E=/完了(した|しました|です|済)?[。.!!]?\s*$/,wE=/\b(done|closed|finished)\b[.!]?\s*$/i;function Yo(e){return Math.max(0,Math.round(e/Bd*10)/10)}function ml(e){const t=Date.parse(e);return Number.isNaN(t)?null:t}function bE(e){const t=e.trim();return kE.test(t)?!1:_E.test(t)||wE.test(t)}function SE(e){const t=$d(Gy(e.body));for(let r=t.length-1;r>=0;r--)if(bE(t[r].message)){const s=Date.parse(`${t[r].date}T${t[r].time}`);if(!Number.isNaN(s))return s}return ml(e.updated)}function Ju(e){const t=new Date(e),r=t.getFullYear(),s=String(t.getMonth()+1).padStart(2,"0"),l=String(t.getDate()).padStart(2,"0");return`${r}-${s}-${l}`}function tg(e){const t=new Date(e);t.setHours(0,0,0,0);const r=(t.getDay()+6)%7;return t.setDate(t.getDate()-r),Ju(t.getTime())}function CE(e){const t=e.length;if(t===0)return 0;const r=Math.floor(t/2);return t%2===0?(e[r-1]+e[r])/2:e[r]}function ng(e){return[...e.entries()].map(([t,r])=>({key:t,count:r})).sort((t,r)=>t.key.localeCompare(r.key))}function NE(e,t,r={}){const s=r.maxBottlenecks??pE,l=e.filter(_=>_.status==="done"),o=new Map,c=new Map,d=[],f=new Map;for(const _ of l){const T=SE(_);if(f.set(_.assignee,(f.get(_.assignee)??0)+1),T===null)continue;o.set(Ju(T),(o.get(Ju(T))??0)+1),c.set(tg(T),(c.get(tg(T))??0)+1);const D=ml(_.created);D!==null&&T>=D&&d.push((T-D)/Bd)}const h=[...d].sort((_,T)=>_-T),g={sampleSize:h.length,medianDays:h.length>0?Math.round(CE(h)*10)/10:null,meanDays:h.length>0?Math.round(h.reduce((_,T)=>_+T,0)/h.length*10)/10:null},y=hs.map(_=>{const T=e.filter(L=>L.status===_),D=T.map(L=>ml(L.updated)).filter(L=>L!==null).map(L=>t-L);if(D.length===0)return{status:_,count:T.length,avgDays:null,maxDays:null};const S=D.reduce((L,E)=>L+E,0)/D.length;return{status:_,count:T.length,avgDays:Yo(S),maxDays:Yo(Math.max(...D))}}),k=[...f.entries()].map(([_,T])=>({member:_,count:T})).sort((_,T)=>T.count-_.count||(_.member??"").localeCompare(T.member??"")),x=e.filter(_=>_.status==="pending").map(_=>{const T=ml(_.updated);return{id:_.id,title:_.title,blockedType:_.blocked_type,blockedReason:_.blocked_reason,dwellDays:T!==null?Yo(t-T):0}}).sort((_,T)=>T.dwellDays-_.dwellDays||_.id.localeCompare(T.id,"en",{numeric:!0})).slice(0,s);return{totalTasks:e.length,doneTasks:l.length,completionsByDay:ng(o),completionsByWeek:ng(c),cycleTime:g,dwellByStatus:y,completionsByMember:k,bottlenecks:x}}function Jy(e,t,r){const s=t.query.trim().toLowerCase(),l=t.statuses;return e.filter(o=>{const c=o.frontmatter;if(t.label!==""&&!c.labels.includes(t.label)||t.assignee!==""&&c.assignee!==t.assignee||l!==void 0&&l.length>0&&!l.includes(c.status))return!1;if(s==="")return!0;const d=c.assignee!==null?[c.assignee,(r==null?void 0:r(c.assignee))??""]:[""];return[c.id,c.title,...d,...c.labels].join(" ").toLowerCase().includes(s)})}function jE(e){const t=new Set;for(const r of e)for(const s of r.frontmatter.labels)t.add(s);return[...t].sort((r,s)=>r.localeCompare(s))}function Fd(e){const t=new Set(e.map(E=>E.id)),r=new Map;for(const E of e)r.set(E.id,E.dependsOn.filter(R=>t.has(R)&&R!==E.id));const s=0,l=1,o=2,c=new Map,d=new Set;for(const E of t)c.set(E,s);const f=[],h=new Set,g=E=>{c.set(E,l),f.push(E),h.add(E);for(const R of r.get(E)??[])if(c.get(R)===l){const P=f.indexOf(R);for(let j=P;j<f.length;j++)d.add(f[j])}else c.get(R)===s&&g(R);c.set(E,o),f.pop(),h.delete(E)};for(const E of t)c.get(E)===s&&g(E);const y=new Map,k=new Set,x=E=>{if(d.has(E))return null;if(y.has(E))return y.get(E)??null;if(k.has(E))return null;k.add(E);let R=-1;for(const j of r.get(E)??[]){const H=x(j);if(H===null)return k.delete(E),y.set(E,null),null;H>R&&(R=H)}k.delete(E);const P=R+1;return y.set(E,P),P};let _=-1;for(const E of t){const R=x(E);R!==null&&R>_&&(_=R)}const T=(E,R)=>E.localeCompare(R,"en",{numeric:!0});let D=[];if(_>=0){const E=[...t].filter(R=>y.get(R)===_).sort(T);if(E.length>0){const R=[];let P=E[0];for(;P!==void 0;){R.push(P);const j=y.get(P);P=(r.get(P)??[]).filter(Z=>y.get(Z)===(j??0)-1).sort(T)[0]}D=R.reverse()}}const S=new Set(D);return{nodes:e.map(E=>({id:E.id,level:y.get(E.id)??null,dependsOn:r.get(E.id)??[],onCriticalPath:S.has(E.id)})).sort((E,R)=>E.id.localeCompare(R.id,"en",{numeric:!0})),criticalPath:D,cycleNodes:[...d].sort((E,R)=>E.localeCompare(R,"en",{numeric:!0})),maxLevel:_}}function ev(e,t,r,s){const l=e.replaceAll("{id}",()=>t).replaceAll("{path}",()=>r),o=(s??"").trim();return o.length>0?`${l}
|
|
76
|
-
|
|
77
|
-
差し戻し理由: ${o}`:l}function tv(e){return`.kanban/tasks/${e}.md`}function EE(e,t,r={}){if(e.length===0)return"";const s=TE(e),l=s.map((d,f)=>{const h=ev(t,d.id,tv(d.id));return`${f+1}. ${h}`}),o=(r.wrapper??"").trim(),c=o.length>0?o.replaceAll("{n}",()=>String(s.length)):"";return c.length>0?`${c}
|
|
78
|
-
|
|
79
|
-
${l.join(`
|
|
80
|
-
|
|
81
|
-
`)}`:l.join(`
|
|
82
|
-
|
|
83
|
-
`)}function TE(e){const t=Fd(e.map(l=>({id:l.id,dependsOn:l.dependsOn}))),r=new Map(t.nodes.map(l=>[l.id,l.level])),s=l=>{const o=r.get(l);return o??Number.POSITIVE_INFINITY};return[...e].sort((l,o)=>{const c=s(l.id),d=s(o.id);return c!==d?c-d:l.id.localeCompare(o.id,"en",{numeric:!0})})}async function Sl(e){var t;try{if(typeof navigator<"u"&&((t=navigator.clipboard)!=null&&t.writeText))return await navigator.clipboard.writeText(e),!0}catch{}try{if(typeof document>"u")return!1;const r=document.createElement("textarea");r.value=e,r.style.position="fixed",r.style.opacity="0",document.body.appendChild(r),r.focus(),r.select();const s=document.execCommand("copy");return document.body.removeChild(r),s}catch{return!1}}const rg=25,ig=e=>({x:e.left+e.width/2,y:e.top+e.height/2});function IE(e,t,r){if(e.length===0)return;if(r==="up")return{x:t.x,y:t.y-rg};if(r==="down")return{x:t.x,y:t.y+rg};const s=[...e].sort((d,f)=>d.left-f.left);let l=0,o=Number.POSITIVE_INFINITY;for(let d=0;d<s.length;d++){const f=Math.abs(ig(s[d]).x-t.x);f<o&&(o=f,l=d)}const c=r==="left"?l-1:l+1;if(!(c<0||c>=s.length))return ig(s[c])}const AE='[role="button"], button, input, select, textarea, a',DE=5;function RE(e,t){return Math.abs(t-e)>=DE}function PE(e){if(e===null)return!0;const t=e;return typeof t.closest!="function"?!0:t.closest(AE)!==null}function LE(e,t,r){return e-(r-t)}function ME(e,t,r){const s=e.getBoundingClientRect();return t>s.left+e.clientWidth||r>s.top+e.clientHeight}function OE(){const e=b.useRef(null),t=b.useRef(null),r=b.useCallback(o=>{const c=e.current,d=t.current;if(!(c===null||d===null||d.pointerId!==o.pointerId)&&(t.current=null,!!d.active)){try{c.releasePointerCapture(o.pointerId)}catch{}c.style.cursor="",c.style.userSelect=""}},[]),s=b.useCallback(o=>{const c=e.current;c!==null&&(o.pointerType!=="mouse"||o.button!==0||PE(o.target)||o.target instanceof Element&&ME(o.target,o.clientX,o.clientY)||(t.current={pointerId:o.pointerId,startX:o.clientX,startScrollLeft:c.scrollLeft,active:!1}))},[]),l=b.useCallback(o=>{const c=e.current,d=t.current;if(!(c===null||d===null||d.pointerId!==o.pointerId)){if(!d.active){if(!RE(d.startX,o.clientX))return;d.active=!0,d.startX=o.clientX,d.startScrollLeft=c.scrollLeft;try{c.setPointerCapture(o.pointerId)}catch{}c.style.cursor="grabbing",c.style.userSelect="none";return}c.scrollLeft=LE(d.startScrollLeft,d.startX,o.clientX)}},[]);return{ref:e,handlers:{onPointerDown:s,onPointerMove:l,onPointerUp:r,onPointerCancel:r}}}function nv(e=3e4){const[t,r]=b.useState(()=>Date.now());return b.useEffect(()=>{const s=setInterval(()=>r(Date.now()),e);return()=>clearInterval(s)},[e]),t}const zE=[{value:"decision",labelKey:"blocked.decision.option"},{value:"external",labelKey:"blocked.external.option"},{value:"dependency",labelKey:"blocked.dependency.option"}];function $E({taskTitle:e,onCancel:t,onConfirm:r}){const{t:s}=vt(),[l,o]=b.useState("decision"),[c,d]=b.useState(""),f=c.trim(),h=f.length>0;return p.jsxs(di,{title:s("blockedDialog.title"),onClose:t,children:[p.jsx("p",{className:de.label,style:{marginBottom:12},children:s("blockedDialog.intro",{title:e})}),p.jsxs("div",{className:de.field,children:[p.jsx("label",{className:de.label,htmlFor:"blocked-type",children:s("blockedDialog.type")}),p.jsx("select",{id:"blocked-type",className:de.select,value:l,onChange:g=>o(g.target.value),children:zE.map(g=>p.jsx("option",{value:g.value,children:s(g.labelKey)},g.value))})]}),p.jsxs("div",{className:de.field,children:[p.jsx("label",{className:de.label,htmlFor:"blocked-reason",children:s("blockedDialog.reason")}),p.jsx("input",{id:"blocked-reason",className:de.input,value:c,onChange:g=>d(g.target.value.replace(/[\r\n]/g,"")),placeholder:s("blockedDialog.reason.placeholder"),autoFocus:!0})]}),p.jsxs("div",{className:de.actions,children:[p.jsx("button",{type:"button",className:de.btn,onClick:t,children:s("common.cancel")}),p.jsx("button",{type:"button",className:`${de.btn} ${de.btnPrimary}`,disabled:!h,onClick:()=>r(l,f),children:s("blockedDialog.confirm")})]})]})}function BE(e,t=Date.now()){const r=Date.parse(e);if(Number.isNaN(r))return null;const s=Math.max(0,Math.floor((t-r)/1e3));if(s<60)return{unit:"justNow"};const l=Math.floor(s/60);if(l<60)return{unit:"minutes",n:l};const o=Math.floor(l/60);return o<24?{unit:"hours",n:o}:{unit:"days",n:Math.floor(o/24)}}const FE=/^-\s*(\d{4}-\d{2}-\d{2}\s+\d{2}:\d{2})\s+\[([^\]]+)\]\s*(.*)$/,VE=/^#{1,6}\s*(?:作業ログ|work log)\s*$/i,UE=/^#{1,6}\s*(?:やりとり|comments?|discussion)\s*$/i;function rv(e,t){const r=e.split(`
|
|
84
|
-
`),s=r.findIndex(o=>t.test(o.trim()));if(s===-1)return[];const l=[];for(let o=s+1;o<r.length;o++){const c=r[o];if(/^#{1,6}\s/.test(c))break;if(c.trim()==="")continue;const d=c.match(FE);d?l.push({raw:c,timestamp:d[1],member:d[2],message:d[3]}):c.trim().startsWith("-")&&l.push({raw:c,timestamp:null,member:null,message:c.replace(/^-\s*/,"")})}return l}function Vd(e){return rv(e,VE)}function HE(e){return rv(e,UE)}const WE=/^差し戻し(?:[::]\s*(.*))?$/;function qE(e){const t=Vd(e);for(let r=t.length-1;r>=0;r--){const s=t[r].message.match(WE);if(!s)continue;const l=(s[1]??"").trim();return l.length>0?l:null}return null}const KE=/^\s*[-*]\s+\[([ xX])\]\s/;function ZE(e){let t=0,r=0;for(const s of e.split(`
|
|
85
|
-
`)){const l=s.match(KE);l&&(r+=1,l[1]!==" "&&(t+=1))}return{done:t,total:r}}const YE="_wrap_12hxw_1",QE="_track_12hxw_7",XE="_fill_12hxw_15",GE="_fillComplete_12hxw_22",JE="_label_12hxw_26",sl={wrap:YE,track:QE,fill:XE,fillComplete:GE,label:JE};function iv({done:e,total:t,label:r}){const{t:s}=vt(),l=t>0?Math.round(e/t*100):0,o=t>0&&e>=t,c=r??s("progress.label",{done:e,total:t});return p.jsxs("div",{className:sl.wrap,children:[p.jsx("div",{className:sl.track,role:"progressbar","aria-label":c,"aria-valuenow":e,"aria-valuemin":0,"aria-valuemax":t,"aria-valuetext":t>0?`${e}/${t}`:"—",children:p.jsx("div",{className:`${sl.fill} ${o?sl.fillComplete:""}`,style:{width:`${l}%`}})}),p.jsx("span",{className:sl.label,children:t>0?`${e}/${t}`:"—"})]})}const eT="_card_i0no9_1",tT="_dragging_i0no9_29",nT="_inProgress_i0no9_35",rT="_unread_i0no9_42",iT="_unreadFade_i0no9_1",sT="_selected_i0no9_58",lT="_selectBox_i0no9_65",oT="_selectBoxOn_i0no9_80",aT="_unreadBadge_i0no9_86",cT="_unreadDot_i0no9_98",uT="_topRow_i0no9_106",dT="_id_i0no9_113",fT="_stalledBadge_i0no9_121",pT="_stalledDot_i0no9_134",hT="_priority_i0no9_142",mT="_priorityhigh_i0no9_150",gT="_prioritymedium_i0no9_155",yT="_prioritylow_i0no9_160",vT="_title_i0no9_165",xT="_metaRow_i0no9_172",kT="_assignee_i0no9_179",_T="_memberDot_i0no9_187",wT="_memberhuman_i0no9_194",bT="_memberai_i0no9_198",ST="_memberunknown_i0no9_202",CT="_labels_i0no9_206",NT="_label_i0no9_206",jT="_elapsed_i0no9_220",ET="_elapsedStrong_i0no9_226",TT="_blocked_i0no9_231",IT="_blockedBadge_i0no9_239",AT="_blockeddecision_i0no9_247",DT="_blockedexternal_i0no9_252",RT="_blockeddependency_i0no9_257",PT="_blockedReason_i0no9_262",LT="_proposalActions_i0no9_268",MT="_actionBtn_i0no9_277",OT="_approveBtn_i0no9_296",zT="_rejectBtn_i0no9_302",Ge={card:eT,dragging:tT,inProgress:nT,unread:rT,unreadFade:iT,selected:sT,selectBox:lT,selectBoxOn:oT,unreadBadge:aT,unreadDot:cT,topRow:uT,id:dT,stalledBadge:fT,stalledDot:pT,priority:hT,priorityhigh:mT,prioritymedium:gT,prioritylow:yT,title:vT,metaRow:xT,assignee:kT,memberDot:_T,memberhuman:wT,memberai:bT,memberunknown:ST,labels:CT,label:NT,elapsed:jT,elapsedStrong:ET,blocked:TT,blockedBadge:IT,blockeddecision:AT,blockedexternal:DT,blockeddependency:RT,blockedReason:PT,proposalActions:LT,actionBtn:MT,approveBtn:OT,rejectBtn:zT},$T={decision:"blocked.decision",external:"blocked.external",dependency:"blocked.dependency"};function BT({task:e,memberType:t,memberLabel:r,now:s,stalledIdleDays:l,unread:o,onOpen:c,onApprove:d,onReject:f,onArchive:h,onRevise:g,selectionMode:y,selected:k,onToggleSelect:x}){const{t:_}=vt(),{id:T,title:D,status:S,priority:L,labels:E,assignee:R,blocked_type:P,blocked_reason:j,updated:H}=e.frontmatter,{attributes:Z,listeners:G,setNodeRef:z,transform:K,isDragging:ne}=oE({id:T,data:{status:S},disabled:y}),xe=()=>{y?x==null||x(e):c(e)},ee=y?{}:{...G,...Z},F=R?t(R):void 0,ge=F==="human"?Ge.memberhuman:F==="ai"?Ge.memberai:Ge.memberunknown,he=BE(H,s),J=ZE(e.body),fe=l!==void 0,N=fe?_("stalled.cardTitle",{n:l}):void 0;return p.jsxs("div",{ref:z,className:`${Ge.card} ${ne?Ge.dragging:""} ${S==="in_progress"?Ge.inProgress:""} ${o?Ge.unread:""} ${y&&k?Ge.selected:""}`,style:{transform:Yu.Translate.toString(K)},...ee,role:y?"checkbox":"button","aria-checked":y?k:void 0,tabIndex:0,onClick:xe,onKeyDown:I=>{var V,C;if(y){(I.key==="Enter"||I.key===" ")&&(I.preventDefault(),x==null||x(e));return}if(ne){(V=G==null?void 0:G.onKeyDown)==null||V.call(G,I);return}if(I.key==="Enter"){I.preventDefault(),c(e);return}(C=G==null?void 0:G.onKeyDown)==null||C.call(G,I)},"aria-label":`${T} ${D}`,children:[p.jsxs("div",{className:Ge.topRow,children:[y&&p.jsx("span",{className:`${Ge.selectBox} ${k?Ge.selectBoxOn:""}`,"aria-hidden":"true",title:_("bulkInstruction.checkbox",{id:T}),children:k?"✓":""}),p.jsx("span",{className:Ge.id,children:T}),o&&p.jsxs("span",{className:Ge.unreadBadge,title:_("newActivity.cardTitle"),children:[p.jsx("span",{className:Ge.unreadDot,"aria-hidden":"true"}),_("newActivity.badge")]}),fe&&p.jsxs("span",{className:Ge.stalledBadge,title:N,children:[p.jsx("span",{className:Ge.stalledDot,"aria-hidden":"true"}),_("stalled.badge")]}),p.jsx("span",{className:`${Ge.priority} ${Ge[`priority${L}`]}`,children:L})]}),p.jsx("div",{className:Ge.title,children:D}),E.length>0&&p.jsx("div",{className:Ge.labels,children:E.map(I=>p.jsx("span",{className:Ge.label,children:I},I))}),J.total>0&&p.jsx(iv,{done:J.done,total:J.total}),p.jsxs("div",{className:Ge.metaRow,children:[R?p.jsxs("span",{className:Ge.assignee,title:F?_("card.memberType",{type:_(F==="human"?"member.human":"member.ai")}):_("card.unregisteredMember"),children:[p.jsx("span",{className:`${Ge.memberDot} ${ge}`,"aria-hidden":"true"}),r(R)]}):p.jsx("span",{className:Ge.assignee,children:_("card.unassigned")}),he&&p.jsx("span",{className:`${Ge.elapsed} ${S==="in_progress"?Ge.elapsedStrong:""}`,children:_("card.lastUpdated",{elapsed:I_(_,he)})})]}),S==="pending"&&(P||j)&&p.jsxs("div",{className:Ge.blocked,children:[P&&p.jsx("span",{className:`${Ge.blockedBadge} ${Ge[`blocked${P}`]}`,children:_($T[P])}),j&&p.jsx("span",{className:Ge.blockedReason,children:j})]}),!y&&S==="proposed"&&(d||f)&&p.jsxs("div",{className:Ge.proposalActions,onPointerDown:I=>I.stopPropagation(),onClick:I=>I.stopPropagation(),children:[f&&p.jsx("button",{type:"button",className:`${Ge.actionBtn} ${Ge.rejectBtn}`,onClick:()=>f(e),children:_("proposal.reject")}),d&&p.jsx("button",{type:"button",className:`${Ge.actionBtn} ${Ge.approveBtn}`,onClick:()=>d(e),children:_("proposal.approve")})]}),!y&&(S==="done"||S==="in_progress"||S==="pending")&&(S==="done"&&h||g)&&p.jsxs("div",{className:Ge.proposalActions,onPointerDown:I=>I.stopPropagation(),onClick:I=>I.stopPropagation(),children:[g&&p.jsx("button",{type:"button",className:Ge.actionBtn,onClick:()=>g(e),children:_("revise.button")}),S==="done"&&h&&p.jsx("button",{type:"button",className:Ge.actionBtn,onClick:()=>h(e),children:_("archive.action")})]})]})}const FT="_column_d1l7j_1",VT="_header_d1l7j_13",UT="_columnOver_d1l7j_22",HT="_headerOver_d1l7j_27",WT="_label_d1l7j_27",qT="_count_d1l7j_37",KT="_countOver_d1l7j_46",ZT="_list_d1l7j_51",YT="_over_d1l7j_60",QT="_empty_d1l7j_67",xr={column:FT,header:VT,columnOver:UT,headerOver:HT,label:WT,count:qT,countOver:KT,list:ZT,over:YT,empty:QT};function XT({column:e,tasks:t,memberType:r,memberLabel:s,now:l,stalledById:o,unreadIds:c,onOpen:d,onApprove:f,onReject:h,onArchive:g,onRevise:y,selectionMode:k,selectedIds:x,onToggleSelect:_}){const{t:T}=vt(),{setNodeRef:D,isOver:S}=uE({id:e.id}),L=e.wipLimit!==void 0&&t.length>e.wipLimit,E=Id(T,e);return p.jsxs("section",{className:`${xr.column} ${L?xr.columnOver:""}`,"aria-label":E,children:[p.jsxs("header",{className:`${xr.header} ${L?xr.headerOver:""}`,children:[p.jsx("span",{className:xr.label,children:E}),p.jsx("span",{className:`${xr.count} ${L?xr.countOver:""}`,title:e.wipLimit!==void 0?L?T("column.wipExceeded",{limit:e.wipLimit}):T("column.wipLimit",{limit:e.wipLimit}):void 0,children:e.wipLimit!==void 0?`${t.length} / ${e.wipLimit}`:t.length})]}),p.jsx("div",{ref:D,className:`${xr.list} ${S?xr.over:""}`,children:t.length===0?p.jsx("div",{className:xr.empty,children:T("column.empty")}):t.map(R=>p.jsx(BT,{task:R,memberType:r,memberLabel:s,now:l,stalledIdleDays:o.get(R.frontmatter.id),unread:c.has(R.frontmatter.id),onOpen:d,onApprove:f,onReject:h,onArchive:g,onRevise:y,selectionMode:k,selected:x==null?void 0:x.has(R.frontmatter.id),onToggleSelect:_},R.frontmatter.id))})]})}function GT({taskTitle:e,onCancel:t,onConfirm:r}){const{t:s}=vt(),[l,o]=b.useState(""),c=l.trim();return p.jsxs(di,{title:s("proposal.reject"),onClose:t,children:[p.jsx("p",{className:de.label,style:{marginBottom:12},children:e}),p.jsxs("div",{className:de.field,children:[p.jsx("label",{className:de.label,htmlFor:"reject-reason",children:s("proposal.reject.prompt")}),p.jsx("input",{id:"reject-reason",className:de.input,value:l,onChange:d=>o(d.target.value.replace(/[\r\n]/g,"")),autoFocus:!0})]}),p.jsxs("div",{className:de.actions,children:[p.jsx("button",{type:"button",className:de.btn,onClick:t,children:s("common.cancel")}),p.jsx("button",{type:"button",className:`${de.btn} ${de.btnDanger}`,disabled:c.length===0,onClick:()=>r(c),children:s("proposal.reject")})]})]})}function sv({taskTitle:e,onCancel:t,onConfirm:r}){const{t:s}=vt(),[l,o]=b.useState("");return p.jsxs(di,{title:s("revise.dialog.title"),onClose:t,children:[p.jsx("p",{className:de.label,style:{marginBottom:12},children:s("revise.dialog.intro",{title:e})}),p.jsxs("div",{className:de.field,children:[p.jsx("label",{className:de.label,htmlFor:"revise-reason",children:s("revise.dialog.reason")}),p.jsx("textarea",{id:"revise-reason",className:de.textarea,value:l,onChange:c=>o(c.target.value),placeholder:s("revise.dialog.placeholder"),rows:4,autoFocus:!0})]}),p.jsxs("div",{className:de.actions,children:[p.jsx("button",{type:"button",className:de.btn,onClick:t,children:s("common.cancel")}),p.jsx("button",{type:"button",className:`${de.btn} ${de.btnPrimary}`,onClick:()=>r(l.trim()),children:s("revise.dialog.confirm")})]})]})}const JT="_filterBar_xll91_1",eI="_search_xll91_12",tI="_filterSpacer_xll91_26",nI="_archiveAllBtn_xll91_30",rI="_selectModeBtn_xll91_42",iI="_selectModeBtnOn_xll91_53",sI="_selectBar_xll91_61",lI="_selectCount_xll91_71",oI="_bulkCopyBtn_xll91_77",aI="_selectClearBtn_xll91_95",cI="_selectHint_xll91_112",uI="_viewsBar_xll91_118",dI="_chip_xll91_128",fI="_chipApply_xll91_137",pI="_chipActive_xll91_150",hI="_chipDelete_xll91_160",mI="_saveViewBtn_xll91_179",gI="_saveViewForm_xll91_198",yI="_saveViewInput_xll91_204",vI="_saveViewConfirm_xll91_211",xI="_saveViewCancel_xll91_212",kI="_emptyBoard_xll91_231",_I="_emptyCard_xll91_240",wI="_emptyTitle_xll91_250",bI="_emptyLead_xll91_256",SI="_emptyAddBtn_xll91_262",CI="_emptyAi_xll91_276",NI="_emptyAiNote_xll91_282",jI="_emptyCopyBtn_xll91_289",EI="_board_xll91_301",ft={filterBar:JT,search:eI,filterSpacer:tI,archiveAllBtn:nI,selectModeBtn:rI,selectModeBtnOn:iI,selectBar:sI,selectCount:lI,bulkCopyBtn:oI,selectClearBtn:aI,selectHint:cI,viewsBar:uI,chip:dI,chipApply:fI,chipActive:pI,chipDelete:hI,saveViewBtn:mI,saveViewForm:gI,saveViewInput:yI,saveViewConfirm:vI,saveViewCancel:xI,emptyBoard:kI,emptyCard:_I,emptyTitle:wI,emptyLead:bI,emptyAddBtn:SI,emptyAi:CI,emptyAiNote:NI,emptyCopyBtn:jI,board:EI};function TI({board:e,onOpen:t,onChanged:r,onError:s,unreadIds:l,applyView:o,onViewApplied:c,onAddTask:d}){const{t:f}=vt(),h=nv(),[g,y]=b.useState(null),[k,x]=b.useState(null),[_,T]=b.useState(null),[D,S]=b.useState(""),[L,E]=b.useState(""),[R,P]=b.useState(""),[j,H]=b.useState([]),[Z,G]=b.useState(null),[z,K]=b.useState(!1),[ne,xe]=b.useState(!1),[ee,F]=b.useState(()=>new Set),[ge,he]=b.useState(null),[J,fe]=b.useState(null),N=e.config.savedViews,I=W=>{S(W.query??""),E(W.label??""),P(W.assignee??""),H(W.statuses??[])};b.useEffect(()=>{o&&(I(o),c==null||c())},[o]);const V={[ut.Left]:"left",[ut.Right]:"right",[ut.Up]:"up",[ut.Down]:"down"},C=(W,{currentCoordinates:X,context:je})=>{const $e=V[W.code];if(!$e)return;const Mt=je.collisionRect,Ht=Mt?{x:Mt.left+Mt.width/2,y:Mt.top+Mt.height/2}:X,ht=[];return je.droppableRects.forEach((Ot,Q)=>{ht.push({id:String(Q),left:Ot.left,top:Ot.top,width:Ot.width,height:Ot.height})}),IE(ht,Ht,$e)},Y=nj(Hm(zd,{activationConstraint:{distance:5}}),Hm(Md,{coordinateGetter:C})),ke=OE(),ye=b.useMemo(()=>{const W=new Map(e.config.members.map(X=>[X.id,X.type]));return X=>W.get(X)},[e.config.members]),Be=b.useMemo(()=>ys(e.config.members),[e.config.members]);b.useEffect(()=>{R!==""&&!e.config.members.some(W=>W.id===R)&&P("")},[e.config.members,R]),b.useEffect(()=>{F(W=>{if(W.size===0)return W;const X=new Set([...W].filter(je=>e.tasks.some($e=>$e.frontmatter.id===je)));return X.size===W.size?W:X})},[e.tasks]);const Fe=b.useMemo(()=>jE(e.tasks),[e.tasks]),Ve=b.useMemo(()=>Jy(e.tasks,{query:D,label:L,assignee:R,statuses:j},Be),[e.tasks,D,L,R,j,Be]),Ze=b.useMemo(()=>{const W=(X,je)=>X.length===je.length&&X.every($e=>je.includes($e));return N.findIndex(X=>(X.query??"")===D&&(X.label??"")===L&&(X.assignee??"")===R&&W(X.statuses??[],j))},[N,D,L,R,j]),dt=D!==""||L!==""||R!==""||j.length>0,_t=async W=>{const X=W.trim();if(X===""||z)return;K(!0);const je={name:X};D!==""&&(je.query=D),L!==""&&(je.label=L),R!==""&&(je.assignee=R);try{await Rh([...N,je]),G(null),r()}catch($e){$e instanceof _r?(s(f("savedView.conflict")),r()):s($e instanceof Error?$e.message:f("savedView.saveError"))}finally{K(!1)}},Zt=async W=>{if(!z){K(!0);try{await Rh(N.filter((X,je)=>je!==W)),r()}catch(X){X instanceof _r?(s(f("savedView.conflict")),r()):s(X instanceof Error?X.message:f("savedView.saveError"))}finally{K(!1)}}},pt=b.useMemo(()=>{const W=new Map;for(const X of Ve){const je=W.get(X.frontmatter.status)??[];je.push(X),W.set(X.frontmatter.status,je)}return W},[Ve]),Yt=b.useMemo(()=>e.tasks.filter(W=>W.frontmatter.status==="done"),[e.tasks]),It=b.useMemo(()=>{const W=e.tasks.map(je=>({id:je.frontmatter.id,title:je.frontmatter.title,status:je.frontmatter.status,updated:je.frontmatter.updated,body:je.body})),X=new Map;for(const je of wa(W,h,e.config.stallThresholds))X.set(je.id,je.idleDays);return X},[e.tasks,e.config.stallThresholds,h]),kn=e.config.columns.filter(W=>{var je;const X=((je=pt.get(W.id))==null?void 0:je.length)??0;return!(W.hideWhenEmpty&&X===0)}),Cn=async(W,X,je)=>{try{await _k({id:W,status:X,...je}),r()}catch($e){s($e instanceof Error?$e.message:f("move.error"))}},Qt=async W=>{try{await wk(W.frontmatter.id),r()}catch(X){s(X instanceof Error?X.message:f("proposal.approve.error"))}},le=async(W,X)=>{try{await bk(W,X),r()}catch(je){s(je instanceof Error?je.message:f("proposal.reject.error"))}},pe=async W=>{try{await Dh(W.frontmatter.id),r()}catch(X){s(X instanceof Error?X.message:f("archive.error"))}},ve=async(W,X,je)=>{try{await vg(W,X.length>0?X:void 0,je),r()}catch($e){$e instanceof _r?(s(f("revise.conflict")),r()):s($e instanceof Error?$e.message:f("revise.error"))}},Re=async()=>{if(Yt.length!==0&&!(typeof window<"u"&&!window.confirm(f("archive.confirm",{n:Yt.length})))){for(const W of Yt)try{await Dh(W.frontmatter.id)}catch(X){s(X instanceof Error?X.message:f("archive.error"));break}r()}},me=()=>{xe(W=>(W&&(F(new Set),he(null)),!W))},Ye=W=>{const X=W.frontmatter.id;F(je=>{const $e=new Set(je);return $e.has(X)?$e.delete(X):$e.add(X),$e})},q=()=>{F(new Set),he(null)},ie=async()=>{if(ee.size===0)return;const W=e.tasks.filter($e=>ee.has($e.frontmatter.id)).map($e=>({id:$e.frontmatter.id,dependsOn:$e.frontmatter.depends_on})),X=EE(W,e.config.instructionTemplate,{wrapper:f("bulkInstruction.wrapper")}),je=await Sl(X);he(je?"done":"failed"),window.setTimeout(()=>he(null),2e3)},Ie=async()=>{const W=f("board.empty.aiInstruction"),X=await Sl(W);fe(X?"done":"failed"),window.setTimeout(()=>fe(null),2e3)},Ue=W=>{var ht;const{active:X,over:je}=W;if(!je)return;const $e=je.id,Mt=(ht=X.data.current)==null?void 0:ht.status;if($e===Mt)return;const Ht=e.tasks.find(Ot=>Ot.frontmatter.id===X.id);if(Ht){if($e==="pending"){y({task:Ht});return}Cn(String(X.id),$e)}};return p.jsxs(p.Fragment,{children:[p.jsxs("div",{className:ft.filterBar,children:[p.jsx("input",{className:ft.search,value:D,onChange:W=>S(W.target.value),placeholder:f("search.placeholder"),"aria-label":f("search.placeholder")}),p.jsxs("select",{value:L,onChange:W=>E(W.target.value),"aria-label":f("search.label"),children:[p.jsxs("option",{value:"",children:[f("search.label"),": ",f("search.all")]}),Fe.map(W=>p.jsx("option",{value:W,children:W},W))]}),p.jsxs("select",{value:R,onChange:W=>P(W.target.value),"aria-label":f("search.assignee"),children:[p.jsxs("option",{value:"",children:[f("search.assignee"),": ",f("search.all")]}),e.config.members.map(W=>p.jsx("option",{value:W.id,children:W.label??W.id},W.id))]}),p.jsx("span",{className:ft.filterSpacer}),p.jsx("button",{type:"button",className:`${ft.selectModeBtn} ${ne?ft.selectModeBtnOn:""}`,"aria-pressed":ne,onClick:me,children:f(ne?"bulkInstruction.exit":"bulkInstruction.select")}),Yt.length>0&&p.jsx("button",{type:"button",className:ft.archiveAllBtn,onClick:()=>void Re(),children:f("archive.archiveDone")})]}),ne&&p.jsxs("div",{className:ft.selectBar,role:"toolbar","aria-label":f("bulkInstruction.select"),children:[p.jsx("span",{className:ft.selectCount,children:f("bulkInstruction.selectedCount",{n:ee.size})}),p.jsx("button",{type:"button",className:ft.bulkCopyBtn,disabled:ee.size===0,onClick:()=>void ie(),children:f(ge==="done"?"bulkInstruction.copied":ge==="failed"?"bulkInstruction.copyFailed":"bulkInstruction.copy")}),p.jsx("button",{type:"button",className:ft.selectClearBtn,disabled:ee.size===0,onClick:q,children:f("bulkInstruction.clear")}),p.jsx("span",{className:ft.selectHint,children:f("bulkInstruction.hint")})]}),p.jsxs("div",{className:ft.viewsBar,children:[N.map((W,X)=>p.jsxs("span",{className:ft.chip,children:[p.jsx("button",{type:"button",className:`${ft.chipApply} ${X===Ze?ft.chipActive:""}`,"aria-pressed":X===Ze,onClick:()=>I(W),children:W.name}),p.jsx("button",{type:"button",className:ft.chipDelete,"aria-label":f("savedView.delete",{name:W.name}),title:f("savedView.delete",{name:W.name}),disabled:z,onClick:()=>void Zt(X),children:"×"})]},`${W.name}-${X}`)),Z===null?p.jsx("button",{type:"button",className:ft.saveViewBtn,disabled:!dt,title:f(dt?"savedView.save":"savedView.saveHint"),onClick:()=>G(""),children:f("savedView.save")}):p.jsxs("form",{className:ft.saveViewForm,onSubmit:W=>{W.preventDefault(),_t(Z)},children:[p.jsx("input",{className:ft.saveViewInput,value:Z,autoFocus:!0,placeholder:f("savedView.namePlaceholder"),"aria-label":f("savedView.namePlaceholder"),onChange:W=>G(W.target.value),onKeyDown:W=>{W.key==="Escape"&&(W.preventDefault(),G(null))}}),p.jsx("button",{type:"submit",className:ft.saveViewConfirm,disabled:Z.trim()===""||z,children:f(z?"common.saving":"common.save")}),p.jsx("button",{type:"button",className:ft.saveViewCancel,onClick:()=>G(null),children:f("common.cancel")})]})]}),e.tasks.length===0?p.jsx("div",{className:ft.emptyBoard,children:p.jsxs("div",{className:ft.emptyCard,children:[p.jsx("h2",{className:ft.emptyTitle,children:f("board.empty.title")}),p.jsx("p",{className:ft.emptyLead,children:f("board.empty.lead")}),d&&p.jsx("button",{type:"button",className:ft.emptyAddBtn,onClick:d,children:f("board.empty.addFirst")}),p.jsxs("div",{className:ft.emptyAi,children:[p.jsx("p",{className:ft.emptyAiNote,children:f("board.empty.aiNote")}),p.jsx("button",{type:"button",className:ft.emptyCopyBtn,onClick:()=>void Ie(),children:f(J==="done"?"board.empty.copied":J==="failed"?"board.empty.copyFailed":"board.empty.copyInstruction")})]})]})}):p.jsx(iE,{sensors:Y,onDragEnd:Ue,children:p.jsx("div",{className:ft.board,ref:ke.ref,...ke.handlers,children:kn.map(W=>p.jsx(XT,{column:W,tasks:pt.get(W.id)??[],memberType:ye,memberLabel:Be,now:h,stalledById:It,unreadIds:l,onOpen:t,onApprove:X=>void Qt(X),onReject:X=>x(X),onArchive:X=>void pe(X),onRevise:X=>T(X),selectionMode:ne,selectedIds:ee,onToggleSelect:Ye},W.id))})}),g&&p.jsx($E,{taskTitle:g.task.frontmatter.title,onCancel:()=>y(null),onConfirm:(W,X)=>{const je=g.task.frontmatter.id;y(null),Cn(je,"pending",{blocked_type:W,blocked_reason:X})}}),k&&p.jsx(GT,{taskTitle:k.frontmatter.title,onCancel:()=>x(null),onConfirm:W=>{const X=k.frontmatter.id;x(null),le(X,W)}}),_&&p.jsx(sv,{taskTitle:_.frontmatter.title,onCancel:()=>T(null),onConfirm:W=>{const X=_.frontmatter.id,je=_.mtimeMs;T(null),ve(X,W,je)}})]})}const lv=[{id:"home",labelKey:"view.home"},{id:"board",labelKey:"view.board"},{id:"critical",labelKey:"view.critical"},{id:"milestones",labelKey:"view.milestones"},{id:"digest",labelKey:"view.digest"},{id:"docs",labelKey:"view.docs"},{id:"archive",labelKey:"view.archive"},{id:"trash",labelKey:"view.trash"},{id:"stats",labelKey:"view.stats"},{id:"files",labelKey:"view.files"}],da=lv.map(e=>e.id),II=new Map(lv.map(e=>[e.id,e.labelKey]));function Ud(e){return II.get(e)}function ov(e,t){const r=new Set(e),s=new Set,l=[];for(const o of t)!r.has(o.id)||s.has(o.id)||(s.add(o.id),l.push({id:o.id,hidden:o.hidden??!1}));for(const o of e)s.has(o)||l.push({id:o,hidden:!1});return l}function av(e,t){return ov(e,t).filter(r=>!r.hidden).map(r=>r.id)}const AI="_overlay_dbkt0_1",DI="_palette_dbkt0_12",RI="_input_dbkt0_24",PI="_list_dbkt0_39",LI="_option_dbkt0_46",MI="_optionActive_dbkt0_56",OI="_empty_dbkt0_61",Ei={overlay:AI,palette:DI,input:RI,list:PI,option:LI,optionActive:MI,empty:OI},zI=8;function $I({board:e,onClose:t,onSelectView:r,onOpenAdd:s,onOpenSettings:l,onOpenTask:o,onApplySavedView:c}){const{t:d}=vt(),[f,h]=b.useState(""),[g,y]=b.useState(0),[k]=b.useState(()=>Date.now()),x=b.useRef(null),_=b.useRef(null),T=b.useRef(null);ud(T),b.useEffect(()=>{var j;const P=document.activeElement;return(j=x.current)==null||j.focus(),()=>{var H;return(H=P==null?void 0:P.focus)==null?void 0:H.call(P)}},[]);const D=b.useMemo(()=>{const P=e.tasks.map(j=>({id:j.frontmatter.id,title:j.frontmatter.title,status:j.frontmatter.status,updated:j.frontmatter.updated,body:j.body}));return wa(P,k,e.config.stallThresholds).map(j=>({id:`stalled:${j.id}`,kind:"task",label:d("stalled.palette",{id:j.id,title:j.title}),taskId:j.id}))},[e.tasks,e.config.stallThresholds,k,d]),S=b.useMemo(()=>{const P=f.trim().toLowerCase(),j=K=>P===""||K.toLowerCase().includes(P),Z=[...av(da,e.config.views).filter(K=>K!=="docs"||e.config.docsDirs.length>0).map(K=>({id:`view:${K}`,kind:"view",label:`${d("palette.go")}: ${d(Ud(K)??"view.board")}`,view:K})),{id:"action:add",kind:"add",label:d("palette.addTask")},{id:"action:settings",kind:"settings",label:d("palette.settings")},...e.config.savedViews.map((K,ne)=>({id:`savedView:${ne}`,kind:"savedView",label:d("savedView.palette",{name:K.name}),savedView:K})),...D].filter(K=>j(K.label)),G=new Set(Z.filter(K=>K.kind==="task").map(K=>K.taskId)),z=P===""?[]:Jy(e.tasks,{query:f,label:"",assignee:""}).filter(K=>!G.has(K.frontmatter.id)).slice(0,zI).map(K=>({id:`task:${K.frontmatter.id}`,kind:"task",label:`${K.frontmatter.id} — ${K.frontmatter.title}`,taskId:K.frontmatter.id}));return[...Z,...z]},[f,e.tasks,e.config.docsDirs,e.config.savedViews,e.config.views,D,d]);b.useEffect(()=>{y(0)},[f]),b.useEffect(()=>{var j;const P=(j=_.current)==null?void 0:j.querySelector(`[data-idx="${g}"]`);P==null||P.scrollIntoView({block:"nearest"})},[g]);const L=P=>{if(P){switch(P.kind){case"view":r(P.view);break;case"add":s();break;case"settings":l();break;case"task":o(P.taskId);break;case"savedView":c(P.savedView);break}t()}},E=P=>{P.nativeEvent.isComposing||(P.key==="Escape"?(P.preventDefault(),P.stopPropagation(),t()):P.key==="ArrowDown"?(P.preventDefault(),P.stopPropagation(),y(j=>S.length===0?0:(j+1)%S.length)):P.key==="ArrowUp"?(P.preventDefault(),P.stopPropagation(),y(j=>S.length===0?0:(j-1+S.length)%S.length)):P.key==="Enter"&&(P.preventDefault(),P.stopPropagation(),L(S[g])))},R=S[g]?`cmd-opt-${S[g].id}`:void 0;return p.jsx("div",{className:Ei.overlay,onClick:P=>{dd(P.target,P.currentTarget)&&(P.stopPropagation(),t())},children:p.jsxs("div",{ref:T,className:Ei.palette,role:"dialog","aria-modal":"true","aria-label":d("palette.title"),children:[p.jsx("input",{ref:x,className:Ei.input,type:"text",role:"combobox","aria-expanded":S.length>0?"true":"false","aria-controls":"cmd-listbox","aria-activedescendant":R,"aria-label":d("palette.title"),placeholder:d("palette.placeholder"),value:f,onChange:P=>h(P.target.value),onKeyDown:E}),S.length===0?p.jsx("p",{className:Ei.empty,children:d("palette.empty")}):p.jsx("ul",{id:"cmd-listbox",className:Ei.list,role:"listbox","aria-label":d("palette.title"),ref:_,children:S.map((P,j)=>p.jsx("li",{id:`cmd-opt-${P.id}`,"data-idx":j,role:"option","aria-selected":j===g,className:`${Ei.option} ${j===g?Ei.optionActive:""}`,onMouseDown:H=>{H.preventDefault(),L(P)},onMouseEnter:()=>y(j),children:P.label},P.id))})]})})}const BI="_view_ubr9h_2",FI="_toolbar_ubr9h_12",VI="_cycleWarn_ubr9h_20",UI="_levels_ubr9h_2",HI="_level_ubr9h_2",WI="_levelCycle_ubr9h_55",qI="_levelHeader_ubr9h_60",KI="_levelLabel_ubr9h_69",ZI="_levelCount_ubr9h_75",YI="_levelList_ubr9h_85",QI="_node_ubr9h_95",XI="_nodeCp_ubr9h_116",GI="_nodeCycle_ubr9h_121",JI="_statusproposed_ubr9h_127",e2="_statusbacklog_ubr9h_130",t2="_statustodo_ubr9h_133",n2="_statusin_progress_ubr9h_136",r2="_statuspending_ubr9h_139",i2="_nodeTop_ubr9h_143",s2="_nodeId_ubr9h_149",l2="_cpTag_ubr9h_155",o2="_nodeTitle_ubr9h_161",a2="_deps_ubr9h_166",c2="_depsLabel_ubr9h_173",u2="_depChip_ubr9h_178",d2="_pendingBadge_ubr9h_186",f2="_empty_ubr9h_196",p2="_copyBtn_ubr9h_208",gt={view:BI,toolbar:FI,cycleWarn:VI,levels:UI,level:HI,levelCycle:WI,levelHeader:qI,levelLabel:KI,levelCount:ZI,levelList:YI,node:QI,nodeCp:XI,nodeCycle:GI,statusproposed:JI,statusbacklog:e2,statustodo:t2,statusin_progress:n2,statuspending:r2,nodeTop:i2,nodeId:s2,cpTag:l2,nodeTitle:o2,deps:a2,depsLabel:c2,depChip:u2,pendingBadge:d2,empty:f2,copyBtn:p2};function h2({board:e,onOpen:t}){const{t:r}=vt(),[s,l]=b.useState(null),o=b.useMemo(()=>e.tasks.filter(x=>x.frontmatter.status!=="done"),[e.tasks]),c=b.useMemo(()=>new Map(o.map(x=>[x.frontmatter.id,x])),[o]),d=b.useMemo(()=>Fd(o.map(x=>({id:x.frontmatter.id,dependsOn:x.frontmatter.depends_on}))),[o]),f=b.useMemo(()=>{const x=new Map,_=[];for(const T of d.nodes)if(T.level===null)_.push(T);else{const D=x.get(T.level)??[];D.push(T),x.set(T.level,D)}return{map:x,cyclic:_}},[d.nodes]),h=async()=>{const _=["このプロジェクトのタスク依存関係 (depends_on) を見直し、クリティカルパスを最短化できないか検討してください。","CLAUDE.md の運用規約に従い、各タスクファイルの frontmatter `depends_on` を必要に応じて編集してください。","","現在の未完了タスクと依存:",...o.map(D=>`- ${D.frontmatter.id} (${D.frontmatter.status})`+(D.frontmatter.depends_on.length>0?` depends_on: ${D.frontmatter.depends_on.join(", ")}`:""))].join(`
|
|
86
|
-
`),T=await Sl(_);l(T?"done":"failed"),window.setTimeout(()=>l(null),2e3)},g=[...f.map.keys()].sort((x,_)=>x-_),y=o.length>0,k=x=>{const _=c.get(x.id),T=x.level===null,D=_?gt[`status${_.frontmatter.status}`]:"";return p.jsxs("div",{className:`${gt.node} ${x.onCriticalPath?gt.nodeCp:""} ${T?gt.nodeCycle:D}`,role:"button",tabIndex:0,onClick:()=>_&&t(_),onKeyDown:S=>{(S.key==="Enter"||S.key===" ")&&_&&(S.preventDefault(),t(_))},children:[p.jsxs("div",{className:gt.nodeTop,children:[p.jsx("span",{className:gt.nodeId,children:x.id}),x.onCriticalPath&&p.jsxs("span",{className:gt.cpTag,children:["★ ",r("cp.criticalPath")]})]}),p.jsx("div",{className:gt.nodeTitle,children:(_==null?void 0:_.frontmatter.title)??x.id}),(_==null?void 0:_.frontmatter.status)==="pending"&&p.jsx("span",{className:gt.pendingBadge,children:r("status.pending")}),x.dependsOn.length>0&&p.jsxs("div",{className:gt.deps,children:[p.jsx("span",{className:gt.depsLabel,children:r("cp.dependsOn")}),x.dependsOn.map(S=>p.jsx("span",{className:gt.depChip,children:S},S))]})]},x.id)};return p.jsxs("div",{className:gt.view,children:[p.jsx("div",{className:gt.toolbar,children:p.jsx("button",{type:"button",className:gt.copyBtn,onClick:()=>void h(),disabled:!y,children:r(s==="done"?"cp.copied":s==="failed"?"cp.copyFailed":"cp.copyReorg")})}),d.cycleNodes.length>0&&p.jsxs("div",{className:gt.cycleWarn,role:"alert",children:["⚠ ",r("cp.cycleWarning",{ids:d.cycleNodes.join(", ")})]}),y?p.jsxs("div",{className:gt.levels,children:[g.map(x=>{const _=f.map.get(x)??[];return p.jsxs("div",{className:gt.level,children:[p.jsxs("div",{className:gt.levelHeader,children:[p.jsx("span",{className:gt.levelLabel,children:r("cp.level",{n:x})}),p.jsx("span",{className:gt.levelCount,children:_.length})]}),p.jsx("div",{className:gt.levelList,children:_.map(k)})]},x)}),f.cyclic.length>0&&p.jsxs("div",{className:`${gt.level} ${gt.levelCycle}`,children:[p.jsxs("div",{className:gt.levelHeader,children:[p.jsxs("span",{className:gt.levelLabel,children:["⚠ ",r("cp.cycleLevel")]}),p.jsx("span",{className:gt.levelCount,children:f.cyclic.length})]}),p.jsx("div",{className:gt.levelList,children:f.cyclic.map(k)})]})]}):p.jsx("div",{className:gt.empty,children:r("cp.empty")})]})}const m2="_root_y75j1_1",g2="_badge_y75j1_6",y2="_badgeActive_y75j1_28",v2="_badgeMuted_y75j1_39",x2="_badgeDot_y75j1_51",k2="_popover_y75j1_62",_2="_popoverTitle_y75j1_77",w2="_empty_y75j1_84",b2="_list_y75j1_90",S2="_item_y75j1_99",C2="_itemHead_y75j1_124",N2="_itemId_y75j1_130",j2="_itemTitle_y75j1_137",E2="_itemReason_y75j1_143",T2="_itemReasonMuted_y75j1_148",I2="_itemAssignee_y75j1_154",yn={root:m2,badge:g2,badgeActive:y2,badgeMuted:v2,badgeDot:x2,popover:k2,popoverTitle:_2,empty:w2,list:b2,item:S2,itemHead:C2,itemId:N2,itemTitle:j2,itemReason:E2,itemReasonMuted:T2,itemAssignee:I2};function A2({board:e,onOpenTask:t}){const{t:r}=vt(),[s,l]=b.useState(!1),o=b.useRef(null),c=b.useId(),d=b.useMemo(()=>ys(e.config.members),[e.config.members]),f=b.useMemo(()=>{const y=e.tasks.map(k=>({id:k.frontmatter.id,title:k.frontmatter.title,status:k.frontmatter.status,assignee:k.frontmatter.assignee,blocked_type:k.frontmatter.blocked_type,blocked_reason:k.frontmatter.blocked_reason}));return Xy(y)},[e.tasks]),h=f.length;b.useEffect(()=>{h===0&&l(!1)},[h]),b.useEffect(()=>{if(!s)return;const y=x=>{o.current&&!o.current.contains(x.target)&&l(!1)},k=x=>{x.key==="Escape"&&(x.preventDefault(),x.stopPropagation(),l(!1))};return document.addEventListener("pointerdown",y),document.addEventListener("keydown",k,!0),()=>{document.removeEventListener("pointerdown",y),document.removeEventListener("keydown",k,!0)}},[s]);const g=y=>{t(y),l(!1)};return p.jsxs("div",{className:yn.root,ref:o,children:[p.jsxs("button",{type:"button",className:`${yn.badge} ${h>0?yn.badgeActive:yn.badgeMuted}`,onClick:()=>l(y=>!y),"aria-haspopup":"true","aria-expanded":s,"aria-controls":s?c:void 0,title:r("decisionWaits.open"),children:[p.jsx("span",{className:yn.badgeDot,"aria-hidden":"true"}),r("decisionWaits.badge",{n:h})]}),s&&p.jsxs("div",{id:c,className:yn.popover,role:"region","aria-label":r("decisionWaits.title"),children:[p.jsx("h2",{className:yn.popoverTitle,children:r("decisionWaits.title")}),h===0?p.jsx("p",{className:yn.empty,children:r("decisionWaits.empty")}):p.jsx("ul",{className:yn.list,children:f.map(y=>p.jsx("li",{children:p.jsxs("button",{type:"button",className:yn.item,onClick:()=>g(y.id),children:[p.jsxs("span",{className:yn.itemHead,children:[p.jsx("span",{className:yn.itemId,children:y.id}),p.jsx("span",{className:yn.itemTitle,children:y.title})]}),y.blocked_reason!==null&&y.blocked_reason!==""?p.jsx("span",{className:yn.itemReason,children:y.blocked_reason}):p.jsx("span",{className:yn.itemReasonMuted,children:r("decisionWaits.noReason")}),y.assignee!==null&&p.jsxs("span",{className:yn.itemAssignee,children:[r("decisionWaits.assignee"),": ",d(y.assignee)]})]})},y.id))})]})]})}const D2="_view_5mig8_1",R2="_viewEmpty_5mig8_7",P2="_sidebar_5mig8_19",L2="_sidebarTitle_5mig8_28",M2="_navList_5mig8_34",O2="_navBtn_5mig8_40",z2="_navBtnActive_5mig8_67",$2="_navCount_5mig8_73",B2="_detail_5mig8_83",F2="_day_5mig8_89",V2="_dayHeader_5mig8_93",U2="_date_5mig8_102",H2="_count_5mig8_107",W2="_entry_5mig8_112",q2="_time_5mig8_120",K2="_taskId_5mig8_127",Z2="_member_5mig8_134",Y2="_memberDot_5mig8_142",Q2="_memberhuman_5mig8_148",X2="_memberai_5mig8_152",G2="_memberunknown_5mig8_156",J2="_message_5mig8_160",eA="_empty_5mig8_164",Lt={view:D2,viewEmpty:R2,sidebar:P2,sidebarTitle:L2,navList:M2,navBtn:O2,navBtnActive:z2,navCount:$2,detail:B2,day:F2,dayHeader:V2,date:U2,count:H2,entry:W2,time:q2,taskId:K2,member:Z2,memberDot:Y2,memberhuman:Q2,memberai:X2,memberunknown:G2,message:J2,empty:eA};function tA({board:e}){const{t}=vt(),[r,s]=b.useState([]),[l,o]=b.useState(null);b.useEffect(()=>{let y=!0;const k=new AbortController;return(async()=>{try{const x=await id(k.signal);y&&s(x.tasks)}catch{y&&s([])}})(),()=>{y=!1,k.abort()}},[e]);const c=b.useMemo(()=>{const y=new Map(e.config.members.map(k=>[k.id,k.type]));return k=>y.get(k)},[e.config.members]),d=b.useMemo(()=>ys(e.config.members),[e.config.members]),f=b.useMemo(()=>{const y=e.tasks.map(_=>({id:_.frontmatter.id,body:_.body})),k=new Set(y.map(_=>_.id)),x=r.filter(_=>!k.has(_.id));return fE([...y,...x])},[e.tasks,r]),h=y=>{const k=c(y);return k==="human"?Lt.memberhuman:k==="ai"?Lt.memberai:Lt.memberunknown},g=f.find(y=>y.date===l)??f[0]??null;return f.length===0||g===null?p.jsx("div",{className:Lt.viewEmpty,children:p.jsx("div",{className:Lt.empty,children:t("digest.empty")})}):p.jsxs("div",{className:Lt.view,children:[p.jsxs("aside",{className:Lt.sidebar,"aria-label":t("digest.days"),children:[p.jsx("p",{className:Lt.sidebarTitle,children:t("digest.days")}),p.jsx("ul",{className:Lt.navList,children:f.map(y=>p.jsx("li",{children:p.jsxs("button",{type:"button",className:`${Lt.navBtn} ${y.date===g.date?Lt.navBtnActive:""}`,onClick:()=>o(y.date),children:[p.jsx("span",{children:y.date}),p.jsx("span",{className:Lt.navCount,children:t("digest.entries",{n:y.entries.length})})]})},y.date))})]}),p.jsx("div",{className:Lt.detail,children:p.jsxs("section",{className:Lt.day,children:[p.jsxs("div",{className:Lt.dayHeader,children:[p.jsx("span",{className:Lt.date,children:g.date}),p.jsx("span",{className:Lt.count,children:t("digest.entries",{n:g.entries.length})})]}),g.entries.map((y,k)=>p.jsxs("div",{className:Lt.entry,children:[p.jsx("span",{className:Lt.time,children:y.time}),p.jsx("span",{className:Lt.taskId,children:y.taskId}),p.jsxs("span",{className:Lt.member,children:[p.jsx("span",{className:`${Lt.memberDot} ${h(y.member)}`,"aria-hidden":"true"}),d(y.member)]}),p.jsx("span",{className:Lt.message,children:y.message})]},k))]})})]})}function nA(e,t){return e.filter(r=>(r.related_docs??[]).includes(t)).map(({id:r,title:s,status:l})=>({id:r,title:s,status:l})).sort((r,s)=>r.id.localeCompare(s.id,"en",{numeric:!0}))}const rA=/^---[ \t]*\r?\n/,iA=/^---[ \t]*$/,sg="\uFEFF";function sA(e,t){const r=e.startsWith(sg),s=r?e.slice(1):e,l=lA(s,t);return r?sg+l:l}function lA(e,t){if(!rA.test(e))return e;const r=e.split(`
|
|
87
|
-
`);let s=-1;for(let h=1;h<r.length;h++)if(iA.test(r[h].replace(/\r$/,""))){s=h;break}if(s===-1)return e;const l=[];let o=1;for(;o<s;){const h=r[o].replace(/\r$/,"");if(/^related_docs\s*:/.test(h)){for(o++;o<s&&/^\s*-\s/.test(r[o].replace(/\r$/,""));)o++;continue}l.push(r[o]),o++}const c=t.length>0?`related_docs: [${t.map(h=>JSON.stringify(h)).join(", ")}]`:null;if(c!==null){const h=l.findIndex(g=>/^created\s*:/.test(g.replace(/\r$/,"")));h!==-1?l.splice(h,0,c):l.push(c)}const d=[r[0],...l].join(`
|
|
88
|
-
`),f=r.slice(s).join(`
|
|
89
|
-
`);return`${d}
|
|
90
|
-
${f}`}const oA="_view_1746t_1",aA="_tree_1746t_8",cA="_treeTitle_1746t_17",uA="_treeRoot_1746t_23",dA="_treeChildren_1746t_24",fA="_dirName_1746t_34",pA="_fileBtn_1746t_42",hA="_fileBtnActive_1746t_67",mA="_detail_1746t_78",gA="_docPath_1746t_85",yA="_refs_1746t_92",vA="_refsTitle_1746t_100",xA="_refsList_1746t_106",kA="_refBtn_1746t_115",_A="_refId_1746t_139",wA="_refStatus_1746t_146",bA="_markdown_1746t_153",SA="_muted_1746t_172",CA="_broken_1746t_177",NA="_error_1746t_182",Et={view:oA,tree:aA,treeTitle:cA,treeRoot:uA,treeChildren:dA,dirName:fA,fileBtn:pA,fileBtnActive:hA,detail:mA,docPath:gA,refs:yA,refsTitle:vA,refsList:xA,refBtn:kA,refId:_A,refStatus:wA,markdown:bA,muted:SA,broken:CA,error:NA};function jA({board:e,onOpen:t}){const{t:r}=vt(),[s,l]=b.useState(null),[o,c]=b.useState(!1),[d,f]=b.useState(null),[h,g]=b.useState(null),[y,k]=b.useState(null),x=b.useRef(null),_=b.useMemo(()=>El(r,e.config.columns),[r,e.config.columns]);b.useEffect(()=>{let E=!0;const R=new AbortController;return(async()=>{try{const P=await xg(R.signal);E&&(l(P),c(!1))}catch{E&&c(!0)}})(),()=>{E=!1,R.abort()}},[e]);const T=async E=>{f(E),x.current=E,g(null),k(null);try{const R=await kg(E);if(x.current!==E)return;g(R)}catch(R){if(x.current!==E)return;R instanceof br&&(R.status===404||R.status===403)?g("broken"):k(R instanceof Error?R.message:r("docs.loadError"))}},D=b.useMemo(()=>d===null?[]:nA(e.tasks.map(E=>({id:E.frontmatter.id,title:E.frontmatter.title,status:E.frontmatter.status,related_docs:E.frontmatter.related_docs})),d),[e.tasks,d]),S=b.useMemo(()=>new Map(e.tasks.map(E=>[E.frontmatter.id,E])),[e.tasks]),L=E=>p.jsx("li",{children:E.type==="dir"?p.jsxs(p.Fragment,{children:[p.jsx("span",{className:Et.dirName,children:E.name}),E.children&&E.children.length>0&&p.jsx("ul",{className:Et.treeChildren,children:E.children.map(L)})]}):p.jsx("button",{type:"button",className:`${Et.fileBtn} ${d===E.path?Et.fileBtnActive:""}`,onClick:()=>void T(E.path),"aria-current":d===E.path?"true":void 0,children:E.name})},E.path);return p.jsxs("div",{className:Et.view,children:[p.jsxs("nav",{className:Et.tree,"aria-label":r("docs.view.treeTitle"),children:[p.jsx("h2",{className:Et.treeTitle,children:r("docs.view.treeTitle")}),o?p.jsx("p",{className:Et.error,role:"alert",children:r("docs.treeError")}):s===null?p.jsx("p",{className:Et.muted,children:r("board.loading")}):s.length===0?p.jsx("p",{className:Et.muted,children:r("docs.pickerEmpty")}):p.jsx("ul",{className:Et.treeRoot,children:s.map(L)})]}),p.jsxs("section",{className:Et.detail,"aria-label":r("view.docs"),children:[y&&p.jsx("p",{className:Et.error,role:"alert",children:y}),d===null?p.jsx("p",{className:Et.muted,children:r("docs.view.selectPrompt")}):p.jsxs(p.Fragment,{children:[p.jsx("p",{className:Et.docPath,children:d}),p.jsxs("div",{className:Et.refs,children:[p.jsx("h3",{className:Et.refsTitle,children:r("docs.view.referencedBy")}),D.length===0?p.jsx("p",{className:Et.muted,children:r("docs.view.noRefs")}):p.jsx("ul",{className:Et.refsList,children:D.map(E=>{const R=S.get(E.id);return p.jsx("li",{children:p.jsxs("button",{type:"button",className:Et.refBtn,onClick:()=>R&&t(R),disabled:!R,children:[p.jsx("span",{className:Et.refId,children:E.id})," ",E.title,p.jsx("span",{className:Et.refStatus,children:_(E.status)})]})},E.id)})})]}),h===null?p.jsx("p",{className:Et.muted,children:r("board.loading")}):h==="broken"?p.jsx("p",{className:Et.broken,children:r("docs.broken")}):p.jsx("div",{className:Et.markdown,children:p.jsx(xl,{remarkPlugins:[_l],children:h.content})})]})]})]})}const EA="_boundary_xnu0x_1",TA="_title_xnu0x_10",IA="_detail_xnu0x_16",AA="_retry_xnu0x_22",Wo={boundary:EA,title:TA,detail:IA,retry:AA};class DA extends b.Component{constructor(){super(...arguments);Ni(this,"state",{error:null});Ni(this,"handleRetry",()=>{this.setState({error:null})})}static getDerivedStateFromError(r){return{error:r}}componentDidCatch(r,s){console.error("AIzuchi view render error:",r,s.componentStack)}render(){return this.state.error!==null?p.jsxs("div",{className:Wo.boundary,role:"alert",children:[p.jsx("p",{className:Wo.title,children:this.props.title}),p.jsx("p",{className:Wo.detail,children:this.props.detail}),p.jsx("button",{type:"button",className:Wo.retry,onClick:this.handleRetry,children:this.props.retryLabel})]}):this.props.children}}const RA=new Set(["skills","agents","rules"]),PA=new Set(["skill.md","agent.md"]);function LA(e){const t=e.split("/");for(let r=0;r<t.length-1;r++)if(RA.has(t[r]))return t.slice(0,r+2).join("/");return t.slice(0,-1).join("/")||e}function MA(e){const t=[],r=new Map;for(const s of e){const l=LA(s.path);let o=r.get(l);if(!o){const f=l.split("/").pop()??l;o={key:l,name:f,items:[]},r.set(l,o),t.push(l)}const c=s.path.startsWith(`${l}/`)?s.path.slice(l.length+1):s.path.split("/").pop()??s.path;o.items.push({...s,label:c});const d=(s.path.split("/").pop()??"").toLowerCase();PA.has(d)&&s.name&&(o.name=s.name)}return t.map(s=>r.get(s))}const OA=25e4;function cv(e,t){const r=e.split(`
|
|
91
|
-
`),s=t.split(`
|
|
92
|
-
`),l=r.length,o=s.length;if(l*o>OA){const g=[];for(const y of r)g.push({op:"remove",text:y});for(const y of s)g.push({op:"add",text:y});return g}const c=Array.from({length:l+1},()=>new Array(o+1).fill(0));for(let g=l-1;g>=0;g--)for(let y=o-1;y>=0;y--)c[g][y]=r[g]===s[y]?c[g+1][y+1]+1:Math.max(c[g+1][y],c[g][y+1]);const d=[];let f=0,h=0;for(;f<l&&h<o;)r[f]===s[h]?(d.push({op:"equal",text:r[f]}),f++,h++):c[f+1][h]>=c[f][h+1]?(d.push({op:"remove",text:r[f]}),f++):(d.push({op:"add",text:s[h]}),h++);for(;f<l;)d.push({op:"remove",text:r[f++]});for(;h<o;)d.push({op:"add",text:s[h++]});return d}const zA="_diff_1xtfr_1",$A="_line_1xtfr_12",BA="_sign_1xtfr_19",FA="_equal_1xtfr_25",VA="_add_1xtfr_29",UA="_remove_1xtfr_34",is={diff:zA,line:$A,sign:BA,equal:FA,add:VA,remove:UA};function uv({before:e,after:t,ariaLabel:r}){const s=b.useMemo(()=>cv(e,t),[e,t]);return p.jsx("div",{className:is.diff,role:"region","aria-label":r,children:s.map((l,o)=>p.jsxs("div",{className:`${is.line} ${l.op==="add"?is.add:l.op==="remove"?is.remove:is.equal}`,children:[p.jsx("span",{className:is.sign,children:l.op==="add"?"+":l.op==="remove"?"-":" "}),p.jsx("span",{children:l.text})]},o))})}const HA="_view_7aej0_1",WA="_sidebar_7aej0_7",qA="_sectionTitle_7aej0_15",KA="_fileItem_7aej0_24",ZA="_fileItemActive_7aej0_47",YA="_tree_7aej0_53",QA="_treeDir_7aej0_57",XA="_catalogItem_7aej0_63",GA="_catalogName_7aej0_68",JA="_catalogDesc_7aej0_72",eD="_catalogGroup_7aej0_77",tD="_catalogGroupSummary_7aej0_81",nD="_catalogCount_7aej0_98",rD="_main_7aej0_109",iD="_mainHeader_7aej0_117",sD="_mainPath_7aej0_124",lD="_editor_7aej0_131",oD="_notice_7aej0_143",aD="_confirmIntro_7aej0_153",cD="_globalBadge_7aej0_160",uD="_globalWarn_7aej0_172",dD="_footer_7aej0_182",fD="_error_7aej0_189",pD="_loadError_7aej0_195",hD="_saved_7aej0_202",mD="_btn_7aej0_207",gD="_btnPrimary_7aej0_224",yD="_empty_7aej0_245",et={view:HA,sidebar:WA,sectionTitle:qA,fileItem:KA,fileItemActive:ZA,tree:YA,treeDir:QA,catalogItem:XA,catalogName:GA,catalogDesc:JA,catalogGroup:eD,catalogGroupSummary:tD,catalogCount:nD,main:rD,mainHeader:iD,mainPath:sD,editor:lD,notice:oD,confirmIntro:aD,globalBadge:cD,globalWarn:uD,footer:dD,error:fD,loadError:pD,saved:hD,btn:mD,btnPrimary:gD,empty:yD};function vD({board:e}){const{t}=vt(),r=e.config.aiConfigPaths,s=e.config.aiConfigPaths.rootFiles,[l,o]=b.useState([]),[c,d]=b.useState([]),[f,h]=b.useState(null),[g,y]=b.useState(""),[k,x]=b.useState(0),[_,T]=b.useState(""),[D,S]=b.useState("idle"),[L,E]=b.useState(null),[R,P]=b.useState(!1),[j,H]=b.useState(!1),[Z,G]=b.useState([]),[z,K]=b.useState(!1);b.useEffect(()=>{let I=!0;return(async()=>{try{const[V,C,Y]=await Promise.all([Tk(),Ph(),Ph(!0)]);I&&(o(V),d(C),G(Y),P(!1))}catch{I&&P(!0)}})(),()=>{I=!1}},[e]);const ne=b.useMemo(()=>f!==null&&s.includes(f),[f,s]),xe=f!==null&&f.endsWith(".json"),ee=_!==g,F=async(I,V=!1)=>{h(I),K(V),E(null),S("idle");try{const C=await jk(I,V);y(C.content),T(C.content),x(C.mtimeMs)}catch(C){C instanceof br&&C.status===404?(y(""),T(""),x(0),E(t("files.notFound"))):(E(C instanceof Error?C.message:t("files.loadError")),y(""),T(""))}},ge=()=>{if(f!==null){if(xe)try{JSON.parse(_)}catch{E(t("files.invalidJson"));return}E(null),H(!0)}},he=async()=>{if(f!==null){H(!1),S("saving"),E(null);try{const I=await Ek(f,_,k,z);y(I.content),x(I.mtimeMs),S("saved")}catch(I){S("idle"),I instanceof br&&I.status===409?E(t("files.conflict")):E(I instanceof Error?I.message:t("files.saveError"))}}},J=(I,V=0)=>I.flatMap(C=>C.type==="dir"?[p.jsxs("div",{className:et.treeDir,style:{paddingLeft:V*12},children:[C.name,"/"]},C.path),...J(C.children??[],V+1)]:[p.jsx("button",{type:"button",className:`${et.fileItem} ${f===C.path?et.fileItemActive:""}`,style:{paddingLeft:V*12+6},onClick:()=>void F(C.path),children:C.name},C.path)]),fe=(I,V,C)=>p.jsxs("button",{type:"button",className:`${et.fileItem} ${f===I.path&&z===V?et.fileItemActive:""}`,onClick:()=>void F(I.path,V),children:[p.jsx("span",{className:et.catalogName,children:C?I.label:I.name??I.label}),I.description&&p.jsx("div",{className:et.catalogDesc,children:I.description})]},I.path),N=(I,V)=>MA(I).map(C=>C.items.length===1?p.jsx("div",{className:et.catalogItem,children:fe(C.items[0],V,!1)},C.key):p.jsxs("details",{className:et.catalogGroup,children:[p.jsxs("summary",{className:et.catalogGroupSummary,children:[C.name," ",p.jsx("span",{className:et.catalogCount,children:C.items.length})]}),C.items.map(Y=>fe(Y,V,!0))]},C.key));return p.jsxs("div",{className:et.view,children:[p.jsxs("div",{className:et.sidebar,children:[p.jsx("div",{className:et.sectionTitle,children:t("files.settings")}),[...r.settingsFiles,...s].map(I=>p.jsx("button",{type:"button",className:`${et.fileItem} ${f===I?et.fileItemActive:""}`,onClick:()=>void F(I),children:I},I)),p.jsx("div",{className:et.sectionTitle,children:t("files.browse")}),R&&p.jsx("div",{className:et.loadError,children:t("files.treeLoadError")}),p.jsx("div",{className:et.tree,children:J(l)}),p.jsx("div",{className:et.sectionTitle,children:t("files.catalog")}),c.length===0?p.jsx("div",{className:et.catalogDesc,children:t("files.catalogEmpty")}):N(c,!1),p.jsx("div",{className:et.sectionTitle,children:t("files.globalCatalog")}),Z.length===0?p.jsx("div",{className:et.catalogDesc,children:t("files.globalCatalogEmpty")}):N(Z,!0)]}),p.jsx("div",{className:et.main,children:f===null?p.jsx("div",{className:et.empty,children:t("files.selectPrompt")}):p.jsxs(p.Fragment,{children:[p.jsxs("div",{className:et.mainHeader,children:[z&&p.jsx("span",{className:et.globalBadge,children:t("files.globalBadge")}),p.jsx("span",{className:et.mainPath,children:f})]}),p.jsx("textarea",{className:et.editor,value:_,onChange:I=>{T(I.target.value),S("idle")},spellCheck:!1,"aria-label":f}),ne&&p.jsx("div",{className:et.notice,children:t("files.restartNotice")}),p.jsxs("div",{className:et.footer,children:[L&&p.jsx("span",{className:et.error,children:L}),D==="saved"&&!ee&&p.jsx("span",{className:et.saved,children:t("files.saved")}),p.jsx("span",{style:{flex:1}}),p.jsx("button",{type:"button",className:et.btn,onClick:()=>void F(f),children:t("files.reload")}),p.jsx("button",{type:"button",className:`${et.btn} ${et.btnPrimary}`,onClick:()=>void ge(),disabled:!ee||D==="saving",children:t(D==="saving"?"files.saving":"files.save")})]})]})}),j&&f!==null&&p.jsxs(di,{title:t("files.confirmSave.title"),onClose:()=>H(!1),wide:!0,children:[z&&p.jsxs("p",{className:et.globalWarn,children:["⚠ ",t("files.globalWarn")]}),p.jsx("p",{className:et.confirmIntro,children:t("files.confirmSave.intro",{file:f})}),p.jsx(uv,{before:g,after:_,ariaLabel:t("files.confirmSave.diffAria")}),p.jsxs("div",{className:de.actions,children:[p.jsx("button",{type:"button",className:de.btn,onClick:()=>H(!1),children:t("files.confirmSave.cancel")}),p.jsx("button",{type:"button",className:`${de.btn} ${de.btnPrimary}`,onClick:()=>void he(),children:t("files.confirmSave.confirm")})]})]})]})}function xD(e,t,r,s,l){const o=Xy(e.map(_=>_.frontmatter)),c=wa(e.map(_=>({id:_.frontmatter.id,title:_.frontmatter.title,status:_.frontmatter.status,updated:_.frontmatter.updated,body:_.body})),r,s),d=e.filter(_=>_.frontmatter.status!=="done"),f=Fd(d.map(_=>({id:_.frontmatter.id,dependsOn:_.frontmatter.depends_on}))),h=f.criticalPath.length>0?f.criticalPath[0]:null,g=new Map;for(const _ of e)g.set(_.frontmatter.status,(g.get(_.frontmatter.status)??0)+1);const y=[];for(const _ of t){if(_.wipLimit===void 0)continue;const T=g.get(_.id)??0;T>_.wipLimit&&y.push({columnId:_.id,count:T,limit:_.wipLimit})}const k=e.map(_=>_.frontmatter.id).filter(_=>l.has(_)),x=o.length===0&&c.length===0&&y.length===0&&k.length===0;return{decisions:o,stalled:c,criticalPath:f.criticalPath,hasCycle:f.cycleNodes.length>0,nextActionId:h,wipOverflows:y,unreadIds:k,allClear:x}}const kD="_home_1yzyl_1",_D="_intro_1yzyl_8",wD="_title_1yzyl_14",bD="_lead_1yzyl_19",SD="_allClear_1yzyl_25",CD="_allClearTitle_1yzyl_32",ND="_allClearDetail_1yzyl_38",jD="_hero_1yzyl_44",ED="_sectionTitle_1yzyl_51",TD="_count_1yzyl_60",ID="_chain_1yzyl_74",AD="_arrow_1yzyl_81",DD="_chip_1yzyl_86",RD="_chipNext_1yzyl_109",PD="_startBadge_1yzyl_114",LD="_chipId_1yzyl_124",MD="_chipTitle_1yzyl_130",OD="_grid_1yzyl_135",zD="_card_1yzyl_141",$D="_list_1yzyl_148",BD="_item_1yzyl_157",FD="_itemId_1yzyl_179",VD="_itemTitle_1yzyl_185",UD="_itemMeta_1yzyl_190",HD="_wipRow_1yzyl_195",WD="_empty_1yzyl_204",qD="_cycle_1yzyl_210",Le={home:kD,intro:_D,title:wD,lead:bD,allClear:SD,allClearTitle:CD,allClearDetail:ND,hero:jD,sectionTitle:ED,count:TD,chain:ID,arrow:AD,chip:DD,chipNext:RD,startBadge:PD,chipId:LD,chipTitle:MD,grid:OD,card:zD,list:$D,item:BD,itemId:FD,itemTitle:VD,itemMeta:UD,wipRow:HD,empty:WD,cycle:qD};function KD({board:e,unreadIds:t,onOpen:r}){const{t:s}=vt(),l=nv(),o=b.useMemo(()=>new Map(e.tasks.map(g=>[g.frontmatter.id,g])),[e.tasks]),c=b.useMemo(()=>new Map(e.config.columns.map(g=>[g.id,g])),[e.config.columns]),d=b.useMemo(()=>xD(e.tasks,e.config.columns,l,e.config.stallThresholds??{},t),[e.tasks,e.config.columns,e.config.stallThresholds,l,t]),f=g=>{const y=o.get(g);y&&r(y)},h=g=>Id(s,c.get(g)??{id:g});return p.jsxs("div",{className:Le.home,children:[p.jsxs("header",{className:Le.intro,children:[p.jsx("h2",{className:Le.title,children:s("view.home")}),p.jsx("p",{className:Le.lead,children:s("home.lead")})]}),e.tasks.length===0?p.jsx("div",{className:Le.allClear,children:p.jsx("p",{className:Le.allClearDetail,children:s("home.empty")})}):p.jsxs(p.Fragment,{children:[d.allClear&&p.jsxs("div",{className:Le.allClear,role:"status",children:[p.jsxs("p",{className:Le.allClearTitle,children:["✓ ",s("home.allClear.title")]}),p.jsx("p",{className:Le.allClearDetail,children:s("home.allClear.detail")})]}),p.jsxs("section",{className:Le.hero,children:[p.jsx("h3",{className:Le.sectionTitle,children:s("home.next.title")}),d.hasCycle?p.jsx("p",{className:Le.cycle,role:"alert",children:s("home.next.cycle")}):d.criticalPath.length===0?p.jsx("p",{className:Le.empty,children:s("home.next.empty")}):p.jsx("div",{className:Le.chain,children:d.criticalPath.map((g,y)=>{const k=o.get(g),x=g===d.nextActionId;return p.jsxs(b.Fragment,{children:[y>0&&p.jsx("span",{className:Le.arrow,"aria-hidden":"true",children:"→"}),p.jsxs("button",{type:"button",className:`${Le.chip} ${x?Le.chipNext:""}`,onClick:()=>f(g),"aria-label":s("home.openAria",{id:g}),children:[x&&p.jsx("span",{className:Le.startBadge,children:s("home.next.startHere")}),p.jsx("span",{className:Le.chipId,children:g}),k&&p.jsx("span",{className:Le.chipTitle,children:k.frontmatter.title})]})]},g)})})]}),p.jsxs("div",{className:Le.grid,children:[p.jsxs("section",{className:Le.card,children:[p.jsxs("h3",{className:Le.sectionTitle,children:[s("decisionWaits.title"),d.decisions.length>0&&p.jsx("span",{className:Le.count,children:d.decisions.length})]}),d.decisions.length===0?p.jsx("p",{className:Le.empty,children:s("decisionWaits.empty")}):p.jsx("ul",{className:Le.list,children:d.decisions.map(g=>p.jsx("li",{children:p.jsxs("button",{type:"button",className:Le.item,onClick:()=>f(g.id),"aria-label":s("home.openAria",{id:g.id}),children:[p.jsx("span",{className:Le.itemId,children:g.id}),p.jsx("span",{className:Le.itemTitle,children:g.title}),p.jsx("span",{className:Le.itemMeta,children:g.blocked_reason??s("decisionWaits.noReason")})]})},g.id))})]}),p.jsxs("section",{className:Le.card,children:[p.jsxs("h3",{className:Le.sectionTitle,children:[s("stalled.title"),d.stalled.length>0&&p.jsx("span",{className:Le.count,children:d.stalled.length})]}),d.stalled.length===0?p.jsx("p",{className:Le.empty,children:s("stalled.empty")}):p.jsx("ul",{className:Le.list,children:d.stalled.map(g=>p.jsx("li",{children:p.jsxs("button",{type:"button",className:Le.item,onClick:()=>f(g.id),"aria-label":s("home.openAria",{id:g.id}),children:[p.jsx("span",{className:Le.itemId,children:g.id}),p.jsx("span",{className:Le.itemTitle,children:g.title}),p.jsxs("span",{className:Le.itemMeta,children:[h(g.status)," · ",s("home.idleDays",{n:g.idleDays})]})]})},g.id))})]}),p.jsxs("section",{className:Le.card,children:[p.jsxs("h3",{className:Le.sectionTitle,children:[s("home.wip.title"),d.wipOverflows.length>0&&p.jsx("span",{className:Le.count,children:d.wipOverflows.length})]}),d.wipOverflows.length===0?p.jsx("p",{className:Le.empty,children:s("home.wip.empty")}):p.jsx("ul",{className:Le.list,children:d.wipOverflows.map(g=>p.jsx("li",{className:Le.wipRow,children:s("home.wip.row",{label:h(g.columnId),count:g.count,limit:g.limit})},g.columnId))})]}),p.jsxs("section",{className:Le.card,children:[p.jsxs("h3",{className:Le.sectionTitle,children:[s("home.unread.title"),d.unreadIds.length>0&&p.jsx("span",{className:Le.count,children:d.unreadIds.length})]}),d.unreadIds.length===0?p.jsx("p",{className:Le.empty,children:s("home.unread.empty")}):p.jsx("ul",{className:Le.list,children:d.unreadIds.map(g=>{const y=o.get(g);return p.jsx("li",{children:p.jsxs("button",{type:"button",className:Le.item,onClick:()=>f(g),"aria-label":s("home.openAria",{id:g}),children:[p.jsx("span",{className:Le.itemId,children:g}),y&&p.jsx("span",{className:Le.itemTitle,children:y.frontmatter.title})]})},g)})})]})]})]})]})}function ZD(e,t){const r=[],s=new Set;for(const d of e)s.has(d.id)||(s.add(d.id),r.push(d));const l=new Map;for(const d of r)l.set(d.id,{done:0,total:0});const o={done:0,total:0};for(const d of t){const f=d.milestone!==null&&s.has(d.milestone)?l.get(d.milestone):o;f.total+=1,d.done&&(f.done+=1)}return{milestones:r.map(d=>({milestone:d,...l.get(d.id)})).sort((d,f)=>d.milestone.order-f.milestone.order||d.milestone.id.localeCompare(f.milestone.id)),unassigned:o}}const YD="_view_xktx5_1",QD="_viewEmpty_xktx5_7",XD="_sidebar_xktx5_19",GD="_sidebarTitle_xktx5_28",JD="_navList_xktx5_35",eR="_sideEmpty_xktx5_36",tR="_navBtn_xktx5_52",nR="_navBtnActive_xktx5_76",rR="_navLabel_xktx5_82",iR="_navCount_xktx5_88",sR="_detail_xktx5_100",lR="_sectionTitle_xktx5_106",oR="_histStatus_xktx5_115",aR="_milestone_xktx5_122",cR="_milestoneactive_xktx5_131",uR="_milestonedone_xktx5_135",dR="_milestoneplanned_xktx5_139",fR="_msInfo_xktx5_143",pR="_msTitle_xktx5_148",hR="_msStatus_xktx5_152",mR="_msProgress_xktx5_157",gR="_month_xktx5_161",yR="_monthHeader_xktx5_165",vR="_histEntry_xktx5_173",xR="_histId_xktx5_185",kR="_histTitle_xktx5_192",_R="_histSummary_xktx5_197",wR="_empty_xktx5_202",Qe={view:YD,viewEmpty:QD,sidebar:XD,sidebarTitle:GD,navList:JD,sideEmpty:eR,navBtn:tR,navBtnActive:nR,navLabel:rR,navCount:iR,detail:sR,sectionTitle:lR,histStatus:oR,milestone:aR,milestoneactive:cR,milestonedone:uR,milestoneplanned:dR,msInfo:fR,msTitle:pR,msStatus:hR,msProgress:mR,month:gR,monthHeader:yR,histEntry:vR,histId:xR,histTitle:kR,histSummary:_R,empty:wR},bR={planned:"milestone.status.planned",active:"milestone.status.active",done:"milestone.status.done"};function lg(e){var s;const t=Vd(e),r=t[t.length-1];return r?{summary:r.message,date:((s=r.timestamp)==null?void 0:s.slice(0,7))??null}:{summary:"",date:null}}function SR({board:e,onOpen:t}){const{t:r}=vt(),[s,l]=b.useState([]),[o,c]=b.useState(null);b.useEffect(()=>{let S=!0;const L=new AbortController;return(async()=>{try{const E=await id(L.signal);S&&l(E.tasks)}catch{S&&l([])}})(),()=>{S=!1,L.abort()}},[e]);const d=b.useMemo(()=>ZD(e.config.milestones,e.tasks.map(S=>({milestone:S.frontmatter.milestone,done:S.frontmatter.status==="done"}))),[e.config.milestones,e.tasks]),f=b.useMemo(()=>{const S=[],L=new Set;for(const R of e.tasks){if(R.frontmatter.status!=="done")continue;L.add(R.frontmatter.id);const{summary:P,date:j}=lg(R.body);S.push({id:R.frontmatter.id,title:R.frontmatter.title,month:j??R.frontmatter.updated.slice(0,7),summary:P,task:R})}for(const R of s){if(L.has(R.id))continue;const{summary:P,date:j}=lg(R.body);S.push({id:R.id,title:R.id,month:j??"----",summary:P})}const E=new Map;for(const R of S){const P=E.get(R.month)??[];P.push(R),E.set(R.month,P)}return[...E.entries()].sort((R,P)=>P[0].localeCompare(R[0])).map(([R,P])=>({month:R,items:P.sort((j,H)=>j.id.localeCompare(H.id,"en",{numeric:!0}))}))},[e.tasks,s]),h=b.useMemo(()=>El(r,e.config.columns),[r,e.config.columns]),g=b.useMemo(()=>new Set(e.config.milestones.map(S=>S.id)),[e.config.milestones]),y=S=>e.tasks.filter(L=>S===null?L.frontmatter.milestone===null||!g.has(L.frontmatter.milestone):L.frontmatter.milestone===S).sort((L,E)=>L.frontmatter.id.localeCompare(E.frontmatter.id,"en",{numeric:!0})),x=o!==null&&(o.kind==="milestone"&&d.milestones.some(S=>S.milestone.id===o.id)||o.kind==="unassigned"&&d.unassigned.total>0||o.kind==="month"&&f.some(S=>S.month===o.month))?o:f.length>0?{kind:"month",month:f[0].month}:d.milestones.length>0?{kind:"milestone",id:d.milestones[0].milestone.id}:d.unassigned.total>0?{kind:"unassigned"}:null,_=S=>x===null?!1:S.kind==="milestone"?x.kind==="milestone"&&x.id===S.id:S.kind==="month"?x.kind==="month"&&x.month===S.month:x.kind==="unassigned";if(x===null)return p.jsx("div",{className:Qe.viewEmpty,children:p.jsx("div",{className:Qe.empty,children:r("milestone.empty")})});const T=S=>{const L=S!==null?S.milestone.title:r("milestone.unassignedTasks"),E=S!==null?Qe[`milestone${S.milestone.status}`]:Qe.milestoneplanned,R=S!==null?S.done:d.unassigned.done,P=S!==null?S.total:d.unassigned.total,j=y(S!==null?S.milestone.id:null);return p.jsxs(p.Fragment,{children:[p.jsxs("div",{className:`${Qe.milestone} ${E}`,children:[p.jsxs("div",{className:Qe.msInfo,children:[p.jsx("div",{className:Qe.msTitle,children:L}),S!==null&&p.jsx("span",{className:Qe.msStatus,children:r(bR[S.milestone.status])})]}),p.jsx("div",{className:Qe.msProgress,children:p.jsx(iv,{done:R,total:P})})]}),p.jsx("p",{className:Qe.sectionTitle,children:r("milestone.tasks")}),j.length===0?p.jsx("div",{className:Qe.empty,children:r("column.empty")}):j.map(H=>p.jsxs("div",{className:Qe.histEntry,role:"button",tabIndex:0,onClick:()=>t(H),onKeyDown:Z=>{(Z.key==="Enter"||Z.key===" ")&&(Z.preventDefault(),t(H))},children:[p.jsx("span",{className:Qe.histId,children:H.frontmatter.id}),p.jsx("span",{className:Qe.histTitle,children:H.frontmatter.title}),p.jsx("span",{className:Qe.histStatus,children:h(H.frontmatter.status)})]},H.frontmatter.id))]})},D=S=>{const L=f.find(E=>E.month===S);return L?p.jsxs("section",{className:Qe.month,children:[p.jsx("div",{className:Qe.monthHeader,children:L.month}),L.items.map(E=>p.jsxs("div",{className:Qe.histEntry,role:E.task?"button":void 0,tabIndex:E.task?0:void 0,onClick:()=>E.task&&t(E.task),onKeyDown:R=>{(R.key==="Enter"||R.key===" ")&&E.task&&(R.preventDefault(),t(E.task))},children:[p.jsx("span",{className:Qe.histId,children:E.id}),p.jsx("span",{className:Qe.histTitle,children:E.title}),E.summary&&p.jsx("span",{className:Qe.histSummary,children:E.summary})]},E.id))]}):null};return p.jsxs("div",{className:Qe.view,children:[p.jsxs("aside",{className:Qe.sidebar,"aria-label":r("view.milestones"),children:[p.jsx("p",{className:Qe.sidebarTitle,children:r("milestone.roadmap")}),d.milestones.length===0&&d.unassigned.total===0?p.jsx("p",{className:Qe.sideEmpty,children:r("milestone.empty")}):p.jsxs("ul",{className:Qe.navList,children:[d.milestones.map(S=>p.jsx("li",{children:p.jsxs("button",{type:"button",className:`${Qe.navBtn} ${_({kind:"milestone",id:S.milestone.id})?Qe.navBtnActive:""}`,onClick:()=>c({kind:"milestone",id:S.milestone.id}),children:[p.jsx("span",{className:Qe.navLabel,children:S.milestone.title}),p.jsxs("span",{className:Qe.navCount,children:[S.done,"/",S.total]})]})},S.milestone.id)),d.unassigned.total>0&&p.jsx("li",{children:p.jsxs("button",{type:"button",className:`${Qe.navBtn} ${_({kind:"unassigned"})?Qe.navBtnActive:""}`,onClick:()=>c({kind:"unassigned"}),children:[p.jsx("span",{className:Qe.navLabel,children:r("milestone.unassignedTasks")}),p.jsxs("span",{className:Qe.navCount,children:[d.unassigned.done,"/",d.unassigned.total]})]})})]}),p.jsx("p",{className:Qe.sidebarTitle,children:r("milestone.history")}),f.length===0?p.jsx("p",{className:Qe.sideEmpty,children:r("digest.empty")}):p.jsx("ul",{className:Qe.navList,children:f.map(S=>p.jsx("li",{children:p.jsxs("button",{type:"button",className:`${Qe.navBtn} ${_({kind:"month",month:S.month})?Qe.navBtnActive:""}`,onClick:()=>c({kind:"month",month:S.month}),children:[p.jsx("span",{className:Qe.navLabel,children:S.month}),p.jsx("span",{className:Qe.navCount,children:S.items.length})]})},S.month))})]}),p.jsx("div",{className:Qe.detail,children:x.kind==="month"?D(x.month):T(x.kind==="milestone"?d.milestones.find(S=>S.milestone.id===x.id)??null:null)})]})}function og(e,t){return e.filter(r=>r.frontmatter.created_by===t||r.frontmatter.assignee===t).length}function CR(e,t,r){const s=[];for(const k of t)k.originalId===null||k.id.trim()===""||k.id===k.originalId||s.push({from:k.originalId,to:k.id,count:og(r,k.originalId)});const l=new Set(t.map(k=>k.originalId).filter(k=>k!==null)),o=t.map(k=>k.id).filter(k=>k.trim()!==""),c=new Set(o),d=e.filter(k=>!l.has(k)&&!c.has(k)).map(k=>({id:k,count:og(r,k)})),f=new Set([...s.map(k=>k.from),...d.map(k=>k.id)]),h=s.some(k=>f.has(k.to)),g=new Set,y=[];for(const k of o)g.has(k)&&!y.includes(k)&&y.push(k),g.add(k);return{renames:s,removals:d,swap:h,duplicates:y}}const NR="_section_1brv5_1",jR="_sectionTitle_1brv5_5",ER="_modeBox_1brv5_14",TR="_memberRow_1brv5_22",IR="_memberId_1brv5_41",AR="_removeBtn_1brv5_45",DR="_addBtn_1brv5_57",RR="_colRow_1brv5_71",PR="_colId_1brv5_89",LR="_viewName_1brv5_95",MR="_colWip_1brv5_101",OR="_colCheck_1brv5_105",zR="_moveBtn_1brv5_114",$R="_advanced_1brv5_132",BR="_jsonEditor_1brv5_140",FR="_saved_1brv5_155",VR="_reloadBtn_1brv5_161",UR="_migrateBox_1brv5_177",HR="_migrateTitle_1brv5_186",WR="_migrateItem_1brv5_192",qR="_migrateActions_1brv5_212",Xe={section:NR,sectionTitle:jR,modeBox:ER,memberRow:TR,memberId:IR,removeBtn:AR,addBtn:DR,colRow:RR,colId:PR,viewName:LR,colWip:MR,colCheck:OR,moveBtn:zR,advanced:$R,jsonEditor:BR,saved:FR,reloadBtn:VR,migrateBox:UR,migrateTitle:HR,migrateItem:WR,migrateActions:qR};function qo(e,t,r){if(r<0||r>=e.length)return e;const s=e.slice(),[l]=s.splice(t,1);return s.splice(r,0,l),s}let ag=0;function cg(){return ag+=1,`m${ag}`}let ug=0;function dg(){return ug+=1,`c${ug}`}function KR({onClose:e,onSaved:t,tasks:r=[]}){const{t:s,lang:l,setLang:o}=vt(),[c,d]=b.useState(null),[f,h]=b.useState(null),[g,y]=b.useState(null),[k,x]=b.useState(""),[_,T]=b.useState(""),[D,S]=b.useState(""),[L,E]=b.useState("free"),[R,P]=b.useState([]),[j,H]=b.useState([]),[Z,G]=b.useState([]),[z,K]=b.useState([]),[ne,xe]=b.useState([]),[ee,F]=b.useState([]),[ge,he]=b.useState([]),[J,fe]=b.useState(""),[N,I]=b.useState(!1),[V,C]=b.useState(null),[Y,ke]=b.useState({}),[ye,Be]=b.useState(!1),[Fe,Ve]=b.useState(!1),[Ze,dt]=b.useState(null),[_t,Zt]=b.useState(!1),pt=b.useCallback(async()=>{const{config:le,mtimeMs:pe}=await Qo(),ve=jg.parse(le);d(le),h(pe),x(ve.projectName),T(ve.idPrefix),S(ve.instructionTemplate),E(ve.aiTaskCreation),P(ve.members.map(Re=>({key:cg(),id:Re.id,label:Re.label??"",type:Re.type,originalId:Re.id}))),H(ve.members.map(Re=>Re.id)),C(null),ke({}),G(ve.columns.map(Re=>({key:dg(),id:Re.id,label:Re.label??"",wipLimit:Re.wipLimit!=null?String(Re.wipLimit):"",hideWhenEmpty:Re.hideWhenEmpty??!1}))),K(ve.aiConfigPaths.settingsFiles),xe(ve.aiConfigPaths.browseDirs),F(ve.aiConfigPaths.rootFiles),he(ov(da,ve.views)),fe(JSON.stringify({milestones:ve.milestones},null,2)),Zt(!1),dt(null)},[]);b.useEffect(()=>{let le=!0;return(async()=>{try{await pt()}catch(pe){le&&y(pe instanceof Error?pe.message:"load failed")}})(),()=>{le=!1}},[pt]);const Yt=async()=>{try{await pt()}catch(le){dt(le instanceof Error?le.message:s("settings.loadError"))}},It=async le=>{if(c){Be(!0),Ve(!1),dt(null),Zt(!1);try{let pe={};if(J.trim().length>0){pe=JSON.parse(J);for(const me of["members","projectName","idPrefix","instructionTemplate","aiTaskCreation","language","columns","aiConfigPaths","views"])delete pe[me]}const ve={...c,projectName:k,idPrefix:_,instructionTemplate:D,aiTaskCreation:L,...N?{language:l}:{},members:R.map(me=>({id:me.id,...me.label.trim()!==""?{label:me.label.trim()}:{},type:me.type})),columns:Z.map(me=>{const Ye=Number(me.wipLimit);return{id:me.id.trim(),...me.label.trim()!==""?{label:me.label.trim()}:{},...me.hideWhenEmpty?{hideWhenEmpty:!0}:{},...me.wipLimit.trim()!==""&&Number.isInteger(Ye)&&Ye>0?{wipLimit:Ye}:{}}}),aiConfigPaths:{settingsFiles:z.map(me=>me.trim()).filter(me=>me!==""),browseDirs:ne.map(me=>me.trim()).filter(me=>me!==""),rootFiles:ee.map(me=>me.trim()).filter(me=>me!=="")},views:ge.map(me=>({id:me.id,...me.hidden?{hidden:!0}:{}})),...pe};await sd(ve,f);try{const{mtimeMs:me}=await Qo();h(me)}catch{}const Re=[];try{for(const me of le){const Ye=await Ck(me.from,me.to);Re.push(...Ye.skipped)}}catch{dt(s("settings.migrate.failed"));return}try{for(const me of le)for(const Ye of["aizuchi.createdBy","aizuchi.commentMember"])typeof localStorage<"u"&&localStorage.getItem(Ye)===me.from&&localStorage.setItem(Ye,me.to)}catch{}try{await pt()}catch{}Re.length>0&&dt(s("settings.migrate.skipped",{files:Re.join(", ")})),Ve(!0),t(),window.setTimeout(()=>Ve(!1),2e3)}catch(pe){pe instanceof _r?(h(pe.serverMtimeMs),Zt(!0),dt(s("settings.conflict"))):dt(pe instanceof Error?pe.message:s("settings.error"))}finally{Be(!1)}}},kn=async()=>{if(!c)return;const le=CR(j,R,r);if(le.duplicates.length>0){dt(s("settings.members.duplicate",{ids:le.duplicates.join(", ")}));return}if(le.swap){dt(s("settings.migrate.swap"));return}const pe=le.removals.filter(ve=>ve.count>0);if(le.renames.some(ve=>ve.count>0)||pe.length>0){dt(null),C({renames:le.renames,removals:pe}),ke({});return}await It(le.renames.map(ve=>({from:ve.from,to:ve.to})))},Cn=async()=>{if(V===null)return;const le=[...V.renames.map(pe=>({from:pe.from,to:pe.to})),...V.removals.filter(pe=>(Y[pe.id]??"")!=="").map(pe=>({from:pe.id,to:Y[pe.id]}))];C(null),await It(le)},Qt=(le,pe,ve)=>p.jsxs("div",{className:Xe.section,children:[p.jsx("p",{className:Xe.sectionTitle,children:s(le)}),pe.map((Re,me)=>p.jsxs("div",{className:Xe.memberRow,children:[p.jsx("input",{type:"text",className:Xe.memberId,value:Re,placeholder:s("settings.paths.placeholder"),"aria-label":s(le),onChange:Ye=>ve(q=>q.map((ie,Ie)=>Ie===me?Ye.target.value.replace(/[\r\n]/g,""):ie))}),p.jsx("button",{type:"button",className:Xe.removeBtn,"aria-label":s("settings.paths.remove"),onClick:()=>ve(Ye=>Ye.filter((q,ie)=>ie!==me)),children:"×"})]},me)),p.jsx("button",{type:"button",className:Xe.addBtn,onClick:()=>ve(Re=>[...Re,""]),children:s("settings.paths.add")})]});return p.jsx(di,{title:s("settings.title"),onClose:e,wide:!0,children:g?p.jsx("p",{className:de.error,children:g==="load failed"?s("settings.loadError"):g}):c?p.jsxs(p.Fragment,{children:[Ze&&p.jsxs("p",{className:de.error,role:"alert",children:[Ze,_t&&p.jsxs(p.Fragment,{children:[" ",p.jsx("button",{type:"button",className:Xe.reloadBtn,onClick:()=>void Yt(),children:s("settings.reload")})]})]}),p.jsxs("div",{className:Xe.modeBox,children:[p.jsx("label",{className:de.label,htmlFor:"ai-mode",children:s("settings.aiTaskCreation")}),p.jsxs("select",{id:"ai-mode",className:de.select,value:L,onChange:le=>E(le.target.value),children:[p.jsx("option",{value:"free",children:s("settings.aiTaskCreation.free")}),p.jsx("option",{value:"proposal",children:s("settings.aiTaskCreation.proposal")})]})]}),p.jsxs("div",{className:de.field,children:[p.jsx("label",{className:de.label,htmlFor:"set-lang",children:s("settings.language")}),p.jsx("select",{id:"set-lang",className:de.select,value:l,onChange:le=>{o(le.target.value),I(!0)},children:cd.map(le=>p.jsx("option",{value:le,children:s(le==="en"?"settings.language.en":"settings.language.ja")},le))})]}),p.jsxs("div",{className:de.field,children:[p.jsx("label",{className:de.label,htmlFor:"set-project",children:s("settings.projectName")}),p.jsx("input",{id:"set-project",className:de.input,value:k,onChange:le=>x(le.target.value.replace(/[\r\n]/g,""))})]}),p.jsxs("div",{className:de.field,children:[p.jsx("label",{className:de.label,htmlFor:"set-prefix",children:s("settings.idPrefix")}),p.jsx("input",{id:"set-prefix",className:de.input,value:_,onChange:le=>T(le.target.value.replace(/[\r\n]/g,""))})]}),p.jsxs("div",{className:de.field,children:[p.jsx("label",{className:de.label,htmlFor:"set-instruction",children:s("settings.instructionTemplate")}),p.jsx("input",{id:"set-instruction",className:de.input,value:D,onChange:le=>S(le.target.value.replace(/[\r\n]/g,""))})]}),p.jsxs("div",{className:Xe.section,children:[p.jsx("p",{className:Xe.sectionTitle,children:s("settings.members")}),R.map((le,pe)=>p.jsxs("div",{className:Xe.memberRow,children:[p.jsx("input",{className:Xe.memberId,value:le.id,placeholder:s("settings.members.idPlaceholder"),"aria-label":s("settings.members.idPlaceholder"),onChange:ve=>P(Re=>Re.map((me,Ye)=>Ye===pe?{...me,id:ve.target.value.replace(/[\r\n]/g,"")}:me))}),p.jsx("input",{className:Xe.memberId,value:le.label,placeholder:s("settings.members.labelPlaceholder"),"aria-label":s("settings.members.labelPlaceholder"),onChange:ve=>P(Re=>Re.map((me,Ye)=>Ye===pe?{...me,label:ve.target.value.replace(/[\r\n]/g,"")}:me))}),p.jsx("select",{value:le.type,onChange:ve=>P(Re=>Re.map((me,Ye)=>Ye===pe?{...me,type:ve.target.value}:me)),children:Cg.map(ve=>p.jsx("option",{value:ve,children:ve},ve))}),p.jsx("button",{type:"button",className:Xe.removeBtn,onClick:()=>P(ve=>ve.filter((Re,me)=>me!==pe)),children:"×"})]},le.key)),p.jsx("button",{type:"button",className:Xe.addBtn,onClick:()=>P(le=>[...le,{key:cg(),id:"",label:"",type:"ai",originalId:null}]),children:s("settings.members.add")})]}),p.jsxs("div",{className:Xe.section,children:[p.jsx("p",{className:Xe.sectionTitle,children:s("settings.columns")}),Z.map((le,pe)=>p.jsxs("div",{className:Xe.colRow,children:[p.jsx("input",{type:"text",className:Xe.colId,value:le.id,placeholder:s("settings.columns.idPlaceholder"),"aria-label":s("settings.columns.idPlaceholder"),onChange:ve=>G(Re=>Re.map((me,Ye)=>Ye===pe?{...me,id:ve.target.value.replace(/[\r\n]/g,"")}:me))}),p.jsx("input",{type:"text",className:Xe.colId,value:le.label,placeholder:s("settings.columns.labelPlaceholder"),"aria-label":s("settings.columns.labelPlaceholder"),onChange:ve=>G(Re=>Re.map((me,Ye)=>Ye===pe?{...me,label:ve.target.value.replace(/[\r\n]/g,"")}:me))}),p.jsx("input",{type:"number",min:"1",className:Xe.colWip,value:le.wipLimit,placeholder:s("settings.columns.wipPlaceholder"),"aria-label":s("settings.columns.wipAria"),onChange:ve=>G(Re=>Re.map((me,Ye)=>Ye===pe?{...me,wipLimit:ve.target.value}:me))}),p.jsxs("label",{className:Xe.colCheck,children:[p.jsx("input",{type:"checkbox",checked:le.hideWhenEmpty,onChange:ve=>G(Re=>Re.map((me,Ye)=>Ye===pe?{...me,hideWhenEmpty:ve.target.checked}:me))}),s("settings.columns.hideWhenEmpty")]}),p.jsx("button",{type:"button",className:Xe.moveBtn,disabled:pe===0,"aria-label":s("settings.columns.moveUp"),onClick:()=>G(ve=>qo(ve,pe,pe-1)),children:"↑"}),p.jsx("button",{type:"button",className:Xe.moveBtn,disabled:pe===Z.length-1,"aria-label":s("settings.columns.moveDown"),onClick:()=>G(ve=>qo(ve,pe,pe+1)),children:"↓"}),p.jsx("button",{type:"button",className:Xe.removeBtn,disabled:Z.length<=1,"aria-label":s("settings.columns.remove"),onClick:()=>G(ve=>ve.filter((Re,me)=>me!==pe)),children:"×"})]},le.key)),p.jsx("button",{type:"button",className:Xe.addBtn,onClick:()=>G(le=>[...le,{key:dg(),id:"",label:"",wipLimit:"",hideWhenEmpty:!1}]),children:s("settings.columns.add")})]}),Qt("settings.paths.settingsFiles",z,K),Qt("settings.paths.browseDirs",ne,xe),Qt("settings.paths.rootFiles",ee,F),p.jsxs("div",{className:Xe.section,children:[p.jsx("p",{className:Xe.sectionTitle,children:s("settings.views")}),ge.map((le,pe)=>p.jsxs("div",{className:Xe.colRow,children:[p.jsx("span",{className:Xe.viewName,children:s(Ud(le.id)??"view.board")}),p.jsxs("label",{className:Xe.colCheck,children:[p.jsx("input",{type:"checkbox",checked:!le.hidden,onChange:ve=>he(Re=>Re.map((me,Ye)=>Ye===pe?{...me,hidden:!ve.target.checked}:me))}),s("settings.views.show")]}),p.jsx("button",{type:"button",className:Xe.moveBtn,disabled:pe===0,"aria-label":s("settings.views.moveUp"),onClick:()=>he(ve=>qo(ve,pe,pe-1)),children:"↑"}),p.jsx("button",{type:"button",className:Xe.moveBtn,disabled:pe===ge.length-1,"aria-label":s("settings.views.moveDown"),onClick:()=>he(ve=>qo(ve,pe,pe+1)),children:"↓"})]},le.id))]}),p.jsxs("details",{className:Xe.advanced,children:[p.jsx("summary",{children:s("settings.advanced")}),p.jsx("textarea",{className:Xe.jsonEditor,value:J,onChange:le=>fe(le.target.value),spellCheck:!1})]}),V!==null&&p.jsxs("div",{className:Xe.migrateBox,role:"alert",children:[p.jsx("p",{className:Xe.migrateTitle,children:s("settings.migrate.title")}),V.renames.map(le=>p.jsx("p",{className:Xe.migrateItem,children:s("settings.migrate.rename",{from:le.from,to:le.to,n:le.count})},`rename-${le.from}`)),V.removals.map(le=>p.jsxs("div",{className:Xe.migrateItem,children:[p.jsx("span",{children:s("settings.migrate.removed",{id:le.id,n:le.count})})," ",p.jsxs("select",{value:Y[le.id]??"",onChange:pe=>ke(ve=>({...ve,[le.id]:pe.target.value})),"aria-label":s("settings.migrate.removed",{id:le.id,n:le.count}),children:[p.jsx("option",{value:"",children:s("settings.migrate.noTransfer")}),R.filter(pe=>pe.id.trim()!=="").map(pe=>p.jsx("option",{value:pe.id,children:pe.label.trim()!==""?pe.label:pe.id},pe.key))]})]},`remove-${le.id}`)),p.jsxs("div",{className:Xe.migrateActions,children:[p.jsx("button",{type:"button",className:de.btn,onClick:()=>C(null),children:s("common.cancel")}),p.jsx("button",{type:"button",className:`${de.btn} ${de.btnPrimary}`,onClick:()=>void Cn(),disabled:ye,children:s("settings.migrate.execute")})]})]}),p.jsxs("div",{className:de.actions,children:[Fe&&p.jsx("span",{className:Xe.saved,children:s("settings.saved")}),p.jsx("button",{type:"button",className:de.btn,onClick:e,children:s("common.cancel")}),p.jsx("button",{type:"button",className:`${de.btn} ${de.btnPrimary}`,onClick:()=>void kn(),disabled:ye||V!==null,children:s(ye?"settings.saving":"settings.save")})]})]}):p.jsx("p",{children:s("board.loading")})})}const ZR="_list_a8nus_1",YR="_row_a8nus_8",QR="_keys_a8nus_15",XR="_kbd_a8nus_21",GR="_desc_a8nus_31",ll={list:ZR,row:YR,keys:QR,kbd:XR,desc:GR};function JR({onClose:e}){const{t}=vt(),r=[{keys:"⌘K / Ctrl+K",descKey:"shortcuts.palette"},{keys:"?",descKey:"shortcuts.help"},{keys:"Enter",descKey:"shortcuts.openCard"},{keys:"Space",descKey:"shortcuts.grabCard"},{keys:"← → ↑ ↓",descKey:"shortcuts.moveCard"},{keys:"Esc",descKey:"shortcuts.close"}];return p.jsx(di,{title:t("shortcuts.title"),onClose:e,children:p.jsx("dl",{className:ll.list,children:r.map(s=>p.jsxs("div",{className:ll.row,children:[p.jsx("dt",{className:ll.keys,children:p.jsx("kbd",{className:ll.kbd,children:s.keys})}),p.jsx("dd",{className:ll.desc,children:t(s.descKey)})]},s.keys))})})}const eP="_view_1dkqw_1",tP="_card_1dkqw_18",nP="_cardHead_1dkqw_26",rP="_cardTitle_1dkqw_34",iP="_note_1dkqw_44",sP="_metrics_1dkqw_52",lP="_metric_1dkqw_52",oP="_metricValue_1dkqw_65",aP="_metricLabel_1dkqw_72",cP="_metricSub_1dkqw_77",uP="_toggle_1dkqw_83",dP="_toggleBtn_1dkqw_90",fP="_toggleActive_1dkqw_103",pP="_chartWrap_1dkqw_109",hP="_chart_1dkqw_109",mP="_bar_1dkqw_121",gP="_barCount_1dkqw_125",yP="_barLabel_1dkqw_131",vP="_table_1dkqw_138",xP="_bId_1dkqw_166",kP="_empty_1dkqw_172",_P="_srOnly_1dkqw_186",Pe={view:eP,card:tP,cardHead:nP,cardTitle:rP,note:iP,metrics:sP,metric:lP,metricValue:oP,metricLabel:aP,metricSub:cP,toggle:uP,toggleBtn:dP,toggleActive:fP,chartWrap:pP,chart:hP,bar:mP,barCount:gP,barLabel:yP,table:vP,bId:xP,empty:kP,srOnly:_P},wP=5,bP={decision:"blocked.decision",external:"blocked.external",dependency:"blocked.dependency"};function SP({board:e}){const{t}=vt(),[r]=b.useState(()=>Date.now()),s=b.useMemo(()=>El(t,e.config.columns),[t,e.config.columns]),l=b.useMemo(()=>ys(e.config.members),[e.config.members]),o=_=>_===null?"—":t(bP[_]),c=b.useMemo(()=>e.tasks.map(_=>({id:_.frontmatter.id,title:_.frontmatter.title,status:_.frontmatter.status,assignee:_.frontmatter.assignee,blocked_type:_.frontmatter.blocked_type,blocked_reason:_.frontmatter.blocked_reason,created:_.frontmatter.created,updated:_.frontmatter.updated,body:_.body})),[e.tasks]),d=b.useMemo(()=>NE(c,r,{maxBottlenecks:wP}),[c,r]),f=b.useMemo(()=>wa(c,r,e.config.stallThresholds),[c,r,e.config.stallThresholds]),[h,g]=b.useState("day");if(d.totalTasks===0)return p.jsx("div",{className:Pe.view,children:p.jsx("div",{className:Pe.empty,children:t("stats.empty")})});const y=h==="day"?d.completionsByDay:d.completionsByWeek,k=y.reduce((_,T)=>Math.max(_,T.count),0),x=_=>_===null?"—":t("stats.days",{n:_});return p.jsxs("div",{className:Pe.view,children:[p.jsxs("section",{className:Pe.card,"aria-labelledby":"stats-summary",children:[p.jsx("h2",{id:"stats-summary",className:Pe.cardTitle,children:t("stats.summary.title")}),p.jsxs("div",{className:Pe.metrics,children:[p.jsxs("div",{className:Pe.metric,children:[p.jsx("span",{className:Pe.metricValue,children:d.totalTasks}),p.jsx("span",{className:Pe.metricLabel,children:t("stats.summary.total")})]}),p.jsxs("div",{className:Pe.metric,children:[p.jsx("span",{className:Pe.metricValue,children:d.doneTasks}),p.jsx("span",{className:Pe.metricLabel,children:t("stats.summary.done")})]})]})]}),p.jsxs("section",{className:Pe.card,"aria-labelledby":"stats-completions",children:[p.jsxs("div",{className:Pe.cardHead,children:[p.jsx("h2",{id:"stats-completions",className:Pe.cardTitle,children:t("stats.completions.title")}),p.jsxs("div",{className:Pe.toggle,role:"group","aria-label":t("stats.completions.granularity"),children:[p.jsx("button",{type:"button",className:`${Pe.toggleBtn} ${h==="day"?Pe.toggleActive:""}`,"aria-pressed":h==="day",onClick:()=>g("day"),children:t("stats.completions.byDay")}),p.jsx("button",{type:"button",className:`${Pe.toggleBtn} ${h==="week"?Pe.toggleActive:""}`,"aria-pressed":h==="week",onClick:()=>g("week"),children:t("stats.completions.byWeek")})]})]}),y.length===0?p.jsx("p",{className:Pe.note,children:t("stats.completions.empty")}):p.jsx(CP,{bins:y,maxCount:k,ariaLabel:_=>t("stats.completions.barAria",_)})]}),p.jsxs("section",{className:Pe.card,"aria-labelledby":"stats-cycle",children:[p.jsx("h2",{id:"stats-cycle",className:Pe.cardTitle,children:t("stats.cycleTime.title")}),d.cycleTime.sampleSize===0?p.jsx("p",{className:Pe.note,children:t("stats.cycleTime.empty")}):p.jsxs("div",{className:Pe.metrics,children:[p.jsxs("div",{className:Pe.metric,children:[p.jsx("span",{className:Pe.metricValue,children:x(d.cycleTime.medianDays)}),p.jsx("span",{className:Pe.metricLabel,children:t("stats.cycleTime.median")})]}),p.jsxs("div",{className:Pe.metric,children:[p.jsx("span",{className:Pe.metricValue,children:x(d.cycleTime.meanDays)}),p.jsx("span",{className:Pe.metricLabel,children:t("stats.cycleTime.mean")})]}),p.jsx("div",{className:Pe.metric,children:p.jsx("span",{className:Pe.metricSub,children:t("stats.cycleTime.sample",{n:d.cycleTime.sampleSize})})})]})]}),p.jsxs("section",{className:Pe.card,"aria-labelledby":"stats-dwell",children:[p.jsx("h2",{id:"stats-dwell",className:Pe.cardTitle,children:t("stats.dwell.title")}),p.jsx("p",{className:Pe.note,children:t("stats.dwell.note")}),p.jsxs("table",{className:Pe.table,children:[p.jsx("thead",{children:p.jsxs("tr",{children:[p.jsx("th",{scope:"col",children:t("stats.dwell.status")}),p.jsx("th",{scope:"col",children:t("stats.dwell.count")}),p.jsx("th",{scope:"col",children:t("stats.dwell.avg")}),p.jsx("th",{scope:"col",children:t("stats.dwell.max")})]})}),p.jsx("tbody",{children:d.dwellByStatus.filter(_=>_.count>0).map(_=>p.jsxs("tr",{children:[p.jsx("td",{children:s(_.status)}),p.jsx("td",{children:_.count}),p.jsx("td",{children:x(_.avgDays)}),p.jsx("td",{children:x(_.maxDays)})]},_.status))})]})]}),p.jsxs("section",{className:Pe.card,"aria-labelledby":"stats-member",children:[p.jsx("h2",{id:"stats-member",className:Pe.cardTitle,children:t("stats.member.title")}),d.completionsByMember.length===0?p.jsx("p",{className:Pe.note,children:t("stats.member.empty")}):p.jsxs("table",{className:Pe.table,children:[p.jsx("thead",{children:p.jsxs("tr",{children:[p.jsx("th",{scope:"col",children:t("stats.member.name")}),p.jsx("th",{scope:"col",children:t("stats.summary.done")})]})}),p.jsx("tbody",{children:d.completionsByMember.map(_=>p.jsxs("tr",{children:[p.jsx("td",{children:_.member!==null?l(_.member):t("stats.member.unassigned")}),p.jsx("td",{children:_.count})]},_.member??"(unassigned)"))})]})]}),p.jsxs("section",{className:Pe.card,"aria-labelledby":"stats-bottleneck",children:[p.jsx("h2",{id:"stats-bottleneck",className:Pe.cardTitle,children:t("stats.bottlenecks.title")}),d.bottlenecks.length===0?p.jsx("p",{className:Pe.note,children:t("stats.bottlenecks.empty")}):p.jsxs("table",{className:Pe.table,children:[p.jsx("thead",{children:p.jsxs("tr",{children:[p.jsx("th",{scope:"col",children:t("stats.bottlenecks.task")}),p.jsx("th",{scope:"col",children:t("stats.bottlenecks.dwell")}),p.jsx("th",{scope:"col",children:t("stats.bottlenecks.type")}),p.jsx("th",{scope:"col",children:t("stats.bottlenecks.reason")})]})}),p.jsx("tbody",{children:d.bottlenecks.map(_=>p.jsxs("tr",{children:[p.jsxs("td",{children:[p.jsx("span",{className:Pe.bId,children:_.id})," ",_.title]}),p.jsx("td",{children:t("stats.days",{n:_.dwellDays})}),p.jsx("td",{children:o(_.blockedType)}),p.jsx("td",{children:_.blockedReason??"—"})]},_.id))})]})]}),p.jsxs("section",{className:Pe.card,"aria-labelledby":"stats-stalled",children:[p.jsx("h2",{id:"stats-stalled",className:Pe.cardTitle,children:t("stalled.title")}),p.jsx("p",{className:Pe.note,children:t("stalled.note")}),f.length===0?p.jsx("p",{className:Pe.note,children:t("stalled.empty")}):p.jsxs("table",{className:Pe.table,children:[p.jsx("thead",{children:p.jsxs("tr",{children:[p.jsx("th",{scope:"col",children:t("stalled.task")}),p.jsx("th",{scope:"col",children:t("stalled.status")}),p.jsx("th",{scope:"col",children:t("stalled.idle")})]})}),p.jsx("tbody",{children:f.map(_=>p.jsxs("tr",{children:[p.jsxs("td",{children:[p.jsx("span",{className:Pe.bId,children:_.id})," ",_.title]}),p.jsx("td",{children:s(_.status)}),p.jsx("td",{children:t("stats.days",{n:_.idleDays})})]},_.id))})]})]})]})}function CP({bins:e,maxCount:t,ariaLabel:r}){const{t:s}=vt(),l=28,o=8,c=120,d=28,f=e.length*(l+o)+o,h=c+d;return p.jsxs("div",{className:Pe.chartWrap,children:[p.jsx("svg",{className:Pe.chart,viewBox:`0 0 ${f} ${h}`,role:"img","aria-label":s("stats.completions.title"),preserveAspectRatio:"xMinYMid meet",children:e.map((g,y)=>{const k=t>0?Math.max(2,Math.round(g.count/t*c)):2,x=o+y*(l+o),_=c-k;return p.jsxs("g",{children:[p.jsx("title",{children:r(g)}),p.jsx("rect",{x,y:_,width:l,height:k,className:Pe.bar,rx:2}),p.jsx("text",{x:x+l/2,y:_-4,className:Pe.barCount,textAnchor:"middle",children:g.count}),p.jsx("text",{x:x+l/2,y:c+16,className:Pe.barLabel,textAnchor:"middle",children:g.key.slice(5)})]},g.key)})}),p.jsxs("table",{className:Pe.srOnly,children:[p.jsx("caption",{children:s("stats.completions.title")}),p.jsx("thead",{children:p.jsxs("tr",{children:[p.jsx("th",{scope:"col",children:s("stats.completions.date")}),p.jsx("th",{scope:"col",children:s("stats.summary.done")})]})}),p.jsx("tbody",{children:e.map(g=>p.jsxs("tr",{children:[p.jsx("td",{children:g.key}),p.jsx("td",{children:g.count})]},g.key))})]})]})}const ed=Number.MAX_SAFE_INTEGER;function fg(e){if(e===null)return ed;const t=Date.parse(e.replace(" ","T"));return Number.isNaN(t)?ed:t}function NP(e,t,r){const s=[];for(const l of e)s.push({kind:"log",timestamp:l.timestamp,sortMs:fg(l.timestamp),member:l.member,text:l.message,hash:null});for(const l of t)s.push({kind:"comment",timestamp:l.timestamp,sortMs:fg(l.timestamp),member:l.member,text:l.message,hash:null});for(const l of r){const o=Date.parse(l.authorDate);s.push({kind:"commit",timestamp:/^\d{4}-\d{2}-\d{2}/.test(l.authorDate)?l.authorDate.slice(0,10):l.authorDate,sortMs:Number.isNaN(o)?ed:o,member:null,text:l.subject,hash:l.hash.slice(0,7)})}return s.sort((l,o)=>l.sortMs-o.sortMs)}const jP=/@([A-Za-z0-9_-]+)/g;function EP(e,t){const r=[];let s=0;for(const l of e.matchAll(jP)){const o=l[1],c=l.index??0,d=c===0?"":e[c-1];!(c===0||/\s/.test(d))||!t.has(o)||(c>s&&r.push({kind:"text",value:e.slice(s,c)}),r.push({kind:"mention",id:o}),s=c+l[0].length)}return s<e.length&&r.push({kind:"text",value:e.slice(s)}),r}const TP="_intro_u1sm3_1",IP="_legend_u1sm3_8",pg={intro:TP,legend:IP};function AP({serverContent:e,localContent:t,onClose:r,onOverwrite:s,onReload:l}){const{t:o}=vt();return p.jsxs(di,{title:o("conflict.title"),onClose:r,wide:!0,children:[p.jsx("p",{className:pg.intro,children:o("conflict.intro")}),p.jsx(uv,{before:e,after:t,ariaLabel:o("conflict.diffAria")}),p.jsxs("p",{className:pg.legend,children:[p.jsx("span",{children:o("conflict.legend.add")}),p.jsx("span",{children:o("conflict.legend.remove")})]}),p.jsxs("div",{className:de.actions,children:[p.jsx("button",{type:"button",className:de.btn,onClick:l,children:o("conflict.reload")}),p.jsx("button",{type:"button",className:`${de.btn} ${de.btnDanger}`,onClick:s,children:o("conflict.overwrite")})]})]})}const DP="_overlay_hji88_1",RP="_panel_hji88_10",PP="_header_hji88_20",LP="_id_hji88_28",MP="_title_hji88_34",OP="_copyBtn_hji88_41",zP="_close_hji88_59",$P="_tabs_hji88_72",BP="_tab_hji88_72",FP="_tabActive_hji88_96",VP="_body_hji88_101",UP="_markdown_hji88_107",HP="_editor_hji88_142",WP="_timeline_hji88_155",qP="_entry_hji88_164",KP="_entryMeta_hji88_183",ZP="_entryMember_hji88_190",YP="_entryMessage_hji88_195",QP="_mention_hji88_200",XP="_mentionSelf_hji88_205",GP="_emptyTimeline_hji88_211",JP="_timelineKind_hji88_217",eL="_footer_hji88_241",tL="_dirty_hji88_249",nL="_error_hji88_254",rL="_spacer_hji88_260",iL="_btn_hji88_264",sL="_btnPrimary_hji88_279",lL="_commentInput_hji88_290",oL="_commentField_hji88_305",aL="_docsHint_hji88_313",cL="_docsList_hji88_323",uL="_docRow_hji88_332",dL="_docLink_hji88_338",fL="_docLinkActive_hji88_361",pL="_docBroken_hji88_365",hL="_docRemove_hji88_374",mL="_docsActions_hji88_393",gL="_docsPicker_hji88_397",yL="_docsPreview_hji88_407",vL="_docsPreviewPath_hji88_412",ae={overlay:DP,panel:RP,header:PP,id:LP,title:MP,copyBtn:OP,close:zP,tabs:$P,tab:BP,tabActive:FP,body:VP,markdown:UP,editor:HP,timeline:WP,entry:qP,entryMeta:KP,entryMember:ZP,entryMessage:YP,mention:QP,mentionSelf:XP,emptyTimeline:GP,timelineKind:JP,footer:eL,dirty:tL,error:nL,spacer:rL,btn:iL,btnPrimary:sL,commentInput:lL,commentField:oL,docsHint:aL,docsList:cL,docRow:uL,docLink:dL,docLinkActive:fL,docBroken:pL,docRemove:hL,docsActions:mL,docsPicker:gL,docsPreview:yL,docsPreviewPath:vL},hg="aizuchi.commentMember";function td(e){const t=[];for(const r of e)r.type==="file"?t.push(r.path):r.children&&t.push(...td(r.children));return t}const xL={log:"timeline.kind.log",comment:"timeline.kind.comment",commit:"timeline.kind.commit"};function kL({task:e,instructionTemplate:t,members:r,docsEnabled:s=!1,onClose:l,onSaved:o}){var Ot;const{t:c}=vt(),[d,f]=b.useState("preview"),[h,g]=b.useState(e.raw),[y,k]=b.useState(e.mtimeMs),[x,_]=b.useState(!1),[T,D]=b.useState(null),[S,L]=b.useState(null),[E,R]=b.useState(null),[P,j]=b.useState(!1),H=typeof localStorage<"u"?localStorage.getItem(hg):null,[Z,G]=b.useState(H&&r.some(Q=>Q.id===H)?H:((Ot=r[0])==null?void 0:Ot.id)??""),[z,K]=b.useState(""),[ne,xe]=b.useState(null),ee=b.useMemo(()=>ys(r),[r]),F=b.useMemo(()=>new Set(r.map(Q=>Q.id)),[r]),ge=(Q,Se)=>EP(Q,F).map((Ct,an)=>Ct.kind==="text"?p.jsx("span",{children:Ct.value},an):p.jsxs("span",{className:`${ae.mention} ${Se!=null&&Ct.id===Se?ae.mentionSelf:""}`,children:["@",ee(Ct.id)]},an)),[he,J]=b.useState(null),[fe,N]=b.useState(!1),[I,V]=b.useState(!1),[C,Y]=b.useState(null),[ke,ye]=b.useState(null),Be=b.useRef(null),[Fe,Ve]=b.useState(null),[Ze,dt]=b.useState(!1),[_t,Zt]=b.useState(null),[pt,Yt]=b.useState(null),[It,kn]=b.useState(!1),[Cn,Qt]=b.useState(null),le=(_t==null?void 0:_t.raw)??e.raw,pe=[...new Set((_t==null?void 0:_t.relatedDocs)??e.frontmatter.related_docs??[])],ve=s||pe.length>0,Re=h!==e.raw;b.useEffect(()=>{_t!==null&&e.raw===_t.raw&&Zt(null)},[e.raw,_t]),b.useEffect(()=>{const Q=Se=>{var an;if(Se.key!=="Escape"||S||P||I)return;const Ct=(an=Se.target)==null?void 0:an.tagName;Ct==="TEXTAREA"||Ct==="INPUT"||Ct==="SELECT"||l()};return document.addEventListener("keydown",Q),()=>document.removeEventListener("keydown",Q)},[S,P,I,l]);const me=b.useRef(null);ud(me,!S&&!P&&!I);const Ye=b.useRef(e.raw);b.useEffect(()=>{e.raw!==Ye.current&&(g(Q=>Q===Ye.current?e.raw:Q),k(Q=>h===Ye.current?e.mtimeMs:Q),Ye.current=e.raw)},[e.raw,e.mtimeMs]);const q=async(Q=y)=>{_(!0),D(null);try{const Se=await Ah(e.frontmatter.id,h,Q);k(Se.mtimeMs),L(null),o(),f("preview")}catch(Se){Se instanceof _r?L({serverContent:Se.serverContent,serverMtimeMs:Se.serverMtimeMs}):D(Se instanceof Error?Se.message:c("detail.saveError"))}finally{_(!1)}},ie=async()=>{const Q=qE(e.body)??void 0,Se=ev(t,e.frontmatter.id,tv(e.frontmatter.id),Q),Ct=await Sl(Se);R(Ct?"done":"failed"),window.setTimeout(()=>R(null),2e3)},Ie=async Q=>{D(null);try{await vg(e.frontmatter.id,Q.length>0?Q:void 0,y),o()}catch(Se){Se instanceof _r?L({serverContent:Se.serverContent,serverMtimeMs:Se.serverMtimeMs}):D(Se instanceof Error?Se.message:c("revise.error"))}},Ue=e.frontmatter.status==="done"||e.frontmatter.status==="in_progress"||e.frontmatter.status==="pending";b.useEffect(()=>{if(d!=="docs"||he!==null||fe)return;let Q=!0;return(async()=>{try{const Se=await xg();Q&&J(Se)}catch{Q&&N(!0)}})(),()=>{Q=!1}},[d,he,fe]),b.useEffect(()=>{if(d!=="commits"&&d!=="timeline"||pt!==null||It)return;let Q=!0;return(async()=>{try{const Se=await Ik(e.frontmatter.id);Q&&Yt(Se)}catch{Q&&kn(!0)}})(),()=>{Q=!1}},[d,pt,It,e.frontmatter.id]);const W=async Q=>{await Sl(Q)&&(Qt(Q),window.setTimeout(()=>Qt(Ct=>Ct===Q?null:Ct),2e3))},X=async Q=>{dt(!0),Ve(null);try{const Se=sA(le,Q);if(Se===le){Ve(c("docs.noChange"));return}const Ct=await Ah(e.frontmatter.id,Se,y);k(Ct.mtimeMs),Zt({raw:Ct.raw,relatedDocs:Ct.frontmatter.related_docs??[]}),o()}catch(Se){Se instanceof _r?(Zt(null),Ve(c("docs.conflict")),o()):Ve(Se instanceof Error?Se.message:c("detail.saveError"))}finally{dt(!1)}},je=async Q=>{ye(Q),Be.current=Q,Y(null),Ve(null);try{const Se=await kg(Q);if(Be.current!==Q)return;Y(Se)}catch(Se){if(Be.current!==Q)return;Se instanceof br&&(Se.status===404||Se.status===403)?Y("broken"):Ve(Se instanceof Error?Se.message:c("docs.loadError"))}},$e=async()=>{const Q=z.trim();if(!(Q.length===0||Z==="")){xe(null);try{await Ak(e.frontmatter.id,Z,Q),K(""),typeof localStorage<"u"&&localStorage.setItem(hg,Z),o()}catch(Se){xe(Se instanceof Error?Se.message:c("comment.error"))}}},Mt=Vd(e.body),Ht=HE(e.body),ht=NP(Mt,Ht,pt??[]);return p.jsxs("div",{className:ae.overlay,onClick:Q=>{dd(Q.target,Q.currentTarget)&&l()},children:[p.jsxs("aside",{ref:me,className:ae.panel,role:"dialog","aria-modal":"true","aria-label":c("detail.aria",{id:e.frontmatter.id}),children:[p.jsxs("header",{className:ae.header,children:[p.jsx("span",{className:ae.id,children:e.frontmatter.id}),p.jsx("span",{className:ae.title,children:e.frontmatter.title}),p.jsx("button",{type:"button",className:ae.copyBtn,onClick:()=>void ie(),title:c("detail.copyInstruction.title"),children:c(E==="done"?"detail.copyInstruction.done":E==="failed"?"detail.copyInstruction.failed":"detail.copyInstruction")}),Ue&&p.jsx("button",{type:"button",className:ae.copyBtn,onClick:()=>j(!0),disabled:Re,title:Re?c("docs.dirtyHint"):void 0,children:c("revise.button")}),p.jsx("button",{type:"button",className:ae.close,onClick:l,"aria-label":c("detail.close"),children:"×"})]}),p.jsxs("nav",{className:ae.tabs,children:[p.jsx("button",{type:"button",className:`${ae.tab} ${d==="preview"?ae.tabActive:""}`,onClick:()=>f("preview"),children:c("detail.tab.preview")}),p.jsx("button",{type:"button",className:`${ae.tab} ${d==="edit"?ae.tabActive:""}`,onClick:()=>f("edit"),children:c("detail.tab.edit")}),p.jsx("button",{type:"button",className:`${ae.tab} ${d==="log"?ae.tabActive:""}`,onClick:()=>f("log"),children:c("detail.tab.log")}),p.jsx("button",{type:"button",className:`${ae.tab} ${d==="comment"?ae.tabActive:""}`,onClick:()=>f("comment"),children:c("comment.title")}),ve&&p.jsx("button",{type:"button",className:`${ae.tab} ${d==="docs"?ae.tabActive:""}`,onClick:()=>f("docs"),children:c("detail.tab.docs")}),p.jsx("button",{type:"button",className:`${ae.tab} ${d==="commits"?ae.tabActive:""}`,onClick:()=>f("commits"),children:c("detail.tab.commits")}),p.jsx("button",{type:"button",className:`${ae.tab} ${d==="timeline"?ae.tabActive:""}`,onClick:()=>f("timeline"),children:c("detail.tab.timeline")})]}),p.jsxs("div",{className:ae.body,children:[d==="preview"&&p.jsx("div",{className:ae.markdown,children:p.jsx(xl,{remarkPlugins:[_l],children:e.body})}),d==="edit"&&p.jsx("textarea",{className:ae.editor,value:h,onChange:Q=>g(Q.target.value),spellCheck:!1,"aria-label":c("detail.editAria")}),d==="log"&&p.jsx(p.Fragment,{children:Mt.length===0?p.jsx("p",{className:ae.emptyTimeline,children:c("detail.log.empty")}):p.jsx("ol",{className:ae.timeline,children:Mt.map((Q,Se)=>p.jsxs("li",{className:ae.entry,children:[p.jsxs("span",{className:ae.entryMeta,children:[Q.timestamp??"—",Q.member&&p.jsxs("span",{className:ae.entryMember,children:[" [",ee(Q.member),"]"]})]}),p.jsx("span",{className:ae.entryMessage,children:ge(Q.message)})]},Se))})}),d==="comment"&&p.jsxs(p.Fragment,{children:[Ht.length===0?p.jsx("p",{className:ae.emptyTimeline,children:c("comment.empty")}):p.jsx("ol",{className:ae.timeline,children:Ht.map((Q,Se)=>p.jsxs("li",{className:ae.entry,children:[p.jsxs("span",{className:ae.entryMeta,children:[Q.timestamp??"—",Q.member&&p.jsxs("span",{className:ae.entryMember,children:[" [",ee(Q.member),"]"]})]}),p.jsx("span",{className:ae.entryMessage,children:ge(Q.message,Z)})]},Se))}),ne&&p.jsx("p",{className:ae.error,children:ne}),p.jsxs("div",{className:ae.commentInput,children:[p.jsx("select",{value:Z,onChange:Q=>G(Q.target.value),"aria-label":"member",children:r.map(Q=>p.jsx("option",{value:Q.id,children:Q.label??Q.id},Q.id))}),p.jsx("input",{className:ae.commentField,value:z,onChange:Q=>K(Q.target.value.replace(/[\r\n]/g,"")),placeholder:c("comment.placeholder"),onKeyDown:Q=>{Q.key==="Enter"&&(Q.preventDefault(),$e())}}),p.jsx("button",{type:"button",className:`${ae.btn} ${ae.btnPrimary}`,onClick:()=>void $e(),disabled:z.trim().length===0,children:c("comment.send")})]})]}),d==="docs"&&p.jsxs(p.Fragment,{children:[Fe&&p.jsx("p",{className:ae.error,role:"alert",children:Fe}),Re&&p.jsx("p",{className:ae.docsHint,children:c("docs.dirtyHint")}),pe.length===0?p.jsx("p",{className:ae.emptyTimeline,children:c("docs.empty")}):p.jsx("ul",{className:ae.docsList,children:pe.map(Q=>{const Se=he!==null?td(he):null,Ct=Se!==null&&!Se.includes(Q);return p.jsxs("li",{className:ae.docRow,children:[p.jsx("button",{type:"button",className:`${ae.docLink} ${ke===Q?ae.docLinkActive:""}`,onClick:()=>void je(Q),children:Q}),Ct&&p.jsx("span",{className:ae.docBroken,children:c("docs.broken")}),p.jsx("button",{type:"button",className:ae.docRemove,onClick:()=>void X(pe.filter(an=>an!==Q)),disabled:Re||Ze,"aria-label":`${c("docs.remove")}: ${Q}`,children:"×"})]},Q)})}),p.jsx("div",{className:ae.docsActions,children:p.jsx("button",{type:"button",className:ae.btn,onClick:()=>V(Q=>!Q),disabled:Re||Ze,"aria-expanded":I,children:c("docs.add")})}),I&&p.jsx("div",{className:ae.docsPicker,children:fe?p.jsx("p",{className:ae.error,role:"alert",children:c("docs.treeError")}):he===null?p.jsx("p",{className:ae.emptyTimeline,children:c("board.loading")}):(()=>{const Q=td(he).filter(Se=>!pe.includes(Se));return Q.length===0?p.jsx("p",{className:ae.emptyTimeline,children:c("docs.pickerEmpty")}):p.jsx("ul",{className:ae.docsList,"aria-label":c("docs.pickerTitle"),children:Q.map(Se=>p.jsx("li",{className:ae.docRow,children:p.jsx("button",{type:"button",className:ae.docLink,onClick:()=>{V(!1),X([...pe,Se])},disabled:Re||Ze,children:Se})},Se))})})()}),ke!==null&&p.jsxs("div",{className:ae.docsPreview,children:[p.jsx("p",{className:ae.docsPreviewPath,children:ke}),C===null?p.jsx("p",{className:ae.emptyTimeline,children:c("board.loading")}):C==="broken"?p.jsx("p",{className:ae.docBroken,children:c("docs.broken")}):p.jsx("div",{className:ae.markdown,children:p.jsx(xl,{remarkPlugins:[_l],children:C.content})})]})]}),d==="commits"&&p.jsx(p.Fragment,{children:It?p.jsx("p",{className:ae.error,role:"alert",children:c("commits.error")}):pt===null?p.jsx("p",{className:ae.emptyTimeline,children:c("board.loading")}):pt.length===0?p.jsx("p",{className:ae.emptyTimeline,children:c("commits.empty")}):p.jsx("ol",{className:ae.timeline,children:pt.map(Q=>p.jsxs("li",{className:ae.entry,children:[p.jsxs("span",{className:ae.entryMeta,children:[p.jsx("button",{type:"button",className:ae.docLink,onClick:()=>void W(Q.hash),title:c("commits.copyHash"),children:Cn===Q.hash?c("commits.copied"):Q.hash.slice(0,7)})," · ",Q.authorDate.slice(0,10)]}),p.jsx("span",{className:ae.entryMessage,children:Q.subject})]},Q.hash))})}),d==="timeline"&&p.jsxs(p.Fragment,{children:[It&&p.jsx("p",{className:ae.error,role:"alert",children:c("commits.error")}),ht.length===0?p.jsx("p",{className:ae.emptyTimeline,children:c(pt===null&&!It?"board.loading":"timeline.empty")}):p.jsx("ol",{className:ae.timeline,children:ht.map((Q,Se)=>p.jsxs("li",{className:ae.entry,children:[p.jsxs("span",{className:ae.entryMeta,children:[p.jsx("span",{className:ae.timelineKind,"data-kind":Q.kind,children:c(xL[Q.kind])})," ",Q.timestamp??"—",Q.member&&p.jsxs("span",{className:ae.entryMember,children:[" [",ee(Q.member),"]"]}),Q.hash&&p.jsxs("span",{className:ae.entryMember,children:[" ",Q.hash]})]}),p.jsx("span",{className:ae.entryMessage,children:ge(Q.text)})]},Se))})]})]}),d==="edit"&&p.jsxs("footer",{className:ae.footer,children:[T?p.jsx("span",{className:ae.error,children:T}):Re?p.jsx("span",{className:ae.dirty,children:c("detail.dirty")}):p.jsx("span",{className:ae.spacer}),p.jsx("button",{type:"button",className:ae.btn,onClick:()=>{g(e.raw),D(null)},disabled:!Re||x,children:c("common.discard")}),p.jsx("button",{type:"button",className:`${ae.btn} ${ae.btnPrimary}`,onClick:()=>void q(),disabled:!Re||x,children:c(x?"common.saving":"common.save")})]})]}),S&&p.jsx(AP,{serverContent:S.serverContent,localContent:h,onClose:()=>L(null),onOverwrite:()=>void q(S.serverMtimeMs),onReload:()=>{g(S.serverContent),k(S.serverMtimeMs),L(null),D(null)}}),P&&p.jsx(sv,{taskTitle:e.frontmatter.title,onCancel:()=>j(!1),onConfirm:Q=>{j(!1),Ie(Q)}})]})}const _L="_view_ctpdr_1",wL="_list_ctpdr_8",bL="_search_ctpdr_18",SL="_searchInput_ctpdr_23",CL="_listScroll_ctpdr_39",NL="_taskList_ctpdr_45",jL="_taskBtn_ctpdr_54",EL="_taskBtnActive_ctpdr_77",TL="_taskId_ctpdr_87",IL="_taskTitle_ctpdr_93",AL="_taskTime_ctpdr_100",DL="_detail_ctpdr_107",RL="_detailHeader_ctpdr_114",PL="_detailHeadText_ctpdr_121",LL="_detailTitle_ctpdr_126",ML="_meta_ctpdr_133",OL="_metaId_ctpdr_142",zL="_restoreBtn_ctpdr_146",$L="_diffWrap_ctpdr_174",BL="_diffTitle_ctpdr_178",FL="_previewTitle_ctpdr_179",VL="_diff_ctpdr_174",UL="_line_ctpdr_200",HL="_sign_ctpdr_207",WL="_equal_ctpdr_213",qL="_add_ctpdr_217",KL="_remove_ctpdr_222",ZL="_legend_ctpdr_227",YL="_markdown_ctpdr_235",QL="_muted_ctpdr_254",XL="_error_ctpdr_259",rt={view:_L,list:wL,search:bL,searchInput:SL,listScroll:CL,taskList:NL,taskBtn:jL,taskBtnActive:EL,taskId:TL,taskTitle:IL,taskTime:AL,detail:DL,detailHeader:RL,detailHeadText:PL,detailTitle:LL,meta:ML,metaId:OL,restoreBtn:zL,diffWrap:$L,diffTitle:BL,previewTitle:FL,diff:VL,line:UL,sign:HL,equal:WL,add:qL,remove:KL,legend:ZL,markdown:YL,muted:QL,error:XL};function mg(e){return`${e.id}.${e.trashedAt}`}function GL({board:e,onChanged:t,onError:r}){const{t:s}=vt(),[l,o]=b.useState(null),[c,d]=b.useState(!1),[f,h]=b.useState(""),[g,y]=b.useState(null),[k,x]=b.useState(!1),_=b.useMemo(()=>e.tasks.map(j=>`${j.frontmatter.id}@${j.frontmatter.updated}`).join(`
|
|
93
|
-
`),[e.tasks]);b.useEffect(()=>{let j=!0;const H=new AbortController;return(async()=>{try{const Z=await vk(H.signal);j&&(o(Z.items),d(!1))}catch{j&&(o([]),d(!0))}})(),()=>{j=!1,H.abort()}},[_]);const T=b.useMemo(()=>El(s,e.config.columns),[s,e.config.columns]),D=b.useMemo(()=>{const j=l??[],H=f.trim().toLowerCase();return H===""?j:j.filter(Z=>[Z.id,Z.title??"",Z.body].some(G=>G.toLowerCase().includes(H)))},[l,f]),S=g!==null?D.find(j=>mg(j)===g)??null:null,L=S!==null?e.tasks.find(j=>j.frontmatter.id===S.id):void 0,E=b.useMemo(()=>S===null||L===void 0?null:cv(S.body,L.body),[S,L]),R=j=>new Date(j).toLocaleString(),P=async j=>{const H=e.tasks.some(G=>G.frontmatter.id===j.id),Z=H?"trash.view.restoreOverwriteConfirm":"trash.view.restoreConfirm";if(!(typeof window<"u"&&!window.confirm(s(Z,{id:j.id})))){x(!0);try{await xk(j.id,j.trashedAt,H?!0:void 0),y(null),t()}catch(G){const z=G instanceof br&&G.status===409?s("trash.view.restoreConflict",{id:j.id}):G instanceof Error?G.message:s("trash.view.restoreError");r(z)}finally{x(!1)}}};return p.jsxs("div",{className:rt.view,children:[p.jsxs("nav",{className:rt.list,"aria-label":s("trash.view.listTitle"),children:[p.jsx("div",{className:rt.search,children:p.jsx("input",{className:rt.searchInput,type:"search",value:f,onChange:j=>h(j.target.value),placeholder:s("trash.view.searchPlaceholder"),"aria-label":s("trash.view.searchPlaceholder")})}),p.jsx("div",{className:rt.listScroll,children:c?p.jsx("p",{className:rt.error,role:"alert",children:s("trash.view.loadError")}):l===null?p.jsx("p",{className:rt.muted,children:s("board.loading")}):D.length===0?p.jsx("p",{className:rt.muted,children:f.trim()===""?s("trash.view.empty"):s("trash.view.noMatch")}):p.jsx("ul",{className:rt.taskList,children:D.map(j=>{const H=mg(j);return p.jsx("li",{children:p.jsxs("button",{type:"button",className:`${rt.taskBtn} ${g===H?rt.taskBtnActive:""}`,onClick:()=>y(H),"aria-current":g===H?"true":void 0,children:[p.jsx("span",{className:rt.taskId,children:j.id})," ",p.jsx("span",{className:rt.taskTitle,children:j.title??j.id}),p.jsx("span",{className:rt.taskTime,children:R(j.trashedAt)})]})},H)})})})]}),p.jsx("section",{className:rt.detail,"aria-label":s("view.trash"),children:S===null?p.jsx("p",{className:rt.muted,children:s("trash.view.selectPrompt")}):p.jsxs(p.Fragment,{children:[p.jsxs("div",{className:rt.detailHeader,children:[p.jsxs("div",{className:rt.detailHeadText,children:[p.jsx("h2",{className:rt.detailTitle,children:S.title??S.id}),p.jsxs("p",{className:rt.meta,children:[p.jsx("span",{className:rt.metaId,children:S.id}),S.status!==null&&p.jsx("span",{children:T(S.status)}),p.jsx("span",{children:s("trash.view.trashedAt",{time:R(S.trashedAt)})})]})]}),p.jsx("button",{type:"button",className:rt.restoreBtn,onClick:()=>void P(S),disabled:k,children:s("trash.view.restore")})]}),L===void 0?p.jsx("p",{className:rt.muted,children:s("trash.view.noCurrent")}):E!==null&&E.some(j=>j.op!=="equal")?p.jsxs("div",{className:rt.diffWrap,children:[p.jsx("h3",{className:rt.diffTitle,children:s("trash.view.diffTitle")}),p.jsx("div",{className:rt.diff,role:"region","aria-label":s("trash.view.diffTitle"),children:E.map((j,H)=>p.jsxs("div",{className:`${rt.line} ${j.op==="add"?rt.add:j.op==="remove"?rt.remove:rt.equal}`,children:[p.jsx("span",{className:rt.sign,children:j.op==="add"?"+":j.op==="remove"?"-":" "}),p.jsx("span",{children:j.text})]},H))}),p.jsxs("p",{className:rt.legend,children:[p.jsx("span",{children:s("trash.view.diff.add")}),p.jsx("span",{children:s("trash.view.diff.remove")})]})]}):p.jsx("p",{className:rt.muted,children:s("trash.view.noDiff")}),p.jsx("h3",{className:rt.previewTitle,children:s("trash.view.previewTitle")}),p.jsx("div",{className:rt.markdown,children:p.jsx(xl,{remarkPlugins:[_l],children:S.body})})]})})]})}const JL="_banner_1uu1k_1",eM="_summary_1uu1k_9",tM="_icon_1uu1k_22",nM="_list_1uu1k_26",rM="_item_1uu1k_35",iM="_kind_1uu1k_39",sM="_path_1uu1k_51",lM="_renameBtn_1uu1k_57",ri={banner:JL,summary:eM,icon:tM,list:nM,item:rM,kind:iM,path:sM,renameBtn:lM},oM={invalid_task:"warning.kind.invalid_task",duplicate_id:"warning.kind.duplicate_id",unregistered_member:"warning.kind.unregistered_member",invalid_config:"warning.kind.invalid_config",mode_violation:"warning.kind.mode_violation"};function aM({warnings:e,onRename:t}){const{t:r}=vt();return e.length===0?null:p.jsxs("details",{className:ri.banner,open:!0,children:[p.jsxs("summary",{className:ri.summary,children:[p.jsx("span",{className:ri.icon,"aria-hidden":"true",children:"⚠"}),r("warning.summary",{n:e.length})]}),p.jsx("ul",{className:ri.list,children:e.map((s,l)=>p.jsxs("li",{className:ri.item,children:[p.jsx("span",{className:ri.kind,children:r(oM[s.kind])}),s.taskId&&p.jsxs("strong",{children:[s.taskId,": "]}),s.message,s.path&&p.jsxs("span",{className:ri.path,children:[" (",s.path,")"]}),s.kind==="duplicate_id"&&s.taskId&&t&&p.jsx("button",{type:"button",className:ri.renameBtn,onClick:()=>t(s.taskId),children:r("rename.action")})]},l))})]})}const cM="_app_1d9ko_1",uM="_main_1d9ko_8",dM="_header_1d9ko_15",fM="_brand_1d9ko_26",pM="_tabs_1d9ko_32",hM="_tab_1d9ko_32",mM="_tabActive_1d9ko_64",gM="_project_1d9ko_69",yM="_spacer_1d9ko_74",vM="_status_1d9ko_78",xM="_dot_1d9ko_86",kM="_dotOn_1d9ko_92",_M="_dotOff_1d9ko_97",wM="_markAllReadBtn_1d9ko_113",bM="_langSelect_1d9ko_132",SM="_settingsBtn_1d9ko_141",CM="_addBtn_1d9ko_156",NM="_banner_1d9ko_176",jM="_bannerClose_1d9ko_186",EM="_center_1d9ko_195",$t={app:cM,main:uM,header:dM,brand:fM,tabs:pM,tab:hM,tabActive:mM,project:gM,spacer:yM,status:vM,dot:xM,dotOn:kM,dotOff:_M,markAllReadBtn:wM,langSelect:bM,settingsBtn:SM,addBtn:CM,banner:NM,bannerClose:jM,center:EM};function TM(e){if(!(e instanceof HTMLElement))return!1;const t=e.tagName;return t==="INPUT"||t==="TEXTAREA"||t==="SELECT"||e.isContentEditable}function IM(){const{t:e,lang:t,setLang:r,applyLang:s,hasUserChoice:l}=vt(),{board:o,loading:c,error:d,connected:f,refresh:h}=Dk(),{unreadIds:g,markRead:y,markAllRead:k}=Ok((o==null?void 0:o.tasks)??null,o==null?void 0:o.config.projectName),[x,_]=b.useState("home"),[T,D]=b.useState(!1),[S,L]=b.useState(!1),[E,R]=b.useState(!1),[P,j]=b.useState(!1),[H,Z]=b.useState(null),[G,z]=b.useState(null),[K,ne]=b.useState(null),xe=b.useMemo(()=>{const Y=av(da,(o==null?void 0:o.config.views)??[]),ye=(Y.length>0?Y:da).filter(Be=>Be!=="docs"||((o==null?void 0:o.config.docsDirs.length)??0)>0);return ye.length>0?ye:["board"]},[o==null?void 0:o.config.views,o==null?void 0:o.config.docsDirs]),ee=Y=>{Z(Y),y(Y)},F=Y=>{_("board"),ne({...Y})},ge=H!==null?(o==null?void 0:o.tasks.find(Y=>Y.frontmatter.id===H))??null:null,he=T||S||H!==null||P,J=b.useRef(he);J.current=he;const fe=b.useRef(!1);fe.current=he||E;const N=b.useRef(!1);N.current=P,b.useEffect(()=>{const Y=ke=>{if((ke.metaKey||ke.ctrlKey)&&(ke.key==="k"||ke.key==="K")&&!ke.isComposing){ke.preventDefault(),R(ye=>ye?!1:!J.current);return}ke.key==="?"&&!ke.isComposing&&!TM(ke.target)&&(N.current?(ke.preventDefault(),j(!1)):fe.current||(ke.preventDefault(),j(!0)))};return window.addEventListener("keydown",Y),()=>window.removeEventListener("keydown",Y)},[]),b.useEffect(()=>{o&&!xe.includes(x)&&_(xe[0]??"board")},[o,xe,x]),b.useEffect(()=>{const Y=o==null?void 0:o.config.language;Y!==void 0&&Y!==t&&!l()&&s(Y)},[o,t,s,l]);const I=Y=>{r(Y),Nk(Y)},V=async Y=>{await kk(Y),D(!1),h()},C=async Y=>{try{await Sk(Y),h()}catch(ke){z(ke instanceof Error?ke.message:e("rename.error"))}};return p.jsxs("div",{className:$t.app,children:[p.jsxs("header",{className:$t.header,children:[p.jsx("span",{className:$t.brand,children:"AIzuchi"}),o&&p.jsx("span",{className:$t.project,children:o.config.projectName}),p.jsx("span",{className:$t.spacer}),p.jsxs("span",{className:$t.status,title:e(f?"header.live.title":"header.reconnecting.title"),children:[p.jsx("span",{className:`${$t.dot} ${f?$t.dotOn:$t.dotOff}`,"aria-hidden":"true"}),e(f?"header.live":"header.reconnecting")]}),o&&p.jsx(A2,{board:o,onOpenTask:Y=>ee(Y)}),g.size>0&&p.jsx("button",{type:"button",className:$t.markAllReadBtn,onClick:()=>k(),title:e("newActivity.markAllRead.title"),children:e("newActivity.markAllRead",{n:g.size})}),p.jsx("select",{className:$t.langSelect,value:t,onChange:Y=>I(Y.target.value),"aria-label":e("settings.language"),children:cd.map(Y=>p.jsx("option",{value:Y,children:e(Y==="en"?"settings.language.en":"settings.language.ja")},Y))}),p.jsx("button",{type:"button",className:$t.settingsBtn,onClick:()=>j(!0),title:e("header.help"),"aria-label":e("header.help"),children:"?"}),p.jsx("button",{type:"button",className:$t.settingsBtn,onClick:()=>L(!0),disabled:!o,children:e("header.settings")}),p.jsx("button",{type:"button",className:$t.addBtn,onClick:()=>D(!0),disabled:!o,children:e("header.addTask")})]}),(d||G)&&p.jsxs("div",{className:$t.banner,role:"alert",children:[d??G,!d&&G&&p.jsx("button",{type:"button",className:$t.bannerClose,onClick:()=>z(null),children:e("banner.close")})]}),o&&p.jsx("nav",{className:$t.tabs,"aria-label":"views",children:xe.map(Y=>p.jsx("button",{type:"button",className:`${$t.tab} ${x===Y?$t.tabActive:""}`,onClick:()=>_(Y),children:e(Ud(Y)??"view.board")},Y))}),o&&p.jsx(aM,{warnings:o.warnings,onRename:Y=>void C(Y)}),p.jsx("main",{className:$t.main,children:c&&!o?p.jsx("div",{className:$t.center,children:e("board.loading")}):o?p.jsx(DA,{title:e("error.view.title"),detail:e("error.view.detail"),retryLabel:e("error.view.retry"),children:x==="home"?p.jsx(KD,{board:o,unreadIds:g,onOpen:Y=>ee(Y.frontmatter.id)}):x==="board"?p.jsx(TI,{board:o,onOpen:Y=>ee(Y.frontmatter.id),onChanged:()=>void h(),onError:z,unreadIds:g,applyView:K,onViewApplied:()=>ne(null),onAddTask:()=>D(!0)}):x==="critical"?p.jsx(h2,{board:o,onOpen:Y=>ee(Y.frontmatter.id)}):x==="digest"?p.jsx(tA,{board:o}):x==="docs"?p.jsx(jA,{board:o,onOpen:Y=>ee(Y.frontmatter.id)}):x==="archive"?p.jsx(VN,{board:o,onChanged:()=>void h(),onError:z}):x==="trash"?p.jsx(GL,{board:o,onChanged:()=>void h(),onError:z}):x==="stats"?p.jsx(SP,{board:o}):x==="files"?p.jsx(vD,{board:o}):p.jsx(SR,{board:o,onOpen:Y=>ee(Y.frontmatter.id)})},x):p.jsx("div",{className:$t.center,children:e("board.unavailable")})}),T&&o&&p.jsx(Z_,{members:o.config.members,templates:o.config.taskTemplates,onCancel:()=>D(!1),onSubmit:V}),S&&p.jsx(KR,{tasks:(o==null?void 0:o.tasks)??[],onClose:()=>L(!1),onSaved:()=>void h()}),P&&p.jsx(JR,{onClose:()=>j(!1)}),E&&o&&p.jsx($I,{board:o,onClose:()=>R(!1),onSelectView:Y=>_(Y),onOpenAdd:()=>D(!0),onOpenSettings:()=>L(!0),onOpenTask:Y=>ee(Y),onApplySavedView:F}),ge&&o&&p.jsx(kL,{task:ge,instructionTemplate:o.config.instructionTemplate,members:o.config.members,docsEnabled:o.config.docsDirs.length>0,onClose:()=>Z(null),onSaved:()=>void h()},ge.frontmatter.id)]})}const AM="_app_156sn_1",DM="_header_156sn_7",RM="_brand_156sn_16",PM="_mode_156sn_22",LM="_spacer_156sn_27",MM="_status_156sn_31",OM="_dot_156sn_39",zM="_dotOn_156sn_45",$M="_dotOff_156sn_49",BM="_langSelect_156sn_53",FM="_banner_156sn_69",VM="_center_156sn_77",UM="_main_156sn_85",HM="_sectionTitle_156sn_95",WM="_cards_156sn_102",qM="_card_156sn_102",KM="_cardName_156sn_121",ZM="_cardDir_156sn_127",YM="_counts_156sn_134",QM="_count_156sn_134",XM="_badges_156sn_159",GM="_badgeWip_156sn_166",JM="_badgeWarn_156sn_174",eO="_tableWrap_156sn_183",tO="_table_156sn_183",nO="_taskId_156sn_211",rO="_empty_156sn_217",yt={app:AM,header:DM,brand:RM,mode:PM,spacer:LM,status:MM,dot:OM,dotOn:zM,dotOff:$M,langSelect:BM,banner:FM,center:VM,main:UM,sectionTitle:HM,cards:WM,card:qM,cardName:KM,cardDir:ZM,counts:YM,count:QM,badges:XM,badgeWip:GM,badgeWarn:JM,tableWrap:eO,table:tO,taskId:nO,empty:rO},iO={decision:"blocked.decision",external:"blocked.external",dependency:"blocked.dependency"};function sO(){const[e,t]=b.useState(null),[r,s]=b.useState(!0),[l,o]=b.useState(null),[c,d]=b.useState(!1),f=b.useRef(0),h=b.useCallback(async()=>{const g=++f.current;try{const y=await gk();g===f.current&&(t(y),o(null))}catch(y){g===f.current&&o(y instanceof Error?y.message:"failed")}finally{g===f.current&&s(!1)}},[]);return b.useEffect(()=>{h();const g=new EventSource("/api/events");return g.onopen=()=>{d(!0),h()},g.onmessage=y=>{try{const k=JSON.parse(y.data);k.type==="change"?h():k.type==="connected"&&d(!0)}catch{}},g.onerror=()=>d(!1),()=>{g.close()}},[h]),{overview:e,loading:r,error:l,connected:c}}function lO(){const{t:e,lang:t,setLang:r}=vt(),{overview:s,loading:l,error:o,connected:c}=sO(),d=f=>{if(f.status!=="pending"||f.blocked_type===null)return"—";const h=e(iO[f.blocked_type]);return f.blocked_reason!==null?`${h}: ${f.blocked_reason}`:h};return p.jsxs("div",{className:yt.app,children:[p.jsxs("header",{className:yt.header,children:[p.jsx("span",{className:yt.brand,children:"AIzuchi"}),p.jsx("span",{className:yt.mode,children:e("overview.title")}),p.jsx("span",{className:yt.spacer}),p.jsxs("span",{className:yt.status,title:e(c?"header.live.title":"header.reconnecting.title"),children:[p.jsx("span",{className:`${yt.dot} ${c?yt.dotOn:yt.dotOff}`,"aria-hidden":"true"}),e(c?"header.live":"header.reconnecting")]}),p.jsx("select",{className:yt.langSelect,value:t,onChange:f=>r(f.target.value),"aria-label":e("settings.language"),children:cd.map(f=>p.jsx("option",{value:f,children:e(f==="en"?"settings.language.en":"settings.language.ja")},f))})]}),o!==null&&s!==null&&p.jsx("div",{className:yt.banner,role:"alert",children:e("overview.loadError")}),l&&!s?p.jsx("div",{className:yt.center,children:e("board.loading")}):s?p.jsxs("main",{className:yt.main,children:[p.jsxs("section",{"aria-labelledby":"ov-projects",children:[p.jsx("h2",{id:"ov-projects",className:yt.sectionTitle,children:e("overview.projects")}),p.jsx("div",{className:yt.cards,children:s.projects.map(f=>p.jsxs("article",{className:yt.card,title:f.root,children:[p.jsx("h3",{className:yt.cardName,children:f.name}),f.name!==f.dir&&p.jsx("p",{className:yt.cardDir,children:f.dir}),p.jsx("dl",{className:yt.counts,children:hs.map(h=>p.jsxs("div",{className:yt.count,children:[p.jsx("dt",{children:e(la[h])}),p.jsx("dd",{children:f.statusCounts[h]})]},h))}),p.jsxs("div",{className:yt.badges,children:[f.wipExceeded&&p.jsx("span",{className:yt.badgeWip,children:e("overview.wipExceeded")}),f.warningCount>0&&p.jsx("span",{className:yt.badgeWarn,children:e("overview.warnings",{n:f.warningCount})})]})]},f.dir))})]}),p.jsxs("section",{"aria-labelledby":"ov-attention",children:[p.jsx("h2",{id:"ov-attention",className:yt.sectionTitle,children:e("overview.attention.title")}),s.attention.length===0?p.jsx("p",{className:yt.empty,children:e("overview.attention.empty")}):p.jsx("div",{className:yt.tableWrap,children:p.jsxs("table",{className:yt.table,children:[p.jsx("thead",{children:p.jsxs("tr",{children:[p.jsx("th",{scope:"col",children:e("overview.col.project")}),p.jsx("th",{scope:"col",children:e("overview.col.task")}),p.jsx("th",{scope:"col",children:e("overview.col.status")}),p.jsx("th",{scope:"col",children:e("overview.col.assignee")}),p.jsx("th",{scope:"col",children:e("overview.col.blocked")})]})}),p.jsx("tbody",{children:s.attention.map(f=>p.jsxs("tr",{children:[p.jsx("td",{children:f.project}),p.jsxs("td",{children:[p.jsx("span",{className:yt.taskId,children:f.id})," ",f.title]}),p.jsx("td",{children:e(la[f.status])}),p.jsx("td",{children:f.assignee??e("card.unassigned")}),p.jsx("td",{children:d(f)})]},`${f.project}:${f.id}`))})]})})]})]}):p.jsx("div",{className:yt.center,children:e("overview.loadError")})]})}const gg=3,oO=700;function aO(){const{t:e}=vt(),[t,r]=b.useState(null);return b.useEffect(()=>{let s=!0;return(async()=>{for(let l=1;l<=gg;l++)try{const o=await mk();s&&r(o.mode==="overview"?"overview":"board");return}catch(o){if(o instanceof br&&o.status>=400&&o.status<500){s&&r("board");return}if(l===gg){s&&r("error");return}if(await new Promise(c=>setTimeout(c,oO)),!s)return}})(),()=>{s=!1}},[]),t===null?p.jsx(p.Fragment,{}):t==="error"?p.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:12,padding:48},role:"alert",children:[p.jsx("p",{children:e("mode.connectError")}),p.jsx("button",{type:"button",onClick:()=>window.location.reload(),children:e("settings.reload")})]}):t==="overview"?p.jsx(lO,{}):p.jsx(IM,{})}const dv=document.getElementById("root");if(!dv)throw new Error("#root not found");pk.createRoot(dv).render(p.jsx(b.StrictMode,{children:p.jsx(T_,{children:p.jsx(aO,{})})}));
|