@messagevisor/catalog 0.5.0 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,73 +0,0 @@
1
- (function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))u(o);new MutationObserver(o=>{for(const c of o)if(c.type==="childList")for(const d of c.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&u(d)}).observe(document,{childList:!0,subtree:!0});function r(o){const c={};return o.integrity&&(c.integrity=o.integrity),o.referrerPolicy&&(c.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?c.credentials="include":o.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function u(o){if(o.ep)return;o.ep=!0;const c=r(o);fetch(o.href,c)}})();function $g(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var bc={exports:{}},qi={};/**
2
- * @license React
3
- * react-jsx-runtime.production.js
4
- *
5
- * Copyright (c) Meta Platforms, Inc. and affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var Mp;function Uv(){if(Mp)return qi;Mp=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function r(u,o,c){var d=null;if(c!==void 0&&(d=""+c),o.key!==void 0&&(d=""+o.key),"key"in o){c={};for(var m in o)m!=="key"&&(c[m]=o[m])}else c=o;return o=c.ref,{$$typeof:n,type:u,key:d,ref:o!==void 0?o:null,props:c}}return qi.Fragment=a,qi.jsx=r,qi.jsxs=r,qi}var Op;function Hv(){return Op||(Op=1,bc.exports=Uv()),bc.exports}var h=Hv(),vc={exports:{}},ye={};/**
10
- * @license React
11
- * react.production.js
12
- *
13
- * Copyright (c) Meta Platforms, Inc. and affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */var Dp;function qv(){if(Dp)return ye;Dp=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),d=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),w=Symbol.iterator;function S(T){return T===null||typeof T!="object"?null:(T=w&&T[w]||T["@@iterator"],typeof T=="function"?T:null)}var R={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},M=Object.assign,O={};function z(T,Y,j){this.props=T,this.context=Y,this.refs=O,this.updater=j||R}z.prototype.isReactComponent={},z.prototype.setState=function(T,Y){if(typeof T!="object"&&typeof T!="function"&&T!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,T,Y,"setState")},z.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function X(){}X.prototype=z.prototype;function k(T,Y,j){this.props=T,this.context=Y,this.refs=O,this.updater=j||R}var J=k.prototype=new X;J.constructor=k,M(J,z.prototype),J.isPureReactComponent=!0;var te=Array.isArray;function q(){}var $={H:null,A:null,T:null,S:null},ue=Object.prototype.hasOwnProperty;function ce(T,Y,j){var ne=j.ref;return{$$typeof:n,type:T,key:Y,ref:ne!==void 0?ne:null,props:j}}function ge(T,Y){return ce(T.type,Y,T.props)}function le(T){return typeof T=="object"&&T!==null&&T.$$typeof===n}function ee(T){var Y={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(j){return Y[j]})}var Se=/\/+/g;function ie(T,Y){return typeof T=="object"&&T!==null&&T.key!=null?ee(""+T.key):Y.toString(36)}function F(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then(q,q):(T.status="pending",T.then(function(Y){T.status==="pending"&&(T.status="fulfilled",T.value=Y)},function(Y){T.status==="pending"&&(T.status="rejected",T.reason=Y)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function B(T,Y,j,ne,he){var se=typeof T;(se==="undefined"||se==="boolean")&&(T=null);var Ne=!1;if(T===null)Ne=!0;else switch(se){case"bigint":case"string":case"number":Ne=!0;break;case"object":switch(T.$$typeof){case n:case a:Ne=!0;break;case x:return Ne=T._init,B(Ne(T._payload),Y,j,ne,he)}}if(Ne)return he=he(T),Ne=ne===""?"."+ie(T,0):ne,te(he)?(j="",Ne!=null&&(j=Ne.replace(Se,"$&/")+"/"),B(he,Y,j,"",function(Ft){return Ft})):he!=null&&(le(he)&&(he=ge(he,j+(he.key==null||T&&T.key===he.key?"":(""+he.key).replace(Se,"$&/")+"/")+Ne)),Y.push(he)),1;Ne=0;var $e=ne===""?".":ne+":";if(te(T))for(var Le=0;Le<T.length;Le++)ne=T[Le],se=$e+ie(ne,Le),Ne+=B(ne,Y,j,se,he);else if(Le=S(T),typeof Le=="function")for(T=Le.call(T),Le=0;!(ne=T.next()).done;)ne=ne.value,se=$e+ie(ne,Le++),Ne+=B(ne,Y,j,se,he);else if(se==="object"){if(typeof T.then=="function")return B(F(T),Y,j,ne,he);throw Y=String(T),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.")}return Ne}function Z(T,Y,j){if(T==null)return T;var ne=[],he=0;return B(T,ne,"","",function(se){return Y.call(j,se,he++)}),ne}function P(T){if(T._status===-1){var Y=T._result;Y=Y(),Y.then(function(j){(T._status===0||T._status===-1)&&(T._status=1,T._result=j)},function(j){(T._status===0||T._status===-1)&&(T._status=2,T._result=j)}),T._status===-1&&(T._status=0,T._result=Y)}if(T._status===1)return T._result.default;throw T._result}var fe=typeof reportError=="function"?reportError:function(T){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof T=="object"&&T!==null&&typeof T.message=="string"?String(T.message):String(T),error:T});if(!window.dispatchEvent(Y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",T);return}console.error(T)},E={map:Z,forEach:function(T,Y,j){Z(T,function(){Y.apply(this,arguments)},j)},count:function(T){var Y=0;return Z(T,function(){Y++}),Y},toArray:function(T){return Z(T,function(Y){return Y})||[]},only:function(T){if(!le(T))throw Error("React.Children.only expected to receive a single React element child.");return T}};return ye.Activity=b,ye.Children=E,ye.Component=z,ye.Fragment=r,ye.Profiler=o,ye.PureComponent=k,ye.StrictMode=u,ye.Suspense=g,ye.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=$,ye.__COMPILER_RUNTIME={__proto__:null,c:function(T){return $.H.useMemoCache(T)}},ye.cache=function(T){return function(){return T.apply(null,arguments)}},ye.cacheSignal=function(){return null},ye.cloneElement=function(T,Y,j){if(T==null)throw Error("The argument must be a React element, but you passed "+T+".");var ne=M({},T.props),he=T.key;if(Y!=null)for(se in Y.key!==void 0&&(he=""+Y.key),Y)!ue.call(Y,se)||se==="key"||se==="__self"||se==="__source"||se==="ref"&&Y.ref===void 0||(ne[se]=Y[se]);var se=arguments.length-2;if(se===1)ne.children=j;else if(1<se){for(var Ne=Array(se),$e=0;$e<se;$e++)Ne[$e]=arguments[$e+2];ne.children=Ne}return ce(T.type,he,ne)},ye.createContext=function(T){return T={$$typeof:d,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null},T.Provider=T,T.Consumer={$$typeof:c,_context:T},T},ye.createElement=function(T,Y,j){var ne,he={},se=null;if(Y!=null)for(ne in Y.key!==void 0&&(se=""+Y.key),Y)ue.call(Y,ne)&&ne!=="key"&&ne!=="__self"&&ne!=="__source"&&(he[ne]=Y[ne]);var Ne=arguments.length-2;if(Ne===1)he.children=j;else if(1<Ne){for(var $e=Array(Ne),Le=0;Le<Ne;Le++)$e[Le]=arguments[Le+2];he.children=$e}if(T&&T.defaultProps)for(ne in Ne=T.defaultProps,Ne)he[ne]===void 0&&(he[ne]=Ne[ne]);return ce(T,se,he)},ye.createRef=function(){return{current:null}},ye.forwardRef=function(T){return{$$typeof:m,render:T}},ye.isValidElement=le,ye.lazy=function(T){return{$$typeof:x,_payload:{_status:-1,_result:T},_init:P}},ye.memo=function(T,Y){return{$$typeof:p,type:T,compare:Y===void 0?null:Y}},ye.startTransition=function(T){var Y=$.T,j={};$.T=j;try{var ne=T(),he=$.S;he!==null&&he(j,ne),typeof ne=="object"&&ne!==null&&typeof ne.then=="function"&&ne.then(q,fe)}catch(se){fe(se)}finally{Y!==null&&j.types!==null&&(Y.types=j.types),$.T=Y}},ye.unstable_useCacheRefresh=function(){return $.H.useCacheRefresh()},ye.use=function(T){return $.H.use(T)},ye.useActionState=function(T,Y,j){return $.H.useActionState(T,Y,j)},ye.useCallback=function(T,Y){return $.H.useCallback(T,Y)},ye.useContext=function(T){return $.H.useContext(T)},ye.useDebugValue=function(){},ye.useDeferredValue=function(T,Y){return $.H.useDeferredValue(T,Y)},ye.useEffect=function(T,Y){return $.H.useEffect(T,Y)},ye.useEffectEvent=function(T){return $.H.useEffectEvent(T)},ye.useId=function(){return $.H.useId()},ye.useImperativeHandle=function(T,Y,j){return $.H.useImperativeHandle(T,Y,j)},ye.useInsertionEffect=function(T,Y){return $.H.useInsertionEffect(T,Y)},ye.useLayoutEffect=function(T,Y){return $.H.useLayoutEffect(T,Y)},ye.useMemo=function(T,Y){return $.H.useMemo(T,Y)},ye.useOptimistic=function(T,Y){return $.H.useOptimistic(T,Y)},ye.useReducer=function(T,Y,j){return $.H.useReducer(T,Y,j)},ye.useRef=function(T){return $.H.useRef(T)},ye.useState=function(T){return $.H.useState(T)},ye.useSyncExternalStore=function(T,Y,j){return $.H.useSyncExternalStore(T,Y,j)},ye.useTransition=function(){return $.H.useTransition()},ye.version="19.2.6",ye}var Lp;function of(){return Lp||(Lp=1,vc.exports=qv()),vc.exports}var C=of(),Sc={exports:{}},Yi={},wc={exports:{}},jc={};/**
18
- * @license React
19
- * scheduler.production.js
20
- *
21
- * Copyright (c) Meta Platforms, Inc. and affiliates.
22
- *
23
- * This source code is licensed under the MIT license found in the
24
- * LICENSE file in the root directory of this source tree.
25
- */var Bp;function Yv(){return Bp||(Bp=1,(function(n){function a(B,Z){var P=B.length;B.push(Z);e:for(;0<P;){var fe=P-1>>>1,E=B[fe];if(0<o(E,Z))B[fe]=Z,B[P]=E,P=fe;else break e}}function r(B){return B.length===0?null:B[0]}function u(B){if(B.length===0)return null;var Z=B[0],P=B.pop();if(P!==Z){B[0]=P;e:for(var fe=0,E=B.length,T=E>>>1;fe<T;){var Y=2*(fe+1)-1,j=B[Y],ne=Y+1,he=B[ne];if(0>o(j,P))ne<E&&0>o(he,j)?(B[fe]=he,B[ne]=P,fe=ne):(B[fe]=j,B[Y]=P,fe=Y);else if(ne<E&&0>o(he,P))B[fe]=he,B[ne]=P,fe=ne;else break e}}return Z}function o(B,Z){var P=B.sortIndex-Z.sortIndex;return P!==0?P:B.id-Z.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;n.unstable_now=function(){return c.now()}}else{var d=Date,m=d.now();n.unstable_now=function(){return d.now()-m}}var g=[],p=[],x=1,b=null,w=3,S=!1,R=!1,M=!1,O=!1,z=typeof setTimeout=="function"?setTimeout:null,X=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null;function J(B){for(var Z=r(p);Z!==null;){if(Z.callback===null)u(p);else if(Z.startTime<=B)u(p),Z.sortIndex=Z.expirationTime,a(g,Z);else break;Z=r(p)}}function te(B){if(M=!1,J(B),!R)if(r(g)!==null)R=!0,q||(q=!0,ee());else{var Z=r(p);Z!==null&&F(te,Z.startTime-B)}}var q=!1,$=-1,ue=5,ce=-1;function ge(){return O?!0:!(n.unstable_now()-ce<ue)}function le(){if(O=!1,q){var B=n.unstable_now();ce=B;var Z=!0;try{e:{R=!1,M&&(M=!1,X($),$=-1),S=!0;var P=w;try{t:{for(J(B),b=r(g);b!==null&&!(b.expirationTime>B&&ge());){var fe=b.callback;if(typeof fe=="function"){b.callback=null,w=b.priorityLevel;var E=fe(b.expirationTime<=B);if(B=n.unstable_now(),typeof E=="function"){b.callback=E,J(B),Z=!0;break t}b===r(g)&&u(g),J(B)}else u(g);b=r(g)}if(b!==null)Z=!0;else{var T=r(p);T!==null&&F(te,T.startTime-B),Z=!1}}break e}finally{b=null,w=P,S=!1}Z=void 0}}finally{Z?ee():q=!1}}}var ee;if(typeof k=="function")ee=function(){k(le)};else if(typeof MessageChannel<"u"){var Se=new MessageChannel,ie=Se.port2;Se.port1.onmessage=le,ee=function(){ie.postMessage(null)}}else ee=function(){z(le,0)};function F(B,Z){$=z(function(){B(n.unstable_now())},Z)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(B){B.callback=null},n.unstable_forceFrameRate=function(B){0>B||125<B?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ue=0<B?Math.floor(1e3/B):5},n.unstable_getCurrentPriorityLevel=function(){return w},n.unstable_next=function(B){switch(w){case 1:case 2:case 3:var Z=3;break;default:Z=w}var P=w;w=Z;try{return B()}finally{w=P}},n.unstable_requestPaint=function(){O=!0},n.unstable_runWithPriority=function(B,Z){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var P=w;w=B;try{return Z()}finally{w=P}},n.unstable_scheduleCallback=function(B,Z,P){var fe=n.unstable_now();switch(typeof P=="object"&&P!==null?(P=P.delay,P=typeof P=="number"&&0<P?fe+P:fe):P=fe,B){case 1:var E=-1;break;case 2:E=250;break;case 5:E=1073741823;break;case 4:E=1e4;break;default:E=5e3}return E=P+E,B={id:x++,callback:Z,priorityLevel:B,startTime:P,expirationTime:E,sortIndex:-1},P>fe?(B.sortIndex=P,a(p,B),r(g)===null&&B===r(p)&&(M?(X($),$=-1):M=!0,F(te,P-fe))):(B.sortIndex=E,a(g,B),R||S||(R=!0,q||(q=!0,ee()))),B},n.unstable_shouldYield=ge,n.unstable_wrapCallback=function(B){var Z=w;return function(){var P=w;w=Z;try{return B.apply(this,arguments)}finally{w=P}}}})(jc)),jc}var Up;function Vv(){return Up||(Up=1,wc.exports=Yv()),wc.exports}var Ec={exports:{}},bt={};/**
26
- * @license React
27
- * react-dom.production.js
28
- *
29
- * Copyright (c) Meta Platforms, Inc. and affiliates.
30
- *
31
- * This source code is licensed under the MIT license found in the
32
- * LICENSE file in the root directory of this source tree.
33
- */var Hp;function Qv(){if(Hp)return bt;Hp=1;var n=of();function a(g){var p="https://react.dev/errors/"+g;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var x=2;x<arguments.length;x++)p+="&args[]="+encodeURIComponent(arguments[x])}return"Minified React error #"+g+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var u={d:{f:r,r:function(){throw Error(a(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},o=Symbol.for("react.portal");function c(g,p,x){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:b==null?null:""+b,children:g,containerInfo:p,implementation:x}}var d=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(g,p){if(g==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return bt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u,bt.createPortal=function(g,p){var x=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(a(299));return c(g,p,null,x)},bt.flushSync=function(g){var p=d.T,x=u.p;try{if(d.T=null,u.p=2,g)return g()}finally{d.T=p,u.p=x,u.d.f()}},bt.preconnect=function(g,p){typeof g=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,u.d.C(g,p))},bt.prefetchDNS=function(g){typeof g=="string"&&u.d.D(g)},bt.preinit=function(g,p){if(typeof g=="string"&&p&&typeof p.as=="string"){var x=p.as,b=m(x,p.crossOrigin),w=typeof p.integrity=="string"?p.integrity:void 0,S=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;x==="style"?u.d.S(g,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:b,integrity:w,fetchPriority:S}):x==="script"&&u.d.X(g,{crossOrigin:b,integrity:w,fetchPriority:S,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},bt.preinitModule=function(g,p){if(typeof g=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var x=m(p.as,p.crossOrigin);u.d.M(g,{crossOrigin:x,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&u.d.M(g)},bt.preload=function(g,p){if(typeof g=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var x=p.as,b=m(x,p.crossOrigin);u.d.L(g,x,{crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},bt.preloadModule=function(g,p){if(typeof g=="string")if(p){var x=m(p.as,p.crossOrigin);u.d.m(g,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:x,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else u.d.m(g)},bt.requestFormReset=function(g){u.d.r(g)},bt.unstable_batchedUpdates=function(g,p){return g(p)},bt.useFormState=function(g,p,x){return d.H.useFormState(g,p,x)},bt.useFormStatus=function(){return d.H.useHostTransitionStatus()},bt.version="19.2.6",bt}var qp;function Kv(){if(qp)return Ec.exports;qp=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),Ec.exports=Qv(),Ec.exports}/**
34
- * @license React
35
- * react-dom-client.production.js
36
- *
37
- * Copyright (c) Meta Platforms, Inc. and affiliates.
38
- *
39
- * This source code is licensed under the MIT license found in the
40
- * LICENSE file in the root directory of this source tree.
41
- */var Yp;function Gv(){if(Yp)return Yi;Yp=1;var n=Vv(),a=of(),r=Kv();function u(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function c(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function d(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function m(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function g(e){if(c(e)!==e)throw Error(u(188))}function p(e){var t=e.alternate;if(!t){if(t=c(e),t===null)throw Error(u(188));return t!==e?null:e}for(var l=e,i=t;;){var s=l.return;if(s===null)break;var f=s.alternate;if(f===null){if(i=s.return,i!==null){l=i;continue}break}if(s.child===f.child){for(f=s.child;f;){if(f===l)return g(s),e;if(f===i)return g(s),t;f=f.sibling}throw Error(u(188))}if(l.return!==i.return)l=s,i=f;else{for(var y=!1,v=s.child;v;){if(v===l){y=!0,l=s,i=f;break}if(v===i){y=!0,i=s,l=f;break}v=v.sibling}if(!y){for(v=f.child;v;){if(v===l){y=!0,l=f,i=s;break}if(v===i){y=!0,i=f,l=s;break}v=v.sibling}if(!y)throw Error(u(189))}}if(l.alternate!==i)throw Error(u(190))}if(l.tag!==3)throw Error(u(188));return l.stateNode.current===l?e:t}function x(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=x(e),t!==null)return t;e=e.sibling}return null}var b=Object.assign,w=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),R=Symbol.for("react.portal"),M=Symbol.for("react.fragment"),O=Symbol.for("react.strict_mode"),z=Symbol.for("react.profiler"),X=Symbol.for("react.consumer"),k=Symbol.for("react.context"),J=Symbol.for("react.forward_ref"),te=Symbol.for("react.suspense"),q=Symbol.for("react.suspense_list"),$=Symbol.for("react.memo"),ue=Symbol.for("react.lazy"),ce=Symbol.for("react.activity"),ge=Symbol.for("react.memo_cache_sentinel"),le=Symbol.iterator;function ee(e){return e===null||typeof e!="object"?null:(e=le&&e[le]||e["@@iterator"],typeof e=="function"?e:null)}var Se=Symbol.for("react.client.reference");function ie(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Se?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case M:return"Fragment";case z:return"Profiler";case O:return"StrictMode";case te:return"Suspense";case q:return"SuspenseList";case ce:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case R:return"Portal";case k:return e.displayName||"Context";case X:return(e._context.displayName||"Context")+".Consumer";case J:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case $:return t=e.displayName||null,t!==null?t:ie(e.type)||"Memo";case ue:t=e._payload,e=e._init;try{return ie(e(t))}catch{}}return null}var F=Array.isArray,B=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P={pending:!1,data:null,method:null,action:null},fe=[],E=-1;function T(e){return{current:e}}function Y(e){0>E||(e.current=fe[E],fe[E]=null,E--)}function j(e,t){E++,fe[E]=e.current,e.current=t}var ne=T(null),he=T(null),se=T(null),Ne=T(null);function $e(e,t){switch(j(se,t),j(he,e),j(ne,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?np(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=np(t),e=lp(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Y(ne),j(ne,e)}function Le(){Y(ne),Y(he),Y(se)}function Ft(e){e.memoizedState!==null&&j(Ne,e);var t=ne.current,l=lp(t,e.type);t!==l&&(j(he,e),j(ne,l))}function jn(e){he.current===e&&(Y(ne),Y(he)),Ne.current===e&&(Y(Ne),Li._currentValue=P)}var Za,sr;function En(e){if(Za===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);Za=t&&t[1]||"",sr=-1<l.stack.indexOf(`
42
- at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
43
- `+Za+e+sr}var Gl=!1;function Xl(e,t){if(!e||Gl)return"";Gl=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(t){var G=function(){throw Error()};if(Object.defineProperty(G.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(G,[])}catch(H){var U=H}Reflect.construct(e,[],G)}else{try{G.call()}catch(H){U=H}e.call(G.prototype)}}else{try{throw Error()}catch(H){U=H}(G=e())&&typeof G.catch=="function"&&G.catch(function(){})}}catch(H){if(H&&U&&typeof H.stack=="string")return[H.stack,U.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var s=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");s&&s.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var f=i.DetermineComponentFrameRoot(),y=f[0],v=f[1];if(y&&v){var N=y.split(`
44
- `),L=v.split(`
45
- `);for(s=i=0;i<N.length&&!N[i].includes("DetermineComponentFrameRoot");)i++;for(;s<L.length&&!L[s].includes("DetermineComponentFrameRoot");)s++;if(i===N.length||s===L.length)for(i=N.length-1,s=L.length-1;1<=i&&0<=s&&N[i]!==L[s];)s--;for(;1<=i&&0<=s;i--,s--)if(N[i]!==L[s]){if(i!==1||s!==1)do if(i--,s--,0>s||N[i]!==L[s]){var V=`
46
- `+N[i].replace(" at new "," at ");return e.displayName&&V.includes("<anonymous>")&&(V=V.replace("<anonymous>",e.displayName)),V}while(1<=i&&0<=s);break}}}finally{Gl=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?En(l):""}function or(e,t){switch(e.tag){case 26:case 27:case 5:return En(e.type);case 16:return En("Lazy");case 13:return e.child!==t&&t!==null?En("Suspense Fallback"):En("Suspense");case 19:return En("SuspenseList");case 0:case 15:return Xl(e.type,!1);case 11:return Xl(e.type.render,!1);case 1:return Xl(e.type,!0);case 31:return En("Activity");default:return""}}function cr(e){try{var t="",l=null;do t+=or(e,l),l=e,e=e.return;while(e);return t}catch(i){return`
47
- Error generating stack: `+i.message+`
48
- `+i.stack}}var Zl=Object.prototype.hasOwnProperty,$l=n.unstable_scheduleCallback,$a=n.unstable_cancelCallback,ls=n.unstable_shouldYield,as=n.unstable_requestPaint,St=n.unstable_now,is=n.unstable_getCurrentPriorityLevel,Q=n.unstable_ImmediatePriority,W=n.unstable_UserBlockingPriority,me=n.unstable_NormalPriority,we=n.unstable_LowPriority,Me=n.unstable_IdlePriority,Lt=n.log,Nn=n.unstable_setDisableYieldValue,wt=null,ot=null;function Nt(e){if(typeof Lt=="function"&&Nn(e),ot&&typeof ot.setStrictMode=="function")try{ot.setStrictMode(wt,e)}catch{}}var qe=Math.clz32?Math.clz32:Ex,Zn=Math.log,cn=Math.LN2;function Ex(e){return e>>>=0,e===0?32:31-(Zn(e)/cn|0)|0}var fr=256,dr=262144,hr=4194304;function jl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function mr(e,t,l){var i=e.pendingLanes;if(i===0)return 0;var s=0,f=e.suspendedLanes,y=e.pingedLanes;e=e.warmLanes;var v=i&134217727;return v!==0?(i=v&~f,i!==0?s=jl(i):(y&=v,y!==0?s=jl(y):l||(l=v&~e,l!==0&&(s=jl(l))))):(v=i&~f,v!==0?s=jl(v):y!==0?s=jl(y):l||(l=i&~e,l!==0&&(s=jl(l)))),s===0?0:t!==0&&t!==s&&(t&f)===0&&(f=s&-s,l=t&-t,f>=l||f===32&&(l&4194048)!==0)?t:s}function Fa(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Nx(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Bf(){var e=hr;return hr<<=1,(hr&62914560)===0&&(hr=4194304),e}function rs(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Ja(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Tx(e,t,l,i,s,f){var y=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var v=e.entanglements,N=e.expirationTimes,L=e.hiddenUpdates;for(l=y&~l;0<l;){var V=31-qe(l),G=1<<V;v[V]=0,N[V]=-1;var U=L[V];if(U!==null)for(L[V]=null,V=0;V<U.length;V++){var H=U[V];H!==null&&(H.lane&=-536870913)}l&=~G}i!==0&&Uf(e,i,0),f!==0&&s===0&&e.tag!==0&&(e.suspendedLanes|=f&~(y&~t))}function Uf(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-qe(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|l&261930}function Hf(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var i=31-qe(l),s=1<<i;s&t|e[i]&t&&(e[i]|=t),l&=~s}}function qf(e,t){var l=t&-t;return l=(l&42)!==0?1:us(l),(l&(e.suspendedLanes|t))!==0?0:l}function us(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function ss(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Yf(){var e=Z.p;return e!==0?e:(e=window.event,e===void 0?32:Tp(e.type))}function Vf(e,t){var l=Z.p;try{return Z.p=e,t()}finally{Z.p=l}}var $n=Math.random().toString(36).slice(2),ht="__reactFiber$"+$n,Tt="__reactProps$"+$n,Fl="__reactContainer$"+$n,os="__reactEvents$"+$n,Cx="__reactListeners$"+$n,Ax="__reactHandles$"+$n,Qf="__reactResources$"+$n,Ia="__reactMarker$"+$n;function cs(e){delete e[ht],delete e[Tt],delete e[os],delete e[Cx],delete e[Ax]}function Jl(e){var t=e[ht];if(t)return t;for(var l=e.parentNode;l;){if(t=l[Fl]||l[ht]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=cp(e);e!==null;){if(l=e[ht])return l;e=cp(e)}return t}e=l,l=e.parentNode}return null}function Il(e){if(e=e[ht]||e[Fl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Pa(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(u(33))}function Pl(e){var t=e[Qf];return t||(t=e[Qf]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ft(e){e[Ia]=!0}var Kf=new Set,Gf={};function El(e,t){Wl(e,t),Wl(e+"Capture",t)}function Wl(e,t){for(Gf[e]=t,e=0;e<t.length;e++)Kf.add(t[e])}var zx=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Xf={},Zf={};function kx(e){return Zl.call(Zf,e)?!0:Zl.call(Xf,e)?!1:zx.test(e)?Zf[e]=!0:(Xf[e]=!0,!1)}function pr(e,t,l){if(kx(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var i=t.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function gr(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function Tn(e,t,l,i){if(i===null)e.removeAttribute(l);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+i)}}function Jt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function $f(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Rx(e,t,l){var i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var s=i.get,f=i.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(y){l=""+y,f.call(this,y)}}),Object.defineProperty(e,t,{enumerable:i.enumerable}),{getValue:function(){return l},setValue:function(y){l=""+y},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function fs(e){if(!e._valueTracker){var t=$f(e)?"checked":"value";e._valueTracker=Rx(e,t,""+e[t])}}function Ff(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),i="";return e&&(i=$f(e)?e.checked?"true":"false":e.value),e=i,e!==l?(t.setValue(e),!0):!1}function yr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var _x=/[\n"\\]/g;function It(e){return e.replace(_x,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function ds(e,t,l,i,s,f,y,v){e.name="",y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?e.type=y:e.removeAttribute("type"),t!=null?y==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Jt(t)):e.value!==""+Jt(t)&&(e.value=""+Jt(t)):y!=="submit"&&y!=="reset"||e.removeAttribute("value"),t!=null?hs(e,y,Jt(t)):l!=null?hs(e,y,Jt(l)):i!=null&&e.removeAttribute("value"),s==null&&f!=null&&(e.defaultChecked=!!f),s!=null&&(e.checked=s&&typeof s!="function"&&typeof s!="symbol"),v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.name=""+Jt(v):e.removeAttribute("name")}function Jf(e,t,l,i,s,f,y,v){if(f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.type=f),t!=null||l!=null){if(!(f!=="submit"&&f!=="reset"||t!=null)){fs(e);return}l=l!=null?""+Jt(l):"",t=t!=null?""+Jt(t):l,v||t===e.value||(e.value=t),e.defaultValue=t}i=i??s,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=v?e.checked:!!i,e.defaultChecked=!!i,y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(e.name=y),fs(e)}function hs(e,t,l){t==="number"&&yr(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function ea(e,t,l,i){if(e=e.options,t){t={};for(var s=0;s<l.length;s++)t["$"+l[s]]=!0;for(l=0;l<e.length;l++)s=t.hasOwnProperty("$"+e[l].value),e[l].selected!==s&&(e[l].selected=s),s&&i&&(e[l].defaultSelected=!0)}else{for(l=""+Jt(l),t=null,s=0;s<e.length;s++){if(e[s].value===l){e[s].selected=!0,i&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function If(e,t,l){if(t!=null&&(t=""+Jt(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+Jt(l):""}function Pf(e,t,l,i){if(t==null){if(i!=null){if(l!=null)throw Error(u(92));if(F(i)){if(1<i.length)throw Error(u(93));i=i[0]}l=i}l==null&&(l=""),t=l}l=Jt(t),e.defaultValue=l,i=e.textContent,i===l&&i!==""&&i!==null&&(e.value=i),fs(e)}function ta(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var Mx=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Wf(e,t,l){var i=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?i?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":i?e.setProperty(t,l):typeof l!="number"||l===0||Mx.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function ed(e,t,l){if(t!=null&&typeof t!="object")throw Error(u(62));if(e=e.style,l!=null){for(var i in l)!l.hasOwnProperty(i)||t!=null&&t.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="");for(var s in t)i=t[s],t.hasOwnProperty(s)&&l[s]!==i&&Wf(e,s,i)}else for(var f in t)t.hasOwnProperty(f)&&Wf(e,f,t[f])}function ms(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ox=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Dx=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function xr(e){return Dx.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Cn(){}var ps=null;function gs(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var na=null,la=null;function td(e){var t=Il(e);if(t&&(e=t.stateNode)){var l=e[Tt]||null;e:switch(e=t.stateNode,t.type){case"input":if(ds(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+It(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var i=l[t];if(i!==e&&i.form===e.form){var s=i[Tt]||null;if(!s)throw Error(u(90));ds(i,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name)}}for(t=0;t<l.length;t++)i=l[t],i.form===e.form&&Ff(i)}break e;case"textarea":If(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&ea(e,!!l.multiple,t,!1)}}}var ys=!1;function nd(e,t,l){if(ys)return e(t,l);ys=!0;try{var i=e(t);return i}finally{if(ys=!1,(na!==null||la!==null)&&(iu(),na&&(t=na,e=la,la=na=null,td(t),e)))for(t=0;t<e.length;t++)td(e[t])}}function Wa(e,t){var l=e.stateNode;if(l===null)return null;var i=l[Tt]||null;if(i===null)return null;l=i[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(u(231,t,typeof l));return l}var An=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),xs=!1;if(An)try{var ei={};Object.defineProperty(ei,"passive",{get:function(){xs=!0}}),window.addEventListener("test",ei,ei),window.removeEventListener("test",ei,ei)}catch{xs=!1}var Fn=null,bs=null,br=null;function ld(){if(br)return br;var e,t=bs,l=t.length,i,s="value"in Fn?Fn.value:Fn.textContent,f=s.length;for(e=0;e<l&&t[e]===s[e];e++);var y=l-e;for(i=1;i<=y&&t[l-i]===s[f-i];i++);return br=s.slice(e,1<i?1-i:void 0)}function vr(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Sr(){return!0}function ad(){return!1}function Ct(e){function t(l,i,s,f,y){this._reactName=l,this._targetInst=s,this.type=i,this.nativeEvent=f,this.target=y,this.currentTarget=null;for(var v in e)e.hasOwnProperty(v)&&(l=e[v],this[v]=l?l(f):f[v]);return this.isDefaultPrevented=(f.defaultPrevented!=null?f.defaultPrevented:f.returnValue===!1)?Sr:ad,this.isPropagationStopped=ad,this}return b(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Sr)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Sr)},persist:function(){},isPersistent:Sr}),t}var Nl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},wr=Ct(Nl),ti=b({},Nl,{view:0,detail:0}),Lx=Ct(ti),vs,Ss,ni,jr=b({},ti,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:js,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ni&&(ni&&e.type==="mousemove"?(vs=e.screenX-ni.screenX,Ss=e.screenY-ni.screenY):Ss=vs=0,ni=e),vs)},movementY:function(e){return"movementY"in e?e.movementY:Ss}}),id=Ct(jr),Bx=b({},jr,{dataTransfer:0}),Ux=Ct(Bx),Hx=b({},ti,{relatedTarget:0}),ws=Ct(Hx),qx=b({},Nl,{animationName:0,elapsedTime:0,pseudoElement:0}),Yx=Ct(qx),Vx=b({},Nl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Qx=Ct(Vx),Kx=b({},Nl,{data:0}),rd=Ct(Kx),Gx={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Xx={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Zx={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function $x(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Zx[e])?!!t[e]:!1}function js(){return $x}var Fx=b({},ti,{key:function(e){if(e.key){var t=Gx[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=vr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Xx[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:js,charCode:function(e){return e.type==="keypress"?vr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?vr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Jx=Ct(Fx),Ix=b({},jr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ud=Ct(Ix),Px=b({},ti,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:js}),Wx=Ct(Px),eb=b({},Nl,{propertyName:0,elapsedTime:0,pseudoElement:0}),tb=Ct(eb),nb=b({},jr,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),lb=Ct(nb),ab=b({},Nl,{newState:0,oldState:0}),ib=Ct(ab),rb=[9,13,27,32],Es=An&&"CompositionEvent"in window,li=null;An&&"documentMode"in document&&(li=document.documentMode);var ub=An&&"TextEvent"in window&&!li,sd=An&&(!Es||li&&8<li&&11>=li),od=" ",cd=!1;function fd(e,t){switch(e){case"keyup":return rb.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function dd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var aa=!1;function sb(e,t){switch(e){case"compositionend":return dd(t);case"keypress":return t.which!==32?null:(cd=!0,od);case"textInput":return e=t.data,e===od&&cd?null:e;default:return null}}function ob(e,t){if(aa)return e==="compositionend"||!Es&&fd(e,t)?(e=ld(),br=bs=Fn=null,aa=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return sd&&t.locale!=="ko"?null:t.data;default:return null}}var cb={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 hd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!cb[e.type]:t==="textarea"}function md(e,t,l,i){na?la?la.push(i):la=[i]:na=i,t=du(t,"onChange"),0<t.length&&(l=new wr("onChange","change",null,l,i),e.push({event:l,listeners:t}))}var ai=null,ii=null;function fb(e){Jm(e,0)}function Er(e){var t=Pa(e);if(Ff(t))return e}function pd(e,t){if(e==="change")return t}var gd=!1;if(An){var Ns;if(An){var Ts="oninput"in document;if(!Ts){var yd=document.createElement("div");yd.setAttribute("oninput","return;"),Ts=typeof yd.oninput=="function"}Ns=Ts}else Ns=!1;gd=Ns&&(!document.documentMode||9<document.documentMode)}function xd(){ai&&(ai.detachEvent("onpropertychange",bd),ii=ai=null)}function bd(e){if(e.propertyName==="value"&&Er(ii)){var t=[];md(t,ii,e,gs(e)),nd(fb,t)}}function db(e,t,l){e==="focusin"?(xd(),ai=t,ii=l,ai.attachEvent("onpropertychange",bd)):e==="focusout"&&xd()}function hb(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Er(ii)}function mb(e,t){if(e==="click")return Er(t)}function pb(e,t){if(e==="input"||e==="change")return Er(t)}function gb(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Bt=typeof Object.is=="function"?Object.is:gb;function ri(e,t){if(Bt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),i=Object.keys(t);if(l.length!==i.length)return!1;for(i=0;i<l.length;i++){var s=l[i];if(!Zl.call(t,s)||!Bt(e[s],t[s]))return!1}return!0}function vd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Sd(e,t){var l=vd(e);e=0;for(var i;l;){if(l.nodeType===3){if(i=e+l.textContent.length,e<=t&&i>=t)return{node:l,offset:t-e};e=i}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=vd(l)}}function wd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?wd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function jd(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=yr(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=yr(e.document)}return t}function Cs(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var yb=An&&"documentMode"in document&&11>=document.documentMode,ia=null,As=null,ui=null,zs=!1;function Ed(e,t,l){var i=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;zs||ia==null||ia!==yr(i)||(i=ia,"selectionStart"in i&&Cs(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),ui&&ri(ui,i)||(ui=i,i=du(As,"onSelect"),0<i.length&&(t=new wr("onSelect","select",null,t,l),e.push({event:t,listeners:i}),t.target=ia)))}function Tl(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var ra={animationend:Tl("Animation","AnimationEnd"),animationiteration:Tl("Animation","AnimationIteration"),animationstart:Tl("Animation","AnimationStart"),transitionrun:Tl("Transition","TransitionRun"),transitionstart:Tl("Transition","TransitionStart"),transitioncancel:Tl("Transition","TransitionCancel"),transitionend:Tl("Transition","TransitionEnd")},ks={},Nd={};An&&(Nd=document.createElement("div").style,"AnimationEvent"in window||(delete ra.animationend.animation,delete ra.animationiteration.animation,delete ra.animationstart.animation),"TransitionEvent"in window||delete ra.transitionend.transition);function Cl(e){if(ks[e])return ks[e];if(!ra[e])return e;var t=ra[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in Nd)return ks[e]=t[l];return e}var Td=Cl("animationend"),Cd=Cl("animationiteration"),Ad=Cl("animationstart"),xb=Cl("transitionrun"),bb=Cl("transitionstart"),vb=Cl("transitioncancel"),zd=Cl("transitionend"),kd=new Map,Rs="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Rs.push("scrollEnd");function fn(e,t){kd.set(e,t),El(t,[e])}var Nr=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Pt=[],ua=0,_s=0;function Tr(){for(var e=ua,t=_s=ua=0;t<e;){var l=Pt[t];Pt[t++]=null;var i=Pt[t];Pt[t++]=null;var s=Pt[t];Pt[t++]=null;var f=Pt[t];if(Pt[t++]=null,i!==null&&s!==null){var y=i.pending;y===null?s.next=s:(s.next=y.next,y.next=s),i.pending=s}f!==0&&Rd(l,s,f)}}function Cr(e,t,l,i){Pt[ua++]=e,Pt[ua++]=t,Pt[ua++]=l,Pt[ua++]=i,_s|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function Ms(e,t,l,i){return Cr(e,t,l,i),Ar(e)}function Al(e,t){return Cr(e,null,null,t),Ar(e)}function Rd(e,t,l){e.lanes|=l;var i=e.alternate;i!==null&&(i.lanes|=l);for(var s=!1,f=e.return;f!==null;)f.childLanes|=l,i=f.alternate,i!==null&&(i.childLanes|=l),f.tag===22&&(e=f.stateNode,e===null||e._visibility&1||(s=!0)),e=f,f=f.return;return e.tag===3?(f=e.stateNode,s&&t!==null&&(s=31-qe(l),e=f.hiddenUpdates,i=e[s],i===null?e[s]=[t]:i.push(t),t.lane=l|536870912),f):null}function Ar(e){if(50<zi)throw zi=0,Qo=null,Error(u(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var sa={};function Sb(e,t,l,i){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ut(e,t,l,i){return new Sb(e,t,l,i)}function Os(e){return e=e.prototype,!(!e||!e.isReactComponent)}function zn(e,t){var l=e.alternate;return l===null?(l=Ut(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function _d(e,t){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function zr(e,t,l,i,s,f){var y=0;if(i=e,typeof e=="function")Os(e)&&(y=1);else if(typeof e=="string")y=Tv(e,l,ne.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ce:return e=Ut(31,l,t,s),e.elementType=ce,e.lanes=f,e;case M:return zl(l.children,s,f,t);case O:y=8,s|=24;break;case z:return e=Ut(12,l,t,s|2),e.elementType=z,e.lanes=f,e;case te:return e=Ut(13,l,t,s),e.elementType=te,e.lanes=f,e;case q:return e=Ut(19,l,t,s),e.elementType=q,e.lanes=f,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case k:y=10;break e;case X:y=9;break e;case J:y=11;break e;case $:y=14;break e;case ue:y=16,i=null;break e}y=29,l=Error(u(130,e===null?"null":typeof e,"")),i=null}return t=Ut(y,l,t,s),t.elementType=e,t.type=i,t.lanes=f,t}function zl(e,t,l,i){return e=Ut(7,e,i,t),e.lanes=l,e}function Ds(e,t,l){return e=Ut(6,e,null,t),e.lanes=l,e}function Md(e){var t=Ut(18,null,null,0);return t.stateNode=e,t}function Ls(e,t,l){return t=Ut(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Od=new WeakMap;function Wt(e,t){if(typeof e=="object"&&e!==null){var l=Od.get(e);return l!==void 0?l:(t={value:e,source:t,stack:cr(t)},Od.set(e,t),t)}return{value:e,source:t,stack:cr(t)}}var oa=[],ca=0,kr=null,si=0,en=[],tn=0,Jn=null,gn=1,yn="";function kn(e,t){oa[ca++]=si,oa[ca++]=kr,kr=e,si=t}function Dd(e,t,l){en[tn++]=gn,en[tn++]=yn,en[tn++]=Jn,Jn=e;var i=gn;e=yn;var s=32-qe(i)-1;i&=~(1<<s),l+=1;var f=32-qe(t)+s;if(30<f){var y=s-s%5;f=(i&(1<<y)-1).toString(32),i>>=y,s-=y,gn=1<<32-qe(t)+s|l<<s|i,yn=f+e}else gn=1<<f|l<<s|i,yn=e}function Bs(e){e.return!==null&&(kn(e,1),Dd(e,1,0))}function Us(e){for(;e===kr;)kr=oa[--ca],oa[ca]=null,si=oa[--ca],oa[ca]=null;for(;e===Jn;)Jn=en[--tn],en[tn]=null,yn=en[--tn],en[tn]=null,gn=en[--tn],en[tn]=null}function Ld(e,t){en[tn++]=gn,en[tn++]=yn,en[tn++]=Jn,gn=t.id,yn=t.overflow,Jn=e}var mt=null,Ge=null,Ae=!1,In=null,nn=!1,Hs=Error(u(519));function Pn(e){var t=Error(u(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw oi(Wt(t,e)),Hs}function Bd(e){var t=e.stateNode,l=e.type,i=e.memoizedProps;switch(t[ht]=e,t[Tt]=i,l){case"dialog":Ee("cancel",t),Ee("close",t);break;case"iframe":case"object":case"embed":Ee("load",t);break;case"video":case"audio":for(l=0;l<Ri.length;l++)Ee(Ri[l],t);break;case"source":Ee("error",t);break;case"img":case"image":case"link":Ee("error",t),Ee("load",t);break;case"details":Ee("toggle",t);break;case"input":Ee("invalid",t),Jf(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":Ee("invalid",t);break;case"textarea":Ee("invalid",t),Pf(t,i.value,i.defaultValue,i.children)}l=i.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||i.suppressHydrationWarning===!0||ep(t.textContent,l)?(i.popover!=null&&(Ee("beforetoggle",t),Ee("toggle",t)),i.onScroll!=null&&Ee("scroll",t),i.onScrollEnd!=null&&Ee("scrollend",t),i.onClick!=null&&(t.onclick=Cn),t=!0):t=!1,t||Pn(e,!0)}function Ud(e){for(mt=e.return;mt;)switch(mt.tag){case 5:case 31:case 13:nn=!1;return;case 27:case 3:nn=!0;return;default:mt=mt.return}}function fa(e){if(e!==mt)return!1;if(!Ae)return Ud(e),Ae=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||ac(e.type,e.memoizedProps)),l=!l),l&&Ge&&Pn(e),Ud(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));Ge=op(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));Ge=op(e)}else t===27?(t=Ge,dl(e.type)?(e=oc,oc=null,Ge=e):Ge=t):Ge=mt?an(e.stateNode.nextSibling):null;return!0}function kl(){Ge=mt=null,Ae=!1}function qs(){var e=In;return e!==null&&(Rt===null?Rt=e:Rt.push.apply(Rt,e),In=null),e}function oi(e){In===null?In=[e]:In.push(e)}var Ys=T(null),Rl=null,Rn=null;function Wn(e,t,l){j(Ys,t._currentValue),t._currentValue=l}function _n(e){e._currentValue=Ys.current,Y(Ys)}function Vs(e,t,l){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===l)break;e=e.return}}function Qs(e,t,l,i){var s=e.child;for(s!==null&&(s.return=e);s!==null;){var f=s.dependencies;if(f!==null){var y=s.child;f=f.firstContext;e:for(;f!==null;){var v=f;f=s;for(var N=0;N<t.length;N++)if(v.context===t[N]){f.lanes|=l,v=f.alternate,v!==null&&(v.lanes|=l),Vs(f.return,l,e),i||(y=null);break e}f=v.next}}else if(s.tag===18){if(y=s.return,y===null)throw Error(u(341));y.lanes|=l,f=y.alternate,f!==null&&(f.lanes|=l),Vs(y,l,e),y=null}else y=s.child;if(y!==null)y.return=s;else for(y=s;y!==null;){if(y===e){y=null;break}if(s=y.sibling,s!==null){s.return=y.return,y=s;break}y=y.return}s=y}}function da(e,t,l,i){e=null;for(var s=t,f=!1;s!==null;){if(!f){if((s.flags&524288)!==0)f=!0;else if((s.flags&262144)!==0)break}if(s.tag===10){var y=s.alternate;if(y===null)throw Error(u(387));if(y=y.memoizedProps,y!==null){var v=s.type;Bt(s.pendingProps.value,y.value)||(e!==null?e.push(v):e=[v])}}else if(s===Ne.current){if(y=s.alternate,y===null)throw Error(u(387));y.memoizedState.memoizedState!==s.memoizedState.memoizedState&&(e!==null?e.push(Li):e=[Li])}s=s.return}e!==null&&Qs(t,e,l,i),t.flags|=262144}function Rr(e){for(e=e.firstContext;e!==null;){if(!Bt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function _l(e){Rl=e,Rn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function pt(e){return Hd(Rl,e)}function _r(e,t){return Rl===null&&_l(e),Hd(e,t)}function Hd(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},Rn===null){if(e===null)throw Error(u(308));Rn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Rn=Rn.next=t;return l}var wb=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,i){e.push(i)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},jb=n.unstable_scheduleCallback,Eb=n.unstable_NormalPriority,lt={$$typeof:k,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ks(){return{controller:new wb,data:new Map,refCount:0}}function ci(e){e.refCount--,e.refCount===0&&jb(Eb,function(){e.controller.abort()})}var fi=null,Gs=0,ha=0,ma=null;function Nb(e,t){if(fi===null){var l=fi=[];Gs=0,ha=Fo(),ma={status:"pending",value:void 0,then:function(i){l.push(i)}}}return Gs++,t.then(qd,qd),t}function qd(){if(--Gs===0&&fi!==null){ma!==null&&(ma.status="fulfilled");var e=fi;fi=null,ha=0,ma=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Tb(e,t){var l=[],i={status:"pending",value:null,reason:null,then:function(s){l.push(s)}};return e.then(function(){i.status="fulfilled",i.value=t;for(var s=0;s<l.length;s++)(0,l[s])(t)},function(s){for(i.status="rejected",i.reason=s,s=0;s<l.length;s++)(0,l[s])(void 0)}),i}var Yd=B.S;B.S=function(e,t){Em=St(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Nb(e,t),Yd!==null&&Yd(e,t)};var Ml=T(null);function Xs(){var e=Ml.current;return e!==null?e:Ye.pooledCache}function Mr(e,t){t===null?j(Ml,Ml.current):j(Ml,t.pool)}function Vd(){var e=Xs();return e===null?null:{parent:lt._currentValue,pool:e}}var pa=Error(u(460)),Zs=Error(u(474)),Or=Error(u(542)),Dr={then:function(){}};function Qd(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Kd(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(Cn,Cn),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Xd(e),e;default:if(typeof t.status=="string")t.then(Cn,Cn);else{if(e=Ye,e!==null&&100<e.shellSuspendCounter)throw Error(u(482));e=t,e.status="pending",e.then(function(i){if(t.status==="pending"){var s=t;s.status="fulfilled",s.value=i}},function(i){if(t.status==="pending"){var s=t;s.status="rejected",s.reason=i}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Xd(e),e}throw Dl=t,pa}}function Ol(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Dl=l,pa):l}}var Dl=null;function Gd(){if(Dl===null)throw Error(u(459));var e=Dl;return Dl=null,e}function Xd(e){if(e===pa||e===Or)throw Error(u(483))}var ga=null,di=0;function Lr(e){var t=di;return di+=1,ga===null&&(ga=[]),Kd(ga,e,t)}function hi(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Br(e,t){throw t.$$typeof===w?Error(u(525)):(e=Object.prototype.toString.call(t),Error(u(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Zd(e){function t(_,A){if(e){var D=_.deletions;D===null?(_.deletions=[A],_.flags|=16):D.push(A)}}function l(_,A){if(!e)return null;for(;A!==null;)t(_,A),A=A.sibling;return null}function i(_){for(var A=new Map;_!==null;)_.key!==null?A.set(_.key,_):A.set(_.index,_),_=_.sibling;return A}function s(_,A){return _=zn(_,A),_.index=0,_.sibling=null,_}function f(_,A,D){return _.index=D,e?(D=_.alternate,D!==null?(D=D.index,D<A?(_.flags|=67108866,A):D):(_.flags|=67108866,A)):(_.flags|=1048576,A)}function y(_){return e&&_.alternate===null&&(_.flags|=67108866),_}function v(_,A,D,K){return A===null||A.tag!==6?(A=Ds(D,_.mode,K),A.return=_,A):(A=s(A,D),A.return=_,A)}function N(_,A,D,K){var oe=D.type;return oe===M?V(_,A,D.props.children,K,D.key):A!==null&&(A.elementType===oe||typeof oe=="object"&&oe!==null&&oe.$$typeof===ue&&Ol(oe)===A.type)?(A=s(A,D.props),hi(A,D),A.return=_,A):(A=zr(D.type,D.key,D.props,null,_.mode,K),hi(A,D),A.return=_,A)}function L(_,A,D,K){return A===null||A.tag!==4||A.stateNode.containerInfo!==D.containerInfo||A.stateNode.implementation!==D.implementation?(A=Ls(D,_.mode,K),A.return=_,A):(A=s(A,D.children||[]),A.return=_,A)}function V(_,A,D,K,oe){return A===null||A.tag!==7?(A=zl(D,_.mode,K,oe),A.return=_,A):(A=s(A,D),A.return=_,A)}function G(_,A,D){if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return A=Ds(""+A,_.mode,D),A.return=_,A;if(typeof A=="object"&&A!==null){switch(A.$$typeof){case S:return D=zr(A.type,A.key,A.props,null,_.mode,D),hi(D,A),D.return=_,D;case R:return A=Ls(A,_.mode,D),A.return=_,A;case ue:return A=Ol(A),G(_,A,D)}if(F(A)||ee(A))return A=zl(A,_.mode,D,null),A.return=_,A;if(typeof A.then=="function")return G(_,Lr(A),D);if(A.$$typeof===k)return G(_,_r(_,A),D);Br(_,A)}return null}function U(_,A,D,K){var oe=A!==null?A.key:null;if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return oe!==null?null:v(_,A,""+D,K);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case S:return D.key===oe?N(_,A,D,K):null;case R:return D.key===oe?L(_,A,D,K):null;case ue:return D=Ol(D),U(_,A,D,K)}if(F(D)||ee(D))return oe!==null?null:V(_,A,D,K,null);if(typeof D.then=="function")return U(_,A,Lr(D),K);if(D.$$typeof===k)return U(_,A,_r(_,D),K);Br(_,D)}return null}function H(_,A,D,K,oe){if(typeof K=="string"&&K!==""||typeof K=="number"||typeof K=="bigint")return _=_.get(D)||null,v(A,_,""+K,oe);if(typeof K=="object"&&K!==null){switch(K.$$typeof){case S:return _=_.get(K.key===null?D:K.key)||null,N(A,_,K,oe);case R:return _=_.get(K.key===null?D:K.key)||null,L(A,_,K,oe);case ue:return K=Ol(K),H(_,A,D,K,oe)}if(F(K)||ee(K))return _=_.get(D)||null,V(A,_,K,oe,null);if(typeof K.then=="function")return H(_,A,D,Lr(K),oe);if(K.$$typeof===k)return H(_,A,D,_r(A,K),oe);Br(A,K)}return null}function ae(_,A,D,K){for(var oe=null,ze=null,re=A,be=A=0,Ce=null;re!==null&&be<D.length;be++){re.index>be?(Ce=re,re=null):Ce=re.sibling;var ke=U(_,re,D[be],K);if(ke===null){re===null&&(re=Ce);break}e&&re&&ke.alternate===null&&t(_,re),A=f(ke,A,be),ze===null?oe=ke:ze.sibling=ke,ze=ke,re=Ce}if(be===D.length)return l(_,re),Ae&&kn(_,be),oe;if(re===null){for(;be<D.length;be++)re=G(_,D[be],K),re!==null&&(A=f(re,A,be),ze===null?oe=re:ze.sibling=re,ze=re);return Ae&&kn(_,be),oe}for(re=i(re);be<D.length;be++)Ce=H(re,_,be,D[be],K),Ce!==null&&(e&&Ce.alternate!==null&&re.delete(Ce.key===null?be:Ce.key),A=f(Ce,A,be),ze===null?oe=Ce:ze.sibling=Ce,ze=Ce);return e&&re.forEach(function(yl){return t(_,yl)}),Ae&&kn(_,be),oe}function de(_,A,D,K){if(D==null)throw Error(u(151));for(var oe=null,ze=null,re=A,be=A=0,Ce=null,ke=D.next();re!==null&&!ke.done;be++,ke=D.next()){re.index>be?(Ce=re,re=null):Ce=re.sibling;var yl=U(_,re,ke.value,K);if(yl===null){re===null&&(re=Ce);break}e&&re&&yl.alternate===null&&t(_,re),A=f(yl,A,be),ze===null?oe=yl:ze.sibling=yl,ze=yl,re=Ce}if(ke.done)return l(_,re),Ae&&kn(_,be),oe;if(re===null){for(;!ke.done;be++,ke=D.next())ke=G(_,ke.value,K),ke!==null&&(A=f(ke,A,be),ze===null?oe=ke:ze.sibling=ke,ze=ke);return Ae&&kn(_,be),oe}for(re=i(re);!ke.done;be++,ke=D.next())ke=H(re,_,be,ke.value,K),ke!==null&&(e&&ke.alternate!==null&&re.delete(ke.key===null?be:ke.key),A=f(ke,A,be),ze===null?oe=ke:ze.sibling=ke,ze=ke);return e&&re.forEach(function(Bv){return t(_,Bv)}),Ae&&kn(_,be),oe}function He(_,A,D,K){if(typeof D=="object"&&D!==null&&D.type===M&&D.key===null&&(D=D.props.children),typeof D=="object"&&D!==null){switch(D.$$typeof){case S:e:{for(var oe=D.key;A!==null;){if(A.key===oe){if(oe=D.type,oe===M){if(A.tag===7){l(_,A.sibling),K=s(A,D.props.children),K.return=_,_=K;break e}}else if(A.elementType===oe||typeof oe=="object"&&oe!==null&&oe.$$typeof===ue&&Ol(oe)===A.type){l(_,A.sibling),K=s(A,D.props),hi(K,D),K.return=_,_=K;break e}l(_,A);break}else t(_,A);A=A.sibling}D.type===M?(K=zl(D.props.children,_.mode,K,D.key),K.return=_,_=K):(K=zr(D.type,D.key,D.props,null,_.mode,K),hi(K,D),K.return=_,_=K)}return y(_);case R:e:{for(oe=D.key;A!==null;){if(A.key===oe)if(A.tag===4&&A.stateNode.containerInfo===D.containerInfo&&A.stateNode.implementation===D.implementation){l(_,A.sibling),K=s(A,D.children||[]),K.return=_,_=K;break e}else{l(_,A);break}else t(_,A);A=A.sibling}K=Ls(D,_.mode,K),K.return=_,_=K}return y(_);case ue:return D=Ol(D),He(_,A,D,K)}if(F(D))return ae(_,A,D,K);if(ee(D)){if(oe=ee(D),typeof oe!="function")throw Error(u(150));return D=oe.call(D),de(_,A,D,K)}if(typeof D.then=="function")return He(_,A,Lr(D),K);if(D.$$typeof===k)return He(_,A,_r(_,D),K);Br(_,D)}return typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint"?(D=""+D,A!==null&&A.tag===6?(l(_,A.sibling),K=s(A,D),K.return=_,_=K):(l(_,A),K=Ds(D,_.mode,K),K.return=_,_=K),y(_)):l(_,A)}return function(_,A,D,K){try{di=0;var oe=He(_,A,D,K);return ga=null,oe}catch(re){if(re===pa||re===Or)throw re;var ze=Ut(29,re,null,_.mode);return ze.lanes=K,ze.return=_,ze}finally{}}}var Ll=Zd(!0),$d=Zd(!1),el=!1;function $s(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Fs(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function tl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function nl(e,t,l){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(Re&2)!==0){var s=i.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),i.pending=t,t=Ar(e),Rd(e,null,l),t}return Cr(e,i,t,l),Ar(e)}function mi(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,l|=i,t.lanes=l,Hf(e,l)}}function Js(e,t){var l=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,l===i)){var s=null,f=null;if(l=l.firstBaseUpdate,l!==null){do{var y={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};f===null?s=f=y:f=f.next=y,l=l.next}while(l!==null);f===null?s=f=t:f=f.next=t}else s=f=t;l={baseState:i.baseState,firstBaseUpdate:s,lastBaseUpdate:f,shared:i.shared,callbacks:i.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var Is=!1;function pi(){if(Is){var e=ma;if(e!==null)throw e}}function gi(e,t,l,i){Is=!1;var s=e.updateQueue;el=!1;var f=s.firstBaseUpdate,y=s.lastBaseUpdate,v=s.shared.pending;if(v!==null){s.shared.pending=null;var N=v,L=N.next;N.next=null,y===null?f=L:y.next=L,y=N;var V=e.alternate;V!==null&&(V=V.updateQueue,v=V.lastBaseUpdate,v!==y&&(v===null?V.firstBaseUpdate=L:v.next=L,V.lastBaseUpdate=N))}if(f!==null){var G=s.baseState;y=0,V=L=N=null,v=f;do{var U=v.lane&-536870913,H=U!==v.lane;if(H?(Te&U)===U:(i&U)===U){U!==0&&U===ha&&(Is=!0),V!==null&&(V=V.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});e:{var ae=e,de=v;U=t;var He=l;switch(de.tag){case 1:if(ae=de.payload,typeof ae=="function"){G=ae.call(He,G,U);break e}G=ae;break e;case 3:ae.flags=ae.flags&-65537|128;case 0:if(ae=de.payload,U=typeof ae=="function"?ae.call(He,G,U):ae,U==null)break e;G=b({},G,U);break e;case 2:el=!0}}U=v.callback,U!==null&&(e.flags|=64,H&&(e.flags|=8192),H=s.callbacks,H===null?s.callbacks=[U]:H.push(U))}else H={lane:U,tag:v.tag,payload:v.payload,callback:v.callback,next:null},V===null?(L=V=H,N=G):V=V.next=H,y|=U;if(v=v.next,v===null){if(v=s.shared.pending,v===null)break;H=v,v=H.next,H.next=null,s.lastBaseUpdate=H,s.shared.pending=null}}while(!0);V===null&&(N=G),s.baseState=N,s.firstBaseUpdate=L,s.lastBaseUpdate=V,f===null&&(s.shared.lanes=0),ul|=y,e.lanes=y,e.memoizedState=G}}function Fd(e,t){if(typeof e!="function")throw Error(u(191,e));e.call(t)}function Jd(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Fd(l[e],t)}var ya=T(null),Ur=T(0);function Id(e,t){e=Yn,j(Ur,e),j(ya,t),Yn=e|t.baseLanes}function Ps(){j(Ur,Yn),j(ya,ya.current)}function Ws(){Yn=Ur.current,Y(ya),Y(Ur)}var Ht=T(null),ln=null;function ll(e){var t=e.alternate;j(tt,tt.current&1),j(Ht,e),ln===null&&(t===null||ya.current!==null||t.memoizedState!==null)&&(ln=e)}function eo(e){j(tt,tt.current),j(Ht,e),ln===null&&(ln=e)}function Pd(e){e.tag===22?(j(tt,tt.current),j(Ht,e),ln===null&&(ln=e)):al()}function al(){j(tt,tt.current),j(Ht,Ht.current)}function qt(e){Y(Ht),ln===e&&(ln=null),Y(tt)}var tt=T(0);function Hr(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||uc(l)||sc(l)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Mn=0,xe=null,Be=null,at=null,qr=!1,xa=!1,Bl=!1,Yr=0,yi=0,ba=null,Cb=0;function Pe(){throw Error(u(321))}function to(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!Bt(e[l],t[l]))return!1;return!0}function no(e,t,l,i,s,f){return Mn=f,xe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,B.H=e===null||e.memoizedState===null?Dh:xo,Bl=!1,f=l(i,s),Bl=!1,xa&&(f=eh(t,l,i,s)),Wd(e),f}function Wd(e){B.H=vi;var t=Be!==null&&Be.next!==null;if(Mn=0,at=Be=xe=null,qr=!1,yi=0,ba=null,t)throw Error(u(300));e===null||it||(e=e.dependencies,e!==null&&Rr(e)&&(it=!0))}function eh(e,t,l,i){xe=e;var s=0;do{if(xa&&(ba=null),yi=0,xa=!1,25<=s)throw Error(u(301));if(s+=1,at=Be=null,e.updateQueue!=null){var f=e.updateQueue;f.lastEffect=null,f.events=null,f.stores=null,f.memoCache!=null&&(f.memoCache.index=0)}B.H=Lh,f=t(l,i)}while(xa);return f}function Ab(){var e=B.H,t=e.useState()[0];return t=typeof t.then=="function"?xi(t):t,e=e.useState()[0],(Be!==null?Be.memoizedState:null)!==e&&(xe.flags|=1024),t}function lo(){var e=Yr!==0;return Yr=0,e}function ao(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function io(e){if(qr){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}qr=!1}Mn=0,at=Be=xe=null,xa=!1,yi=Yr=0,ba=null}function jt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return at===null?xe.memoizedState=at=e:at=at.next=e,at}function nt(){if(Be===null){var e=xe.alternate;e=e!==null?e.memoizedState:null}else e=Be.next;var t=at===null?xe.memoizedState:at.next;if(t!==null)at=t,Be=e;else{if(e===null)throw xe.alternate===null?Error(u(467)):Error(u(310));Be=e,e={memoizedState:Be.memoizedState,baseState:Be.baseState,baseQueue:Be.baseQueue,queue:Be.queue,next:null},at===null?xe.memoizedState=at=e:at=at.next=e}return at}function Vr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function xi(e){var t=yi;return yi+=1,ba===null&&(ba=[]),e=Kd(ba,e,t),t=xe,(at===null?t.memoizedState:at.next)===null&&(t=t.alternate,B.H=t===null||t.memoizedState===null?Dh:xo),e}function Qr(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return xi(e);if(e.$$typeof===k)return pt(e)}throw Error(u(438,String(e)))}function ro(e){var t=null,l=xe.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var i=xe.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(t={data:i.data.map(function(s){return s.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=Vr(),xe.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),i=0;i<e;i++)l[i]=ge;return t.index++,l}function On(e,t){return typeof t=="function"?t(e):t}function Kr(e){var t=nt();return uo(t,Be,e)}function uo(e,t,l){var i=e.queue;if(i===null)throw Error(u(311));i.lastRenderedReducer=l;var s=e.baseQueue,f=i.pending;if(f!==null){if(s!==null){var y=s.next;s.next=f.next,f.next=y}t.baseQueue=s=f,i.pending=null}if(f=e.baseState,s===null)e.memoizedState=f;else{t=s.next;var v=y=null,N=null,L=t,V=!1;do{var G=L.lane&-536870913;if(G!==L.lane?(Te&G)===G:(Mn&G)===G){var U=L.revertLane;if(U===0)N!==null&&(N=N.next={lane:0,revertLane:0,gesture:null,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null}),G===ha&&(V=!0);else if((Mn&U)===U){L=L.next,U===ha&&(V=!0);continue}else G={lane:0,revertLane:L.revertLane,gesture:null,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},N===null?(v=N=G,y=f):N=N.next=G,xe.lanes|=U,ul|=U;G=L.action,Bl&&l(f,G),f=L.hasEagerState?L.eagerState:l(f,G)}else U={lane:G,revertLane:L.revertLane,gesture:L.gesture,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},N===null?(v=N=U,y=f):N=N.next=U,xe.lanes|=G,ul|=G;L=L.next}while(L!==null&&L!==t);if(N===null?y=f:N.next=v,!Bt(f,e.memoizedState)&&(it=!0,V&&(l=ma,l!==null)))throw l;e.memoizedState=f,e.baseState=y,e.baseQueue=N,i.lastRenderedState=f}return s===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function so(e){var t=nt(),l=t.queue;if(l===null)throw Error(u(311));l.lastRenderedReducer=e;var i=l.dispatch,s=l.pending,f=t.memoizedState;if(s!==null){l.pending=null;var y=s=s.next;do f=e(f,y.action),y=y.next;while(y!==s);Bt(f,t.memoizedState)||(it=!0),t.memoizedState=f,t.baseQueue===null&&(t.baseState=f),l.lastRenderedState=f}return[f,i]}function th(e,t,l){var i=xe,s=nt(),f=Ae;if(f){if(l===void 0)throw Error(u(407));l=l()}else l=t();var y=!Bt((Be||s).memoizedState,l);if(y&&(s.memoizedState=l,it=!0),s=s.queue,fo(ah.bind(null,i,s,e),[e]),s.getSnapshot!==t||y||at!==null&&at.memoizedState.tag&1){if(i.flags|=2048,va(9,{destroy:void 0},lh.bind(null,i,s,l,t),null),Ye===null)throw Error(u(349));f||(Mn&127)!==0||nh(i,t,l)}return l}function nh(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=xe.updateQueue,t===null?(t=Vr(),xe.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function lh(e,t,l,i){t.value=l,t.getSnapshot=i,ih(t)&&rh(e)}function ah(e,t,l){return l(function(){ih(t)&&rh(e)})}function ih(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!Bt(e,l)}catch{return!0}}function rh(e){var t=Al(e,2);t!==null&&_t(t,e,2)}function oo(e){var t=jt();if(typeof e=="function"){var l=e;if(e=l(),Bl){Nt(!0);try{l()}finally{Nt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:On,lastRenderedState:e},t}function uh(e,t,l,i){return e.baseState=l,uo(e,Be,typeof i=="function"?i:On)}function zb(e,t,l,i,s){if(Zr(e))throw Error(u(485));if(e=t.action,e!==null){var f={payload:s,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(y){f.listeners.push(y)}};B.T!==null?l(!0):f.isTransition=!1,i(f),l=t.pending,l===null?(f.next=t.pending=f,sh(t,f)):(f.next=l.next,t.pending=l.next=f)}}function sh(e,t){var l=t.action,i=t.payload,s=e.state;if(t.isTransition){var f=B.T,y={};B.T=y;try{var v=l(s,i),N=B.S;N!==null&&N(y,v),oh(e,t,v)}catch(L){co(e,t,L)}finally{f!==null&&y.types!==null&&(f.types=y.types),B.T=f}}else try{f=l(s,i),oh(e,t,f)}catch(L){co(e,t,L)}}function oh(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(i){ch(e,t,i)},function(i){return co(e,t,i)}):ch(e,t,l)}function ch(e,t,l){t.status="fulfilled",t.value=l,fh(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,sh(e,l)))}function co(e,t,l){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=l,fh(t),t=t.next;while(t!==i)}e.action=null}function fh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function dh(e,t){return t}function hh(e,t){if(Ae){var l=Ye.formState;if(l!==null){e:{var i=xe;if(Ae){if(Ge){t:{for(var s=Ge,f=nn;s.nodeType!==8;){if(!f){s=null;break t}if(s=an(s.nextSibling),s===null){s=null;break t}}f=s.data,s=f==="F!"||f==="F"?s:null}if(s){Ge=an(s.nextSibling),i=s.data==="F!";break e}}Pn(i)}i=!1}i&&(t=l[0])}}return l=jt(),l.memoizedState=l.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:dh,lastRenderedState:t},l.queue=i,l=_h.bind(null,xe,i),i.dispatch=l,i=oo(!1),f=yo.bind(null,xe,!1,i.queue),i=jt(),s={state:t,dispatch:null,action:e,pending:null},i.queue=s,l=zb.bind(null,xe,s,f,l),s.dispatch=l,i.memoizedState=e,[t,l,!1]}function mh(e){var t=nt();return ph(t,Be,e)}function ph(e,t,l){if(t=uo(e,t,dh)[0],e=Kr(On)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=xi(t)}catch(y){throw y===pa?Or:y}else i=t;t=nt();var s=t.queue,f=s.dispatch;return l!==t.memoizedState&&(xe.flags|=2048,va(9,{destroy:void 0},kb.bind(null,s,l),null)),[i,f,e]}function kb(e,t){e.action=t}function gh(e){var t=nt(),l=Be;if(l!==null)return ph(t,l,e);nt(),t=t.memoizedState,l=nt();var i=l.queue.dispatch;return l.memoizedState=e,[t,i,!1]}function va(e,t,l,i){return e={tag:e,create:l,deps:i,inst:t,next:null},t=xe.updateQueue,t===null&&(t=Vr(),xe.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(i=l.next,l.next=e,e.next=i,t.lastEffect=e),e}function yh(){return nt().memoizedState}function Gr(e,t,l,i){var s=jt();xe.flags|=e,s.memoizedState=va(1|t,{destroy:void 0},l,i===void 0?null:i)}function Xr(e,t,l,i){var s=nt();i=i===void 0?null:i;var f=s.memoizedState.inst;Be!==null&&i!==null&&to(i,Be.memoizedState.deps)?s.memoizedState=va(t,f,l,i):(xe.flags|=e,s.memoizedState=va(1|t,f,l,i))}function xh(e,t){Gr(8390656,8,e,t)}function fo(e,t){Xr(2048,8,e,t)}function Rb(e){xe.flags|=4;var t=xe.updateQueue;if(t===null)t=Vr(),xe.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function bh(e){var t=nt().memoizedState;return Rb({ref:t,nextImpl:e}),function(){if((Re&2)!==0)throw Error(u(440));return t.impl.apply(void 0,arguments)}}function vh(e,t){return Xr(4,2,e,t)}function Sh(e,t){return Xr(4,4,e,t)}function wh(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function jh(e,t,l){l=l!=null?l.concat([e]):null,Xr(4,4,wh.bind(null,t,e),l)}function ho(){}function Eh(e,t){var l=nt();t=t===void 0?null:t;var i=l.memoizedState;return t!==null&&to(t,i[1])?i[0]:(l.memoizedState=[e,t],e)}function Nh(e,t){var l=nt();t=t===void 0?null:t;var i=l.memoizedState;if(t!==null&&to(t,i[1]))return i[0];if(i=e(),Bl){Nt(!0);try{e()}finally{Nt(!1)}}return l.memoizedState=[i,t],i}function mo(e,t,l){return l===void 0||(Mn&1073741824)!==0&&(Te&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=Tm(),xe.lanes|=e,ul|=e,l)}function Th(e,t,l,i){return Bt(l,t)?l:ya.current!==null?(e=mo(e,l,i),Bt(e,t)||(it=!0),e):(Mn&42)===0||(Mn&1073741824)!==0&&(Te&261930)===0?(it=!0,e.memoizedState=l):(e=Tm(),xe.lanes|=e,ul|=e,t)}function Ch(e,t,l,i,s){var f=Z.p;Z.p=f!==0&&8>f?f:8;var y=B.T,v={};B.T=v,yo(e,!1,t,l);try{var N=s(),L=B.S;if(L!==null&&L(v,N),N!==null&&typeof N=="object"&&typeof N.then=="function"){var V=Tb(N,i);bi(e,t,V,Qt(e))}else bi(e,t,i,Qt(e))}catch(G){bi(e,t,{then:function(){},status:"rejected",reason:G},Qt())}finally{Z.p=f,y!==null&&v.types!==null&&(y.types=v.types),B.T=y}}function _b(){}function po(e,t,l,i){if(e.tag!==5)throw Error(u(476));var s=Ah(e).queue;Ch(e,s,t,P,l===null?_b:function(){return zh(e),l(i)})}function Ah(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:P,baseState:P,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:On,lastRenderedState:P},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:On,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function zh(e){var t=Ah(e);t.next===null&&(t=e.alternate.memoizedState),bi(e,t.next.queue,{},Qt())}function go(){return pt(Li)}function kh(){return nt().memoizedState}function Rh(){return nt().memoizedState}function Mb(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Qt();e=tl(l);var i=nl(t,e,l);i!==null&&(_t(i,t,l),mi(i,t,l)),t={cache:Ks()},e.payload=t;return}t=t.return}}function Ob(e,t,l){var i=Qt();l={lane:i,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Zr(e)?Mh(t,l):(l=Ms(e,t,l,i),l!==null&&(_t(l,e,i),Oh(l,t,i)))}function _h(e,t,l){var i=Qt();bi(e,t,l,i)}function bi(e,t,l,i){var s={lane:i,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Zr(e))Mh(t,s);else{var f=e.alternate;if(e.lanes===0&&(f===null||f.lanes===0)&&(f=t.lastRenderedReducer,f!==null))try{var y=t.lastRenderedState,v=f(y,l);if(s.hasEagerState=!0,s.eagerState=v,Bt(v,y))return Cr(e,t,s,0),Ye===null&&Tr(),!1}catch{}finally{}if(l=Ms(e,t,s,i),l!==null)return _t(l,e,i),Oh(l,t,i),!0}return!1}function yo(e,t,l,i){if(i={lane:2,revertLane:Fo(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},Zr(e)){if(t)throw Error(u(479))}else t=Ms(e,l,i,2),t!==null&&_t(t,e,2)}function Zr(e){var t=e.alternate;return e===xe||t!==null&&t===xe}function Mh(e,t){xa=qr=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Oh(e,t,l){if((l&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,l|=i,t.lanes=l,Hf(e,l)}}var vi={readContext:pt,use:Qr,useCallback:Pe,useContext:Pe,useEffect:Pe,useImperativeHandle:Pe,useLayoutEffect:Pe,useInsertionEffect:Pe,useMemo:Pe,useReducer:Pe,useRef:Pe,useState:Pe,useDebugValue:Pe,useDeferredValue:Pe,useTransition:Pe,useSyncExternalStore:Pe,useId:Pe,useHostTransitionStatus:Pe,useFormState:Pe,useActionState:Pe,useOptimistic:Pe,useMemoCache:Pe,useCacheRefresh:Pe};vi.useEffectEvent=Pe;var Dh={readContext:pt,use:Qr,useCallback:function(e,t){return jt().memoizedState=[e,t===void 0?null:t],e},useContext:pt,useEffect:xh,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,Gr(4194308,4,wh.bind(null,t,e),l)},useLayoutEffect:function(e,t){return Gr(4194308,4,e,t)},useInsertionEffect:function(e,t){Gr(4,2,e,t)},useMemo:function(e,t){var l=jt();t=t===void 0?null:t;var i=e();if(Bl){Nt(!0);try{e()}finally{Nt(!1)}}return l.memoizedState=[i,t],i},useReducer:function(e,t,l){var i=jt();if(l!==void 0){var s=l(t);if(Bl){Nt(!0);try{l(t)}finally{Nt(!1)}}}else s=t;return i.memoizedState=i.baseState=s,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:s},i.queue=e,e=e.dispatch=Ob.bind(null,xe,e),[i.memoizedState,e]},useRef:function(e){var t=jt();return e={current:e},t.memoizedState=e},useState:function(e){e=oo(e);var t=e.queue,l=_h.bind(null,xe,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:ho,useDeferredValue:function(e,t){var l=jt();return mo(l,e,t)},useTransition:function(){var e=oo(!1);return e=Ch.bind(null,xe,e.queue,!0,!1),jt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var i=xe,s=jt();if(Ae){if(l===void 0)throw Error(u(407));l=l()}else{if(l=t(),Ye===null)throw Error(u(349));(Te&127)!==0||nh(i,t,l)}s.memoizedState=l;var f={value:l,getSnapshot:t};return s.queue=f,xh(ah.bind(null,i,f,e),[e]),i.flags|=2048,va(9,{destroy:void 0},lh.bind(null,i,f,l,t),null),l},useId:function(){var e=jt(),t=Ye.identifierPrefix;if(Ae){var l=yn,i=gn;l=(i&~(1<<32-qe(i)-1)).toString(32)+l,t="_"+t+"R_"+l,l=Yr++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=Cb++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:go,useFormState:hh,useActionState:hh,useOptimistic:function(e){var t=jt();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=yo.bind(null,xe,!0,l),l.dispatch=t,[e,t]},useMemoCache:ro,useCacheRefresh:function(){return jt().memoizedState=Mb.bind(null,xe)},useEffectEvent:function(e){var t=jt(),l={impl:e};return t.memoizedState=l,function(){if((Re&2)!==0)throw Error(u(440));return l.impl.apply(void 0,arguments)}}},xo={readContext:pt,use:Qr,useCallback:Eh,useContext:pt,useEffect:fo,useImperativeHandle:jh,useInsertionEffect:vh,useLayoutEffect:Sh,useMemo:Nh,useReducer:Kr,useRef:yh,useState:function(){return Kr(On)},useDebugValue:ho,useDeferredValue:function(e,t){var l=nt();return Th(l,Be.memoizedState,e,t)},useTransition:function(){var e=Kr(On)[0],t=nt().memoizedState;return[typeof e=="boolean"?e:xi(e),t]},useSyncExternalStore:th,useId:kh,useHostTransitionStatus:go,useFormState:mh,useActionState:mh,useOptimistic:function(e,t){var l=nt();return uh(l,Be,e,t)},useMemoCache:ro,useCacheRefresh:Rh};xo.useEffectEvent=bh;var Lh={readContext:pt,use:Qr,useCallback:Eh,useContext:pt,useEffect:fo,useImperativeHandle:jh,useInsertionEffect:vh,useLayoutEffect:Sh,useMemo:Nh,useReducer:so,useRef:yh,useState:function(){return so(On)},useDebugValue:ho,useDeferredValue:function(e,t){var l=nt();return Be===null?mo(l,e,t):Th(l,Be.memoizedState,e,t)},useTransition:function(){var e=so(On)[0],t=nt().memoizedState;return[typeof e=="boolean"?e:xi(e),t]},useSyncExternalStore:th,useId:kh,useHostTransitionStatus:go,useFormState:gh,useActionState:gh,useOptimistic:function(e,t){var l=nt();return Be!==null?uh(l,Be,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:ro,useCacheRefresh:Rh};Lh.useEffectEvent=bh;function bo(e,t,l,i){t=e.memoizedState,l=l(i,t),l=l==null?t:b({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var vo={enqueueSetState:function(e,t,l){e=e._reactInternals;var i=Qt(),s=tl(i);s.payload=t,l!=null&&(s.callback=l),t=nl(e,s,i),t!==null&&(_t(t,e,i),mi(t,e,i))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var i=Qt(),s=tl(i);s.tag=1,s.payload=t,l!=null&&(s.callback=l),t=nl(e,s,i),t!==null&&(_t(t,e,i),mi(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=Qt(),i=tl(l);i.tag=2,t!=null&&(i.callback=t),t=nl(e,i,l),t!==null&&(_t(t,e,l),mi(t,e,l))}};function Bh(e,t,l,i,s,f,y){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,f,y):t.prototype&&t.prototype.isPureReactComponent?!ri(l,i)||!ri(s,f):!0}function Uh(e,t,l,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,i),t.state!==e&&vo.enqueueReplaceState(t,t.state,null)}function Ul(e,t){var l=t;if("ref"in t){l={};for(var i in t)i!=="ref"&&(l[i]=t[i])}if(e=e.defaultProps){l===t&&(l=b({},l));for(var s in e)l[s]===void 0&&(l[s]=e[s])}return l}function Hh(e){Nr(e)}function qh(e){console.error(e)}function Yh(e){Nr(e)}function $r(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function Vh(e,t,l){try{var i=e.onCaughtError;i(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(s){setTimeout(function(){throw s})}}function So(e,t,l){return l=tl(l),l.tag=3,l.payload={element:null},l.callback=function(){$r(e,t)},l}function Qh(e){return e=tl(e),e.tag=3,e}function Kh(e,t,l,i){var s=l.type.getDerivedStateFromError;if(typeof s=="function"){var f=i.value;e.payload=function(){return s(f)},e.callback=function(){Vh(t,l,i)}}var y=l.stateNode;y!==null&&typeof y.componentDidCatch=="function"&&(e.callback=function(){Vh(t,l,i),typeof s!="function"&&(sl===null?sl=new Set([this]):sl.add(this));var v=i.stack;this.componentDidCatch(i.value,{componentStack:v!==null?v:""})})}function Db(e,t,l,i,s){if(l.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=l.alternate,t!==null&&da(t,l,s,!0),l=Ht.current,l!==null){switch(l.tag){case 31:case 13:return ln===null?ru():l.alternate===null&&We===0&&(We=3),l.flags&=-257,l.flags|=65536,l.lanes=s,i===Dr?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([i]):t.add(i),Xo(e,i,s)),!1;case 22:return l.flags|=65536,i===Dr?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([i]):l.add(i)),Xo(e,i,s)),!1}throw Error(u(435,l.tag))}return Xo(e,i,s),ru(),!1}if(Ae)return t=Ht.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=s,i!==Hs&&(e=Error(u(422),{cause:i}),oi(Wt(e,l)))):(i!==Hs&&(t=Error(u(423),{cause:i}),oi(Wt(t,l))),e=e.current.alternate,e.flags|=65536,s&=-s,e.lanes|=s,i=Wt(i,l),s=So(e.stateNode,i,s),Js(e,s),We!==4&&(We=2)),!1;var f=Error(u(520),{cause:i});if(f=Wt(f,l),Ai===null?Ai=[f]:Ai.push(f),We!==4&&(We=2),t===null)return!0;i=Wt(i,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=s&-s,l.lanes|=e,e=So(l.stateNode,i,e),Js(l,e),!1;case 1:if(t=l.type,f=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||f!==null&&typeof f.componentDidCatch=="function"&&(sl===null||!sl.has(f))))return l.flags|=65536,s&=-s,l.lanes|=s,s=Qh(s),Kh(s,e,l,i),Js(l,s),!1}l=l.return}while(l!==null);return!1}var wo=Error(u(461)),it=!1;function gt(e,t,l,i){t.child=e===null?$d(t,null,l,i):Ll(t,e.child,l,i)}function Gh(e,t,l,i,s){l=l.render;var f=t.ref;if("ref"in i){var y={};for(var v in i)v!=="ref"&&(y[v]=i[v])}else y=i;return _l(t),i=no(e,t,l,y,f,s),v=lo(),e!==null&&!it?(ao(e,t,s),Dn(e,t,s)):(Ae&&v&&Bs(t),t.flags|=1,gt(e,t,i,s),t.child)}function Xh(e,t,l,i,s){if(e===null){var f=l.type;return typeof f=="function"&&!Os(f)&&f.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=f,Zh(e,t,f,i,s)):(e=zr(l.type,null,i,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(f=e.child,!ko(e,s)){var y=f.memoizedProps;if(l=l.compare,l=l!==null?l:ri,l(y,i)&&e.ref===t.ref)return Dn(e,t,s)}return t.flags|=1,e=zn(f,i),e.ref=t.ref,e.return=t,t.child=e}function Zh(e,t,l,i,s){if(e!==null){var f=e.memoizedProps;if(ri(f,i)&&e.ref===t.ref)if(it=!1,t.pendingProps=i=f,ko(e,s))(e.flags&131072)!==0&&(it=!0);else return t.lanes=e.lanes,Dn(e,t,s)}return jo(e,t,l,i,s)}function $h(e,t,l,i){var s=i.children,f=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((t.flags&128)!==0){if(f=f!==null?f.baseLanes|l:l,e!==null){for(i=t.child=e.child,s=0;i!==null;)s=s|i.lanes|i.childLanes,i=i.sibling;i=s&~f}else i=0,t.child=null;return Fh(e,t,f,l,i)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Mr(t,f!==null?f.cachePool:null),f!==null?Id(t,f):Ps(),Pd(t);else return i=t.lanes=536870912,Fh(e,t,f!==null?f.baseLanes|l:l,l,i)}else f!==null?(Mr(t,f.cachePool),Id(t,f),al(),t.memoizedState=null):(e!==null&&Mr(t,null),Ps(),al());return gt(e,t,s,l),t.child}function Si(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Fh(e,t,l,i,s){var f=Xs();return f=f===null?null:{parent:lt._currentValue,pool:f},t.memoizedState={baseLanes:l,cachePool:f},e!==null&&Mr(t,null),Ps(),Pd(t),e!==null&&da(e,t,i,!0),t.childLanes=s,null}function Fr(e,t){return t=Ir({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Jh(e,t,l){return Ll(t,e.child,null,l),e=Fr(t,t.pendingProps),e.flags|=2,qt(t),t.memoizedState=null,e}function Lb(e,t,l){var i=t.pendingProps,s=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ae){if(i.mode==="hidden")return e=Fr(t,i),t.lanes=536870912,Si(null,e);if(eo(t),(e=Ge)?(e=sp(e,nn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Jn!==null?{id:gn,overflow:yn}:null,retryLane:536870912,hydrationErrors:null},l=Md(e),l.return=t,t.child=l,mt=t,Ge=null)):e=null,e===null)throw Pn(t);return t.lanes=536870912,null}return Fr(t,i)}var f=e.memoizedState;if(f!==null){var y=f.dehydrated;if(eo(t),s)if(t.flags&256)t.flags&=-257,t=Jh(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(u(558));else if(it||da(e,t,l,!1),s=(l&e.childLanes)!==0,it||s){if(i=Ye,i!==null&&(y=qf(i,l),y!==0&&y!==f.retryLane))throw f.retryLane=y,Al(e,y),_t(i,e,y),wo;ru(),t=Jh(e,t,l)}else e=f.treeContext,Ge=an(y.nextSibling),mt=t,Ae=!0,In=null,nn=!1,e!==null&&Ld(t,e),t=Fr(t,i),t.flags|=4096;return t}return e=zn(e.child,{mode:i.mode,children:i.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Jr(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(u(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function jo(e,t,l,i,s){return _l(t),l=no(e,t,l,i,void 0,s),i=lo(),e!==null&&!it?(ao(e,t,s),Dn(e,t,s)):(Ae&&i&&Bs(t),t.flags|=1,gt(e,t,l,s),t.child)}function Ih(e,t,l,i,s,f){return _l(t),t.updateQueue=null,l=eh(t,i,l,s),Wd(e),i=lo(),e!==null&&!it?(ao(e,t,f),Dn(e,t,f)):(Ae&&i&&Bs(t),t.flags|=1,gt(e,t,l,f),t.child)}function Ph(e,t,l,i,s){if(_l(t),t.stateNode===null){var f=sa,y=l.contextType;typeof y=="object"&&y!==null&&(f=pt(y)),f=new l(i,f),t.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,f.updater=vo,t.stateNode=f,f._reactInternals=t,f=t.stateNode,f.props=i,f.state=t.memoizedState,f.refs={},$s(t),y=l.contextType,f.context=typeof y=="object"&&y!==null?pt(y):sa,f.state=t.memoizedState,y=l.getDerivedStateFromProps,typeof y=="function"&&(bo(t,l,y,i),f.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(y=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),y!==f.state&&vo.enqueueReplaceState(f,f.state,null),gi(t,i,f,s),pi(),f.state=t.memoizedState),typeof f.componentDidMount=="function"&&(t.flags|=4194308),i=!0}else if(e===null){f=t.stateNode;var v=t.memoizedProps,N=Ul(l,v);f.props=N;var L=f.context,V=l.contextType;y=sa,typeof V=="object"&&V!==null&&(y=pt(V));var G=l.getDerivedStateFromProps;V=typeof G=="function"||typeof f.getSnapshotBeforeUpdate=="function",v=t.pendingProps!==v,V||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(v||L!==y)&&Uh(t,f,i,y),el=!1;var U=t.memoizedState;f.state=U,gi(t,i,f,s),pi(),L=t.memoizedState,v||U!==L||el?(typeof G=="function"&&(bo(t,l,G,i),L=t.memoizedState),(N=el||Bh(t,l,N,i,U,L,y))?(V||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount()),typeof f.componentDidMount=="function"&&(t.flags|=4194308)):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=L),f.props=i,f.state=L,f.context=y,i=N):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{f=t.stateNode,Fs(e,t),y=t.memoizedProps,V=Ul(l,y),f.props=V,G=t.pendingProps,U=f.context,L=l.contextType,N=sa,typeof L=="object"&&L!==null&&(N=pt(L)),v=l.getDerivedStateFromProps,(L=typeof v=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(y!==G||U!==N)&&Uh(t,f,i,N),el=!1,U=t.memoizedState,f.state=U,gi(t,i,f,s),pi();var H=t.memoizedState;y!==G||U!==H||el||e!==null&&e.dependencies!==null&&Rr(e.dependencies)?(typeof v=="function"&&(bo(t,l,v,i),H=t.memoizedState),(V=el||Bh(t,l,V,i,U,H,N)||e!==null&&e.dependencies!==null&&Rr(e.dependencies))?(L||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(i,H,N),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(i,H,N)),typeof f.componentDidUpdate=="function"&&(t.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof f.componentDidUpdate!="function"||y===e.memoizedProps&&U===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&U===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=H),f.props=i,f.state=H,f.context=N,i=V):(typeof f.componentDidUpdate!="function"||y===e.memoizedProps&&U===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&U===e.memoizedState||(t.flags|=1024),i=!1)}return f=i,Jr(e,t),i=(t.flags&128)!==0,f||i?(f=t.stateNode,l=i&&typeof l.getDerivedStateFromError!="function"?null:f.render(),t.flags|=1,e!==null&&i?(t.child=Ll(t,e.child,null,s),t.child=Ll(t,null,l,s)):gt(e,t,l,s),t.memoizedState=f.state,e=t.child):e=Dn(e,t,s),e}function Wh(e,t,l,i){return kl(),t.flags|=256,gt(e,t,l,i),t.child}var Eo={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function No(e){return{baseLanes:e,cachePool:Vd()}}function To(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=Vt),e}function em(e,t,l){var i=t.pendingProps,s=!1,f=(t.flags&128)!==0,y;if((y=f)||(y=e!==null&&e.memoizedState===null?!1:(tt.current&2)!==0),y&&(s=!0,t.flags&=-129),y=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ae){if(s?ll(t):al(),(e=Ge)?(e=sp(e,nn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Jn!==null?{id:gn,overflow:yn}:null,retryLane:536870912,hydrationErrors:null},l=Md(e),l.return=t,t.child=l,mt=t,Ge=null)):e=null,e===null)throw Pn(t);return sc(e)?t.lanes=32:t.lanes=536870912,null}var v=i.children;return i=i.fallback,s?(al(),s=t.mode,v=Ir({mode:"hidden",children:v},s),i=zl(i,s,l,null),v.return=t,i.return=t,v.sibling=i,t.child=v,i=t.child,i.memoizedState=No(l),i.childLanes=To(e,y,l),t.memoizedState=Eo,Si(null,i)):(ll(t),Co(t,v))}var N=e.memoizedState;if(N!==null&&(v=N.dehydrated,v!==null)){if(f)t.flags&256?(ll(t),t.flags&=-257,t=Ao(e,t,l)):t.memoizedState!==null?(al(),t.child=e.child,t.flags|=128,t=null):(al(),v=i.fallback,s=t.mode,i=Ir({mode:"visible",children:i.children},s),v=zl(v,s,l,null),v.flags|=2,i.return=t,v.return=t,i.sibling=v,t.child=i,Ll(t,e.child,null,l),i=t.child,i.memoizedState=No(l),i.childLanes=To(e,y,l),t.memoizedState=Eo,t=Si(null,i));else if(ll(t),sc(v)){if(y=v.nextSibling&&v.nextSibling.dataset,y)var L=y.dgst;y=L,i=Error(u(419)),i.stack="",i.digest=y,oi({value:i,source:null,stack:null}),t=Ao(e,t,l)}else if(it||da(e,t,l,!1),y=(l&e.childLanes)!==0,it||y){if(y=Ye,y!==null&&(i=qf(y,l),i!==0&&i!==N.retryLane))throw N.retryLane=i,Al(e,i),_t(y,e,i),wo;uc(v)||ru(),t=Ao(e,t,l)}else uc(v)?(t.flags|=192,t.child=e.child,t=null):(e=N.treeContext,Ge=an(v.nextSibling),mt=t,Ae=!0,In=null,nn=!1,e!==null&&Ld(t,e),t=Co(t,i.children),t.flags|=4096);return t}return s?(al(),v=i.fallback,s=t.mode,N=e.child,L=N.sibling,i=zn(N,{mode:"hidden",children:i.children}),i.subtreeFlags=N.subtreeFlags&65011712,L!==null?v=zn(L,v):(v=zl(v,s,l,null),v.flags|=2),v.return=t,i.return=t,i.sibling=v,t.child=i,Si(null,i),i=t.child,v=e.child.memoizedState,v===null?v=No(l):(s=v.cachePool,s!==null?(N=lt._currentValue,s=s.parent!==N?{parent:N,pool:N}:s):s=Vd(),v={baseLanes:v.baseLanes|l,cachePool:s}),i.memoizedState=v,i.childLanes=To(e,y,l),t.memoizedState=Eo,Si(e.child,i)):(ll(t),l=e.child,e=l.sibling,l=zn(l,{mode:"visible",children:i.children}),l.return=t,l.sibling=null,e!==null&&(y=t.deletions,y===null?(t.deletions=[e],t.flags|=16):y.push(e)),t.child=l,t.memoizedState=null,l)}function Co(e,t){return t=Ir({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Ir(e,t){return e=Ut(22,e,null,t),e.lanes=0,e}function Ao(e,t,l){return Ll(t,e.child,null,l),e=Co(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function tm(e,t,l){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),Vs(e.return,t,l)}function zo(e,t,l,i,s,f){var y=e.memoizedState;y===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:l,tailMode:s,treeForkCount:f}:(y.isBackwards=t,y.rendering=null,y.renderingStartTime=0,y.last=i,y.tail=l,y.tailMode=s,y.treeForkCount=f)}function nm(e,t,l){var i=t.pendingProps,s=i.revealOrder,f=i.tail;i=i.children;var y=tt.current,v=(y&2)!==0;if(v?(y=y&1|2,t.flags|=128):y&=1,j(tt,y),gt(e,t,i,l),i=Ae?si:0,!v&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&tm(e,l,t);else if(e.tag===19)tm(e,l,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(s){case"forwards":for(l=t.child,s=null;l!==null;)e=l.alternate,e!==null&&Hr(e)===null&&(s=l),l=l.sibling;l=s,l===null?(s=t.child,t.child=null):(s=l.sibling,l.sibling=null),zo(t,!1,s,l,f,i);break;case"backwards":case"unstable_legacy-backwards":for(l=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&Hr(e)===null){t.child=s;break}e=s.sibling,s.sibling=l,l=s,s=e}zo(t,!0,l,null,f,i);break;case"together":zo(t,!1,null,null,void 0,i);break;default:t.memoizedState=null}return t.child}function Dn(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),ul|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(da(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(u(153));if(t.child!==null){for(e=t.child,l=zn(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=zn(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function ko(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Rr(e)))}function Bb(e,t,l){switch(t.tag){case 3:$e(t,t.stateNode.containerInfo),Wn(t,lt,e.memoizedState.cache),kl();break;case 27:case 5:Ft(t);break;case 4:$e(t,t.stateNode.containerInfo);break;case 10:Wn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,eo(t),null;break;case 13:var i=t.memoizedState;if(i!==null)return i.dehydrated!==null?(ll(t),t.flags|=128,null):(l&t.child.childLanes)!==0?em(e,t,l):(ll(t),e=Dn(e,t,l),e!==null?e.sibling:null);ll(t);break;case 19:var s=(e.flags&128)!==0;if(i=(l&t.childLanes)!==0,i||(da(e,t,l,!1),i=(l&t.childLanes)!==0),s){if(i)return nm(e,t,l);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),j(tt,tt.current),i)break;return null;case 22:return t.lanes=0,$h(e,t,l,t.pendingProps);case 24:Wn(t,lt,e.memoizedState.cache)}return Dn(e,t,l)}function lm(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)it=!0;else{if(!ko(e,l)&&(t.flags&128)===0)return it=!1,Bb(e,t,l);it=(e.flags&131072)!==0}else it=!1,Ae&&(t.flags&1048576)!==0&&Dd(t,si,t.index);switch(t.lanes=0,t.tag){case 16:e:{var i=t.pendingProps;if(e=Ol(t.elementType),t.type=e,typeof e=="function")Os(e)?(i=Ul(e,i),t.tag=1,t=Ph(null,t,e,i,l)):(t.tag=0,t=jo(null,t,e,i,l));else{if(e!=null){var s=e.$$typeof;if(s===J){t.tag=11,t=Gh(null,t,e,i,l);break e}else if(s===$){t.tag=14,t=Xh(null,t,e,i,l);break e}}throw t=ie(e)||e,Error(u(306,t,""))}}return t;case 0:return jo(e,t,t.type,t.pendingProps,l);case 1:return i=t.type,s=Ul(i,t.pendingProps),Ph(e,t,i,s,l);case 3:e:{if($e(t,t.stateNode.containerInfo),e===null)throw Error(u(387));i=t.pendingProps;var f=t.memoizedState;s=f.element,Fs(e,t),gi(t,i,null,l);var y=t.memoizedState;if(i=y.cache,Wn(t,lt,i),i!==f.cache&&Qs(t,[lt],l,!0),pi(),i=y.element,f.isDehydrated)if(f={element:i,isDehydrated:!1,cache:y.cache},t.updateQueue.baseState=f,t.memoizedState=f,t.flags&256){t=Wh(e,t,i,l);break e}else if(i!==s){s=Wt(Error(u(424)),t),oi(s),t=Wh(e,t,i,l);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Ge=an(e.firstChild),mt=t,Ae=!0,In=null,nn=!0,l=$d(t,null,i,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(kl(),i===s){t=Dn(e,t,l);break e}gt(e,t,i,l)}t=t.child}return t;case 26:return Jr(e,t),e===null?(l=mp(t.type,null,t.pendingProps,null))?t.memoizedState=l:Ae||(l=t.type,e=t.pendingProps,i=hu(se.current).createElement(l),i[ht]=t,i[Tt]=e,yt(i,l,e),ft(i),t.stateNode=i):t.memoizedState=mp(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ft(t),e===null&&Ae&&(i=t.stateNode=fp(t.type,t.pendingProps,se.current),mt=t,nn=!0,s=Ge,dl(t.type)?(oc=s,Ge=an(i.firstChild)):Ge=s),gt(e,t,t.pendingProps.children,l),Jr(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ae&&((s=i=Ge)&&(i=hv(i,t.type,t.pendingProps,nn),i!==null?(t.stateNode=i,mt=t,Ge=an(i.firstChild),nn=!1,s=!0):s=!1),s||Pn(t)),Ft(t),s=t.type,f=t.pendingProps,y=e!==null?e.memoizedProps:null,i=f.children,ac(s,f)?i=null:y!==null&&ac(s,y)&&(t.flags|=32),t.memoizedState!==null&&(s=no(e,t,Ab,null,null,l),Li._currentValue=s),Jr(e,t),gt(e,t,i,l),t.child;case 6:return e===null&&Ae&&((e=l=Ge)&&(l=mv(l,t.pendingProps,nn),l!==null?(t.stateNode=l,mt=t,Ge=null,e=!0):e=!1),e||Pn(t)),null;case 13:return em(e,t,l);case 4:return $e(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Ll(t,null,i,l):gt(e,t,i,l),t.child;case 11:return Gh(e,t,t.type,t.pendingProps,l);case 7:return gt(e,t,t.pendingProps,l),t.child;case 8:return gt(e,t,t.pendingProps.children,l),t.child;case 12:return gt(e,t,t.pendingProps.children,l),t.child;case 10:return i=t.pendingProps,Wn(t,t.type,i.value),gt(e,t,i.children,l),t.child;case 9:return s=t.type._context,i=t.pendingProps.children,_l(t),s=pt(s),i=i(s),t.flags|=1,gt(e,t,i,l),t.child;case 14:return Xh(e,t,t.type,t.pendingProps,l);case 15:return Zh(e,t,t.type,t.pendingProps,l);case 19:return nm(e,t,l);case 31:return Lb(e,t,l);case 22:return $h(e,t,l,t.pendingProps);case 24:return _l(t),i=pt(lt),e===null?(s=Xs(),s===null&&(s=Ye,f=Ks(),s.pooledCache=f,f.refCount++,f!==null&&(s.pooledCacheLanes|=l),s=f),t.memoizedState={parent:i,cache:s},$s(t),Wn(t,lt,s)):((e.lanes&l)!==0&&(Fs(e,t),gi(t,null,null,l),pi()),s=e.memoizedState,f=t.memoizedState,s.parent!==i?(s={parent:i,cache:i},t.memoizedState=s,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=s),Wn(t,lt,i)):(i=f.cache,Wn(t,lt,i),i!==s.cache&&Qs(t,[lt],l,!0))),gt(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(u(156,t.tag))}function Ln(e){e.flags|=4}function Ro(e,t,l,i,s){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(s&335544128)===s)if(e.stateNode.complete)e.flags|=8192;else if(km())e.flags|=8192;else throw Dl=Dr,Zs}else e.flags&=-16777217}function am(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!bp(t))if(km())e.flags|=8192;else throw Dl=Dr,Zs}function Pr(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Bf():536870912,e.lanes|=t,Ea|=t)}function wi(e,t){if(!Ae)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var i=null;l!==null;)l.alternate!==null&&(i=l),l=l.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function Xe(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,i=0;if(t)for(var s=e.child;s!==null;)l|=s.lanes|s.childLanes,i|=s.subtreeFlags&65011712,i|=s.flags&65011712,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)l|=s.lanes|s.childLanes,i|=s.subtreeFlags,i|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=i,e.childLanes=l,t}function Ub(e,t,l){var i=t.pendingProps;switch(Us(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Xe(t),null;case 1:return Xe(t),null;case 3:return l=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),_n(lt),Le(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(fa(t)?Ln(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,qs())),Xe(t),null;case 26:var s=t.type,f=t.memoizedState;return e===null?(Ln(t),f!==null?(Xe(t),am(t,f)):(Xe(t),Ro(t,s,null,i,l))):f?f!==e.memoizedState?(Ln(t),Xe(t),am(t,f)):(Xe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==i&&Ln(t),Xe(t),Ro(t,s,e,i,l)),null;case 27:if(jn(t),l=se.current,s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&Ln(t);else{if(!i){if(t.stateNode===null)throw Error(u(166));return Xe(t),null}e=ne.current,fa(t)?Bd(t):(e=fp(s,i,l),t.stateNode=e,Ln(t))}return Xe(t),null;case 5:if(jn(t),s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&Ln(t);else{if(!i){if(t.stateNode===null)throw Error(u(166));return Xe(t),null}if(f=ne.current,fa(t))Bd(t);else{var y=hu(se.current);switch(f){case 1:f=y.createElementNS("http://www.w3.org/2000/svg",s);break;case 2:f=y.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;default:switch(s){case"svg":f=y.createElementNS("http://www.w3.org/2000/svg",s);break;case"math":f=y.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;case"script":f=y.createElement("div"),f.innerHTML="<script><\/script>",f=f.removeChild(f.firstChild);break;case"select":f=typeof i.is=="string"?y.createElement("select",{is:i.is}):y.createElement("select"),i.multiple?f.multiple=!0:i.size&&(f.size=i.size);break;default:f=typeof i.is=="string"?y.createElement(s,{is:i.is}):y.createElement(s)}}f[ht]=t,f[Tt]=i;e:for(y=t.child;y!==null;){if(y.tag===5||y.tag===6)f.appendChild(y.stateNode);else if(y.tag!==4&&y.tag!==27&&y.child!==null){y.child.return=y,y=y.child;continue}if(y===t)break e;for(;y.sibling===null;){if(y.return===null||y.return===t)break e;y=y.return}y.sibling.return=y.return,y=y.sibling}t.stateNode=f;e:switch(yt(f,s,i),s){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&Ln(t)}}return Xe(t),Ro(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&Ln(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(u(166));if(e=se.current,fa(t)){if(e=t.stateNode,l=t.memoizedProps,i=null,s=mt,s!==null)switch(s.tag){case 27:case 5:i=s.memoizedProps}e[ht]=t,e=!!(e.nodeValue===l||i!==null&&i.suppressHydrationWarning===!0||ep(e.nodeValue,l)),e||Pn(t,!0)}else e=hu(e).createTextNode(i),e[ht]=t,t.stateNode=e}return Xe(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(i=fa(t),l!==null){if(e===null){if(!i)throw Error(u(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(557));e[ht]=t}else kl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Xe(t),e=!1}else l=qs(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(qt(t),t):(qt(t),null);if((t.flags&128)!==0)throw Error(u(558))}return Xe(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(s=fa(t),i!==null&&i.dehydrated!==null){if(e===null){if(!s)throw Error(u(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(u(317));s[ht]=t}else kl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Xe(t),s=!1}else s=qs(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=s),s=!0;if(!s)return t.flags&256?(qt(t),t):(qt(t),null)}return qt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=i!==null,e=e!==null&&e.memoizedState!==null,l&&(i=t.child,s=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(s=i.alternate.memoizedState.cachePool.pool),f=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(f=i.memoizedState.cachePool.pool),f!==s&&(i.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Pr(t,t.updateQueue),Xe(t),null);case 4:return Le(),e===null&&Wo(t.stateNode.containerInfo),Xe(t),null;case 10:return _n(t.type),Xe(t),null;case 19:if(Y(tt),i=t.memoizedState,i===null)return Xe(t),null;if(s=(t.flags&128)!==0,f=i.rendering,f===null)if(s)wi(i,!1);else{if(We!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(f=Hr(e),f!==null){for(t.flags|=128,wi(i,!1),e=f.updateQueue,t.updateQueue=e,Pr(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)_d(l,e),l=l.sibling;return j(tt,tt.current&1|2),Ae&&kn(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&St()>lu&&(t.flags|=128,s=!0,wi(i,!1),t.lanes=4194304)}else{if(!s)if(e=Hr(f),e!==null){if(t.flags|=128,s=!0,e=e.updateQueue,t.updateQueue=e,Pr(t,e),wi(i,!0),i.tail===null&&i.tailMode==="hidden"&&!f.alternate&&!Ae)return Xe(t),null}else 2*St()-i.renderingStartTime>lu&&l!==536870912&&(t.flags|=128,s=!0,wi(i,!1),t.lanes=4194304);i.isBackwards?(f.sibling=t.child,t.child=f):(e=i.last,e!==null?e.sibling=f:t.child=f,i.last=f)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=St(),e.sibling=null,l=tt.current,j(tt,s?l&1|2:l&1),Ae&&kn(t,i.treeForkCount),e):(Xe(t),null);case 22:case 23:return qt(t),Ws(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?(l&536870912)!==0&&(t.flags&128)===0&&(Xe(t),t.subtreeFlags&6&&(t.flags|=8192)):Xe(t),l=t.updateQueue,l!==null&&Pr(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==l&&(t.flags|=2048),e!==null&&Y(Ml),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),_n(lt),Xe(t),null;case 25:return null;case 30:return null}throw Error(u(156,t.tag))}function Hb(e,t){switch(Us(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return _n(lt),Le(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return jn(t),null;case 31:if(t.memoizedState!==null){if(qt(t),t.alternate===null)throw Error(u(340));kl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(qt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));kl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Y(tt),null;case 4:return Le(),null;case 10:return _n(t.type),null;case 22:case 23:return qt(t),Ws(),e!==null&&Y(Ml),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return _n(lt),null;case 25:return null;default:return null}}function im(e,t){switch(Us(t),t.tag){case 3:_n(lt),Le();break;case 26:case 27:case 5:jn(t);break;case 4:Le();break;case 31:t.memoizedState!==null&&qt(t);break;case 13:qt(t);break;case 19:Y(tt);break;case 10:_n(t.type);break;case 22:case 23:qt(t),Ws(),e!==null&&Y(Ml);break;case 24:_n(lt)}}function ji(e,t){try{var l=t.updateQueue,i=l!==null?l.lastEffect:null;if(i!==null){var s=i.next;l=s;do{if((l.tag&e)===e){i=void 0;var f=l.create,y=l.inst;i=f(),y.destroy=i}l=l.next}while(l!==s)}}catch(v){De(t,t.return,v)}}function il(e,t,l){try{var i=t.updateQueue,s=i!==null?i.lastEffect:null;if(s!==null){var f=s.next;i=f;do{if((i.tag&e)===e){var y=i.inst,v=y.destroy;if(v!==void 0){y.destroy=void 0,s=t;var N=l,L=v;try{L()}catch(V){De(s,N,V)}}}i=i.next}while(i!==f)}}catch(V){De(t,t.return,V)}}function rm(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Jd(t,l)}catch(i){De(e,e.return,i)}}}function um(e,t,l){l.props=Ul(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(i){De(e,t,i)}}function Ei(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:i=e.stateNode;break;default:i=e.stateNode}typeof l=="function"?e.refCleanup=l(i):l.current=i}}catch(s){De(e,t,s)}}function xn(e,t){var l=e.ref,i=e.refCleanup;if(l!==null)if(typeof i=="function")try{i()}catch(s){De(e,t,s)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(s){De(e,t,s)}else l.current=null}function sm(e){var t=e.type,l=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&i.focus();break e;case"img":l.src?i.src=l.src:l.srcSet&&(i.srcset=l.srcSet)}}catch(s){De(e,e.return,s)}}function _o(e,t,l){try{var i=e.stateNode;uv(i,e.type,l,t),i[Tt]=t}catch(s){De(e,e.return,s)}}function om(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&dl(e.type)||e.tag===4}function Mo(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||om(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&dl(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Oo(e,t,l){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=Cn));else if(i!==4&&(i===27&&dl(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Oo(e,t,l),e=e.sibling;e!==null;)Oo(e,t,l),e=e.sibling}function Wr(e,t,l){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(i!==4&&(i===27&&dl(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Wr(e,t,l),e=e.sibling;e!==null;)Wr(e,t,l),e=e.sibling}function cm(e){var t=e.stateNode,l=e.memoizedProps;try{for(var i=e.type,s=t.attributes;s.length;)t.removeAttributeNode(s[0]);yt(t,i,l),t[ht]=e,t[Tt]=l}catch(f){De(e,e.return,f)}}var Bn=!1,rt=!1,Do=!1,fm=typeof WeakSet=="function"?WeakSet:Set,dt=null;function qb(e,t){if(e=e.containerInfo,nc=vu,e=jd(e),Cs(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var i=l.getSelection&&l.getSelection();if(i&&i.rangeCount!==0){l=i.anchorNode;var s=i.anchorOffset,f=i.focusNode;i=i.focusOffset;try{l.nodeType,f.nodeType}catch{l=null;break e}var y=0,v=-1,N=-1,L=0,V=0,G=e,U=null;t:for(;;){for(var H;G!==l||s!==0&&G.nodeType!==3||(v=y+s),G!==f||i!==0&&G.nodeType!==3||(N=y+i),G.nodeType===3&&(y+=G.nodeValue.length),(H=G.firstChild)!==null;)U=G,G=H;for(;;){if(G===e)break t;if(U===l&&++L===s&&(v=y),U===f&&++V===i&&(N=y),(H=G.nextSibling)!==null)break;G=U,U=G.parentNode}G=H}l=v===-1||N===-1?null:{start:v,end:N}}else l=null}l=l||{start:0,end:0}}else l=null;for(lc={focusedElem:e,selectionRange:l},vu=!1,dt=t;dt!==null;)if(t=dt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,dt=e;else for(;dt!==null;){switch(t=dt,f=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l<e.length;l++)s=e[l],s.ref.impl=s.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&f!==null){e=void 0,l=t,s=f.memoizedProps,f=f.memoizedState,i=l.stateNode;try{var ae=Ul(l.type,s);e=i.getSnapshotBeforeUpdate(ae,f),i.__reactInternalSnapshotBeforeUpdate=e}catch(de){De(l,l.return,de)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)rc(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":rc(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(u(163))}if(e=t.sibling,e!==null){e.return=t.return,dt=e;break}dt=t.return}}function dm(e,t,l){var i=l.flags;switch(l.tag){case 0:case 11:case 15:Hn(e,l),i&4&&ji(5,l);break;case 1:if(Hn(e,l),i&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(y){De(l,l.return,y)}else{var s=Ul(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(s,t,e.__reactInternalSnapshotBeforeUpdate)}catch(y){De(l,l.return,y)}}i&64&&rm(l),i&512&&Ei(l,l.return);break;case 3:if(Hn(e,l),i&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{Jd(e,t)}catch(y){De(l,l.return,y)}}break;case 27:t===null&&i&4&&cm(l);case 26:case 5:Hn(e,l),t===null&&i&4&&sm(l),i&512&&Ei(l,l.return);break;case 12:Hn(e,l);break;case 31:Hn(e,l),i&4&&pm(e,l);break;case 13:Hn(e,l),i&4&&gm(e,l),i&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=Fb.bind(null,l),pv(e,l))));break;case 22:if(i=l.memoizedState!==null||Bn,!i){t=t!==null&&t.memoizedState!==null||rt,s=Bn;var f=rt;Bn=i,(rt=t)&&!f?qn(e,l,(l.subtreeFlags&8772)!==0):Hn(e,l),Bn=s,rt=f}break;case 30:break;default:Hn(e,l)}}function hm(e){var t=e.alternate;t!==null&&(e.alternate=null,hm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&cs(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Fe=null,At=!1;function Un(e,t,l){for(l=l.child;l!==null;)mm(e,t,l),l=l.sibling}function mm(e,t,l){if(ot&&typeof ot.onCommitFiberUnmount=="function")try{ot.onCommitFiberUnmount(wt,l)}catch{}switch(l.tag){case 26:rt||xn(l,t),Un(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:rt||xn(l,t);var i=Fe,s=At;dl(l.type)&&(Fe=l.stateNode,At=!1),Un(e,t,l),Mi(l.stateNode),Fe=i,At=s;break;case 5:rt||xn(l,t);case 6:if(i=Fe,s=At,Fe=null,Un(e,t,l),Fe=i,At=s,Fe!==null)if(At)try{(Fe.nodeType===9?Fe.body:Fe.nodeName==="HTML"?Fe.ownerDocument.body:Fe).removeChild(l.stateNode)}catch(f){De(l,t,f)}else try{Fe.removeChild(l.stateNode)}catch(f){De(l,t,f)}break;case 18:Fe!==null&&(At?(e=Fe,rp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),_a(e)):rp(Fe,l.stateNode));break;case 4:i=Fe,s=At,Fe=l.stateNode.containerInfo,At=!0,Un(e,t,l),Fe=i,At=s;break;case 0:case 11:case 14:case 15:il(2,l,t),rt||il(4,l,t),Un(e,t,l);break;case 1:rt||(xn(l,t),i=l.stateNode,typeof i.componentWillUnmount=="function"&&um(l,t,i)),Un(e,t,l);break;case 21:Un(e,t,l);break;case 22:rt=(i=rt)||l.memoizedState!==null,Un(e,t,l),rt=i;break;default:Un(e,t,l)}}function pm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{_a(e)}catch(l){De(t,t.return,l)}}}function gm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{_a(e)}catch(l){De(t,t.return,l)}}function Yb(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new fm),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new fm),t;default:throw Error(u(435,e.tag))}}function eu(e,t){var l=Yb(e);t.forEach(function(i){if(!l.has(i)){l.add(i);var s=Jb.bind(null,e,i);i.then(s,s)}})}function zt(e,t){var l=t.deletions;if(l!==null)for(var i=0;i<l.length;i++){var s=l[i],f=e,y=t,v=y;e:for(;v!==null;){switch(v.tag){case 27:if(dl(v.type)){Fe=v.stateNode,At=!1;break e}break;case 5:Fe=v.stateNode,At=!1;break e;case 3:case 4:Fe=v.stateNode.containerInfo,At=!0;break e}v=v.return}if(Fe===null)throw Error(u(160));mm(f,y,s),Fe=null,At=!1,f=s.alternate,f!==null&&(f.return=null),s.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)ym(t,e),t=t.sibling}var dn=null;function ym(e,t){var l=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:zt(t,e),kt(e),i&4&&(il(3,e,e.return),ji(3,e),il(5,e,e.return));break;case 1:zt(t,e),kt(e),i&512&&(rt||l===null||xn(l,l.return)),i&64&&Bn&&(e=e.updateQueue,e!==null&&(i=e.callbacks,i!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?i:l.concat(i))));break;case 26:var s=dn;if(zt(t,e),kt(e),i&512&&(rt||l===null||xn(l,l.return)),i&4){var f=l!==null?l.memoizedState:null;if(i=e.memoizedState,l===null)if(i===null)if(e.stateNode===null){e:{i=e.type,l=e.memoizedProps,s=s.ownerDocument||s;t:switch(i){case"title":f=s.getElementsByTagName("title")[0],(!f||f[Ia]||f[ht]||f.namespaceURI==="http://www.w3.org/2000/svg"||f.hasAttribute("itemprop"))&&(f=s.createElement(i),s.head.insertBefore(f,s.querySelector("head > title"))),yt(f,i,l),f[ht]=e,ft(f),i=f;break e;case"link":var y=yp("link","href",s).get(i+(l.href||""));if(y){for(var v=0;v<y.length;v++)if(f=y[v],f.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&f.getAttribute("rel")===(l.rel==null?null:l.rel)&&f.getAttribute("title")===(l.title==null?null:l.title)&&f.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){y.splice(v,1);break t}}f=s.createElement(i),yt(f,i,l),s.head.appendChild(f);break;case"meta":if(y=yp("meta","content",s).get(i+(l.content||""))){for(v=0;v<y.length;v++)if(f=y[v],f.getAttribute("content")===(l.content==null?null:""+l.content)&&f.getAttribute("name")===(l.name==null?null:l.name)&&f.getAttribute("property")===(l.property==null?null:l.property)&&f.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&f.getAttribute("charset")===(l.charSet==null?null:l.charSet)){y.splice(v,1);break t}}f=s.createElement(i),yt(f,i,l),s.head.appendChild(f);break;default:throw Error(u(468,i))}f[ht]=e,ft(f),i=f}e.stateNode=i}else xp(s,e.type,e.stateNode);else e.stateNode=gp(s,i,e.memoizedProps);else f!==i?(f===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):f.count--,i===null?xp(s,e.type,e.stateNode):gp(s,i,e.memoizedProps)):i===null&&e.stateNode!==null&&_o(e,e.memoizedProps,l.memoizedProps)}break;case 27:zt(t,e),kt(e),i&512&&(rt||l===null||xn(l,l.return)),l!==null&&i&4&&_o(e,e.memoizedProps,l.memoizedProps);break;case 5:if(zt(t,e),kt(e),i&512&&(rt||l===null||xn(l,l.return)),e.flags&32){s=e.stateNode;try{ta(s,"")}catch(ae){De(e,e.return,ae)}}i&4&&e.stateNode!=null&&(s=e.memoizedProps,_o(e,s,l!==null?l.memoizedProps:s)),i&1024&&(Do=!0);break;case 6:if(zt(t,e),kt(e),i&4){if(e.stateNode===null)throw Error(u(162));i=e.memoizedProps,l=e.stateNode;try{l.nodeValue=i}catch(ae){De(e,e.return,ae)}}break;case 3:if(gu=null,s=dn,dn=mu(t.containerInfo),zt(t,e),dn=s,kt(e),i&4&&l!==null&&l.memoizedState.isDehydrated)try{_a(t.containerInfo)}catch(ae){De(e,e.return,ae)}Do&&(Do=!1,xm(e));break;case 4:i=dn,dn=mu(e.stateNode.containerInfo),zt(t,e),kt(e),dn=i;break;case 12:zt(t,e),kt(e);break;case 31:zt(t,e),kt(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,eu(e,i)));break;case 13:zt(t,e),kt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(nu=St()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,eu(e,i)));break;case 22:s=e.memoizedState!==null;var N=l!==null&&l.memoizedState!==null,L=Bn,V=rt;if(Bn=L||s,rt=V||N,zt(t,e),rt=V,Bn=L,kt(e),i&8192)e:for(t=e.stateNode,t._visibility=s?t._visibility&-2:t._visibility|1,s&&(l===null||N||Bn||rt||Hl(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){N=l=t;try{if(f=N.stateNode,s)y=f.style,typeof y.setProperty=="function"?y.setProperty("display","none","important"):y.display="none";else{v=N.stateNode;var G=N.memoizedProps.style,U=G!=null&&G.hasOwnProperty("display")?G.display:null;v.style.display=U==null||typeof U=="boolean"?"":(""+U).trim()}}catch(ae){De(N,N.return,ae)}}}else if(t.tag===6){if(l===null){N=t;try{N.stateNode.nodeValue=s?"":N.memoizedProps}catch(ae){De(N,N.return,ae)}}}else if(t.tag===18){if(l===null){N=t;try{var H=N.stateNode;s?up(H,!0):up(N.stateNode,!1)}catch(ae){De(N,N.return,ae)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}i&4&&(i=e.updateQueue,i!==null&&(l=i.retryQueue,l!==null&&(i.retryQueue=null,eu(e,l))));break;case 19:zt(t,e),kt(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,eu(e,i)));break;case 30:break;case 21:break;default:zt(t,e),kt(e)}}function kt(e){var t=e.flags;if(t&2){try{for(var l,i=e.return;i!==null;){if(om(i)){l=i;break}i=i.return}if(l==null)throw Error(u(160));switch(l.tag){case 27:var s=l.stateNode,f=Mo(e);Wr(e,f,s);break;case 5:var y=l.stateNode;l.flags&32&&(ta(y,""),l.flags&=-33);var v=Mo(e);Wr(e,v,y);break;case 3:case 4:var N=l.stateNode.containerInfo,L=Mo(e);Oo(e,L,N);break;default:throw Error(u(161))}}catch(V){De(e,e.return,V)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function xm(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;xm(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Hn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)dm(e,t.alternate,t),t=t.sibling}function Hl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:il(4,t,t.return),Hl(t);break;case 1:xn(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&um(t,t.return,l),Hl(t);break;case 27:Mi(t.stateNode);case 26:case 5:xn(t,t.return),Hl(t);break;case 22:t.memoizedState===null&&Hl(t);break;case 30:Hl(t);break;default:Hl(t)}e=e.sibling}}function qn(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var i=t.alternate,s=e,f=t,y=f.flags;switch(f.tag){case 0:case 11:case 15:qn(s,f,l),ji(4,f);break;case 1:if(qn(s,f,l),i=f,s=i.stateNode,typeof s.componentDidMount=="function")try{s.componentDidMount()}catch(L){De(i,i.return,L)}if(i=f,s=i.updateQueue,s!==null){var v=i.stateNode;try{var N=s.shared.hiddenCallbacks;if(N!==null)for(s.shared.hiddenCallbacks=null,s=0;s<N.length;s++)Fd(N[s],v)}catch(L){De(i,i.return,L)}}l&&y&64&&rm(f),Ei(f,f.return);break;case 27:cm(f);case 26:case 5:qn(s,f,l),l&&i===null&&y&4&&sm(f),Ei(f,f.return);break;case 12:qn(s,f,l);break;case 31:qn(s,f,l),l&&y&4&&pm(s,f);break;case 13:qn(s,f,l),l&&y&4&&gm(s,f);break;case 22:f.memoizedState===null&&qn(s,f,l),Ei(f,f.return);break;case 30:break;default:qn(s,f,l)}t=t.sibling}}function Lo(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&ci(l))}function Bo(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ci(e))}function hn(e,t,l,i){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)bm(e,t,l,i),t=t.sibling}function bm(e,t,l,i){var s=t.flags;switch(t.tag){case 0:case 11:case 15:hn(e,t,l,i),s&2048&&ji(9,t);break;case 1:hn(e,t,l,i);break;case 3:hn(e,t,l,i),s&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ci(e)));break;case 12:if(s&2048){hn(e,t,l,i),e=t.stateNode;try{var f=t.memoizedProps,y=f.id,v=f.onPostCommit;typeof v=="function"&&v(y,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(N){De(t,t.return,N)}}else hn(e,t,l,i);break;case 31:hn(e,t,l,i);break;case 13:hn(e,t,l,i);break;case 23:break;case 22:f=t.stateNode,y=t.alternate,t.memoizedState!==null?f._visibility&2?hn(e,t,l,i):Ni(e,t):f._visibility&2?hn(e,t,l,i):(f._visibility|=2,Sa(e,t,l,i,(t.subtreeFlags&10256)!==0||!1)),s&2048&&Lo(y,t);break;case 24:hn(e,t,l,i),s&2048&&Bo(t.alternate,t);break;default:hn(e,t,l,i)}}function Sa(e,t,l,i,s){for(s=s&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var f=e,y=t,v=l,N=i,L=y.flags;switch(y.tag){case 0:case 11:case 15:Sa(f,y,v,N,s),ji(8,y);break;case 23:break;case 22:var V=y.stateNode;y.memoizedState!==null?V._visibility&2?Sa(f,y,v,N,s):Ni(f,y):(V._visibility|=2,Sa(f,y,v,N,s)),s&&L&2048&&Lo(y.alternate,y);break;case 24:Sa(f,y,v,N,s),s&&L&2048&&Bo(y.alternate,y);break;default:Sa(f,y,v,N,s)}t=t.sibling}}function Ni(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,i=t,s=i.flags;switch(i.tag){case 22:Ni(l,i),s&2048&&Lo(i.alternate,i);break;case 24:Ni(l,i),s&2048&&Bo(i.alternate,i);break;default:Ni(l,i)}t=t.sibling}}var Ti=8192;function wa(e,t,l){if(e.subtreeFlags&Ti)for(e=e.child;e!==null;)vm(e,t,l),e=e.sibling}function vm(e,t,l){switch(e.tag){case 26:wa(e,t,l),e.flags&Ti&&e.memoizedState!==null&&Cv(l,dn,e.memoizedState,e.memoizedProps);break;case 5:wa(e,t,l);break;case 3:case 4:var i=dn;dn=mu(e.stateNode.containerInfo),wa(e,t,l),dn=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=Ti,Ti=16777216,wa(e,t,l),Ti=i):wa(e,t,l));break;default:wa(e,t,l)}}function Sm(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Ci(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var i=t[l];dt=i,jm(i,e)}Sm(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)wm(e),e=e.sibling}function wm(e){switch(e.tag){case 0:case 11:case 15:Ci(e),e.flags&2048&&il(9,e,e.return);break;case 3:Ci(e);break;case 12:Ci(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,tu(e)):Ci(e);break;default:Ci(e)}}function tu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var i=t[l];dt=i,jm(i,e)}Sm(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:il(8,t,t.return),tu(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,tu(t));break;default:tu(t)}e=e.sibling}}function jm(e,t){for(;dt!==null;){var l=dt;switch(l.tag){case 0:case 11:case 15:il(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var i=l.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:ci(l.memoizedState.cache)}if(i=l.child,i!==null)i.return=l,dt=i;else e:for(l=e;dt!==null;){i=dt;var s=i.sibling,f=i.return;if(hm(i),i===l){dt=null;break e}if(s!==null){s.return=f,dt=s;break e}dt=f}}}var Vb={getCacheForType:function(e){var t=pt(lt),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return pt(lt).controller.signal}},Qb=typeof WeakMap=="function"?WeakMap:Map,Re=0,Ye=null,je=null,Te=0,Oe=0,Yt=null,rl=!1,ja=!1,Uo=!1,Yn=0,We=0,ul=0,ql=0,Ho=0,Vt=0,Ea=0,Ai=null,Rt=null,qo=!1,nu=0,Em=0,lu=1/0,au=null,sl=null,ct=0,ol=null,Na=null,Vn=0,Yo=0,Vo=null,Nm=null,zi=0,Qo=null;function Qt(){return(Re&2)!==0&&Te!==0?Te&-Te:B.T!==null?Fo():Yf()}function Tm(){if(Vt===0)if((Te&536870912)===0||Ae){var e=dr;dr<<=1,(dr&3932160)===0&&(dr=262144),Vt=e}else Vt=536870912;return e=Ht.current,e!==null&&(e.flags|=32),Vt}function _t(e,t,l){(e===Ye&&(Oe===2||Oe===9)||e.cancelPendingCommit!==null)&&(Ta(e,0),cl(e,Te,Vt,!1)),Ja(e,l),((Re&2)===0||e!==Ye)&&(e===Ye&&((Re&2)===0&&(ql|=l),We===4&&cl(e,Te,Vt,!1)),bn(e))}function Cm(e,t,l){if((Re&6)!==0)throw Error(u(327));var i=!l&&(t&127)===0&&(t&e.expiredLanes)===0||Fa(e,t),s=i?Xb(e,t):Go(e,t,!0),f=i;do{if(s===0){ja&&!i&&cl(e,t,0,!1);break}else{if(l=e.current.alternate,f&&!Kb(l)){s=Go(e,t,!1),f=!1;continue}if(s===2){if(f=t,e.errorRecoveryDisabledLanes&f)var y=0;else y=e.pendingLanes&-536870913,y=y!==0?y:y&536870912?536870912:0;if(y!==0){t=y;e:{var v=e;s=Ai;var N=v.current.memoizedState.isDehydrated;if(N&&(Ta(v,y).flags|=256),y=Go(v,y,!1),y!==2){if(Uo&&!N){v.errorRecoveryDisabledLanes|=f,ql|=f,s=4;break e}f=Rt,Rt=s,f!==null&&(Rt===null?Rt=f:Rt.push.apply(Rt,f))}s=y}if(f=!1,s!==2)continue}}if(s===1){Ta(e,0),cl(e,t,0,!0);break}e:{switch(i=e,f=s,f){case 0:case 1:throw Error(u(345));case 4:if((t&4194048)!==t)break;case 6:cl(i,t,Vt,!rl);break e;case 2:Rt=null;break;case 3:case 5:break;default:throw Error(u(329))}if((t&62914560)===t&&(s=nu+300-St(),10<s)){if(cl(i,t,Vt,!rl),mr(i,0,!0)!==0)break e;Vn=t,i.timeoutHandle=ap(Am.bind(null,i,l,Rt,au,qo,t,Vt,ql,Ea,rl,f,"Throttled",-0,0),s);break e}Am(i,l,Rt,au,qo,t,Vt,ql,Ea,rl,f,null,-0,0)}}break}while(!0);bn(e)}function Am(e,t,l,i,s,f,y,v,N,L,V,G,U,H){if(e.timeoutHandle=-1,G=t.subtreeFlags,G&8192||(G&16785408)===16785408){G={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Cn},vm(t,f,G);var ae=(f&62914560)===f?nu-St():(f&4194048)===f?Em-St():0;if(ae=Av(G,ae),ae!==null){Vn=f,e.cancelPendingCommit=ae(Lm.bind(null,e,t,f,l,i,s,y,v,N,V,G,null,U,H)),cl(e,f,y,!L);return}}Lm(e,t,f,l,i,s,y,v,N)}function Kb(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var i=0;i<l.length;i++){var s=l[i],f=s.getSnapshot;s=s.value;try{if(!Bt(f(),s))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function cl(e,t,l,i){t&=~Ho,t&=~ql,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var s=t;0<s;){var f=31-qe(s),y=1<<f;i[f]=-1,s&=~y}l!==0&&Uf(e,l,t)}function iu(){return(Re&6)===0?(ki(0),!1):!0}function Ko(){if(je!==null){if(Oe===0)var e=je.return;else e=je,Rn=Rl=null,io(e),ga=null,di=0,e=je;for(;e!==null;)im(e.alternate,e),e=e.return;je=null}}function Ta(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,cv(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),Vn=0,Ko(),Ye=e,je=l=zn(e.current,null),Te=t,Oe=0,Yt=null,rl=!1,ja=Fa(e,t),Uo=!1,Ea=Vt=Ho=ql=ul=We=0,Rt=Ai=null,qo=!1,(t&8)!==0&&(t|=t&32);var i=e.entangledLanes;if(i!==0)for(e=e.entanglements,i&=t;0<i;){var s=31-qe(i),f=1<<s;t|=e[s],i&=~f}return Yn=t,Tr(),l}function zm(e,t){xe=null,B.H=vi,t===pa||t===Or?(t=Gd(),Oe=3):t===Zs?(t=Gd(),Oe=4):Oe=t===wo?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Yt=t,je===null&&(We=1,$r(e,Wt(t,e.current)))}function km(){var e=Ht.current;return e===null?!0:(Te&4194048)===Te?ln===null:(Te&62914560)===Te||(Te&536870912)!==0?e===ln:!1}function Rm(){var e=B.H;return B.H=vi,e===null?vi:e}function _m(){var e=B.A;return B.A=Vb,e}function ru(){We=4,rl||(Te&4194048)!==Te&&Ht.current!==null||(ja=!0),(ul&134217727)===0&&(ql&134217727)===0||Ye===null||cl(Ye,Te,Vt,!1)}function Go(e,t,l){var i=Re;Re|=2;var s=Rm(),f=_m();(Ye!==e||Te!==t)&&(au=null,Ta(e,t)),t=!1;var y=We;e:do try{if(Oe!==0&&je!==null){var v=je,N=Yt;switch(Oe){case 8:Ko(),y=6;break e;case 3:case 2:case 9:case 6:Ht.current===null&&(t=!0);var L=Oe;if(Oe=0,Yt=null,Ca(e,v,N,L),l&&ja){y=0;break e}break;default:L=Oe,Oe=0,Yt=null,Ca(e,v,N,L)}}Gb(),y=We;break}catch(V){zm(e,V)}while(!0);return t&&e.shellSuspendCounter++,Rn=Rl=null,Re=i,B.H=s,B.A=f,je===null&&(Ye=null,Te=0,Tr()),y}function Gb(){for(;je!==null;)Mm(je)}function Xb(e,t){var l=Re;Re|=2;var i=Rm(),s=_m();Ye!==e||Te!==t?(au=null,lu=St()+500,Ta(e,t)):ja=Fa(e,t);e:do try{if(Oe!==0&&je!==null){t=je;var f=Yt;t:switch(Oe){case 1:Oe=0,Yt=null,Ca(e,t,f,1);break;case 2:case 9:if(Qd(f)){Oe=0,Yt=null,Om(t);break}t=function(){Oe!==2&&Oe!==9||Ye!==e||(Oe=7),bn(e)},f.then(t,t);break e;case 3:Oe=7;break e;case 4:Oe=5;break e;case 7:Qd(f)?(Oe=0,Yt=null,Om(t)):(Oe=0,Yt=null,Ca(e,t,f,7));break;case 5:var y=null;switch(je.tag){case 26:y=je.memoizedState;case 5:case 27:var v=je;if(y?bp(y):v.stateNode.complete){Oe=0,Yt=null;var N=v.sibling;if(N!==null)je=N;else{var L=v.return;L!==null?(je=L,uu(L)):je=null}break t}}Oe=0,Yt=null,Ca(e,t,f,5);break;case 6:Oe=0,Yt=null,Ca(e,t,f,6);break;case 8:Ko(),We=6;break e;default:throw Error(u(462))}}Zb();break}catch(V){zm(e,V)}while(!0);return Rn=Rl=null,B.H=i,B.A=s,Re=l,je!==null?0:(Ye=null,Te=0,Tr(),We)}function Zb(){for(;je!==null&&!ls();)Mm(je)}function Mm(e){var t=lm(e.alternate,e,Yn);e.memoizedProps=e.pendingProps,t===null?uu(e):je=t}function Om(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=Ih(l,t,t.pendingProps,t.type,void 0,Te);break;case 11:t=Ih(l,t,t.pendingProps,t.type.render,t.ref,Te);break;case 5:io(t);default:im(l,t),t=je=_d(t,Yn),t=lm(l,t,Yn)}e.memoizedProps=e.pendingProps,t===null?uu(e):je=t}function Ca(e,t,l,i){Rn=Rl=null,io(t),ga=null,di=0;var s=t.return;try{if(Db(e,s,t,l,Te)){We=1,$r(e,Wt(l,e.current)),je=null;return}}catch(f){if(s!==null)throw je=s,f;We=1,$r(e,Wt(l,e.current)),je=null;return}t.flags&32768?(Ae||i===1?e=!0:ja||(Te&536870912)!==0?e=!1:(rl=e=!0,(i===2||i===9||i===3||i===6)&&(i=Ht.current,i!==null&&i.tag===13&&(i.flags|=16384))),Dm(t,e)):uu(t)}function uu(e){var t=e;do{if((t.flags&32768)!==0){Dm(t,rl);return}e=t.return;var l=Ub(t.alternate,t,Yn);if(l!==null){je=l;return}if(t=t.sibling,t!==null){je=t;return}je=t=e}while(t!==null);We===0&&(We=5)}function Dm(e,t){do{var l=Hb(e.alternate,e);if(l!==null){l.flags&=32767,je=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){je=e;return}je=e=l}while(e!==null);We=6,je=null}function Lm(e,t,l,i,s,f,y,v,N){e.cancelPendingCommit=null;do su();while(ct!==0);if((Re&6)!==0)throw Error(u(327));if(t!==null){if(t===e.current)throw Error(u(177));if(f=t.lanes|t.childLanes,f|=_s,Tx(e,l,f,y,v,N),e===Ye&&(je=Ye=null,Te=0),Na=t,ol=e,Vn=l,Yo=f,Vo=s,Nm=i,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Ib(me,function(){return Ym(),null})):(e.callbackNode=null,e.callbackPriority=0),i=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||i){i=B.T,B.T=null,s=Z.p,Z.p=2,y=Re,Re|=4;try{qb(e,t,l)}finally{Re=y,Z.p=s,B.T=i}}ct=1,Bm(),Um(),Hm()}}function Bm(){if(ct===1){ct=0;var e=ol,t=Na,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=B.T,B.T=null;var i=Z.p;Z.p=2;var s=Re;Re|=4;try{ym(t,e);var f=lc,y=jd(e.containerInfo),v=f.focusedElem,N=f.selectionRange;if(y!==v&&v&&v.ownerDocument&&wd(v.ownerDocument.documentElement,v)){if(N!==null&&Cs(v)){var L=N.start,V=N.end;if(V===void 0&&(V=L),"selectionStart"in v)v.selectionStart=L,v.selectionEnd=Math.min(V,v.value.length);else{var G=v.ownerDocument||document,U=G&&G.defaultView||window;if(U.getSelection){var H=U.getSelection(),ae=v.textContent.length,de=Math.min(N.start,ae),He=N.end===void 0?de:Math.min(N.end,ae);!H.extend&&de>He&&(y=He,He=de,de=y);var _=Sd(v,de),A=Sd(v,He);if(_&&A&&(H.rangeCount!==1||H.anchorNode!==_.node||H.anchorOffset!==_.offset||H.focusNode!==A.node||H.focusOffset!==A.offset)){var D=G.createRange();D.setStart(_.node,_.offset),H.removeAllRanges(),de>He?(H.addRange(D),H.extend(A.node,A.offset)):(D.setEnd(A.node,A.offset),H.addRange(D))}}}}for(G=[],H=v;H=H.parentNode;)H.nodeType===1&&G.push({element:H,left:H.scrollLeft,top:H.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<G.length;v++){var K=G[v];K.element.scrollLeft=K.left,K.element.scrollTop=K.top}}vu=!!nc,lc=nc=null}finally{Re=s,Z.p=i,B.T=l}}e.current=t,ct=2}}function Um(){if(ct===2){ct=0;var e=ol,t=Na,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=B.T,B.T=null;var i=Z.p;Z.p=2;var s=Re;Re|=4;try{dm(e,t.alternate,t)}finally{Re=s,Z.p=i,B.T=l}}ct=3}}function Hm(){if(ct===4||ct===3){ct=0,as();var e=ol,t=Na,l=Vn,i=Nm;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?ct=5:(ct=0,Na=ol=null,qm(e,e.pendingLanes));var s=e.pendingLanes;if(s===0&&(sl=null),ss(l),t=t.stateNode,ot&&typeof ot.onCommitFiberRoot=="function")try{ot.onCommitFiberRoot(wt,t,void 0,(t.current.flags&128)===128)}catch{}if(i!==null){t=B.T,s=Z.p,Z.p=2,B.T=null;try{for(var f=e.onRecoverableError,y=0;y<i.length;y++){var v=i[y];f(v.value,{componentStack:v.stack})}}finally{B.T=t,Z.p=s}}(Vn&3)!==0&&su(),bn(e),s=e.pendingLanes,(l&261930)!==0&&(s&42)!==0?e===Qo?zi++:(zi=0,Qo=e):zi=0,ki(0)}}function qm(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ci(t)))}function su(){return Bm(),Um(),Hm(),Ym()}function Ym(){if(ct!==5)return!1;var e=ol,t=Yo;Yo=0;var l=ss(Vn),i=B.T,s=Z.p;try{Z.p=32>l?32:l,B.T=null,l=Vo,Vo=null;var f=ol,y=Vn;if(ct=0,Na=ol=null,Vn=0,(Re&6)!==0)throw Error(u(331));var v=Re;if(Re|=4,wm(f.current),bm(f,f.current,y,l),Re=v,ki(0,!1),ot&&typeof ot.onPostCommitFiberRoot=="function")try{ot.onPostCommitFiberRoot(wt,f)}catch{}return!0}finally{Z.p=s,B.T=i,qm(e,t)}}function Vm(e,t,l){t=Wt(l,t),t=So(e.stateNode,t,2),e=nl(e,t,2),e!==null&&(Ja(e,2),bn(e))}function De(e,t,l){if(e.tag===3)Vm(e,e,l);else for(;t!==null;){if(t.tag===3){Vm(t,e,l);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(sl===null||!sl.has(i))){e=Wt(l,e),l=Qh(2),i=nl(t,l,2),i!==null&&(Kh(l,i,t,e),Ja(i,2),bn(i));break}}t=t.return}}function Xo(e,t,l){var i=e.pingCache;if(i===null){i=e.pingCache=new Qb;var s=new Set;i.set(t,s)}else s=i.get(t),s===void 0&&(s=new Set,i.set(t,s));s.has(l)||(Uo=!0,s.add(l),e=$b.bind(null,e,t,l),t.then(e,e))}function $b(e,t,l){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Ye===e&&(Te&l)===l&&(We===4||We===3&&(Te&62914560)===Te&&300>St()-nu?(Re&2)===0&&Ta(e,0):Ho|=l,Ea===Te&&(Ea=0)),bn(e)}function Qm(e,t){t===0&&(t=Bf()),e=Al(e,t),e!==null&&(Ja(e,t),bn(e))}function Fb(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Qm(e,l)}function Jb(e,t){var l=0;switch(e.tag){case 31:case 13:var i=e.stateNode,s=e.memoizedState;s!==null&&(l=s.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(u(314))}i!==null&&i.delete(t),Qm(e,l)}function Ib(e,t){return $l(e,t)}var ou=null,Aa=null,Zo=!1,cu=!1,$o=!1,fl=0;function bn(e){e!==Aa&&e.next===null&&(Aa===null?ou=Aa=e:Aa=Aa.next=e),cu=!0,Zo||(Zo=!0,Wb())}function ki(e,t){if(!$o&&cu){$o=!0;do for(var l=!1,i=ou;i!==null;){if(e!==0){var s=i.pendingLanes;if(s===0)var f=0;else{var y=i.suspendedLanes,v=i.pingedLanes;f=(1<<31-qe(42|e)+1)-1,f&=s&~(y&~v),f=f&201326741?f&201326741|1:f?f|2:0}f!==0&&(l=!0,Zm(i,f))}else f=Te,f=mr(i,i===Ye?f:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(f&3)===0||Fa(i,f)||(l=!0,Zm(i,f));i=i.next}while(l);$o=!1}}function Pb(){Km()}function Km(){cu=Zo=!1;var e=0;fl!==0&&ov()&&(e=fl);for(var t=St(),l=null,i=ou;i!==null;){var s=i.next,f=Gm(i,t);f===0?(i.next=null,l===null?ou=s:l.next=s,s===null&&(Aa=l)):(l=i,(e!==0||(f&3)!==0)&&(cu=!0)),i=s}ct!==0&&ct!==5||ki(e),fl!==0&&(fl=0)}function Gm(e,t){for(var l=e.suspendedLanes,i=e.pingedLanes,s=e.expirationTimes,f=e.pendingLanes&-62914561;0<f;){var y=31-qe(f),v=1<<y,N=s[y];N===-1?((v&l)===0||(v&i)!==0)&&(s[y]=Nx(v,t)):N<=t&&(e.expiredLanes|=v),f&=~v}if(t=Ye,l=Te,l=mr(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,l===0||e===t&&(Oe===2||Oe===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&$a(i),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||Fa(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(i!==null&&$a(i),ss(l)){case 2:case 8:l=W;break;case 32:l=me;break;case 268435456:l=Me;break;default:l=me}return i=Xm.bind(null,e),l=$l(l,i),e.callbackPriority=t,e.callbackNode=l,t}return i!==null&&i!==null&&$a(i),e.callbackPriority=2,e.callbackNode=null,2}function Xm(e,t){if(ct!==0&&ct!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(su()&&e.callbackNode!==l)return null;var i=Te;return i=mr(e,e===Ye?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(Cm(e,i,t),Gm(e,St()),e.callbackNode!=null&&e.callbackNode===l?Xm.bind(null,e):null)}function Zm(e,t){if(su())return null;Cm(e,t,!0)}function Wb(){fv(function(){(Re&6)!==0?$l(Q,Pb):Km()})}function Fo(){if(fl===0){var e=ha;e===0&&(e=fr,fr<<=1,(fr&261888)===0&&(fr=256)),fl=e}return fl}function $m(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:xr(""+e)}function Fm(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function ev(e,t,l,i,s){if(t==="submit"&&l&&l.stateNode===s){var f=$m((s[Tt]||null).action),y=i.submitter;y&&(t=(t=y[Tt]||null)?$m(t.formAction):y.getAttribute("formAction"),t!==null&&(f=t,y=null));var v=new wr("action","action",null,i,s);e.push({event:v,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(fl!==0){var N=y?Fm(s,y):new FormData(s);po(l,{pending:!0,data:N,method:s.method,action:f},null,N)}}else typeof f=="function"&&(v.preventDefault(),N=y?Fm(s,y):new FormData(s),po(l,{pending:!0,data:N,method:s.method,action:f},f,N))},currentTarget:s}]})}}for(var Jo=0;Jo<Rs.length;Jo++){var Io=Rs[Jo],tv=Io.toLowerCase(),nv=Io[0].toUpperCase()+Io.slice(1);fn(tv,"on"+nv)}fn(Td,"onAnimationEnd"),fn(Cd,"onAnimationIteration"),fn(Ad,"onAnimationStart"),fn("dblclick","onDoubleClick"),fn("focusin","onFocus"),fn("focusout","onBlur"),fn(xb,"onTransitionRun"),fn(bb,"onTransitionStart"),fn(vb,"onTransitionCancel"),fn(zd,"onTransitionEnd"),Wl("onMouseEnter",["mouseout","mouseover"]),Wl("onMouseLeave",["mouseout","mouseover"]),Wl("onPointerEnter",["pointerout","pointerover"]),Wl("onPointerLeave",["pointerout","pointerover"]),El("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),El("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),El("onBeforeInput",["compositionend","keypress","textInput","paste"]),El("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),El("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),El("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ri="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(" "),lv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ri));function Jm(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var i=e[l],s=i.event;i=i.listeners;e:{var f=void 0;if(t)for(var y=i.length-1;0<=y;y--){var v=i[y],N=v.instance,L=v.currentTarget;if(v=v.listener,N!==f&&s.isPropagationStopped())break e;f=v,s.currentTarget=L;try{f(s)}catch(V){Nr(V)}s.currentTarget=null,f=N}else for(y=0;y<i.length;y++){if(v=i[y],N=v.instance,L=v.currentTarget,v=v.listener,N!==f&&s.isPropagationStopped())break e;f=v,s.currentTarget=L;try{f(s)}catch(V){Nr(V)}s.currentTarget=null,f=N}}}}function Ee(e,t){var l=t[os];l===void 0&&(l=t[os]=new Set);var i=e+"__bubble";l.has(i)||(Im(t,e,2,!1),l.add(i))}function Po(e,t,l){var i=0;t&&(i|=4),Im(l,e,i,t)}var fu="_reactListening"+Math.random().toString(36).slice(2);function Wo(e){if(!e[fu]){e[fu]=!0,Kf.forEach(function(l){l!=="selectionchange"&&(lv.has(l)||Po(l,!1,e),Po(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[fu]||(t[fu]=!0,Po("selectionchange",!1,t))}}function Im(e,t,l,i){switch(Tp(t)){case 2:var s=Rv;break;case 8:s=_v;break;default:s=mc}l=s.bind(null,t,l,e),s=void 0,!xs||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),i?s!==void 0?e.addEventListener(t,l,{capture:!0,passive:s}):e.addEventListener(t,l,!0):s!==void 0?e.addEventListener(t,l,{passive:s}):e.addEventListener(t,l,!1)}function ec(e,t,l,i,s){var f=i;if((t&1)===0&&(t&2)===0&&i!==null)e:for(;;){if(i===null)return;var y=i.tag;if(y===3||y===4){var v=i.stateNode.containerInfo;if(v===s)break;if(y===4)for(y=i.return;y!==null;){var N=y.tag;if((N===3||N===4)&&y.stateNode.containerInfo===s)return;y=y.return}for(;v!==null;){if(y=Jl(v),y===null)return;if(N=y.tag,N===5||N===6||N===26||N===27){i=f=y;continue e}v=v.parentNode}}i=i.return}nd(function(){var L=f,V=gs(l),G=[];e:{var U=kd.get(e);if(U!==void 0){var H=wr,ae=e;switch(e){case"keypress":if(vr(l)===0)break e;case"keydown":case"keyup":H=Jx;break;case"focusin":ae="focus",H=ws;break;case"focusout":ae="blur",H=ws;break;case"beforeblur":case"afterblur":H=ws;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":H=id;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":H=Ux;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":H=Wx;break;case Td:case Cd:case Ad:H=Yx;break;case zd:H=tb;break;case"scroll":case"scrollend":H=Lx;break;case"wheel":H=lb;break;case"copy":case"cut":case"paste":H=Qx;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":H=ud;break;case"toggle":case"beforetoggle":H=ib}var de=(t&4)!==0,He=!de&&(e==="scroll"||e==="scrollend"),_=de?U!==null?U+"Capture":null:U;de=[];for(var A=L,D;A!==null;){var K=A;if(D=K.stateNode,K=K.tag,K!==5&&K!==26&&K!==27||D===null||_===null||(K=Wa(A,_),K!=null&&de.push(_i(A,K,D))),He)break;A=A.return}0<de.length&&(U=new H(U,ae,null,l,V),G.push({event:U,listeners:de}))}}if((t&7)===0){e:{if(U=e==="mouseover"||e==="pointerover",H=e==="mouseout"||e==="pointerout",U&&l!==ps&&(ae=l.relatedTarget||l.fromElement)&&(Jl(ae)||ae[Fl]))break e;if((H||U)&&(U=V.window===V?V:(U=V.ownerDocument)?U.defaultView||U.parentWindow:window,H?(ae=l.relatedTarget||l.toElement,H=L,ae=ae?Jl(ae):null,ae!==null&&(He=c(ae),de=ae.tag,ae!==He||de!==5&&de!==27&&de!==6)&&(ae=null)):(H=null,ae=L),H!==ae)){if(de=id,K="onMouseLeave",_="onMouseEnter",A="mouse",(e==="pointerout"||e==="pointerover")&&(de=ud,K="onPointerLeave",_="onPointerEnter",A="pointer"),He=H==null?U:Pa(H),D=ae==null?U:Pa(ae),U=new de(K,A+"leave",H,l,V),U.target=He,U.relatedTarget=D,K=null,Jl(V)===L&&(de=new de(_,A+"enter",ae,l,V),de.target=D,de.relatedTarget=He,K=de),He=K,H&&ae)t:{for(de=av,_=H,A=ae,D=0,K=_;K;K=de(K))D++;K=0;for(var oe=A;oe;oe=de(oe))K++;for(;0<D-K;)_=de(_),D--;for(;0<K-D;)A=de(A),K--;for(;D--;){if(_===A||A!==null&&_===A.alternate){de=_;break t}_=de(_),A=de(A)}de=null}else de=null;H!==null&&Pm(G,U,H,de,!1),ae!==null&&He!==null&&Pm(G,He,ae,de,!0)}}e:{if(U=L?Pa(L):window,H=U.nodeName&&U.nodeName.toLowerCase(),H==="select"||H==="input"&&U.type==="file")var ze=pd;else if(hd(U))if(gd)ze=pb;else{ze=hb;var re=db}else H=U.nodeName,!H||H.toLowerCase()!=="input"||U.type!=="checkbox"&&U.type!=="radio"?L&&ms(L.elementType)&&(ze=pd):ze=mb;if(ze&&(ze=ze(e,L))){md(G,ze,l,V);break e}re&&re(e,U,L),e==="focusout"&&L&&U.type==="number"&&L.memoizedProps.value!=null&&hs(U,"number",U.value)}switch(re=L?Pa(L):window,e){case"focusin":(hd(re)||re.contentEditable==="true")&&(ia=re,As=L,ui=null);break;case"focusout":ui=As=ia=null;break;case"mousedown":zs=!0;break;case"contextmenu":case"mouseup":case"dragend":zs=!1,Ed(G,l,V);break;case"selectionchange":if(yb)break;case"keydown":case"keyup":Ed(G,l,V)}var be;if(Es)e:{switch(e){case"compositionstart":var Ce="onCompositionStart";break e;case"compositionend":Ce="onCompositionEnd";break e;case"compositionupdate":Ce="onCompositionUpdate";break e}Ce=void 0}else aa?fd(e,l)&&(Ce="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(Ce="onCompositionStart");Ce&&(sd&&l.locale!=="ko"&&(aa||Ce!=="onCompositionStart"?Ce==="onCompositionEnd"&&aa&&(be=ld()):(Fn=V,bs="value"in Fn?Fn.value:Fn.textContent,aa=!0)),re=du(L,Ce),0<re.length&&(Ce=new rd(Ce,e,null,l,V),G.push({event:Ce,listeners:re}),be?Ce.data=be:(be=dd(l),be!==null&&(Ce.data=be)))),(be=ub?sb(e,l):ob(e,l))&&(Ce=du(L,"onBeforeInput"),0<Ce.length&&(re=new rd("onBeforeInput","beforeinput",null,l,V),G.push({event:re,listeners:Ce}),re.data=be)),ev(G,e,L,l,V)}Jm(G,t)})}function _i(e,t,l){return{instance:e,listener:t,currentTarget:l}}function du(e,t){for(var l=t+"Capture",i=[];e!==null;){var s=e,f=s.stateNode;if(s=s.tag,s!==5&&s!==26&&s!==27||f===null||(s=Wa(e,l),s!=null&&i.unshift(_i(e,s,f)),s=Wa(e,t),s!=null&&i.push(_i(e,s,f))),e.tag===3)return i;e=e.return}return[]}function av(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Pm(e,t,l,i,s){for(var f=t._reactName,y=[];l!==null&&l!==i;){var v=l,N=v.alternate,L=v.stateNode;if(v=v.tag,N!==null&&N===i)break;v!==5&&v!==26&&v!==27||L===null||(N=L,s?(L=Wa(l,f),L!=null&&y.unshift(_i(l,L,N))):s||(L=Wa(l,f),L!=null&&y.push(_i(l,L,N)))),l=l.return}y.length!==0&&e.push({event:t,listeners:y})}var iv=/\r\n?/g,rv=/\u0000|\uFFFD/g;function Wm(e){return(typeof e=="string"?e:""+e).replace(iv,`
49
- `).replace(rv,"")}function ep(e,t){return t=Wm(t),Wm(e)===t}function Ue(e,t,l,i,s,f){switch(l){case"children":typeof i=="string"?t==="body"||t==="textarea"&&i===""||ta(e,i):(typeof i=="number"||typeof i=="bigint")&&t!=="body"&&ta(e,""+i);break;case"className":gr(e,"class",i);break;case"tabIndex":gr(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":gr(e,l,i);break;case"style":ed(e,i,f);break;case"data":if(t!=="object"){gr(e,"data",i);break}case"src":case"href":if(i===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(l);break}i=xr(""+i),e.setAttribute(l,i);break;case"action":case"formAction":if(typeof i=="function"){e.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof f=="function"&&(l==="formAction"?(t!=="input"&&Ue(e,t,"name",s.name,s,null),Ue(e,t,"formEncType",s.formEncType,s,null),Ue(e,t,"formMethod",s.formMethod,s,null),Ue(e,t,"formTarget",s.formTarget,s,null)):(Ue(e,t,"encType",s.encType,s,null),Ue(e,t,"method",s.method,s,null),Ue(e,t,"target",s.target,s,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(l);break}i=xr(""+i),e.setAttribute(l,i);break;case"onClick":i!=null&&(e.onclick=Cn);break;case"onScroll":i!=null&&Ee("scroll",e);break;case"onScrollEnd":i!=null&&Ee("scrollend",e);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(u(61));if(l=i.__html,l!=null){if(s.children!=null)throw Error(u(60));e.innerHTML=l}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}l=xr(""+i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(l,""+i):e.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":i===!0?e.setAttribute(l,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(l,i):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(l,i):e.removeAttribute(l);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(l):e.setAttribute(l,i);break;case"popover":Ee("beforetoggle",e),Ee("toggle",e),pr(e,"popover",i);break;case"xlinkActuate":Tn(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":Tn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":Tn(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":Tn(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":Tn(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":Tn(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":Tn(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":Tn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":Tn(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":pr(e,"is",i);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=Ox.get(l)||l,pr(e,l,i))}}function tc(e,t,l,i,s,f){switch(l){case"style":ed(e,i,f);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(u(61));if(l=i.__html,l!=null){if(s.children!=null)throw Error(u(60));e.innerHTML=l}}break;case"children":typeof i=="string"?ta(e,i):(typeof i=="number"||typeof i=="bigint")&&ta(e,""+i);break;case"onScroll":i!=null&&Ee("scroll",e);break;case"onScrollEnd":i!=null&&Ee("scrollend",e);break;case"onClick":i!=null&&(e.onclick=Cn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Gf.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(s=l.endsWith("Capture"),t=l.slice(2,s?l.length-7:void 0),f=e[Tt]||null,f=f!=null?f[l]:null,typeof f=="function"&&e.removeEventListener(t,f,s),typeof i=="function")){typeof f!="function"&&f!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,i,s);break e}l in e?e[l]=i:i===!0?e.setAttribute(l,""):pr(e,l,i)}}}function yt(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ee("error",e),Ee("load",e);var i=!1,s=!1,f;for(f in l)if(l.hasOwnProperty(f)){var y=l[f];if(y!=null)switch(f){case"src":i=!0;break;case"srcSet":s=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:Ue(e,t,f,y,l,null)}}s&&Ue(e,t,"srcSet",l.srcSet,l,null),i&&Ue(e,t,"src",l.src,l,null);return;case"input":Ee("invalid",e);var v=f=y=s=null,N=null,L=null;for(i in l)if(l.hasOwnProperty(i)){var V=l[i];if(V!=null)switch(i){case"name":s=V;break;case"type":y=V;break;case"checked":N=V;break;case"defaultChecked":L=V;break;case"value":f=V;break;case"defaultValue":v=V;break;case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(u(137,t));break;default:Ue(e,t,i,V,l,null)}}Jf(e,f,v,N,L,y,s,!1);return;case"select":Ee("invalid",e),i=y=f=null;for(s in l)if(l.hasOwnProperty(s)&&(v=l[s],v!=null))switch(s){case"value":f=v;break;case"defaultValue":y=v;break;case"multiple":i=v;default:Ue(e,t,s,v,l,null)}t=f,l=y,e.multiple=!!i,t!=null?ea(e,!!i,t,!1):l!=null&&ea(e,!!i,l,!0);return;case"textarea":Ee("invalid",e),f=s=i=null;for(y in l)if(l.hasOwnProperty(y)&&(v=l[y],v!=null))switch(y){case"value":i=v;break;case"defaultValue":s=v;break;case"children":f=v;break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(u(91));break;default:Ue(e,t,y,v,l,null)}Pf(e,i,s,f);return;case"option":for(N in l)if(l.hasOwnProperty(N)&&(i=l[N],i!=null))switch(N){case"selected":e.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:Ue(e,t,N,i,l,null)}return;case"dialog":Ee("beforetoggle",e),Ee("toggle",e),Ee("cancel",e),Ee("close",e);break;case"iframe":case"object":Ee("load",e);break;case"video":case"audio":for(i=0;i<Ri.length;i++)Ee(Ri[i],e);break;case"image":Ee("error",e),Ee("load",e);break;case"details":Ee("toggle",e);break;case"embed":case"source":case"link":Ee("error",e),Ee("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(L in l)if(l.hasOwnProperty(L)&&(i=l[L],i!=null))switch(L){case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:Ue(e,t,L,i,l,null)}return;default:if(ms(t)){for(V in l)l.hasOwnProperty(V)&&(i=l[V],i!==void 0&&tc(e,t,V,i,l,void 0));return}}for(v in l)l.hasOwnProperty(v)&&(i=l[v],i!=null&&Ue(e,t,v,i,l,null))}function uv(e,t,l,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var s=null,f=null,y=null,v=null,N=null,L=null,V=null;for(H in l){var G=l[H];if(l.hasOwnProperty(H)&&G!=null)switch(H){case"checked":break;case"value":break;case"defaultValue":N=G;default:i.hasOwnProperty(H)||Ue(e,t,H,null,i,G)}}for(var U in i){var H=i[U];if(G=l[U],i.hasOwnProperty(U)&&(H!=null||G!=null))switch(U){case"type":f=H;break;case"name":s=H;break;case"checked":L=H;break;case"defaultChecked":V=H;break;case"value":y=H;break;case"defaultValue":v=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(u(137,t));break;default:H!==G&&Ue(e,t,U,H,i,G)}}ds(e,y,v,N,L,V,f,s);return;case"select":H=y=v=U=null;for(f in l)if(N=l[f],l.hasOwnProperty(f)&&N!=null)switch(f){case"value":break;case"multiple":H=N;default:i.hasOwnProperty(f)||Ue(e,t,f,null,i,N)}for(s in i)if(f=i[s],N=l[s],i.hasOwnProperty(s)&&(f!=null||N!=null))switch(s){case"value":U=f;break;case"defaultValue":v=f;break;case"multiple":y=f;default:f!==N&&Ue(e,t,s,f,i,N)}t=v,l=y,i=H,U!=null?ea(e,!!l,U,!1):!!i!=!!l&&(t!=null?ea(e,!!l,t,!0):ea(e,!!l,l?[]:"",!1));return;case"textarea":H=U=null;for(v in l)if(s=l[v],l.hasOwnProperty(v)&&s!=null&&!i.hasOwnProperty(v))switch(v){case"value":break;case"children":break;default:Ue(e,t,v,null,i,s)}for(y in i)if(s=i[y],f=l[y],i.hasOwnProperty(y)&&(s!=null||f!=null))switch(y){case"value":U=s;break;case"defaultValue":H=s;break;case"children":break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(u(91));break;default:s!==f&&Ue(e,t,y,s,i,f)}If(e,U,H);return;case"option":for(var ae in l)if(U=l[ae],l.hasOwnProperty(ae)&&U!=null&&!i.hasOwnProperty(ae))switch(ae){case"selected":e.selected=!1;break;default:Ue(e,t,ae,null,i,U)}for(N in i)if(U=i[N],H=l[N],i.hasOwnProperty(N)&&U!==H&&(U!=null||H!=null))switch(N){case"selected":e.selected=U&&typeof U!="function"&&typeof U!="symbol";break;default:Ue(e,t,N,U,i,H)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var de in l)U=l[de],l.hasOwnProperty(de)&&U!=null&&!i.hasOwnProperty(de)&&Ue(e,t,de,null,i,U);for(L in i)if(U=i[L],H=l[L],i.hasOwnProperty(L)&&U!==H&&(U!=null||H!=null))switch(L){case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(u(137,t));break;default:Ue(e,t,L,U,i,H)}return;default:if(ms(t)){for(var He in l)U=l[He],l.hasOwnProperty(He)&&U!==void 0&&!i.hasOwnProperty(He)&&tc(e,t,He,void 0,i,U);for(V in i)U=i[V],H=l[V],!i.hasOwnProperty(V)||U===H||U===void 0&&H===void 0||tc(e,t,V,U,i,H);return}}for(var _ in l)U=l[_],l.hasOwnProperty(_)&&U!=null&&!i.hasOwnProperty(_)&&Ue(e,t,_,null,i,U);for(G in i)U=i[G],H=l[G],!i.hasOwnProperty(G)||U===H||U==null&&H==null||Ue(e,t,G,U,i,H)}function tp(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function sv(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),i=0;i<l.length;i++){var s=l[i],f=s.transferSize,y=s.initiatorType,v=s.duration;if(f&&v&&tp(y)){for(y=0,v=s.responseEnd,i+=1;i<l.length;i++){var N=l[i],L=N.startTime;if(L>v)break;var V=N.transferSize,G=N.initiatorType;V&&tp(G)&&(N=N.responseEnd,y+=V*(N<v?1:(v-L)/(N-L)))}if(--i,t+=8*(f+y)/(s.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var nc=null,lc=null;function hu(e){return e.nodeType===9?e:e.ownerDocument}function np(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function lp(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function ac(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var ic=null;function ov(){var e=window.event;return e&&e.type==="popstate"?e===ic?!1:(ic=e,!0):(ic=null,!1)}var ap=typeof setTimeout=="function"?setTimeout:void 0,cv=typeof clearTimeout=="function"?clearTimeout:void 0,ip=typeof Promise=="function"?Promise:void 0,fv=typeof queueMicrotask=="function"?queueMicrotask:typeof ip<"u"?function(e){return ip.resolve(null).then(e).catch(dv)}:ap;function dv(e){setTimeout(function(){throw e})}function dl(e){return e==="head"}function rp(e,t){var l=t,i=0;do{var s=l.nextSibling;if(e.removeChild(l),s&&s.nodeType===8)if(l=s.data,l==="/$"||l==="/&"){if(i===0){e.removeChild(s),_a(t);return}i--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")i++;else if(l==="html")Mi(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,Mi(l);for(var f=l.firstChild;f;){var y=f.nextSibling,v=f.nodeName;f[Ia]||v==="SCRIPT"||v==="STYLE"||v==="LINK"&&f.rel.toLowerCase()==="stylesheet"||l.removeChild(f),f=y}}else l==="body"&&Mi(e.ownerDocument.body);l=s}while(l);_a(t)}function up(e,t){var l=e;e=0;do{var i=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),i&&i.nodeType===8)if(l=i.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=i}while(l)}function rc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":rc(l),cs(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function hv(e,t,l,i){for(;e.nodeType===1;){var s=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[Ia])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(f=e.getAttribute("rel"),f==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(f!==s.rel||e.getAttribute("href")!==(s.href==null||s.href===""?null:s.href)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin)||e.getAttribute("title")!==(s.title==null?null:s.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(f=e.getAttribute("src"),(f!==(s.src==null?null:s.src)||e.getAttribute("type")!==(s.type==null?null:s.type)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin))&&f&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var f=s.name==null?null:""+s.name;if(s.type==="hidden"&&e.getAttribute("name")===f)return e}else return e;if(e=an(e.nextSibling),e===null)break}return null}function mv(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=an(e.nextSibling),e===null))return null;return e}function sp(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=an(e.nextSibling),e===null))return null;return e}function uc(e){return e.data==="$?"||e.data==="$~"}function sc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function pv(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var i=function(){t(),l.removeEventListener("DOMContentLoaded",i)};l.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function an(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var oc=null;function op(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return an(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function cp(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function fp(e,t,l){switch(t=hu(l),e){case"html":if(e=t.documentElement,!e)throw Error(u(452));return e;case"head":if(e=t.head,!e)throw Error(u(453));return e;case"body":if(e=t.body,!e)throw Error(u(454));return e;default:throw Error(u(451))}}function Mi(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);cs(e)}var rn=new Map,dp=new Set;function mu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Qn=Z.d;Z.d={f:gv,r:yv,D:xv,C:bv,L:vv,m:Sv,X:jv,S:wv,M:Ev};function gv(){var e=Qn.f(),t=iu();return e||t}function yv(e){var t=Il(e);t!==null&&t.tag===5&&t.type==="form"?zh(t):Qn.r(e)}var za=typeof document>"u"?null:document;function hp(e,t,l){var i=za;if(i&&typeof t=="string"&&t){var s=It(t);s='link[rel="'+e+'"][href="'+s+'"]',typeof l=="string"&&(s+='[crossorigin="'+l+'"]'),dp.has(s)||(dp.add(s),e={rel:e,crossOrigin:l,href:t},i.querySelector(s)===null&&(t=i.createElement("link"),yt(t,"link",e),ft(t),i.head.appendChild(t)))}}function xv(e){Qn.D(e),hp("dns-prefetch",e,null)}function bv(e,t){Qn.C(e,t),hp("preconnect",e,t)}function vv(e,t,l){Qn.L(e,t,l);var i=za;if(i&&e&&t){var s='link[rel="preload"][as="'+It(t)+'"]';t==="image"&&l&&l.imageSrcSet?(s+='[imagesrcset="'+It(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(s+='[imagesizes="'+It(l.imageSizes)+'"]')):s+='[href="'+It(e)+'"]';var f=s;switch(t){case"style":f=ka(e);break;case"script":f=Ra(e)}rn.has(f)||(e=b({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),rn.set(f,e),i.querySelector(s)!==null||t==="style"&&i.querySelector(Oi(f))||t==="script"&&i.querySelector(Di(f))||(t=i.createElement("link"),yt(t,"link",e),ft(t),i.head.appendChild(t)))}}function Sv(e,t){Qn.m(e,t);var l=za;if(l&&e){var i=t&&typeof t.as=="string"?t.as:"script",s='link[rel="modulepreload"][as="'+It(i)+'"][href="'+It(e)+'"]',f=s;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":f=Ra(e)}if(!rn.has(f)&&(e=b({rel:"modulepreload",href:e},t),rn.set(f,e),l.querySelector(s)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Di(f)))return}i=l.createElement("link"),yt(i,"link",e),ft(i),l.head.appendChild(i)}}}function wv(e,t,l){Qn.S(e,t,l);var i=za;if(i&&e){var s=Pl(i).hoistableStyles,f=ka(e);t=t||"default";var y=s.get(f);if(!y){var v={loading:0,preload:null};if(y=i.querySelector(Oi(f)))v.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":t},l),(l=rn.get(f))&&cc(e,l);var N=y=i.createElement("link");ft(N),yt(N,"link",e),N._p=new Promise(function(L,V){N.onload=L,N.onerror=V}),N.addEventListener("load",function(){v.loading|=1}),N.addEventListener("error",function(){v.loading|=2}),v.loading|=4,pu(y,t,i)}y={type:"stylesheet",instance:y,count:1,state:v},s.set(f,y)}}}function jv(e,t){Qn.X(e,t);var l=za;if(l&&e){var i=Pl(l).hoistableScripts,s=Ra(e),f=i.get(s);f||(f=l.querySelector(Di(s)),f||(e=b({src:e,async:!0},t),(t=rn.get(s))&&fc(e,t),f=l.createElement("script"),ft(f),yt(f,"link",e),l.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},i.set(s,f))}}function Ev(e,t){Qn.M(e,t);var l=za;if(l&&e){var i=Pl(l).hoistableScripts,s=Ra(e),f=i.get(s);f||(f=l.querySelector(Di(s)),f||(e=b({src:e,async:!0,type:"module"},t),(t=rn.get(s))&&fc(e,t),f=l.createElement("script"),ft(f),yt(f,"link",e),l.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},i.set(s,f))}}function mp(e,t,l,i){var s=(s=se.current)?mu(s):null;if(!s)throw Error(u(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=ka(l.href),l=Pl(s).hoistableStyles,i=l.get(t),i||(i={type:"style",instance:null,count:0,state:null},l.set(t,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=ka(l.href);var f=Pl(s).hoistableStyles,y=f.get(e);if(y||(s=s.ownerDocument||s,y={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},f.set(e,y),(f=s.querySelector(Oi(e)))&&!f._p&&(y.instance=f,y.state.loading=5),rn.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},rn.set(e,l),f||Nv(s,e,l,y.state))),t&&i===null)throw Error(u(528,""));return y}if(t&&i!==null)throw Error(u(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Ra(l),l=Pl(s).hoistableScripts,i=l.get(t),i||(i={type:"script",instance:null,count:0,state:null},l.set(t,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,e))}}function ka(e){return'href="'+It(e)+'"'}function Oi(e){return'link[rel="stylesheet"]['+e+"]"}function pp(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function Nv(e,t,l,i){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?i.loading=1:(t=e.createElement("link"),i.preload=t,t.addEventListener("load",function(){return i.loading|=1}),t.addEventListener("error",function(){return i.loading|=2}),yt(t,"link",l),ft(t),e.head.appendChild(t))}function Ra(e){return'[src="'+It(e)+'"]'}function Di(e){return"script[async]"+e}function gp(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+It(l.href)+'"]');if(i)return t.instance=i,ft(i),i;var s=b({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),ft(i),yt(i,"style",s),pu(i,l.precedence,e),t.instance=i;case"stylesheet":s=ka(l.href);var f=e.querySelector(Oi(s));if(f)return t.state.loading|=4,t.instance=f,ft(f),f;i=pp(l),(s=rn.get(s))&&cc(i,s),f=(e.ownerDocument||e).createElement("link"),ft(f);var y=f;return y._p=new Promise(function(v,N){y.onload=v,y.onerror=N}),yt(f,"link",i),t.state.loading|=4,pu(f,l.precedence,e),t.instance=f;case"script":return f=Ra(l.src),(s=e.querySelector(Di(f)))?(t.instance=s,ft(s),s):(i=l,(s=rn.get(f))&&(i=b({},l),fc(i,s)),e=e.ownerDocument||e,s=e.createElement("script"),ft(s),yt(s,"link",i),e.head.appendChild(s),t.instance=s);case"void":return null;default:throw Error(u(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(i=t.instance,t.state.loading|=4,pu(i,l.precedence,e));return t.instance}function pu(e,t,l){for(var i=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),s=i.length?i[i.length-1]:null,f=s,y=0;y<i.length;y++){var v=i[y];if(v.dataset.precedence===t)f=v;else if(f!==s)break}f?f.parentNode.insertBefore(e,f.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function cc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function fc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var gu=null;function yp(e,t,l){if(gu===null){var i=new Map,s=gu=new Map;s.set(l,i)}else s=gu,i=s.get(l),i||(i=new Map,s.set(l,i));if(i.has(e))return i;for(i.set(e,null),l=l.getElementsByTagName(e),s=0;s<l.length;s++){var f=l[s];if(!(f[Ia]||f[ht]||e==="link"&&f.getAttribute("rel")==="stylesheet")&&f.namespaceURI!=="http://www.w3.org/2000/svg"){var y=f.getAttribute(t)||"";y=e+y;var v=i.get(y);v?v.push(f):i.set(y,[f])}}return i}function xp(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function Tv(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function bp(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Cv(e,t,l,i){if(l.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var s=ka(i.href),f=t.querySelector(Oi(s));if(f){t=f._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=yu.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=f,ft(f);return}f=t.ownerDocument||t,i=pp(i),(s=rn.get(s))&&cc(i,s),f=f.createElement("link"),ft(f);var y=f;y._p=new Promise(function(v,N){y.onload=v,y.onerror=N}),yt(f,"link",i),l.instance=f}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=yu.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var dc=0;function Av(e,t){return e.stylesheets&&e.count===0&&bu(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var i=setTimeout(function(){if(e.stylesheets&&bu(e,e.stylesheets),e.unsuspend){var f=e.unsuspend;e.unsuspend=null,f()}},6e4+t);0<e.imgBytes&&dc===0&&(dc=62500*sv());var s=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&bu(e,e.stylesheets),e.unsuspend)){var f=e.unsuspend;e.unsuspend=null,f()}},(e.imgBytes>dc?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(s)}}:null}function yu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)bu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var xu=null;function bu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,xu=new Map,t.forEach(zv,e),xu=null,yu.call(e))}function zv(e,t){if(!(t.state.loading&4)){var l=xu.get(e);if(l)var i=l.get(null);else{l=new Map,xu.set(e,l);for(var s=e.querySelectorAll("link[data-precedence],style[data-precedence]"),f=0;f<s.length;f++){var y=s[f];(y.nodeName==="LINK"||y.getAttribute("media")!=="not all")&&(l.set(y.dataset.precedence,y),i=y)}i&&l.set(null,i)}s=t.instance,y=s.getAttribute("data-precedence"),f=l.get(y)||i,f===i&&l.set(null,s),l.set(y,s),this.count++,i=yu.bind(this),s.addEventListener("load",i),s.addEventListener("error",i),f?f.parentNode.insertBefore(s,f.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(s,e.firstChild)),t.state.loading|=4}}var Li={$$typeof:k,Provider:null,Consumer:null,_currentValue:P,_currentValue2:P,_threadCount:0};function kv(e,t,l,i,s,f,y,v,N){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=rs(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=rs(0),this.hiddenUpdates=rs(null),this.identifierPrefix=i,this.onUncaughtError=s,this.onCaughtError=f,this.onRecoverableError=y,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=N,this.incompleteTransitions=new Map}function vp(e,t,l,i,s,f,y,v,N,L,V,G){return e=new kv(e,t,l,y,N,L,V,G,v),t=1,f===!0&&(t|=24),f=Ut(3,null,null,t),e.current=f,f.stateNode=e,t=Ks(),t.refCount++,e.pooledCache=t,t.refCount++,f.memoizedState={element:i,isDehydrated:l,cache:t},$s(f),e}function Sp(e){return e?(e=sa,e):sa}function wp(e,t,l,i,s,f){s=Sp(s),i.context===null?i.context=s:i.pendingContext=s,i=tl(t),i.payload={element:l},f=f===void 0?null:f,f!==null&&(i.callback=f),l=nl(e,i,t),l!==null&&(_t(l,e,t),mi(l,e,t))}function jp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function hc(e,t){jp(e,t),(e=e.alternate)&&jp(e,t)}function Ep(e){if(e.tag===13||e.tag===31){var t=Al(e,67108864);t!==null&&_t(t,e,67108864),hc(e,67108864)}}function Np(e){if(e.tag===13||e.tag===31){var t=Qt();t=us(t);var l=Al(e,t);l!==null&&_t(l,e,t),hc(e,t)}}var vu=!0;function Rv(e,t,l,i){var s=B.T;B.T=null;var f=Z.p;try{Z.p=2,mc(e,t,l,i)}finally{Z.p=f,B.T=s}}function _v(e,t,l,i){var s=B.T;B.T=null;var f=Z.p;try{Z.p=8,mc(e,t,l,i)}finally{Z.p=f,B.T=s}}function mc(e,t,l,i){if(vu){var s=pc(i);if(s===null)ec(e,t,i,Su,l),Cp(e,i);else if(Ov(s,e,t,l,i))i.stopPropagation();else if(Cp(e,i),t&4&&-1<Mv.indexOf(e)){for(;s!==null;){var f=Il(s);if(f!==null)switch(f.tag){case 3:if(f=f.stateNode,f.current.memoizedState.isDehydrated){var y=jl(f.pendingLanes);if(y!==0){var v=f;for(v.pendingLanes|=2,v.entangledLanes|=2;y;){var N=1<<31-qe(y);v.entanglements[1]|=N,y&=~N}bn(f),(Re&6)===0&&(lu=St()+500,ki(0))}}break;case 31:case 13:v=Al(f,2),v!==null&&_t(v,f,2),iu(),hc(f,2)}if(f=pc(i),f===null&&ec(e,t,i,Su,l),f===s)break;s=f}s!==null&&i.stopPropagation()}else ec(e,t,i,null,l)}}function pc(e){return e=gs(e),gc(e)}var Su=null;function gc(e){if(Su=null,e=Jl(e),e!==null){var t=c(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=d(t),e!==null)return e;e=null}else if(l===31){if(e=m(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Su=e,null}function Tp(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(is()){case Q:return 2;case W:return 8;case me:case we:return 32;case Me:return 268435456;default:return 32}default:return 32}}var yc=!1,hl=null,ml=null,pl=null,Bi=new Map,Ui=new Map,gl=[],Mv="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Cp(e,t){switch(e){case"focusin":case"focusout":hl=null;break;case"dragenter":case"dragleave":ml=null;break;case"mouseover":case"mouseout":pl=null;break;case"pointerover":case"pointerout":Bi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ui.delete(t.pointerId)}}function Hi(e,t,l,i,s,f){return e===null||e.nativeEvent!==f?(e={blockedOn:t,domEventName:l,eventSystemFlags:i,nativeEvent:f,targetContainers:[s]},t!==null&&(t=Il(t),t!==null&&Ep(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function Ov(e,t,l,i,s){switch(t){case"focusin":return hl=Hi(hl,e,t,l,i,s),!0;case"dragenter":return ml=Hi(ml,e,t,l,i,s),!0;case"mouseover":return pl=Hi(pl,e,t,l,i,s),!0;case"pointerover":var f=s.pointerId;return Bi.set(f,Hi(Bi.get(f)||null,e,t,l,i,s)),!0;case"gotpointercapture":return f=s.pointerId,Ui.set(f,Hi(Ui.get(f)||null,e,t,l,i,s)),!0}return!1}function Ap(e){var t=Jl(e.target);if(t!==null){var l=c(t);if(l!==null){if(t=l.tag,t===13){if(t=d(l),t!==null){e.blockedOn=t,Vf(e.priority,function(){Np(l)});return}}else if(t===31){if(t=m(l),t!==null){e.blockedOn=t,Vf(e.priority,function(){Np(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function wu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=pc(e.nativeEvent);if(l===null){l=e.nativeEvent;var i=new l.constructor(l.type,l);ps=i,l.target.dispatchEvent(i),ps=null}else return t=Il(l),t!==null&&Ep(t),e.blockedOn=l,!1;t.shift()}return!0}function zp(e,t,l){wu(e)&&l.delete(t)}function Dv(){yc=!1,hl!==null&&wu(hl)&&(hl=null),ml!==null&&wu(ml)&&(ml=null),pl!==null&&wu(pl)&&(pl=null),Bi.forEach(zp),Ui.forEach(zp)}function ju(e,t){e.blockedOn===t&&(e.blockedOn=null,yc||(yc=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,Dv)))}var Eu=null;function kp(e){Eu!==e&&(Eu=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Eu===e&&(Eu=null);for(var t=0;t<e.length;t+=3){var l=e[t],i=e[t+1],s=e[t+2];if(typeof i!="function"){if(gc(i||l)===null)continue;break}var f=Il(l);f!==null&&(e.splice(t,3),t-=3,po(f,{pending:!0,data:s,method:l.method,action:i},i,s))}}))}function _a(e){function t(N){return ju(N,e)}hl!==null&&ju(hl,e),ml!==null&&ju(ml,e),pl!==null&&ju(pl,e),Bi.forEach(t),Ui.forEach(t);for(var l=0;l<gl.length;l++){var i=gl[l];i.blockedOn===e&&(i.blockedOn=null)}for(;0<gl.length&&(l=gl[0],l.blockedOn===null);)Ap(l),l.blockedOn===null&&gl.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(i=0;i<l.length;i+=3){var s=l[i],f=l[i+1],y=s[Tt]||null;if(typeof f=="function")y||kp(l);else if(y){var v=null;if(f&&f.hasAttribute("formAction")){if(s=f,y=f[Tt]||null)v=y.formAction;else if(gc(s)!==null)continue}else v=y.action;typeof v=="function"?l[i+1]=v:(l.splice(i,3),i-=3),kp(l)}}}function Rp(){function e(f){f.canIntercept&&f.info==="react-transition"&&f.intercept({handler:function(){return new Promise(function(y){return s=y})},focusReset:"manual",scroll:"manual"})}function t(){s!==null&&(s(),s=null),i||setTimeout(l,20)}function l(){if(!i&&!navigation.transition){var f=navigation.currentEntry;f&&f.url!=null&&navigation.navigate(f.url,{state:f.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var i=!1,s=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){i=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),s!==null&&(s(),s=null)}}}function xc(e){this._internalRoot=e}Nu.prototype.render=xc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(u(409));var l=t.current,i=Qt();wp(l,i,e,t,null,null)},Nu.prototype.unmount=xc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;wp(e.current,2,null,e,null,null),iu(),t[Fl]=null}};function Nu(e){this._internalRoot=e}Nu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Yf();e={blockedOn:null,target:e,priority:t};for(var l=0;l<gl.length&&t!==0&&t<gl[l].priority;l++);gl.splice(l,0,e),l===0&&Ap(e)}};var _p=a.version;if(_p!=="19.2.6")throw Error(u(527,_p,"19.2.6"));Z.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(u(188)):(e=Object.keys(e).join(","),Error(u(268,e)));return e=p(t),e=e!==null?x(e):null,e=e===null?null:e.stateNode,e};var Lv={bundleType:0,version:"19.2.6",rendererPackageName:"react-dom",currentDispatcherRef:B,reconcilerVersion:"19.2.6"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Tu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Tu.isDisabled&&Tu.supportsFiber)try{wt=Tu.inject(Lv),ot=Tu}catch{}}return Yi.createRoot=function(e,t){if(!o(e))throw Error(u(299));var l=!1,i="",s=Hh,f=qh,y=Yh;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onUncaughtError!==void 0&&(s=t.onUncaughtError),t.onCaughtError!==void 0&&(f=t.onCaughtError),t.onRecoverableError!==void 0&&(y=t.onRecoverableError)),t=vp(e,1,!1,null,null,l,i,null,s,f,y,Rp),e[Fl]=t.current,Wo(e),new xc(t)},Yi.hydrateRoot=function(e,t,l){if(!o(e))throw Error(u(299));var i=!1,s="",f=Hh,y=qh,v=Yh,N=null;return l!=null&&(l.unstable_strictMode===!0&&(i=!0),l.identifierPrefix!==void 0&&(s=l.identifierPrefix),l.onUncaughtError!==void 0&&(f=l.onUncaughtError),l.onCaughtError!==void 0&&(y=l.onCaughtError),l.onRecoverableError!==void 0&&(v=l.onRecoverableError),l.formState!==void 0&&(N=l.formState)),t=vp(e,1,!0,t,l??null,i,s,N,f,y,v,Rp),t.context=Sp(null),l=t.current,i=Qt(),i=us(i),s=tl(i),s.callback=null,nl(l,s,i),l=i,t.current.lanes=l,Ja(t,l),bn(t),e[Fl]=t.current,Wo(e),new Nu(t)},Yi.version="19.2.6",Yi}var Vp;function Xv(){if(Vp)return Sc.exports;Vp=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),Sc.exports=Gv(),Sc.exports}var Fg=Xv();/**
50
- * react-router v7.16.0
51
- *
52
- * Copyright (c) Remix Software Inc.
53
- *
54
- * This source code is licensed under the MIT license found in the
55
- * LICENSE.md file in the root directory of this source tree.
56
- *
57
- * @license MIT
58
- */var Qp="popstate";function Kp(n){return typeof n=="object"&&n!=null&&"pathname"in n&&"search"in n&&"hash"in n&&"state"in n&&"key"in n}function Zv(n={}){function a(u,o){var p;let c=(p=o.state)==null?void 0:p.masked,{pathname:d,search:m,hash:g}=c||u.location;return Lu("",{pathname:d,search:m,hash:g},o.state&&o.state.usr||null,o.state&&o.state.key||"default",c?{pathname:u.location.pathname,search:u.location.search,hash:u.location.hash}:void 0)}function r(u,o){return typeof o=="string"?o:Ha(o)}return Jg(a,r,null,n)}function $v(n={}){function a(o,c){let{pathname:d="/",search:m="",hash:g=""}=Ql(o.location.hash.substring(1));return!d.startsWith("/")&&!d.startsWith(".")&&(d="/"+d),Lu("",{pathname:d,search:m,hash:g},c.state&&c.state.usr||null,c.state&&c.state.key||"default")}function r(o,c){let d=o.document.querySelector("base"),m="";if(d&&d.getAttribute("href")){let g=o.location.href,p=g.indexOf("#");m=p===-1?g:g.slice(0,p)}return m+"#"+(typeof c=="string"?c:Ha(c))}function u(o,c){Xt(o.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(c)})`)}return Jg(a,r,u,n)}function Ie(n,a){if(n===!1||n===null||typeof n>"u")throw new Error(a)}function Xt(n,a){if(!n){typeof console<"u"&&console.warn(a);try{throw new Error(a)}catch{}}}function Fv(){return Math.random().toString(36).substring(2,10)}function Gp(n,a){return{usr:n.state,key:n.key,idx:a,masked:n.mask?{pathname:n.pathname,search:n.search,hash:n.hash}:void 0}}function Lu(n,a,r=null,u,o){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof a=="string"?Ql(a):a,state:r,key:a&&a.key||u||Fv(),mask:o}}function Ha({pathname:n="/",search:a="",hash:r=""}){return a&&a!=="?"&&(n+=a.charAt(0)==="?"?a:"?"+a),r&&r!=="#"&&(n+=r.charAt(0)==="#"?r:"#"+r),n}function Ql(n){let a={};if(n){let r=n.indexOf("#");r>=0&&(a.hash=n.substring(r),n=n.substring(0,r));let u=n.indexOf("?");u>=0&&(a.search=n.substring(u),n=n.substring(0,u)),n&&(a.pathname=n)}return a}function Jg(n,a,r,u={}){let{window:o=document.defaultView,v5Compat:c=!1}=u,d=o.history,m="POP",g=null,p=x();p==null&&(p=0,d.replaceState({...d.state,idx:p},""));function x(){return(d.state||{idx:null}).idx}function b(){m="POP";let O=x(),z=O==null?null:O-p;p=O,g&&g({action:m,location:M.location,delta:z})}function w(O,z){m="PUSH";let X=Kp(O)?O:Lu(M.location,O,z);r&&r(X,O),p=x()+1;let k=Gp(X,p),J=M.createHref(X.mask||X);try{d.pushState(k,"",J)}catch(te){if(te instanceof DOMException&&te.name==="DataCloneError")throw te;o.location.assign(J)}c&&g&&g({action:m,location:M.location,delta:1})}function S(O,z){m="REPLACE";let X=Kp(O)?O:Lu(M.location,O,z);r&&r(X,O),p=x();let k=Gp(X,p),J=M.createHref(X.mask||X);d.replaceState(k,"",J),c&&g&&g({action:m,location:M.location,delta:0})}function R(O){return Jv(o,O)}let M={get action(){return m},get location(){return n(o,d)},listen(O){if(g)throw new Error("A history only accepts one active listener");return o.addEventListener(Qp,b),g=O,()=>{o.removeEventListener(Qp,b),g=null}},createHref(O){return a(o,O)},createURL:R,encodeLocation(O){let z=R(O);return{pathname:z.pathname,search:z.search,hash:z.hash}},push:w,replace:S,go(O){return d.go(O)}};return M}function Jv(n,a,r=!1){let u="http://localhost";n&&(u=n.location.origin!=="null"?n.location.origin:n.location.href),Ie(u,"No window.location.(origin|href) available to create URL");let o=typeof a=="string"?a:Ha(a);return o=o.replace(/ $/,"%20"),!r&&o.startsWith("//")&&(o=u+o),new URL(o,u)}function Ig(n,a,r="/"){return Iv(n,a,r,!1)}function Iv(n,a,r,u,o){let c=typeof a=="string"?Ql(a):a,d=Gn(c.pathname||"/",r);if(d==null)return null;let m=Pv(n),g=null,p=c0(d);for(let x=0;g==null&&x<m.length;++x)g=s0(m[x],p,u);return g}function Pv(n){let a=Pg(n);return Wv(a),a}function Pg(n,a=[],r=[],u="",o=!1){let c=(d,m,g=o,p)=>{let x={relativePath:p===void 0?d.path||"":p,caseSensitive:d.caseSensitive===!0,childrenIndex:m,route:d};if(x.relativePath.startsWith("/")){if(!x.relativePath.startsWith(u)&&g)return;Ie(x.relativePath.startsWith(u),`Absolute route path "${x.relativePath}" nested under path "${u}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),x.relativePath=x.relativePath.slice(u.length)}let b=pn([u,x.relativePath]),w=r.concat(x);d.children&&d.children.length>0&&(Ie(d.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${b}".`),Pg(d.children,a,w,b,g)),!(d.path==null&&!d.index)&&a.push({path:b,score:r0(b,d.index),routesMeta:w})};return n.forEach((d,m)=>{var g;if(d.path===""||!((g=d.path)!=null&&g.includes("?")))c(d,m);else for(let p of Wg(d.path))c(d,m,!0,p)}),a}function Wg(n){let a=n.split("/");if(a.length===0)return[];let[r,...u]=a,o=r.endsWith("?"),c=r.replace(/\?$/,"");if(u.length===0)return o?[c,""]:[c];let d=Wg(u.join("/")),m=[];return m.push(...d.map(g=>g===""?c:[c,g].join("/"))),o&&m.push(...d),m.map(g=>n.startsWith("/")&&g===""?"/":g)}function Wv(n){n.sort((a,r)=>a.score!==r.score?r.score-a.score:u0(a.routesMeta.map(u=>u.childrenIndex),r.routesMeta.map(u=>u.childrenIndex)))}var e0=/^:[\w-]+$/,t0=3,n0=2,l0=1,a0=10,i0=-2,Xp=n=>n==="*";function r0(n,a){let r=n.split("/"),u=r.length;return r.some(Xp)&&(u+=i0),a&&(u+=n0),r.filter(o=>!Xp(o)).reduce((o,c)=>o+(e0.test(c)?t0:c===""?l0:a0),u)}function u0(n,a){return n.length===a.length&&n.slice(0,-1).every((u,o)=>u===a[o])?n[n.length-1]-a[a.length-1]:0}function s0(n,a,r=!1){let{routesMeta:u}=n,o={},c="/",d=[];for(let m=0;m<u.length;++m){let g=u[m],p=m===u.length-1,x=c==="/"?a:a.slice(c.length)||"/",b=Bu({path:g.relativePath,caseSensitive:g.caseSensitive,end:p},x),w=g.route;if(!b&&p&&r&&!u[u.length-1].route.index&&(b=Bu({path:g.relativePath,caseSensitive:g.caseSensitive,end:!1},x)),!b)return null;Object.assign(o,b.params),d.push({params:o,pathname:pn([c,b.pathname]),pathnameBase:m0(pn([c,b.pathnameBase])),route:w}),b.pathnameBase!=="/"&&(c=pn([c,b.pathnameBase]))}return d}function Bu(n,a){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[r,u]=o0(n.path,n.caseSensitive,n.end),o=a.match(r);if(!o)return null;let c=o[0],d=c.replace(/(.)\/+$/,"$1"),m=o.slice(1);return{params:u.reduce((p,{paramName:x,isOptional:b},w)=>{if(x==="*"){let R=m[w]||"";d=c.slice(0,c.length-R.length).replace(/(.)\/+$/,"$1")}const S=m[w];return b&&!S?p[x]=void 0:p[x]=(S||"").replace(/%2F/g,"/"),p},{}),pathname:c,pathnameBase:d,pattern:n}}function o0(n,a=!1,r=!0){Xt(n==="*"||!n.endsWith("*")||n.endsWith("/*"),`Route path "${n}" will be treated as if it were "${n.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${n.replace(/\*$/,"/*")}".`);let u=[],o="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(d,m,g,p,x)=>{if(u.push({paramName:m,isOptional:g!=null}),g){let b=x.charAt(p+d.length);return b&&b!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return n.endsWith("*")?(u.push({paramName:"*"}),o+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":n!==""&&n!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,a?void 0:"i"),u]}function c0(n){try{return n.split("/").map(a=>decodeURIComponent(a).replace(/\//g,"%2F")).join("/")}catch(a){return Xt(!1,`The URL path "${n}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${a}).`),n}}function Gn(n,a){if(a==="/")return n;if(!n.toLowerCase().startsWith(a.toLowerCase()))return null;let r=a.endsWith("/")?a.length-1:a.length,u=n.charAt(r);return u&&u!=="/"?null:n.slice(r)||"/"}var f0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function d0(n,a="/"){let{pathname:r,search:u="",hash:o=""}=typeof n=="string"?Ql(n):n,c;return r?(r=ey(r),r.startsWith("/")?c=Zp(r.substring(1),"/"):c=Zp(r,a)):c=a,{pathname:c,search:p0(u),hash:g0(o)}}function Zp(n,a){let r=Uu(a).split("/");return n.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function Nc(n,a,r,u){return`Cannot include a '${n}' character in a manually specified \`to.${a}\` field [${JSON.stringify(u)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function h0(n){return n.filter((a,r)=>r===0||a.route.path&&a.route.path.length>0)}function cf(n){let a=h0(n);return a.map((r,u)=>u===a.length-1?r.pathname:r.pathnameBase)}function Vu(n,a,r,u=!1){let o;typeof n=="string"?o=Ql(n):(o={...n},Ie(!o.pathname||!o.pathname.includes("?"),Nc("?","pathname","search",o)),Ie(!o.pathname||!o.pathname.includes("#"),Nc("#","pathname","hash",o)),Ie(!o.search||!o.search.includes("#"),Nc("#","search","hash",o)));let c=n===""||o.pathname==="",d=c?"/":o.pathname,m;if(d==null)m=r;else{let b=a.length-1;if(!u&&d.startsWith("..")){let w=d.split("/");for(;w[0]==="..";)w.shift(),b-=1;o.pathname=w.join("/")}m=b>=0?a[b]:"/"}let g=d0(o,m),p=d&&d!=="/"&&d.endsWith("/"),x=(c||d===".")&&r.endsWith("/");return!g.pathname.endsWith("/")&&(p||x)&&(g.pathname+="/"),g}var ey=n=>n.replace(/\/\/+/g,"/"),pn=n=>ey(n.join("/")),Uu=n=>n.replace(/\/+$/,""),m0=n=>Uu(n).replace(/^\/*/,"/"),p0=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,g0=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n,y0=class{constructor(n,a,r,u=!1){this.status=n,this.statusText=a||"",this.internal=u,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function x0(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}function b0(n){let a=n.map(r=>r.route.path).filter(Boolean);return pn(a)||"/"}var ty=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function ny(n,a){let r=n;if(typeof r!="string"||!f0.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let u=r,o=!1;if(ty)try{let c=new URL(window.location.href),d=r.startsWith("//")?new URL(c.protocol+r):new URL(r),m=Gn(d.pathname,a);d.origin===c.origin&&m!=null?r=m+d.search+d.hash:o=!0}catch{Xt(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:u,isExternal:o,to:r}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var ly=["POST","PUT","PATCH","DELETE"];new Set(ly);var v0=["GET",...ly];new Set(v0);var Va=C.createContext(null);Va.displayName="DataRouter";var Qu=C.createContext(null);Qu.displayName="DataRouterState";var ay=C.createContext(!1);function S0(){return C.useContext(ay)}var iy=C.createContext({isTransitioning:!1});iy.displayName="ViewTransition";var w0=C.createContext(new Map);w0.displayName="Fetchers";var j0=C.createContext(null);j0.displayName="Await";var Zt=C.createContext(null);Zt.displayName="Navigation";var lr=C.createContext(null);lr.displayName="Location";var on=C.createContext({outlet:null,matches:[],isDataRoute:!1});on.displayName="Route";var ff=C.createContext(null);ff.displayName="RouteError";var ry="REACT_ROUTER_ERROR",E0="REDIRECT",N0="ROUTE_ERROR_RESPONSE";function T0(n){if(n.startsWith(`${ry}:${E0}:{`))try{let a=JSON.parse(n.slice(28));if(typeof a=="object"&&a&&typeof a.status=="number"&&typeof a.statusText=="string"&&typeof a.location=="string"&&typeof a.reloadDocument=="boolean"&&typeof a.replace=="boolean")return a}catch{}}function C0(n){if(n.startsWith(`${ry}:${N0}:{`))try{let a=JSON.parse(n.slice(40));if(typeof a=="object"&&a&&typeof a.status=="number"&&typeof a.statusText=="string")return new y0(a.status,a.statusText,a.data)}catch{}}function A0(n,{relative:a}={}){Ie(Qa(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:u}=C.useContext(Zt),{hash:o,pathname:c,search:d}=ar(n,{relative:a}),m=c;return r!=="/"&&(m=c==="/"?r:pn([r,c])),u.createHref({pathname:m,search:d,hash:o})}function Qa(){return C.useContext(lr)!=null}function $t(){return Ie(Qa(),"useLocation() may be used only in the context of a <Router> component."),C.useContext(lr).location}var uy="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function sy(n){C.useContext(Zt).static||C.useLayoutEffect(n)}function Ku(){let{isDataRoute:n}=C.useContext(on);return n?Q0():z0()}function z0(){Ie(Qa(),"useNavigate() may be used only in the context of a <Router> component.");let n=C.useContext(Va),{basename:a,navigator:r}=C.useContext(Zt),{matches:u}=C.useContext(on),{pathname:o}=$t(),c=JSON.stringify(cf(u)),d=C.useRef(!1);return sy(()=>{d.current=!0}),C.useCallback((g,p={})=>{if(Xt(d.current,uy),!d.current)return;if(typeof g=="number"){r.go(g);return}let x=Vu(g,JSON.parse(c),o,p.relative==="path");n==null&&a!=="/"&&(x.pathname=x.pathname==="/"?a:pn([a,x.pathname])),(p.replace?r.replace:r.push)(x,p.state,p)},[a,r,c,o,n])}var oy=C.createContext(null);function k0(){return C.useContext(oy)}function R0(n){let a=C.useContext(on).outlet;return C.useMemo(()=>a&&C.createElement(oy.Provider,{value:n},a),[a,n])}function Gu(){let{matches:n}=C.useContext(on),a=n[n.length-1];return(a==null?void 0:a.params)??{}}function ar(n,{relative:a}={}){let{matches:r}=C.useContext(on),{pathname:u}=$t(),o=JSON.stringify(cf(r));return C.useMemo(()=>Vu(n,JSON.parse(o),u,a==="path"),[n,o,u,a])}function _0(n,a){return cy(n,a)}function cy(n,a,r){var O;Ie(Qa(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:u}=C.useContext(Zt),{matches:o}=C.useContext(on),c=o[o.length-1],d=c?c.params:{},m=c?c.pathname:"/",g=c?c.pathnameBase:"/",p=c&&c.route;{let z=p&&p.path||"";dy(m,!p||z.endsWith("*")||z.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${m}" (under <Route path="${z}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
59
-
60
- Please change the parent <Route path="${z}"> to <Route path="${z==="/"?"*":`${z}/*`}">.`)}let x=$t(),b;if(a){let z=typeof a=="string"?Ql(a):a;Ie(g==="/"||((O=z.pathname)==null?void 0:O.startsWith(g)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${g}" but pathname "${z.pathname}" was given in the \`location\` prop.`),b=z}else b=x;let w=b.pathname||"/",S=w;if(g!=="/"){let z=g.replace(/^\//,"").split("/");S="/"+w.replace(/^\//,"").split("/").slice(z.length).join("/")}let R=r&&r.state.matches.length?r.state.matches.map(z=>Object.assign(z,{route:r.manifest[z.route.id]||z.route})):Ig(n,{pathname:S});Xt(p||R!=null,`No routes matched location "${b.pathname}${b.search}${b.hash}" `),Xt(R==null||R[R.length-1].route.element!==void 0||R[R.length-1].route.Component!==void 0||R[R.length-1].route.lazy!==void 0,`Matched leaf route at location "${b.pathname}${b.search}${b.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let M=B0(R&&R.map(z=>Object.assign({},z,{params:Object.assign({},d,z.params),pathname:pn([g,u.encodeLocation?u.encodeLocation(z.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:z.pathname]),pathnameBase:z.pathnameBase==="/"?g:pn([g,u.encodeLocation?u.encodeLocation(z.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:z.pathnameBase])})),o,r);return a&&M?C.createElement(lr.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...b},navigationType:"POP"}},M):M}function M0(){let n=V0(),a=x0(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),r=n instanceof Error?n.stack:null,u="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:u},c={padding:"2px 4px",backgroundColor:u},d=null;return console.error("Error handled by React Router default ErrorBoundary:",n),d=C.createElement(C.Fragment,null,C.createElement("p",null,"💿 Hey developer 👋"),C.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",C.createElement("code",{style:c},"ErrorBoundary")," or"," ",C.createElement("code",{style:c},"errorElement")," prop on your route.")),C.createElement(C.Fragment,null,C.createElement("h2",null,"Unexpected Application Error!"),C.createElement("h3",{style:{fontStyle:"italic"}},a),r?C.createElement("pre",{style:o},r):null,d)}var O0=C.createElement(M0,null),fy=class extends C.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,a){return a.location!==n.location||a.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:a.error,location:a.location,revalidation:n.revalidation||a.revalidation}}componentDidCatch(n,a){this.props.onError?this.props.onError(n,a):console.error("React Router caught the following error during render",n)}render(){let n=this.state.error;if(this.context&&typeof n=="object"&&n&&"digest"in n&&typeof n.digest=="string"){const r=C0(n.digest);r&&(n=r)}let a=n!==void 0?C.createElement(on.Provider,{value:this.props.routeContext},C.createElement(ff.Provider,{value:n,children:this.props.component})):this.props.children;return this.context?C.createElement(D0,{error:n},a):a}};fy.contextType=ay;var Tc=new WeakMap;function D0({children:n,error:a}){let{basename:r}=C.useContext(Zt);if(typeof a=="object"&&a&&"digest"in a&&typeof a.digest=="string"){let u=T0(a.digest);if(u){let o=Tc.get(a);if(o)throw o;let c=ny(u.location,r);if(ty&&!Tc.get(a))if(c.isExternal||u.reloadDocument)window.location.href=c.absoluteURL||c.to;else{const d=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(c.to,{replace:u.replace}));throw Tc.set(a,d),d}return C.createElement("meta",{httpEquiv:"refresh",content:`0;url=${c.absoluteURL||c.to}`})}}return n}function L0({routeContext:n,match:a,children:r}){let u=C.useContext(Va);return u&&u.static&&u.staticContext&&(a.route.errorElement||a.route.ErrorBoundary)&&(u.staticContext._deepestRenderedBoundaryId=a.route.id),C.createElement(on.Provider,{value:n},r)}function B0(n,a=[],r){let u=r==null?void 0:r.state;if(n==null){if(!u)return null;if(u.errors)n=u.matches;else if(a.length===0&&!u.initialized&&u.matches.length>0)n=u.matches;else return null}let o=n,c=u==null?void 0:u.errors;if(c!=null){let x=o.findIndex(b=>b.route.id&&(c==null?void 0:c[b.route.id])!==void 0);Ie(x>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(c).join(",")}`),o=o.slice(0,Math.min(o.length,x+1))}let d=!1,m=-1;if(r&&u){d=u.renderFallback;for(let x=0;x<o.length;x++){let b=o[x];if((b.route.HydrateFallback||b.route.hydrateFallbackElement)&&(m=x),b.route.id){let{loaderData:w,errors:S}=u,R=b.route.loader&&!w.hasOwnProperty(b.route.id)&&(!S||S[b.route.id]===void 0);if(b.route.lazy||R){r.isStatic&&(d=!0),m>=0?o=o.slice(0,m+1):o=[o[0]];break}}}}let g=r==null?void 0:r.onError,p=u&&g?(x,b)=>{var w,S;g(x,{location:u.location,params:((S=(w=u.matches)==null?void 0:w[0])==null?void 0:S.params)??{},pattern:b0(u.matches),errorInfo:b})}:void 0;return o.reduceRight((x,b,w)=>{let S,R=!1,M=null,O=null;u&&(S=c&&b.route.id?c[b.route.id]:void 0,M=b.route.errorElement||O0,d&&(m<0&&w===0?(dy("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),R=!0,O=null):m===w&&(R=!0,O=b.route.hydrateFallbackElement||null)));let z=a.concat(o.slice(0,w+1)),X=()=>{let k;return S?k=M:R?k=O:b.route.Component?k=C.createElement(b.route.Component,null):b.route.element?k=b.route.element:k=x,C.createElement(L0,{match:b,routeContext:{outlet:x,matches:z,isDataRoute:u!=null},children:k})};return u&&(b.route.ErrorBoundary||b.route.errorElement||w===0)?C.createElement(fy,{location:u.location,revalidation:u.revalidation,component:M,error:S,children:X(),routeContext:{outlet:null,matches:z,isDataRoute:!0},onError:p}):X()},null)}function df(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function U0(n){let a=C.useContext(Va);return Ie(a,df(n)),a}function H0(n){let a=C.useContext(Qu);return Ie(a,df(n)),a}function q0(n){let a=C.useContext(on);return Ie(a,df(n)),a}function hf(n){let a=q0(n),r=a.matches[a.matches.length-1];return Ie(r.route.id,`${n} can only be used on routes that contain a unique "id"`),r.route.id}function Y0(){return hf("useRouteId")}function V0(){var u;let n=C.useContext(ff),a=H0("useRouteError"),r=hf("useRouteError");return n!==void 0?n:(u=a.errors)==null?void 0:u[r]}function Q0(){let{router:n}=U0("useNavigate"),a=hf("useNavigate"),r=C.useRef(!1);return sy(()=>{r.current=!0}),C.useCallback(async(o,c={})=>{Xt(r.current,uy),r.current&&(typeof o=="number"?await n.navigate(o):await n.navigate(o,{fromRouteId:a,...c}))},[n,a])}var $p={};function dy(n,a,r){!a&&!$p[n]&&($p[n]=!0,Xt(!1,r))}C.memo(K0);function K0({routes:n,manifest:a,future:r,state:u,isStatic:o,onError:c}){return cy(n,void 0,{manifest:a,state:u,isStatic:o,onError:c})}function bl({to:n,replace:a,state:r,relative:u}){Ie(Qa(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=C.useContext(Zt);Xt(!o,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:c}=C.useContext(on),{pathname:d}=$t(),m=Ku(),g=Vu(n,cf(c),d,u==="path"),p=JSON.stringify(g);return C.useEffect(()=>{m(JSON.parse(p),{replace:a,state:r,relative:u})},[m,p,u,a,r]),null}function G0(n){return R0(n.context)}function Je(n){Ie(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function hy({basename:n="/",children:a=null,location:r,navigationType:u="POP",navigator:o,static:c=!1,useTransitions:d}){Ie(!Qa(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let m=n.replace(/^\/*/,"/"),g=C.useMemo(()=>({basename:m,navigator:o,static:c,useTransitions:d,future:{}}),[m,o,c,d]);typeof r=="string"&&(r=Ql(r));let{pathname:p="/",search:x="",hash:b="",state:w=null,key:S="default",mask:R}=r,M=C.useMemo(()=>{let O=Gn(p,m);return O==null?null:{location:{pathname:O,search:x,hash:b,state:w,key:S,mask:R},navigationType:u}},[m,p,x,b,w,S,u,R]);return Xt(M!=null,`<Router basename="${m}"> is not able to match the URL "${p}${x}${b}" because it does not start with the basename, so the <Router> won't render anything.`),M==null?null:C.createElement(Zt.Provider,{value:g},C.createElement(lr.Provider,{children:a,value:M}))}function X0({children:n,location:a}){return _0(Gc(n),a)}function Gc(n,a=[]){let r=[];return C.Children.forEach(n,(u,o)=>{if(!C.isValidElement(u))return;let c=[...a,o];if(u.type===C.Fragment){r.push.apply(r,Gc(u.props.children,c));return}Ie(u.type===Je,`[${typeof u.type=="string"?u.type:u.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Ie(!u.props.index||!u.props.children,"An index route cannot have child routes.");let d={id:u.props.id||c.join("-"),caseSensitive:u.props.caseSensitive,element:u.props.element,Component:u.props.Component,index:u.props.index,path:u.props.path,middleware:u.props.middleware,loader:u.props.loader,action:u.props.action,hydrateFallbackElement:u.props.hydrateFallbackElement,HydrateFallback:u.props.HydrateFallback,errorElement:u.props.errorElement,ErrorBoundary:u.props.ErrorBoundary,hasErrorBoundary:u.props.hasErrorBoundary===!0||u.props.ErrorBoundary!=null||u.props.errorElement!=null,shouldRevalidate:u.props.shouldRevalidate,handle:u.props.handle,lazy:u.props.lazy};u.props.children&&(d.children=Gc(u.props.children,c)),r.push(d)}),r}var Mu="get",Ou="application/x-www-form-urlencoded";function Xu(n){return typeof HTMLElement<"u"&&n instanceof HTMLElement}function Z0(n){return Xu(n)&&n.tagName.toLowerCase()==="button"}function $0(n){return Xu(n)&&n.tagName.toLowerCase()==="form"}function F0(n){return Xu(n)&&n.tagName.toLowerCase()==="input"}function J0(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function I0(n,a){return n.button===0&&(!a||a==="_self")&&!J0(n)}function Xc(n=""){return new URLSearchParams(typeof n=="string"||Array.isArray(n)||n instanceof URLSearchParams?n:Object.keys(n).reduce((a,r)=>{let u=n[r];return a.concat(Array.isArray(u)?u.map(o=>[r,o]):[[r,u]])},[]))}function P0(n,a){let r=Xc(n);return a&&a.forEach((u,o)=>{r.has(o)||a.getAll(o).forEach(c=>{r.append(o,c)})}),r}var Cu=null;function W0(){if(Cu===null)try{new FormData(document.createElement("form"),0),Cu=!1}catch{Cu=!0}return Cu}var e1=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Cc(n){return n!=null&&!e1.has(n)?(Xt(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ou}"`),null):n}function t1(n,a){let r,u,o,c,d;if($0(n)){let m=n.getAttribute("action");u=m?Gn(m,a):null,r=n.getAttribute("method")||Mu,o=Cc(n.getAttribute("enctype"))||Ou,c=new FormData(n)}else if(Z0(n)||F0(n)&&(n.type==="submit"||n.type==="image")){let m=n.form;if(m==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let g=n.getAttribute("formaction")||m.getAttribute("action");if(u=g?Gn(g,a):null,r=n.getAttribute("formmethod")||m.getAttribute("method")||Mu,o=Cc(n.getAttribute("formenctype"))||Cc(m.getAttribute("enctype"))||Ou,c=new FormData(m,n),!W0()){let{name:p,type:x,value:b}=n;if(x==="image"){let w=p?`${p}.`:"";c.append(`${w}x`,"0"),c.append(`${w}y`,"0")}else p&&c.append(p,b)}}else{if(Xu(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Mu,u=null,o=Ou,d=n}return c&&o==="text/plain"&&(d=c,c=void 0),{action:u,method:r.toLowerCase(),encType:o,formData:c,body:d}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function mf(n,a){if(n===!1||n===null||typeof n>"u")throw new Error(a)}function my(n,a,r,u){let o=typeof n=="string"?new URL(n,typeof window>"u"?"server://singlefetch/":window.location.origin):n;return r?o.pathname.endsWith("/")?o.pathname=`${o.pathname}_.${u}`:o.pathname=`${o.pathname}.${u}`:o.pathname==="/"?o.pathname=`_root.${u}`:a&&Gn(o.pathname,a)==="/"?o.pathname=`${Uu(a)}/_root.${u}`:o.pathname=`${Uu(o.pathname)}.${u}`,o}async function n1(n,a){if(n.id in a)return a[n.id];try{let r=await import(n.module);return a[n.id]=r,r}catch(r){return console.error(`Error loading route module \`${n.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function l1(n){return n==null?!1:n.href==null?n.rel==="preload"&&typeof n.imageSrcSet=="string"&&typeof n.imageSizes=="string":typeof n.rel=="string"&&typeof n.href=="string"}async function a1(n,a,r){let u=await Promise.all(n.map(async o=>{let c=a.routes[o.route.id];if(c){let d=await n1(c,r);return d.links?d.links():[]}return[]}));return s1(u.flat(1).filter(l1).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function Fp(n,a,r,u,o,c){let d=(g,p)=>r[p]?g.route.id!==r[p].route.id:!0,m=(g,p)=>{var x;return r[p].pathname!==g.pathname||((x=r[p].route.path)==null?void 0:x.endsWith("*"))&&r[p].params["*"]!==g.params["*"]};return c==="assets"?a.filter((g,p)=>d(g,p)||m(g,p)):c==="data"?a.filter((g,p)=>{var b;let x=u.routes[g.route.id];if(!x||!x.hasLoader)return!1;if(d(g,p)||m(g,p))return!0;if(g.route.shouldRevalidate){let w=g.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:((b=r[0])==null?void 0:b.params)||{},nextUrl:new URL(n,window.origin),nextParams:g.params,defaultShouldRevalidate:!0});if(typeof w=="boolean")return w}return!0}):[]}function i1(n,a,{includeHydrateFallback:r}={}){return r1(n.map(u=>{let o=a.routes[u.route.id];if(!o)return[];let c=[o.module];return o.clientActionModule&&(c=c.concat(o.clientActionModule)),o.clientLoaderModule&&(c=c.concat(o.clientLoaderModule)),r&&o.hydrateFallbackModule&&(c=c.concat(o.hydrateFallbackModule)),o.imports&&(c=c.concat(o.imports)),c}).flat(1))}function r1(n){return[...new Set(n)]}function u1(n){let a={},r=Object.keys(n).sort();for(let u of r)a[u]=n[u];return a}function s1(n,a){let r=new Set;return new Set(a),n.reduce((u,o)=>{let c=JSON.stringify(u1(o));return r.has(c)||(r.add(c),u.push({key:c,link:o})),u},[])}function pf(){let n=C.useContext(Va);return mf(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function o1(){let n=C.useContext(Qu);return mf(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var gf=C.createContext(void 0);gf.displayName="FrameworkContext";function yf(){let n=C.useContext(gf);return mf(n,"You must render this element inside a <HydratedRouter> element"),n}function c1(n,a){let r=C.useContext(gf),[u,o]=C.useState(!1),[c,d]=C.useState(!1),{onFocus:m,onBlur:g,onMouseEnter:p,onMouseLeave:x,onTouchStart:b}=a,w=C.useRef(null);C.useEffect(()=>{if(n==="render"&&d(!0),n==="viewport"){let M=z=>{z.forEach(X=>{d(X.isIntersecting)})},O=new IntersectionObserver(M,{threshold:.5});return w.current&&O.observe(w.current),()=>{O.disconnect()}}},[n]),C.useEffect(()=>{if(u){let M=setTimeout(()=>{d(!0)},100);return()=>{clearTimeout(M)}}},[u]);let S=()=>{o(!0)},R=()=>{o(!1),d(!1)};return r?n!=="intent"?[c,w,{}]:[c,w,{onFocus:Vi(m,S),onBlur:Vi(g,R),onMouseEnter:Vi(p,S),onMouseLeave:Vi(x,R),onTouchStart:Vi(b,S)}]:[!1,w,{}]}function Vi(n,a){return r=>{n&&n(r),r.defaultPrevented||a(r)}}function f1({page:n,...a}){let r=S0(),{router:u}=pf(),o=C.useMemo(()=>Ig(u.routes,n,u.basename),[u.routes,n,u.basename]);return o?r?C.createElement(h1,{page:n,matches:o,...a}):C.createElement(m1,{page:n,matches:o,...a}):null}function d1(n){let{manifest:a,routeModules:r}=yf(),[u,o]=C.useState([]);return C.useEffect(()=>{let c=!1;return a1(n,a,r).then(d=>{c||o(d)}),()=>{c=!0}},[n,a,r]),u}function h1({page:n,matches:a,...r}){let u=$t(),{future:o}=yf(),{basename:c}=pf(),d=C.useMemo(()=>{if(n===u.pathname+u.search+u.hash)return[];let m=my(n,c,o.v8_trailingSlashAwareDataRequests,"rsc"),g=!1,p=[];for(let x of a)typeof x.route.shouldRevalidate=="function"?g=!0:p.push(x.route.id);return g&&p.length>0&&m.searchParams.set("_routes",p.join(",")),[m.pathname+m.search]},[c,o.v8_trailingSlashAwareDataRequests,n,u,a]);return C.createElement(C.Fragment,null,d.map(m=>C.createElement("link",{key:m,rel:"prefetch",as:"fetch",href:m,...r})))}function m1({page:n,matches:a,...r}){let u=$t(),{future:o,manifest:c,routeModules:d}=yf(),{basename:m}=pf(),{loaderData:g,matches:p}=o1(),x=C.useMemo(()=>Fp(n,a,p,c,u,"data"),[n,a,p,c,u]),b=C.useMemo(()=>Fp(n,a,p,c,u,"assets"),[n,a,p,c,u]),w=C.useMemo(()=>{if(n===u.pathname+u.search+u.hash)return[];let M=new Set,O=!1;if(a.forEach(X=>{var J;let k=c.routes[X.route.id];!k||!k.hasLoader||(!x.some(te=>te.route.id===X.route.id)&&X.route.id in g&&((J=d[X.route.id])!=null&&J.shouldRevalidate)||k.hasClientLoader?O=!0:M.add(X.route.id))}),M.size===0)return[];let z=my(n,m,o.v8_trailingSlashAwareDataRequests,"data");return O&&M.size>0&&z.searchParams.set("_routes",a.filter(X=>M.has(X.route.id)).map(X=>X.route.id).join(",")),[z.pathname+z.search]},[m,o.v8_trailingSlashAwareDataRequests,g,u,c,x,a,n,d]),S=C.useMemo(()=>i1(b,c),[b,c]),R=d1(b);return C.createElement(C.Fragment,null,w.map(M=>C.createElement("link",{key:M,rel:"prefetch",as:"fetch",href:M,...r})),S.map(M=>C.createElement("link",{key:M,rel:"modulepreload",href:M,...r})),R.map(({key:M,link:O})=>C.createElement("link",{key:M,nonce:r.nonce,...O,crossOrigin:O.crossOrigin??r.crossOrigin})))}function p1(...n){return a=>{n.forEach(r=>{typeof r=="function"?r(a):r!=null&&(r.current=a)})}}var g1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{g1&&(window.__reactRouterVersion="7.16.0")}catch{}function y1({basename:n,children:a,useTransitions:r,window:u}){let o=C.useRef();o.current==null&&(o.current=Zv({window:u,v5Compat:!0}));let c=o.current,[d,m]=C.useState({action:c.action,location:c.location}),g=C.useCallback(p=>{r===!1?m(p):C.startTransition(()=>m(p))},[r]);return C.useLayoutEffect(()=>c.listen(g),[c,g]),C.createElement(hy,{basename:n,children:a,location:d.location,navigationType:d.action,navigator:c,useTransitions:r})}function x1({basename:n,children:a,useTransitions:r,window:u}){let o=C.useRef();o.current==null&&(o.current=$v({window:u,v5Compat:!0}));let c=o.current,[d,m]=C.useState({action:c.action,location:c.location}),g=C.useCallback(p=>{r===!1?m(p):C.startTransition(()=>m(p))},[r]);return C.useLayoutEffect(()=>c.listen(g),[c,g]),C.createElement(hy,{basename:n,children:a,location:d.location,navigationType:d.action,navigator:c,useTransitions:r})}var py=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ze=C.forwardRef(function({onClick:a,discover:r="render",prefetch:u="none",relative:o,reloadDocument:c,replace:d,mask:m,state:g,target:p,to:x,preventScrollReset:b,viewTransition:w,defaultShouldRevalidate:S,...R},M){let{basename:O,navigator:z,useTransitions:X}=C.useContext(Zt),k=typeof x=="string"&&py.test(x),J=ny(x,O);x=J.to;let te=A0(x,{relative:o}),q=$t(),$=null;if(m){let F=Vu(m,[],q.mask?q.mask.pathname:"/",!0);O!=="/"&&(F.pathname=F.pathname==="/"?O:pn([O,F.pathname])),$=z.createHref(F)}let[ue,ce,ge]=c1(u,R),le=S1(x,{replace:d,mask:m,state:g,target:p,preventScrollReset:b,relative:o,viewTransition:w,defaultShouldRevalidate:S,useTransitions:X});function ee(F){a&&a(F),F.defaultPrevented||le(F)}let Se=!(J.isExternal||c),ie=C.createElement("a",{...R,...ge,href:(Se?$:void 0)||J.absoluteURL||te,onClick:Se?ee:a,ref:p1(M,ce),target:p,"data-discover":!k&&r==="render"?"true":void 0});return ue&&!k?C.createElement(C.Fragment,null,ie,C.createElement(f1,{page:te})):ie});Ze.displayName="Link";var Ji=C.forwardRef(function({"aria-current":a="page",caseSensitive:r=!1,className:u="",end:o=!1,style:c,to:d,viewTransition:m,children:g,...p},x){let b=ar(d,{relative:p.relative}),w=$t(),S=C.useContext(Qu),{navigator:R,basename:M}=C.useContext(Zt),O=S!=null&&T1(b)&&m===!0,z=R.encodeLocation?R.encodeLocation(b).pathname:b.pathname,X=w.pathname,k=S&&S.navigation&&S.navigation.location?S.navigation.location.pathname:null;r||(X=X.toLowerCase(),k=k?k.toLowerCase():null,z=z.toLowerCase()),k&&M&&(k=Gn(k,M)||k);const J=z!=="/"&&z.endsWith("/")?z.length-1:z.length;let te=X===z||!o&&X.startsWith(z)&&X.charAt(J)==="/",q=k!=null&&(k===z||!o&&k.startsWith(z)&&k.charAt(z.length)==="/"),$={isActive:te,isPending:q,isTransitioning:O},ue=te?a:void 0,ce;typeof u=="function"?ce=u($):ce=[u,te?"active":null,q?"pending":null,O?"transitioning":null].filter(Boolean).join(" ");let ge=typeof c=="function"?c($):c;return C.createElement(Ze,{...p,"aria-current":ue,className:ce,ref:x,style:ge,to:d,viewTransition:m},typeof g=="function"?g($):g)});Ji.displayName="NavLink";var b1=C.forwardRef(({discover:n="render",fetcherKey:a,navigate:r,reloadDocument:u,replace:o,state:c,method:d=Mu,action:m,onSubmit:g,relative:p,preventScrollReset:x,viewTransition:b,defaultShouldRevalidate:w,...S},R)=>{let{useTransitions:M}=C.useContext(Zt),O=E1(),z=N1(m,{relative:p}),X=d.toLowerCase()==="get"?"get":"post",k=typeof m=="string"&&py.test(m),J=te=>{if(g&&g(te),te.defaultPrevented)return;te.preventDefault();let q=te.nativeEvent.submitter,$=(q==null?void 0:q.getAttribute("formmethod"))||d,ue=()=>O(q||te.currentTarget,{fetcherKey:a,method:$,navigate:r,replace:o,state:c,relative:p,preventScrollReset:x,viewTransition:b,defaultShouldRevalidate:w});M&&r!==!1?C.startTransition(()=>ue()):ue()};return C.createElement("form",{ref:R,method:X,action:z,onSubmit:u?g:J,...S,"data-discover":!k&&n==="render"?"true":void 0})});b1.displayName="Form";function v1(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function gy(n){let a=C.useContext(Va);return Ie(a,v1(n)),a}function S1(n,{target:a,replace:r,mask:u,state:o,preventScrollReset:c,relative:d,viewTransition:m,defaultShouldRevalidate:g,useTransitions:p}={}){let x=Ku(),b=$t(),w=ar(n,{relative:d});return C.useCallback(S=>{if(I0(S,a)){S.preventDefault();let R=r!==void 0?r:Ha(b)===Ha(w),M=()=>x(n,{replace:R,mask:u,state:o,preventScrollReset:c,relative:d,viewTransition:m,defaultShouldRevalidate:g});p?C.startTransition(()=>M()):M()}},[b,x,w,r,u,o,a,n,c,d,m,g,p])}function Xn(n){Xt(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let a=C.useRef(Xc(n)),r=C.useRef(!1),u=$t(),o=C.useMemo(()=>P0(u.search,r.current?null:a.current),[u.search]),c=Ku(),d=C.useCallback((m,g)=>{const p=Xc(typeof m=="function"?m(new URLSearchParams(o)):m);r.current=!0,c("?"+p,g)},[c,o]);return[o,d]}var w1=0,j1=()=>`__${String(++w1)}__`;function E1(){let{router:n}=gy("useSubmit"),{basename:a}=C.useContext(Zt),r=Y0(),u=n.fetch,o=n.navigate;return C.useCallback(async(c,d={})=>{let{action:m,method:g,encType:p,formData:x,body:b}=t1(c,a);if(d.navigate===!1){let w=d.fetcherKey||j1();await u(w,r,d.action||m,{defaultShouldRevalidate:d.defaultShouldRevalidate,preventScrollReset:d.preventScrollReset,formData:x,body:b,formMethod:d.method||g,formEncType:d.encType||p,flushSync:d.flushSync})}else await o(d.action||m,{defaultShouldRevalidate:d.defaultShouldRevalidate,preventScrollReset:d.preventScrollReset,formData:x,body:b,formMethod:d.method||g,formEncType:d.encType||p,replace:d.replace,state:d.state,fromRouteId:r,flushSync:d.flushSync,viewTransition:d.viewTransition})},[u,o,a,r])}function N1(n,{relative:a}={}){let{basename:r}=C.useContext(Zt),u=C.useContext(on);Ie(u,"useFormAction must be used inside a RouteContext");let[o]=u.matches.slice(-1),c={...ar(n||".",{relative:a})},d=$t();if(n==null){c.search=d.search;let m=new URLSearchParams(c.search),g=m.getAll("index");if(g.some(x=>x==="")){m.delete("index"),g.filter(b=>b).forEach(b=>m.append("index",b));let x=m.toString();c.search=x?`?${x}`:""}}return(!n||n===".")&&o.route.index&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(c.pathname=c.pathname==="/"?r:pn([r,c.pathname])),Ha(c)}function T1(n,{relative:a}={}){let r=C.useContext(iy);Ie(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:u}=gy("useViewTransitionState"),o=ar(n,{relative:a});if(!r.isTransitioning)return!1;let c=Gn(r.currentLocation.pathname,u)||r.currentLocation.pathname,d=Gn(r.nextLocation.pathname,u)||r.nextLocation.pathname;return Bu(o.pathname,d)!=null||Bu(o.pathname,c)!=null}const yy=["messages","locales","attributes","segments","targets"],Ii={locales:"locale",messages:"message",attributes:"attribute",segments:"segment",targets:"target"},xy={locale:"locales",message:"messages",attribute:"attributes",segment:"segments",target:"targets"},Kn={locale:{singular:"Locale",plural:"Locales"},message:{singular:"Message",plural:"Messages"},attribute:{singular:"Attribute",plural:"Attributes"},segment:{singular:"Segment",plural:"Segments"},target:{singular:"Target",plural:"Targets"}};function Et(n){return encodeURIComponent(n)}function Pi(n){return n?`/sets/${Et(n)}`:""}function et(n,a,r){return`${Pi(r)}/${xy[n]}/${Et(a)}`}function Zu(n){return n?`/data/sets/${Et(n)}`:"/data/root"}let by="browser";function Ka(n){const a=n.replace(/^\//,"");return by==="browser"?`/${a}`:a}function C1(n){by=n||"browser"}async function Vl(n){const a=await fetch(n);if(!a.ok)throw new Error(`Unable to load ${n}`);return a.json()}function vy(){return Vl(Ka("data/manifest.json")).catch(()=>Vl("/data/manifest.json"))}function xf(n){return Vl(Ka(`${Zu(n)}/index.json`))}function A1(n,a,r){return Vl(Ka(`${Zu(r)}/entities/${n}/${Et(a)}.json`))}function z1(n,a){return Vl(Ka(`${n}/page-${a}.json`))}function k1(n,a){return Vl(Ka(`${Zu(a)}/duplicates/locales/${Et(n)}.json`))}const Ac=new Map;function R1(n){return Array.from(new TextEncoder().encode(n)).map(a=>a.toString(16).padStart(2,"0")).join("")}function _1(n,a){const r=`${a??"__root__"}:${n}`,u=Ac.get(r);return u?Promise.resolve(u):Vl(Ka(`${Zu(a)}/translations/${R1(n)}.json`)).then(o=>(Ac.set(r,o),o)).catch(()=>{const o={};return Ac.set(r,o),o})}const Sy=C.createContext(null);function M1(n){const[a,r]=C.useState(n.initialManifest||null),[u,o]=C.useState(null);return C.useEffect(()=>{n.initialManifest||vy().then(r).catch(c=>o(c.message))},[n.initialManifest]),u?h.jsx("div",{className:"p-8 text-danger",children:u}):a?h.jsx(Sy.Provider,{value:{manifest:a},children:n.children}):h.jsx("div",{className:"p-8 text-muted",children:"Loading catalog..."})}function Sl(){const n=C.useContext(Sy);if(!n)throw new Error("useCatalog must be used inside CatalogProvider.");return n}const O1="/favicon.png",D1="/logo-text.png",Jp={page:"min-h-screen bg-background text-text",pageShell:"m-8 mx-auto max-w-5xl"};function L1({isActive:n}){return["flex items-center justify-between rounded-lg px-3 py-2 text-sm font-bold",n?"bg-header-active text-header-text":"text-muted hover:bg-elevated hover:text-text"].join(" ")}function B1(n){const[a,r]=C.useState(null),u=Pi(n.setKey),o="History";return C.useEffect(()=>{r(null),xf(n.setKey).then(r).catch(()=>r(null))},[n.setKey]),h.jsxs("aside",{className:"rounded-lg bg-surface p-4 shadow-md ring-1 ring-black/5 md:w-56",children:[h.jsx("div",{className:"mb-3 text-xs font-black uppercase tracking-wide text-muted",children:h.jsx("span",{className:"block px-3 text-muted",children:n.setKey?"Set":"Project"})}),h.jsxs("nav",{className:"space-y-1",children:[yy.map(c=>{const d=Ii[c];return h.jsxs(Ji,{to:`${u}/${c}`,className:L1,children:[h.jsx("span",{children:Kn[d].plural}),h.jsx("span",{className:"rounded-full bg-pill px-2 py-0.5 text-xs font-black text-header",children:(a==null?void 0:a.counts[d])??"-"})]},c)}),h.jsx(Ji,{to:`${u}/history`,className:({isActive:c})=>["mt-4 block rounded-lg px-3 py-2 text-sm font-bold",c?"bg-header-active text-header-text":"text-muted hover:bg-elevated hover:text-text"].join(" "),children:o})]})]})}function Ip(n){return yy.indexOf(n)!==-1}function U1(n,a,r){const u=Ii[a];return(n.entities[u]||[]).some(c=>c.key===r)}async function H1(n,a){const r=Et(a),u=n.match(/^\/sets\/[^/]+\/([^/]+)$/);if(u&&Ip(u[1]))return`/sets/${r}/${u[1]}`;if(n.match(/^\/sets\/[^/]+\/history$/))return`/sets/${r}/history`;const o=n.match(/^\/sets\/[^/]+\/([^/]+)\/([^/]+)(\/.*)?$/);if(o&&Ip(o[1])){const c=o[1],d=decodeURIComponent(o[2]),m=o[3]||"";try{const g=await xf(a);return U1(g,c,d)?`/sets/${r}/${c}/${Et(d)}${m}`:`/sets/${r}/${c}`}catch{return`/sets/${r}/${c}`}}return`/sets/${r}/messages`}function q1(n){const{manifest:a}=Sl(),r=$t(),u=Ku(),o=C.useId(),c=C.useRef(null),d=n.currentSetKey||a.setKeys[0]||"";if(!a.sets||a.setKeys.length===0)return null;function m(){const g=c.current;g&&(g.focus(),typeof g.showPicker=="function"&&g.showPicker())}return h.jsxs("label",{htmlFor:o,className:"relative inline-flex cursor-pointer items-center gap-2 rounded-lg bg-header-active px-3 py-1.5 text-sm font-semibold text-header-text",onClick:g=>{g.target instanceof HTMLSelectElement||m()},children:[h.jsx("span",{className:"text-xs font-black uppercase tracking-wide text-pill",children:"Set"}),h.jsx("select",{id:o,ref:c,value:d,onChange:async g=>{const p=g.target.value;u(await H1(r.pathname,p))},className:"max-w-44 appearance-none bg-transparent pr-7 font-black text-header-text outline-none","aria-label":"Switch catalog set",children:a.setKeys.map(g=>h.jsx("option",{value:g,children:g},g))}),h.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 20 20",fill:"none",className:"pointer-events-none absolute right-3 h-4 w-4 text-pill",children:h.jsx("path",{d:"M6 8l4 4 4-4",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})]})}function Y1(n){return n.provider==="github"?h.jsx("svg",{"aria-hidden":"true",className:"h-5 w-5",viewBox:"0 0 16 16",fill:"currentColor",children:h.jsx("path",{d:"M8 0C3.58 0 0 3.69 0 8.24c0 3.64 2.29 6.72 5.47 7.81.4.08.55-.18.55-.4 0-.2-.01-.86-.01-1.56-2.01.38-2.53-.5-2.69-.96-.09-.24-.48-.96-.82-1.15-.28-.16-.68-.55-.01-.56.63-.01 1.08.6 1.23.85.72 1.25 1.87.9 2.33.69.07-.54.28-.9.51-1.11-1.78-.21-3.64-.92-3.64-4.07 0-.9.31-1.64.82-2.22-.08-.21-.36-1.05.08-2.19 0 0 .67-.22 2.2.85A7.43 7.43 0 0 1 8 3.94c.68 0 1.36.09 2 .28 1.52-1.07 2.19-.85 2.19-.85.44 1.14.16 1.98.08 2.19.51.58.82 1.32.82 2.22 0 3.16-1.87 3.86-3.65 4.07.29.26.54.76.54 1.54 0 1.11-.01 2.01-.01 2.28 0 .22.15.48.55.4A8.13 8.13 0 0 0 16 8.24C16 3.69 12.42 0 8 0Z"})}):n.provider==="gitlab"?h.jsx("svg",{"aria-hidden":"true",className:"h-5 w-5",viewBox:"0 0 24 24",fill:"currentColor",children:h.jsx("path",{d:"m22.75 9.77-.03-.08-2.17-6.69a.57.57 0 0 0-.55-.39.58.58 0 0 0-.52.35l-1.47 4.48H5.99L4.52 2.96A.58.58 0 0 0 4 2.61a.57.57 0 0 0-.55.39L1.28 9.69l-.03.08a1.54 1.54 0 0 0 .51 1.73l.01.01 10.22 7.43 10.24-7.44.01-.01a1.54 1.54 0 0 0 .51-1.72Z"})}):n.provider==="bitbucket"?h.jsx("svg",{"aria-hidden":"true",className:"h-5 w-5",viewBox:"0 0 24 24",fill:"currentColor",children:h.jsx("path",{d:"M2.19 3.25a.77.77 0 0 0-.76.89l2.7 16.42a1.02 1.02 0 0 0 1 .86H18.9a1.02 1.02 0 0 0 1-.82l2.69-16.46a.77.77 0 0 0-.76-.89H2.19Zm13.36 10.71H9.46l-1.1-5.83h8.25l-1.06 5.83Z"})}):null}function V1(n){return n==="github"||n==="gitlab"||n==="bitbucket"}function Q1(n){const a=new Date(n);if(Number.isNaN(a.getTime()))return n;const r=Date.UTC(a.getFullYear(),a.getMonth(),a.getDate(),a.getHours(),a.getMinutes(),a.getSeconds(),a.getMilliseconds()),u=Math.round((r-a.getTime())/6e4),o=u>=0?"+":"-",c=String(Math.floor(Math.abs(u)/60)).padStart(2,"0"),d=String(Math.abs(u)%60).padStart(2,"0");return`${new Date(a.getTime()+u*60*1e3).toISOString().replace("T"," ").replace(/\.\d{3}Z$/,"")} ${o}${c}:${d}`}function K1(n){var d;const{manifest:a}=Sl(),u=$t().pathname.match(/^\/sets\/([^/]+)/),o=u?decodeURIComponent(u[1]):void 0,c=!a.sets||!!o;return h.jsxs("div",{className:Jp.page,children:[h.jsx("header",{className:"bg-header",children:h.jsxs("nav",{className:"mx-auto flex max-w-5xl items-center justify-between gap-4 px-3 py-3 sm:px-4",children:[h.jsx("div",{className:"flex min-w-0 flex-1 items-center",children:h.jsxs(Ji,{to:"/",className:["flex min-w-0 max-w-full items-center gap-2.5 rounded-lg py-1 pr-2 outline-none","ring-offset-2 ring-offset-header focus-visible:ring-2 focus-visible:ring-header-text"].join(" "),"aria-label":"Messagevisor Catalog home",children:[h.jsx("img",{src:O1,alt:"",width:32,height:32,className:"h-8 w-8 shrink-0 object-contain",decoding:"async"}),h.jsx("img",{src:D1,alt:"",className:"h-auto max-h-4 min-w-0 shrink object-contain object-left pl-2",decoding:"async"})]})}),h.jsxs("div",{className:"flex items-center gap-3",children:[h.jsx(q1,{currentSetKey:o}),((d=a.links)==null?void 0:d.repository)&&V1(a.links.provider)&&h.jsx("a",{href:a.links.repository,target:"_blank",rel:"noreferrer",className:"rounded-lg px-3 py-2 text-header-text hover:bg-header-active","aria-label":`Open ${a.links.provider||"repository"}`,children:h.jsx(Y1,{provider:a.links.provider})})]})]})}),h.jsx("main",{className:Jp.pageShell,children:h.jsxs("div",{className:c?"items-start gap-6 md:flex":"",children:[c&&h.jsx(B1,{setKey:o}),h.jsxs("div",{className:["min-w-0",c?"flex-1":"w-full"].filter(Boolean).join(" "),children:[h.jsx("section",{className:"overflow-hidden rounded-lg bg-surface shadow",children:n.children}),h.jsxs("footer",{className:"mt-4 pt-3 text-center",children:[h.jsxs("p",{className:"pb-2 text-xs leading-5 text-faint",children:["Generated at ",Q1(a.generatedAt)]}),h.jsxs("p",{className:"pb-5 text-xs font-medium leading-5 text-muted",children:["Built using"," ",h.jsx("a",{target:"_blank",rel:"noreferrer",href:"https://messagevisor.com",className:"font-semibold hover:underline",children:"Messagevisor"})]})]})]})]})})]})}function G1(){const{manifest:n}=Sl();if(!n.sets)return h.jsx(bl,{to:"/messages",replace:!0});const a=n.setKeys[0];return h.jsx(bl,{to:a?`/sets/${Et(a)}/messages`:"/history",replace:!0})}const X1={neutral:"border-pill bg-pill text-text",success:"border-success-outline bg-success-surface text-text",warning:"border-warning-outline bg-warning-surface text-text",danger:"border-danger-outline bg-danger-surface text-danger",primary:"border-pill bg-pill text-text"};function sn(n){return h.jsx("span",{className:`inline-flex rounded-full border px-2 py-0.5 text-xs font-medium ${X1[n.tone||"neutral"]}`,children:n.children})}function qa(n){return h.jsxs("div",{className:"mx-6 rounded border-2 border-warning-outline bg-warning-surface p-4 text-center text-text",children:[h.jsx("p",{className:"font-medium",children:n.title}),n.description&&h.jsx("p",{className:"mt-1 text-sm text-muted",children:n.description})]})}function $u({className:n="",...a}){return h.jsx("input",{className:`w-full rounded-full border border-border bg-surface px-5 py-2 text-xl text-text outline-none placeholder:text-placeholder focus:border-primary ${n}`,...a})}function wy({className:n="",...a}){return h.jsx("button",{className:`rounded border border-border bg-elevated px-4 py-2 text-sm font-bold text-muted shadow-sm hover:bg-background ${n}`,...a})}function Z1(n){return n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function $1(n){const a=Array.isArray(n)?n:[n];return Array.from(new Set(a.map(r=>r.trim()).filter(r=>r.length>0))).sort((r,u)=>u.length-r.length)}function Ve(n){const a=$1(n.query);if(a.length===0)return h.jsx(h.Fragment,{children:n.text});const r=new RegExp(a.map(Z1).join("|"),"gi"),u=[];let o=0,c=0;for(const d of n.text.matchAll(r))d.index!==void 0&&d.index>o&&u.push(n.text.slice(o,d.index)),d.index!==void 0&&(u.push(h.jsx(jy,{children:d[0]},`hm-${d.index}-${c++}`)),o=d.index+d[0].length);return o<n.text.length&&u.push(n.text.slice(o)),h.jsx(h.Fragment,{children:u})}function jy(n){return h.jsx("mark",{className:["rounded-[3px] bg-amber-100 px-0.5 py-px text-inherit","shadow-[inset_0_-2px_0_0_rgba(251,191,36,0.35)] ring-1 ring-amber-400/25 ring-inset","transition-[background-color,box-shadow] duration-150"].join(" "),children:n.children})}function F1(n,a){const r=n.toLowerCase(),u=[];for(const o of a){const c=o.trim().toLowerCase();if(!c)continue;let d=r.indexOf(c);for(;d!==-1;)u.push({start:d,end:d+c.length}),d=r.indexOf(c,d+c.length)}return u.sort((o,c)=>o.start-c.start||c.end-o.end).reduce((o,c)=>{const d=o[o.length-1];return!d||c.start>d.end?o.push({...c}):d.end=Math.max(d.end,c.end),o},[])}function Au(n){return n.split(".").flatMap((a,r,u)=>{const o=[a];return r<u.length-1&&o.push(h.jsxs(C.Fragment,{children:[".",h.jsx("wbr",{})]},`dot-${r}`)),o})}function J1(n,a){const r=F1(n,a);if(r.length===0)return Au(n);const u=[];let o=0;return r.forEach((c,d)=>{c.start>o&&u.push(h.jsx(C.Fragment,{children:Au(n.slice(o,c.start))},`text-${o}`)),u.push(h.jsx(jy,{children:Au(n.slice(c.start,c.end))},`highlight-${c.start}-${d}`)),o=c.end}),o<n.length&&u.push(h.jsx(C.Fragment,{children:Au(n.slice(o))},`text-${o}`)),u}function vl(n){const a=n.highlightQuery||[];return h.jsx("span",{className:["inline leading-snug [overflow-wrap:anywhere]",n.className||""].join(" "),children:J1(n.value,a)})}const Pp=1e3,zc=10;function I1(n){const a=[];let r="",u=!1;for(const o of n)o==='"'?(u=!u,r+=o):o===" "&&!u?(r&&a.push(r),r=""):r+=o;return r&&a.push(r),a}function Wi(n){const a=[],r=[];for(const u of I1(n.trim())){const o=u.indexOf(":");if(o>0){const c=u.slice(0,o).toLowerCase();let d=u.slice(o+1);d.startsWith('"')&&d.endsWith('"')&&d.length>2&&(d=d.slice(1,-1)),d&&r.push({key:c,value:d})}else a.push(u.toLowerCase())}return{freeText:a,qualifiers:r}}function P1(n,a,r,u){var g;const{freeText:o,qualifiers:c}=a;if(o.length>0){const p=n.key.toLowerCase();if(!o.every(x=>p.includes(x)))return!1}const d=c.some(p=>p.key==="has"&&p.value==="overrides"),m=c.filter(p=>p.key==="locale").map(p=>p.value.toLowerCase());for(const p of c)switch(p.key){case"description":{if(!(n.description||"").toLowerCase().includes(p.value.toLowerCase()))return!1;break}case"target":{if(!(n.targets||[]).map(b=>b.toLowerCase()).includes(p.value.toLowerCase()))return!1;break}case"is":{if(p.value==="deprecated"&&!n.deprecated||p.value==="archived"&&!n.archived)return!1;break}case"has":{if(p.value==="overrides"){if(m.length>0){const x=(n.overrideLocales||[]).map(b=>b.toLowerCase());if(!m.every(b=>x.includes(b)))return!1}else if(!((g=n.overrideLocales)!=null&&g.length))return!1}break}case"locale":{if(!d&&!(n.locales||[]).map(b=>b.toLowerCase()).includes(p.value.toLowerCase()))return!1;break}case"translation":{if(!u)break;if(p.value.length<3||!r)return!0;const x=r[n.key];if(!x||x.length===0)return!1;if(p.value.length===3)break;const b=p.value.toLowerCase();if(!x.some(w=>w.includes(b)))return!1;break}}return!0}function Ey(n,a,r,u){const o=a,c=r;return n==="message"?[...u?['translation:"keyword"']:[],...o?[`target:${o}`]:[],...c?[`locale:${c}`]:[],'description:"keyword"',"has:overrides",...c?[`has:overrides locale:${c}`]:["has:overrides"],"is:deprecated","is:archived"]:null}function W1({type:n,query:a,firstTargetKey:r,firstLocaleKey:u,translationSearchEnabled:o,onHintClick:c}){const d=Ey(n,r,u,o);return d?h.jsxs("div",{className:"flex flex-wrap items-center gap-x-2 gap-y-1.5 pt-2 text-xs text-muted",children:[h.jsx("span",{className:"shrink-0",children:"Try:"}),d.map(m=>{const g=a.trim().split(/\s+/).some(p=>p.toLowerCase()===m.toLowerCase());return h.jsx("button",{type:"button",onClick:()=>c(m),className:["cursor-pointer rounded px-1.5 py-0.5 font-mono transition-colors",g?"bg-primary/10 text-primary":"bg-elevated text-muted hover:text-text"].join(" "),children:m},m)})]}):null}function eS(n){return h.jsxs("div",{className:"flex flex-wrap gap-2",children:[n.archived&&h.jsx(sn,{tone:"danger",children:"archived"}),n.deprecated&&h.jsx(sn,{tone:"warning",children:"deprecated"})]})}function tS(n){if(!n.entity.lastModified)return h.jsx("span",{children:"Last modified n/a"});const a=new Date(n.entity.lastModified.timestamp),r=Number.isNaN(a.getTime())?n.entity.lastModified.timestamp:new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric",year:"numeric"}).format(a);return h.jsxs("span",{children:["Last modified by"," ",h.jsx("span",{className:"font-semibold",children:h.jsx(Ve,{text:n.entity.lastModified.author,query:n.highlightQuery})})," ","on ",h.jsx(Ve,{text:r,query:n.highlightQuery})]})}function nS(n,a){return n==="target"?[`${a.messageCount||0} ${a.messageCount===1?"message":"messages"}`]:a.targets||[]}function kc(n){return Array.from(new Set(n.map(a=>a.trim()).filter(Boolean)))}function lS(n){const a=Wi(n),r=kc(a.freeText),u=kc(a.qualifiers.filter(c=>c.key==="description").map(c=>c.value)),o=kc(a.qualifiers.filter(c=>c.key==="target"||c.key==="locale").map(c=>c.value));return{key:r,description:u,relationship:o,lastModified:r}}function aS(n){return!n||n==="name"||n==="name:asc"||n==="asc"?"asc":n==="-name"||n==="name:desc"||n==="desc"?"desc":"asc"}function Rc(n,a,r){const u=new URLSearchParams(n);return r?u.set(a,r):u.delete(a),u}function iS(n){var ee,Se,ie,F,B,Z;const[a,r]=Xn(),[u,o]=C.useState(!1),[c,d]=C.useState(!1),[m,g]=C.useState(null),[p,x]=C.useState(null),b=C.useRef(null),w=a.get("q")||"",[S,R]=C.useState(w);C.useEffect(()=>{R(w)},[w]);const M=(ie=(Se=(ee=n.allEntities)==null?void 0:ee.target)==null?void 0:Se.find(P=>!P.archived))==null?void 0:ie.key,O=(Z=(B=(F=n.allEntities)==null?void 0:F.locale)==null?void 0:B.find(P=>!P.archived))==null?void 0:Z.key,z=n.translationSearchEnabled===!0,X=Ey(n.type,M,O,z)!==null,k=Wi(w).qualifiers.find(P=>P.key==="translation"),J=z&&k&&k.value.length>=3?k.value.slice(0,3).toLowerCase():null;C.useEffect(()=>{if(b.current&&clearTimeout(b.current),!J){g(null),x(null);return}if(J!==p)return b.current=setTimeout(()=>{b.current=null,_1(J,n.setKey).then(P=>{g(P),x(J)})},300),()=>{b.current&&clearTimeout(b.current)}},[J,p,n.setKey]);const te=aS(a.get("sort")),q=p===J?m:null,$=C.useMemo(()=>lS(w),[w]),ue=C.useMemo(()=>{const P=Wi(w),fe=w.trim().length>0;return n.entities.filter(T=>fe?P1(T,P,q,z):!0).slice().sort((T,Y)=>{const j=T.key.localeCompare(T.key===Y.key?"":Y.key);return te==="desc"?j*-1:j})},[w,n.entities,te,q,z]),ce=u?ue:ue.slice(0,Pp),ge=ue.length>Pp&&!u;C.useEffect(()=>{o(!1)},[w,te,n.type,n.setKey]);function le(P){const fe=w.trim(),E=fe.split(/\s+/).filter(Boolean),T=E.findIndex(j=>j.toLowerCase()===P.toLowerCase()),Y=T!==-1?E.filter((j,ne)=>ne!==T).join(" "):fe?`${fe} ${P}`:P;r(Rc(a,"q",Y||void 0))}return h.jsxs("div",{className:"space-y-4",children:[h.jsx("div",{className:"px-6 pt-1",children:h.jsxs("div",{className:"grid gap-3 md:grid-cols-[minmax(0,1fr)_auto]",children:[h.jsxs("div",{children:[h.jsxs("div",{className:"relative",children:[h.jsx($u,{value:S,onChange:P=>{const fe=P.target.value;R(fe),r(Rc(a,"q",fe.trim()?fe:void 0))},placeholder:`Search ${Kn[n.type].plural.toLowerCase()}...`,className:X?"pr-10":""}),X&&h.jsx("button",{type:"button",onClick:()=>d(P=>!P),"aria-label":c?"Hide advanced search hints":"Show advanced search hints",className:["absolute right-3 top-1/2 -translate-y-1/2 flex h-5 w-5 items-center justify-center rounded-full border text-xs font-bold transition-colors",c?"border-primary bg-primary/10 text-primary":"border-border bg-surface text-muted hover:border-primary hover:text-primary"].join(" "),children:"?"})]}),h.jsx("div",{className:["grid transition-all duration-200 ease-in-out",c?"grid-rows-[1fr]":"grid-rows-[0fr]"].join(" "),children:h.jsx("div",{className:"overflow-hidden pl-5",children:h.jsx(W1,{type:n.type,query:w,firstTargetKey:M,firstLocaleKey:O,translationSearchEnabled:z,onHintClick:le})})})]}),h.jsxs("button",{type:"button",className:"inline-flex h-[46px] w-fit max-w-full cursor-pointer items-center gap-2 self-start rounded-full border border-border bg-surface px-3 py-2 text-left text-sm font-semibold text-muted outline-none focus-visible:ring-2 focus-visible:ring-ring md:justify-self-end",onClick:()=>r(Rc(a,"sort",te==="desc"?void 0:"-name")),"aria-label":te==="desc"?"Sorted Z-A by name. Activate to sort A-Z.":"Sorted A-Z by name. Activate to sort Z-A.",children:[h.jsx("span",{children:"Sort"}),h.jsx("span",{className:"whitespace-nowrap font-bold text-text",children:te==="desc"?"Z-A":"A-Z"})]})]})}),ue.length===0&&h.jsx(qa,{title:"No results found"}),h.jsx("div",{className:"divide-y divide-border bg-surface",children:ce.map(P=>h.jsx(Ze,{to:et(n.type,P.key,n.setKey),className:"block px-6 py-3 hover:bg-elevated",children:h.jsx("div",{className:"flex flex-col justify-between gap-3 md:flex-row md:items-start",children:h.jsxs("div",{className:"min-w-0 flex-1",children:[h.jsxs("div",{className:"flex flex-col justify-between gap-2 md:flex-row md:items-start",children:[h.jsxs("div",{className:"min-w-0",children:[h.jsx(vl,{value:P.key,className:"text-sm font-semibold text-primary",highlightQuery:$.key}),h.jsx("div",{className:"mt-1 truncate text-sm text-muted",children:h.jsx(Ve,{text:P.description||"No description",query:$.description})})]}),h.jsx("div",{className:"shrink-0",children:eS(P)})]}),h.jsxs("div",{className:"mt-2 flex flex-col gap-2 text-xs text-muted md:flex-row md:items-center md:justify-between",children:[h.jsx("div",{className:"flex flex-wrap gap-2",children:nS(n.type,P).map(fe=>h.jsx(sn,{children:h.jsx(Ve,{text:fe,query:$.relationship})},fe))}),h.jsx("span",{className:"shrink-0 md:text-right",children:h.jsx(tS,{entity:P,highlightQuery:$.lastModified})})]})]})})},P.key))}),h.jsxs("div",{className:"space-y-4 px-6 pb-6",children:[h.jsxs("p",{className:"text-center text-sm text-muted",children:[ce.length," of ",ue.length," ",Kn[n.type].plural.toLowerCase(),ue.length!==n.entities.length?` (${n.entities.length} total)`:""]}),ge&&h.jsx("div",{className:"flex justify-center",children:h.jsxs(wy,{onClick:()=>o(!0),children:["Load all ",ue.length," ",Kn[n.type].plural.toLowerCase()]})})]})]})}function bf(n){return h.jsxs("div",{className:"mb-6 flex flex-col justify-between gap-4 border-b border-border px-6 pb-4 pt-8 md:flex-row md:items-start",children:[h.jsxs("div",{className:"min-w-0 flex-1",children:[h.jsx("h1",{className:"min-w-0 text-3xl font-black text-text [overflow-wrap:anywhere]",children:n.title}),n.description&&h.jsx("div",{className:"mt-2 min-w-0 text-sm text-muted [overflow-wrap:anywhere]",children:n.description})]}),n.actions?h.jsx("div",{className:"shrink-0",children:n.actions}):null]})}function rS(n){return n==="locales"||n==="messages"||n==="attributes"||n==="segments"||n==="targets"}function Wp(){var g;const{entityPath:n,setKey:a}=Gu(),{manifest:r}=Sl(),[u,o]=C.useState(null),[c,d]=C.useState(null);if(C.useEffect(()=>{o(null),d(null),xf(a).then(o).catch(p=>d(p.message))},[a]),!rS(n))return h.jsx(bl,{to:"locales",replace:!0});const m=Ii[n];return c?h.jsx(qa,{title:"Unable to load catalog index",description:c}):u?h.jsxs("div",{children:[h.jsx(bf,{title:Kn[m].plural}),h.jsx(iS,{type:m,entities:u.entities[m],setKey:a,allEntities:u.entities,translationSearchEnabled:((g=r.features)==null?void 0:g.translationSearch)===!0})]}):h.jsxs("div",{className:"text-muted",children:["Loading ",Kn[m].plural.toLowerCase(),"..."]})}function uS(n){const a=n%100;if(a>=11&&a<=13)return`${n}th`;switch(n%10){case 1:return`${n}st`;case 2:return`${n}nd`;case 3:return`${n}rd`;default:return`${n}th`}}function sS(n){var p;const u=(p=new Intl.DateTimeFormat(void 0,{timeZoneName:"short"}).formatToParts(n).find(x=>x.type==="timeZoneName"))==null?void 0:p.value;if(u&&u.trim())return u;const o=Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()),c=Math.round((o-n.getTime())/6e4),d=c>=0?"+":"-",m=String(Math.floor(Math.abs(c)/60)).padStart(2,"0"),g=String(Math.abs(c)%60).padStart(2,"0");return`UTC${d}${m}:${g}`}function oS(n){var p,x,b,w,S,R;const a=new Date(n);if(Number.isNaN(a.getTime()))return n;const r=new Intl.DateTimeFormat(void 0,{month:"long",day:"numeric",year:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}).formatToParts(a),u=(p=r.find(M=>M.type==="month"))==null?void 0:p.value,o=(x=r.find(M=>M.type==="day"))==null?void 0:x.value,c=(b=r.find(M=>M.type==="year"))==null?void 0:b.value,d=(w=r.find(M=>M.type==="hour"))==null?void 0:w.value,m=(S=r.find(M=>M.type==="minute"))==null?void 0:S.value,g=(R=r.find(M=>M.type==="second"))==null?void 0:R.value;return!u||!o||!c||!d||!m||!g?n:`${u} ${uS(Number(o))}, ${c} at ${d}:${m}:${g} ${sS(a)}`}function cS(n){var c;const[a,r]=C.useState(!1),u=n.entry.entities.length>zc,o=a?n.entry.entities:n.entry.entities.slice(0,zc);return h.jsxs("li",{className:"rounded-lg border border-border bg-surface p-4 shadow-sm ring-1 ring-black/5",children:[h.jsxs("div",{className:"text-sm",children:[h.jsx("span",{className:"font-semibold",children:n.entry.author})," ",h.jsx("a",{className:"text-primary hover:underline",href:((c=n.commitUrl)==null?void 0:c.replace("{{hash}}",n.entry.commit))||`#${n.entry.commit}`,target:"_blank",rel:"noreferrer",children:oS(n.entry.timestamp)})]}),h.jsx("ul",{className:"mt-3 list-inside list-disc space-y-1 text-sm text-muted",children:o.map(d=>h.jsxs("li",{className:"[overflow-wrap:anywhere]",children:[d.type!=="test"?Kn[d.type].singular:"Test"," ",d.type!=="test"?h.jsx(Ze,{className:"font-medium text-primary hover:underline",to:et(d.type,d.key,d.set||n.setKey),children:h.jsx(vl,{value:d.key,className:"font-medium"})}):h.jsx(vl,{value:d.key,className:"font-medium"})]},`${d.type}-${d.key}`))}),u&&h.jsx("button",{type:"button",onClick:()=>r(d=>!d),className:"mt-3 text-sm font-semibold text-primary hover:underline",children:a?"See less":`See more (${n.entry.entities.length-zc} more)`})]},`${n.entry.commit}-${n.entry.timestamp}`)}function Ny(n){const[a,r]=C.useState([]),[u,o]=C.useState(0),[c,d]=C.useState(1),[m,g]=C.useState(null);async function p(x){try{const b=await z1(n.path,x);r(w=>[...w,...b.entries]),o(b.page),d(b.totalPages)}catch(b){g(b.message)}}return C.useEffect(()=>{r([]),o(0),d(1),g(null),p(1)},[n.path]),m?h.jsx(qa,{title:"History unavailable",description:m}):a.length===0&&u>0?h.jsx(qa,{title:"No history found"}):h.jsxs("div",{className:"space-y-4",children:[h.jsx("ol",{className:"space-y-4",children:a.map(x=>h.jsx(cS,{entry:x,setKey:n.setKey,commitUrl:n.commitUrl},`${x.commit}-${x.timestamp}`))}),u<c&&h.jsx(wy,{onClick:()=>p(u+1),className:"w-full",children:"Load more"})]})}function eg(){var u;const{manifest:n}=Sl(),{setKey:a}=Gu(),r=a?`/data/sets/${Et(a)}/history`:"/data/project/history";return h.jsxs("div",{children:[h.jsx(bf,{title:a?`History for ${a}`:"Project History",description:"Recent Git changes for authored definitions."}),h.jsx("div",{className:"px-6 pb-6",children:h.jsx(Ny,{path:r,setKey:a,commitUrl:(u=n.links)==null?void 0:u.commit})})]})}function fS(n){return h.jsxs("div",{children:[h.jsx("nav",{className:"border-b border-border",children:n.tabs.map(a=>h.jsx(Ji,{to:a.to,end:a.end,className:({isActive:r})=>["inline-block min-w-28 border-b-2 px-3 pb-4 pt-2 text-center text-sm font-medium",r?"border-primary text-primary":"border-transparent text-muted hover:border-border hover:text-text"].join(" "),children:a.label},a.to))}),h.jsx("div",{className:"px-6 py-6",children:n.children})]})}function ir(n){return h.jsx("pre",{className:"max-w-full whitespace-pre-wrap rounded border border-border bg-elevated p-4 text-xs text-text [overflow-wrap:anywhere]",children:typeof n.value=="string"?n.value:JSON.stringify(n.value,null,2)})}const dS={neutral:{label:"bg-elevated text-muted",value:"bg-surface text-text",link:"text-primary hover:underline"},inheritance:{label:"bg-elevated text-muted",value:"bg-surface text-text",link:"text-primary hover:underline"},override:{label:"bg-pill text-text",value:"bg-surface text-text",link:"text-primary hover:underline"}};function er(n){const a=dS[n.tone||"neutral"],r=n.to?h.jsx(Ze,{to:n.to,className:`font-medium ${a.link}`,children:n.value}):h.jsx("span",{className:"font-medium text-text",children:n.value});return h.jsxs("span",{className:["inline-flex overflow-hidden rounded-md border border-border shadow-sm",n.compact?"text-[10px] leading-4":"text-xs"].join(" "),children:[h.jsx("span",{className:`${n.compact?"px-1.5 py-px":"px-2 py-1"} ${a.label}`,children:n.label}),h.jsx("span",{className:`${n.compact?"px-1.5 py-px":"px-2 py-1"} ${a.value}`,children:r})]})}function hS(n){return h.jsx("dl",{className:"grid grid-cols-1 gap-x-4 gap-y-8 md:grid-cols-2",children:n.fields.map(a=>h.jsxs("div",{className:a.fullWidth?"md:col-span-2":"",children:[h.jsx("dt",{className:"text-sm font-medium text-muted",children:a.label}),h.jsx("dd",{className:"mt-1 min-w-0 text-sm [overflow-wrap:anywhere]",children:a.value||"n/a"})]},a.label))})}function Zc(n){return typeof n>"u"?"":n===null?"null":Array.isArray(n)?n.map(a=>Zc(a)).join(", "):typeof n=="object"?JSON.stringify(n):String(n)}function mS(n){return n.split(".")[0]}function pS(n){if("attribute"in n.condition){const a=String(n.condition.attribute);return h.jsx("div",{className:"rounded-lg border border-border bg-surface px-4 py-3 shadow-sm",children:h.jsxs("div",{className:"flex flex-wrap items-center gap-2 text-sm",children:[h.jsx(sn,{tone:"primary",children:"attribute"}),h.jsx(Ze,{to:et("attribute",mS(a),n.setKey),className:"font-semibold text-primary hover:underline",children:a}),h.jsx("span",{className:"font-medium text-text",children:n.condition.operator}),"value"in n.condition&&h.jsx("span",{className:"text-muted",children:Zc(n.condition.value)})]})})}return"feature"in n.condition?h.jsx("div",{className:"rounded-lg border border-border bg-surface px-4 py-3 shadow-sm",children:h.jsxs("div",{className:"flex flex-wrap items-center gap-2 text-sm",children:[h.jsx(sn,{tone:"success",children:"feature"}),h.jsx("span",{className:"font-semibold text-text",children:String(n.condition.feature)}),h.jsx("span",{className:"font-medium text-text",children:n.condition.operator})]})}):"experiment"in n.condition?h.jsx("div",{className:"rounded-lg border border-border bg-surface px-4 py-3 shadow-sm",children:h.jsxs("div",{className:"flex flex-wrap items-center gap-2 text-sm",children:[h.jsx(sn,{tone:"warning",children:"experiment"}),h.jsx("span",{className:"font-semibold text-text",children:String(n.condition.experiment)}),h.jsx("span",{className:"font-medium text-text",children:n.condition.operator}),h.jsx("span",{className:"text-muted",children:Zc(n.condition.value)})]})}):h.jsx("div",{className:"rounded-lg border border-border bg-surface px-4 py-3 text-sm text-muted shadow-sm",children:"Unsupported condition"})}function Ty(n){const a=n.condition;if(typeof a=="string")return h.jsx("div",{className:"rounded-lg border border-border bg-surface px-4 py-3 text-sm shadow-sm",children:a==="*"?"Everyone":a});if("and"in a||"or"in a||"not"in a){const r="and"in a?"and":"or"in a?"or":"not",u=a[r];return h.jsxs("div",{className:"rounded-lg border border-border bg-elevated p-4",children:[h.jsxs("div",{className:"mb-3 flex items-center gap-2",children:[h.jsx(sn,{tone:"neutral",children:r.toUpperCase()}),h.jsxs("span",{className:"text-sm text-muted",children:[u.length," branch",u.length===1?"":"es"]})]}),h.jsx("div",{className:"ml-3 space-y-3 border-l border-border pl-4",children:u.map((o,c)=>h.jsx(Ty,{condition:o,setKey:n.setKey},`${r}-${c}`))})]})}return h.jsx(pS,{condition:a,setKey:n.setKey})}function vf(n){if(!n.conditions)return h.jsx("p",{className:"text-sm text-muted",children:"No conditions found."});if(n.conditions==="*")return h.jsx("div",{className:"rounded-lg border border-border bg-surface px-4 py-3 text-sm shadow-sm",children:"Everyone"});const a=Array.isArray(n.conditions)?n.conditions:[n.conditions];return h.jsx("div",{className:"space-y-3",children:a.map((r,u)=>h.jsx(Ty,{condition:r,setKey:n.setKey},u))})}function gS(n){return h.jsx("div",{className:"rounded-lg border border-border bg-surface px-4 py-3 shadow-sm",children:h.jsxs("div",{className:"flex flex-wrap items-center gap-2 text-sm",children:[h.jsx(sn,{tone:"primary",children:"segment"}),h.jsx(Ze,{to:et("segment",n.segmentKey,n.setKey),className:"font-semibold text-primary hover:underline",children:h.jsx(vl,{value:n.segmentKey,className:"font-semibold"})})]})})}function Cy(n){if(typeof n.segment=="string")return h.jsx(gS,{segmentKey:n.segment,setKey:n.setKey});const a="and"in n.segment?"and":"or"in n.segment?"or":"not",r=n.segment[a];return h.jsxs("div",{className:"rounded-lg border border-border bg-elevated p-4",children:[h.jsxs("div",{className:"mb-3 flex items-center gap-2",children:[h.jsx(sn,{tone:"neutral",children:a.toUpperCase()}),h.jsxs("span",{className:"text-sm text-muted",children:[r.length," branch",r.length===1?"":"es"]})]}),h.jsx("div",{className:"ml-3 space-y-3 border-l border-border pl-4",children:r.map((u,o)=>h.jsx(Cy,{segment:u,setKey:n.setKey},`${a}-${o}`))})]})}function Ay(n){if(!n.segments)return h.jsx("p",{className:"text-sm text-muted",children:"No segments found."});if(n.segments==="*")return h.jsx("div",{className:"rounded-lg border border-border bg-surface px-4 py-3 text-sm shadow-sm",children:"Everyone"});const a=Array.isArray(n.segments)?n.segments:[n.segments];return h.jsx("div",{className:"space-y-3",children:a.map((r,u)=>h.jsx(Cy,{segment:r,setKey:n.setKey},u))})}function yS(n,a){const r={};return(n[n.length-1]===""?[...n,""]:n).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const xS=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,bS=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,vS={};function tg(n,a){return(vS.jsx?bS:xS).test(n)}const SS=/[ \t\n\f\r]/g;function wS(n){return typeof n=="object"?n.type==="text"?ng(n.value):!1:ng(n)}function ng(n){return n.replace(SS,"")===""}class rr{constructor(a,r,u){this.normal=r,this.property=a,u&&(this.space=u)}}rr.prototype.normal={};rr.prototype.property={};rr.prototype.space=void 0;function zy(n,a){const r={},u={};for(const o of n)Object.assign(r,o.property),Object.assign(u,o.normal);return new rr(r,u,a)}function $c(n){return n.toLowerCase()}class Dt{constructor(a,r){this.attribute=r,this.property=a}}Dt.prototype.attribute="";Dt.prototype.booleanish=!1;Dt.prototype.boolean=!1;Dt.prototype.commaOrSpaceSeparated=!1;Dt.prototype.commaSeparated=!1;Dt.prototype.defined=!1;Dt.prototype.mustUseProperty=!1;Dt.prototype.number=!1;Dt.prototype.overloadedBoolean=!1;Dt.prototype.property="";Dt.prototype.spaceSeparated=!1;Dt.prototype.space=void 0;let jS=0;const ve=Kl(),ut=Kl(),Fc=Kl(),I=Kl(),Qe=Kl(),La=Kl(),Kt=Kl();function Kl(){return 2**++jS}const Jc=Object.freeze(Object.defineProperty({__proto__:null,boolean:ve,booleanish:ut,commaOrSpaceSeparated:Kt,commaSeparated:La,number:I,overloadedBoolean:Fc,spaceSeparated:Qe},Symbol.toStringTag,{value:"Module"})),_c=Object.keys(Jc);class Sf extends Dt{constructor(a,r,u,o){let c=-1;if(super(a,r),lg(this,"space",o),typeof u=="number")for(;++c<_c.length;){const d=_c[c];lg(this,_c[c],(u&Jc[d])===Jc[d])}}}Sf.prototype.defined=!0;function lg(n,a,r){r&&(n[a]=r)}function Ga(n){const a={},r={};for(const[u,o]of Object.entries(n.properties)){const c=new Sf(u,n.transform(n.attributes||{},u),o,n.space);n.mustUseProperty&&n.mustUseProperty.includes(u)&&(c.mustUseProperty=!0),a[u]=c,r[$c(u)]=u,r[$c(c.attribute)]=u}return new rr(a,r,n.space)}const ky=Ga({properties:{ariaActiveDescendant:null,ariaAtomic:ut,ariaAutoComplete:null,ariaBusy:ut,ariaChecked:ut,ariaColCount:I,ariaColIndex:I,ariaColSpan:I,ariaControls:Qe,ariaCurrent:null,ariaDescribedBy:Qe,ariaDetails:null,ariaDisabled:ut,ariaDropEffect:Qe,ariaErrorMessage:null,ariaExpanded:ut,ariaFlowTo:Qe,ariaGrabbed:ut,ariaHasPopup:null,ariaHidden:ut,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Qe,ariaLevel:I,ariaLive:null,ariaModal:ut,ariaMultiLine:ut,ariaMultiSelectable:ut,ariaOrientation:null,ariaOwns:Qe,ariaPlaceholder:null,ariaPosInSet:I,ariaPressed:ut,ariaReadOnly:ut,ariaRelevant:null,ariaRequired:ut,ariaRoleDescription:Qe,ariaRowCount:I,ariaRowIndex:I,ariaRowSpan:I,ariaSelected:ut,ariaSetSize:I,ariaSort:null,ariaValueMax:I,ariaValueMin:I,ariaValueNow:I,ariaValueText:null,role:null},transform(n,a){return a==="role"?a:"aria-"+a.slice(4).toLowerCase()}});function Ry(n,a){return a in n?n[a]:a}function _y(n,a){return Ry(n,a.toLowerCase())}const ES=Ga({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:La,acceptCharset:Qe,accessKey:Qe,action:null,allow:null,allowFullScreen:ve,allowPaymentRequest:ve,allowUserMedia:ve,alt:null,as:null,async:ve,autoCapitalize:null,autoComplete:Qe,autoFocus:ve,autoPlay:ve,blocking:Qe,capture:null,charSet:null,checked:ve,cite:null,className:Qe,cols:I,colSpan:null,content:null,contentEditable:ut,controls:ve,controlsList:Qe,coords:I|La,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ve,defer:ve,dir:null,dirName:null,disabled:ve,download:Fc,draggable:ut,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ve,formTarget:null,headers:Qe,height:I,hidden:Fc,high:I,href:null,hrefLang:null,htmlFor:Qe,httpEquiv:Qe,id:null,imageSizes:null,imageSrcSet:null,inert:ve,inputMode:null,integrity:null,is:null,isMap:ve,itemId:null,itemProp:Qe,itemRef:Qe,itemScope:ve,itemType:Qe,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ve,low:I,manifest:null,max:null,maxLength:I,media:null,method:null,min:null,minLength:I,multiple:ve,muted:ve,name:null,nonce:null,noModule:ve,noValidate:ve,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:ve,optimum:I,pattern:null,ping:Qe,placeholder:null,playsInline:ve,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ve,referrerPolicy:null,rel:Qe,required:ve,reversed:ve,rows:I,rowSpan:I,sandbox:Qe,scope:null,scoped:ve,seamless:ve,selected:ve,shadowRootClonable:ve,shadowRootDelegatesFocus:ve,shadowRootMode:null,shape:null,size:I,sizes:null,slot:null,span:I,spellCheck:ut,src:null,srcDoc:null,srcLang:null,srcSet:null,start:I,step:null,style:null,tabIndex:I,target:null,title:null,translate:null,type:null,typeMustMatch:ve,useMap:null,value:ut,width:I,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Qe,axis:null,background:null,bgColor:null,border:I,borderColor:null,bottomMargin:I,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ve,declare:ve,event:null,face:null,frame:null,frameBorder:null,hSpace:I,leftMargin:I,link:null,longDesc:null,lowSrc:null,marginHeight:I,marginWidth:I,noResize:ve,noHref:ve,noShade:ve,noWrap:ve,object:null,profile:null,prompt:null,rev:null,rightMargin:I,rules:null,scheme:null,scrolling:ut,standby:null,summary:null,text:null,topMargin:I,valueType:null,version:null,vAlign:null,vLink:null,vSpace:I,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ve,disableRemotePlayback:ve,prefix:null,property:null,results:I,security:null,unselectable:null},space:"html",transform:_y}),NS=Ga({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",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:Kt,accentHeight:I,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:I,amplitude:I,arabicForm:null,ascent:I,attributeName:null,attributeType:null,azimuth:I,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:I,by:null,calcMode:null,capHeight:I,className:Qe,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:I,diffuseConstant:I,direction:null,display:null,dur:null,divisor:I,dominantBaseline:null,download:ve,dx:null,dy:null,edgeMode:null,editable:null,elevation:I,enableBackground:null,end:null,event:null,exponent:I,externalResourcesRequired:null,fill:null,fillOpacity:I,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:La,g2:La,glyphName:La,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:I,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:I,horizOriginX:I,horizOriginY:I,id:null,ideographic:I,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:I,k:I,k1:I,k2:I,k3:I,k4:I,kernelMatrix:Kt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:I,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:I,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:I,overlineThickness:I,paintOrder:null,panose1:null,path:null,pathLength:I,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Qe,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:I,pointsAtY:I,pointsAtZ:I,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Kt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Kt,rev:Kt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Kt,requiredFeatures:Kt,requiredFonts:Kt,requiredFormats:Kt,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:I,specularExponent:I,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:I,strikethroughThickness:I,string:null,stroke:null,strokeDashArray:Kt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:I,strokeOpacity:I,strokeWidth:null,style:null,surfaceScale:I,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Kt,tabIndex:I,tableValues:null,target:null,targetX:I,targetY:I,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Kt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:I,underlineThickness:I,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:I,values:null,vAlphabetic:I,vMathematical:I,vectorEffect:null,vHanging:I,vIdeographic:I,version:null,vertAdvY:I,vertOriginX:I,vertOriginY:I,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:I,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Ry}),My=Ga({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(n,a){return"xlink:"+a.slice(5).toLowerCase()}}),Oy=Ga({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:_y}),Dy=Ga({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(n,a){return"xml:"+a.slice(3).toLowerCase()}}),TS={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"},CS=/[A-Z]/g,ag=/-[a-z]/g,AS=/^data[-\w.:]+$/i;function zS(n,a){const r=$c(a);let u=a,o=Dt;if(r in n.normal)return n.property[n.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&AS.test(a)){if(a.charAt(4)==="-"){const c=a.slice(5).replace(ag,RS);u="data"+c.charAt(0).toUpperCase()+c.slice(1)}else{const c=a.slice(4);if(!ag.test(c)){let d=c.replace(CS,kS);d.charAt(0)!=="-"&&(d="-"+d),a="data"+d}}o=Sf}return new o(u,a)}function kS(n){return"-"+n.toLowerCase()}function RS(n){return n.charAt(1).toUpperCase()}const _S=zy([ky,ES,My,Oy,Dy],"html"),wf=zy([ky,NS,My,Oy,Dy],"svg");function MS(n){return n.join(" ").trim()}var Ma={},Mc,ig;function OS(){if(ig)return Mc;ig=1;var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,a=/\n/g,r=/^\s*/,u=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,c=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,d=/^[;\s]*/,m=/^\s+|\s+$/g,g=`
61
- `,p="/",x="*",b="",w="comment",S="declaration";function R(O,z){if(typeof O!="string")throw new TypeError("First argument must be a string");if(!O)return[];z=z||{};var X=1,k=1;function J(ie){var F=ie.match(a);F&&(X+=F.length);var B=ie.lastIndexOf(g);k=~B?ie.length-B:k+ie.length}function te(){var ie={line:X,column:k};return function(F){return F.position=new q(ie),ce(),F}}function q(ie){this.start=ie,this.end={line:X,column:k},this.source=z.source}q.prototype.content=O;function $(ie){var F=new Error(z.source+":"+X+":"+k+": "+ie);if(F.reason=ie,F.filename=z.source,F.line=X,F.column=k,F.source=O,!z.silent)throw F}function ue(ie){var F=ie.exec(O);if(F){var B=F[0];return J(B),O=O.slice(B.length),F}}function ce(){ue(r)}function ge(ie){var F;for(ie=ie||[];F=le();)F!==!1&&ie.push(F);return ie}function le(){var ie=te();if(!(p!=O.charAt(0)||x!=O.charAt(1))){for(var F=2;b!=O.charAt(F)&&(x!=O.charAt(F)||p!=O.charAt(F+1));)++F;if(F+=2,b===O.charAt(F-1))return $("End of comment missing");var B=O.slice(2,F-2);return k+=2,J(B),O=O.slice(F),k+=2,ie({type:w,comment:B})}}function ee(){var ie=te(),F=ue(u);if(F){if(le(),!ue(o))return $("property missing ':'");var B=ue(c),Z=ie({type:S,property:M(F[0].replace(n,b)),value:B?M(B[0].replace(n,b)):b});return ue(d),Z}}function Se(){var ie=[];ge(ie);for(var F;F=ee();)F!==!1&&(ie.push(F),ge(ie));return ie}return ce(),Se()}function M(O){return O?O.replace(m,b):b}return Mc=R,Mc}var rg;function DS(){if(rg)return Ma;rg=1;var n=Ma&&Ma.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(Ma,"__esModule",{value:!0}),Ma.default=r;const a=n(OS());function r(u,o){let c=null;if(!u||typeof u!="string")return c;const d=(0,a.default)(u),m=typeof o=="function";return d.forEach(g=>{if(g.type!=="declaration")return;const{property:p,value:x}=g;m?o(p,x,g):x&&(c=c||{},c[p]=x)}),c}return Ma}var Qi={},ug;function LS(){if(ug)return Qi;ug=1,Object.defineProperty(Qi,"__esModule",{value:!0}),Qi.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,a=/-([a-z])/g,r=/^[^-]+$/,u=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,c=function(p){return!p||r.test(p)||n.test(p)},d=function(p,x){return x.toUpperCase()},m=function(p,x){return"".concat(x,"-")},g=function(p,x){return x===void 0&&(x={}),c(p)?p:(p=p.toLowerCase(),x.reactCompat?p=p.replace(o,m):p=p.replace(u,m),p.replace(a,d))};return Qi.camelCase=g,Qi}var Ki,sg;function BS(){if(sg)return Ki;sg=1;var n=Ki&&Ki.__importDefault||function(o){return o&&o.__esModule?o:{default:o}},a=n(DS()),r=LS();function u(o,c){var d={};return!o||typeof o!="string"||(0,a.default)(o,function(m,g){m&&g&&(d[(0,r.camelCase)(m,c)]=g)}),d}return u.default=u,Ki=u,Ki}var US=BS();const HS=$g(US),Ly=By("end"),jf=By("start");function By(n){return a;function a(r){const u=r&&r.position&&r.position[n]||{};if(typeof u.line=="number"&&u.line>0&&typeof u.column=="number"&&u.column>0)return{line:u.line,column:u.column,offset:typeof u.offset=="number"&&u.offset>-1?u.offset:void 0}}}function qS(n){const a=jf(n),r=Ly(n);if(a&&r)return{start:a,end:r}}function Zi(n){return!n||typeof n!="object"?"":"position"in n||"type"in n?og(n.position):"start"in n||"end"in n?og(n):"line"in n||"column"in n?Ic(n):""}function Ic(n){return cg(n&&n.line)+":"+cg(n&&n.column)}function og(n){return Ic(n&&n.start)+"-"+Ic(n&&n.end)}function cg(n){return n&&typeof n=="number"?n:1}class vt extends Error{constructor(a,r,u){super(),typeof r=="string"&&(u=r,r=void 0);let o="",c={},d=!1;if(r&&("line"in r&&"column"in r?c={place:r}:"start"in r&&"end"in r?c={place:r}:"type"in r?c={ancestors:[r],place:r.position}:c={...r}),typeof a=="string"?o=a:!c.cause&&a&&(d=!0,o=a.message,c.cause=a),!c.ruleId&&!c.source&&typeof u=="string"){const g=u.indexOf(":");g===-1?c.ruleId=u:(c.source=u.slice(0,g),c.ruleId=u.slice(g+1))}if(!c.place&&c.ancestors&&c.ancestors){const g=c.ancestors[c.ancestors.length-1];g&&(c.place=g.position)}const m=c.place&&"start"in c.place?c.place.start:c.place;this.ancestors=c.ancestors||void 0,this.cause=c.cause||void 0,this.column=m?m.column:void 0,this.fatal=void 0,this.file="",this.message=o,this.line=m?m.line:void 0,this.name=Zi(c.place)||"1:1",this.place=c.place||void 0,this.reason=this.message,this.ruleId=c.ruleId||void 0,this.source=c.source||void 0,this.stack=d&&c.cause&&typeof c.cause.stack=="string"?c.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}vt.prototype.file="";vt.prototype.name="";vt.prototype.reason="";vt.prototype.message="";vt.prototype.stack="";vt.prototype.column=void 0;vt.prototype.line=void 0;vt.prototype.ancestors=void 0;vt.prototype.cause=void 0;vt.prototype.fatal=void 0;vt.prototype.place=void 0;vt.prototype.ruleId=void 0;vt.prototype.source=void 0;const Ef={}.hasOwnProperty,YS=new Map,VS=/[A-Z]/g,QS=new Set(["table","tbody","thead","tfoot","tr"]),KS=new Set(["td","th"]),Uy="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function GS(n,a){if(!a||a.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=a.filePath||void 0;let u;if(a.development){if(typeof a.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");u=WS(r,a.jsxDEV)}else{if(typeof a.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof a.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");u=PS(r,a.jsx,a.jsxs)}const o={Fragment:a.Fragment,ancestors:[],components:a.components||{},create:u,elementAttributeNameCase:a.elementAttributeNameCase||"react",evaluater:a.createEvaluater?a.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:a.ignoreInvalidStyle||!1,passKeys:a.passKeys!==!1,passNode:a.passNode||!1,schema:a.space==="svg"?wf:_S,stylePropertyNameCase:a.stylePropertyNameCase||"dom",tableCellAlignToStyle:a.tableCellAlignToStyle!==!1},c=Hy(o,n,void 0);return c&&typeof c!="string"?c:o.create(n,o.Fragment,{children:c||void 0},void 0)}function Hy(n,a,r){if(a.type==="element")return XS(n,a,r);if(a.type==="mdxFlowExpression"||a.type==="mdxTextExpression")return ZS(n,a);if(a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement")return FS(n,a,r);if(a.type==="mdxjsEsm")return $S(n,a);if(a.type==="root")return JS(n,a,r);if(a.type==="text")return IS(n,a)}function XS(n,a,r){const u=n.schema;let o=u;a.tagName.toLowerCase()==="svg"&&u.space==="html"&&(o=wf,n.schema=o),n.ancestors.push(a);const c=Yy(n,a.tagName,!1),d=e2(n,a);let m=Tf(n,a);return QS.has(a.tagName)&&(m=m.filter(function(g){return typeof g=="string"?!wS(g):!0})),qy(n,d,c,a),Nf(d,m),n.ancestors.pop(),n.schema=u,n.create(a,c,d,r)}function ZS(n,a){if(a.data&&a.data.estree&&n.evaluater){const u=a.data.estree.body[0];return u.type,n.evaluater.evaluateExpression(u.expression)}tr(n,a.position)}function $S(n,a){if(a.data&&a.data.estree&&n.evaluater)return n.evaluater.evaluateProgram(a.data.estree);tr(n,a.position)}function FS(n,a,r){const u=n.schema;let o=u;a.name==="svg"&&u.space==="html"&&(o=wf,n.schema=o),n.ancestors.push(a);const c=a.name===null?n.Fragment:Yy(n,a.name,!0),d=t2(n,a),m=Tf(n,a);return qy(n,d,c,a),Nf(d,m),n.ancestors.pop(),n.schema=u,n.create(a,c,d,r)}function JS(n,a,r){const u={};return Nf(u,Tf(n,a)),n.create(a,n.Fragment,u,r)}function IS(n,a){return a.value}function qy(n,a,r,u){typeof r!="string"&&r!==n.Fragment&&n.passNode&&(a.node=u)}function Nf(n,a){if(a.length>0){const r=a.length>1?a:a[0];r&&(n.children=r)}}function PS(n,a,r){return u;function u(o,c,d,m){const p=Array.isArray(d.children)?r:a;return m?p(c,d,m):p(c,d)}}function WS(n,a){return r;function r(u,o,c,d){const m=Array.isArray(c.children),g=jf(u);return a(o,c,d,m,{columnNumber:g?g.column-1:void 0,fileName:n,lineNumber:g?g.line:void 0},void 0)}}function e2(n,a){const r={};let u,o;for(o in a.properties)if(o!=="children"&&Ef.call(a.properties,o)){const c=n2(n,o,a.properties[o]);if(c){const[d,m]=c;n.tableCellAlignToStyle&&d==="align"&&typeof m=="string"&&KS.has(a.tagName)?u=m:r[d]=m}}if(u){const c=r.style||(r.style={});c[n.stylePropertyNameCase==="css"?"text-align":"textAlign"]=u}return r}function t2(n,a){const r={};for(const u of a.attributes)if(u.type==="mdxJsxExpressionAttribute")if(u.data&&u.data.estree&&n.evaluater){const c=u.data.estree.body[0];c.type;const d=c.expression;d.type;const m=d.properties[0];m.type,Object.assign(r,n.evaluater.evaluateExpression(m.argument))}else tr(n,a.position);else{const o=u.name;let c;if(u.value&&typeof u.value=="object")if(u.value.data&&u.value.data.estree&&n.evaluater){const m=u.value.data.estree.body[0];m.type,c=n.evaluater.evaluateExpression(m.expression)}else tr(n,a.position);else c=u.value===null?!0:u.value;r[o]=c}return r}function Tf(n,a){const r=[];let u=-1;const o=n.passKeys?new Map:YS;for(;++u<a.children.length;){const c=a.children[u];let d;if(n.passKeys){const g=c.type==="element"?c.tagName:c.type==="mdxJsxFlowElement"||c.type==="mdxJsxTextElement"?c.name:void 0;if(g){const p=o.get(g)||0;d=g+"-"+p,o.set(g,p+1)}}const m=Hy(n,c,d);m!==void 0&&r.push(m)}return r}function n2(n,a,r){const u=zS(n.schema,a);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=u.commaSeparated?yS(r):MS(r)),u.property==="style"){let o=typeof r=="object"?r:l2(n,String(r));return n.stylePropertyNameCase==="css"&&(o=a2(o)),["style",o]}return[n.elementAttributeNameCase==="react"&&u.space?TS[u.property]||u.property:u.attribute,r]}}function l2(n,a){try{return HS(a,{reactCompat:!0})}catch(r){if(n.ignoreInvalidStyle)return{};const u=r,o=new vt("Cannot parse `style` attribute",{ancestors:n.ancestors,cause:u,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw o.file=n.filePath||void 0,o.url=Uy+"#cannot-parse-style-attribute",o}}function Yy(n,a,r){let u;if(!r)u={type:"Literal",value:a};else if(a.includes(".")){const o=a.split(".");let c=-1,d;for(;++c<o.length;){const m=tg(o[c])?{type:"Identifier",name:o[c]}:{type:"Literal",value:o[c]};d=d?{type:"MemberExpression",object:d,property:m,computed:!!(c&&m.type==="Literal"),optional:!1}:m}u=d}else u=tg(a)&&!/^[a-z]/.test(a)?{type:"Identifier",name:a}:{type:"Literal",value:a};if(u.type==="Literal"){const o=u.value;return Ef.call(n.components,o)?n.components[o]:o}if(n.evaluater)return n.evaluater.evaluateExpression(u);tr(n)}function tr(n,a){const r=new vt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:n.ancestors,place:a,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=n.filePath||void 0,r.url=Uy+"#cannot-handle-mdx-estrees-without-createevaluater",r}function a2(n){const a={};let r;for(r in n)Ef.call(n,r)&&(a[i2(r)]=n[r]);return a}function i2(n){let a=n.replace(VS,r2);return a.slice(0,3)==="ms-"&&(a="-"+a),a}function r2(n){return"-"+n.toLowerCase()}const Oc={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"]},u2={};function s2(n,a){const r=u2,u=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,o=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return Vy(n,u,o)}function Vy(n,a,r){if(o2(n)){if("value"in n)return n.type==="html"&&!r?"":n.value;if(a&&"alt"in n&&n.alt)return n.alt;if("children"in n)return fg(n.children,a,r)}return Array.isArray(n)?fg(n,a,r):""}function fg(n,a,r){const u=[];let o=-1;for(;++o<n.length;)u[o]=Vy(n[o],a,r);return u.join("")}function o2(n){return!!(n&&typeof n=="object")}const dg=document.createElement("i");function Cf(n){const a="&"+n+";";dg.innerHTML=a;const r=dg.textContent;return r.charCodeAt(r.length-1)===59&&n!=="semi"||r===a?!1:r}function wn(n,a,r,u){const o=n.length;let c=0,d;if(a<0?a=-a>o?0:o+a:a=a>o?o:a,r=r>0?r:0,u.length<1e4)d=Array.from(u),d.unshift(a,r),n.splice(...d);else for(r&&n.splice(a,r);c<u.length;)d=u.slice(c,c+1e4),d.unshift(a,0),n.splice(...d),c+=1e4,a+=1e4}function un(n,a){return n.length>0?(wn(n,n.length,0,a),n):a}const hg={}.hasOwnProperty;function c2(n){const a={};let r=-1;for(;++r<n.length;)f2(a,n[r]);return a}function f2(n,a){let r;for(r in a){const o=(hg.call(n,r)?n[r]:void 0)||(n[r]={}),c=a[r];let d;if(c)for(d in c){hg.call(o,d)||(o[d]=[]);const m=c[d];d2(o[d],Array.isArray(m)?m:m?[m]:[])}}}function d2(n,a){let r=-1;const u=[];for(;++r<a.length;)(a[r].add==="after"?n:u).push(a[r]);wn(n,0,0,u)}function Qy(n,a){const r=Number.parseInt(n,a);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 Ba(n){return n.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Sn=wl(/[A-Za-z]/),Gt=wl(/[\dA-Za-z]/),h2=wl(/[#-'*+\--9=?A-Z^-~]/);function Pc(n){return n!==null&&(n<32||n===127)}const Wc=wl(/\d/),m2=wl(/[\dA-Fa-f]/),p2=wl(/[!-/:-@[-`{-~]/);function pe(n){return n!==null&&n<-2}function Ot(n){return n!==null&&(n<0||n===32)}function _e(n){return n===-2||n===-1||n===32}const g2=wl(new RegExp("\\p{P}|\\p{S}","u")),y2=wl(/\s/);function wl(n){return a;function a(r){return r!==null&&r>-1&&n.test(String.fromCharCode(r))}}function Xa(n){const a=[];let r=-1,u=0,o=0;for(;++r<n.length;){const c=n.charCodeAt(r);let d="";if(c===37&&Gt(n.charCodeAt(r+1))&&Gt(n.charCodeAt(r+2)))o=2;else if(c<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(c))||(d=String.fromCharCode(c));else if(c>55295&&c<57344){const m=n.charCodeAt(r+1);c<56320&&m>56319&&m<57344?(d=String.fromCharCode(c,m),o=1):d="�"}else d=String.fromCharCode(c);d&&(a.push(n.slice(u,r),encodeURIComponent(d)),u=r+o+1,d=""),o&&(r+=o,o=0)}return a.join("")+n.slice(u)}function Ke(n,a,r,u){const o=u?u-1:Number.POSITIVE_INFINITY;let c=0;return d;function d(g){return _e(g)?(n.enter(r),m(g)):a(g)}function m(g){return _e(g)&&c++<o?(n.consume(g),m):(n.exit(r),a(g))}}const x2={tokenize:b2};function b2(n){const a=n.attempt(this.parser.constructs.contentInitial,u,o);let r;return a;function u(m){if(m===null){n.consume(m);return}return n.enter("lineEnding"),n.consume(m),n.exit("lineEnding"),Ke(n,a,"linePrefix")}function o(m){return n.enter("paragraph"),c(m)}function c(m){const g=n.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=g),r=g,d(m)}function d(m){if(m===null){n.exit("chunkText"),n.exit("paragraph"),n.consume(m);return}return pe(m)?(n.consume(m),n.exit("chunkText"),c):(n.consume(m),d)}}const v2={tokenize:S2},mg={tokenize:w2};function S2(n){const a=this,r=[];let u=0,o,c,d;return m;function m(k){if(u<r.length){const J=r[u];return a.containerState=J[1],n.attempt(J[0].continuation,g,p)(k)}return p(k)}function g(k){if(u++,a.containerState._closeFlow){a.containerState._closeFlow=void 0,o&&X();const J=a.events.length;let te=J,q;for(;te--;)if(a.events[te][0]==="exit"&&a.events[te][1].type==="chunkFlow"){q=a.events[te][1].end;break}z(u);let $=J;for(;$<a.events.length;)a.events[$][1].end={...q},$++;return wn(a.events,te+1,0,a.events.slice(J)),a.events.length=$,p(k)}return m(k)}function p(k){if(u===r.length){if(!o)return w(k);if(o.currentConstruct&&o.currentConstruct.concrete)return R(k);a.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return a.containerState={},n.check(mg,x,b)(k)}function x(k){return o&&X(),z(u),w(k)}function b(k){return a.parser.lazy[a.now().line]=u!==r.length,d=a.now().offset,R(k)}function w(k){return a.containerState={},n.attempt(mg,S,R)(k)}function S(k){return u++,r.push([a.currentConstruct,a.containerState]),w(k)}function R(k){if(k===null){o&&X(),z(0),n.consume(k);return}return o=o||a.parser.flow(a.now()),n.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:c}),M(k)}function M(k){if(k===null){O(n.exit("chunkFlow"),!0),z(0),n.consume(k);return}return pe(k)?(n.consume(k),O(n.exit("chunkFlow")),u=0,a.interrupt=void 0,m):(n.consume(k),M)}function O(k,J){const te=a.sliceStream(k);if(J&&te.push(null),k.previous=c,c&&(c.next=k),c=k,o.defineSkip(k.start),o.write(te),a.parser.lazy[k.start.line]){let q=o.events.length;for(;q--;)if(o.events[q][1].start.offset<d&&(!o.events[q][1].end||o.events[q][1].end.offset>d))return;const $=a.events.length;let ue=$,ce,ge;for(;ue--;)if(a.events[ue][0]==="exit"&&a.events[ue][1].type==="chunkFlow"){if(ce){ge=a.events[ue][1].end;break}ce=!0}for(z(u),q=$;q<a.events.length;)a.events[q][1].end={...ge},q++;wn(a.events,ue+1,0,a.events.slice($)),a.events.length=q}}function z(k){let J=r.length;for(;J-- >k;){const te=r[J];a.containerState=te[1],te[0].exit.call(a,n)}r.length=k}function X(){o.write([null]),c=void 0,o=void 0,a.containerState._closeFlow=void 0}}function w2(n,a,r){return Ke(n,n.attempt(this.parser.constructs.document,a,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function pg(n){if(n===null||Ot(n)||y2(n))return 1;if(g2(n))return 2}function Af(n,a,r){const u=[];let o=-1;for(;++o<n.length;){const c=n[o].resolveAll;c&&!u.includes(c)&&(a=c(a,r),u.push(c))}return a}const ef={name:"attention",resolveAll:j2,tokenize:E2};function j2(n,a){let r=-1,u,o,c,d,m,g,p,x;for(;++r<n.length;)if(n[r][0]==="enter"&&n[r][1].type==="attentionSequence"&&n[r][1]._close){for(u=r;u--;)if(n[u][0]==="exit"&&n[u][1].type==="attentionSequence"&&n[u][1]._open&&a.sliceSerialize(n[u][1]).charCodeAt(0)===a.sliceSerialize(n[r][1]).charCodeAt(0)){if((n[u][1]._close||n[r][1]._open)&&(n[r][1].end.offset-n[r][1].start.offset)%3&&!((n[u][1].end.offset-n[u][1].start.offset+n[r][1].end.offset-n[r][1].start.offset)%3))continue;g=n[u][1].end.offset-n[u][1].start.offset>1&&n[r][1].end.offset-n[r][1].start.offset>1?2:1;const b={...n[u][1].end},w={...n[r][1].start};gg(b,-g),gg(w,g),d={type:g>1?"strongSequence":"emphasisSequence",start:b,end:{...n[u][1].end}},m={type:g>1?"strongSequence":"emphasisSequence",start:{...n[r][1].start},end:w},c={type:g>1?"strongText":"emphasisText",start:{...n[u][1].end},end:{...n[r][1].start}},o={type:g>1?"strong":"emphasis",start:{...d.start},end:{...m.end}},n[u][1].end={...d.start},n[r][1].start={...m.end},p=[],n[u][1].end.offset-n[u][1].start.offset&&(p=un(p,[["enter",n[u][1],a],["exit",n[u][1],a]])),p=un(p,[["enter",o,a],["enter",d,a],["exit",d,a],["enter",c,a]]),p=un(p,Af(a.parser.constructs.insideSpan.null,n.slice(u+1,r),a)),p=un(p,[["exit",c,a],["enter",m,a],["exit",m,a],["exit",o,a]]),n[r][1].end.offset-n[r][1].start.offset?(x=2,p=un(p,[["enter",n[r][1],a],["exit",n[r][1],a]])):x=0,wn(n,u-1,r-u+3,p),r=u+p.length-x-2;break}}for(r=-1;++r<n.length;)n[r][1].type==="attentionSequence"&&(n[r][1].type="data");return n}function E2(n,a){const r=this.parser.constructs.attentionMarkers.null,u=this.previous,o=pg(u);let c;return d;function d(g){return c=g,n.enter("attentionSequence"),m(g)}function m(g){if(g===c)return n.consume(g),m;const p=n.exit("attentionSequence"),x=pg(g),b=!x||x===2&&o||r.includes(g),w=!o||o===2&&x||r.includes(u);return p._open=!!(c===42?b:b&&(o||!w)),p._close=!!(c===42?w:w&&(x||!b)),a(g)}}function gg(n,a){n.column+=a,n.offset+=a,n._bufferIndex+=a}const N2={name:"autolink",tokenize:T2};function T2(n,a,r){let u=0;return o;function o(S){return n.enter("autolink"),n.enter("autolinkMarker"),n.consume(S),n.exit("autolinkMarker"),n.enter("autolinkProtocol"),c}function c(S){return Sn(S)?(n.consume(S),d):S===64?r(S):p(S)}function d(S){return S===43||S===45||S===46||Gt(S)?(u=1,m(S)):p(S)}function m(S){return S===58?(n.consume(S),u=0,g):(S===43||S===45||S===46||Gt(S))&&u++<32?(n.consume(S),m):(u=0,p(S))}function g(S){return S===62?(n.exit("autolinkProtocol"),n.enter("autolinkMarker"),n.consume(S),n.exit("autolinkMarker"),n.exit("autolink"),a):S===null||S===32||S===60||Pc(S)?r(S):(n.consume(S),g)}function p(S){return S===64?(n.consume(S),x):h2(S)?(n.consume(S),p):r(S)}function x(S){return Gt(S)?b(S):r(S)}function b(S){return S===46?(n.consume(S),u=0,x):S===62?(n.exit("autolinkProtocol").type="autolinkEmail",n.enter("autolinkMarker"),n.consume(S),n.exit("autolinkMarker"),n.exit("autolink"),a):w(S)}function w(S){if((S===45||Gt(S))&&u++<63){const R=S===45?w:b;return n.consume(S),R}return r(S)}}const Fu={partial:!0,tokenize:C2};function C2(n,a,r){return u;function u(c){return _e(c)?Ke(n,o,"linePrefix")(c):o(c)}function o(c){return c===null||pe(c)?a(c):r(c)}}const Ky={continuation:{tokenize:z2},exit:k2,name:"blockQuote",tokenize:A2};function A2(n,a,r){const u=this;return o;function o(d){if(d===62){const m=u.containerState;return m.open||(n.enter("blockQuote",{_container:!0}),m.open=!0),n.enter("blockQuotePrefix"),n.enter("blockQuoteMarker"),n.consume(d),n.exit("blockQuoteMarker"),c}return r(d)}function c(d){return _e(d)?(n.enter("blockQuotePrefixWhitespace"),n.consume(d),n.exit("blockQuotePrefixWhitespace"),n.exit("blockQuotePrefix"),a):(n.exit("blockQuotePrefix"),a(d))}}function z2(n,a,r){const u=this;return o;function o(d){return _e(d)?Ke(n,c,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d):c(d)}function c(d){return n.attempt(Ky,a,r)(d)}}function k2(n){n.exit("blockQuote")}const Gy={name:"characterEscape",tokenize:R2};function R2(n,a,r){return u;function u(c){return n.enter("characterEscape"),n.enter("escapeMarker"),n.consume(c),n.exit("escapeMarker"),o}function o(c){return p2(c)?(n.enter("characterEscapeValue"),n.consume(c),n.exit("characterEscapeValue"),n.exit("characterEscape"),a):r(c)}}const Xy={name:"characterReference",tokenize:_2};function _2(n,a,r){const u=this;let o=0,c,d;return m;function m(b){return n.enter("characterReference"),n.enter("characterReferenceMarker"),n.consume(b),n.exit("characterReferenceMarker"),g}function g(b){return b===35?(n.enter("characterReferenceMarkerNumeric"),n.consume(b),n.exit("characterReferenceMarkerNumeric"),p):(n.enter("characterReferenceValue"),c=31,d=Gt,x(b))}function p(b){return b===88||b===120?(n.enter("characterReferenceMarkerHexadecimal"),n.consume(b),n.exit("characterReferenceMarkerHexadecimal"),n.enter("characterReferenceValue"),c=6,d=m2,x):(n.enter("characterReferenceValue"),c=7,d=Wc,x(b))}function x(b){if(b===59&&o){const w=n.exit("characterReferenceValue");return d===Gt&&!Cf(u.sliceSerialize(w))?r(b):(n.enter("characterReferenceMarker"),n.consume(b),n.exit("characterReferenceMarker"),n.exit("characterReference"),a)}return d(b)&&o++<c?(n.consume(b),x):r(b)}}const yg={partial:!0,tokenize:O2},xg={concrete:!0,name:"codeFenced",tokenize:M2};function M2(n,a,r){const u=this,o={partial:!0,tokenize:te};let c=0,d=0,m;return g;function g(q){return p(q)}function p(q){const $=u.events[u.events.length-1];return c=$&&$[1].type==="linePrefix"?$[2].sliceSerialize($[1],!0).length:0,m=q,n.enter("codeFenced"),n.enter("codeFencedFence"),n.enter("codeFencedFenceSequence"),x(q)}function x(q){return q===m?(d++,n.consume(q),x):d<3?r(q):(n.exit("codeFencedFenceSequence"),_e(q)?Ke(n,b,"whitespace")(q):b(q))}function b(q){return q===null||pe(q)?(n.exit("codeFencedFence"),u.interrupt?a(q):n.check(yg,M,J)(q)):(n.enter("codeFencedFenceInfo"),n.enter("chunkString",{contentType:"string"}),w(q))}function w(q){return q===null||pe(q)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),b(q)):_e(q)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),Ke(n,S,"whitespace")(q)):q===96&&q===m?r(q):(n.consume(q),w)}function S(q){return q===null||pe(q)?b(q):(n.enter("codeFencedFenceMeta"),n.enter("chunkString",{contentType:"string"}),R(q))}function R(q){return q===null||pe(q)?(n.exit("chunkString"),n.exit("codeFencedFenceMeta"),b(q)):q===96&&q===m?r(q):(n.consume(q),R)}function M(q){return n.attempt(o,J,O)(q)}function O(q){return n.enter("lineEnding"),n.consume(q),n.exit("lineEnding"),z}function z(q){return c>0&&_e(q)?Ke(n,X,"linePrefix",c+1)(q):X(q)}function X(q){return q===null||pe(q)?n.check(yg,M,J)(q):(n.enter("codeFlowValue"),k(q))}function k(q){return q===null||pe(q)?(n.exit("codeFlowValue"),X(q)):(n.consume(q),k)}function J(q){return n.exit("codeFenced"),a(q)}function te(q,$,ue){let ce=0;return ge;function ge(F){return q.enter("lineEnding"),q.consume(F),q.exit("lineEnding"),le}function le(F){return q.enter("codeFencedFence"),_e(F)?Ke(q,ee,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(F):ee(F)}function ee(F){return F===m?(q.enter("codeFencedFenceSequence"),Se(F)):ue(F)}function Se(F){return F===m?(ce++,q.consume(F),Se):ce>=d?(q.exit("codeFencedFenceSequence"),_e(F)?Ke(q,ie,"whitespace")(F):ie(F)):ue(F)}function ie(F){return F===null||pe(F)?(q.exit("codeFencedFence"),$(F)):ue(F)}}}function O2(n,a,r){const u=this;return o;function o(d){return d===null?r(d):(n.enter("lineEnding"),n.consume(d),n.exit("lineEnding"),c)}function c(d){return u.parser.lazy[u.now().line]?r(d):a(d)}}const Dc={name:"codeIndented",tokenize:L2},D2={partial:!0,tokenize:B2};function L2(n,a,r){const u=this;return o;function o(p){return n.enter("codeIndented"),Ke(n,c,"linePrefix",5)(p)}function c(p){const x=u.events[u.events.length-1];return x&&x[1].type==="linePrefix"&&x[2].sliceSerialize(x[1],!0).length>=4?d(p):r(p)}function d(p){return p===null?g(p):pe(p)?n.attempt(D2,d,g)(p):(n.enter("codeFlowValue"),m(p))}function m(p){return p===null||pe(p)?(n.exit("codeFlowValue"),d(p)):(n.consume(p),m)}function g(p){return n.exit("codeIndented"),a(p)}}function B2(n,a,r){const u=this;return o;function o(d){return u.parser.lazy[u.now().line]?r(d):pe(d)?(n.enter("lineEnding"),n.consume(d),n.exit("lineEnding"),o):Ke(n,c,"linePrefix",5)(d)}function c(d){const m=u.events[u.events.length-1];return m&&m[1].type==="linePrefix"&&m[2].sliceSerialize(m[1],!0).length>=4?a(d):pe(d)?o(d):r(d)}}const U2={name:"codeText",previous:q2,resolve:H2,tokenize:Y2};function H2(n){let a=n.length-4,r=3,u,o;if((n[r][1].type==="lineEnding"||n[r][1].type==="space")&&(n[a][1].type==="lineEnding"||n[a][1].type==="space")){for(u=r;++u<a;)if(n[u][1].type==="codeTextData"){n[r][1].type="codeTextPadding",n[a][1].type="codeTextPadding",r+=2,a-=2;break}}for(u=r-1,a++;++u<=a;)o===void 0?u!==a&&n[u][1].type!=="lineEnding"&&(o=u):(u===a||n[u][1].type==="lineEnding")&&(n[o][1].type="codeTextData",u!==o+2&&(n[o][1].end=n[u-1][1].end,n.splice(o+2,u-o-2),a-=u-o-2,u=o+2),o=void 0);return n}function q2(n){return n!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Y2(n,a,r){let u=0,o,c;return d;function d(b){return n.enter("codeText"),n.enter("codeTextSequence"),m(b)}function m(b){return b===96?(n.consume(b),u++,m):(n.exit("codeTextSequence"),g(b))}function g(b){return b===null?r(b):b===32?(n.enter("space"),n.consume(b),n.exit("space"),g):b===96?(c=n.enter("codeTextSequence"),o=0,x(b)):pe(b)?(n.enter("lineEnding"),n.consume(b),n.exit("lineEnding"),g):(n.enter("codeTextData"),p(b))}function p(b){return b===null||b===32||b===96||pe(b)?(n.exit("codeTextData"),g(b)):(n.consume(b),p)}function x(b){return b===96?(n.consume(b),o++,x):o===u?(n.exit("codeTextSequence"),n.exit("codeText"),a(b)):(c.type="codeTextData",p(b))}}class V2{constructor(a){this.left=a?[...a]:[],this.right=[]}get(a){if(a<0||a>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+a+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return a<this.left.length?this.left[a]:this.right[this.right.length-a+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(a,r){const u=r??Number.POSITIVE_INFINITY;return u<this.left.length?this.left.slice(a,u):a>this.left.length?this.right.slice(this.right.length-u+this.left.length,this.right.length-a+this.left.length).reverse():this.left.slice(a).concat(this.right.slice(this.right.length-u+this.left.length).reverse())}splice(a,r,u){const o=r||0;this.setCursor(Math.trunc(a));const c=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return u&&Gi(this.left,u),c.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(a){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(a)}pushMany(a){this.setCursor(Number.POSITIVE_INFINITY),Gi(this.left,a)}unshift(a){this.setCursor(0),this.right.push(a)}unshiftMany(a){this.setCursor(0),Gi(this.right,a.reverse())}setCursor(a){if(!(a===this.left.length||a>this.left.length&&this.right.length===0||a<0&&this.left.length===0))if(a<this.left.length){const r=this.left.splice(a,Number.POSITIVE_INFINITY);Gi(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-a,Number.POSITIVE_INFINITY);Gi(this.left,r.reverse())}}}function Gi(n,a){let r=0;if(a.length<1e4)n.push(...a);else for(;r<a.length;)n.push(...a.slice(r,r+1e4)),r+=1e4}function Zy(n){const a={};let r=-1,u,o,c,d,m,g,p;const x=new V2(n);for(;++r<x.length;){for(;r in a;)r=a[r];if(u=x.get(r),r&&u[1].type==="chunkFlow"&&x.get(r-1)[1].type==="listItemPrefix"&&(g=u[1]._tokenizer.events,c=0,c<g.length&&g[c][1].type==="lineEndingBlank"&&(c+=2),c<g.length&&g[c][1].type==="content"))for(;++c<g.length&&g[c][1].type!=="content";)g[c][1].type==="chunkText"&&(g[c][1]._isInFirstContentOfListItem=!0,c++);if(u[0]==="enter")u[1].contentType&&(Object.assign(a,Q2(x,r)),r=a[r],p=!0);else if(u[1]._container){for(c=r,o=void 0;c--;)if(d=x.get(c),d[1].type==="lineEnding"||d[1].type==="lineEndingBlank")d[0]==="enter"&&(o&&(x.get(o)[1].type="lineEndingBlank"),d[1].type="lineEnding",o=c);else if(!(d[1].type==="linePrefix"||d[1].type==="listItemIndent"))break;o&&(u[1].end={...x.get(o)[1].start},m=x.slice(o,r),m.unshift(u),x.splice(o,r-o+1,m))}}return wn(n,0,Number.POSITIVE_INFINITY,x.slice(0)),!p}function Q2(n,a){const r=n.get(a)[1],u=n.get(a)[2];let o=a-1;const c=[];let d=r._tokenizer;d||(d=u.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(d._contentTypeTextTrailing=!0));const m=d.events,g=[],p={};let x,b,w=-1,S=r,R=0,M=0;const O=[M];for(;S;){for(;n.get(++o)[1]!==S;);c.push(o),S._tokenizer||(x=u.sliceStream(S),S.next||x.push(null),b&&d.defineSkip(S.start),S._isInFirstContentOfListItem&&(d._gfmTasklistFirstContentOfListItem=!0),d.write(x),S._isInFirstContentOfListItem&&(d._gfmTasklistFirstContentOfListItem=void 0)),b=S,S=S.next}for(S=r;++w<m.length;)m[w][0]==="exit"&&m[w-1][0]==="enter"&&m[w][1].type===m[w-1][1].type&&m[w][1].start.line!==m[w][1].end.line&&(M=w+1,O.push(M),S._tokenizer=void 0,S.previous=void 0,S=S.next);for(d.events=[],S?(S._tokenizer=void 0,S.previous=void 0):O.pop(),w=O.length;w--;){const z=m.slice(O[w],O[w+1]),X=c.pop();g.push([X,X+z.length-1]),n.splice(X,2,z)}for(g.reverse(),w=-1;++w<g.length;)p[R+g[w][0]]=R+g[w][1],R+=g[w][1]-g[w][0]-1;return p}const K2={resolve:X2,tokenize:Z2},G2={partial:!0,tokenize:$2};function X2(n){return Zy(n),n}function Z2(n,a){let r;return u;function u(m){return n.enter("content"),r=n.enter("chunkContent",{contentType:"content"}),o(m)}function o(m){return m===null?c(m):pe(m)?n.check(G2,d,c)(m):(n.consume(m),o)}function c(m){return n.exit("chunkContent"),n.exit("content"),a(m)}function d(m){return n.consume(m),n.exit("chunkContent"),r.next=n.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,o}}function $2(n,a,r){const u=this;return o;function o(d){return n.exit("chunkContent"),n.enter("lineEnding"),n.consume(d),n.exit("lineEnding"),Ke(n,c,"linePrefix")}function c(d){if(d===null||pe(d))return r(d);const m=u.events[u.events.length-1];return!u.parser.constructs.disable.null.includes("codeIndented")&&m&&m[1].type==="linePrefix"&&m[2].sliceSerialize(m[1],!0).length>=4?a(d):n.interrupt(u.parser.constructs.flow,r,a)(d)}}function $y(n,a,r,u,o,c,d,m,g){const p=g||Number.POSITIVE_INFINITY;let x=0;return b;function b(z){return z===60?(n.enter(u),n.enter(o),n.enter(c),n.consume(z),n.exit(c),w):z===null||z===32||z===41||Pc(z)?r(z):(n.enter(u),n.enter(d),n.enter(m),n.enter("chunkString",{contentType:"string"}),M(z))}function w(z){return z===62?(n.enter(c),n.consume(z),n.exit(c),n.exit(o),n.exit(u),a):(n.enter(m),n.enter("chunkString",{contentType:"string"}),S(z))}function S(z){return z===62?(n.exit("chunkString"),n.exit(m),w(z)):z===null||z===60||pe(z)?r(z):(n.consume(z),z===92?R:S)}function R(z){return z===60||z===62||z===92?(n.consume(z),S):S(z)}function M(z){return!x&&(z===null||z===41||Ot(z))?(n.exit("chunkString"),n.exit(m),n.exit(d),n.exit(u),a(z)):x<p&&z===40?(n.consume(z),x++,M):z===41?(n.consume(z),x--,M):z===null||z===32||z===40||Pc(z)?r(z):(n.consume(z),z===92?O:M)}function O(z){return z===40||z===41||z===92?(n.consume(z),M):M(z)}}function Fy(n,a,r,u,o,c){const d=this;let m=0,g;return p;function p(S){return n.enter(u),n.enter(o),n.consume(S),n.exit(o),n.enter(c),x}function x(S){return m>999||S===null||S===91||S===93&&!g||S===94&&!m&&"_hiddenFootnoteSupport"in d.parser.constructs?r(S):S===93?(n.exit(c),n.enter(o),n.consume(S),n.exit(o),n.exit(u),a):pe(S)?(n.enter("lineEnding"),n.consume(S),n.exit("lineEnding"),x):(n.enter("chunkString",{contentType:"string"}),b(S))}function b(S){return S===null||S===91||S===93||pe(S)||m++>999?(n.exit("chunkString"),x(S)):(n.consume(S),g||(g=!_e(S)),S===92?w:b)}function w(S){return S===91||S===92||S===93?(n.consume(S),m++,b):b(S)}}function Jy(n,a,r,u,o,c){let d;return m;function m(w){return w===34||w===39||w===40?(n.enter(u),n.enter(o),n.consume(w),n.exit(o),d=w===40?41:w,g):r(w)}function g(w){return w===d?(n.enter(o),n.consume(w),n.exit(o),n.exit(u),a):(n.enter(c),p(w))}function p(w){return w===d?(n.exit(c),g(d)):w===null?r(w):pe(w)?(n.enter("lineEnding"),n.consume(w),n.exit("lineEnding"),Ke(n,p,"linePrefix")):(n.enter("chunkString",{contentType:"string"}),x(w))}function x(w){return w===d||w===null||pe(w)?(n.exit("chunkString"),p(w)):(n.consume(w),w===92?b:x)}function b(w){return w===d||w===92?(n.consume(w),x):x(w)}}function $i(n,a){let r;return u;function u(o){return pe(o)?(n.enter("lineEnding"),n.consume(o),n.exit("lineEnding"),r=!0,u):_e(o)?Ke(n,u,r?"linePrefix":"lineSuffix")(o):a(o)}}const F2={name:"definition",tokenize:I2},J2={partial:!0,tokenize:P2};function I2(n,a,r){const u=this;let o;return c;function c(S){return n.enter("definition"),d(S)}function d(S){return Fy.call(u,n,m,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(S)}function m(S){return o=Ba(u.sliceSerialize(u.events[u.events.length-1][1]).slice(1,-1)),S===58?(n.enter("definitionMarker"),n.consume(S),n.exit("definitionMarker"),g):r(S)}function g(S){return Ot(S)?$i(n,p)(S):p(S)}function p(S){return $y(n,x,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(S)}function x(S){return n.attempt(J2,b,b)(S)}function b(S){return _e(S)?Ke(n,w,"whitespace")(S):w(S)}function w(S){return S===null||pe(S)?(n.exit("definition"),u.parser.defined.push(o),a(S)):r(S)}}function P2(n,a,r){return u;function u(m){return Ot(m)?$i(n,o)(m):r(m)}function o(m){return Jy(n,c,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(m)}function c(m){return _e(m)?Ke(n,d,"whitespace")(m):d(m)}function d(m){return m===null||pe(m)?a(m):r(m)}}const W2={name:"hardBreakEscape",tokenize:ew};function ew(n,a,r){return u;function u(c){return n.enter("hardBreakEscape"),n.consume(c),o}function o(c){return pe(c)?(n.exit("hardBreakEscape"),a(c)):r(c)}}const tw={name:"headingAtx",resolve:nw,tokenize:lw};function nw(n,a){let r=n.length-2,u=3,o,c;return n[u][1].type==="whitespace"&&(u+=2),r-2>u&&n[r][1].type==="whitespace"&&(r-=2),n[r][1].type==="atxHeadingSequence"&&(u===r-1||r-4>u&&n[r-2][1].type==="whitespace")&&(r-=u+1===r?2:4),r>u&&(o={type:"atxHeadingText",start:n[u][1].start,end:n[r][1].end},c={type:"chunkText",start:n[u][1].start,end:n[r][1].end,contentType:"text"},wn(n,u,r-u+1,[["enter",o,a],["enter",c,a],["exit",c,a],["exit",o,a]])),n}function lw(n,a,r){let u=0;return o;function o(x){return n.enter("atxHeading"),c(x)}function c(x){return n.enter("atxHeadingSequence"),d(x)}function d(x){return x===35&&u++<6?(n.consume(x),d):x===null||Ot(x)?(n.exit("atxHeadingSequence"),m(x)):r(x)}function m(x){return x===35?(n.enter("atxHeadingSequence"),g(x)):x===null||pe(x)?(n.exit("atxHeading"),a(x)):_e(x)?Ke(n,m,"whitespace")(x):(n.enter("atxHeadingText"),p(x))}function g(x){return x===35?(n.consume(x),g):(n.exit("atxHeadingSequence"),m(x))}function p(x){return x===null||x===35||Ot(x)?(n.exit("atxHeadingText"),m(x)):(n.consume(x),p)}}const aw=["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"],bg=["pre","script","style","textarea"],iw={concrete:!0,name:"htmlFlow",resolveTo:sw,tokenize:ow},rw={partial:!0,tokenize:fw},uw={partial:!0,tokenize:cw};function sw(n){let a=n.length;for(;a--&&!(n[a][0]==="enter"&&n[a][1].type==="htmlFlow"););return a>1&&n[a-2][1].type==="linePrefix"&&(n[a][1].start=n[a-2][1].start,n[a+1][1].start=n[a-2][1].start,n.splice(a-2,2)),n}function ow(n,a,r){const u=this;let o,c,d,m,g;return p;function p(j){return x(j)}function x(j){return n.enter("htmlFlow"),n.enter("htmlFlowData"),n.consume(j),b}function b(j){return j===33?(n.consume(j),w):j===47?(n.consume(j),c=!0,M):j===63?(n.consume(j),o=3,u.interrupt?a:E):Sn(j)?(n.consume(j),d=String.fromCharCode(j),O):r(j)}function w(j){return j===45?(n.consume(j),o=2,S):j===91?(n.consume(j),o=5,m=0,R):Sn(j)?(n.consume(j),o=4,u.interrupt?a:E):r(j)}function S(j){return j===45?(n.consume(j),u.interrupt?a:E):r(j)}function R(j){const ne="CDATA[";return j===ne.charCodeAt(m++)?(n.consume(j),m===ne.length?u.interrupt?a:ee:R):r(j)}function M(j){return Sn(j)?(n.consume(j),d=String.fromCharCode(j),O):r(j)}function O(j){if(j===null||j===47||j===62||Ot(j)){const ne=j===47,he=d.toLowerCase();return!ne&&!c&&bg.includes(he)?(o=1,u.interrupt?a(j):ee(j)):aw.includes(d.toLowerCase())?(o=6,ne?(n.consume(j),z):u.interrupt?a(j):ee(j)):(o=7,u.interrupt&&!u.parser.lazy[u.now().line]?r(j):c?X(j):k(j))}return j===45||Gt(j)?(n.consume(j),d+=String.fromCharCode(j),O):r(j)}function z(j){return j===62?(n.consume(j),u.interrupt?a:ee):r(j)}function X(j){return _e(j)?(n.consume(j),X):ge(j)}function k(j){return j===47?(n.consume(j),ge):j===58||j===95||Sn(j)?(n.consume(j),J):_e(j)?(n.consume(j),k):ge(j)}function J(j){return j===45||j===46||j===58||j===95||Gt(j)?(n.consume(j),J):te(j)}function te(j){return j===61?(n.consume(j),q):_e(j)?(n.consume(j),te):k(j)}function q(j){return j===null||j===60||j===61||j===62||j===96?r(j):j===34||j===39?(n.consume(j),g=j,$):_e(j)?(n.consume(j),q):ue(j)}function $(j){return j===g?(n.consume(j),g=null,ce):j===null||pe(j)?r(j):(n.consume(j),$)}function ue(j){return j===null||j===34||j===39||j===47||j===60||j===61||j===62||j===96||Ot(j)?te(j):(n.consume(j),ue)}function ce(j){return j===47||j===62||_e(j)?k(j):r(j)}function ge(j){return j===62?(n.consume(j),le):r(j)}function le(j){return j===null||pe(j)?ee(j):_e(j)?(n.consume(j),le):r(j)}function ee(j){return j===45&&o===2?(n.consume(j),B):j===60&&o===1?(n.consume(j),Z):j===62&&o===4?(n.consume(j),T):j===63&&o===3?(n.consume(j),E):j===93&&o===5?(n.consume(j),fe):pe(j)&&(o===6||o===7)?(n.exit("htmlFlowData"),n.check(rw,Y,Se)(j)):j===null||pe(j)?(n.exit("htmlFlowData"),Se(j)):(n.consume(j),ee)}function Se(j){return n.check(uw,ie,Y)(j)}function ie(j){return n.enter("lineEnding"),n.consume(j),n.exit("lineEnding"),F}function F(j){return j===null||pe(j)?Se(j):(n.enter("htmlFlowData"),ee(j))}function B(j){return j===45?(n.consume(j),E):ee(j)}function Z(j){return j===47?(n.consume(j),d="",P):ee(j)}function P(j){if(j===62){const ne=d.toLowerCase();return bg.includes(ne)?(n.consume(j),T):ee(j)}return Sn(j)&&d.length<8?(n.consume(j),d+=String.fromCharCode(j),P):ee(j)}function fe(j){return j===93?(n.consume(j),E):ee(j)}function E(j){return j===62?(n.consume(j),T):j===45&&o===2?(n.consume(j),E):ee(j)}function T(j){return j===null||pe(j)?(n.exit("htmlFlowData"),Y(j)):(n.consume(j),T)}function Y(j){return n.exit("htmlFlow"),a(j)}}function cw(n,a,r){const u=this;return o;function o(d){return pe(d)?(n.enter("lineEnding"),n.consume(d),n.exit("lineEnding"),c):r(d)}function c(d){return u.parser.lazy[u.now().line]?r(d):a(d)}}function fw(n,a,r){return u;function u(o){return n.enter("lineEnding"),n.consume(o),n.exit("lineEnding"),n.attempt(Fu,a,r)}}const dw={name:"htmlText",tokenize:hw};function hw(n,a,r){const u=this;let o,c,d;return m;function m(E){return n.enter("htmlText"),n.enter("htmlTextData"),n.consume(E),g}function g(E){return E===33?(n.consume(E),p):E===47?(n.consume(E),te):E===63?(n.consume(E),k):Sn(E)?(n.consume(E),ue):r(E)}function p(E){return E===45?(n.consume(E),x):E===91?(n.consume(E),c=0,R):Sn(E)?(n.consume(E),X):r(E)}function x(E){return E===45?(n.consume(E),S):r(E)}function b(E){return E===null?r(E):E===45?(n.consume(E),w):pe(E)?(d=b,Z(E)):(n.consume(E),b)}function w(E){return E===45?(n.consume(E),S):b(E)}function S(E){return E===62?B(E):E===45?w(E):b(E)}function R(E){const T="CDATA[";return E===T.charCodeAt(c++)?(n.consume(E),c===T.length?M:R):r(E)}function M(E){return E===null?r(E):E===93?(n.consume(E),O):pe(E)?(d=M,Z(E)):(n.consume(E),M)}function O(E){return E===93?(n.consume(E),z):M(E)}function z(E){return E===62?B(E):E===93?(n.consume(E),z):M(E)}function X(E){return E===null||E===62?B(E):pe(E)?(d=X,Z(E)):(n.consume(E),X)}function k(E){return E===null?r(E):E===63?(n.consume(E),J):pe(E)?(d=k,Z(E)):(n.consume(E),k)}function J(E){return E===62?B(E):k(E)}function te(E){return Sn(E)?(n.consume(E),q):r(E)}function q(E){return E===45||Gt(E)?(n.consume(E),q):$(E)}function $(E){return pe(E)?(d=$,Z(E)):_e(E)?(n.consume(E),$):B(E)}function ue(E){return E===45||Gt(E)?(n.consume(E),ue):E===47||E===62||Ot(E)?ce(E):r(E)}function ce(E){return E===47?(n.consume(E),B):E===58||E===95||Sn(E)?(n.consume(E),ge):pe(E)?(d=ce,Z(E)):_e(E)?(n.consume(E),ce):B(E)}function ge(E){return E===45||E===46||E===58||E===95||Gt(E)?(n.consume(E),ge):le(E)}function le(E){return E===61?(n.consume(E),ee):pe(E)?(d=le,Z(E)):_e(E)?(n.consume(E),le):ce(E)}function ee(E){return E===null||E===60||E===61||E===62||E===96?r(E):E===34||E===39?(n.consume(E),o=E,Se):pe(E)?(d=ee,Z(E)):_e(E)?(n.consume(E),ee):(n.consume(E),ie)}function Se(E){return E===o?(n.consume(E),o=void 0,F):E===null?r(E):pe(E)?(d=Se,Z(E)):(n.consume(E),Se)}function ie(E){return E===null||E===34||E===39||E===60||E===61||E===96?r(E):E===47||E===62||Ot(E)?ce(E):(n.consume(E),ie)}function F(E){return E===47||E===62||Ot(E)?ce(E):r(E)}function B(E){return E===62?(n.consume(E),n.exit("htmlTextData"),n.exit("htmlText"),a):r(E)}function Z(E){return n.exit("htmlTextData"),n.enter("lineEnding"),n.consume(E),n.exit("lineEnding"),P}function P(E){return _e(E)?Ke(n,fe,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(E):fe(E)}function fe(E){return n.enter("htmlTextData"),d(E)}}const zf={name:"labelEnd",resolveAll:yw,resolveTo:xw,tokenize:bw},mw={tokenize:vw},pw={tokenize:Sw},gw={tokenize:ww};function yw(n){let a=-1;const r=[];for(;++a<n.length;){const u=n[a][1];if(r.push(n[a]),u.type==="labelImage"||u.type==="labelLink"||u.type==="labelEnd"){const o=u.type==="labelImage"?4:2;u.type="data",a+=o}}return n.length!==r.length&&wn(n,0,n.length,r),n}function xw(n,a){let r=n.length,u=0,o,c,d,m;for(;r--;)if(o=n[r][1],c){if(o.type==="link"||o.type==="labelLink"&&o._inactive)break;n[r][0]==="enter"&&o.type==="labelLink"&&(o._inactive=!0)}else if(d){if(n[r][0]==="enter"&&(o.type==="labelImage"||o.type==="labelLink")&&!o._balanced&&(c=r,o.type!=="labelLink")){u=2;break}}else o.type==="labelEnd"&&(d=r);const g={type:n[c][1].type==="labelLink"?"link":"image",start:{...n[c][1].start},end:{...n[n.length-1][1].end}},p={type:"label",start:{...n[c][1].start},end:{...n[d][1].end}},x={type:"labelText",start:{...n[c+u+2][1].end},end:{...n[d-2][1].start}};return m=[["enter",g,a],["enter",p,a]],m=un(m,n.slice(c+1,c+u+3)),m=un(m,[["enter",x,a]]),m=un(m,Af(a.parser.constructs.insideSpan.null,n.slice(c+u+4,d-3),a)),m=un(m,[["exit",x,a],n[d-2],n[d-1],["exit",p,a]]),m=un(m,n.slice(d+1)),m=un(m,[["exit",g,a]]),wn(n,c,n.length,m),n}function bw(n,a,r){const u=this;let o=u.events.length,c,d;for(;o--;)if((u.events[o][1].type==="labelImage"||u.events[o][1].type==="labelLink")&&!u.events[o][1]._balanced){c=u.events[o][1];break}return m;function m(w){return c?c._inactive?b(w):(d=u.parser.defined.includes(Ba(u.sliceSerialize({start:c.end,end:u.now()}))),n.enter("labelEnd"),n.enter("labelMarker"),n.consume(w),n.exit("labelMarker"),n.exit("labelEnd"),g):r(w)}function g(w){return w===40?n.attempt(mw,x,d?x:b)(w):w===91?n.attempt(pw,x,d?p:b)(w):d?x(w):b(w)}function p(w){return n.attempt(gw,x,b)(w)}function x(w){return a(w)}function b(w){return c._balanced=!0,r(w)}}function vw(n,a,r){return u;function u(b){return n.enter("resource"),n.enter("resourceMarker"),n.consume(b),n.exit("resourceMarker"),o}function o(b){return Ot(b)?$i(n,c)(b):c(b)}function c(b){return b===41?x(b):$y(n,d,m,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(b)}function d(b){return Ot(b)?$i(n,g)(b):x(b)}function m(b){return r(b)}function g(b){return b===34||b===39||b===40?Jy(n,p,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(b):x(b)}function p(b){return Ot(b)?$i(n,x)(b):x(b)}function x(b){return b===41?(n.enter("resourceMarker"),n.consume(b),n.exit("resourceMarker"),n.exit("resource"),a):r(b)}}function Sw(n,a,r){const u=this;return o;function o(m){return Fy.call(u,n,c,d,"reference","referenceMarker","referenceString")(m)}function c(m){return u.parser.defined.includes(Ba(u.sliceSerialize(u.events[u.events.length-1][1]).slice(1,-1)))?a(m):r(m)}function d(m){return r(m)}}function ww(n,a,r){return u;function u(c){return n.enter("reference"),n.enter("referenceMarker"),n.consume(c),n.exit("referenceMarker"),o}function o(c){return c===93?(n.enter("referenceMarker"),n.consume(c),n.exit("referenceMarker"),n.exit("reference"),a):r(c)}}const jw={name:"labelStartImage",resolveAll:zf.resolveAll,tokenize:Ew};function Ew(n,a,r){const u=this;return o;function o(m){return n.enter("labelImage"),n.enter("labelImageMarker"),n.consume(m),n.exit("labelImageMarker"),c}function c(m){return m===91?(n.enter("labelMarker"),n.consume(m),n.exit("labelMarker"),n.exit("labelImage"),d):r(m)}function d(m){return m===94&&"_hiddenFootnoteSupport"in u.parser.constructs?r(m):a(m)}}const Nw={name:"labelStartLink",resolveAll:zf.resolveAll,tokenize:Tw};function Tw(n,a,r){const u=this;return o;function o(d){return n.enter("labelLink"),n.enter("labelMarker"),n.consume(d),n.exit("labelMarker"),n.exit("labelLink"),c}function c(d){return d===94&&"_hiddenFootnoteSupport"in u.parser.constructs?r(d):a(d)}}const Lc={name:"lineEnding",tokenize:Cw};function Cw(n,a){return r;function r(u){return n.enter("lineEnding"),n.consume(u),n.exit("lineEnding"),Ke(n,a,"linePrefix")}}const Du={name:"thematicBreak",tokenize:Aw};function Aw(n,a,r){let u=0,o;return c;function c(p){return n.enter("thematicBreak"),d(p)}function d(p){return o=p,m(p)}function m(p){return p===o?(n.enter("thematicBreakSequence"),g(p)):u>=3&&(p===null||pe(p))?(n.exit("thematicBreak"),a(p)):r(p)}function g(p){return p===o?(n.consume(p),u++,g):(n.exit("thematicBreakSequence"),_e(p)?Ke(n,m,"whitespace")(p):m(p))}}const Mt={continuation:{tokenize:_w},exit:Ow,name:"list",tokenize:Rw},zw={partial:!0,tokenize:Dw},kw={partial:!0,tokenize:Mw};function Rw(n,a,r){const u=this,o=u.events[u.events.length-1];let c=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,d=0;return m;function m(S){const R=u.containerState.type||(S===42||S===43||S===45?"listUnordered":"listOrdered");if(R==="listUnordered"?!u.containerState.marker||S===u.containerState.marker:Wc(S)){if(u.containerState.type||(u.containerState.type=R,n.enter(R,{_container:!0})),R==="listUnordered")return n.enter("listItemPrefix"),S===42||S===45?n.check(Du,r,p)(S):p(S);if(!u.interrupt||S===49)return n.enter("listItemPrefix"),n.enter("listItemValue"),g(S)}return r(S)}function g(S){return Wc(S)&&++d<10?(n.consume(S),g):(!u.interrupt||d<2)&&(u.containerState.marker?S===u.containerState.marker:S===41||S===46)?(n.exit("listItemValue"),p(S)):r(S)}function p(S){return n.enter("listItemMarker"),n.consume(S),n.exit("listItemMarker"),u.containerState.marker=u.containerState.marker||S,n.check(Fu,u.interrupt?r:x,n.attempt(zw,w,b))}function x(S){return u.containerState.initialBlankLine=!0,c++,w(S)}function b(S){return _e(S)?(n.enter("listItemPrefixWhitespace"),n.consume(S),n.exit("listItemPrefixWhitespace"),w):r(S)}function w(S){return u.containerState.size=c+u.sliceSerialize(n.exit("listItemPrefix"),!0).length,a(S)}}function _w(n,a,r){const u=this;return u.containerState._closeFlow=void 0,n.check(Fu,o,c);function o(m){return u.containerState.furtherBlankLines=u.containerState.furtherBlankLines||u.containerState.initialBlankLine,Ke(n,a,"listItemIndent",u.containerState.size+1)(m)}function c(m){return u.containerState.furtherBlankLines||!_e(m)?(u.containerState.furtherBlankLines=void 0,u.containerState.initialBlankLine=void 0,d(m)):(u.containerState.furtherBlankLines=void 0,u.containerState.initialBlankLine=void 0,n.attempt(kw,a,d)(m))}function d(m){return u.containerState._closeFlow=!0,u.interrupt=void 0,Ke(n,n.attempt(Mt,a,r),"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(m)}}function Mw(n,a,r){const u=this;return Ke(n,o,"listItemIndent",u.containerState.size+1);function o(c){const d=u.events[u.events.length-1];return d&&d[1].type==="listItemIndent"&&d[2].sliceSerialize(d[1],!0).length===u.containerState.size?a(c):r(c)}}function Ow(n){n.exit(this.containerState.type)}function Dw(n,a,r){const u=this;return Ke(n,o,"listItemPrefixWhitespace",u.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function o(c){const d=u.events[u.events.length-1];return!_e(c)&&d&&d[1].type==="listItemPrefixWhitespace"?a(c):r(c)}}const vg={name:"setextUnderline",resolveTo:Lw,tokenize:Bw};function Lw(n,a){let r=n.length,u,o,c;for(;r--;)if(n[r][0]==="enter"){if(n[r][1].type==="content"){u=r;break}n[r][1].type==="paragraph"&&(o=r)}else n[r][1].type==="content"&&n.splice(r,1),!c&&n[r][1].type==="definition"&&(c=r);const d={type:"setextHeading",start:{...n[u][1].start},end:{...n[n.length-1][1].end}};return n[o][1].type="setextHeadingText",c?(n.splice(o,0,["enter",d,a]),n.splice(c+1,0,["exit",n[u][1],a]),n[u][1].end={...n[c][1].end}):n[u][1]=d,n.push(["exit",d,a]),n}function Bw(n,a,r){const u=this;let o;return c;function c(p){let x=u.events.length,b;for(;x--;)if(u.events[x][1].type!=="lineEnding"&&u.events[x][1].type!=="linePrefix"&&u.events[x][1].type!=="content"){b=u.events[x][1].type==="paragraph";break}return!u.parser.lazy[u.now().line]&&(u.interrupt||b)?(n.enter("setextHeadingLine"),o=p,d(p)):r(p)}function d(p){return n.enter("setextHeadingLineSequence"),m(p)}function m(p){return p===o?(n.consume(p),m):(n.exit("setextHeadingLineSequence"),_e(p)?Ke(n,g,"lineSuffix")(p):g(p))}function g(p){return p===null||pe(p)?(n.exit("setextHeadingLine"),a(p)):r(p)}}const Uw={tokenize:Hw};function Hw(n){const a=this,r=n.attempt(Fu,u,n.attempt(this.parser.constructs.flowInitial,o,Ke(n,n.attempt(this.parser.constructs.flow,o,n.attempt(K2,o)),"linePrefix")));return r;function u(c){if(c===null){n.consume(c);return}return n.enter("lineEndingBlank"),n.consume(c),n.exit("lineEndingBlank"),a.currentConstruct=void 0,r}function o(c){if(c===null){n.consume(c);return}return n.enter("lineEnding"),n.consume(c),n.exit("lineEnding"),a.currentConstruct=void 0,r}}const qw={resolveAll:Py()},Yw=Iy("string"),Vw=Iy("text");function Iy(n){return{resolveAll:Py(n==="text"?Qw:void 0),tokenize:a};function a(r){const u=this,o=this.parser.constructs[n],c=r.attempt(o,d,m);return d;function d(x){return p(x)?c(x):m(x)}function m(x){if(x===null){r.consume(x);return}return r.enter("data"),r.consume(x),g}function g(x){return p(x)?(r.exit("data"),c(x)):(r.consume(x),g)}function p(x){if(x===null)return!0;const b=o[x];let w=-1;if(b)for(;++w<b.length;){const S=b[w];if(!S.previous||S.previous.call(u,u.previous))return!0}return!1}}}function Py(n){return a;function a(r,u){let o=-1,c;for(;++o<=r.length;)c===void 0?r[o]&&r[o][1].type==="data"&&(c=o,o++):(!r[o]||r[o][1].type!=="data")&&(o!==c+2&&(r[c][1].end=r[o-1][1].end,r.splice(c+2,o-c-2),o=c+2),c=void 0);return n?n(r,u):r}}function Qw(n,a){let r=0;for(;++r<=n.length;)if((r===n.length||n[r][1].type==="lineEnding")&&n[r-1][1].type==="data"){const u=n[r-1][1],o=a.sliceStream(u);let c=o.length,d=-1,m=0,g;for(;c--;){const p=o[c];if(typeof p=="string"){for(d=p.length;p.charCodeAt(d-1)===32;)m++,d--;if(d)break;d=-1}else if(p===-2)g=!0,m++;else if(p!==-1){c++;break}}if(a._contentTypeTextTrailing&&r===n.length&&(m=0),m){const p={type:r===n.length||g||m<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:c?d:u.start._bufferIndex+d,_index:u.start._index+c,line:u.end.line,column:u.end.column-m,offset:u.end.offset-m},end:{...u.end}};u.end={...p.start},u.start.offset===u.end.offset?Object.assign(u,p):(n.splice(r,0,["enter",p,a],["exit",p,a]),r+=2)}r++}return n}const Kw={42:Mt,43:Mt,45:Mt,48:Mt,49:Mt,50:Mt,51:Mt,52:Mt,53:Mt,54:Mt,55:Mt,56:Mt,57:Mt,62:Ky},Gw={91:F2},Xw={[-2]:Dc,[-1]:Dc,32:Dc},Zw={35:tw,42:Du,45:[vg,Du],60:iw,61:vg,95:Du,96:xg,126:xg},$w={38:Xy,92:Gy},Fw={[-5]:Lc,[-4]:Lc,[-3]:Lc,33:jw,38:Xy,42:ef,60:[N2,dw],91:Nw,92:[W2,Gy],93:zf,95:ef,96:U2},Jw={null:[ef,qw]},Iw={null:[42,95]},Pw={null:[]},Ww=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Iw,contentInitial:Gw,disable:Pw,document:Kw,flow:Zw,flowInitial:Xw,insideSpan:Jw,string:$w,text:Fw},Symbol.toStringTag,{value:"Module"}));function ej(n,a,r){let u={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const o={},c=[];let d=[],m=[];const g={attempt:$(te),check:$(q),consume:X,enter:k,exit:J,interrupt:$(q,{interrupt:!0})},p={code:null,containerState:{},defineSkip:M,events:[],now:R,parser:n,previous:null,sliceSerialize:w,sliceStream:S,write:b};let x=a.tokenize.call(p,g);return a.resolveAll&&c.push(a),p;function b(le){return d=un(d,le),O(),d[d.length-1]!==null?[]:(ue(a,0),p.events=Af(c,p.events,p),p.events)}function w(le,ee){return nj(S(le),ee)}function S(le){return tj(d,le)}function R(){const{_bufferIndex:le,_index:ee,line:Se,column:ie,offset:F}=u;return{_bufferIndex:le,_index:ee,line:Se,column:ie,offset:F}}function M(le){o[le.line]=le.column,ge()}function O(){let le;for(;u._index<d.length;){const ee=d[u._index];if(typeof ee=="string")for(le=u._index,u._bufferIndex<0&&(u._bufferIndex=0);u._index===le&&u._bufferIndex<ee.length;)z(ee.charCodeAt(u._bufferIndex));else z(ee)}}function z(le){x=x(le)}function X(le){pe(le)?(u.line++,u.column=1,u.offset+=le===-3?2:1,ge()):le!==-1&&(u.column++,u.offset++),u._bufferIndex<0?u._index++:(u._bufferIndex++,u._bufferIndex===d[u._index].length&&(u._bufferIndex=-1,u._index++)),p.previous=le}function k(le,ee){const Se=ee||{};return Se.type=le,Se.start=R(),p.events.push(["enter",Se,p]),m.push(Se),Se}function J(le){const ee=m.pop();return ee.end=R(),p.events.push(["exit",ee,p]),ee}function te(le,ee){ue(le,ee.from)}function q(le,ee){ee.restore()}function $(le,ee){return Se;function Se(ie,F,B){let Z,P,fe,E;return Array.isArray(ie)?Y(ie):"tokenize"in ie?Y([ie]):T(ie);function T(se){return Ne;function Ne($e){const Le=$e!==null&&se[$e],Ft=$e!==null&&se.null,jn=[...Array.isArray(Le)?Le:Le?[Le]:[],...Array.isArray(Ft)?Ft:Ft?[Ft]:[]];return Y(jn)($e)}}function Y(se){return Z=se,P=0,se.length===0?B:j(se[P])}function j(se){return Ne;function Ne($e){return E=ce(),fe=se,se.partial||(p.currentConstruct=se),se.name&&p.parser.constructs.disable.null.includes(se.name)?he():se.tokenize.call(ee?Object.assign(Object.create(p),ee):p,g,ne,he)($e)}}function ne(se){return le(fe,E),F}function he(se){return E.restore(),++P<Z.length?j(Z[P]):B}}}function ue(le,ee){le.resolveAll&&!c.includes(le)&&c.push(le),le.resolve&&wn(p.events,ee,p.events.length-ee,le.resolve(p.events.slice(ee),p)),le.resolveTo&&(p.events=le.resolveTo(p.events,p))}function ce(){const le=R(),ee=p.previous,Se=p.currentConstruct,ie=p.events.length,F=Array.from(m);return{from:ie,restore:B};function B(){u=le,p.previous=ee,p.currentConstruct=Se,p.events.length=ie,m=F,ge()}}function ge(){u.line in o&&u.column<2&&(u.column=o[u.line],u.offset+=o[u.line]-1)}}function tj(n,a){const r=a.start._index,u=a.start._bufferIndex,o=a.end._index,c=a.end._bufferIndex;let d;if(r===o)d=[n[r].slice(u,c)];else{if(d=n.slice(r,o),u>-1){const m=d[0];typeof m=="string"?d[0]=m.slice(u):d.shift()}c>0&&d.push(n[o].slice(0,c))}return d}function nj(n,a){let r=-1;const u=[];let o;for(;++r<n.length;){const c=n[r];let d;if(typeof c=="string")d=c;else switch(c){case-5:{d="\r";break}case-4:{d=`
62
- `;break}case-3:{d=`\r
63
- `;break}case-2:{d=a?" ":" ";break}case-1:{if(!a&&o)continue;d=" ";break}default:d=String.fromCharCode(c)}o=c===-2,u.push(d)}return u.join("")}function lj(n){const u={constructs:c2([Ww,...(n||{}).extensions||[]]),content:o(x2),defined:[],document:o(v2),flow:o(Uw),lazy:{},string:o(Yw),text:o(Vw)};return u;function o(c){return d;function d(m){return ej(u,c,m)}}}function aj(n){for(;!Zy(n););return n}const Sg=/[\0\t\n\r]/g;function ij(){let n=1,a="",r=!0,u;return o;function o(c,d,m){const g=[];let p,x,b,w,S;for(c=a+(typeof c=="string"?c.toString():new TextDecoder(d||void 0).decode(c)),b=0,a="",r&&(c.charCodeAt(0)===65279&&b++,r=void 0);b<c.length;){if(Sg.lastIndex=b,p=Sg.exec(c),w=p&&p.index!==void 0?p.index:c.length,S=c.charCodeAt(w),!p){a=c.slice(b);break}if(S===10&&b===w&&u)g.push(-3),u=void 0;else switch(u&&(g.push(-5),u=void 0),b<w&&(g.push(c.slice(b,w)),n+=w-b),S){case 0:{g.push(65533),n++;break}case 9:{for(x=Math.ceil(n/4)*4,g.push(-2);n++<x;)g.push(-1);break}case 10:{g.push(-4),n=1;break}default:u=!0,n=1}b=w+1}return m&&(u&&g.push(-5),a&&g.push(a),g.push(null)),g}}const rj=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function uj(n){return n.replace(rj,sj)}function sj(n,a,r){if(a)return a;if(r.charCodeAt(0)===35){const o=r.charCodeAt(1),c=o===120||o===88;return Qy(r.slice(c?2:1),c?16:10)}return Cf(r)||n}const Wy={}.hasOwnProperty;function oj(n,a,r){return a&&typeof a=="object"&&(r=a,a=void 0),cj(r)(aj(lj(r).document().write(ij()(n,a,!0))))}function cj(n){const a={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:c(Zl),autolinkProtocol:ce,autolinkEmail:ce,atxHeading:c(Gl),blockQuote:c(Ft),characterEscape:ce,characterReference:ce,codeFenced:c(jn),codeFencedFenceInfo:d,codeFencedFenceMeta:d,codeIndented:c(jn,d),codeText:c(Za,d),codeTextData:ce,data:ce,codeFlowValue:ce,definition:c(sr),definitionDestinationString:d,definitionLabelString:d,definitionTitleString:d,emphasis:c(En),hardBreakEscape:c(Xl),hardBreakTrailing:c(Xl),htmlFlow:c(or,d),htmlFlowData:ce,htmlText:c(or,d),htmlTextData:ce,image:c(cr),label:d,link:c(Zl),listItem:c($a),listItemValue:w,listOrdered:c($l,b),listUnordered:c($l),paragraph:c(ls),reference:j,referenceString:d,resourceDestinationString:d,resourceTitleString:d,setextHeading:c(Gl),strong:c(as),thematicBreak:c(is)},exit:{atxHeading:g(),atxHeadingSequence:te,autolink:g(),autolinkEmail:Le,autolinkProtocol:$e,blockQuote:g(),characterEscapeValue:ge,characterReferenceMarkerHexadecimal:he,characterReferenceMarkerNumeric:he,characterReferenceValue:se,characterReference:Ne,codeFenced:g(O),codeFencedFence:M,codeFencedFenceInfo:S,codeFencedFenceMeta:R,codeFlowValue:ge,codeIndented:g(z),codeText:g(F),codeTextData:ge,data:ge,definition:g(),definitionDestinationString:J,definitionLabelString:X,definitionTitleString:k,emphasis:g(),hardBreakEscape:g(ee),hardBreakTrailing:g(ee),htmlFlow:g(Se),htmlFlowData:ge,htmlText:g(ie),htmlTextData:ge,image:g(Z),label:fe,labelText:P,lineEnding:le,link:g(B),listItem:g(),listOrdered:g(),listUnordered:g(),paragraph:g(),referenceString:ne,resourceDestinationString:E,resourceTitleString:T,resource:Y,setextHeading:g(ue),setextHeadingLineSequence:$,setextHeadingText:q,strong:g(),thematicBreak:g()}};ex(a,(n||{}).mdastExtensions||[]);const r={};return u;function u(Q){let W={type:"root",children:[]};const me={stack:[W],tokenStack:[],config:a,enter:m,exit:p,buffer:d,resume:x,data:r},we=[];let Me=-1;for(;++Me<Q.length;)if(Q[Me][1].type==="listOrdered"||Q[Me][1].type==="listUnordered")if(Q[Me][0]==="enter")we.push(Me);else{const Lt=we.pop();Me=o(Q,Lt,Me)}for(Me=-1;++Me<Q.length;){const Lt=a[Q[Me][0]];Wy.call(Lt,Q[Me][1].type)&&Lt[Q[Me][1].type].call(Object.assign({sliceSerialize:Q[Me][2].sliceSerialize},me),Q[Me][1])}if(me.tokenStack.length>0){const Lt=me.tokenStack[me.tokenStack.length-1];(Lt[1]||wg).call(me,void 0,Lt[0])}for(W.position={start:xl(Q.length>0?Q[0][1].start:{line:1,column:1,offset:0}),end:xl(Q.length>0?Q[Q.length-2][1].end:{line:1,column:1,offset:0})},Me=-1;++Me<a.transforms.length;)W=a.transforms[Me](W)||W;return W}function o(Q,W,me){let we=W-1,Me=-1,Lt=!1,Nn,wt,ot,Nt;for(;++we<=me;){const qe=Q[we];switch(qe[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{qe[0]==="enter"?Me++:Me--,Nt=void 0;break}case"lineEndingBlank":{qe[0]==="enter"&&(Nn&&!Nt&&!Me&&!ot&&(ot=we),Nt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Nt=void 0}if(!Me&&qe[0]==="enter"&&qe[1].type==="listItemPrefix"||Me===-1&&qe[0]==="exit"&&(qe[1].type==="listUnordered"||qe[1].type==="listOrdered")){if(Nn){let Zn=we;for(wt=void 0;Zn--;){const cn=Q[Zn];if(cn[1].type==="lineEnding"||cn[1].type==="lineEndingBlank"){if(cn[0]==="exit")continue;wt&&(Q[wt][1].type="lineEndingBlank",Lt=!0),cn[1].type="lineEnding",wt=Zn}else if(!(cn[1].type==="linePrefix"||cn[1].type==="blockQuotePrefix"||cn[1].type==="blockQuotePrefixWhitespace"||cn[1].type==="blockQuoteMarker"||cn[1].type==="listItemIndent"))break}ot&&(!wt||ot<wt)&&(Nn._spread=!0),Nn.end=Object.assign({},wt?Q[wt][1].start:qe[1].end),Q.splice(wt||we,0,["exit",Nn,qe[2]]),we++,me++}if(qe[1].type==="listItemPrefix"){const Zn={type:"listItem",_spread:!1,start:Object.assign({},qe[1].start),end:void 0};Nn=Zn,Q.splice(we,0,["enter",Zn,qe[2]]),we++,me++,ot=void 0,Nt=!0}}}return Q[W][1]._spread=Lt,me}function c(Q,W){return me;function me(we){m.call(this,Q(we),we),W&&W.call(this,we)}}function d(){this.stack.push({type:"fragment",children:[]})}function m(Q,W,me){this.stack[this.stack.length-1].children.push(Q),this.stack.push(Q),this.tokenStack.push([W,me||void 0]),Q.position={start:xl(W.start),end:void 0}}function g(Q){return W;function W(me){Q&&Q.call(this,me),p.call(this,me)}}function p(Q,W){const me=this.stack.pop(),we=this.tokenStack.pop();if(we)we[0].type!==Q.type&&(W?W.call(this,Q,we[0]):(we[1]||wg).call(this,Q,we[0]));else throw new Error("Cannot close `"+Q.type+"` ("+Zi({start:Q.start,end:Q.end})+"): it’s not open");me.position.end=xl(Q.end)}function x(){return s2(this.stack.pop())}function b(){this.data.expectingFirstListItemValue=!0}function w(Q){if(this.data.expectingFirstListItemValue){const W=this.stack[this.stack.length-2];W.start=Number.parseInt(this.sliceSerialize(Q),10),this.data.expectingFirstListItemValue=void 0}}function S(){const Q=this.resume(),W=this.stack[this.stack.length-1];W.lang=Q}function R(){const Q=this.resume(),W=this.stack[this.stack.length-1];W.meta=Q}function M(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function O(){const Q=this.resume(),W=this.stack[this.stack.length-1];W.value=Q.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function z(){const Q=this.resume(),W=this.stack[this.stack.length-1];W.value=Q.replace(/(\r?\n|\r)$/g,"")}function X(Q){const W=this.resume(),me=this.stack[this.stack.length-1];me.label=W,me.identifier=Ba(this.sliceSerialize(Q)).toLowerCase()}function k(){const Q=this.resume(),W=this.stack[this.stack.length-1];W.title=Q}function J(){const Q=this.resume(),W=this.stack[this.stack.length-1];W.url=Q}function te(Q){const W=this.stack[this.stack.length-1];if(!W.depth){const me=this.sliceSerialize(Q).length;W.depth=me}}function q(){this.data.setextHeadingSlurpLineEnding=!0}function $(Q){const W=this.stack[this.stack.length-1];W.depth=this.sliceSerialize(Q).codePointAt(0)===61?1:2}function ue(){this.data.setextHeadingSlurpLineEnding=void 0}function ce(Q){const me=this.stack[this.stack.length-1].children;let we=me[me.length-1];(!we||we.type!=="text")&&(we=St(),we.position={start:xl(Q.start),end:void 0},me.push(we)),this.stack.push(we)}function ge(Q){const W=this.stack.pop();W.value+=this.sliceSerialize(Q),W.position.end=xl(Q.end)}function le(Q){const W=this.stack[this.stack.length-1];if(this.data.atHardBreak){const me=W.children[W.children.length-1];me.position.end=xl(Q.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&a.canContainEols.includes(W.type)&&(ce.call(this,Q),ge.call(this,Q))}function ee(){this.data.atHardBreak=!0}function Se(){const Q=this.resume(),W=this.stack[this.stack.length-1];W.value=Q}function ie(){const Q=this.resume(),W=this.stack[this.stack.length-1];W.value=Q}function F(){const Q=this.resume(),W=this.stack[this.stack.length-1];W.value=Q}function B(){const Q=this.stack[this.stack.length-1];if(this.data.inReference){const W=this.data.referenceType||"shortcut";Q.type+="Reference",Q.referenceType=W,delete Q.url,delete Q.title}else delete Q.identifier,delete Q.label;this.data.referenceType=void 0}function Z(){const Q=this.stack[this.stack.length-1];if(this.data.inReference){const W=this.data.referenceType||"shortcut";Q.type+="Reference",Q.referenceType=W,delete Q.url,delete Q.title}else delete Q.identifier,delete Q.label;this.data.referenceType=void 0}function P(Q){const W=this.sliceSerialize(Q),me=this.stack[this.stack.length-2];me.label=uj(W),me.identifier=Ba(W).toLowerCase()}function fe(){const Q=this.stack[this.stack.length-1],W=this.resume(),me=this.stack[this.stack.length-1];if(this.data.inReference=!0,me.type==="link"){const we=Q.children;me.children=we}else me.alt=W}function E(){const Q=this.resume(),W=this.stack[this.stack.length-1];W.url=Q}function T(){const Q=this.resume(),W=this.stack[this.stack.length-1];W.title=Q}function Y(){this.data.inReference=void 0}function j(){this.data.referenceType="collapsed"}function ne(Q){const W=this.resume(),me=this.stack[this.stack.length-1];me.label=W,me.identifier=Ba(this.sliceSerialize(Q)).toLowerCase(),this.data.referenceType="full"}function he(Q){this.data.characterReferenceType=Q.type}function se(Q){const W=this.sliceSerialize(Q),me=this.data.characterReferenceType;let we;me?(we=Qy(W,me==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):we=Cf(W);const Me=this.stack[this.stack.length-1];Me.value+=we}function Ne(Q){const W=this.stack.pop();W.position.end=xl(Q.end)}function $e(Q){ge.call(this,Q);const W=this.stack[this.stack.length-1];W.url=this.sliceSerialize(Q)}function Le(Q){ge.call(this,Q);const W=this.stack[this.stack.length-1];W.url="mailto:"+this.sliceSerialize(Q)}function Ft(){return{type:"blockquote",children:[]}}function jn(){return{type:"code",lang:null,meta:null,value:""}}function Za(){return{type:"inlineCode",value:""}}function sr(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function En(){return{type:"emphasis",children:[]}}function Gl(){return{type:"heading",depth:0,children:[]}}function Xl(){return{type:"break"}}function or(){return{type:"html",value:""}}function cr(){return{type:"image",title:null,url:"",alt:null}}function Zl(){return{type:"link",title:null,url:"",children:[]}}function $l(Q){return{type:"list",ordered:Q.type==="listOrdered",start:null,spread:Q._spread,children:[]}}function $a(Q){return{type:"listItem",spread:Q._spread,checked:null,children:[]}}function ls(){return{type:"paragraph",children:[]}}function as(){return{type:"strong",children:[]}}function St(){return{type:"text",value:""}}function is(){return{type:"thematicBreak"}}}function xl(n){return{line:n.line,column:n.column,offset:n.offset}}function ex(n,a){let r=-1;for(;++r<a.length;){const u=a[r];Array.isArray(u)?ex(n,u):fj(n,u)}}function fj(n,a){let r;for(r in a)if(Wy.call(a,r))switch(r){case"canContainEols":{const u=a[r];u&&n[r].push(...u);break}case"transforms":{const u=a[r];u&&n[r].push(...u);break}case"enter":case"exit":{const u=a[r];u&&Object.assign(n[r],u);break}}}function wg(n,a){throw n?new Error("Cannot close `"+n.type+"` ("+Zi({start:n.start,end:n.end})+"): a different token (`"+a.type+"`, "+Zi({start:a.start,end:a.end})+") is open"):new Error("Cannot close document, a token (`"+a.type+"`, "+Zi({start:a.start,end:a.end})+") is still open")}function dj(n){const a=this;a.parser=r;function r(u){return oj(u,{...a.data("settings"),...n,extensions:a.data("micromarkExtensions")||[],mdastExtensions:a.data("fromMarkdownExtensions")||[]})}}function hj(n,a){const r={type:"element",tagName:"blockquote",properties:{},children:n.wrap(n.all(a),!0)};return n.patch(a,r),n.applyData(a,r)}function mj(n,a){const r={type:"element",tagName:"br",properties:{},children:[]};return n.patch(a,r),[n.applyData(a,r),{type:"text",value:`
64
- `}]}function pj(n,a){const r=a.value?a.value+`
65
- `:"",u={},o=a.lang?a.lang.split(/\s+/):[];o.length>0&&(u.className=["language-"+o[0]]);let c={type:"element",tagName:"code",properties:u,children:[{type:"text",value:r}]};return a.meta&&(c.data={meta:a.meta}),n.patch(a,c),c=n.applyData(a,c),c={type:"element",tagName:"pre",properties:{},children:[c]},n.patch(a,c),c}function gj(n,a){const r={type:"element",tagName:"del",properties:{},children:n.all(a)};return n.patch(a,r),n.applyData(a,r)}function yj(n,a){const r={type:"element",tagName:"em",properties:{},children:n.all(a)};return n.patch(a,r),n.applyData(a,r)}function xj(n,a){const r=typeof n.options.clobberPrefix=="string"?n.options.clobberPrefix:"user-content-",u=String(a.identifier).toUpperCase(),o=Xa(u.toLowerCase()),c=n.footnoteOrder.indexOf(u);let d,m=n.footnoteCounts.get(u);m===void 0?(m=0,n.footnoteOrder.push(u),d=n.footnoteOrder.length):d=c+1,m+=1,n.footnoteCounts.set(u,m);const g={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+o,id:r+"fnref-"+o+(m>1?"-"+m:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(d)}]};n.patch(a,g);const p={type:"element",tagName:"sup",properties:{},children:[g]};return n.patch(a,p),n.applyData(a,p)}function bj(n,a){const r={type:"element",tagName:"h"+a.depth,properties:{},children:n.all(a)};return n.patch(a,r),n.applyData(a,r)}function vj(n,a){if(n.options.allowDangerousHtml){const r={type:"raw",value:a.value};return n.patch(a,r),n.applyData(a,r)}}function tx(n,a){const r=a.referenceType;let u="]";if(r==="collapsed"?u+="[]":r==="full"&&(u+="["+(a.label||a.identifier)+"]"),a.type==="imageReference")return[{type:"text",value:"!["+a.alt+u}];const o=n.all(a),c=o[0];c&&c.type==="text"?c.value="["+c.value:o.unshift({type:"text",value:"["});const d=o[o.length-1];return d&&d.type==="text"?d.value+=u:o.push({type:"text",value:u}),o}function Sj(n,a){const r=String(a.identifier).toUpperCase(),u=n.definitionById.get(r);if(!u)return tx(n,a);const o={src:Xa(u.url||""),alt:a.alt};u.title!==null&&u.title!==void 0&&(o.title=u.title);const c={type:"element",tagName:"img",properties:o,children:[]};return n.patch(a,c),n.applyData(a,c)}function wj(n,a){const r={src:Xa(a.url)};a.alt!==null&&a.alt!==void 0&&(r.alt=a.alt),a.title!==null&&a.title!==void 0&&(r.title=a.title);const u={type:"element",tagName:"img",properties:r,children:[]};return n.patch(a,u),n.applyData(a,u)}function jj(n,a){const r={type:"text",value:a.value.replace(/\r?\n|\r/g," ")};n.patch(a,r);const u={type:"element",tagName:"code",properties:{},children:[r]};return n.patch(a,u),n.applyData(a,u)}function Ej(n,a){const r=String(a.identifier).toUpperCase(),u=n.definitionById.get(r);if(!u)return tx(n,a);const o={href:Xa(u.url||"")};u.title!==null&&u.title!==void 0&&(o.title=u.title);const c={type:"element",tagName:"a",properties:o,children:n.all(a)};return n.patch(a,c),n.applyData(a,c)}function Nj(n,a){const r={href:Xa(a.url)};a.title!==null&&a.title!==void 0&&(r.title=a.title);const u={type:"element",tagName:"a",properties:r,children:n.all(a)};return n.patch(a,u),n.applyData(a,u)}function Tj(n,a,r){const u=n.all(a),o=r?Cj(r):nx(a),c={},d=[];if(typeof a.checked=="boolean"){const x=u[0];let b;x&&x.type==="element"&&x.tagName==="p"?b=x:(b={type:"element",tagName:"p",properties:{},children:[]},u.unshift(b)),b.children.length>0&&b.children.unshift({type:"text",value:" "}),b.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:a.checked,disabled:!0},children:[]}),c.className=["task-list-item"]}let m=-1;for(;++m<u.length;){const x=u[m];(o||m!==0||x.type!=="element"||x.tagName!=="p")&&d.push({type:"text",value:`
66
- `}),x.type==="element"&&x.tagName==="p"&&!o?d.push(...x.children):d.push(x)}const g=u[u.length-1];g&&(o||g.type!=="element"||g.tagName!=="p")&&d.push({type:"text",value:`
67
- `});const p={type:"element",tagName:"li",properties:c,children:d};return n.patch(a,p),n.applyData(a,p)}function Cj(n){let a=!1;if(n.type==="list"){a=n.spread||!1;const r=n.children;let u=-1;for(;!a&&++u<r.length;)a=nx(r[u])}return a}function nx(n){const a=n.spread;return a??n.children.length>1}function Aj(n,a){const r={},u=n.all(a);let o=-1;for(typeof a.start=="number"&&a.start!==1&&(r.start=a.start);++o<u.length;){const d=u[o];if(d.type==="element"&&d.tagName==="li"&&d.properties&&Array.isArray(d.properties.className)&&d.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const c={type:"element",tagName:a.ordered?"ol":"ul",properties:r,children:n.wrap(u,!0)};return n.patch(a,c),n.applyData(a,c)}function zj(n,a){const r={type:"element",tagName:"p",properties:{},children:n.all(a)};return n.patch(a,r),n.applyData(a,r)}function kj(n,a){const r={type:"root",children:n.wrap(n.all(a))};return n.patch(a,r),n.applyData(a,r)}function Rj(n,a){const r={type:"element",tagName:"strong",properties:{},children:n.all(a)};return n.patch(a,r),n.applyData(a,r)}function _j(n,a){const r=n.all(a),u=r.shift(),o=[];if(u){const d={type:"element",tagName:"thead",properties:{},children:n.wrap([u],!0)};n.patch(a.children[0],d),o.push(d)}if(r.length>0){const d={type:"element",tagName:"tbody",properties:{},children:n.wrap(r,!0)},m=jf(a.children[1]),g=Ly(a.children[a.children.length-1]);m&&g&&(d.position={start:m,end:g}),o.push(d)}const c={type:"element",tagName:"table",properties:{},children:n.wrap(o,!0)};return n.patch(a,c),n.applyData(a,c)}function Mj(n,a,r){const u=r?r.children:void 0,c=(u?u.indexOf(a):1)===0?"th":"td",d=r&&r.type==="table"?r.align:void 0,m=d?d.length:a.children.length;let g=-1;const p=[];for(;++g<m;){const b=a.children[g],w={},S=d?d[g]:void 0;S&&(w.align=S);let R={type:"element",tagName:c,properties:w,children:[]};b&&(R.children=n.all(b),n.patch(b,R),R=n.applyData(b,R)),p.push(R)}const x={type:"element",tagName:"tr",properties:{},children:n.wrap(p,!0)};return n.patch(a,x),n.applyData(a,x)}function Oj(n,a){const r={type:"element",tagName:"td",properties:{},children:n.all(a)};return n.patch(a,r),n.applyData(a,r)}const jg=9,Eg=32;function Dj(n){const a=String(n),r=/\r?\n|\r/g;let u=r.exec(a),o=0;const c=[];for(;u;)c.push(Ng(a.slice(o,u.index),o>0,!0),u[0]),o=u.index+u[0].length,u=r.exec(a);return c.push(Ng(a.slice(o),o>0,!1)),c.join("")}function Ng(n,a,r){let u=0,o=n.length;if(a){let c=n.codePointAt(u);for(;c===jg||c===Eg;)u++,c=n.codePointAt(u)}if(r){let c=n.codePointAt(o-1);for(;c===jg||c===Eg;)o--,c=n.codePointAt(o-1)}return o>u?n.slice(u,o):""}function Lj(n,a){const r={type:"text",value:Dj(String(a.value))};return n.patch(a,r),n.applyData(a,r)}function Bj(n,a){const r={type:"element",tagName:"hr",properties:{},children:[]};return n.patch(a,r),n.applyData(a,r)}const Uj={blockquote:hj,break:mj,code:pj,delete:gj,emphasis:yj,footnoteReference:xj,heading:bj,html:vj,imageReference:Sj,image:wj,inlineCode:jj,linkReference:Ej,link:Nj,listItem:Tj,list:Aj,paragraph:zj,root:kj,strong:Rj,table:_j,tableCell:Oj,tableRow:Mj,text:Lj,thematicBreak:Bj,toml:zu,yaml:zu,definition:zu,footnoteDefinition:zu};function zu(){}const lx=-1,Ju=0,Fi=1,Hu=2,kf=3,Rf=4,_f=5,Mf=6,ax=7,ix=8,Hj=typeof self=="object"?self:globalThis,Tg=(n,a)=>{switch(n){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+n)}return new Hj[n](a)},qj=(n,a)=>{const r=(o,c)=>(n.set(c,o),o),u=o=>{if(n.has(o))return n.get(o);const[c,d]=a[o];switch(c){case Ju:case lx:return r(d,o);case Fi:{const m=r([],o);for(const g of d)m.push(u(g));return m}case Hu:{const m=r({},o);for(const[g,p]of d)m[u(g)]=u(p);return m}case kf:return r(new Date(d),o);case Rf:{const{source:m,flags:g}=d;return r(new RegExp(m,g),o)}case _f:{const m=r(new Map,o);for(const[g,p]of d)m.set(u(g),u(p));return m}case Mf:{const m=r(new Set,o);for(const g of d)m.add(u(g));return m}case ax:{const{name:m,message:g}=d;return r(Tg(m,g),o)}case ix:return r(BigInt(d),o);case"BigInt":return r(Object(BigInt(d)),o);case"ArrayBuffer":return r(new Uint8Array(d).buffer,d);case"DataView":{const{buffer:m}=new Uint8Array(d);return r(new DataView(m),d)}}return r(Tg(c,d),o)};return u},Cg=n=>qj(new Map,n)(0),Oa="",{toString:Yj}={},{keys:Vj}=Object,Xi=n=>{const a=typeof n;if(a!=="object"||!n)return[Ju,a];const r=Yj.call(n).slice(8,-1);switch(r){case"Array":return[Fi,Oa];case"Object":return[Hu,Oa];case"Date":return[kf,Oa];case"RegExp":return[Rf,Oa];case"Map":return[_f,Oa];case"Set":return[Mf,Oa];case"DataView":return[Fi,r]}return r.includes("Array")?[Fi,r]:r.includes("Error")?[ax,r]:[Hu,r]},ku=([n,a])=>n===Ju&&(a==="function"||a==="symbol"),Qj=(n,a,r,u)=>{const o=(d,m)=>{const g=u.push(d)-1;return r.set(m,g),g},c=d=>{if(r.has(d))return r.get(d);let[m,g]=Xi(d);switch(m){case Ju:{let x=d;switch(g){case"bigint":m=ix,x=d.toString();break;case"function":case"symbol":if(n)throw new TypeError("unable to serialize "+g);x=null;break;case"undefined":return o([lx],d)}return o([m,x],d)}case Fi:{if(g){let w=d;return g==="DataView"?w=new Uint8Array(d.buffer):g==="ArrayBuffer"&&(w=new Uint8Array(d)),o([g,[...w]],d)}const x=[],b=o([m,x],d);for(const w of d)x.push(c(w));return b}case Hu:{if(g)switch(g){case"BigInt":return o([g,d.toString()],d);case"Boolean":case"Number":case"String":return o([g,d.valueOf()],d)}if(a&&"toJSON"in d)return c(d.toJSON());const x=[],b=o([m,x],d);for(const w of Vj(d))(n||!ku(Xi(d[w])))&&x.push([c(w),c(d[w])]);return b}case kf:return o([m,d.toISOString()],d);case Rf:{const{source:x,flags:b}=d;return o([m,{source:x,flags:b}],d)}case _f:{const x=[],b=o([m,x],d);for(const[w,S]of d)(n||!(ku(Xi(w))||ku(Xi(S))))&&x.push([c(w),c(S)]);return b}case Mf:{const x=[],b=o([m,x],d);for(const w of d)(n||!ku(Xi(w)))&&x.push(c(w));return b}}const{message:p}=d;return o([m,{name:g,message:p}],d)};return c},Ag=(n,{json:a,lossy:r}={})=>{const u=[];return Qj(!(a||r),!!a,new Map,u)(n),u},qu=typeof structuredClone=="function"?(n,a)=>a&&("json"in a||"lossy"in a)?Cg(Ag(n,a)):structuredClone(n):(n,a)=>Cg(Ag(n,a));function Kj(n,a){const r=[{type:"text",value:"↩"}];return a>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(a)}]}),r}function Gj(n,a){return"Back to reference "+(n+1)+(a>1?"-"+a:"")}function Xj(n){const a=typeof n.options.clobberPrefix=="string"?n.options.clobberPrefix:"user-content-",r=n.options.footnoteBackContent||Kj,u=n.options.footnoteBackLabel||Gj,o=n.options.footnoteLabel||"Footnotes",c=n.options.footnoteLabelTagName||"h2",d=n.options.footnoteLabelProperties||{className:["sr-only"]},m=[];let g=-1;for(;++g<n.footnoteOrder.length;){const p=n.footnoteById.get(n.footnoteOrder[g]);if(!p)continue;const x=n.all(p),b=String(p.identifier).toUpperCase(),w=Xa(b.toLowerCase());let S=0;const R=[],M=n.footnoteCounts.get(b);for(;M!==void 0&&++S<=M;){R.length>0&&R.push({type:"text",value:" "});let X=typeof r=="string"?r:r(g,S);typeof X=="string"&&(X={type:"text",value:X}),R.push({type:"element",tagName:"a",properties:{href:"#"+a+"fnref-"+w+(S>1?"-"+S:""),dataFootnoteBackref:"",ariaLabel:typeof u=="string"?u:u(g,S),className:["data-footnote-backref"]},children:Array.isArray(X)?X:[X]})}const O=x[x.length-1];if(O&&O.type==="element"&&O.tagName==="p"){const X=O.children[O.children.length-1];X&&X.type==="text"?X.value+=" ":O.children.push({type:"text",value:" "}),O.children.push(...R)}else x.push(...R);const z={type:"element",tagName:"li",properties:{id:a+"fn-"+w},children:n.wrap(x,!0)};n.patch(p,z),m.push(z)}if(m.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:c,properties:{...qu(d),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:`
68
- `},{type:"element",tagName:"ol",properties:{},children:n.wrap(m,!0)},{type:"text",value:`
69
- `}]}}const rx=(function(n){if(n==null)return Jj;if(typeof n=="function")return Iu(n);if(typeof n=="object")return Array.isArray(n)?Zj(n):$j(n);if(typeof n=="string")return Fj(n);throw new Error("Expected function, string, or object as test")});function Zj(n){const a=[];let r=-1;for(;++r<n.length;)a[r]=rx(n[r]);return Iu(u);function u(...o){let c=-1;for(;++c<a.length;)if(a[c].apply(this,o))return!0;return!1}}function $j(n){const a=n;return Iu(r);function r(u){const o=u;let c;for(c in n)if(o[c]!==a[c])return!1;return!0}}function Fj(n){return Iu(a);function a(r){return r&&r.type===n}}function Iu(n){return a;function a(r,u,o){return!!(Ij(r)&&n.call(this,r,typeof u=="number"?u:void 0,o||void 0))}}function Jj(){return!0}function Ij(n){return n!==null&&typeof n=="object"&&"type"in n}const ux=[],Pj=!0,zg=!1,Wj="skip";function eE(n,a,r,u){let o;typeof a=="function"&&typeof r!="function"?(u=r,r=a):o=a;const c=rx(o),d=u?-1:1;m(n,void 0,[])();function m(g,p,x){const b=g&&typeof g=="object"?g:{};if(typeof b.type=="string"){const S=typeof b.tagName=="string"?b.tagName:typeof b.name=="string"?b.name:void 0;Object.defineProperty(w,"name",{value:"node ("+(g.type+(S?"<"+S+">":""))+")"})}return w;function w(){let S=ux,R,M,O;if((!a||c(g,p,x[x.length-1]||void 0))&&(S=tE(r(g,x)),S[0]===zg))return S;if("children"in g&&g.children){const z=g;if(z.children&&S[0]!==Wj)for(M=(u?z.children.length:-1)+d,O=x.concat(z);M>-1&&M<z.children.length;){const X=z.children[M];if(R=m(X,M,O)(),R[0]===zg)return R;M=typeof R[1]=="number"?R[1]:M+d}}return S}}}function tE(n){return Array.isArray(n)?n:typeof n=="number"?[Pj,n]:n==null?ux:[n]}function sx(n,a,r,u){let o,c,d;typeof a=="function"&&typeof r!="function"?(c=void 0,d=a,o=r):(c=a,d=r,o=u),eE(n,c,m,o);function m(g,p){const x=p[p.length-1],b=x?x.children.indexOf(g):void 0;return d(g,b,x)}}const tf={}.hasOwnProperty,nE={};function lE(n,a){const r=a||nE,u=new Map,o=new Map,c=new Map,d={...Uj,...r.handlers},m={all:p,applyData:iE,definitionById:u,footnoteById:o,footnoteCounts:c,footnoteOrder:[],handlers:d,one:g,options:r,patch:aE,wrap:uE};return sx(n,function(x){if(x.type==="definition"||x.type==="footnoteDefinition"){const b=x.type==="definition"?u:o,w=String(x.identifier).toUpperCase();b.has(w)||b.set(w,x)}}),m;function g(x,b){const w=x.type,S=m.handlers[w];if(tf.call(m.handlers,w)&&S)return S(m,x,b);if(m.options.passThrough&&m.options.passThrough.includes(w)){if("children"in x){const{children:M,...O}=x,z=qu(O);return z.children=m.all(x),z}return qu(x)}return(m.options.unknownHandler||rE)(m,x,b)}function p(x){const b=[];if("children"in x){const w=x.children;let S=-1;for(;++S<w.length;){const R=m.one(w[S],x);if(R){if(S&&w[S-1].type==="break"&&(!Array.isArray(R)&&R.type==="text"&&(R.value=kg(R.value)),!Array.isArray(R)&&R.type==="element")){const M=R.children[0];M&&M.type==="text"&&(M.value=kg(M.value))}Array.isArray(R)?b.push(...R):b.push(R)}}}return b}}function aE(n,a){n.position&&(a.position=qS(n))}function iE(n,a){let r=a;if(n&&n.data){const u=n.data.hName,o=n.data.hChildren,c=n.data.hProperties;if(typeof u=="string")if(r.type==="element")r.tagName=u;else{const d="children"in r?r.children:[r];r={type:"element",tagName:u,properties:{},children:d}}r.type==="element"&&c&&Object.assign(r.properties,qu(c)),"children"in r&&r.children&&o!==null&&o!==void 0&&(r.children=o)}return r}function rE(n,a){const r=a.data||{},u="value"in a&&!(tf.call(r,"hProperties")||tf.call(r,"hChildren"))?{type:"text",value:a.value}:{type:"element",tagName:"div",properties:{},children:n.all(a)};return n.patch(a,u),n.applyData(a,u)}function uE(n,a){const r=[];let u=-1;for(a&&r.push({type:"text",value:`
70
- `});++u<n.length;)u&&r.push({type:"text",value:`
71
- `}),r.push(n[u]);return a&&n.length>0&&r.push({type:"text",value:`
72
- `}),r}function kg(n){let a=0,r=n.charCodeAt(a);for(;r===9||r===32;)a++,r=n.charCodeAt(a);return n.slice(a)}function Rg(n,a){const r=lE(n,a),u=r.one(n,void 0),o=Xj(r),c=Array.isArray(u)?{type:"root",children:u}:u||{type:"root",children:[]};return o&&c.children.push({type:"text",value:`
73
- `},o),c}function sE(n,a){return n&&"run"in n?async function(r,u){const o=Rg(r,{file:u,...a});await n.run(o,u)}:function(r,u){return Rg(r,{file:u,...n||a})}}function _g(n){if(n)throw n}var Bc,Mg;function oE(){if(Mg)return Bc;Mg=1;var n=Object.prototype.hasOwnProperty,a=Object.prototype.toString,r=Object.defineProperty,u=Object.getOwnPropertyDescriptor,o=function(p){return typeof Array.isArray=="function"?Array.isArray(p):a.call(p)==="[object Array]"},c=function(p){if(!p||a.call(p)!=="[object Object]")return!1;var x=n.call(p,"constructor"),b=p.constructor&&p.constructor.prototype&&n.call(p.constructor.prototype,"isPrototypeOf");if(p.constructor&&!x&&!b)return!1;var w;for(w in p);return typeof w>"u"||n.call(p,w)},d=function(p,x){r&&x.name==="__proto__"?r(p,x.name,{enumerable:!0,configurable:!0,value:x.newValue,writable:!0}):p[x.name]=x.newValue},m=function(p,x){if(x==="__proto__")if(n.call(p,x)){if(u)return u(p,x).value}else return;return p[x]};return Bc=function g(){var p,x,b,w,S,R,M=arguments[0],O=1,z=arguments.length,X=!1;for(typeof M=="boolean"&&(X=M,M=arguments[1]||{},O=2),(M==null||typeof M!="object"&&typeof M!="function")&&(M={});O<z;++O)if(p=arguments[O],p!=null)for(x in p)b=m(M,x),w=m(p,x),M!==w&&(X&&w&&(c(w)||(S=o(w)))?(S?(S=!1,R=b&&o(b)?b:[]):R=b&&c(b)?b:{},d(M,{name:x,newValue:g(X,R,w)})):typeof w<"u"&&d(M,{name:x,newValue:w}));return M},Bc}var cE=oE();const Uc=$g(cE);function nf(n){if(typeof n!="object"||n===null)return!1;const a=Object.getPrototypeOf(n);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)}function fE(){const n=[],a={run:r,use:u};return a;function r(...o){let c=-1;const d=o.pop();if(typeof d!="function")throw new TypeError("Expected function as last argument, not "+d);m(null,...o);function m(g,...p){const x=n[++c];let b=-1;if(g){d(g);return}for(;++b<o.length;)(p[b]===null||p[b]===void 0)&&(p[b]=o[b]);o=p,x?dE(x,m)(...p):d(null,...p)}}function u(o){if(typeof o!="function")throw new TypeError("Expected `middelware` to be a function, not "+o);return n.push(o),a}}function dE(n,a){let r;return u;function u(...d){const m=n.length>d.length;let g;m&&d.push(o);try{g=n.apply(this,d)}catch(p){const x=p;if(m&&r)throw x;return o(x)}m||(g&&g.then&&typeof g.then=="function"?g.then(c,o):g instanceof Error?o(g):c(g))}function o(d,...m){r||(r=!0,a(d,...m))}function c(d){o(null,d)}}const vn={basename:hE,dirname:mE,extname:pE,join:gE,sep:"/"};function hE(n,a){if(a!==void 0&&typeof a!="string")throw new TypeError('"ext" argument must be a string');ur(n);let r=0,u=-1,o=n.length,c;if(a===void 0||a.length===0||a.length>n.length){for(;o--;)if(n.codePointAt(o)===47){if(c){r=o+1;break}}else u<0&&(c=!0,u=o+1);return u<0?"":n.slice(r,u)}if(a===n)return"";let d=-1,m=a.length-1;for(;o--;)if(n.codePointAt(o)===47){if(c){r=o+1;break}}else d<0&&(c=!0,d=o+1),m>-1&&(n.codePointAt(o)===a.codePointAt(m--)?m<0&&(u=o):(m=-1,u=d));return r===u?u=d:u<0&&(u=n.length),n.slice(r,u)}function mE(n){if(ur(n),n.length===0)return".";let a=-1,r=n.length,u;for(;--r;)if(n.codePointAt(r)===47){if(u){a=r;break}}else u||(u=!0);return a<0?n.codePointAt(0)===47?"/":".":a===1&&n.codePointAt(0)===47?"//":n.slice(0,a)}function pE(n){ur(n);let a=n.length,r=-1,u=0,o=-1,c=0,d;for(;a--;){const m=n.codePointAt(a);if(m===47){if(d){u=a+1;break}continue}r<0&&(d=!0,r=a+1),m===46?o<0?o=a:c!==1&&(c=1):o>-1&&(c=-1)}return o<0||r<0||c===0||c===1&&o===r-1&&o===u+1?"":n.slice(o,r)}function gE(...n){let a=-1,r;for(;++a<n.length;)ur(n[a]),n[a]&&(r=r===void 0?n[a]:r+"/"+n[a]);return r===void 0?".":yE(r)}function yE(n){ur(n);const a=n.codePointAt(0)===47;let r=xE(n,!a);return r.length===0&&!a&&(r="."),r.length>0&&n.codePointAt(n.length-1)===47&&(r+="/"),a?"/"+r:r}function xE(n,a){let r="",u=0,o=-1,c=0,d=-1,m,g;for(;++d<=n.length;){if(d<n.length)m=n.codePointAt(d);else{if(m===47)break;m=47}if(m===47){if(!(o===d-1||c===1))if(o!==d-1&&c===2){if(r.length<2||u!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(g=r.lastIndexOf("/"),g!==r.length-1){g<0?(r="",u=0):(r=r.slice(0,g),u=r.length-1-r.lastIndexOf("/")),o=d,c=0;continue}}else if(r.length>0){r="",u=0,o=d,c=0;continue}}a&&(r=r.length>0?r+"/..":"..",u=2)}else r.length>0?r+="/"+n.slice(o+1,d):r=n.slice(o+1,d),u=d-o-1;o=d,c=0}else m===46&&c>-1?c++:c=-1}return r}function ur(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}const bE={cwd:vE};function vE(){return"/"}function lf(n){return!!(n!==null&&typeof n=="object"&&"href"in n&&n.href&&"protocol"in n&&n.protocol&&n.auth===void 0)}function SE(n){if(typeof n=="string")n=new URL(n);else if(!lf(n)){const a=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+n+"`");throw a.code="ERR_INVALID_ARG_TYPE",a}if(n.protocol!=="file:"){const a=new TypeError("The URL must be of scheme file");throw a.code="ERR_INVALID_URL_SCHEME",a}return wE(n)}function wE(n){if(n.hostname!==""){const u=new TypeError('File URL host must be "localhost" or empty on darwin');throw u.code="ERR_INVALID_FILE_URL_HOST",u}const a=n.pathname;let r=-1;for(;++r<a.length;)if(a.codePointAt(r)===37&&a.codePointAt(r+1)===50){const u=a.codePointAt(r+2);if(u===70||u===102){const o=new TypeError("File URL path must not include encoded / characters");throw o.code="ERR_INVALID_FILE_URL_PATH",o}}return decodeURIComponent(a)}const Hc=["history","path","basename","stem","extname","dirname"];class ox{constructor(a){let r;a?lf(a)?r={path:a}:typeof a=="string"||jE(a)?r={value:a}:r=a:r={},this.cwd="cwd"in r?"":bE.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let u=-1;for(;++u<Hc.length;){const c=Hc[u];c in r&&r[c]!==void 0&&r[c]!==null&&(this[c]=c==="history"?[...r[c]]:r[c])}let o;for(o in r)Hc.includes(o)||(this[o]=r[o])}get basename(){return typeof this.path=="string"?vn.basename(this.path):void 0}set basename(a){Yc(a,"basename"),qc(a,"basename"),this.path=vn.join(this.dirname||"",a)}get dirname(){return typeof this.path=="string"?vn.dirname(this.path):void 0}set dirname(a){Og(this.basename,"dirname"),this.path=vn.join(a||"",this.basename)}get extname(){return typeof this.path=="string"?vn.extname(this.path):void 0}set extname(a){if(qc(a,"extname"),Og(this.dirname,"extname"),a){if(a.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(a.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=vn.join(this.dirname,this.stem+(a||""))}get path(){return this.history[this.history.length-1]}set path(a){lf(a)&&(a=SE(a)),Yc(a,"path"),this.path!==a&&this.history.push(a)}get stem(){return typeof this.path=="string"?vn.basename(this.path,this.extname):void 0}set stem(a){Yc(a,"stem"),qc(a,"stem"),this.path=vn.join(this.dirname||"",a+(this.extname||""))}fail(a,r,u){const o=this.message(a,r,u);throw o.fatal=!0,o}info(a,r,u){const o=this.message(a,r,u);return o.fatal=void 0,o}message(a,r,u){const o=new vt(a,r,u);return this.path&&(o.name=this.path+":"+o.name,o.file=this.path),o.fatal=!1,this.messages.push(o),o}toString(a){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(a||void 0).decode(this.value)}}function qc(n,a){if(n&&n.includes(vn.sep))throw new Error("`"+a+"` cannot be a path: did not expect `"+vn.sep+"`")}function Yc(n,a){if(!n)throw new Error("`"+a+"` cannot be empty")}function Og(n,a){if(!n)throw new Error("Setting `"+a+"` requires `path` to be set too")}function jE(n){return!!(n&&typeof n=="object"&&"byteLength"in n&&"byteOffset"in n)}const EE=(function(n){const u=this.constructor.prototype,o=u[n],c=function(){return o.apply(c,arguments)};return Object.setPrototypeOf(c,u),c}),NE={}.hasOwnProperty;class Of extends EE{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=fE()}copy(){const a=new Of;let r=-1;for(;++r<this.attachers.length;){const u=this.attachers[r];a.use(...u)}return a.data(Uc(!0,{},this.namespace)),a}data(a,r){return typeof a=="string"?arguments.length===2?(Kc("data",this.frozen),this.namespace[a]=r,this):NE.call(this.namespace,a)&&this.namespace[a]||void 0:a?(Kc("data",this.frozen),this.namespace=a,this):this.namespace}freeze(){if(this.frozen)return this;const a=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...u]=this.attachers[this.freezeIndex];if(u[0]===!1)continue;u[0]===!0&&(u[0]=void 0);const o=r.call(a,...u);typeof o=="function"&&this.transformers.use(o)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(a){this.freeze();const r=Ru(a),u=this.parser||this.Parser;return Vc("parse",u),u(String(r),r)}process(a,r){const u=this;return this.freeze(),Vc("process",this.parser||this.Parser),Qc("process",this.compiler||this.Compiler),r?o(void 0,r):new Promise(o);function o(c,d){const m=Ru(a),g=u.parse(m);u.run(g,m,function(x,b,w){if(x||!b||!w)return p(x);const S=b,R=u.stringify(S,w);AE(R)?w.value=R:w.result=R,p(x,w)});function p(x,b){x||!b?d(x):c?c(b):r(void 0,b)}}}processSync(a){let r=!1,u;return this.freeze(),Vc("processSync",this.parser||this.Parser),Qc("processSync",this.compiler||this.Compiler),this.process(a,o),Lg("processSync","process",r),u;function o(c,d){r=!0,_g(c),u=d}}run(a,r,u){Dg(a),this.freeze();const o=this.transformers;return!u&&typeof r=="function"&&(u=r,r=void 0),u?c(void 0,u):new Promise(c);function c(d,m){const g=Ru(r);o.run(a,g,p);function p(x,b,w){const S=b||a;x?m(x):d?d(S):u(void 0,S,w)}}}runSync(a,r){let u=!1,o;return this.run(a,r,c),Lg("runSync","run",u),o;function c(d,m){_g(d),o=m,u=!0}}stringify(a,r){this.freeze();const u=Ru(r),o=this.compiler||this.Compiler;return Qc("stringify",o),Dg(a),o(a,u)}use(a,...r){const u=this.attachers,o=this.namespace;if(Kc("use",this.frozen),a!=null)if(typeof a=="function")g(a,r);else if(typeof a=="object")Array.isArray(a)?m(a):d(a);else throw new TypeError("Expected usable value, not `"+a+"`");return this;function c(p){if(typeof p=="function")g(p,[]);else if(typeof p=="object")if(Array.isArray(p)){const[x,...b]=p;g(x,b)}else d(p);else throw new TypeError("Expected usable value, not `"+p+"`")}function d(p){if(!("plugins"in p)&&!("settings"in p))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");m(p.plugins),p.settings&&(o.settings=Uc(!0,o.settings,p.settings))}function m(p){let x=-1;if(p!=null)if(Array.isArray(p))for(;++x<p.length;){const b=p[x];c(b)}else throw new TypeError("Expected a list of plugins, not `"+p+"`")}function g(p,x){let b=-1,w=-1;for(;++b<u.length;)if(u[b][0]===p){w=b;break}if(w===-1)u.push([p,...x]);else if(x.length>0){let[S,...R]=x;const M=u[w][1];nf(M)&&nf(S)&&(S=Uc(!0,M,S)),u[w]=[p,S,...R]}}}}const TE=new Of().freeze();function Vc(n,a){if(typeof a!="function")throw new TypeError("Cannot `"+n+"` without `parser`")}function Qc(n,a){if(typeof a!="function")throw new TypeError("Cannot `"+n+"` without `compiler`")}function Kc(n,a){if(a)throw new Error("Cannot call `"+n+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Dg(n){if(!nf(n)||typeof n.type!="string")throw new TypeError("Expected node, got `"+n+"`")}function Lg(n,a,r){if(!r)throw new Error("`"+n+"` finished async. Use `"+a+"` instead")}function Ru(n){return CE(n)?n:new ox(n)}function CE(n){return!!(n&&typeof n=="object"&&"message"in n&&"messages"in n)}function AE(n){return typeof n=="string"||zE(n)}function zE(n){return!!(n&&typeof n=="object"&&"byteLength"in n&&"byteOffset"in n)}const kE="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Bg=[],Ug={allowDangerousHtml:!0},RE=/^(https?|ircs?|mailto|xmpp)$/i,_E=[{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:"className",id:"remove-classname"},{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 ME(n){const a=OE(n),r=DE(n);return LE(a.runSync(a.parse(r),r),n)}function OE(n){const a=n.rehypePlugins||Bg,r=n.remarkPlugins||Bg,u=n.remarkRehypeOptions?{...n.remarkRehypeOptions,...Ug}:Ug;return TE().use(dj).use(r).use(sE,u).use(a)}function DE(n){const a=n.children||"",r=new ox;return typeof a=="string"&&(r.value=a),r}function LE(n,a){const r=a.allowedElements,u=a.allowElement,o=a.components,c=a.disallowedElements,d=a.skipHtml,m=a.unwrapDisallowed,g=a.urlTransform||BE;for(const x of _E)Object.hasOwn(a,x.from)&&(""+x.from+(x.to?"use `"+x.to+"` instead":"remove it")+kE+x.id,void 0);return sx(n,p),GS(n,{Fragment:h.Fragment,components:o,ignoreInvalidStyle:!0,jsx:h.jsx,jsxs:h.jsxs,passKeys:!0,passNode:!0});function p(x,b,w){if(x.type==="raw"&&w&&typeof b=="number")return d?w.children.splice(b,1):w.children[b]={type:"text",value:x.value},b;if(x.type==="element"){let S;for(S in Oc)if(Object.hasOwn(Oc,S)&&Object.hasOwn(x.properties,S)){const R=x.properties[S],M=Oc[S];(M===null||M.includes(x.tagName))&&(x.properties[S]=g(String(R||""),S,x))}}if(x.type==="element"){let S=r?!r.includes(x.tagName):c?c.includes(x.tagName):!1;if(!S&&u&&typeof b=="number"&&(S=!u(x,b,w)),S&&w&&typeof b=="number")return m&&x.children?w.children.splice(b,1,...x.children):w.children.splice(b,1),b}}}function BE(n){const a=n.indexOf(":"),r=n.indexOf("?"),u=n.indexOf("#"),o=n.indexOf("/");return a===-1||o!==-1&&a>o||r!==-1&&a>r||u!==-1&&a>u||RE.test(n.slice(0,a))?n:""}function Yl(n){return!n.value||!n.value.trim()?h.jsx("p",{className:"text-sm text-muted",children:"No description."}):h.jsx("div",{className:["prose prose-sm max-w-none prose-headings:text-text prose-p:text-text prose-strong:text-text prose-a:text-primary","[&_code]:rounded-md [&_code]:border [&_code]:border-faint [&_code]:bg-elevated [&_code]:px-1.5 [&_code]:py-0.5 [&_code]:font-mono [&_code]:text-[0.8125rem] [&_code]:font-medium [&_code]:text-text","[&_pre]:my-3 [&_pre]:rounded-xl [&_pre]:border [&_pre]:border-faint [&_pre]:bg-elevated [&_pre]:p-4 [&_pre]:shadow-sm","[&_pre_code]:m-0 [&_pre_code]:block [&_pre_code]:w-full [&_pre_code]:rounded-none [&_pre_code]:border-0 [&_pre_code]:bg-transparent [&_pre_code]:p-0 [&_pre_code]:text-xs [&_pre_code]:font-normal [&_pre_code]:leading-relaxed [&_pre_code]:shadow-none"].join(" "),children:h.jsx(ME,{children:n.value})})}function Hg(n){return n==="rtl"?"text-right":""}function qg(n){if(n)return{unicodeBidi:"plaintext"}}function Yg(n){if(typeof window>"u")return;const a=new URL(window.location.href);n?a.hash=n:a.hash="",window.history.replaceState(null,"",a.toString())}function cx(n){const{setKey:a}=st(),r=n.showSource!==!1,u=n.rows?n.rows:Object.entries(n.translations||{}).sort(([p],[x])=>p.localeCompare(x)).map(([p,x])=>({locale:p,value:x,source:"direct"})),[o,c]=C.useState([]),[d,m]=C.useState(null);if(u.length===0)return h.jsx("p",{className:"text-sm text-muted",children:"No translations found."});C.useEffect(()=>{if(typeof window>"u"||!n.getRowFragmentId)return;const p=decodeURIComponent(window.location.hash.slice(1));if(!p)return;const x=u.find(w=>{var S;return((S=n.getRowFragmentId)==null?void 0:S.call(n,w))===p});if(!x)return;const b=n.getRowKey?n.getRowKey(x):x.locale;c(w=>w.includes(b)?w:[...w,b]),m(p)},[u,n.getRowFragmentId,n.getRowKey]),C.useEffect(()=>{if(!d||typeof window>"u")return;const p=window.requestAnimationFrame(()=>{const x=document.getElementById(d);x&&x.scrollIntoView({block:"start"})});return()=>{window.cancelAnimationFrame(p)}},[d]);const g=2+(n.comparisonLabel?1:0)+(n.renderMetaCell?1:0)+(r?1:0);return h.jsx("div",{className:"overflow-hidden rounded border border-border",children:h.jsxs("table",{className:"w-full border-collapse bg-surface text-xs",children:[h.jsx("thead",{className:"bg-elevated text-left text-[11px] uppercase tracking-wide text-muted",children:h.jsxs("tr",{children:[h.jsx("th",{className:"border-b border-border px-3 py-2 font-semibold",children:"Locale"}),h.jsx("th",{className:"border-b border-border px-3 py-2 font-semibold",children:n.translationLabel||"Translation"}),n.comparisonLabel&&h.jsx("th",{className:"border-b border-border px-3 py-2 font-semibold",children:n.comparisonLabel}),n.renderMetaCell&&h.jsx("th",{className:"border-b border-border px-3 py-2 font-semibold"}),r&&h.jsx("th",{className:"border-b border-border px-3 py-2 font-semibold",children:"Source"})]})}),h.jsx("tbody",{children:u.map(p=>{var R,M,O,z,X,k,J,te,q;const x=n.getRowKey?n.getRowKey(p):p.locale,b=(R=n.getRowFragmentId)==null?void 0:R.call(n,p),w=!!n.renderExpandedRow,S=o.includes(x);return h.jsxs(C.Fragment,{children:[h.jsxs("tr",{id:b,className:w?["cursor-pointer transition-colors",S?"bg-elevated":"hover:bg-elevated/60"].join(" "):void 0,onClick:w?()=>c($=>{var ue;if($.includes(x)){const ce=$.filter(ee=>ee!==x),ge=b&&d===b?ce[ce.length-1]||null:$[$.length-1]||null,le=ge&&((ue=n.getRowFragmentId)==null?void 0:ue.call(n,u.find(ee=>(n.getRowKey?n.getRowKey(ee):ee.locale)===ge)))||null;return m(le),Yg(le||void 0),ce}return b&&(m(b),Yg(b)),[...$,x]}):void 0,children:[h.jsx("td",{className:"border-b border-border px-3 py-2 font-medium",children:n.linkLocales?h.jsx(Ze,{to:et("locale",p.locale,a),className:"font-medium text-primary hover:underline",onClick:$=>$.stopPropagation(),children:p.locale}):p.locale}),h.jsx("td",{className:["border-b border-border px-3 py-2",p.source==="inherited"?"text-faint":"",Hg((M=n.localeDirections)==null?void 0:M[p.locale])].join(" "),dir:(O=n.localeDirections)==null?void 0:O[p.locale],style:qg((z=n.localeDirections)==null?void 0:z[p.locale]),children:p.value||"—"}),n.comparisonLabel&&h.jsx("td",{className:["border-b border-border px-3 py-2 text-muted",Hg((X=n.localeDirections)==null?void 0:X[p.locale])].join(" "),dir:(k=n.localeDirections)==null?void 0:k[p.locale],style:qg((J=n.localeDirections)==null?void 0:J[p.locale]),children:((te=n.comparisonValues)==null?void 0:te[p.locale])||"—"}),n.renderMetaCell&&h.jsx("td",{className:"border-b border-border px-3 py-2",children:n.renderMetaCell(p)}),r&&h.jsxs("td",{className:"border-b border-border px-3 py-2 text-muted",children:[p.source,p.from?h.jsxs(h.Fragment,{children:[" from ",h.jsx(Ze,{to:et("locale",p.from,a),className:"font-medium text-primary hover:underline",onClick:$=>$.stopPropagation(),children:p.from})]}):""]})]}),w&&S&&h.jsx("tr",{className:"bg-background/60",children:h.jsx("td",{colSpan:g,className:"border-b border-border px-4 py-4",children:(q=n.renderExpandedRow)==null?void 0:q.call(n,p)})})]},x)})})]})})}function nr(n){return!n.keys||n.keys.length===0?h.jsx("p",{className:"text-sm text-muted",children:"No usage found."}):h.jsx("ul",{className:"list-inside list-disc space-y-1 text-sm",children:n.keys.map(a=>h.jsx("li",{className:"[overflow-wrap:anywhere]",children:h.jsx(Ze,{className:"text-primary hover:underline",to:et(n.type,n.type==="attribute"?a.split(".")[0]:a,n.setKey),children:h.jsx(vl,{value:a,className:"font-medium"})})},a))})}const UE="dup";function _u(n){let a=3735928559,r=1103547991;for(let u=0;u<n.length;u+=1){const o=n.charCodeAt(u);a=Math.imul(a^o,2654435761),r=Math.imul(r^o,1597334677)}return a=Math.imul(a^a>>>16,2246822507)^Math.imul(r^r>>>13,3266489909),r=Math.imul(r^r>>>16,2246822507)^Math.imul(a^a>>>13,3266489909),`${UE}${(a>>>0).toString(36)}${(r>>>0).toString(36)}`}function HE(n,a){return n.slice().sort((r,u)=>{const o=a.direction==="asc"?1:-1,c=r.value.localeCompare(u.value);return a.column==="messages"?(r.messageKeys.length-u.messageKeys.length||c)*o:(r.value.localeCompare(u.value)||r.messageKeys.length-u.messageKeys.length)*o})}function Vg(n,a){return n.column!==a?{column:a,direction:a==="messages"?"desc":"asc"}:{column:a,direction:n.direction==="asc"?"desc":"asc"}}function Df(n,a){if(n)return a==null?void 0:a[n]}function Lf(n){return n.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")}function Qg(n){return n==="locales"||n==="messages"||n==="attributes"||n==="segments"||n==="targets"}function st(){return k0()}function Da(n){if(typeof n>"u"||n===null||n==="")return"n/a";if(Array.isArray(n))return n.length>0?n.join(", "):"none";if(typeof n=="object"){const a=Object.keys(n);return a.length>0?a.join(", "):"none"}return String(n)}function qE(n,a){const r=Pu(n.path),u=Da(n.value),o=n.examplePreview??"",c=`${n.path} ${u} ${o} ${n.source} ${n.from??""}`.toLowerCase();for(const d of a.freeText)if(!c.includes(d))return!1;for(const d of a.qualifiers){const m=d.value.toLowerCase();switch(d.key){case"type":if(!r.type.toLowerCase().includes(m))return!1;break;case"style":if(!r.style.toLowerCase().includes(m))return!1;break;case"param":if(!r.param.toLowerCase().includes(m))return!1;break;case"value":if(!u.toLowerCase().includes(m))return!1;break;case"from":if(!(n.from||"").toLowerCase().includes(m))return!1;break;case"source":if(!n.source.toLowerCase().includes(m))return!1;break;default:if(!c.includes(m))return!1}}return!0}function YE(n,a){const r=a.trim();if(!r)return n;const u=Wi(r);return u.freeText.length===0&&u.qualifiers.length===0?n:n.filter(o=>qE(o,u))}function VE(n){const a=n.trim();if(!a)return"";const r=Wi(a),u=[...r.freeText],o=new Set(["type","style","param","value","from","source"]);for(const c of r.qualifiers)o.has(c.key)&&u.push(c.value.toLowerCase());return u.length===0?a:u.reduce((c,d)=>d.length>c.length?d:c)}function Pu(n){const a=n.split(".").filter(Boolean);return a.length===0?{type:"",style:"",param:""}:a.length===1?{type:a[0],style:"",param:""}:a.length===2?{type:a[0],style:a[1],param:""}:{type:a[0],style:a[1],param:a.slice(2).join(".")}}function QE(n){const r=[...n].sort((d,m)=>d.path.localeCompare(m.path)).map(d=>({row:d,parts:Pu(d.path)})),u=[];let o=0,c=0;for(;c<r.length;){const d=r[c].parts.type;let m=c;for(;m<r.length&&r[m].parts.type===d;)m++;const g=m-c;let p=c;for(;p<m;){const x=r[p].parts.style;let b=p;for(;b<m&&r[b].parts.style===x;)b++;const w=b-p;for(let S=p;S<b;S++)u.push({row:r[S].row,parts:r[S].parts,showTypeCell:S===c,typeRowSpan:g,showStyleCell:S===p,styleRowSpan:w,typeBand:o});p=b}o+=1,c=m}return u}function KE(n){const a=new Set;for(const r of n){const u=Pu(r.path).type;u&&a.add(u)}return[...a].sort((r,u)=>r.localeCompare(u))}const Kg=["number","date","time"];function fx(n){return!1}function GE(n){const a=new Set(Kg),r=n.filter(u=>!a.has(u)).sort((u,o)=>u.localeCompare(o));return[...Kg,...r]}function mn(n,a,r){const u=new URLSearchParams(n);return r?u.set(a,r):u.delete(a),u}function XE(){return h.jsx("svg",{className:"h-3.5 w-3.5 shrink-0",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,children:h.jsx("path",{d:"M4 6h16M4 12h16M4 18h16",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}function ZE(){return h.jsxs("svg",{className:"h-3.5 w-3.5 shrink-0",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,children:[h.jsx("rect",{x:"3",y:"3",width:"18",height:"6",rx:"1.5",stroke:"currentColor",strokeWidth:"2"}),h.jsx("rect",{x:"3",y:"15",width:"18",height:"6",rx:"1.5",stroke:"currentColor",strokeWidth:"2"})]})}const Wu="h-7";function dx(n){return h.jsxs("div",{className:["inline-flex shrink-0 items-stretch rounded-lg border border-border bg-elevated p-px",Wu].join(" "),role:"tablist","aria-label":"Example layout",children:[h.jsx("button",{type:"button",role:"tab","aria-selected":n.activeView==="compact","aria-label":"Compact",title:"Compact",className:["inline-flex h-full min-h-0 items-center justify-center rounded-md px-2 py-0 text-xs transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",n.activeView==="compact"?"bg-header-active text-header-text shadow-sm":"text-muted hover:text-text"].join(" "),onClick:()=>n.onViewChange("compact"),children:h.jsx(XE,{})}),h.jsx("button",{type:"button",role:"tab","aria-selected":n.activeView==="expanded","aria-label":"Expanded",title:"Expanded",className:["inline-flex h-full min-h-0 items-center justify-center rounded-md px-2 py-0 text-xs transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",n.activeView==="expanded"?"bg-header-active text-header-text shadow-sm":"text-muted hover:text-text"].join(" "),onClick:()=>n.onViewChange("expanded"),children:h.jsx(ZE,{})})]})}function Ya(n){if(typeof window>"u")return;const a=new URL(window.location.href);n?a.hash=n:a.hash="",window.history.replaceState(null,"",a.toString())}function Ua(n){if(n.value&&typeof n.value=="object"&&!Array.isArray(n.value)&&Object.keys(n.value).length===1){const[a,r]=Object.entries(n.value)[0];if(r===null||typeof r=="string"||typeof r=="number"||typeof r=="boolean")return h.jsx("pre",{className:"max-w-full whitespace-pre-wrap rounded border border-border bg-elevated p-4 text-xs text-text [overflow-wrap:anywhere]",children:`{${JSON.stringify(a)}: ${JSON.stringify(r)}}`})}return h.jsx(ir,{value:n.value})}function es(n){return h.jsx("div",{dir:n.direction,className:["min-w-0 max-w-full",n.direction==="rtl"?"text-right":""].filter(Boolean).join(" "),style:n.direction?{unicodeBidi:"plaintext"}:void 0,children:h.jsx(ir,{value:n.value})})}function ts(n){return h.jsx("a",{href:`#${n.targetId}`,"aria-label":"Link to this example",className:"inline-flex rounded p-1 text-muted opacity-0 transition-opacity hover:text-primary focus-visible:opacity-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring group-hover:opacity-100",children:h.jsxs("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",className:"h-4 w-4",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[h.jsx("path",{d:"M10 13a5 5 0 0 0 7.07 0l2.83-2.83a5 5 0 0 0-7.07-7.07L11 4"}),h.jsx("path",{d:"M14 11a5 5 0 0 0-7.07 0L4.1 13.83a5 5 0 1 0 7.07 7.07L13 20"})]})})}function ns(n){C.useEffect(()=>{if(typeof window>"u"||!window.location.hash)return;const a=decodeURIComponent(window.location.hash.slice(1));if(!a)return;const r=window.requestAnimationFrame(()=>{const u=document.getElementById(a);u&&u.scrollIntoView({block:"start"})});return()=>{window.cancelAnimationFrame(r)}},n)}function Gg(){return h.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 12 12",fill:"none",className:"h-3 w-3",children:h.jsx("path",{d:"M3.25 4.5 6 7.25 8.75 4.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}function $E(n){return n.icon==="cursor"?h.jsxs("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",className:"h-4 w-4",children:[h.jsx("path",{d:"M4 3l16 9-7 2-3 7L4 3Z",fill:"#111827"}),h.jsx("path",{d:"M8.2 8.6 15 12.6",stroke:"#ffffff",strokeWidth:"1.4",strokeLinecap:"round"}),h.jsx("path",{d:"M10.2 12.9 12.6 14.3 10.5 18.8Z",fill:"#ffffff",opacity:".92"})]}):h.jsxs("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",className:"h-4 w-4",children:[h.jsx("path",{d:"M17.2 3.2 9.4 10 5.1 6.7 3 7.8v8.4l2.1 1.1 4.3-3.3 7.8 6.8L21 19V5l-3.8-1.8Z",fill:"#007ACC"}),h.jsx("path",{d:"M17.2 8.2v7.6L12.5 12l4.7-3.8Z",fill:"#ffffff",opacity:".35"})]})}function FE(n){var w,S;const{manifest:a}=Sl(),[r,u]=C.useState(!1),o=C.useRef(null);C.useEffect(()=>{if(!r)return;function R(O){var z;(z=o.current)!=null&&z.contains(O.target)||u(!1)}function M(O){O.key==="Escape"&&u(!1)}return document.addEventListener("pointerdown",R),document.addEventListener("keydown",M),()=>{document.removeEventListener("pointerdown",R),document.removeEventListener("keydown",M)}},[r]);const c=n.sourcePath&&((w=a.links)!=null&&w.source)?a.links.source.replace("{{path}}",n.sourcePath):void 0,d=(((S=a.dev)==null?void 0:S.editors)||[]).filter(R=>{var M;return(M=n.editLinks)==null?void 0:M[R.id]}),m=d.length>0;if(!c&&!m)return null;const g="rounded border border-border bg-elevated px-4 py-2 text-sm font-bold text-muted shadow-sm hover:bg-background",p="border border-border bg-elevated px-4 py-2 text-sm font-bold text-muted shadow-sm hover:bg-background",x="border border-border bg-elevated py-2 text-sm font-bold text-muted shadow-sm hover:bg-background",b=m?h.jsx("div",{role:"menu",className:"absolute right-0 top-full z-20 mt-px min-w-48 overflow-hidden rounded border border-border bg-surface py-1 shadow-lg",children:d.map(R=>{var M;return h.jsxs("a",{role:"menuitem",href:(M=n.editLinks)==null?void 0:M[R.id],className:"flex items-center gap-2 px-3 py-2 text-sm font-semibold text-muted hover:bg-elevated hover:text-text",onClick:()=>u(!1),children:[h.jsx($E,{icon:R.icon}),h.jsxs("span",{children:["Open in ",R.label]})]},R.id)})}):null;return m?h.jsxs("div",{ref:o,className:"relative inline-flex",children:[c?h.jsx("a",{href:c,target:"_blank",rel:"noreferrer",className:`${p} rounded-l`,children:"Edit"}):h.jsxs("button",{type:"button",className:`${p} inline-flex items-center gap-2 rounded`,"aria-haspopup":"menu","aria-expanded":r,onClick:()=>u(R=>!R),children:["Edit",h.jsx(Gg,{})]}),c&&h.jsx("button",{type:"button",className:`${x} -ml-px rounded-r px-1.5`,"aria-label":"Open edit menu","aria-haspopup":"menu","aria-expanded":r,onClick:()=>u(R=>!R),children:h.jsx(Gg,{})}),r&&b]}):c?h.jsx("a",{href:c,target:"_blank",rel:"noreferrer",className:g,children:"Edit"}):null}function hx(n){const{setKey:a}=st(),r=n.rows||[],u=n.searchQuery??"",o=VE(u),c=!!o.trim(),d=n.formatPathLayout==="split",m=!!(n.hideTypeColumn&&d),g=!!n.showExampleColumn;let p=u.trim()?YE(r,u):r;if(d&&n.selectedFormatType&&(p=p.filter(k=>Pu(k.path).type===n.selectedFormatType)),r.length===0)return h.jsx("p",{className:"text-sm text-muted",children:"No formats found."});if(p.length===0){const k=u.trim()?"No formats match your search.":n.selectedFormatType?"No formats for this type.":"No formats match your search.";return h.jsx("p",{className:"text-sm text-muted",children:k})}const x=d?QE(p):null;function b(k){return k?c?h.jsx(Ve,{text:k,query:o}):k:h.jsx("span",{className:"font-normal text-muted",children:"—"})}function w(k,J){const te=b(k);return J==="param"?h.jsx("div",{className:"overflow-x-auto whitespace-nowrap font-mono text-[11px] leading-snug text-muted",children:te}):J==="style"?h.jsx("div",{className:"overflow-x-auto whitespace-nowrap leading-snug text-text",children:te}):h.jsx("div",{className:"whitespace-pre-wrap leading-snug text-text [overflow-wrap:anywhere]",children:te})}function S(k){return k%2===0?"bg-surface":"bg-elevated/[0.2]"}function R(k){switch(k){case"type":return"border-b border-border border-r border-border/50";case"example":return"border-b border-border border-r border-border/50";case"style":return"border-b border-border border-r border-border/50";case"param":return"border-b border-border border-r border-border/40";case"value":return"border-b border-border";default:return""}}function M(k,J){const te=Da(k.value),q=k.source==="inherited"&&!!k.from,$=k.source==="target";return h.jsx("td",{className:[J,R("value")].join(" "),children:h.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[h.jsx("div",{className:["min-w-0 flex-1 whitespace-pre-wrap [overflow-wrap:anywhere]",k.source==="inherited"?"text-muted":""].join(" "),children:c?h.jsx(Ve,{text:te,query:o}):te}),(q||$)&&h.jsxs("div",{className:"flex shrink-0 flex-col items-end justify-center gap-1",children:[q&&k.from?h.jsx(er,{label:"inherited from",value:k.from,to:et("locale",k.from,a),tone:"inheritance",compact:!0}):null,$?h.jsx(er,{label:"from",value:"target",tone:"neutral",compact:!0}):null]})]})})}function O(k){return k?c?h.jsx(Ve,{text:k,query:o}):k:h.jsx("span",{className:"font-normal text-muted",children:"—"})}function z(k,J){return!g||!k.showStyleCell?null:h.jsx("td",{rowSpan:k.styleRowSpan,className:["align-middle min-w-0 px-3 py-2 whitespace-pre-wrap [overflow-wrap:anywhere]",J,R("example")].join(" "),children:O(k.row.examplePreview)})}function X(k){return h.jsx("td",{className:["align-middle min-w-0 px-3 py-2 whitespace-pre-wrap [overflow-wrap:anywhere]","border-b border-border border-r border-border/40"].join(" "),children:O(k.examplePreview)})}return h.jsx("div",{className:"min-w-0 overflow-x-auto rounded-xl border border-border",children:h.jsxs("table",{className:"w-full min-w-[40rem] table-fixed border-collapse bg-surface text-xs",children:[d?h.jsx("colgroup",{children:m?g?h.jsxs(h.Fragment,{children:[h.jsx("col",{className:"min-w-0 w-[18%]"}),h.jsx("col",{className:"min-w-0 w-[14%]"}),h.jsx("col",{className:"min-w-0 w-[36%]"}),h.jsx("col",{className:"min-w-0 w-[32%]"})]}):h.jsxs(h.Fragment,{children:[h.jsx("col",{className:"min-w-0 w-[22%]"}),h.jsx("col",{className:"min-w-0 w-[36%]"}),h.jsx("col",{className:"min-w-0 w-[42%]"})]}):g?h.jsxs(h.Fragment,{children:[h.jsx("col",{className:"min-w-0 w-[10%]"}),h.jsx("col",{className:"min-w-0 w-[16%]"}),h.jsx("col",{className:"min-w-0 w-[12%]"}),h.jsx("col",{className:"min-w-0 w-[34%]"}),h.jsx("col",{className:"min-w-0 w-[28%]"})]}):h.jsxs(h.Fragment,{children:[h.jsx("col",{className:"min-w-0 w-[12%]"}),h.jsx("col",{className:"min-w-0 w-[18%]"}),h.jsx("col",{className:"min-w-0 w-[32%]"}),h.jsx("col",{className:"min-w-0 w-[38%]"})]})}):h.jsx("colgroup",{children:g?h.jsxs(h.Fragment,{children:[h.jsx("col",{className:"min-w-0 w-[40%]"}),h.jsx("col",{className:"min-w-0 w-[20%]"}),h.jsx("col",{className:"min-w-0 w-[40%]"})]}):h.jsxs(h.Fragment,{children:[h.jsx("col",{className:"min-w-0 w-1/2"}),h.jsx("col",{className:"min-w-0 w-1/2"})]})}),h.jsx("thead",{className:"bg-elevated text-left text-[11px] uppercase tracking-wide text-muted",children:h.jsx("tr",{children:d?h.jsxs(h.Fragment,{children:[m?null:h.jsx("th",{className:"align-middle border-b border-r border-border/50 px-3 py-2 font-semibold",children:"Type"}),h.jsx("th",{className:"align-middle border-b border-r border-border/50 px-3 py-2 font-semibold",children:"Style"}),g?h.jsx("th",{className:"align-middle border-b border-r border-border/50 px-3 py-2 font-semibold",children:"Example"}):null,h.jsx("th",{className:"align-middle border-b border-r border-border/40 px-3 py-2 font-semibold",children:"Param"}),h.jsx("th",{className:"align-middle border-b border-border px-3 py-2 font-semibold",children:"Value"})]}):h.jsxs(h.Fragment,{children:[h.jsx("th",{className:"align-middle border-b border-border px-3 py-2 font-semibold",children:"Format"}),g?h.jsx("th",{className:"align-middle border-b border-border px-3 py-2 font-semibold",children:"Example"}):null,h.jsx("th",{className:"align-middle border-b border-border px-3 py-2 font-semibold",children:"Value"})]})})}),h.jsx("tbody",{children:d&&x?x.map(k=>{const J=S(k.typeBand);return h.jsxs("tr",{children:[!m&&k.showTypeCell?h.jsx("td",{rowSpan:k.typeRowSpan,className:["align-middle min-w-0 px-3 py-2 font-medium",J,R("type")].join(" "),children:w(k.parts.type,"type")}):null,k.showStyleCell?h.jsx("td",{rowSpan:k.styleRowSpan,className:["align-middle min-w-0 px-3 py-2 font-medium",J,R("style")].join(" "),children:w(k.parts.style,"style")}):null,z(k,J),h.jsx("td",{className:["align-middle min-w-0 px-3 py-2 font-medium text-muted",J,R("param")].join(" "),children:w(k.parts.param,"param")}),M(k.row,["align-middle min-w-0 px-3 py-2",J].join(" "))]},k.row.path)}):p.map(k=>{const J=["align-middle min-w-0 px-3 py-2 font-medium text-muted",g?"border-b border-border border-r border-border/40":"border-b border-border"].join(" ");return h.jsxs("tr",{children:[h.jsx("td",{className:J,children:h.jsx("div",{className:"whitespace-pre-wrap [overflow-wrap:anywhere]",children:c?h.jsx(Ve,{text:k.path,query:o}):k.path})}),g?X(k):null,M(k,"align-middle min-w-0 px-3 py-2 font-medium text-muted")]},k.path)})})]})})}function mx(n){const{setKey:a}=st();return h.jsx(Ze,{to:et("locale",n.localeKey,a),className:"font-medium text-primary hover:underline",children:n.localeKey})}function JE(n){const a=n.localeKeys||[];return a.length===0?h.jsx(h.Fragment,{children:"n/a"}):h.jsx(h.Fragment,{children:a.map((r,u)=>h.jsxs(C.Fragment,{children:[u>0?", ":null,h.jsx(Ze,{className:"font-medium text-primary hover:underline",to:et("locale",r,n.setKey),children:r})]},r))})}function IE(n){const a=n.targetKeys||[];return a.length===0?h.jsx(h.Fragment,{children:"none"}):h.jsx("div",{className:"flex flex-wrap gap-2",children:a.map(r=>h.jsx(Ze,{className:"inline-flex",to:et("target",r,n.setKey),children:h.jsx(sn,{children:r})},r))})}function af(){const{entityPath:n,entityKey:a,setKey:r}=Gu(),[u,o]=C.useState(null),[c,d]=C.useState(null);if(C.useEffect(()=>{if(!Qg(n)||!a)return;const b=Ii[n];o(null),d(null),A1(b,a,r).then(o).catch(w=>d(w.message))},[n,a,r]),!Qg(n)||!a)return h.jsx(bl,{to:Pi(r)||"/",replace:!0});const m=Ii[n],g=`${Pi(r)}/${xy[m]}/${Et(a)}`;if(c)return h.jsx(qa,{title:"Unable to load entity",description:c});if(!u)return h.jsxs("div",{className:"text-muted",children:["Loading ",Kn[m].singular.toLowerCase(),"..."]});const p=u.entity,x=PE(m,g);return h.jsxs("div",{children:[h.jsx(bf,{title:h.jsxs("span",{className:"flex min-w-0 flex-wrap items-baseline gap-x-2 gap-y-1",children:[h.jsxs("span",{className:"whitespace-nowrap",children:[Kn[m].singular,":"]}),h.jsx(vl,{value:u.key,className:"min-w-0 text-[1.45rem] font-extrabold leading-tight"})]}),description:h.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[p.archived&&h.jsx(sn,{tone:"danger",children:"archived"}),p.deprecated&&h.jsx(sn,{tone:"warning",children:"deprecated"})]}),actions:h.jsx(FE,{sourcePath:u.sourcePath,editLinks:u.editLinks})}),h.jsx(fS,{tabs:x,children:h.jsx(G0,{context:{detail:u,setKey:r}})})]})}function PE(n,a){const r=[{label:"Overview",to:a,end:!0},{label:"History",to:`${a}/history`}];return n==="locale"?[r[0],{label:"Formats",to:`${a}/formats`},{label:"Examples",to:`${a}/examples`},{label:"Duplicates",to:`${a}/duplicates`},r[1]]:n==="message"?[r[0],{label:"Translations",to:`${a}/translations`},{label:"Overrides",to:`${a}/overrides`},{label:"Examples",to:`${a}/examples`},r[1]]:n==="target"?[r[0],{label:"Formats",to:`${a}/formats`,end:!1},{label:"Messages",to:`${a}/messages`},r[1]]:n==="segment"?[r[0],{label:"Conditions",to:`${a}/conditions`},{label:"Usage",to:`${a}/usage`},r[1]]:[r[0],{label:"Usage",to:`${a}/usage`},r[1]]}function WE(){const{detail:n,setKey:a}=st(),{manifest:r}=Sl(),u=n.entity,o=eN(n,u,a,r.sets);return h.jsx("div",{className:"space-y-5",children:h.jsx(hS,{fields:o})})}function eN(n,a,r,u){const o=u?{label:"Promotable",value:a.promotable===!1?"No":"Yes"}:void 0,c=m=>m.filter(g=>!!(g!=null&&g.value));if(n.type==="locale"){const m=[{label:"Direction",value:a.direction},{label:"Inherits formats from",value:a.inheritFormatsFrom},{label:"Inherits translations from",value:a.inheritTranslationsFrom},o,{label:"Description",value:h.jsx(Yl,{value:a.description}),fullWidth:!0}];return c(m)}if(n.type==="message"){const m=[o,{label:"Deprecated",value:a.deprecated?"Yes":"No"},{label:"Deprecation warning",value:a.deprecationWarning},{label:"Targets",value:h.jsx(IE,{targetKeys:n.targets,setKey:r})},{label:"Summary",value:a.summary,fullWidth:!0},{label:"Description",value:h.jsx(Yl,{value:a.description}),fullWidth:!0},{label:"Meta",value:a.meta?h.jsx(ir,{value:a.meta}):void 0,fullWidth:!0}];return c(m)}if(n.type==="attribute"){const m=Array.isArray(a.enum)?a.enum.length>0:!!a.enum,g=Array.isArray(a.required)?a.required.length>0:!!a.required,p=typeof a.minimum<"u"||typeof a.maximum<"u",x=[{label:"Type",value:a.type},o,{label:"Allowed values",value:m?Da(a.enum):void 0},{label:"Required fields",value:g?Da(a.required):void 0},{label:"Pattern",value:a.pattern},{label:"Range",value:p?`${typeof a.minimum<"u"?a.minimum:"-∞"} to ${typeof a.maximum<"u"?a.maximum:"∞"}`:void 0},{label:"Description",value:h.jsx(Yl,{value:a.description}),fullWidth:!0}];return c(x)}if(n.type==="segment")return c([{label:"Archived",value:a.archived?"Yes":"No"},o,{label:"Description",value:h.jsx(Yl,{value:a.description}),fullWidth:!0}]);const d=[o,{label:"Included message patterns",value:Da(a.includeMessages)},{label:"Excluded message patterns",value:Da(a.excludeMessages)},{label:"Locales",value:h.jsx(JE,{localeKeys:n.locales,setKey:r})},{label:"Description",value:h.jsx(Yl,{value:a.description}),fullWidth:!0}];return c(d)}const tN=["type:number","style:decimal","type:date","param:maximumFractionDigits","value:2","from:en","source:direct"];function nN(n){return h.jsxs("div",{className:"flex flex-wrap items-center gap-x-2 gap-y-1.5 pt-2 text-xs text-muted",children:[h.jsx("span",{className:"shrink-0",children:"Try:"}),tN.map(a=>{const r=n.query.trim().split(/\s+/).some(u=>u.toLowerCase()===a.toLowerCase());return h.jsx("button",{type:"button",onClick:()=>n.onHintClick(a),className:["cursor-pointer rounded px-1.5 py-0.5 font-mono transition-colors",r?"bg-primary/10 text-primary":"bg-elevated text-muted hover:text-text"].join(" "),children:a},a)})]})}function px(n){const[a]=Xn(),r=a.get("formatType")??"",u=r&&n.typeKeys.includes(r)?r:null;function o(d){const g=mn(a,"formatType",d===null?void 0:d).toString();return g?`?${g}`:""}const c=d=>["inline-flex rounded-full border px-3 py-1 text-xs font-semibold transition-colors",d?"border-primary bg-header-active text-header-text":"border-pill bg-transparent text-text hover:bg-elevated"].join(" ");return h.jsxs("nav",{className:"flex min-w-0 flex-wrap gap-2","aria-label":"Format types",children:[h.jsx(Ze,{replace:!0,to:{search:o(null)},className:c(u===null),children:"All types"}),n.typeKeys.map(d=>{const m=d===u;return h.jsx(Ze,{replace:!0,to:{search:o(d)},className:c(m),children:d},d)})]})}function gx(n){const[a]=Xn(),r=a.get("formatType")??"",u=C.useMemo(()=>KE(n),[n]),o=C.useMemo(()=>GE(u),[u]),c=r&&o.includes(r)?r:null;return{formatTypes:u,formatTypePillKeys:o,selectedFormatType:c}}function yx(){const[n,a]=Xn(),[r,u]=C.useState(!1),o=n.get("q")??"";function c(d){const m=o.trim(),g=m.split(/\s+/).filter(Boolean),p=g.findIndex(b=>b.toLowerCase()===d.toLowerCase()),x=p!==-1?g.filter((b,w)=>w!==p).join(" "):m?`${m} ${d}`:d;a(mn(n,"q",x.trim()?x.trim():void 0),{replace:!0})}return h.jsx("div",{className:"flex flex-wrap items-center gap-x-4 gap-y-3",children:h.jsxs("div",{className:"flex min-h-0 min-w-0 flex-1 basis-[min(100%,22rem)] flex-col gap-0",children:[h.jsxs("div",{className:"relative",children:[h.jsx($u,{type:"search",value:o,onChange:d=>{const m=d.target.value;a(mn(n,"q",m.trim()?m:void 0),{replace:!0})},placeholder:"Search formats…","aria-label":"Search formats",className:[Wu,"box-border rounded-lg border border-border bg-elevated py-0 pl-2 pr-10","text-xs leading-snug text-text","placeholder:text-xs placeholder:text-muted placeholder:leading-snug"].join(" ")}),h.jsx("button",{type:"button",onClick:()=>u(d=>!d),"aria-label":r?"Hide advanced search hints":"Show advanced search hints",className:["absolute right-2 top-1/2 flex h-5 w-5 -translate-y-1/2 items-center justify-center rounded-full border text-xs font-bold transition-colors",r?"border-primary bg-primary/10 text-primary":"border-border bg-surface text-muted hover:border-primary hover:text-primary"].join(" "),children:"?"})]}),h.jsx("div",{className:["grid transition-all duration-200 ease-in-out",r?"grid-rows-[1fr]":"grid-rows-[0fr]"].join(" "),children:h.jsx("div",{className:"overflow-hidden pl-1",children:h.jsx(nN,{query:o,onHintClick:c})})})]})})}function lN(){const{detail:n}=st(),[a]=Xn(),r=a.get("q")??"",u=n.formatRows,o=u??[],{formatTypes:c,formatTypePillKeys:d,selectedFormatType:m}=gx(o),g=fx();return h.jsxs("div",{className:"space-y-6",children:[c.length>0?h.jsx(px,{typeKeys:d}):null,h.jsx(yx,{}),h.jsx(hx,{rows:u,searchQuery:r,formatPathLayout:"split",hideTypeColumn:m!=null,selectedFormatType:m,showExampleColumn:g})]})}function rf(){const{detail:n}=st();return n.type==="target"?h.jsx(jN,{}):h.jsx(lN,{})}function aN(n){return n.overrides.length===0?h.jsx("p",{className:"text-sm text-muted",children:"No overrides."}):h.jsxs("div",{className:"space-y-3",children:[h.jsx("p",{className:"text-sm font-medium text-muted",children:"Overrides"}),h.jsx("div",{className:"space-y-3",children:n.overrides.map(({key:a,row:r,override:u})=>h.jsxs("div",{className:"rounded border border-border bg-surface p-4",children:[h.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[h.jsx(Ze,{to:`${et("message",n.messageKey,n.setKey)}/overrides#${a}`,className:"text-sm font-semibold text-primary hover:underline",children:h.jsx(vl,{value:a,className:"font-semibold"})}),r.source==="inherited"&&r.from&&h.jsx(er,{label:"inherited from",value:r.from,to:et("locale",r.from,n.setKey),tone:"inheritance",compact:!0})]}),(u.segments||u.conditions)&&h.jsxs("div",{className:"mt-4 space-y-4",children:[u.segments&&h.jsxs("div",{className:"space-y-2",children:[h.jsx("h4",{className:"text-xs font-semibold uppercase tracking-wide text-muted",children:"Segments"}),h.jsx(Ay,{segments:u.segments,setKey:n.setKey})]}),u.conditions&&h.jsxs("div",{className:"space-y-2",children:[h.jsx("h4",{className:"text-xs font-semibold uppercase tracking-wide text-muted",children:"Conditions"}),h.jsx(vf,{conditions:u.conditions,setKey:n.setKey})]})]}),h.jsxs("div",{className:"mt-4 space-y-2",children:[h.jsx("h4",{className:"text-xs font-semibold uppercase tracking-wide text-muted",children:"Overridden translation"}),h.jsx(es,{value:r.value||"—",direction:Df(r.locale,n.localeDirections)})]})]},a))})]})}function iN(){const{detail:n,setKey:a}=st(),r=n.entity,u=n.localeDirections||{},o=n.overrideTranslations||[],c=r.overrides||[],d=Object.fromEntries((n.translations||[]).map(g=>[g.locale,o.map(p=>({key:p.key,row:(p.rows||[]).find(x=>x.locale===g.locale),override:c.find(x=>x.key===p.key)})).filter(p=>!!(p.row&&p.row.source!=="missing"&&p.override))])),m=new Set(Object.entries(d).filter(([,g])=>g.length>0).map(([g])=>g));return h.jsx(cx,{rows:n.translations,linkLocales:!0,showSource:!1,localeDirections:u,getRowFragmentId:g=>Lf(`translation-${g.locale}`),renderExpandedRow:g=>h.jsx(aN,{messageKey:n.key,overrides:d[g.locale]||[],localeDirections:u,setKey:a}),renderMetaCell:g=>{const p=[];return g.source==="inherited"&&g.from&&p.push(h.jsx(er,{label:"inherited from",value:g.from,to:et("locale",g.from,a),tone:"inheritance",compact:!0},`inherited-${g.locale}`)),m.has(g.locale)&&p.push(h.jsx(er,{label:"overrides",value:"yes",tone:"override",compact:!0},`override-${g.locale}`)),p.length===0?null:h.jsx("div",{className:"flex flex-wrap justify-end gap-1.5",children:p})}})}function rN(){const{detail:n,setKey:a}=st(),r=n.entity,u=n.localeDirections||{},o=Object.fromEntries((n.translations||[]).map(d=>[d.locale,d.value])),c=r.overrides||[];return ns([c.length]),c.length===0?h.jsx("p",{className:"text-sm text-muted",children:"No overrides found."}):h.jsx("div",{className:"space-y-6",children:c.map(d=>h.jsxs("section",{className:"space-y-4",children:[h.jsxs("div",{className:"space-y-3",children:[h.jsxs("div",{className:"group flex items-center gap-2",children:[h.jsx("h2",{id:d.key,className:"font-semibold [overflow-wrap:anywhere]",children:h.jsx(vl,{value:d.key,className:"font-semibold"})}),h.jsx(ts,{targetId:d.key})]}),d.summary&&h.jsx("p",{className:"mt-1 text-sm text-muted",children:d.summary}),d.description&&h.jsx("div",{className:"mt-3",children:h.jsx(Yl,{value:d.description})})]}),h.jsxs("div",{className:"space-y-4",children:[d.segments&&h.jsxs("div",{className:"space-y-2 rounded-xl border border-border bg-elevated p-4",children:[h.jsx("h3",{className:"text-sm font-semibold text-muted",children:"Segments"}),h.jsx(Ay,{segments:d.segments,setKey:a})]}),d.conditions&&h.jsxs("div",{className:"space-y-2 rounded-xl border border-border bg-elevated p-4",children:[h.jsx("h3",{className:"text-sm font-semibold text-muted",children:"Conditions"}),h.jsx(vf,{conditions:d.conditions,setKey:a})]}),h.jsx(cx,{translations:d.translations,linkLocales:!0,showSource:!1,translationLabel:"Overridden translation",comparisonLabel:"Original translation",comparisonValues:o,localeDirections:u})]})]},d.key))})}function uN(){const{detail:n}=st(),[a,r]=Xn(),u=n.evaluatedExamples||[],o=n.localeDirections||{},c=Object.fromEntries((n.translations||[]).map(w=>[w.locale,w.value])),m=a.get("view")==="expanded"?"expanded":"compact",g=Array.from(new Set(u.map(w=>w.locale))).sort(),p=a.get("locale"),x=p&&g.includes(p)?p:"",b=x?u.filter(w=>w.locale===x):u;return ns([b.length,x,m]),u.length===0?h.jsx("p",{className:"text-sm text-muted",children:"No examples found."}):h.jsxs("div",{className:"space-y-6",children:[h.jsxs("div",{className:"flex flex-wrap items-center gap-x-4 gap-y-3",children:[h.jsxs("nav",{className:"flex min-w-0 flex-wrap gap-2",children:[h.jsx("button",{type:"button",className:["inline-flex rounded-full border px-3 py-1 text-xs font-semibold transition-colors",x?"border-pill bg-transparent text-text hover:bg-elevated":"border-primary bg-header-active text-header-text"].join(" "),onClick:()=>r(mn(a,"locale",void 0)),children:"All locales"}),g.map(w=>{const S=x===w;return h.jsx("button",{type:"button",className:["inline-flex rounded-full border px-3 py-1 text-xs font-semibold transition-colors",S?"border-primary bg-header-active text-header-text":"border-pill bg-transparent text-text hover:bg-elevated"].join(" "),onClick:()=>r(mn(a,"locale",S?void 0:w)),children:w},w)})]}),h.jsx("div",{className:"ml-auto shrink-0",children:h.jsx(dx,{activeView:m,onViewChange:w=>r(mn(a,"view",w==="compact"?void 0:w))})})]}),m==="compact"?h.jsx(cN,{examples:b,localeDirections:o,originalTranslationsByLocale:c}):h.jsx(oN,{examples:b,localeDirections:o,originalTranslationsByLocale:c})]})}function xx(n){var r,u,o;const a=(r=n.highlightQuery)!=null&&r.trim()&&n.title?h.jsx(Ve,{text:n.title,query:n.highlightQuery}):n.title;return h.jsxs("div",{className:"space-y-2",children:[h.jsxs("div",{className:"group flex items-center gap-2",children:[h.jsx("h2",{id:n.targetId,className:"font-semibold",children:a}),h.jsx(ts,{targetId:n.targetId})]}),(u=n.description)!=null&&u.trim()?(o=n.highlightQuery)!=null&&o.trim()?h.jsx("div",{className:"text-sm text-muted whitespace-pre-wrap [overflow-wrap:anywhere]",children:h.jsx(Ve,{text:n.description.trim(),query:n.highlightQuery})}):h.jsx("div",{className:"text-sm text-muted",children:h.jsx(Yl,{value:n.description})}):null]})}function bx(n){var u;const r=((u=n.highlightQuery)==null?void 0:u.trim())&&n.evaluatedTranslation!==void 0&&n.evaluatedTranslation!==null?h.jsx("div",{dir:n.direction,className:["min-w-0 max-w-full whitespace-pre-wrap [overflow-wrap:anywhere]",n.direction==="rtl"?"text-right":""].filter(Boolean).join(" "),style:n.direction?{unicodeBidi:"plaintext"}:void 0,children:h.jsx(Ve,{text:typeof n.evaluatedTranslation=="string"?n.evaluatedTranslation:JSON.stringify(n.evaluatedTranslation),query:n.highlightQuery??""})}):h.jsx(es,{value:n.evaluatedTranslation,direction:n.direction});return h.jsx("div",{className:"min-w-0 overflow-hidden rounded-xl border border-border",children:h.jsxs("table",{className:"w-full table-fixed border-collapse text-sm",children:[h.jsxs("colgroup",{children:[h.jsx("col",{className:"w-1/2"}),h.jsx("col",{className:"w-1/2"})]}),h.jsx("thead",{className:"bg-elevated text-left text-muted",children:h.jsxs("tr",{children:[h.jsx("th",{className:"border-b border-border px-4 py-3 font-semibold",children:"Input"}),h.jsx("th",{className:"border-b border-border px-4 py-3 font-semibold",children:"Output"})]})}),h.jsx("tbody",{children:h.jsxs("tr",{className:"align-top",children:[h.jsx("td",{className:"min-w-0 border-b border-border px-4 py-4",children:n.inputs}),h.jsx("td",{className:"min-w-0 border-b border-border px-4 py-4",children:h.jsxs("div",{className:"space-y-1",children:[h.jsx("div",{className:"text-xs font-semibold uppercase tracking-wide text-muted",children:"Evaluated translation"}),h.jsx("div",{className:"min-w-0",children:r})]})})]})})]})})}function xt(n){return h.jsxs("div",{className:"space-y-1",children:[h.jsx("div",{className:"text-xs font-semibold uppercase tracking-wide text-muted",children:n.label}),h.jsx("div",{className:"min-w-0",children:n.children})]})}function uf(n){return Lf([`example-${n.exampleIndex+1}`,n.locale,typeof n.matrixIndex=="number"?`matrix-${n.matrixIndex+1}`:""].filter(Boolean).join("-"))}function vx(n){const a=[`Example #${n.exampleIndex+1}`];return typeof n.matrixIndex=="number"&&a.push(`matrix #${n.matrixIndex+1}`),a.join(" · ")}function sN(n){return typeof n.matrixIndex=="number"?`#${n.exampleIndex+1}.${n.matrixIndex+1}`:`#${n.exampleIndex+1}`}function Sx(n){var c;const{example:a}=n,{detail:r,setKey:u}=st(),o=(c=n.originalTranslationsByLocale)==null?void 0:c[a.locale];return h.jsxs("div",{className:"min-w-0 space-y-4",children:[n.showLocale!==!1&&h.jsx(xt,{label:"Locale",children:h.jsx(mx,{localeKey:a.locale})}),typeof a.values<"u"&&h.jsx(xt,{label:"Values",children:h.jsx(Ua,{value:a.values})}),typeof a.context<"u"&&h.jsx(xt,{label:"Context",children:h.jsx(Ua,{value:a.context})}),typeof a.timeZone<"u"&&h.jsx(xt,{label:"Time zone",children:h.jsx("span",{className:"font-mono text-sm text-text",children:a.timeZone})}),typeof a.currency<"u"&&h.jsx(xt,{label:"Currency",children:h.jsx("span",{className:"font-mono text-sm text-text",children:a.currency})}),typeof a.formats<"u"&&h.jsx(xt,{label:"Formats",children:h.jsx(Ua,{value:a.formats})}),o&&h.jsx(xt,{label:"Original translation",children:h.jsxs("div",{className:"space-y-2",children:[h.jsx(es,{value:o}),h.jsxs("p",{className:"text-xs text-muted",children:["See more"," ",h.jsx(Ze,{to:`${et("message",r.key,u)}/translations`,className:"font-medium text-primary hover:underline",children:"translations"})," ","and"," ",h.jsx(Ze,{to:`${et("message",r.key,u)}/overrides`,className:"font-medium text-primary hover:underline",children:"overrides"}),"."]})]})})]})}function oN(n){return h.jsx("div",{className:"space-y-6",children:n.examples.map(a=>{const r=uf(a);return h.jsxs("section",{className:"min-w-0 space-y-4",children:[h.jsx(xx,{title:vx(a),targetId:r,description:a.description}),h.jsx(bx,{inputs:h.jsx(Sx,{example:a,showLocale:!0,originalTranslationsByLocale:n.originalTranslationsByLocale}),evaluatedTranslation:a.evaluatedTranslation,direction:Df(a.locale,n.localeDirections)})]},`${a.exampleIndex}-${a.matrixIndex??"base"}-${a.locale}`)})})}function cN(n){const[a,r]=C.useState([]),[u,o]=C.useState(null);C.useEffect(()=>{if(typeof window>"u")return;const d=decodeURIComponent(window.location.hash.slice(1));!d||!n.examples.find(g=>uf(g)===d)||(r(g=>g.includes(d)?g:[...g,d]),o(d))},[n.examples]);function c(d){if(a.includes(d)){const m=a.filter(p=>p!==d),g=u===d?m[m.length-1]||null:u;r(m),o(g),Ya(g||void 0);return}r(m=>[...m,d]),o(d),Ya(d)}return h.jsx("div",{className:"min-w-0 overflow-hidden rounded-xl border border-border",children:h.jsxs("table",{className:"w-full table-fixed border-collapse bg-surface text-xs",children:[h.jsxs("colgroup",{children:[h.jsx("col",{className:"w-16"}),h.jsx("col",{className:"w-28"}),h.jsx("col",{className:"w-1/3"}),h.jsx("col",{className:"w-auto"})]}),h.jsx("thead",{className:"bg-elevated text-left text-[11px] uppercase tracking-wide text-muted",children:h.jsxs("tr",{children:[h.jsx("th",{className:"border-b border-border px-3 py-2 font-semibold",children:"#"}),h.jsx("th",{className:"border-b border-border px-3 py-2 font-semibold",children:"Locale"}),h.jsx("th",{className:"border-b border-border px-3 py-2 font-semibold",children:"Description"}),h.jsx("th",{className:"border-b border-border px-3 py-2 font-semibold",children:"Evaluated translation"})]})}),h.jsx("tbody",{children:n.examples.map(d=>{const m=uf(d),g=a.includes(m),p=Df(d.locale,n.localeDirections);return h.jsxs(C.Fragment,{children:[h.jsxs("tr",{id:m,className:["cursor-pointer align-top transition-colors",g?"bg-elevated":"hover:bg-elevated/60"].join(" "),onClick:()=>c(m),children:[h.jsx("td",{className:"border-b border-border px-3 py-2 font-medium text-muted",children:sN(d)}),h.jsx("td",{className:"border-b border-border px-3 py-2",children:d.locale}),h.jsx("td",{className:"min-w-0 border-b border-border px-3 py-2 text-muted",children:h.jsx("div",{className:"whitespace-pre-wrap [overflow-wrap:anywhere]",children:d.description||"—"})}),h.jsx("td",{className:["min-w-0 border-b border-border px-3 py-2",p==="rtl"?"text-right":""].join(" "),dir:p,style:p?{unicodeBidi:"plaintext"}:void 0,children:h.jsx("div",{className:"whitespace-pre-wrap [overflow-wrap:anywhere]",children:typeof d.evaluatedTranslation=="string"?d.evaluatedTranslation:JSON.stringify(d.evaluatedTranslation)})})]}),g&&h.jsx("tr",{className:"bg-background/60",children:h.jsx("td",{colSpan:4,className:"min-w-0 border-b border-border px-4 py-4",children:h.jsxs("div",{className:"min-w-0 space-y-4",children:[h.jsxs("div",{className:"group flex items-center gap-2",children:[h.jsx("h3",{className:"text-sm font-semibold",children:vx(d)}),h.jsx(ts,{targetId:m})]}),h.jsx(Sx,{example:d,showLocale:!1,originalTranslationsByLocale:n.originalTranslationsByLocale})]})})})]},m)})})]})})}function Yu(n){return Lf([`example-${n.exampleIndex+1}`,n.locale,typeof n.matrixIndex=="number"?`matrix-${n.matrixIndex+1}`:""].filter(Boolean).join("-"))}function sf(n){const a=[`Example #${n.exampleIndex+1}`];return typeof n.matrixIndex=="number"&&a.push(`matrix #${n.matrixIndex+1}`),a.join(" · ")}function wx(n){return typeof n.matrixIndex=="number"?`#${n.exampleIndex+1}.${n.matrixIndex+1}`:`#${n.exampleIndex+1}`}function fN(n){return typeof n.evaluatedTranslation=="string"?n.evaluatedTranslation:JSON.stringify(n.evaluatedTranslation)}function dN(n,a){const r=a.trim().toLowerCase();return r?n.filter(u=>{const o=Yu(u),c=wx(u),d=u.description??"",m=fN(u);return`${o} ${c} ${d} ${m}`.toLowerCase().includes(r)}):n}function jx(n){var m;const{example:a,setKey:r,localeDirection:u}=n,o=((m=n.highlightQuery)==null?void 0:m.trim())??"",c=!!o;function d(g){return c?h.jsx(Ze,{to:et("locale",g,r),className:"font-medium text-primary hover:underline",children:h.jsx(Ve,{text:g,query:o})}):h.jsx(mx,{localeKey:g})}return h.jsxs("div",{className:"min-w-0 space-y-4",children:[n.showLocale!==!1&&h.jsx(xt,{label:"Locale",children:d(a.locale)}),a.sourceLocale!==a.locale&&h.jsx(xt,{label:"Merged from",children:d(a.sourceLocale)}),a.message&&h.jsxs(h.Fragment,{children:[h.jsx(xt,{label:"Message",children:h.jsx(Ze,{to:et("message",a.message,r),className:"font-medium text-primary hover:underline",children:c?h.jsx(Ve,{text:a.message,query:o}):a.message})}),a.originalTranslation&&h.jsx(xt,{label:"Original translation",children:h.jsxs("div",{className:"space-y-2",children:[c?h.jsx("div",{dir:u,className:["min-w-0 max-w-full whitespace-pre-wrap [overflow-wrap:anywhere]",u==="rtl"?"text-right":""].filter(Boolean).join(" "),style:u?{unicodeBidi:"plaintext"}:void 0,children:h.jsx(Ve,{text:a.originalTranslation,query:o})}):h.jsx(es,{value:a.originalTranslation,direction:u}),h.jsxs("p",{className:"text-xs text-muted",children:["See more"," ",h.jsx(Ze,{to:`${et("message",a.message,r)}/translations`,className:"font-medium text-primary hover:underline",children:"translations"})," ","and"," ",h.jsx(Ze,{to:`${et("message",a.message,r)}/overrides`,className:"font-medium text-primary hover:underline",children:"overrides"}),"."]})]})})]}),a.rawMessage&&h.jsx(xt,{label:"Raw message",children:h.jsx("div",{dir:u,className:["min-w-0 max-w-full",u==="rtl"?"text-right":""].filter(Boolean).join(" "),style:u?{unicodeBidi:"plaintext"}:void 0,children:c?h.jsx("pre",{className:"max-w-full whitespace-pre-wrap rounded border border-border bg-elevated p-4 text-xs text-text [overflow-wrap:anywhere]",children:h.jsx(Ve,{text:a.rawMessage,query:o})}):h.jsx(ir,{value:a.rawMessage})})}),typeof a.values<"u"&&h.jsx(xt,{label:"Values",children:c?h.jsx("pre",{className:"max-w-full whitespace-pre-wrap rounded border border-border bg-elevated p-4 text-xs text-text [overflow-wrap:anywhere]",children:h.jsx(Ve,{text:JSON.stringify(a.values,null,2),query:o})}):h.jsx(Ua,{value:a.values})}),typeof a.context<"u"&&h.jsx(xt,{label:"Context",children:c?h.jsx("pre",{className:"max-w-full whitespace-pre-wrap rounded border border-border bg-elevated p-4 text-xs text-text [overflow-wrap:anywhere]",children:h.jsx(Ve,{text:JSON.stringify(a.context,null,2),query:o})}):h.jsx(Ua,{value:a.context})}),typeof a.timeZone<"u"&&h.jsx(xt,{label:"Time zone",children:h.jsx("span",{className:"font-mono text-sm text-text",children:c?h.jsx(Ve,{text:a.timeZone,query:o}):a.timeZone})}),typeof a.currency<"u"&&h.jsx(xt,{label:"Currency",children:h.jsx("span",{className:"font-mono text-sm text-text",children:c?h.jsx(Ve,{text:a.currency,query:o}):a.currency})}),typeof a.formats<"u"&&h.jsx(xt,{label:"Formats",children:c?h.jsx("pre",{className:"max-w-full whitespace-pre-wrap rounded border border-border bg-elevated p-4 text-xs text-text [overflow-wrap:anywhere]",children:h.jsx(Ve,{text:JSON.stringify(a.formats,null,2),query:o})}):h.jsx(Ua,{value:a.formats})})]})}function hN(n){return h.jsx("div",{className:"space-y-6",children:n.examples.map(a=>{const r=Yu(a);return h.jsxs("section",{className:"min-w-0 space-y-4",children:[h.jsx(xx,{title:sf(a),targetId:r,description:a.description,highlightQuery:n.searchQuery}),h.jsx(bx,{inputs:h.jsx(jx,{example:a,setKey:n.setKey,localeDirection:n.localeDirection,showLocale:!1,highlightQuery:n.searchQuery}),evaluatedTranslation:a.evaluatedTranslation,direction:n.localeDirection,highlightQuery:n.searchQuery})]},`${a.exampleIndex}-${a.matrixIndex??"base"}-${a.sourceLocale}-${a.locale}`)})})}function mN(n){const[a,r]=C.useState([]),[u,o]=C.useState(null);C.useEffect(()=>{if(typeof window>"u")return;const d=decodeURIComponent(window.location.hash.slice(1));!d||!n.examples.find(g=>Yu(g)===d)||(r(g=>g.includes(d)?g:[...g,d]),o(d))},[n.examples]);function c(d){if(a.includes(d)){const m=a.filter(p=>p!==d),g=u===d?m[m.length-1]||null:u;r(m),o(g),Ya(g||void 0);return}r(m=>[...m,d]),o(d),Ya(d)}return h.jsx("div",{className:"min-w-0 overflow-hidden rounded-xl border border-border",children:h.jsxs("table",{className:"w-full table-fixed border-collapse bg-surface text-xs",children:[h.jsxs("colgroup",{children:[h.jsx("col",{className:"w-16"}),h.jsx("col",{className:"w-2/5"}),h.jsx("col",{className:"w-auto"})]}),h.jsx("thead",{className:"bg-elevated text-left text-[11px] uppercase tracking-wide text-muted",children:h.jsxs("tr",{children:[h.jsx("th",{className:"border-b border-border px-3 py-2 font-semibold",children:"#"}),h.jsx("th",{className:"border-b border-border px-3 py-2 font-semibold",children:"Description"}),h.jsx("th",{className:"border-b border-border px-3 py-2 font-semibold",children:"Evaluated translation"})]})}),h.jsx("tbody",{children:n.examples.map(d=>{const m=Yu(d),g=a.includes(m);return h.jsxs(C.Fragment,{children:[h.jsxs("tr",{id:m,className:["cursor-pointer align-top transition-colors",g?"bg-elevated":"hover:bg-elevated/60"].join(" "),onClick:()=>c(m),children:[h.jsx("td",{className:"border-b border-border px-3 py-2 font-medium text-muted",children:h.jsx(Ve,{text:wx(d),query:n.searchQuery})}),h.jsx("td",{className:"min-w-0 border-b border-border px-3 py-2 text-muted",children:h.jsx("div",{className:"whitespace-pre-wrap [overflow-wrap:anywhere]",children:h.jsx(Ve,{text:d.description||"—",query:n.searchQuery})})}),h.jsx("td",{className:["min-w-0 border-b border-border px-3 py-2",n.localeDirection==="rtl"?"text-right":""].join(" "),dir:n.localeDirection,style:n.localeDirection?{unicodeBidi:"plaintext"}:void 0,children:h.jsx("div",{className:"whitespace-pre-wrap [overflow-wrap:anywhere]",children:h.jsx(Ve,{text:typeof d.evaluatedTranslation=="string"?d.evaluatedTranslation:JSON.stringify(d.evaluatedTranslation),query:n.searchQuery})})})]}),g&&h.jsx("tr",{className:"bg-background/60",children:h.jsx("td",{colSpan:3,className:"min-w-0 border-b border-border px-4 py-4",children:h.jsxs("div",{className:"min-w-0 space-y-4",children:[h.jsxs("div",{className:"group flex items-center gap-2",children:[h.jsx("h3",{className:"text-sm font-semibold",children:n.searchQuery.trim()?h.jsx(Ve,{text:sf(d),query:n.searchQuery}):sf(d)}),h.jsx(ts,{targetId:m})]}),h.jsx(jx,{example:d,setKey:n.setKey,localeDirection:n.localeDirection,showLocale:!1,highlightQuery:n.searchQuery})]})})})]},m)})})]})})}function pN(){const{detail:n,setKey:a}=st(),[r,u]=Xn(),o=n.evaluatedExamples||[],c=n.entity.direction,m=r.get("view")==="expanded"?"expanded":"compact",g=Array.from(new Set(o.map(R=>R.sourceLocale))).sort(),p=r.get("sourceLocale"),x=p&&g.includes(p)?p:"",b=x?o.filter(R=>R.sourceLocale===x):o,w=r.get("q")??"",S=dN(b,w);return ns([S.length,x,m,w]),o.length===0?h.jsx("p",{className:"text-sm text-muted",children:"No examples found."}):h.jsxs("div",{className:"space-y-6",children:[h.jsxs("div",{className:"flex flex-wrap items-center gap-x-4 gap-y-3",children:[h.jsx("div",{className:"flex min-h-0 min-w-0 flex-1 basis-[min(100%,22rem)] items-center",children:h.jsx($u,{type:"search",value:w,onChange:R=>{const M=R.target.value;u(mn(r,"q",M.trim()?M:void 0),{replace:!0})},placeholder:"Search examples…","aria-label":"Search examples",className:[Wu,"box-border rounded-lg border border-border bg-elevated py-0 pl-2 pr-3","text-xs leading-snug text-text","placeholder:text-xs placeholder:text-muted placeholder:leading-snug"].join(" ")})}),g.length>1?h.jsxs("div",{className:"flex min-w-0 flex-wrap items-center gap-2",children:[h.jsx("span",{className:"text-sm text-muted",children:"Filter by source locale"}),h.jsxs("nav",{className:"flex flex-wrap gap-2",children:[h.jsx("button",{type:"button",className:["inline-flex rounded-full border px-3 py-1 text-xs font-semibold transition-colors",x?"border-pill bg-transparent text-text hover:bg-elevated":"border-primary bg-header-active text-header-text"].join(" "),onClick:()=>u(mn(r,"sourceLocale",void 0)),children:"All"}),g.map(R=>{const M=x===R;return h.jsx("button",{type:"button",className:["inline-flex rounded-full border px-3 py-1 text-xs font-semibold transition-colors",M?"border-primary bg-header-active text-header-text":"border-pill bg-transparent text-text hover:bg-elevated"].join(" "),onClick:()=>u(mn(r,"sourceLocale",M?void 0:R)),children:R},R)})]})]}):null,h.jsx("div",{className:"ml-auto shrink-0",children:h.jsx(dx,{activeView:m,onViewChange:R=>u(mn(r,"view",R==="compact"?void 0:R))})})]}),S.length===0?h.jsx("p",{className:"text-sm text-muted",children:"No examples match your search."}):m==="compact"?h.jsx(mN,{examples:S,setKey:a,localeDirection:c,searchQuery:w}):h.jsx(hN,{examples:S,setKey:a,localeDirection:c,searchQuery:w})]})}function gN(n,a){const r=a.trim().toLowerCase();return r?n.filter(u=>[u.value,...u.messageKeys,...u.sources.map(c=>c.locale)].join(" ").toLowerCase().includes(r)):n}function Xg(n){return h.jsx("span",{className:n.active?"text-primary":"text-muted/60","aria-hidden":"true",children:n.active?n.direction==="asc"?"↑":"↓":"↕"})}function yN(){const{detail:n,setKey:a}=st(),[r,u]=Xn(),[o,c]=C.useState(null),[d,m]=C.useState(null),[g,p]=C.useState([]),[x,b]=C.useState({column:"messages",direction:"desc"}),w=n.entity.direction,S=r.get("q")??"";function R(O){const z=_u(O.value);p(X=>{if(X.includes(z)){const k=X.filter(J=>J!==z);return Ya(void 0),k}return Ya(z),[...X,z]})}if(C.useEffect(()=>{let O=!1;return c(null),m(null),p([]),k1(n.key,a).then(z=>{O||c(z)}).catch(z=>{O||m(z.message)}),()=>{O=!0}},[n.key,a]),C.useEffect(()=>{if(!o||typeof window>"u")return;const O=decodeURIComponent(window.location.hash.slice(1));if(!O)return;const z=o.duplicateValues.find(k=>_u(k.value)===O);if(!z)return;const X=_u(z.value);p(k=>k.includes(X)?k:[...k,X])},[o]),ns([o==null?void 0:o.duplicateValues.length,g.length]),d)return h.jsx(qa,{title:"Unable to load duplicate translations",description:d});if(!o)return h.jsx("div",{className:"text-sm text-muted",children:"Loading duplicate translations..."});if(o.duplicateValues.length===0)return h.jsx("p",{className:"text-sm text-muted",children:"No duplicate translations found for this locale."});const M=HE(gN(o.duplicateValues,S),x);return h.jsxs("div",{className:"space-y-6",children:[h.jsxs("div",{className:"flex flex-wrap items-center gap-x-4 gap-y-3",children:[h.jsx("div",{className:"flex min-h-0 min-w-0 flex-1 basis-[min(100%,22rem)] items-center",children:h.jsx($u,{type:"search",value:S,onChange:O=>{const z=O.target.value;u(mn(r,"q",z.trim()?z:void 0),{replace:!0})},placeholder:"Search duplicates...","aria-label":"Search duplicates",className:[Wu,"box-border rounded-lg border border-border bg-elevated py-0 pl-2 pr-3","text-xs leading-snug text-text","placeholder:text-xs placeholder:text-muted placeholder:leading-snug"].join(" ")})}),h.jsxs("div",{className:"shrink-0 text-xs text-muted",children:[o.summary.duplicateValues," value",o.summary.duplicateValues===1?"":"s"," ·"," ",o.summary.duplicateMessageKeys," message key",o.summary.duplicateMessageKeys===1?"":"s"]})]}),M.length===0?h.jsx("p",{className:"text-sm text-muted",children:"No duplicates match your search."}):h.jsx("div",{className:"min-w-0 overflow-hidden rounded-xl border border-border",children:h.jsxs("table",{className:"w-full table-fixed border-collapse bg-surface text-xs",children:[h.jsxs("colgroup",{children:[h.jsx("col",{className:"w-[70%]"}),h.jsx("col",{className:"w-[30%]"})]}),h.jsx("thead",{className:"bg-elevated text-left text-[11px] uppercase tracking-wide text-muted",children:h.jsxs("tr",{children:[h.jsx("th",{className:"border-b border-border px-3 py-2 font-semibold","aria-sort":x.column==="value"?x.direction==="asc"?"ascending":"descending":"none",children:h.jsxs("button",{type:"button",className:"inline-flex cursor-pointer items-center gap-1 text-left font-semibold uppercase tracking-wide text-muted transition-colors hover:text-text",onClick:()=>b(O=>Vg(O,"value")),children:[h.jsx("span",{children:"Duplicate value"}),h.jsx(Xg,{active:x.column==="value",direction:x.direction})]})}),h.jsx("th",{className:"border-b border-border px-3 py-2 font-semibold","aria-sort":x.column==="messages"?x.direction==="asc"?"ascending":"descending":"none",children:h.jsxs("button",{type:"button",className:"inline-flex cursor-pointer items-center gap-1 text-left font-semibold uppercase tracking-wide text-muted transition-colors hover:text-text",onClick:()=>b(O=>Vg(O,"messages")),children:[h.jsx("span",{children:"Messages"}),h.jsx(Xg,{active:x.column==="messages",direction:x.direction})]})})]})}),h.jsx("tbody",{children:M.map(O=>{const z=Object.fromEntries(O.sources.map(J=>[J.messageKey,J.locale])),X=_u(O.value),k=g.includes(X);return h.jsxs(C.Fragment,{children:[h.jsxs("tr",{id:X,className:["cursor-pointer align-top transition-colors",k?"bg-elevated":"hover:bg-elevated/60"].join(" "),onClick:()=>R(O),children:[h.jsx("td",{className:["min-w-0 border-b border-border px-3 py-2 font-medium text-text",w==="rtl"?"text-right":""].join(" "),dir:w,style:w?{unicodeBidi:"plaintext"}:void 0,children:h.jsx("div",{className:"truncate",children:h.jsx(Ve,{text:O.value,query:S})})}),h.jsxs("td",{className:"min-w-0 border-b border-border px-3 py-2 text-muted",children:[O.messageKeys.length," message",O.messageKeys.length===1?"":"s"]})]}),k&&h.jsx("tr",{className:"bg-background/60",children:h.jsx("td",{colSpan:2,className:"min-w-0 border-b border-border px-4 py-4",children:h.jsxs("div",{className:"min-w-0 space-y-3",children:[h.jsxs("div",{className:"space-y-2",children:[h.jsx("h3",{className:"text-sm font-semibold",children:"Translation value"}),h.jsx(ir,{value:O.value})]}),h.jsx("h3",{className:"text-sm font-semibold",children:"Messages"}),h.jsx("div",{className:"min-w-0 overflow-hidden rounded-lg border border-border",children:h.jsxs("table",{className:"w-full table-fixed border-collapse bg-surface text-xs",children:[h.jsxs("colgroup",{children:[h.jsx("col",{className:"w-[70%]"}),h.jsx("col",{className:"w-[30%]"})]}),h.jsx("thead",{className:"bg-elevated text-left text-[11px] uppercase tracking-wide text-muted",children:h.jsxs("tr",{children:[h.jsx("th",{className:"border-b border-border px-3 py-2 font-semibold",children:"Message"}),h.jsx("th",{className:"border-b border-border px-3 py-2 font-semibold",children:"Source"})]})}),h.jsx("tbody",{children:O.messageKeys.map(J=>{const te=z[J]||o.locale,q=te!==o.locale;return h.jsxs("tr",{className:"align-top",children:[h.jsx("td",{className:"min-w-0 border-b border-border px-3 py-2",children:h.jsx(Ze,{to:et("message",J,a),className:"font-medium text-primary [overflow-wrap:anywhere] hover:underline",children:h.jsx(Ve,{text:J,query:S})})}),h.jsx("td",{className:"min-w-0 border-b border-border px-3 py-2 text-muted",children:q?h.jsxs(h.Fragment,{children:[h.jsx("span",{children:"from "}),h.jsx(Ze,{to:et("locale",te,a),className:"font-medium text-primary hover:underline",onClick:$=>$.stopPropagation(),children:h.jsx(Ve,{text:te,query:S})})]}):h.jsx("span",{children:"direct"})})]},J)})})]})})]})})})]},O.value)})})]})})]})}function xN(){const{detail:n}=st();return n.type==="locale"?h.jsx(pN,{}):h.jsx(uN,{})}function bN(){const{detail:n,setKey:a}=st(),r=n.usage||{};return h.jsxs("div",{className:"grid gap-6 md:grid-cols-2",children:[h.jsxs("section",{children:[h.jsx("h2",{className:"mb-2 font-semibold",children:"Segments"}),h.jsx(nr,{type:"segment",keys:r.segments,setKey:a})]}),h.jsxs("section",{children:[h.jsx("h2",{className:"mb-2 font-semibold",children:"Messages"}),h.jsx(nr,{type:"message",keys:r.messages,setKey:a})]})]})}function vN(){const{detail:n,setKey:a}=st(),r=n.usage||{};return h.jsxs("div",{className:"grid gap-6 md:grid-cols-2",children:[h.jsxs("section",{children:[h.jsx("h2",{className:"mb-2 font-semibold",children:"Attributes"}),h.jsx(nr,{type:"attribute",keys:r.attributes,setKey:a})]}),h.jsxs("section",{children:[h.jsx("h2",{className:"mb-2 font-semibold",children:"Messages"}),h.jsx(nr,{type:"message",keys:r.messages,setKey:a})]})]})}function SN(){const{detail:n}=st();return n.type==="segment"?h.jsx(vN,{}):h.jsx(bN,{})}function wN(){const{detail:n,setKey:a}=st(),r=n.entity;return h.jsx(vf,{conditions:r.conditions,setKey:a})}function jN(){const{detail:n,setKey:a}=st(),{localeKey:r}=Gu(),[u]=Xn(),o=u.get("q")??"",c=n.formatRowsByLocale||{},d=Object.keys(c).sort(),m=d.length===0?"":r&&c[r]?r:d[0],g=m&&c[m]?c[m]:[],{formatTypes:p,formatTypePillKeys:x,selectedFormatType:b}=gx(g);if(d.length===0)return h.jsx("p",{className:"text-sm text-muted",children:"No target formats found."});const w=`${Pi(a)}/targets/${Et(n.key)}/formats`;if(!r){const S=u.toString();return h.jsx(bl,{to:`${w}/${Et(m)}${S?`?${S}`:""}`,replace:!0})}return h.jsxs("div",{className:"space-y-6",children:[h.jsx("nav",{className:"flex min-w-0 flex-wrap gap-2",children:d.map(S=>{const R=u.toString(),M=R?`?${R}`:"",O=S===m;return h.jsx(Ze,{to:`${w}/${Et(S)}${M}`,className:["inline-flex rounded-full border px-3 py-1 text-xs font-semibold transition-colors",O?"border-primary bg-header-active text-header-text":"border-pill bg-transparent text-text hover:bg-elevated"].join(" "),children:S},S)})}),p.length>0?h.jsx(px,{typeKeys:x}):null,h.jsx(yx,{}),h.jsx(hx,{rows:c[m],searchQuery:o,formatPathLayout:"split",hideTypeColumn:b!=null,selectedFormatType:b,showExampleColumn:fx()})]})}function EN(){const{detail:n,setKey:a}=st();return h.jsx(nr,{type:"message",keys:n.messages,setKey:a})}function NN(){var u;const{manifest:n}=Sl(),{detail:a,setKey:r}=st();return h.jsx(Ny,{path:`${r?`/data/sets/${Et(r)}`:"/data/root"}/history/${a.type}/${Et(a.key)}`,setKey:r,commitUrl:(u=n.links)==null?void 0:u.commit})}function Zg(n={}){const a=n.prefix||"";return h.jsxs(Je,{path:`${a}:entityPath/:entityKey`,element:h.jsx(af,{}),children:[h.jsx(Je,{index:!0,element:h.jsx(WE,{})}),h.jsx(Je,{path:"formats",element:h.jsx(rf,{})}),h.jsx(Je,{path:"examples",element:h.jsx(xN,{})}),h.jsx(Je,{path:"duplicates",element:h.jsx(yN,{})}),h.jsx(Je,{path:"translations",element:h.jsx(iN,{})}),h.jsx(Je,{path:"overrides",element:h.jsx(rN,{})}),h.jsx(Je,{path:"conditions",element:h.jsx(wN,{})}),h.jsx(Je,{path:"usage",element:h.jsx(SN,{})}),h.jsx(Je,{path:"messages",element:h.jsx(EN,{})}),h.jsx(Je,{path:"history",element:h.jsx(NN,{})}),h.jsx(Je,{path:"*",element:h.jsx(bl,{to:".",replace:!0})})]})}function TN(n){return h.jsx(M1,{initialManifest:n.manifest,children:h.jsx(K1,{children:h.jsxs(X0,{children:[h.jsx(Je,{index:!0,element:h.jsx(G1,{})}),h.jsx(Je,{path:"sets/:setKey",element:h.jsx(bl,{to:"messages",replace:!0})}),h.jsx(Je,{path:"sets/:setKey/:entityPath",element:h.jsx(Wp,{})}),h.jsx(Je,{path:"sets/:setKey/:entityPath/:entityKey/formats/:localeKey",element:h.jsx(af,{}),children:h.jsx(Je,{index:!0,element:h.jsx(rf,{})})}),Zg({prefix:"sets/:setKey/"}),h.jsx(Je,{path:"sets/:setKey/history",element:h.jsx(eg,{})}),h.jsx(Je,{path:"history",element:h.jsx(eg,{})}),h.jsx(Je,{path:":entityPath",element:h.jsx(Wp,{})}),h.jsx(Je,{path:":entityPath/:entityKey/formats/:localeKey",element:h.jsx(af,{}),children:h.jsx(Je,{index:!0,element:h.jsx(rf,{})})}),Zg(),h.jsx(Je,{path:"*",element:h.jsx(bl,{to:"/",replace:!0})})]})})})}async function CN(){const n=await vy(),a=n.router==="browser"?y1:x1;C1(n.router),Fg.createRoot(document.getElementById("root")).render(h.jsx(C.StrictMode,{children:h.jsx(a,{children:h.jsx(TN,{manifest:n})})}))}CN().catch(n=>{Fg.createRoot(document.getElementById("root")).render(h.jsx("div",{className:"p-8 text-danger",children:n.message}))});