@messagevisor/catalog 0.0.1 → 0.1.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.
Files changed (58) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +7 -0
  3. package/dist/assets/index-CfGbXx4X.css +1 -0
  4. package/dist/assets/index-r8ugP5JL.js +73 -0
  5. package/dist/favicon.png +0 -0
  6. package/dist/index.html +14 -0
  7. package/dist/logo-text.png +0 -0
  8. package/lib/index.d.ts +1 -0
  9. package/lib/index.js +18 -0
  10. package/lib/index.js.map +1 -0
  11. package/lib/node/formatExamplePreview.d.ts +10 -0
  12. package/lib/node/formatExamplePreview.js +79 -0
  13. package/lib/node/formatExamplePreview.js.map +1 -0
  14. package/lib/node/index.d.ts +191 -0
  15. package/lib/node/index.js +1645 -0
  16. package/lib/node/index.js.map +1 -0
  17. package/package.json +59 -13
  18. package/src/App.tsx +73 -0
  19. package/src/api.spec.ts +42 -0
  20. package/src/api.ts +87 -0
  21. package/src/catalogBrandAssets.ts +8 -0
  22. package/src/components/details/ConditionTree.tsx +146 -0
  23. package/src/components/details/FieldGrid.tsx +16 -0
  24. package/src/components/details/GroupSegmentTree.tsx +73 -0
  25. package/src/components/details/MarkdownContent.tsx +23 -0
  26. package/src/components/details/TranslationsTable.tsx +263 -0
  27. package/src/components/details/UsageLinks.tsx +29 -0
  28. package/src/components/history/HistoryTimeline.tsx +122 -0
  29. package/src/components/layout/AppShell.tsx +338 -0
  30. package/src/components/layout/PageHeader.tsx +13 -0
  31. package/src/components/layout/Tabs.tsx +35 -0
  32. package/src/components/lists/EntityList.tsx +451 -0
  33. package/src/components/ui/Badge.tsx +21 -0
  34. package/src/components/ui/Button.tsx +12 -0
  35. package/src/components/ui/Card.tsx +9 -0
  36. package/src/components/ui/CodeBlock.tsx +7 -0
  37. package/src/components/ui/EmptyState.tsx +8 -0
  38. package/src/components/ui/Input.tsx +12 -0
  39. package/src/components/ui/LabelValueBadge.tsx +55 -0
  40. package/src/config.ts +2 -0
  41. package/src/context/CatalogContext.tsx +50 -0
  42. package/src/entityTypes.ts +49 -0
  43. package/src/index.ts +1 -0
  44. package/src/main.tsx +28 -0
  45. package/src/node/formatExamplePreview.ts +85 -0
  46. package/src/node/index.spec.ts +713 -0
  47. package/src/node/index.ts +2007 -0
  48. package/src/pages/EntityDetailPage.tsx +3345 -0
  49. package/src/pages/HistoryPage.tsx +26 -0
  50. package/src/pages/HomePage.tsx +21 -0
  51. package/src/pages/ListPage.tsx +59 -0
  52. package/src/styles.css +95 -0
  53. package/src/theme.ts +36 -0
  54. package/src/types.ts +127 -0
  55. package/src/utils/formatCatalogTimestamp.ts +77 -0
  56. package/src/utils/hashTranslationValue.spec.ts +20 -0
  57. package/src/utils/hashTranslationValue.ts +22 -0
  58. package/src/utils/searchQuery.ts +46 -0
@@ -0,0 +1,73 @@
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 Qg(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var yc={exports:{}},Hi={};/**
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 kp;function _v(){if(kp)return Hi;kp=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 Hi.Fragment=a,Hi.jsx=r,Hi.jsxs=r,Hi}var Rp;function Ov(){return Rp||(Rp=1,yc.exports=_v()),yc.exports}var h=Ov(),xc={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 _p;function Mv(){if(_p)return ye;_p=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"),E=Symbol.iterator;function S(T){return T===null||typeof T!="object"?null:(T=E&&T[E]||T["@@iterator"],typeof T=="function"?T:null)}var A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},R=Object.assign,U={};function k(T,V,w){this.props=T,this.context=V,this.refs=U,this.updater=w||A}k.prototype.isReactComponent={},k.prototype.setState=function(T,V){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,V,"setState")},k.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function X(){}X.prototype=k.prototype;function O(T,V,w){this.props=T,this.context=V,this.refs=U,this.updater=w||A}var I=O.prototype=new X;I.constructor=O,R(I,k.prototype),I.isPureReactComponent=!0;var te=Array.isArray;function q(){}var F={H:null,A:null,T:null,S:null},oe=Object.prototype.hasOwnProperty;function ce(T,V,w){var ee=w.ref;return{$$typeof:n,type:T,key:V,ref:ee!==void 0?ee:null,props:w}}function ge(T,V){return ce(T.type,V,T.props)}function ne(T){return typeof T=="object"&&T!==null&&T.$$typeof===n}function W(T){var V={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(w){return V[w]})}var Se=/\/+/g;function ae(T,V){return typeof T=="object"&&T!==null&&T.key!=null?W(""+T.key):V.toString(36)}function $(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(V){T.status==="pending"&&(T.status="fulfilled",T.value=V)},function(V){T.status==="pending"&&(T.status="rejected",T.reason=V)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function M(T,V,w,ee,de){var ue=typeof T;(ue==="undefined"||ue==="boolean")&&(T=null);var Ne=!1;if(T===null)Ne=!0;else switch(ue){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,M(Ne(T._payload),V,w,ee,de)}}if(Ne)return de=de(T),Ne=ee===""?"."+ae(T,0):ee,te(de)?(w="",Ne!=null&&(w=Ne.replace(Se,"$&/")+"/"),M(de,V,w,"",function(Ft){return Ft})):de!=null&&(ne(de)&&(de=ge(de,w+(de.key==null||T&&T.key===de.key?"":(""+de.key).replace(Se,"$&/")+"/")+Ne)),V.push(de)),1;Ne=0;var Ze=ee===""?".":ee+":";if(te(T))for(var Le=0;Le<T.length;Le++)ee=T[Le],ue=Ze+ae(ee,Le),Ne+=M(ee,V,w,ue,de);else if(Le=S(T),typeof Le=="function")for(T=Le.call(T),Le=0;!(ee=T.next()).done;)ee=ee.value,ue=Ze+ae(ee,Le++),Ne+=M(ee,V,w,ue,de);else if(ue==="object"){if(typeof T.then=="function")return M($(T),V,w,ee,de);throw V=String(T),Error("Objects are not valid as a React child (found: "+(V==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":V)+"). If you meant to render a collection of children, use an array instead.")}return Ne}function Z(T,V,w){if(T==null)return T;var ee=[],de=0;return M(T,ee,"","",function(ue){return V.call(w,ue,de++)}),ee}function ie(T){if(T._status===-1){var V=T._result;V=V(),V.then(function(w){(T._status===0||T._status===-1)&&(T._status=1,T._result=w)},function(w){(T._status===0||T._status===-1)&&(T._status=2,T._result=w)}),T._status===-1&&(T._status=0,T._result=V)}if(T._status===1)return T._result.default;throw T._result}var pe=typeof reportError=="function"?reportError:function(T){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var V=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(V))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",T);return}console.error(T)},j={map:Z,forEach:function(T,V,w){Z(T,function(){V.apply(this,arguments)},w)},count:function(T){var V=0;return Z(T,function(){V++}),V},toArray:function(T){return Z(T,function(V){return V})||[]},only:function(T){if(!ne(T))throw Error("React.Children.only expected to receive a single React element child.");return T}};return ye.Activity=b,ye.Children=j,ye.Component=k,ye.Fragment=r,ye.Profiler=o,ye.PureComponent=O,ye.StrictMode=u,ye.Suspense=g,ye.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=F,ye.__COMPILER_RUNTIME={__proto__:null,c:function(T){return F.H.useMemoCache(T)}},ye.cache=function(T){return function(){return T.apply(null,arguments)}},ye.cacheSignal=function(){return null},ye.cloneElement=function(T,V,w){if(T==null)throw Error("The argument must be a React element, but you passed "+T+".");var ee=R({},T.props),de=T.key;if(V!=null)for(ue in V.key!==void 0&&(de=""+V.key),V)!oe.call(V,ue)||ue==="key"||ue==="__self"||ue==="__source"||ue==="ref"&&V.ref===void 0||(ee[ue]=V[ue]);var ue=arguments.length-2;if(ue===1)ee.children=w;else if(1<ue){for(var Ne=Array(ue),Ze=0;Ze<ue;Ze++)Ne[Ze]=arguments[Ze+2];ee.children=Ne}return ce(T.type,de,ee)},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,V,w){var ee,de={},ue=null;if(V!=null)for(ee in V.key!==void 0&&(ue=""+V.key),V)oe.call(V,ee)&&ee!=="key"&&ee!=="__self"&&ee!=="__source"&&(de[ee]=V[ee]);var Ne=arguments.length-2;if(Ne===1)de.children=w;else if(1<Ne){for(var Ze=Array(Ne),Le=0;Le<Ne;Le++)Ze[Le]=arguments[Le+2];de.children=Ze}if(T&&T.defaultProps)for(ee in Ne=T.defaultProps,Ne)de[ee]===void 0&&(de[ee]=Ne[ee]);return ce(T,ue,de)},ye.createRef=function(){return{current:null}},ye.forwardRef=function(T){return{$$typeof:m,render:T}},ye.isValidElement=ne,ye.lazy=function(T){return{$$typeof:x,_payload:{_status:-1,_result:T},_init:ie}},ye.memo=function(T,V){return{$$typeof:p,type:T,compare:V===void 0?null:V}},ye.startTransition=function(T){var V=F.T,w={};F.T=w;try{var ee=T(),de=F.S;de!==null&&de(w,ee),typeof ee=="object"&&ee!==null&&typeof ee.then=="function"&&ee.then(q,pe)}catch(ue){pe(ue)}finally{V!==null&&w.types!==null&&(V.types=w.types),F.T=V}},ye.unstable_useCacheRefresh=function(){return F.H.useCacheRefresh()},ye.use=function(T){return F.H.use(T)},ye.useActionState=function(T,V,w){return F.H.useActionState(T,V,w)},ye.useCallback=function(T,V){return F.H.useCallback(T,V)},ye.useContext=function(T){return F.H.useContext(T)},ye.useDebugValue=function(){},ye.useDeferredValue=function(T,V){return F.H.useDeferredValue(T,V)},ye.useEffect=function(T,V){return F.H.useEffect(T,V)},ye.useEffectEvent=function(T){return F.H.useEffectEvent(T)},ye.useId=function(){return F.H.useId()},ye.useImperativeHandle=function(T,V,w){return F.H.useImperativeHandle(T,V,w)},ye.useInsertionEffect=function(T,V){return F.H.useInsertionEffect(T,V)},ye.useLayoutEffect=function(T,V){return F.H.useLayoutEffect(T,V)},ye.useMemo=function(T,V){return F.H.useMemo(T,V)},ye.useOptimistic=function(T,V){return F.H.useOptimistic(T,V)},ye.useReducer=function(T,V,w){return F.H.useReducer(T,V,w)},ye.useRef=function(T){return F.H.useRef(T)},ye.useState=function(T){return F.H.useState(T)},ye.useSyncExternalStore=function(T,V,w){return F.H.useSyncExternalStore(T,V,w)},ye.useTransition=function(){return F.H.useTransition()},ye.version="19.2.6",ye}var Op;function rf(){return Op||(Op=1,xc.exports=Mv()),xc.exports}var z=rf(),bc={exports:{}},qi={},vc={exports:{}},Sc={};/**
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 Mp;function Dv(){return Mp||(Mp=1,(function(n){function a(M,Z){var ie=M.length;M.push(Z);e:for(;0<ie;){var pe=ie-1>>>1,j=M[pe];if(0<o(j,Z))M[pe]=Z,M[ie]=j,ie=pe;else break e}}function r(M){return M.length===0?null:M[0]}function u(M){if(M.length===0)return null;var Z=M[0],ie=M.pop();if(ie!==Z){M[0]=ie;e:for(var pe=0,j=M.length,T=j>>>1;pe<T;){var V=2*(pe+1)-1,w=M[V],ee=V+1,de=M[ee];if(0>o(w,ie))ee<j&&0>o(de,w)?(M[pe]=de,M[ee]=ie,pe=ee):(M[pe]=w,M[V]=ie,pe=V);else if(ee<j&&0>o(de,ie))M[pe]=de,M[ee]=ie,pe=ee;else break e}}return Z}function o(M,Z){var ie=M.sortIndex-Z.sortIndex;return ie!==0?ie:M.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,E=3,S=!1,A=!1,R=!1,U=!1,k=typeof setTimeout=="function"?setTimeout:null,X=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;function I(M){for(var Z=r(p);Z!==null;){if(Z.callback===null)u(p);else if(Z.startTime<=M)u(p),Z.sortIndex=Z.expirationTime,a(g,Z);else break;Z=r(p)}}function te(M){if(R=!1,I(M),!A)if(r(g)!==null)A=!0,q||(q=!0,W());else{var Z=r(p);Z!==null&&$(te,Z.startTime-M)}}var q=!1,F=-1,oe=5,ce=-1;function ge(){return U?!0:!(n.unstable_now()-ce<oe)}function ne(){if(U=!1,q){var M=n.unstable_now();ce=M;var Z=!0;try{e:{A=!1,R&&(R=!1,X(F),F=-1),S=!0;var ie=E;try{t:{for(I(M),b=r(g);b!==null&&!(b.expirationTime>M&&ge());){var pe=b.callback;if(typeof pe=="function"){b.callback=null,E=b.priorityLevel;var j=pe(b.expirationTime<=M);if(M=n.unstable_now(),typeof j=="function"){b.callback=j,I(M),Z=!0;break t}b===r(g)&&u(g),I(M)}else u(g);b=r(g)}if(b!==null)Z=!0;else{var T=r(p);T!==null&&$(te,T.startTime-M),Z=!1}}break e}finally{b=null,E=ie,S=!1}Z=void 0}}finally{Z?W():q=!1}}}var W;if(typeof O=="function")W=function(){O(ne)};else if(typeof MessageChannel<"u"){var Se=new MessageChannel,ae=Se.port2;Se.port1.onmessage=ne,W=function(){ae.postMessage(null)}}else W=function(){k(ne,0)};function $(M,Z){F=k(function(){M(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(M){M.callback=null},n.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):oe=0<M?Math.floor(1e3/M):5},n.unstable_getCurrentPriorityLevel=function(){return E},n.unstable_next=function(M){switch(E){case 1:case 2:case 3:var Z=3;break;default:Z=E}var ie=E;E=Z;try{return M()}finally{E=ie}},n.unstable_requestPaint=function(){U=!0},n.unstable_runWithPriority=function(M,Z){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var ie=E;E=M;try{return Z()}finally{E=ie}},n.unstable_scheduleCallback=function(M,Z,ie){var pe=n.unstable_now();switch(typeof ie=="object"&&ie!==null?(ie=ie.delay,ie=typeof ie=="number"&&0<ie?pe+ie:pe):ie=pe,M){case 1:var j=-1;break;case 2:j=250;break;case 5:j=1073741823;break;case 4:j=1e4;break;default:j=5e3}return j=ie+j,M={id:x++,callback:Z,priorityLevel:M,startTime:ie,expirationTime:j,sortIndex:-1},ie>pe?(M.sortIndex=ie,a(p,M),r(g)===null&&M===r(p)&&(R?(X(F),F=-1):R=!0,$(te,ie-pe))):(M.sortIndex=j,a(g,M),A||S||(A=!0,q||(q=!0,W()))),M},n.unstable_shouldYield=ge,n.unstable_wrapCallback=function(M){var Z=E;return function(){var ie=E;E=Z;try{return M.apply(this,arguments)}finally{E=ie}}}})(Sc)),Sc}var Dp;function Lv(){return Dp||(Dp=1,vc.exports=Dv()),vc.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 Lp;function Bv(){if(Lp)return bt;Lp=1;var n=rf();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),E=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:E,fetchPriority:S}):x==="script"&&u.d.X(g,{crossOrigin:b,integrity:E,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 Bp;function Uv(){if(Bp)return Ec.exports;Bp=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=Bv(),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 Up;function Hv(){if(Up)return qi;Up=1;var n=Lv(),a=rf(),r=Uv();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,E=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),A=Symbol.for("react.portal"),R=Symbol.for("react.fragment"),U=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),X=Symbol.for("react.consumer"),O=Symbol.for("react.context"),I=Symbol.for("react.forward_ref"),te=Symbol.for("react.suspense"),q=Symbol.for("react.suspense_list"),F=Symbol.for("react.memo"),oe=Symbol.for("react.lazy"),ce=Symbol.for("react.activity"),ge=Symbol.for("react.memo_cache_sentinel"),ne=Symbol.iterator;function W(e){return e===null||typeof e!="object"?null:(e=ne&&e[ne]||e["@@iterator"],typeof e=="function"?e:null)}var Se=Symbol.for("react.client.reference");function ae(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 R:return"Fragment";case k:return"Profiler";case U:return"StrictMode";case te:return"Suspense";case q:return"SuspenseList";case ce:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case A:return"Portal";case O:return e.displayName||"Context";case X:return(e._context.displayName||"Context")+".Consumer";case I:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case F:return t=e.displayName||null,t!==null?t:ae(e.type)||"Memo";case oe:t=e._payload,e=e._init;try{return ae(e(t))}catch{}}return null}var $=Array.isArray,M=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,ie={pending:!1,data:null,method:null,action:null},pe=[],j=-1;function T(e){return{current:e}}function V(e){0>j||(e.current=pe[j],pe[j]=null,j--)}function w(e,t){j++,pe[j]=e.current,e.current=t}var ee=T(null),de=T(null),ue=T(null),Ne=T(null);function Ze(e,t){switch(w(ue,t),w(de,e),w(ee,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Wm(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Wm(t),e=ep(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}V(ee),w(ee,e)}function Le(){V(ee),V(de),V(ue)}function Ft(e){e.memoizedState!==null&&w(Ne,e);var t=ee.current,l=ep(t,e.type);t!==l&&(w(de,e),w(ee,l))}function wn(e){de.current===e&&(V(ee),V(de)),Ne.current===e&&(V(Ne),Di._currentValue=ie)}var Xa,rr;function jn(e){if(Xa===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);Xa=t&&t[1]||"",rr=-1<l.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+Xa+e+rr}var Kl=!1;function Gl(e,t){if(!e||Kl)return"";Kl=!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 B=H}Reflect.construct(e,[],G)}else{try{G.call()}catch(H){B=H}e.call(G.prototype)}}else{try{throw Error()}catch(H){B=H}(G=e())&&typeof G.catch=="function"&&G.catch(function(){})}}catch(H){if(H&&B&&typeof H.stack=="string")return[H.stack,B.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 Y=`
46
+ `+N[i].replace(" at new "," at ");return e.displayName&&Y.includes("<anonymous>")&&(Y=Y.replace("<anonymous>",e.displayName)),Y}while(1<=i&&0<=s);break}}}finally{Kl=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?jn(l):""}function ur(e,t){switch(e.tag){case 26:case 27:case 5:return jn(e.type);case 16:return jn("Lazy");case 13:return e.child!==t&&t!==null?jn("Suspense Fallback"):jn("Suspense");case 19:return jn("SuspenseList");case 0:case 15:return Gl(e.type,!1);case 11:return Gl(e.type.render,!1);case 1:return Gl(e.type,!0);case 31:return jn("Activity");default:return""}}function sr(e){try{var t="",l=null;do t+=ur(e,l),l=e,e=e.return;while(e);return t}catch(i){return`
47
+ Error generating stack: `+i.message+`
48
+ `+i.stack}}var Xl=Object.prototype.hasOwnProperty,Zl=n.unstable_scheduleCallback,Za=n.unstable_cancelCallback,ts=n.unstable_shouldYield,ns=n.unstable_requestPaint,St=n.unstable_now,ls=n.unstable_getCurrentPriorityLevel,Q=n.unstable_ImmediatePriority,P=n.unstable_UserBlockingPriority,he=n.unstable_NormalPriority,Ee=n.unstable_LowPriority,Oe=n.unstable_IdlePriority,Lt=n.log,Nn=n.unstable_setDisableYieldValue,Et=null,ot=null;function Nt(e){if(typeof Lt=="function"&&Nn(e),ot&&typeof ot.setStrictMode=="function")try{ot.setStrictMode(Et,e)}catch{}}var qe=Math.clz32?Math.clz32:xx,Zn=Math.log,cn=Math.LN2;function xx(e){return e>>>=0,e===0?32:31-(Zn(e)/cn|0)|0}var or=256,cr=262144,fr=4194304;function Sl(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 dr(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=Sl(i):(y&=v,y!==0?s=Sl(y):l||(l=v&~e,l!==0&&(s=Sl(l))))):(v=i&~f,v!==0?s=Sl(v):y!==0?s=Sl(y):l||(l=i&~e,l!==0&&(s=Sl(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 $a(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function bx(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 Mf(){var e=fr;return fr<<=1,(fr&62914560)===0&&(fr=4194304),e}function as(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Fa(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function vx(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 Y=31-qe(l),G=1<<Y;v[Y]=0,N[Y]=-1;var B=L[Y];if(B!==null)for(L[Y]=null,Y=0;Y<B.length;Y++){var H=B[Y];H!==null&&(H.lane&=-536870913)}l&=~G}i!==0&&Df(e,i,0),f!==0&&s===0&&e.tag!==0&&(e.suspendedLanes|=f&~(y&~t))}function Df(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 Lf(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 Bf(e,t){var l=t&-t;return l=(l&42)!==0?1:is(l),(l&(e.suspendedLanes|t))!==0?0:l}function is(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 rs(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Uf(){var e=Z.p;return e!==0?e:(e=window.event,e===void 0?32:wp(e.type))}function Hf(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,$l="__reactContainer$"+$n,us="__reactEvents$"+$n,Sx="__reactListeners$"+$n,Ex="__reactHandles$"+$n,qf="__reactResources$"+$n,Ja="__reactMarker$"+$n;function ss(e){delete e[ht],delete e[Tt],delete e[us],delete e[Sx],delete e[Ex]}function Fl(e){var t=e[ht];if(t)return t;for(var l=e.parentNode;l;){if(t=l[$l]||l[ht]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=up(e);e!==null;){if(l=e[ht])return l;e=up(e)}return t}e=l,l=e.parentNode}return null}function Jl(e){if(e=e[ht]||e[$l]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ia(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(u(33))}function Il(e){var t=e[qf];return t||(t=e[qf]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ft(e){e[Ja]=!0}var Yf=new Set,Vf={};function El(e,t){Pl(e,t),Pl(e+"Capture",t)}function Pl(e,t){for(Vf[e]=t,e=0;e<t.length;e++)Yf.add(t[e])}var wx=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]*$"),Qf={},Kf={};function jx(e){return Xl.call(Kf,e)?!0:Xl.call(Qf,e)?!1:wx.test(e)?Kf[e]=!0:(Qf[e]=!0,!1)}function hr(e,t,l){if(jx(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 mr(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 Gf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Nx(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 os(e){if(!e._valueTracker){var t=Gf(e)?"checked":"value";e._valueTracker=Nx(e,t,""+e[t])}}function Xf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),i="";return e&&(i=Gf(e)?e.checked?"true":"false":e.value),e=i,e!==l?(t.setValue(e),!0):!1}function pr(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 Tx=/[\n"\\]/g;function It(e){return e.replace(Tx,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function cs(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?fs(e,y,Jt(t)):l!=null?fs(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 Zf(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)){os(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),os(e)}function fs(e,t,l){t==="number"&&pr(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function Wl(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 $f(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 Ff(e,t,l,i){if(t==null){if(i!=null){if(l!=null)throw Error(u(92));if($(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),os(e)}function ea(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var Cx=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 Jf(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||Cx.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function If(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&&Jf(e,s,i)}else for(var f in t)t.hasOwnProperty(f)&&Jf(e,f,t[f])}function ds(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 Ax=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"]]),zx=/^[\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 gr(e){return zx.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Cn(){}var hs=null;function ms(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ta=null,na=null;function Pf(e){var t=Jl(e);if(t&&(e=t.stateNode)){var l=e[Tt]||null;e:switch(e=t.stateNode,t.type){case"input":if(cs(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));cs(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&&Xf(i)}break e;case"textarea":$f(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&Wl(e,!!l.multiple,t,!1)}}}var ps=!1;function Wf(e,t,l){if(ps)return e(t,l);ps=!0;try{var i=e(t);return i}finally{if(ps=!1,(ta!==null||na!==null)&&(lu(),ta&&(t=ta,e=na,na=ta=null,Pf(t),e)))for(t=0;t<e.length;t++)Pf(e[t])}}function Pa(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"),gs=!1;if(An)try{var Wa={};Object.defineProperty(Wa,"passive",{get:function(){gs=!0}}),window.addEventListener("test",Wa,Wa),window.removeEventListener("test",Wa,Wa)}catch{gs=!1}var Fn=null,ys=null,yr=null;function ed(){if(yr)return yr;var e,t=ys,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 yr=s.slice(e,1<i?1-i:void 0)}function xr(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 br(){return!0}function td(){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)?br:td,this.isPropagationStopped=td,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=br)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=br)},persist:function(){},isPersistent:br}),t}var wl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},vr=Ct(wl),ei=b({},wl,{view:0,detail:0}),kx=Ct(ei),xs,bs,ti,Sr=b({},ei,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ss,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!==ti&&(ti&&e.type==="mousemove"?(xs=e.screenX-ti.screenX,bs=e.screenY-ti.screenY):bs=xs=0,ti=e),xs)},movementY:function(e){return"movementY"in e?e.movementY:bs}}),nd=Ct(Sr),Rx=b({},Sr,{dataTransfer:0}),_x=Ct(Rx),Ox=b({},ei,{relatedTarget:0}),vs=Ct(Ox),Mx=b({},wl,{animationName:0,elapsedTime:0,pseudoElement:0}),Dx=Ct(Mx),Lx=b({},wl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Bx=Ct(Lx),Ux=b({},wl,{data:0}),ld=Ct(Ux),Hx={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},qx={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"},Yx={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Vx(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Yx[e])?!!t[e]:!1}function Ss(){return Vx}var Qx=b({},ei,{key:function(e){if(e.key){var t=Hx[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=xr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?qx[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ss,charCode:function(e){return e.type==="keypress"?xr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?xr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Kx=Ct(Qx),Gx=b({},Sr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ad=Ct(Gx),Xx=b({},ei,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ss}),Zx=Ct(Xx),$x=b({},wl,{propertyName:0,elapsedTime:0,pseudoElement:0}),Fx=Ct($x),Jx=b({},Sr,{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}),Ix=Ct(Jx),Px=b({},wl,{newState:0,oldState:0}),Wx=Ct(Px),eb=[9,13,27,32],Es=An&&"CompositionEvent"in window,ni=null;An&&"documentMode"in document&&(ni=document.documentMode);var tb=An&&"TextEvent"in window&&!ni,id=An&&(!Es||ni&&8<ni&&11>=ni),rd=" ",ud=!1;function sd(e,t){switch(e){case"keyup":return eb.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function od(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var la=!1;function nb(e,t){switch(e){case"compositionend":return od(t);case"keypress":return t.which!==32?null:(ud=!0,rd);case"textInput":return e=t.data,e===rd&&ud?null:e;default:return null}}function lb(e,t){if(la)return e==="compositionend"||!Es&&sd(e,t)?(e=ed(),yr=ys=Fn=null,la=!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 id&&t.locale!=="ko"?null:t.data;default:return null}}var ab={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 cd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!ab[e.type]:t==="textarea"}function fd(e,t,l,i){ta?na?na.push(i):na=[i]:ta=i,t=cu(t,"onChange"),0<t.length&&(l=new vr("onChange","change",null,l,i),e.push({event:l,listeners:t}))}var li=null,ai=null;function ib(e){Zm(e,0)}function Er(e){var t=Ia(e);if(Xf(t))return e}function dd(e,t){if(e==="change")return t}var hd=!1;if(An){var ws;if(An){var js="oninput"in document;if(!js){var md=document.createElement("div");md.setAttribute("oninput","return;"),js=typeof md.oninput=="function"}ws=js}else ws=!1;hd=ws&&(!document.documentMode||9<document.documentMode)}function pd(){li&&(li.detachEvent("onpropertychange",gd),ai=li=null)}function gd(e){if(e.propertyName==="value"&&Er(ai)){var t=[];fd(t,ai,e,ms(e)),Wf(ib,t)}}function rb(e,t,l){e==="focusin"?(pd(),li=t,ai=l,li.attachEvent("onpropertychange",gd)):e==="focusout"&&pd()}function ub(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Er(ai)}function sb(e,t){if(e==="click")return Er(t)}function ob(e,t){if(e==="input"||e==="change")return Er(t)}function cb(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Bt=typeof Object.is=="function"?Object.is:cb;function ii(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(!Xl.call(t,s)||!Bt(e[s],t[s]))return!1}return!0}function yd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function xd(e,t){var l=yd(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=yd(l)}}function bd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?bd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function vd(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=pr(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=pr(e.document)}return t}function Ns(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 fb=An&&"documentMode"in document&&11>=document.documentMode,aa=null,Ts=null,ri=null,Cs=!1;function Sd(e,t,l){var i=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Cs||aa==null||aa!==pr(i)||(i=aa,"selectionStart"in i&&Ns(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}),ri&&ii(ri,i)||(ri=i,i=cu(Ts,"onSelect"),0<i.length&&(t=new vr("onSelect","select",null,t,l),e.push({event:t,listeners:i}),t.target=aa)))}function jl(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var ia={animationend:jl("Animation","AnimationEnd"),animationiteration:jl("Animation","AnimationIteration"),animationstart:jl("Animation","AnimationStart"),transitionrun:jl("Transition","TransitionRun"),transitionstart:jl("Transition","TransitionStart"),transitioncancel:jl("Transition","TransitionCancel"),transitionend:jl("Transition","TransitionEnd")},As={},Ed={};An&&(Ed=document.createElement("div").style,"AnimationEvent"in window||(delete ia.animationend.animation,delete ia.animationiteration.animation,delete ia.animationstart.animation),"TransitionEvent"in window||delete ia.transitionend.transition);function Nl(e){if(As[e])return As[e];if(!ia[e])return e;var t=ia[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in Ed)return As[e]=t[l];return e}var wd=Nl("animationend"),jd=Nl("animationiteration"),Nd=Nl("animationstart"),db=Nl("transitionrun"),hb=Nl("transitionstart"),mb=Nl("transitioncancel"),Td=Nl("transitionend"),Cd=new Map,zs="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(" ");zs.push("scrollEnd");function fn(e,t){Cd.set(e,t),El(t,[e])}var wr=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=[],ra=0,ks=0;function jr(){for(var e=ra,t=ks=ra=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&&Ad(l,s,f)}}function Nr(e,t,l,i){Pt[ra++]=e,Pt[ra++]=t,Pt[ra++]=l,Pt[ra++]=i,ks|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function Rs(e,t,l,i){return Nr(e,t,l,i),Tr(e)}function Tl(e,t){return Nr(e,null,null,t),Tr(e)}function Ad(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 Tr(e){if(50<Ai)throw Ai=0,Yo=null,Error(u(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ua={};function pb(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 pb(e,t,l,i)}function _s(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 zd(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 Cr(e,t,l,i,s,f){var y=0;if(i=e,typeof e=="function")_s(e)&&(y=1);else if(typeof e=="string")y=vv(e,l,ee.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 R:return Cl(l.children,s,f,t);case U:y=8,s|=24;break;case k:return e=Ut(12,l,t,s|2),e.elementType=k,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 O:y=10;break e;case X:y=9;break e;case I:y=11;break e;case F:y=14;break e;case oe: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 Cl(e,t,l,i){return e=Ut(7,e,i,t),e.lanes=l,e}function Os(e,t,l){return e=Ut(6,e,null,t),e.lanes=l,e}function kd(e){var t=Ut(18,null,null,0);return t.stateNode=e,t}function Ms(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 Rd=new WeakMap;function Wt(e,t){if(typeof e=="object"&&e!==null){var l=Rd.get(e);return l!==void 0?l:(t={value:e,source:t,stack:sr(t)},Rd.set(e,t),t)}return{value:e,source:t,stack:sr(t)}}var sa=[],oa=0,Ar=null,ui=0,en=[],tn=0,Jn=null,gn=1,yn="";function kn(e,t){sa[oa++]=ui,sa[oa++]=Ar,Ar=e,ui=t}function _d(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 Ds(e){e.return!==null&&(kn(e,1),_d(e,1,0))}function Ls(e){for(;e===Ar;)Ar=sa[--oa],sa[oa]=null,ui=sa[--oa],sa[oa]=null;for(;e===Jn;)Jn=en[--tn],en[tn]=null,yn=en[--tn],en[tn]=null,gn=en[--tn],en[tn]=null}function Od(e,t){en[tn++]=gn,en[tn++]=yn,en[tn++]=Jn,gn=t.id,yn=t.overflow,Jn=e}var mt=null,Ke=null,Ae=!1,In=null,nn=!1,Bs=Error(u(519));function Pn(e){var t=Error(u(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw si(Wt(t,e)),Bs}function Md(e){var t=e.stateNode,l=e.type,i=e.memoizedProps;switch(t[ht]=e,t[Tt]=i,l){case"dialog":je("cancel",t),je("close",t);break;case"iframe":case"object":case"embed":je("load",t);break;case"video":case"audio":for(l=0;l<ki.length;l++)je(ki[l],t);break;case"source":je("error",t);break;case"img":case"image":case"link":je("error",t),je("load",t);break;case"details":je("toggle",t);break;case"input":je("invalid",t),Zf(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":je("invalid",t);break;case"textarea":je("invalid",t),Ff(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||Im(t.textContent,l)?(i.popover!=null&&(je("beforetoggle",t),je("toggle",t)),i.onScroll!=null&&je("scroll",t),i.onScrollEnd!=null&&je("scrollend",t),i.onClick!=null&&(t.onclick=Cn),t=!0):t=!1,t||Pn(e,!0)}function Dd(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 ca(e){if(e!==mt)return!1;if(!Ae)return Dd(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")||nc(e.type,e.memoizedProps)),l=!l),l&&Ke&&Pn(e),Dd(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));Ke=rp(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));Ke=rp(e)}else t===27?(t=Ke,dl(e.type)?(e=uc,uc=null,Ke=e):Ke=t):Ke=mt?an(e.stateNode.nextSibling):null;return!0}function Al(){Ke=mt=null,Ae=!1}function Us(){var e=In;return e!==null&&(Rt===null?Rt=e:Rt.push.apply(Rt,e),In=null),e}function si(e){In===null?In=[e]:In.push(e)}var Hs=T(null),zl=null,Rn=null;function Wn(e,t,l){w(Hs,t._currentValue),t._currentValue=l}function _n(e){e._currentValue=Hs.current,V(Hs)}function qs(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 Ys(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),qs(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),qs(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 fa(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(Di):e=[Di])}s=s.return}e!==null&&Ys(t,e,l,i),t.flags|=262144}function zr(e){for(e=e.firstContext;e!==null;){if(!Bt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function kl(e){zl=e,Rn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function pt(e){return Ld(zl,e)}function kr(e,t){return zl===null&&kl(e),Ld(e,t)}function Ld(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 gb=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()})}},yb=n.unstable_scheduleCallback,xb=n.unstable_NormalPriority,lt={$$typeof:O,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Vs(){return{controller:new gb,data:new Map,refCount:0}}function oi(e){e.refCount--,e.refCount===0&&yb(xb,function(){e.controller.abort()})}var ci=null,Qs=0,da=0,ha=null;function bb(e,t){if(ci===null){var l=ci=[];Qs=0,da=Zo(),ha={status:"pending",value:void 0,then:function(i){l.push(i)}}}return Qs++,t.then(Bd,Bd),t}function Bd(){if(--Qs===0&&ci!==null){ha!==null&&(ha.status="fulfilled");var e=ci;ci=null,da=0,ha=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function vb(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 Ud=M.S;M.S=function(e,t){Sm=St(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&bb(e,t),Ud!==null&&Ud(e,t)};var Rl=T(null);function Ks(){var e=Rl.current;return e!==null?e:Ye.pooledCache}function Rr(e,t){t===null?w(Rl,Rl.current):w(Rl,t.pool)}function Hd(){var e=Ks();return e===null?null:{parent:lt._currentValue,pool:e}}var ma=Error(u(460)),Gs=Error(u(474)),_r=Error(u(542)),Or={then:function(){}};function qd(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Yd(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,Qd(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,Qd(e),e}throw Ol=t,ma}}function _l(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Ol=l,ma):l}}var Ol=null;function Vd(){if(Ol===null)throw Error(u(459));var e=Ol;return Ol=null,e}function Qd(e){if(e===ma||e===_r)throw Error(u(483))}var pa=null,fi=0;function Mr(e){var t=fi;return fi+=1,pa===null&&(pa=[]),Yd(pa,e,t)}function di(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Dr(e,t){throw t.$$typeof===E?Error(u(525)):(e=Object.prototype.toString.call(t),Error(u(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Kd(e){function t(_,C){if(e){var D=_.deletions;D===null?(_.deletions=[C],_.flags|=16):D.push(C)}}function l(_,C){if(!e)return null;for(;C!==null;)t(_,C),C=C.sibling;return null}function i(_){for(var C=new Map;_!==null;)_.key!==null?C.set(_.key,_):C.set(_.index,_),_=_.sibling;return C}function s(_,C){return _=zn(_,C),_.index=0,_.sibling=null,_}function f(_,C,D){return _.index=D,e?(D=_.alternate,D!==null?(D=D.index,D<C?(_.flags|=67108866,C):D):(_.flags|=67108866,C)):(_.flags|=1048576,C)}function y(_){return e&&_.alternate===null&&(_.flags|=67108866),_}function v(_,C,D,K){return C===null||C.tag!==6?(C=Os(D,_.mode,K),C.return=_,C):(C=s(C,D),C.return=_,C)}function N(_,C,D,K){var se=D.type;return se===R?Y(_,C,D.props.children,K,D.key):C!==null&&(C.elementType===se||typeof se=="object"&&se!==null&&se.$$typeof===oe&&_l(se)===C.type)?(C=s(C,D.props),di(C,D),C.return=_,C):(C=Cr(D.type,D.key,D.props,null,_.mode,K),di(C,D),C.return=_,C)}function L(_,C,D,K){return C===null||C.tag!==4||C.stateNode.containerInfo!==D.containerInfo||C.stateNode.implementation!==D.implementation?(C=Ms(D,_.mode,K),C.return=_,C):(C=s(C,D.children||[]),C.return=_,C)}function Y(_,C,D,K,se){return C===null||C.tag!==7?(C=Cl(D,_.mode,K,se),C.return=_,C):(C=s(C,D),C.return=_,C)}function G(_,C,D){if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return C=Os(""+C,_.mode,D),C.return=_,C;if(typeof C=="object"&&C!==null){switch(C.$$typeof){case S:return D=Cr(C.type,C.key,C.props,null,_.mode,D),di(D,C),D.return=_,D;case A:return C=Ms(C,_.mode,D),C.return=_,C;case oe:return C=_l(C),G(_,C,D)}if($(C)||W(C))return C=Cl(C,_.mode,D,null),C.return=_,C;if(typeof C.then=="function")return G(_,Mr(C),D);if(C.$$typeof===O)return G(_,kr(_,C),D);Dr(_,C)}return null}function B(_,C,D,K){var se=C!==null?C.key:null;if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return se!==null?null:v(_,C,""+D,K);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case S:return D.key===se?N(_,C,D,K):null;case A:return D.key===se?L(_,C,D,K):null;case oe:return D=_l(D),B(_,C,D,K)}if($(D)||W(D))return se!==null?null:Y(_,C,D,K,null);if(typeof D.then=="function")return B(_,C,Mr(D),K);if(D.$$typeof===O)return B(_,C,kr(_,D),K);Dr(_,D)}return null}function H(_,C,D,K,se){if(typeof K=="string"&&K!==""||typeof K=="number"||typeof K=="bigint")return _=_.get(D)||null,v(C,_,""+K,se);if(typeof K=="object"&&K!==null){switch(K.$$typeof){case S:return _=_.get(K.key===null?D:K.key)||null,N(C,_,K,se);case A:return _=_.get(K.key===null?D:K.key)||null,L(C,_,K,se);case oe:return K=_l(K),H(_,C,D,K,se)}if($(K)||W(K))return _=_.get(D)||null,Y(C,_,K,se,null);if(typeof K.then=="function")return H(_,C,D,Mr(K),se);if(K.$$typeof===O)return H(_,C,D,kr(C,K),se);Dr(C,K)}return null}function le(_,C,D,K){for(var se=null,ze=null,re=C,be=C=0,Ce=null;re!==null&&be<D.length;be++){re.index>be?(Ce=re,re=null):Ce=re.sibling;var ke=B(_,re,D[be],K);if(ke===null){re===null&&(re=Ce);break}e&&re&&ke.alternate===null&&t(_,re),C=f(ke,C,be),ze===null?se=ke:ze.sibling=ke,ze=ke,re=Ce}if(be===D.length)return l(_,re),Ae&&kn(_,be),se;if(re===null){for(;be<D.length;be++)re=G(_,D[be],K),re!==null&&(C=f(re,C,be),ze===null?se=re:ze.sibling=re,ze=re);return Ae&&kn(_,be),se}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),C=f(Ce,C,be),ze===null?se=Ce:ze.sibling=Ce,ze=Ce);return e&&re.forEach(function(yl){return t(_,yl)}),Ae&&kn(_,be),se}function fe(_,C,D,K){if(D==null)throw Error(u(151));for(var se=null,ze=null,re=C,be=C=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=B(_,re,ke.value,K);if(yl===null){re===null&&(re=Ce);break}e&&re&&yl.alternate===null&&t(_,re),C=f(yl,C,be),ze===null?se=yl:ze.sibling=yl,ze=yl,re=Ce}if(ke.done)return l(_,re),Ae&&kn(_,be),se;if(re===null){for(;!ke.done;be++,ke=D.next())ke=G(_,ke.value,K),ke!==null&&(C=f(ke,C,be),ze===null?se=ke:ze.sibling=ke,ze=ke);return Ae&&kn(_,be),se}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),C=f(ke,C,be),ze===null?se=ke:ze.sibling=ke,ze=ke);return e&&re.forEach(function(Rv){return t(_,Rv)}),Ae&&kn(_,be),se}function He(_,C,D,K){if(typeof D=="object"&&D!==null&&D.type===R&&D.key===null&&(D=D.props.children),typeof D=="object"&&D!==null){switch(D.$$typeof){case S:e:{for(var se=D.key;C!==null;){if(C.key===se){if(se=D.type,se===R){if(C.tag===7){l(_,C.sibling),K=s(C,D.props.children),K.return=_,_=K;break e}}else if(C.elementType===se||typeof se=="object"&&se!==null&&se.$$typeof===oe&&_l(se)===C.type){l(_,C.sibling),K=s(C,D.props),di(K,D),K.return=_,_=K;break e}l(_,C);break}else t(_,C);C=C.sibling}D.type===R?(K=Cl(D.props.children,_.mode,K,D.key),K.return=_,_=K):(K=Cr(D.type,D.key,D.props,null,_.mode,K),di(K,D),K.return=_,_=K)}return y(_);case A:e:{for(se=D.key;C!==null;){if(C.key===se)if(C.tag===4&&C.stateNode.containerInfo===D.containerInfo&&C.stateNode.implementation===D.implementation){l(_,C.sibling),K=s(C,D.children||[]),K.return=_,_=K;break e}else{l(_,C);break}else t(_,C);C=C.sibling}K=Ms(D,_.mode,K),K.return=_,_=K}return y(_);case oe:return D=_l(D),He(_,C,D,K)}if($(D))return le(_,C,D,K);if(W(D)){if(se=W(D),typeof se!="function")throw Error(u(150));return D=se.call(D),fe(_,C,D,K)}if(typeof D.then=="function")return He(_,C,Mr(D),K);if(D.$$typeof===O)return He(_,C,kr(_,D),K);Dr(_,D)}return typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint"?(D=""+D,C!==null&&C.tag===6?(l(_,C.sibling),K=s(C,D),K.return=_,_=K):(l(_,C),K=Os(D,_.mode,K),K.return=_,_=K),y(_)):l(_,C)}return function(_,C,D,K){try{fi=0;var se=He(_,C,D,K);return pa=null,se}catch(re){if(re===ma||re===_r)throw re;var ze=Ut(29,re,null,_.mode);return ze.lanes=K,ze.return=_,ze}finally{}}}var Ml=Kd(!0),Gd=Kd(!1),el=!1;function Xs(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Zs(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=Tr(e),Ad(e,null,l),t}return Nr(e,i,t,l),Tr(e)}function hi(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,Lf(e,l)}}function $s(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 Fs=!1;function mi(){if(Fs){var e=ha;if(e!==null)throw e}}function pi(e,t,l,i){Fs=!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 Y=e.alternate;Y!==null&&(Y=Y.updateQueue,v=Y.lastBaseUpdate,v!==y&&(v===null?Y.firstBaseUpdate=L:v.next=L,Y.lastBaseUpdate=N))}if(f!==null){var G=s.baseState;y=0,Y=L=N=null,v=f;do{var B=v.lane&-536870913,H=B!==v.lane;if(H?(Te&B)===B:(i&B)===B){B!==0&&B===da&&(Fs=!0),Y!==null&&(Y=Y.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});e:{var le=e,fe=v;B=t;var He=l;switch(fe.tag){case 1:if(le=fe.payload,typeof le=="function"){G=le.call(He,G,B);break e}G=le;break e;case 3:le.flags=le.flags&-65537|128;case 0:if(le=fe.payload,B=typeof le=="function"?le.call(He,G,B):le,B==null)break e;G=b({},G,B);break e;case 2:el=!0}}B=v.callback,B!==null&&(e.flags|=64,H&&(e.flags|=8192),H=s.callbacks,H===null?s.callbacks=[B]:H.push(B))}else H={lane:B,tag:v.tag,payload:v.payload,callback:v.callback,next:null},Y===null?(L=Y=H,N=G):Y=Y.next=H,y|=B;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);Y===null&&(N=G),s.baseState=N,s.firstBaseUpdate=L,s.lastBaseUpdate=Y,f===null&&(s.shared.lanes=0),ul|=y,e.lanes=y,e.memoizedState=G}}function Xd(e,t){if(typeof e!="function")throw Error(u(191,e));e.call(t)}function Zd(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Xd(l[e],t)}var ga=T(null),Lr=T(0);function $d(e,t){e=Yn,w(Lr,e),w(ga,t),Yn=e|t.baseLanes}function Js(){w(Lr,Yn),w(ga,ga.current)}function Is(){Yn=Lr.current,V(ga),V(Lr)}var Ht=T(null),ln=null;function ll(e){var t=e.alternate;w(tt,tt.current&1),w(Ht,e),ln===null&&(t===null||ga.current!==null||t.memoizedState!==null)&&(ln=e)}function Ps(e){w(tt,tt.current),w(Ht,e),ln===null&&(ln=e)}function Fd(e){e.tag===22?(w(tt,tt.current),w(Ht,e),ln===null&&(ln=e)):al()}function al(){w(tt,tt.current),w(Ht,Ht.current)}function qt(e){V(Ht),ln===e&&(ln=null),V(tt)}var tt=T(0);function Br(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||ic(l)||rc(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 On=0,xe=null,Be=null,at=null,Ur=!1,ya=!1,Dl=!1,Hr=0,gi=0,xa=null,Sb=0;function Pe(){throw Error(u(321))}function Ws(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 eo(e,t,l,i,s,f){return On=f,xe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,M.H=e===null||e.memoizedState===null?_h:go,Dl=!1,f=l(i,s),Dl=!1,ya&&(f=Id(t,l,i,s)),Jd(e),f}function Jd(e){M.H=bi;var t=Be!==null&&Be.next!==null;if(On=0,at=Be=xe=null,Ur=!1,gi=0,xa=null,t)throw Error(u(300));e===null||it||(e=e.dependencies,e!==null&&zr(e)&&(it=!0))}function Id(e,t,l,i){xe=e;var s=0;do{if(ya&&(xa=null),gi=0,ya=!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)}M.H=Oh,f=t(l,i)}while(ya);return f}function Eb(){var e=M.H,t=e.useState()[0];return t=typeof t.then=="function"?yi(t):t,e=e.useState()[0],(Be!==null?Be.memoizedState:null)!==e&&(xe.flags|=1024),t}function to(){var e=Hr!==0;return Hr=0,e}function no(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function lo(e){if(Ur){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Ur=!1}On=0,at=Be=xe=null,ya=!1,gi=Hr=0,xa=null}function wt(){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 qr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function yi(e){var t=gi;return gi+=1,xa===null&&(xa=[]),e=Yd(xa,e,t),t=xe,(at===null?t.memoizedState:at.next)===null&&(t=t.alternate,M.H=t===null||t.memoizedState===null?_h:go),e}function Yr(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return yi(e);if(e.$$typeof===O)return pt(e)}throw Error(u(438,String(e)))}function ao(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=qr(),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 Mn(e,t){return typeof t=="function"?t(e):t}function Vr(e){var t=nt();return io(t,Be,e)}function io(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,Y=!1;do{var G=L.lane&-536870913;if(G!==L.lane?(Te&G)===G:(On&G)===G){var B=L.revertLane;if(B===0)N!==null&&(N=N.next={lane:0,revertLane:0,gesture:null,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null}),G===da&&(Y=!0);else if((On&B)===B){L=L.next,B===da&&(Y=!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|=B,ul|=B;G=L.action,Dl&&l(f,G),f=L.hasEagerState?L.eagerState:l(f,G)}else B={lane:G,revertLane:L.revertLane,gesture:L.gesture,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},N===null?(v=N=B,y=f):N=N.next=B,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,Y&&(l=ha,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 ro(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 Pd(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,oo(th.bind(null,i,s,e),[e]),s.getSnapshot!==t||y||at!==null&&at.memoizedState.tag&1){if(i.flags|=2048,ba(9,{destroy:void 0},eh.bind(null,i,s,l,t),null),Ye===null)throw Error(u(349));f||(On&127)!==0||Wd(i,t,l)}return l}function Wd(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=xe.updateQueue,t===null?(t=qr(),xe.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function eh(e,t,l,i){t.value=l,t.getSnapshot=i,nh(t)&&lh(e)}function th(e,t,l){return l(function(){nh(t)&&lh(e)})}function nh(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!Bt(e,l)}catch{return!0}}function lh(e){var t=Tl(e,2);t!==null&&_t(t,e,2)}function uo(e){var t=wt();if(typeof e=="function"){var l=e;if(e=l(),Dl){Nt(!0);try{l()}finally{Nt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mn,lastRenderedState:e},t}function ah(e,t,l,i){return e.baseState=l,io(e,Be,typeof i=="function"?i:Mn)}function wb(e,t,l,i,s){if(Gr(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)}};M.T!==null?l(!0):f.isTransition=!1,i(f),l=t.pending,l===null?(f.next=t.pending=f,ih(t,f)):(f.next=l.next,t.pending=l.next=f)}}function ih(e,t){var l=t.action,i=t.payload,s=e.state;if(t.isTransition){var f=M.T,y={};M.T=y;try{var v=l(s,i),N=M.S;N!==null&&N(y,v),rh(e,t,v)}catch(L){so(e,t,L)}finally{f!==null&&y.types!==null&&(f.types=y.types),M.T=f}}else try{f=l(s,i),rh(e,t,f)}catch(L){so(e,t,L)}}function rh(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(i){uh(e,t,i)},function(i){return so(e,t,i)}):uh(e,t,l)}function uh(e,t,l){t.status="fulfilled",t.value=l,sh(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,ih(e,l)))}function so(e,t,l){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=l,sh(t),t=t.next;while(t!==i)}e.action=null}function sh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function oh(e,t){return t}function ch(e,t){if(Ae){var l=Ye.formState;if(l!==null){e:{var i=xe;if(Ae){if(Ke){t:{for(var s=Ke,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){Ke=an(s.nextSibling),i=s.data==="F!";break e}}Pn(i)}i=!1}i&&(t=l[0])}}return l=wt(),l.memoizedState=l.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:oh,lastRenderedState:t},l.queue=i,l=zh.bind(null,xe,i),i.dispatch=l,i=uo(!1),f=po.bind(null,xe,!1,i.queue),i=wt(),s={state:t,dispatch:null,action:e,pending:null},i.queue=s,l=wb.bind(null,xe,s,f,l),s.dispatch=l,i.memoizedState=e,[t,l,!1]}function fh(e){var t=nt();return dh(t,Be,e)}function dh(e,t,l){if(t=io(e,t,oh)[0],e=Vr(Mn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=yi(t)}catch(y){throw y===ma?_r:y}else i=t;t=nt();var s=t.queue,f=s.dispatch;return l!==t.memoizedState&&(xe.flags|=2048,ba(9,{destroy:void 0},jb.bind(null,s,l),null)),[i,f,e]}function jb(e,t){e.action=t}function hh(e){var t=nt(),l=Be;if(l!==null)return dh(t,l,e);nt(),t=t.memoizedState,l=nt();var i=l.queue.dispatch;return l.memoizedState=e,[t,i,!1]}function ba(e,t,l,i){return e={tag:e,create:l,deps:i,inst:t,next:null},t=xe.updateQueue,t===null&&(t=qr(),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 mh(){return nt().memoizedState}function Qr(e,t,l,i){var s=wt();xe.flags|=e,s.memoizedState=ba(1|t,{destroy:void 0},l,i===void 0?null:i)}function Kr(e,t,l,i){var s=nt();i=i===void 0?null:i;var f=s.memoizedState.inst;Be!==null&&i!==null&&Ws(i,Be.memoizedState.deps)?s.memoizedState=ba(t,f,l,i):(xe.flags|=e,s.memoizedState=ba(1|t,f,l,i))}function ph(e,t){Qr(8390656,8,e,t)}function oo(e,t){Kr(2048,8,e,t)}function Nb(e){xe.flags|=4;var t=xe.updateQueue;if(t===null)t=qr(),xe.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function gh(e){var t=nt().memoizedState;return Nb({ref:t,nextImpl:e}),function(){if((Re&2)!==0)throw Error(u(440));return t.impl.apply(void 0,arguments)}}function yh(e,t){return Kr(4,2,e,t)}function xh(e,t){return Kr(4,4,e,t)}function bh(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 vh(e,t,l){l=l!=null?l.concat([e]):null,Kr(4,4,bh.bind(null,t,e),l)}function co(){}function Sh(e,t){var l=nt();t=t===void 0?null:t;var i=l.memoizedState;return t!==null&&Ws(t,i[1])?i[0]:(l.memoizedState=[e,t],e)}function Eh(e,t){var l=nt();t=t===void 0?null:t;var i=l.memoizedState;if(t!==null&&Ws(t,i[1]))return i[0];if(i=e(),Dl){Nt(!0);try{e()}finally{Nt(!1)}}return l.memoizedState=[i,t],i}function fo(e,t,l){return l===void 0||(On&1073741824)!==0&&(Te&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=wm(),xe.lanes|=e,ul|=e,l)}function wh(e,t,l,i){return Bt(l,t)?l:ga.current!==null?(e=fo(e,l,i),Bt(e,t)||(it=!0),e):(On&42)===0||(On&1073741824)!==0&&(Te&261930)===0?(it=!0,e.memoizedState=l):(e=wm(),xe.lanes|=e,ul|=e,t)}function jh(e,t,l,i,s){var f=Z.p;Z.p=f!==0&&8>f?f:8;var y=M.T,v={};M.T=v,po(e,!1,t,l);try{var N=s(),L=M.S;if(L!==null&&L(v,N),N!==null&&typeof N=="object"&&typeof N.then=="function"){var Y=vb(N,i);xi(e,t,Y,Qt(e))}else xi(e,t,i,Qt(e))}catch(G){xi(e,t,{then:function(){},status:"rejected",reason:G},Qt())}finally{Z.p=f,y!==null&&v.types!==null&&(y.types=v.types),M.T=y}}function Tb(){}function ho(e,t,l,i){if(e.tag!==5)throw Error(u(476));var s=Nh(e).queue;jh(e,s,t,ie,l===null?Tb:function(){return Th(e),l(i)})}function Nh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ie,baseState:ie,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mn,lastRenderedState:ie},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mn,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Th(e){var t=Nh(e);t.next===null&&(t=e.alternate.memoizedState),xi(e,t.next.queue,{},Qt())}function mo(){return pt(Di)}function Ch(){return nt().memoizedState}function Ah(){return nt().memoizedState}function Cb(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),hi(i,t,l)),t={cache:Vs()},e.payload=t;return}t=t.return}}function Ab(e,t,l){var i=Qt();l={lane:i,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Gr(e)?kh(t,l):(l=Rs(e,t,l,i),l!==null&&(_t(l,e,i),Rh(l,t,i)))}function zh(e,t,l){var i=Qt();xi(e,t,l,i)}function xi(e,t,l,i){var s={lane:i,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Gr(e))kh(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 Nr(e,t,s,0),Ye===null&&jr(),!1}catch{}finally{}if(l=Rs(e,t,s,i),l!==null)return _t(l,e,i),Rh(l,t,i),!0}return!1}function po(e,t,l,i){if(i={lane:2,revertLane:Zo(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},Gr(e)){if(t)throw Error(u(479))}else t=Rs(e,l,i,2),t!==null&&_t(t,e,2)}function Gr(e){var t=e.alternate;return e===xe||t!==null&&t===xe}function kh(e,t){ya=Ur=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Rh(e,t,l){if((l&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,l|=i,t.lanes=l,Lf(e,l)}}var bi={readContext:pt,use:Yr,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};bi.useEffectEvent=Pe;var _h={readContext:pt,use:Yr,useCallback:function(e,t){return wt().memoizedState=[e,t===void 0?null:t],e},useContext:pt,useEffect:ph,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,Qr(4194308,4,bh.bind(null,t,e),l)},useLayoutEffect:function(e,t){return Qr(4194308,4,e,t)},useInsertionEffect:function(e,t){Qr(4,2,e,t)},useMemo:function(e,t){var l=wt();t=t===void 0?null:t;var i=e();if(Dl){Nt(!0);try{e()}finally{Nt(!1)}}return l.memoizedState=[i,t],i},useReducer:function(e,t,l){var i=wt();if(l!==void 0){var s=l(t);if(Dl){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=Ab.bind(null,xe,e),[i.memoizedState,e]},useRef:function(e){var t=wt();return e={current:e},t.memoizedState=e},useState:function(e){e=uo(e);var t=e.queue,l=zh.bind(null,xe,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:co,useDeferredValue:function(e,t){var l=wt();return fo(l,e,t)},useTransition:function(){var e=uo(!1);return e=jh.bind(null,xe,e.queue,!0,!1),wt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var i=xe,s=wt();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||Wd(i,t,l)}s.memoizedState=l;var f={value:l,getSnapshot:t};return s.queue=f,ph(th.bind(null,i,f,e),[e]),i.flags|=2048,ba(9,{destroy:void 0},eh.bind(null,i,f,l,t),null),l},useId:function(){var e=wt(),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=Hr++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=Sb++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:mo,useFormState:ch,useActionState:ch,useOptimistic:function(e){var t=wt();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=po.bind(null,xe,!0,l),l.dispatch=t,[e,t]},useMemoCache:ao,useCacheRefresh:function(){return wt().memoizedState=Cb.bind(null,xe)},useEffectEvent:function(e){var t=wt(),l={impl:e};return t.memoizedState=l,function(){if((Re&2)!==0)throw Error(u(440));return l.impl.apply(void 0,arguments)}}},go={readContext:pt,use:Yr,useCallback:Sh,useContext:pt,useEffect:oo,useImperativeHandle:vh,useInsertionEffect:yh,useLayoutEffect:xh,useMemo:Eh,useReducer:Vr,useRef:mh,useState:function(){return Vr(Mn)},useDebugValue:co,useDeferredValue:function(e,t){var l=nt();return wh(l,Be.memoizedState,e,t)},useTransition:function(){var e=Vr(Mn)[0],t=nt().memoizedState;return[typeof e=="boolean"?e:yi(e),t]},useSyncExternalStore:Pd,useId:Ch,useHostTransitionStatus:mo,useFormState:fh,useActionState:fh,useOptimistic:function(e,t){var l=nt();return ah(l,Be,e,t)},useMemoCache:ao,useCacheRefresh:Ah};go.useEffectEvent=gh;var Oh={readContext:pt,use:Yr,useCallback:Sh,useContext:pt,useEffect:oo,useImperativeHandle:vh,useInsertionEffect:yh,useLayoutEffect:xh,useMemo:Eh,useReducer:ro,useRef:mh,useState:function(){return ro(Mn)},useDebugValue:co,useDeferredValue:function(e,t){var l=nt();return Be===null?fo(l,e,t):wh(l,Be.memoizedState,e,t)},useTransition:function(){var e=ro(Mn)[0],t=nt().memoizedState;return[typeof e=="boolean"?e:yi(e),t]},useSyncExternalStore:Pd,useId:Ch,useHostTransitionStatus:mo,useFormState:hh,useActionState:hh,useOptimistic:function(e,t){var l=nt();return Be!==null?ah(l,Be,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:ao,useCacheRefresh:Ah};Oh.useEffectEvent=gh;function yo(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 xo={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),hi(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),hi(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),hi(t,e,l))}};function Mh(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?!ii(l,i)||!ii(s,f):!0}function Dh(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&&xo.enqueueReplaceState(t,t.state,null)}function Ll(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 Lh(e){wr(e)}function Bh(e){console.error(e)}function Uh(e){wr(e)}function Xr(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function Hh(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 bo(e,t,l){return l=tl(l),l.tag=3,l.payload={element:null},l.callback=function(){Xr(e,t)},l}function qh(e){return e=tl(e),e.tag=3,e}function Yh(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(){Hh(t,l,i)}}var y=l.stateNode;y!==null&&typeof y.componentDidCatch=="function"&&(e.callback=function(){Hh(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 zb(e,t,l,i,s){if(l.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=l.alternate,t!==null&&fa(t,l,s,!0),l=Ht.current,l!==null){switch(l.tag){case 31:case 13:return ln===null?au():l.alternate===null&&We===0&&(We=3),l.flags&=-257,l.flags|=65536,l.lanes=s,i===Or?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([i]):t.add(i),Ko(e,i,s)),!1;case 22:return l.flags|=65536,i===Or?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)),Ko(e,i,s)),!1}throw Error(u(435,l.tag))}return Ko(e,i,s),au(),!1}if(Ae)return t=Ht.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=s,i!==Bs&&(e=Error(u(422),{cause:i}),si(Wt(e,l)))):(i!==Bs&&(t=Error(u(423),{cause:i}),si(Wt(t,l))),e=e.current.alternate,e.flags|=65536,s&=-s,e.lanes|=s,i=Wt(i,l),s=bo(e.stateNode,i,s),$s(e,s),We!==4&&(We=2)),!1;var f=Error(u(520),{cause:i});if(f=Wt(f,l),Ci===null?Ci=[f]:Ci.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=bo(l.stateNode,i,e),$s(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),Yh(s,e,l,i),$s(l,s),!1}l=l.return}while(l!==null);return!1}var vo=Error(u(461)),it=!1;function gt(e,t,l,i){t.child=e===null?Gd(t,null,l,i):Ml(t,e.child,l,i)}function Vh(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 kl(t),i=eo(e,t,l,y,f,s),v=to(),e!==null&&!it?(no(e,t,s),Dn(e,t,s)):(Ae&&v&&Ds(t),t.flags|=1,gt(e,t,i,s),t.child)}function Qh(e,t,l,i,s){if(e===null){var f=l.type;return typeof f=="function"&&!_s(f)&&f.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=f,Kh(e,t,f,i,s)):(e=Cr(l.type,null,i,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(f=e.child,!Ao(e,s)){var y=f.memoizedProps;if(l=l.compare,l=l!==null?l:ii,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 Kh(e,t,l,i,s){if(e!==null){var f=e.memoizedProps;if(ii(f,i)&&e.ref===t.ref)if(it=!1,t.pendingProps=i=f,Ao(e,s))(e.flags&131072)!==0&&(it=!0);else return t.lanes=e.lanes,Dn(e,t,s)}return So(e,t,l,i,s)}function Gh(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 Xh(e,t,f,l,i)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Rr(t,f!==null?f.cachePool:null),f!==null?$d(t,f):Js(),Fd(t);else return i=t.lanes=536870912,Xh(e,t,f!==null?f.baseLanes|l:l,l,i)}else f!==null?(Rr(t,f.cachePool),$d(t,f),al(),t.memoizedState=null):(e!==null&&Rr(t,null),Js(),al());return gt(e,t,s,l),t.child}function vi(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Xh(e,t,l,i,s){var f=Ks();return f=f===null?null:{parent:lt._currentValue,pool:f},t.memoizedState={baseLanes:l,cachePool:f},e!==null&&Rr(t,null),Js(),Fd(t),e!==null&&fa(e,t,i,!0),t.childLanes=s,null}function Zr(e,t){return t=Fr({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Zh(e,t,l){return Ml(t,e.child,null,l),e=Zr(t,t.pendingProps),e.flags|=2,qt(t),t.memoizedState=null,e}function kb(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=Zr(t,i),t.lanes=536870912,vi(null,e);if(Ps(t),(e=Ke)?(e=ip(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=kd(e),l.return=t,t.child=l,mt=t,Ke=null)):e=null,e===null)throw Pn(t);return t.lanes=536870912,null}return Zr(t,i)}var f=e.memoizedState;if(f!==null){var y=f.dehydrated;if(Ps(t),s)if(t.flags&256)t.flags&=-257,t=Zh(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||fa(e,t,l,!1),s=(l&e.childLanes)!==0,it||s){if(i=Ye,i!==null&&(y=Bf(i,l),y!==0&&y!==f.retryLane))throw f.retryLane=y,Tl(e,y),_t(i,e,y),vo;au(),t=Zh(e,t,l)}else e=f.treeContext,Ke=an(y.nextSibling),mt=t,Ae=!0,In=null,nn=!1,e!==null&&Od(t,e),t=Zr(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 $r(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 So(e,t,l,i,s){return kl(t),l=eo(e,t,l,i,void 0,s),i=to(),e!==null&&!it?(no(e,t,s),Dn(e,t,s)):(Ae&&i&&Ds(t),t.flags|=1,gt(e,t,l,s),t.child)}function $h(e,t,l,i,s,f){return kl(t),t.updateQueue=null,l=Id(t,i,l,s),Jd(e),i=to(),e!==null&&!it?(no(e,t,f),Dn(e,t,f)):(Ae&&i&&Ds(t),t.flags|=1,gt(e,t,l,f),t.child)}function Fh(e,t,l,i,s){if(kl(t),t.stateNode===null){var f=ua,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=xo,t.stateNode=f,f._reactInternals=t,f=t.stateNode,f.props=i,f.state=t.memoizedState,f.refs={},Xs(t),y=l.contextType,f.context=typeof y=="object"&&y!==null?pt(y):ua,f.state=t.memoizedState,y=l.getDerivedStateFromProps,typeof y=="function"&&(yo(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&&xo.enqueueReplaceState(f,f.state,null),pi(t,i,f,s),mi(),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=Ll(l,v);f.props=N;var L=f.context,Y=l.contextType;y=ua,typeof Y=="object"&&Y!==null&&(y=pt(Y));var G=l.getDerivedStateFromProps;Y=typeof G=="function"||typeof f.getSnapshotBeforeUpdate=="function",v=t.pendingProps!==v,Y||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(v||L!==y)&&Dh(t,f,i,y),el=!1;var B=t.memoizedState;f.state=B,pi(t,i,f,s),mi(),L=t.memoizedState,v||B!==L||el?(typeof G=="function"&&(yo(t,l,G,i),L=t.memoizedState),(N=el||Mh(t,l,N,i,B,L,y))?(Y||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,Zs(e,t),y=t.memoizedProps,Y=Ll(l,y),f.props=Y,G=t.pendingProps,B=f.context,L=l.contextType,N=ua,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||B!==N)&&Dh(t,f,i,N),el=!1,B=t.memoizedState,f.state=B,pi(t,i,f,s),mi();var H=t.memoizedState;y!==G||B!==H||el||e!==null&&e.dependencies!==null&&zr(e.dependencies)?(typeof v=="function"&&(yo(t,l,v,i),H=t.memoizedState),(Y=el||Mh(t,l,Y,i,B,H,N)||e!==null&&e.dependencies!==null&&zr(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&&B===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&B===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=H),f.props=i,f.state=H,f.context=N,i=Y):(typeof f.componentDidUpdate!="function"||y===e.memoizedProps&&B===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&B===e.memoizedState||(t.flags|=1024),i=!1)}return f=i,$r(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=Ml(t,e.child,null,s),t.child=Ml(t,null,l,s)):gt(e,t,l,s),t.memoizedState=f.state,e=t.child):e=Dn(e,t,s),e}function Jh(e,t,l,i){return Al(),t.flags|=256,gt(e,t,l,i),t.child}var Eo={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function wo(e){return{baseLanes:e,cachePool:Hd()}}function jo(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=Vt),e}function Ih(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=Ke)?(e=ip(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=kd(e),l.return=t,t.child=l,mt=t,Ke=null)):e=null,e===null)throw Pn(t);return rc(e)?t.lanes=32:t.lanes=536870912,null}var v=i.children;return i=i.fallback,s?(al(),s=t.mode,v=Fr({mode:"hidden",children:v},s),i=Cl(i,s,l,null),v.return=t,i.return=t,v.sibling=i,t.child=v,i=t.child,i.memoizedState=wo(l),i.childLanes=jo(e,y,l),t.memoizedState=Eo,vi(null,i)):(ll(t),No(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=To(e,t,l)):t.memoizedState!==null?(al(),t.child=e.child,t.flags|=128,t=null):(al(),v=i.fallback,s=t.mode,i=Fr({mode:"visible",children:i.children},s),v=Cl(v,s,l,null),v.flags|=2,i.return=t,v.return=t,i.sibling=v,t.child=i,Ml(t,e.child,null,l),i=t.child,i.memoizedState=wo(l),i.childLanes=jo(e,y,l),t.memoizedState=Eo,t=vi(null,i));else if(ll(t),rc(v)){if(y=v.nextSibling&&v.nextSibling.dataset,y)var L=y.dgst;y=L,i=Error(u(419)),i.stack="",i.digest=y,si({value:i,source:null,stack:null}),t=To(e,t,l)}else if(it||fa(e,t,l,!1),y=(l&e.childLanes)!==0,it||y){if(y=Ye,y!==null&&(i=Bf(y,l),i!==0&&i!==N.retryLane))throw N.retryLane=i,Tl(e,i),_t(y,e,i),vo;ic(v)||au(),t=To(e,t,l)}else ic(v)?(t.flags|=192,t.child=e.child,t=null):(e=N.treeContext,Ke=an(v.nextSibling),mt=t,Ae=!0,In=null,nn=!1,e!==null&&Od(t,e),t=No(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=Cl(v,s,l,null),v.flags|=2),v.return=t,i.return=t,i.sibling=v,t.child=i,vi(null,i),i=t.child,v=e.child.memoizedState,v===null?v=wo(l):(s=v.cachePool,s!==null?(N=lt._currentValue,s=s.parent!==N?{parent:N,pool:N}:s):s=Hd(),v={baseLanes:v.baseLanes|l,cachePool:s}),i.memoizedState=v,i.childLanes=jo(e,y,l),t.memoizedState=Eo,vi(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 No(e,t){return t=Fr({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Fr(e,t){return e=Ut(22,e,null,t),e.lanes=0,e}function To(e,t,l){return Ml(t,e.child,null,l),e=No(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ph(e,t,l){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),qs(e.return,t,l)}function Co(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 Wh(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,w(tt,y),gt(e,t,i,l),i=Ae?ui:0,!v&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ph(e,l,t);else if(e.tag===19)Ph(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&&Br(e)===null&&(s=l),l=l.sibling;l=s,l===null?(s=t.child,t.child=null):(s=l.sibling,l.sibling=null),Co(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&&Br(e)===null){t.child=s;break}e=s.sibling,s.sibling=l,l=s,s=e}Co(t,!0,l,null,f,i);break;case"together":Co(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(fa(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 Ao(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&zr(e)))}function Rb(e,t,l){switch(t.tag){case 3:Ze(t,t.stateNode.containerInfo),Wn(t,lt,e.memoizedState.cache),Al();break;case 27:case 5:Ft(t);break;case 4:Ze(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,Ps(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?Ih(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||(fa(e,t,l,!1),i=(l&t.childLanes)!==0),s){if(i)return Wh(e,t,l);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),w(tt,tt.current),i)break;return null;case 22:return t.lanes=0,Gh(e,t,l,t.pendingProps);case 24:Wn(t,lt,e.memoizedState.cache)}return Dn(e,t,l)}function em(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)it=!0;else{if(!Ao(e,l)&&(t.flags&128)===0)return it=!1,Rb(e,t,l);it=(e.flags&131072)!==0}else it=!1,Ae&&(t.flags&1048576)!==0&&_d(t,ui,t.index);switch(t.lanes=0,t.tag){case 16:e:{var i=t.pendingProps;if(e=_l(t.elementType),t.type=e,typeof e=="function")_s(e)?(i=Ll(e,i),t.tag=1,t=Fh(null,t,e,i,l)):(t.tag=0,t=So(null,t,e,i,l));else{if(e!=null){var s=e.$$typeof;if(s===I){t.tag=11,t=Vh(null,t,e,i,l);break e}else if(s===F){t.tag=14,t=Qh(null,t,e,i,l);break e}}throw t=ae(e)||e,Error(u(306,t,""))}}return t;case 0:return So(e,t,t.type,t.pendingProps,l);case 1:return i=t.type,s=Ll(i,t.pendingProps),Fh(e,t,i,s,l);case 3:e:{if(Ze(t,t.stateNode.containerInfo),e===null)throw Error(u(387));i=t.pendingProps;var f=t.memoizedState;s=f.element,Zs(e,t),pi(t,i,null,l);var y=t.memoizedState;if(i=y.cache,Wn(t,lt,i),i!==f.cache&&Ys(t,[lt],l,!0),mi(),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=Jh(e,t,i,l);break e}else if(i!==s){s=Wt(Error(u(424)),t),si(s),t=Jh(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(Ke=an(e.firstChild),mt=t,Ae=!0,In=null,nn=!0,l=Gd(t,null,i,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Al(),i===s){t=Dn(e,t,l);break e}gt(e,t,i,l)}t=t.child}return t;case 26:return $r(e,t),e===null?(l=fp(t.type,null,t.pendingProps,null))?t.memoizedState=l:Ae||(l=t.type,e=t.pendingProps,i=fu(ue.current).createElement(l),i[ht]=t,i[Tt]=e,yt(i,l,e),ft(i),t.stateNode=i):t.memoizedState=fp(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ft(t),e===null&&Ae&&(i=t.stateNode=sp(t.type,t.pendingProps,ue.current),mt=t,nn=!0,s=Ke,dl(t.type)?(uc=s,Ke=an(i.firstChild)):Ke=s),gt(e,t,t.pendingProps.children,l),$r(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ae&&((s=i=Ke)&&(i=uv(i,t.type,t.pendingProps,nn),i!==null?(t.stateNode=i,mt=t,Ke=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,nc(s,f)?i=null:y!==null&&nc(s,y)&&(t.flags|=32),t.memoizedState!==null&&(s=eo(e,t,Eb,null,null,l),Di._currentValue=s),$r(e,t),gt(e,t,i,l),t.child;case 6:return e===null&&Ae&&((e=l=Ke)&&(l=sv(l,t.pendingProps,nn),l!==null?(t.stateNode=l,mt=t,Ke=null,e=!0):e=!1),e||Pn(t)),null;case 13:return Ih(e,t,l);case 4:return Ze(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Ml(t,null,i,l):gt(e,t,i,l),t.child;case 11:return Vh(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,kl(t),s=pt(s),i=i(s),t.flags|=1,gt(e,t,i,l),t.child;case 14:return Qh(e,t,t.type,t.pendingProps,l);case 15:return Kh(e,t,t.type,t.pendingProps,l);case 19:return Wh(e,t,l);case 31:return kb(e,t,l);case 22:return Gh(e,t,l,t.pendingProps);case 24:return kl(t),i=pt(lt),e===null?(s=Ks(),s===null&&(s=Ye,f=Vs(),s.pooledCache=f,f.refCount++,f!==null&&(s.pooledCacheLanes|=l),s=f),t.memoizedState={parent:i,cache:s},Xs(t),Wn(t,lt,s)):((e.lanes&l)!==0&&(Zs(e,t),pi(t,null,null,l),mi()),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&&Ys(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 zo(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(Cm())e.flags|=8192;else throw Ol=Or,Gs}else e.flags&=-16777217}function tm(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!gp(t))if(Cm())e.flags|=8192;else throw Ol=Or,Gs}function Jr(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Mf():536870912,e.lanes|=t,wa|=t)}function Si(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 Ge(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 _b(e,t,l){var i=t.pendingProps;switch(Ls(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ge(t),null;case 1:return Ge(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)&&(ca(t)?Ln(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Us())),Ge(t),null;case 26:var s=t.type,f=t.memoizedState;return e===null?(Ln(t),f!==null?(Ge(t),tm(t,f)):(Ge(t),zo(t,s,null,i,l))):f?f!==e.memoizedState?(Ln(t),Ge(t),tm(t,f)):(Ge(t),t.flags&=-16777217):(e=e.memoizedProps,e!==i&&Ln(t),Ge(t),zo(t,s,e,i,l)),null;case 27:if(wn(t),l=ue.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 Ge(t),null}e=ee.current,ca(t)?Md(t):(e=sp(s,i,l),t.stateNode=e,Ln(t))}return Ge(t),null;case 5:if(wn(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 Ge(t),null}if(f=ee.current,ca(t))Md(t);else{var y=fu(ue.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 Ge(t),zo(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=ue.current,ca(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||Im(e.nodeValue,l)),e||Pn(t,!0)}else e=fu(e).createTextNode(i),e[ht]=t,t.stateNode=e}return Ge(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(i=ca(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 Al(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ge(t),e=!1}else l=Us(),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 Ge(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(s=ca(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 Al(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ge(t),s=!1}else s=Us(),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),Jr(t,t.updateQueue),Ge(t),null);case 4:return Le(),e===null&&Io(t.stateNode.containerInfo),Ge(t),null;case 10:return _n(t.type),Ge(t),null;case 19:if(V(tt),i=t.memoizedState,i===null)return Ge(t),null;if(s=(t.flags&128)!==0,f=i.rendering,f===null)if(s)Si(i,!1);else{if(We!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(f=Br(e),f!==null){for(t.flags|=128,Si(i,!1),e=f.updateQueue,t.updateQueue=e,Jr(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)zd(l,e),l=l.sibling;return w(tt,tt.current&1|2),Ae&&kn(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&St()>tu&&(t.flags|=128,s=!0,Si(i,!1),t.lanes=4194304)}else{if(!s)if(e=Br(f),e!==null){if(t.flags|=128,s=!0,e=e.updateQueue,t.updateQueue=e,Jr(t,e),Si(i,!0),i.tail===null&&i.tailMode==="hidden"&&!f.alternate&&!Ae)return Ge(t),null}else 2*St()-i.renderingStartTime>tu&&l!==536870912&&(t.flags|=128,s=!0,Si(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,w(tt,s?l&1|2:l&1),Ae&&kn(t,i.treeForkCount),e):(Ge(t),null);case 22:case 23:return qt(t),Is(),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&&(Ge(t),t.subtreeFlags&6&&(t.flags|=8192)):Ge(t),l=t.updateQueue,l!==null&&Jr(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&&V(Rl),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),_n(lt),Ge(t),null;case 25:return null;case 30:return null}throw Error(u(156,t.tag))}function Ob(e,t){switch(Ls(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 wn(t),null;case 31:if(t.memoizedState!==null){if(qt(t),t.alternate===null)throw Error(u(340));Al()}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));Al()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return V(tt),null;case 4:return Le(),null;case 10:return _n(t.type),null;case 22:case 23:return qt(t),Is(),e!==null&&V(Rl),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 nm(e,t){switch(Ls(t),t.tag){case 3:_n(lt),Le();break;case 26:case 27:case 5:wn(t);break;case 4:Le();break;case 31:t.memoizedState!==null&&qt(t);break;case 13:qt(t);break;case 19:V(tt);break;case 10:_n(t.type);break;case 22:case 23:qt(t),Is(),e!==null&&V(Rl);break;case 24:_n(lt)}}function Ei(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(Y){De(s,N,Y)}}}i=i.next}while(i!==f)}}catch(Y){De(t,t.return,Y)}}function lm(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Zd(t,l)}catch(i){De(e,e.return,i)}}}function am(e,t,l){l.props=Ll(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(i){De(e,t,i)}}function wi(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 im(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 ko(e,t,l){try{var i=e.stateNode;tv(i,e.type,l,t),i[Tt]=t}catch(s){De(e,e.return,s)}}function rm(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&dl(e.type)||e.tag===4}function Ro(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||rm(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 _o(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(_o(e,t,l),e=e.sibling;e!==null;)_o(e,t,l),e=e.sibling}function Ir(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(Ir(e,t,l),e=e.sibling;e!==null;)Ir(e,t,l),e=e.sibling}function um(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,Oo=!1,sm=typeof WeakSet=="function"?WeakSet:Set,dt=null;function Mb(e,t){if(e=e.containerInfo,ec=xu,e=vd(e),Ns(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,Y=0,G=e,B=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;)B=G,G=H;for(;;){if(G===e)break t;if(B===l&&++L===s&&(v=y),B===f&&++Y===i&&(N=y),(H=G.nextSibling)!==null)break;G=B,B=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(tc={focusedElem:e,selectionRange:l},xu=!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 le=Ll(l.type,s);e=i.getSnapshotBeforeUpdate(le,f),i.__reactInternalSnapshotBeforeUpdate=e}catch(fe){De(l,l.return,fe)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)ac(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":ac(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 om(e,t,l){var i=l.flags;switch(l.tag){case 0:case 11:case 15:Hn(e,l),i&4&&Ei(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=Ll(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(s,t,e.__reactInternalSnapshotBeforeUpdate)}catch(y){De(l,l.return,y)}}i&64&&lm(l),i&512&&wi(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{Zd(e,t)}catch(y){De(l,l.return,y)}}break;case 27:t===null&&i&4&&um(l);case 26:case 5:Hn(e,l),t===null&&i&4&&im(l),i&512&&wi(l,l.return);break;case 12:Hn(e,l);break;case 31:Hn(e,l),i&4&&dm(e,l);break;case 13:Hn(e,l),i&4&&hm(e,l),i&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=Qb.bind(null,l),ov(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 cm(e){var t=e.alternate;t!==null&&(e.alternate=null,cm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ss(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 $e=null,At=!1;function Un(e,t,l){for(l=l.child;l!==null;)fm(e,t,l),l=l.sibling}function fm(e,t,l){if(ot&&typeof ot.onCommitFiberUnmount=="function")try{ot.onCommitFiberUnmount(Et,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=$e,s=At;dl(l.type)&&($e=l.stateNode,At=!1),Un(e,t,l),_i(l.stateNode),$e=i,At=s;break;case 5:rt||xn(l,t);case 6:if(i=$e,s=At,$e=null,Un(e,t,l),$e=i,At=s,$e!==null)if(At)try{($e.nodeType===9?$e.body:$e.nodeName==="HTML"?$e.ownerDocument.body:$e).removeChild(l.stateNode)}catch(f){De(l,t,f)}else try{$e.removeChild(l.stateNode)}catch(f){De(l,t,f)}break;case 18:$e!==null&&(At?(e=$e,lp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),Ra(e)):lp($e,l.stateNode));break;case 4:i=$e,s=At,$e=l.stateNode.containerInfo,At=!0,Un(e,t,l),$e=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"&&am(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 dm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ra(e)}catch(l){De(t,t.return,l)}}}function hm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ra(e)}catch(l){De(t,t.return,l)}}function Db(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new sm),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new sm),t;default:throw Error(u(435,e.tag))}}function Pr(e,t){var l=Db(e);t.forEach(function(i){if(!l.has(i)){l.add(i);var s=Kb.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)){$e=v.stateNode,At=!1;break e}break;case 5:$e=v.stateNode,At=!1;break e;case 3:case 4:$e=v.stateNode.containerInfo,At=!0;break e}v=v.return}if($e===null)throw Error(u(160));fm(f,y,s),$e=null,At=!1,f=s.alternate,f!==null&&(f.return=null),s.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)mm(t,e),t=t.sibling}var dn=null;function mm(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),Ei(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[Ja]||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=mp("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=mp("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 pp(s,e.type,e.stateNode);else e.stateNode=hp(s,i,e.memoizedProps);else f!==i?(f===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):f.count--,i===null?pp(s,e.type,e.stateNode):hp(s,i,e.memoizedProps)):i===null&&e.stateNode!==null&&ko(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&&ko(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{ea(s,"")}catch(le){De(e,e.return,le)}}i&4&&e.stateNode!=null&&(s=e.memoizedProps,ko(e,s,l!==null?l.memoizedProps:s)),i&1024&&(Oo=!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(le){De(e,e.return,le)}}break;case 3:if(mu=null,s=dn,dn=du(t.containerInfo),zt(t,e),dn=s,kt(e),i&4&&l!==null&&l.memoizedState.isDehydrated)try{Ra(t.containerInfo)}catch(le){De(e,e.return,le)}Oo&&(Oo=!1,pm(e));break;case 4:i=dn,dn=du(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,Pr(e,i)));break;case 13:zt(t,e),kt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(eu=St()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Pr(e,i)));break;case 22:s=e.memoizedState!==null;var N=l!==null&&l.memoizedState!==null,L=Bn,Y=rt;if(Bn=L||s,rt=Y||N,zt(t,e),rt=Y,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||Bl(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,B=G!=null&&G.hasOwnProperty("display")?G.display:null;v.style.display=B==null||typeof B=="boolean"?"":(""+B).trim()}}catch(le){De(N,N.return,le)}}}else if(t.tag===6){if(l===null){N=t;try{N.stateNode.nodeValue=s?"":N.memoizedProps}catch(le){De(N,N.return,le)}}}else if(t.tag===18){if(l===null){N=t;try{var H=N.stateNode;s?ap(H,!0):ap(N.stateNode,!1)}catch(le){De(N,N.return,le)}}}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,Pr(e,l))));break;case 19:zt(t,e),kt(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Pr(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(rm(i)){l=i;break}i=i.return}if(l==null)throw Error(u(160));switch(l.tag){case 27:var s=l.stateNode,f=Ro(e);Ir(e,f,s);break;case 5:var y=l.stateNode;l.flags&32&&(ea(y,""),l.flags&=-33);var v=Ro(e);Ir(e,v,y);break;case 3:case 4:var N=l.stateNode.containerInfo,L=Ro(e);_o(e,L,N);break;default:throw Error(u(161))}}catch(Y){De(e,e.return,Y)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function pm(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;pm(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;)om(e,t.alternate,t),t=t.sibling}function Bl(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),Bl(t);break;case 1:xn(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&am(t,t.return,l),Bl(t);break;case 27:_i(t.stateNode);case 26:case 5:xn(t,t.return),Bl(t);break;case 22:t.memoizedState===null&&Bl(t);break;case 30:Bl(t);break;default:Bl(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),Ei(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++)Xd(N[s],v)}catch(L){De(i,i.return,L)}}l&&y&64&&lm(f),wi(f,f.return);break;case 27:um(f);case 26:case 5:qn(s,f,l),l&&i===null&&y&4&&im(f),wi(f,f.return);break;case 12:qn(s,f,l);break;case 31:qn(s,f,l),l&&y&4&&dm(s,f);break;case 13:qn(s,f,l),l&&y&4&&hm(s,f);break;case 22:f.memoizedState===null&&qn(s,f,l),wi(f,f.return);break;case 30:break;default:qn(s,f,l)}t=t.sibling}}function Mo(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&&oi(l))}function Do(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&oi(e))}function hn(e,t,l,i){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)gm(e,t,l,i),t=t.sibling}function gm(e,t,l,i){var s=t.flags;switch(t.tag){case 0:case 11:case 15:hn(e,t,l,i),s&2048&&Ei(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&&oi(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):ji(e,t):f._visibility&2?hn(e,t,l,i):(f._visibility|=2,va(e,t,l,i,(t.subtreeFlags&10256)!==0||!1)),s&2048&&Mo(y,t);break;case 24:hn(e,t,l,i),s&2048&&Do(t.alternate,t);break;default:hn(e,t,l,i)}}function va(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:va(f,y,v,N,s),Ei(8,y);break;case 23:break;case 22:var Y=y.stateNode;y.memoizedState!==null?Y._visibility&2?va(f,y,v,N,s):ji(f,y):(Y._visibility|=2,va(f,y,v,N,s)),s&&L&2048&&Mo(y.alternate,y);break;case 24:va(f,y,v,N,s),s&&L&2048&&Do(y.alternate,y);break;default:va(f,y,v,N,s)}t=t.sibling}}function ji(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:ji(l,i),s&2048&&Mo(i.alternate,i);break;case 24:ji(l,i),s&2048&&Do(i.alternate,i);break;default:ji(l,i)}t=t.sibling}}var Ni=8192;function Sa(e,t,l){if(e.subtreeFlags&Ni)for(e=e.child;e!==null;)ym(e,t,l),e=e.sibling}function ym(e,t,l){switch(e.tag){case 26:Sa(e,t,l),e.flags&Ni&&e.memoizedState!==null&&Sv(l,dn,e.memoizedState,e.memoizedProps);break;case 5:Sa(e,t,l);break;case 3:case 4:var i=dn;dn=du(e.stateNode.containerInfo),Sa(e,t,l),dn=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=Ni,Ni=16777216,Sa(e,t,l),Ni=i):Sa(e,t,l));break;default:Sa(e,t,l)}}function xm(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 Ti(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,vm(i,e)}xm(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)bm(e),e=e.sibling}function bm(e){switch(e.tag){case 0:case 11:case 15:Ti(e),e.flags&2048&&il(9,e,e.return);break;case 3:Ti(e);break;case 12:Ti(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Wr(e)):Ti(e);break;default:Ti(e)}}function Wr(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,vm(i,e)}xm(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:il(8,t,t.return),Wr(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,Wr(t));break;default:Wr(t)}e=e.sibling}}function vm(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:oi(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(cm(i),i===l){dt=null;break e}if(s!==null){s.return=f,dt=s;break e}dt=f}}}var Lb={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}},Bb=typeof WeakMap=="function"?WeakMap:Map,Re=0,Ye=null,we=null,Te=0,Me=0,Yt=null,rl=!1,Ea=!1,Lo=!1,Yn=0,We=0,ul=0,Ul=0,Bo=0,Vt=0,wa=0,Ci=null,Rt=null,Uo=!1,eu=0,Sm=0,tu=1/0,nu=null,sl=null,ct=0,ol=null,ja=null,Vn=0,Ho=0,qo=null,Em=null,Ai=0,Yo=null;function Qt(){return(Re&2)!==0&&Te!==0?Te&-Te:M.T!==null?Zo():Uf()}function wm(){if(Vt===0)if((Te&536870912)===0||Ae){var e=cr;cr<<=1,(cr&3932160)===0&&(cr=262144),Vt=e}else Vt=536870912;return e=Ht.current,e!==null&&(e.flags|=32),Vt}function _t(e,t,l){(e===Ye&&(Me===2||Me===9)||e.cancelPendingCommit!==null)&&(Na(e,0),cl(e,Te,Vt,!1)),Fa(e,l),((Re&2)===0||e!==Ye)&&(e===Ye&&((Re&2)===0&&(Ul|=l),We===4&&cl(e,Te,Vt,!1)),bn(e))}function jm(e,t,l){if((Re&6)!==0)throw Error(u(327));var i=!l&&(t&127)===0&&(t&e.expiredLanes)===0||$a(e,t),s=i?qb(e,t):Qo(e,t,!0),f=i;do{if(s===0){Ea&&!i&&cl(e,t,0,!1);break}else{if(l=e.current.alternate,f&&!Ub(l)){s=Qo(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=Ci;var N=v.current.memoizedState.isDehydrated;if(N&&(Na(v,y).flags|=256),y=Qo(v,y,!1),y!==2){if(Lo&&!N){v.errorRecoveryDisabledLanes|=f,Ul|=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){Na(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=eu+300-St(),10<s)){if(cl(i,t,Vt,!rl),dr(i,0,!0)!==0)break e;Vn=t,i.timeoutHandle=tp(Nm.bind(null,i,l,Rt,nu,Uo,t,Vt,Ul,wa,rl,f,"Throttled",-0,0),s);break e}Nm(i,l,Rt,nu,Uo,t,Vt,Ul,wa,rl,f,null,-0,0)}}break}while(!0);bn(e)}function Nm(e,t,l,i,s,f,y,v,N,L,Y,G,B,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},ym(t,f,G);var le=(f&62914560)===f?eu-St():(f&4194048)===f?Sm-St():0;if(le=Ev(G,le),le!==null){Vn=f,e.cancelPendingCommit=le(Om.bind(null,e,t,f,l,i,s,y,v,N,Y,G,null,B,H)),cl(e,f,y,!L);return}}Om(e,t,f,l,i,s,y,v,N)}function Ub(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&=~Bo,t&=~Ul,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&&Df(e,l,t)}function lu(){return(Re&6)===0?(zi(0),!1):!0}function Vo(){if(we!==null){if(Me===0)var e=we.return;else e=we,Rn=zl=null,lo(e),pa=null,fi=0,e=we;for(;e!==null;)nm(e.alternate,e),e=e.return;we=null}}function Na(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,av(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),Vn=0,Vo(),Ye=e,we=l=zn(e.current,null),Te=t,Me=0,Yt=null,rl=!1,Ea=$a(e,t),Lo=!1,wa=Vt=Bo=Ul=ul=We=0,Rt=Ci=null,Uo=!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,jr(),l}function Tm(e,t){xe=null,M.H=bi,t===ma||t===_r?(t=Vd(),Me=3):t===Gs?(t=Vd(),Me=4):Me=t===vo?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Yt=t,we===null&&(We=1,Xr(e,Wt(t,e.current)))}function Cm(){var e=Ht.current;return e===null?!0:(Te&4194048)===Te?ln===null:(Te&62914560)===Te||(Te&536870912)!==0?e===ln:!1}function Am(){var e=M.H;return M.H=bi,e===null?bi:e}function zm(){var e=M.A;return M.A=Lb,e}function au(){We=4,rl||(Te&4194048)!==Te&&Ht.current!==null||(Ea=!0),(ul&134217727)===0&&(Ul&134217727)===0||Ye===null||cl(Ye,Te,Vt,!1)}function Qo(e,t,l){var i=Re;Re|=2;var s=Am(),f=zm();(Ye!==e||Te!==t)&&(nu=null,Na(e,t)),t=!1;var y=We;e:do try{if(Me!==0&&we!==null){var v=we,N=Yt;switch(Me){case 8:Vo(),y=6;break e;case 3:case 2:case 9:case 6:Ht.current===null&&(t=!0);var L=Me;if(Me=0,Yt=null,Ta(e,v,N,L),l&&Ea){y=0;break e}break;default:L=Me,Me=0,Yt=null,Ta(e,v,N,L)}}Hb(),y=We;break}catch(Y){Tm(e,Y)}while(!0);return t&&e.shellSuspendCounter++,Rn=zl=null,Re=i,M.H=s,M.A=f,we===null&&(Ye=null,Te=0,jr()),y}function Hb(){for(;we!==null;)km(we)}function qb(e,t){var l=Re;Re|=2;var i=Am(),s=zm();Ye!==e||Te!==t?(nu=null,tu=St()+500,Na(e,t)):Ea=$a(e,t);e:do try{if(Me!==0&&we!==null){t=we;var f=Yt;t:switch(Me){case 1:Me=0,Yt=null,Ta(e,t,f,1);break;case 2:case 9:if(qd(f)){Me=0,Yt=null,Rm(t);break}t=function(){Me!==2&&Me!==9||Ye!==e||(Me=7),bn(e)},f.then(t,t);break e;case 3:Me=7;break e;case 4:Me=5;break e;case 7:qd(f)?(Me=0,Yt=null,Rm(t)):(Me=0,Yt=null,Ta(e,t,f,7));break;case 5:var y=null;switch(we.tag){case 26:y=we.memoizedState;case 5:case 27:var v=we;if(y?gp(y):v.stateNode.complete){Me=0,Yt=null;var N=v.sibling;if(N!==null)we=N;else{var L=v.return;L!==null?(we=L,iu(L)):we=null}break t}}Me=0,Yt=null,Ta(e,t,f,5);break;case 6:Me=0,Yt=null,Ta(e,t,f,6);break;case 8:Vo(),We=6;break e;default:throw Error(u(462))}}Yb();break}catch(Y){Tm(e,Y)}while(!0);return Rn=zl=null,M.H=i,M.A=s,Re=l,we!==null?0:(Ye=null,Te=0,jr(),We)}function Yb(){for(;we!==null&&!ts();)km(we)}function km(e){var t=em(e.alternate,e,Yn);e.memoizedProps=e.pendingProps,t===null?iu(e):we=t}function Rm(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=$h(l,t,t.pendingProps,t.type,void 0,Te);break;case 11:t=$h(l,t,t.pendingProps,t.type.render,t.ref,Te);break;case 5:lo(t);default:nm(l,t),t=we=zd(t,Yn),t=em(l,t,Yn)}e.memoizedProps=e.pendingProps,t===null?iu(e):we=t}function Ta(e,t,l,i){Rn=zl=null,lo(t),pa=null,fi=0;var s=t.return;try{if(zb(e,s,t,l,Te)){We=1,Xr(e,Wt(l,e.current)),we=null;return}}catch(f){if(s!==null)throw we=s,f;We=1,Xr(e,Wt(l,e.current)),we=null;return}t.flags&32768?(Ae||i===1?e=!0:Ea||(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))),_m(t,e)):iu(t)}function iu(e){var t=e;do{if((t.flags&32768)!==0){_m(t,rl);return}e=t.return;var l=_b(t.alternate,t,Yn);if(l!==null){we=l;return}if(t=t.sibling,t!==null){we=t;return}we=t=e}while(t!==null);We===0&&(We=5)}function _m(e,t){do{var l=Ob(e.alternate,e);if(l!==null){l.flags&=32767,we=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){we=e;return}we=e=l}while(e!==null);We=6,we=null}function Om(e,t,l,i,s,f,y,v,N){e.cancelPendingCommit=null;do ru();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|=ks,vx(e,l,f,y,v,N),e===Ye&&(we=Ye=null,Te=0),ja=t,ol=e,Vn=l,Ho=f,qo=s,Em=i,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Gb(he,function(){return Um(),null})):(e.callbackNode=null,e.callbackPriority=0),i=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||i){i=M.T,M.T=null,s=Z.p,Z.p=2,y=Re,Re|=4;try{Mb(e,t,l)}finally{Re=y,Z.p=s,M.T=i}}ct=1,Mm(),Dm(),Lm()}}function Mm(){if(ct===1){ct=0;var e=ol,t=ja,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=M.T,M.T=null;var i=Z.p;Z.p=2;var s=Re;Re|=4;try{mm(t,e);var f=tc,y=vd(e.containerInfo),v=f.focusedElem,N=f.selectionRange;if(y!==v&&v&&v.ownerDocument&&bd(v.ownerDocument.documentElement,v)){if(N!==null&&Ns(v)){var L=N.start,Y=N.end;if(Y===void 0&&(Y=L),"selectionStart"in v)v.selectionStart=L,v.selectionEnd=Math.min(Y,v.value.length);else{var G=v.ownerDocument||document,B=G&&G.defaultView||window;if(B.getSelection){var H=B.getSelection(),le=v.textContent.length,fe=Math.min(N.start,le),He=N.end===void 0?fe:Math.min(N.end,le);!H.extend&&fe>He&&(y=He,He=fe,fe=y);var _=xd(v,fe),C=xd(v,He);if(_&&C&&(H.rangeCount!==1||H.anchorNode!==_.node||H.anchorOffset!==_.offset||H.focusNode!==C.node||H.focusOffset!==C.offset)){var D=G.createRange();D.setStart(_.node,_.offset),H.removeAllRanges(),fe>He?(H.addRange(D),H.extend(C.node,C.offset)):(D.setEnd(C.node,C.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}}xu=!!ec,tc=ec=null}finally{Re=s,Z.p=i,M.T=l}}e.current=t,ct=2}}function Dm(){if(ct===2){ct=0;var e=ol,t=ja,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=M.T,M.T=null;var i=Z.p;Z.p=2;var s=Re;Re|=4;try{om(e,t.alternate,t)}finally{Re=s,Z.p=i,M.T=l}}ct=3}}function Lm(){if(ct===4||ct===3){ct=0,ns();var e=ol,t=ja,l=Vn,i=Em;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?ct=5:(ct=0,ja=ol=null,Bm(e,e.pendingLanes));var s=e.pendingLanes;if(s===0&&(sl=null),rs(l),t=t.stateNode,ot&&typeof ot.onCommitFiberRoot=="function")try{ot.onCommitFiberRoot(Et,t,void 0,(t.current.flags&128)===128)}catch{}if(i!==null){t=M.T,s=Z.p,Z.p=2,M.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{M.T=t,Z.p=s}}(Vn&3)!==0&&ru(),bn(e),s=e.pendingLanes,(l&261930)!==0&&(s&42)!==0?e===Yo?Ai++:(Ai=0,Yo=e):Ai=0,zi(0)}}function Bm(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,oi(t)))}function ru(){return Mm(),Dm(),Lm(),Um()}function Um(){if(ct!==5)return!1;var e=ol,t=Ho;Ho=0;var l=rs(Vn),i=M.T,s=Z.p;try{Z.p=32>l?32:l,M.T=null,l=qo,qo=null;var f=ol,y=Vn;if(ct=0,ja=ol=null,Vn=0,(Re&6)!==0)throw Error(u(331));var v=Re;if(Re|=4,bm(f.current),gm(f,f.current,y,l),Re=v,zi(0,!1),ot&&typeof ot.onPostCommitFiberRoot=="function")try{ot.onPostCommitFiberRoot(Et,f)}catch{}return!0}finally{Z.p=s,M.T=i,Bm(e,t)}}function Hm(e,t,l){t=Wt(l,t),t=bo(e.stateNode,t,2),e=nl(e,t,2),e!==null&&(Fa(e,2),bn(e))}function De(e,t,l){if(e.tag===3)Hm(e,e,l);else for(;t!==null;){if(t.tag===3){Hm(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&&(Yh(l,i,t,e),Fa(i,2),bn(i));break}}t=t.return}}function Ko(e,t,l){var i=e.pingCache;if(i===null){i=e.pingCache=new Bb;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)||(Lo=!0,s.add(l),e=Vb.bind(null,e,t,l),t.then(e,e))}function Vb(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()-eu?(Re&2)===0&&Na(e,0):Bo|=l,wa===Te&&(wa=0)),bn(e)}function qm(e,t){t===0&&(t=Mf()),e=Tl(e,t),e!==null&&(Fa(e,t),bn(e))}function Qb(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),qm(e,l)}function Kb(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 Gb(e,t){return Zl(e,t)}var uu=null,Ca=null,Go=!1,su=!1,Xo=!1,fl=0;function bn(e){e!==Ca&&e.next===null&&(Ca===null?uu=Ca=e:Ca=Ca.next=e),su=!0,Go||(Go=!0,Zb())}function zi(e,t){if(!Xo&&su){Xo=!0;do for(var l=!1,i=uu;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,Km(i,f))}else f=Te,f=dr(i,i===Ye?f:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(f&3)===0||$a(i,f)||(l=!0,Km(i,f));i=i.next}while(l);Xo=!1}}function Xb(){Ym()}function Ym(){su=Go=!1;var e=0;fl!==0&&lv()&&(e=fl);for(var t=St(),l=null,i=uu;i!==null;){var s=i.next,f=Vm(i,t);f===0?(i.next=null,l===null?uu=s:l.next=s,s===null&&(Ca=l)):(l=i,(e!==0||(f&3)!==0)&&(su=!0)),i=s}ct!==0&&ct!==5||zi(e),fl!==0&&(fl=0)}function Vm(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]=bx(v,t)):N<=t&&(e.expiredLanes|=v),f&=~v}if(t=Ye,l=Te,l=dr(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,l===0||e===t&&(Me===2||Me===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&Za(i),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||$a(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(i!==null&&Za(i),rs(l)){case 2:case 8:l=P;break;case 32:l=he;break;case 268435456:l=Oe;break;default:l=he}return i=Qm.bind(null,e),l=Zl(l,i),e.callbackPriority=t,e.callbackNode=l,t}return i!==null&&i!==null&&Za(i),e.callbackPriority=2,e.callbackNode=null,2}function Qm(e,t){if(ct!==0&&ct!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(ru()&&e.callbackNode!==l)return null;var i=Te;return i=dr(e,e===Ye?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(jm(e,i,t),Vm(e,St()),e.callbackNode!=null&&e.callbackNode===l?Qm.bind(null,e):null)}function Km(e,t){if(ru())return null;jm(e,t,!0)}function Zb(){iv(function(){(Re&6)!==0?Zl(Q,Xb):Ym()})}function Zo(){if(fl===0){var e=da;e===0&&(e=or,or<<=1,(or&261888)===0&&(or=256)),fl=e}return fl}function Gm(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:gr(""+e)}function Xm(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 $b(e,t,l,i,s){if(t==="submit"&&l&&l.stateNode===s){var f=Gm((s[Tt]||null).action),y=i.submitter;y&&(t=(t=y[Tt]||null)?Gm(t.formAction):y.getAttribute("formAction"),t!==null&&(f=t,y=null));var v=new vr("action","action",null,i,s);e.push({event:v,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(fl!==0){var N=y?Xm(s,y):new FormData(s);ho(l,{pending:!0,data:N,method:s.method,action:f},null,N)}}else typeof f=="function"&&(v.preventDefault(),N=y?Xm(s,y):new FormData(s),ho(l,{pending:!0,data:N,method:s.method,action:f},f,N))},currentTarget:s}]})}}for(var $o=0;$o<zs.length;$o++){var Fo=zs[$o],Fb=Fo.toLowerCase(),Jb=Fo[0].toUpperCase()+Fo.slice(1);fn(Fb,"on"+Jb)}fn(wd,"onAnimationEnd"),fn(jd,"onAnimationIteration"),fn(Nd,"onAnimationStart"),fn("dblclick","onDoubleClick"),fn("focusin","onFocus"),fn("focusout","onBlur"),fn(db,"onTransitionRun"),fn(hb,"onTransitionStart"),fn(mb,"onTransitionCancel"),fn(Td,"onTransitionEnd"),Pl("onMouseEnter",["mouseout","mouseover"]),Pl("onMouseLeave",["mouseout","mouseover"]),Pl("onPointerEnter",["pointerout","pointerover"]),Pl("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 ki="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(" "),Ib=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ki));function Zm(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(Y){wr(Y)}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(Y){wr(Y)}s.currentTarget=null,f=N}}}}function je(e,t){var l=t[us];l===void 0&&(l=t[us]=new Set);var i=e+"__bubble";l.has(i)||($m(t,e,2,!1),l.add(i))}function Jo(e,t,l){var i=0;t&&(i|=4),$m(l,e,i,t)}var ou="_reactListening"+Math.random().toString(36).slice(2);function Io(e){if(!e[ou]){e[ou]=!0,Yf.forEach(function(l){l!=="selectionchange"&&(Ib.has(l)||Jo(l,!1,e),Jo(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ou]||(t[ou]=!0,Jo("selectionchange",!1,t))}}function $m(e,t,l,i){switch(wp(t)){case 2:var s=Nv;break;case 8:s=Tv;break;default:s=dc}l=s.bind(null,t,l,e),s=void 0,!gs||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 Po(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=Fl(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}Wf(function(){var L=f,Y=ms(l),G=[];e:{var B=Cd.get(e);if(B!==void 0){var H=vr,le=e;switch(e){case"keypress":if(xr(l)===0)break e;case"keydown":case"keyup":H=Kx;break;case"focusin":le="focus",H=vs;break;case"focusout":le="blur",H=vs;break;case"beforeblur":case"afterblur":H=vs;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=nd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":H=_x;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":H=Zx;break;case wd:case jd:case Nd:H=Dx;break;case Td:H=Fx;break;case"scroll":case"scrollend":H=kx;break;case"wheel":H=Ix;break;case"copy":case"cut":case"paste":H=Bx;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":H=ad;break;case"toggle":case"beforetoggle":H=Wx}var fe=(t&4)!==0,He=!fe&&(e==="scroll"||e==="scrollend"),_=fe?B!==null?B+"Capture":null:B;fe=[];for(var C=L,D;C!==null;){var K=C;if(D=K.stateNode,K=K.tag,K!==5&&K!==26&&K!==27||D===null||_===null||(K=Pa(C,_),K!=null&&fe.push(Ri(C,K,D))),He)break;C=C.return}0<fe.length&&(B=new H(B,le,null,l,Y),G.push({event:B,listeners:fe}))}}if((t&7)===0){e:{if(B=e==="mouseover"||e==="pointerover",H=e==="mouseout"||e==="pointerout",B&&l!==hs&&(le=l.relatedTarget||l.fromElement)&&(Fl(le)||le[$l]))break e;if((H||B)&&(B=Y.window===Y?Y:(B=Y.ownerDocument)?B.defaultView||B.parentWindow:window,H?(le=l.relatedTarget||l.toElement,H=L,le=le?Fl(le):null,le!==null&&(He=c(le),fe=le.tag,le!==He||fe!==5&&fe!==27&&fe!==6)&&(le=null)):(H=null,le=L),H!==le)){if(fe=nd,K="onMouseLeave",_="onMouseEnter",C="mouse",(e==="pointerout"||e==="pointerover")&&(fe=ad,K="onPointerLeave",_="onPointerEnter",C="pointer"),He=H==null?B:Ia(H),D=le==null?B:Ia(le),B=new fe(K,C+"leave",H,l,Y),B.target=He,B.relatedTarget=D,K=null,Fl(Y)===L&&(fe=new fe(_,C+"enter",le,l,Y),fe.target=D,fe.relatedTarget=He,K=fe),He=K,H&&le)t:{for(fe=Pb,_=H,C=le,D=0,K=_;K;K=fe(K))D++;K=0;for(var se=C;se;se=fe(se))K++;for(;0<D-K;)_=fe(_),D--;for(;0<K-D;)C=fe(C),K--;for(;D--;){if(_===C||C!==null&&_===C.alternate){fe=_;break t}_=fe(_),C=fe(C)}fe=null}else fe=null;H!==null&&Fm(G,B,H,fe,!1),le!==null&&He!==null&&Fm(G,He,le,fe,!0)}}e:{if(B=L?Ia(L):window,H=B.nodeName&&B.nodeName.toLowerCase(),H==="select"||H==="input"&&B.type==="file")var ze=dd;else if(cd(B))if(hd)ze=ob;else{ze=ub;var re=rb}else H=B.nodeName,!H||H.toLowerCase()!=="input"||B.type!=="checkbox"&&B.type!=="radio"?L&&ds(L.elementType)&&(ze=dd):ze=sb;if(ze&&(ze=ze(e,L))){fd(G,ze,l,Y);break e}re&&re(e,B,L),e==="focusout"&&L&&B.type==="number"&&L.memoizedProps.value!=null&&fs(B,"number",B.value)}switch(re=L?Ia(L):window,e){case"focusin":(cd(re)||re.contentEditable==="true")&&(aa=re,Ts=L,ri=null);break;case"focusout":ri=Ts=aa=null;break;case"mousedown":Cs=!0;break;case"contextmenu":case"mouseup":case"dragend":Cs=!1,Sd(G,l,Y);break;case"selectionchange":if(fb)break;case"keydown":case"keyup":Sd(G,l,Y)}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 la?sd(e,l)&&(Ce="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(Ce="onCompositionStart");Ce&&(id&&l.locale!=="ko"&&(la||Ce!=="onCompositionStart"?Ce==="onCompositionEnd"&&la&&(be=ed()):(Fn=Y,ys="value"in Fn?Fn.value:Fn.textContent,la=!0)),re=cu(L,Ce),0<re.length&&(Ce=new ld(Ce,e,null,l,Y),G.push({event:Ce,listeners:re}),be?Ce.data=be:(be=od(l),be!==null&&(Ce.data=be)))),(be=tb?nb(e,l):lb(e,l))&&(Ce=cu(L,"onBeforeInput"),0<Ce.length&&(re=new ld("onBeforeInput","beforeinput",null,l,Y),G.push({event:re,listeners:Ce}),re.data=be)),$b(G,e,L,l,Y)}Zm(G,t)})}function Ri(e,t,l){return{instance:e,listener:t,currentTarget:l}}function cu(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=Pa(e,l),s!=null&&i.unshift(Ri(e,s,f)),s=Pa(e,t),s!=null&&i.push(Ri(e,s,f))),e.tag===3)return i;e=e.return}return[]}function Pb(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Fm(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=Pa(l,f),L!=null&&y.unshift(Ri(l,L,N))):s||(L=Pa(l,f),L!=null&&y.push(Ri(l,L,N)))),l=l.return}y.length!==0&&e.push({event:t,listeners:y})}var Wb=/\r\n?/g,ev=/\u0000|\uFFFD/g;function Jm(e){return(typeof e=="string"?e:""+e).replace(Wb,`
49
+ `).replace(ev,"")}function Im(e,t){return t=Jm(t),Jm(e)===t}function Ue(e,t,l,i,s,f){switch(l){case"children":typeof i=="string"?t==="body"||t==="textarea"&&i===""||ea(e,i):(typeof i=="number"||typeof i=="bigint")&&t!=="body"&&ea(e,""+i);break;case"className":mr(e,"class",i);break;case"tabIndex":mr(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":mr(e,l,i);break;case"style":If(e,i,f);break;case"data":if(t!=="object"){mr(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=gr(""+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=gr(""+i),e.setAttribute(l,i);break;case"onClick":i!=null&&(e.onclick=Cn);break;case"onScroll":i!=null&&je("scroll",e);break;case"onScrollEnd":i!=null&&je("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=gr(""+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":je("beforetoggle",e),je("toggle",e),hr(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":hr(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=Ax.get(l)||l,hr(e,l,i))}}function Wo(e,t,l,i,s,f){switch(l){case"style":If(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"?ea(e,i):(typeof i=="number"||typeof i=="bigint")&&ea(e,""+i);break;case"onScroll":i!=null&&je("scroll",e);break;case"onScrollEnd":i!=null&&je("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(!Vf.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,""):hr(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":je("error",e),je("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":je("invalid",e);var v=f=y=s=null,N=null,L=null;for(i in l)if(l.hasOwnProperty(i)){var Y=l[i];if(Y!=null)switch(i){case"name":s=Y;break;case"type":y=Y;break;case"checked":N=Y;break;case"defaultChecked":L=Y;break;case"value":f=Y;break;case"defaultValue":v=Y;break;case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(u(137,t));break;default:Ue(e,t,i,Y,l,null)}}Zf(e,f,v,N,L,y,s,!1);return;case"select":je("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?Wl(e,!!i,t,!1):l!=null&&Wl(e,!!i,l,!0);return;case"textarea":je("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)}Ff(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":je("beforetoggle",e),je("toggle",e),je("cancel",e),je("close",e);break;case"iframe":case"object":je("load",e);break;case"video":case"audio":for(i=0;i<ki.length;i++)je(ki[i],e);break;case"image":je("error",e),je("load",e);break;case"details":je("toggle",e);break;case"embed":case"source":case"link":je("error",e),je("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(ds(t)){for(Y in l)l.hasOwnProperty(Y)&&(i=l[Y],i!==void 0&&Wo(e,t,Y,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 tv(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,Y=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 B in i){var H=i[B];if(G=l[B],i.hasOwnProperty(B)&&(H!=null||G!=null))switch(B){case"type":f=H;break;case"name":s=H;break;case"checked":L=H;break;case"defaultChecked":Y=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,B,H,i,G)}}cs(e,y,v,N,L,Y,f,s);return;case"select":H=y=v=B=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":B=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,B!=null?Wl(e,!!l,B,!1):!!i!=!!l&&(t!=null?Wl(e,!!l,t,!0):Wl(e,!!l,l?[]:"",!1));return;case"textarea":H=B=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":B=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)}$f(e,B,H);return;case"option":for(var le in l)if(B=l[le],l.hasOwnProperty(le)&&B!=null&&!i.hasOwnProperty(le))switch(le){case"selected":e.selected=!1;break;default:Ue(e,t,le,null,i,B)}for(N in i)if(B=i[N],H=l[N],i.hasOwnProperty(N)&&B!==H&&(B!=null||H!=null))switch(N){case"selected":e.selected=B&&typeof B!="function"&&typeof B!="symbol";break;default:Ue(e,t,N,B,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 fe in l)B=l[fe],l.hasOwnProperty(fe)&&B!=null&&!i.hasOwnProperty(fe)&&Ue(e,t,fe,null,i,B);for(L in i)if(B=i[L],H=l[L],i.hasOwnProperty(L)&&B!==H&&(B!=null||H!=null))switch(L){case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(u(137,t));break;default:Ue(e,t,L,B,i,H)}return;default:if(ds(t)){for(var He in l)B=l[He],l.hasOwnProperty(He)&&B!==void 0&&!i.hasOwnProperty(He)&&Wo(e,t,He,void 0,i,B);for(Y in i)B=i[Y],H=l[Y],!i.hasOwnProperty(Y)||B===H||B===void 0&&H===void 0||Wo(e,t,Y,B,i,H);return}}for(var _ in l)B=l[_],l.hasOwnProperty(_)&&B!=null&&!i.hasOwnProperty(_)&&Ue(e,t,_,null,i,B);for(G in i)B=i[G],H=l[G],!i.hasOwnProperty(G)||B===H||B==null&&H==null||Ue(e,t,G,B,i,H)}function Pm(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function nv(){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&&Pm(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 Y=N.transferSize,G=N.initiatorType;Y&&Pm(G)&&(N=N.responseEnd,y+=Y*(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 ec=null,tc=null;function fu(e){return e.nodeType===9?e:e.ownerDocument}function Wm(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 ep(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 nc(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 lc=null;function lv(){var e=window.event;return e&&e.type==="popstate"?e===lc?!1:(lc=e,!0):(lc=null,!1)}var tp=typeof setTimeout=="function"?setTimeout:void 0,av=typeof clearTimeout=="function"?clearTimeout:void 0,np=typeof Promise=="function"?Promise:void 0,iv=typeof queueMicrotask=="function"?queueMicrotask:typeof np<"u"?function(e){return np.resolve(null).then(e).catch(rv)}:tp;function rv(e){setTimeout(function(){throw e})}function dl(e){return e==="head"}function lp(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),Ra(t);return}i--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")i++;else if(l==="html")_i(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,_i(l);for(var f=l.firstChild;f;){var y=f.nextSibling,v=f.nodeName;f[Ja]||v==="SCRIPT"||v==="STYLE"||v==="LINK"&&f.rel.toLowerCase()==="stylesheet"||l.removeChild(f),f=y}}else l==="body"&&_i(e.ownerDocument.body);l=s}while(l);Ra(t)}function ap(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 ac(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":ac(l),ss(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function uv(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[Ja])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 sv(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 ip(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 ic(e){return e.data==="$?"||e.data==="$~"}function rc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function ov(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 uc=null;function rp(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 up(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 sp(e,t,l){switch(t=fu(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 _i(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ss(e)}var rn=new Map,op=new Set;function du(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Qn=Z.d;Z.d={f:cv,r:fv,D:dv,C:hv,L:mv,m:pv,X:yv,S:gv,M:xv};function cv(){var e=Qn.f(),t=lu();return e||t}function fv(e){var t=Jl(e);t!==null&&t.tag===5&&t.type==="form"?Th(t):Qn.r(e)}var Aa=typeof document>"u"?null:document;function cp(e,t,l){var i=Aa;if(i&&typeof t=="string"&&t){var s=It(t);s='link[rel="'+e+'"][href="'+s+'"]',typeof l=="string"&&(s+='[crossorigin="'+l+'"]'),op.has(s)||(op.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 dv(e){Qn.D(e),cp("dns-prefetch",e,null)}function hv(e,t){Qn.C(e,t),cp("preconnect",e,t)}function mv(e,t,l){Qn.L(e,t,l);var i=Aa;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=za(e);break;case"script":f=ka(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(Mi(f))||(t=i.createElement("link"),yt(t,"link",e),ft(t),i.head.appendChild(t)))}}function pv(e,t){Qn.m(e,t);var l=Aa;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=ka(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(Mi(f)))return}i=l.createElement("link"),yt(i,"link",e),ft(i),l.head.appendChild(i)}}}function gv(e,t,l){Qn.S(e,t,l);var i=Aa;if(i&&e){var s=Il(i).hoistableStyles,f=za(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))&&sc(e,l);var N=y=i.createElement("link");ft(N),yt(N,"link",e),N._p=new Promise(function(L,Y){N.onload=L,N.onerror=Y}),N.addEventListener("load",function(){v.loading|=1}),N.addEventListener("error",function(){v.loading|=2}),v.loading|=4,hu(y,t,i)}y={type:"stylesheet",instance:y,count:1,state:v},s.set(f,y)}}}function yv(e,t){Qn.X(e,t);var l=Aa;if(l&&e){var i=Il(l).hoistableScripts,s=ka(e),f=i.get(s);f||(f=l.querySelector(Mi(s)),f||(e=b({src:e,async:!0},t),(t=rn.get(s))&&oc(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 xv(e,t){Qn.M(e,t);var l=Aa;if(l&&e){var i=Il(l).hoistableScripts,s=ka(e),f=i.get(s);f||(f=l.querySelector(Mi(s)),f||(e=b({src:e,async:!0,type:"module"},t),(t=rn.get(s))&&oc(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 fp(e,t,l,i){var s=(s=ue.current)?du(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=za(l.href),l=Il(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=za(l.href);var f=Il(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||bv(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=ka(l),l=Il(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 za(e){return'href="'+It(e)+'"'}function Oi(e){return'link[rel="stylesheet"]['+e+"]"}function dp(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function bv(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 ka(e){return'[src="'+It(e)+'"]'}function Mi(e){return"script[async]"+e}function hp(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),hu(i,l.precedence,e),t.instance=i;case"stylesheet":s=za(l.href);var f=e.querySelector(Oi(s));if(f)return t.state.loading|=4,t.instance=f,ft(f),f;i=dp(l),(s=rn.get(s))&&sc(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,hu(f,l.precedence,e),t.instance=f;case"script":return f=ka(l.src),(s=e.querySelector(Mi(f)))?(t.instance=s,ft(s),s):(i=l,(s=rn.get(f))&&(i=b({},l),oc(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,hu(i,l.precedence,e));return t.instance}function hu(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 sc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function oc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var mu=null;function mp(e,t,l){if(mu===null){var i=new Map,s=mu=new Map;s.set(l,i)}else s=mu,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[Ja]||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 pp(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function vv(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 gp(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Sv(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=za(i.href),f=t.querySelector(Oi(s));if(f){t=f._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=pu.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=f,ft(f);return}f=t.ownerDocument||t,i=dp(i),(s=rn.get(s))&&sc(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=pu.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var cc=0;function Ev(e,t){return e.stylesheets&&e.count===0&&yu(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var i=setTimeout(function(){if(e.stylesheets&&yu(e,e.stylesheets),e.unsuspend){var f=e.unsuspend;e.unsuspend=null,f()}},6e4+t);0<e.imgBytes&&cc===0&&(cc=62500*nv());var s=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&yu(e,e.stylesheets),e.unsuspend)){var f=e.unsuspend;e.unsuspend=null,f()}},(e.imgBytes>cc?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(s)}}:null}function pu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)yu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var gu=null;function yu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,gu=new Map,t.forEach(wv,e),gu=null,pu.call(e))}function wv(e,t){if(!(t.state.loading&4)){var l=gu.get(e);if(l)var i=l.get(null);else{l=new Map,gu.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=pu.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 Di={$$typeof:O,Provider:null,Consumer:null,_currentValue:ie,_currentValue2:ie,_threadCount:0};function jv(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=as(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=as(0),this.hiddenUpdates=as(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 yp(e,t,l,i,s,f,y,v,N,L,Y,G){return e=new jv(e,t,l,y,N,L,Y,G,v),t=1,f===!0&&(t|=24),f=Ut(3,null,null,t),e.current=f,f.stateNode=e,t=Vs(),t.refCount++,e.pooledCache=t,t.refCount++,f.memoizedState={element:i,isDehydrated:l,cache:t},Xs(f),e}function xp(e){return e?(e=ua,e):ua}function bp(e,t,l,i,s,f){s=xp(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),hi(l,e,t))}function vp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function fc(e,t){vp(e,t),(e=e.alternate)&&vp(e,t)}function Sp(e){if(e.tag===13||e.tag===31){var t=Tl(e,67108864);t!==null&&_t(t,e,67108864),fc(e,67108864)}}function Ep(e){if(e.tag===13||e.tag===31){var t=Qt();t=is(t);var l=Tl(e,t);l!==null&&_t(l,e,t),fc(e,t)}}var xu=!0;function Nv(e,t,l,i){var s=M.T;M.T=null;var f=Z.p;try{Z.p=2,dc(e,t,l,i)}finally{Z.p=f,M.T=s}}function Tv(e,t,l,i){var s=M.T;M.T=null;var f=Z.p;try{Z.p=8,dc(e,t,l,i)}finally{Z.p=f,M.T=s}}function dc(e,t,l,i){if(xu){var s=hc(i);if(s===null)Po(e,t,i,bu,l),jp(e,i);else if(Av(s,e,t,l,i))i.stopPropagation();else if(jp(e,i),t&4&&-1<Cv.indexOf(e)){for(;s!==null;){var f=Jl(s);if(f!==null)switch(f.tag){case 3:if(f=f.stateNode,f.current.memoizedState.isDehydrated){var y=Sl(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&&(tu=St()+500,zi(0))}}break;case 31:case 13:v=Tl(f,2),v!==null&&_t(v,f,2),lu(),fc(f,2)}if(f=hc(i),f===null&&Po(e,t,i,bu,l),f===s)break;s=f}s!==null&&i.stopPropagation()}else Po(e,t,i,null,l)}}function hc(e){return e=ms(e),mc(e)}var bu=null;function mc(e){if(bu=null,e=Fl(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 bu=e,null}function wp(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(ls()){case Q:return 2;case P:return 8;case he:case Ee:return 32;case Oe:return 268435456;default:return 32}default:return 32}}var pc=!1,hl=null,ml=null,pl=null,Li=new Map,Bi=new Map,gl=[],Cv="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 jp(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":Li.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Bi.delete(t.pointerId)}}function Ui(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=Jl(t),t!==null&&Sp(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function Av(e,t,l,i,s){switch(t){case"focusin":return hl=Ui(hl,e,t,l,i,s),!0;case"dragenter":return ml=Ui(ml,e,t,l,i,s),!0;case"mouseover":return pl=Ui(pl,e,t,l,i,s),!0;case"pointerover":var f=s.pointerId;return Li.set(f,Ui(Li.get(f)||null,e,t,l,i,s)),!0;case"gotpointercapture":return f=s.pointerId,Bi.set(f,Ui(Bi.get(f)||null,e,t,l,i,s)),!0}return!1}function Np(e){var t=Fl(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,Hf(e.priority,function(){Ep(l)});return}}else if(t===31){if(t=m(l),t!==null){e.blockedOn=t,Hf(e.priority,function(){Ep(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 vu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=hc(e.nativeEvent);if(l===null){l=e.nativeEvent;var i=new l.constructor(l.type,l);hs=i,l.target.dispatchEvent(i),hs=null}else return t=Jl(l),t!==null&&Sp(t),e.blockedOn=l,!1;t.shift()}return!0}function Tp(e,t,l){vu(e)&&l.delete(t)}function zv(){pc=!1,hl!==null&&vu(hl)&&(hl=null),ml!==null&&vu(ml)&&(ml=null),pl!==null&&vu(pl)&&(pl=null),Li.forEach(Tp),Bi.forEach(Tp)}function Su(e,t){e.blockedOn===t&&(e.blockedOn=null,pc||(pc=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,zv)))}var Eu=null;function Cp(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(mc(i||l)===null)continue;break}var f=Jl(l);f!==null&&(e.splice(t,3),t-=3,ho(f,{pending:!0,data:s,method:l.method,action:i},i,s))}}))}function Ra(e){function t(N){return Su(N,e)}hl!==null&&Su(hl,e),ml!==null&&Su(ml,e),pl!==null&&Su(pl,e),Li.forEach(t),Bi.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);)Np(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||Cp(l);else if(y){var v=null;if(f&&f.hasAttribute("formAction")){if(s=f,y=f[Tt]||null)v=y.formAction;else if(mc(s)!==null)continue}else v=y.action;typeof v=="function"?l[i+1]=v:(l.splice(i,3),i-=3),Cp(l)}}}function Ap(){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 gc(e){this._internalRoot=e}wu.prototype.render=gc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(u(409));var l=t.current,i=Qt();bp(l,i,e,t,null,null)},wu.prototype.unmount=gc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;bp(e.current,2,null,e,null,null),lu(),t[$l]=null}};function wu(e){this._internalRoot=e}wu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Uf();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&&Np(e)}};var zp=a.version;if(zp!=="19.2.6")throw Error(u(527,zp,"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 kv={bundleType:0,version:"19.2.6",rendererPackageName:"react-dom",currentDispatcherRef:M,reconcilerVersion:"19.2.6"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ju=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ju.isDisabled&&ju.supportsFiber)try{Et=ju.inject(kv),ot=ju}catch{}}return qi.createRoot=function(e,t){if(!o(e))throw Error(u(299));var l=!1,i="",s=Lh,f=Bh,y=Uh;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=yp(e,1,!1,null,null,l,i,null,s,f,y,Ap),e[$l]=t.current,Io(e),new gc(t)},qi.hydrateRoot=function(e,t,l){if(!o(e))throw Error(u(299));var i=!1,s="",f=Lh,y=Bh,v=Uh,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=yp(e,1,!0,t,l??null,i,s,N,f,y,v,Ap),t.context=xp(null),l=t.current,i=Qt(),i=is(i),s=tl(i),s.callback=null,nl(l,s,i),l=i,t.current.lanes=l,Fa(t,l),bn(t),e[$l]=t.current,Io(e),new wu(t)},qi.version="19.2.6",qi}var Hp;function qv(){if(Hp)return bc.exports;Hp=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(),bc.exports=Hv(),bc.exports}var Kg=qv();/**
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 Yp(n){return typeof n=="object"&&n!=null&&"pathname"in n&&"search"in n&&"hash"in n&&"state"in n&&"key"in n}function Yv(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 Ou("",{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:Ua(o)}return Gg(a,r,null,n)}function Vv(n={}){function a(o,c){let{pathname:d="/",search:m="",hash:g=""}=Yl(o.location.hash.substring(1));return!d.startsWith("/")&&!d.startsWith(".")&&(d="/"+d),Ou("",{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:Ua(c))}function u(o,c){Xt(o.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(c)})`)}return Gg(a,r,u,n)}function Je(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 Qv(){return Math.random().toString(36).substring(2,10)}function Vp(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 Ou(n,a,r=null,u,o){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof a=="string"?Yl(a):a,state:r,key:a&&a.key||u||Qv(),mask:o}}function Ua({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 Yl(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 Gg(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 U=x(),k=U==null?null:U-p;p=U,g&&g({action:m,location:R.location,delta:k})}function E(U,k){m="PUSH";let X=Yp(U)?U:Ou(R.location,U,k);r&&r(X,U),p=x()+1;let O=Vp(X,p),I=R.createHref(X.mask||X);try{d.pushState(O,"",I)}catch(te){if(te instanceof DOMException&&te.name==="DataCloneError")throw te;o.location.assign(I)}c&&g&&g({action:m,location:R.location,delta:1})}function S(U,k){m="REPLACE";let X=Yp(U)?U:Ou(R.location,U,k);r&&r(X,U),p=x();let O=Vp(X,p),I=R.createHref(X.mask||X);d.replaceState(O,"",I),c&&g&&g({action:m,location:R.location,delta:0})}function A(U){return Kv(o,U)}let R={get action(){return m},get location(){return n(o,d)},listen(U){if(g)throw new Error("A history only accepts one active listener");return o.addEventListener(qp,b),g=U,()=>{o.removeEventListener(qp,b),g=null}},createHref(U){return a(o,U)},createURL:A,encodeLocation(U){let k=A(U);return{pathname:k.pathname,search:k.search,hash:k.hash}},push:E,replace:S,go(U){return d.go(U)}};return R}function Kv(n,a,r=!1){let u="http://localhost";n&&(u=n.location.origin!=="null"?n.location.origin:n.location.href),Je(u,"No window.location.(origin|href) available to create URL");let o=typeof a=="string"?a:Ua(a);return o=o.replace(/ $/,"%20"),!r&&o.startsWith("//")&&(o=u+o),new URL(o,u)}function Xg(n,a,r="/"){return Gv(n,a,r,!1)}function Gv(n,a,r,u,o){let c=typeof a=="string"?Yl(a):a,d=Gn(c.pathname||"/",r);if(d==null)return null;let m=Xv(n),g=null,p=a0(d);for(let x=0;g==null&&x<m.length;++x)g=n0(m[x],p,u);return g}function Xv(n){let a=Zg(n);return Zv(a),a}function Zg(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;Je(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]),E=r.concat(x);d.children&&d.children.length>0&&(Je(d.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${b}".`),Zg(d.children,a,E,b,g)),!(d.path==null&&!d.index)&&a.push({path:b,score:e0(b,d.index),routesMeta:E})};return n.forEach((d,m)=>{var g;if(d.path===""||!((g=d.path)!=null&&g.includes("?")))c(d,m);else for(let p of $g(d.path))c(d,m,!0,p)}),a}function $g(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=$g(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 Zv(n){n.sort((a,r)=>a.score!==r.score?r.score-a.score:t0(a.routesMeta.map(u=>u.childrenIndex),r.routesMeta.map(u=>u.childrenIndex)))}var $v=/^:[\w-]+$/,Fv=3,Jv=2,Iv=1,Pv=10,Wv=-2,Qp=n=>n==="*";function e0(n,a){let r=n.split("/"),u=r.length;return r.some(Qp)&&(u+=Wv),a&&(u+=Jv),r.filter(o=>!Qp(o)).reduce((o,c)=>o+($v.test(c)?Fv:c===""?Iv:Pv),u)}function t0(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 n0(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=Mu({path:g.relativePath,caseSensitive:g.caseSensitive,end:p},x),E=g.route;if(!b&&p&&r&&!u[u.length-1].route.index&&(b=Mu({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:s0(pn([c,b.pathnameBase])),route:E}),b.pathnameBase!=="/"&&(c=pn([c,b.pathnameBase]))}return d}function Mu(n,a){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[r,u]=l0(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},E)=>{if(x==="*"){let A=m[E]||"";d=c.slice(0,c.length-A.length).replace(/(.)\/+$/,"$1")}const S=m[E];return b&&!S?p[x]=void 0:p[x]=(S||"").replace(/%2F/g,"/"),p},{}),pathname:c,pathnameBase:d,pattern:n}}function l0(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 a0(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 i0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function r0(n,a="/"){let{pathname:r,search:u="",hash:o=""}=typeof n=="string"?Yl(n):n,c;return r?(r=Fg(r),r.startsWith("/")?c=Kp(r.substring(1),"/"):c=Kp(r,a)):c=a,{pathname:c,search:o0(u),hash:c0(o)}}function Kp(n,a){let r=Du(a).split("/");return n.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function wc(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 u0(n){return n.filter((a,r)=>r===0||a.route.path&&a.route.path.length>0)}function uf(n){let a=u0(n);return a.map((r,u)=>u===a.length-1?r.pathname:r.pathnameBase)}function qu(n,a,r,u=!1){let o;typeof n=="string"?o=Yl(n):(o={...n},Je(!o.pathname||!o.pathname.includes("?"),wc("?","pathname","search",o)),Je(!o.pathname||!o.pathname.includes("#"),wc("#","pathname","hash",o)),Je(!o.search||!o.search.includes("#"),wc("#","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 E=d.split("/");for(;E[0]==="..";)E.shift(),b-=1;o.pathname=E.join("/")}m=b>=0?a[b]:"/"}let g=r0(o,m),p=d&&d!=="/"&&d.endsWith("/"),x=(c||d===".")&&r.endsWith("/");return!g.pathname.endsWith("/")&&(p||x)&&(g.pathname+="/"),g}var Fg=n=>n.replace(/\/\/+/g,"/"),pn=n=>Fg(n.join("/")),Du=n=>n.replace(/\/+$/,""),s0=n=>Du(n).replace(/^\/*/,"/"),o0=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,c0=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n,f0=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 d0(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}function h0(n){let a=n.map(r=>r.route.path).filter(Boolean);return pn(a)||"/"}var Jg=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Ig(n,a){let r=n;if(typeof r!="string"||!i0.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let u=r,o=!1;if(Jg)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 Pg=["POST","PUT","PATCH","DELETE"];new Set(Pg);var m0=["GET",...Pg];new Set(m0);var Ya=z.createContext(null);Ya.displayName="DataRouter";var Yu=z.createContext(null);Yu.displayName="DataRouterState";var Wg=z.createContext(!1);function p0(){return z.useContext(Wg)}var ey=z.createContext({isTransitioning:!1});ey.displayName="ViewTransition";var g0=z.createContext(new Map);g0.displayName="Fetchers";var y0=z.createContext(null);y0.displayName="Await";var Zt=z.createContext(null);Zt.displayName="Navigation";var tr=z.createContext(null);tr.displayName="Location";var on=z.createContext({outlet:null,matches:[],isDataRoute:!1});on.displayName="Route";var sf=z.createContext(null);sf.displayName="RouteError";var ty="REACT_ROUTER_ERROR",x0="REDIRECT",b0="ROUTE_ERROR_RESPONSE";function v0(n){if(n.startsWith(`${ty}:${x0}:{`))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 S0(n){if(n.startsWith(`${ty}:${b0}:{`))try{let a=JSON.parse(n.slice(40));if(typeof a=="object"&&a&&typeof a.status=="number"&&typeof a.statusText=="string")return new f0(a.status,a.statusText,a.data)}catch{}}function E0(n,{relative:a}={}){Je(Va(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:u}=z.useContext(Zt),{hash:o,pathname:c,search:d}=nr(n,{relative:a}),m=c;return r!=="/"&&(m=c==="/"?r:pn([r,c])),u.createHref({pathname:m,search:d,hash:o})}function Va(){return z.useContext(tr)!=null}function $t(){return Je(Va(),"useLocation() may be used only in the context of a <Router> component."),z.useContext(tr).location}var ny="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function ly(n){z.useContext(Zt).static||z.useLayoutEffect(n)}function Vu(){let{isDataRoute:n}=z.useContext(on);return n?B0():w0()}function w0(){Je(Va(),"useNavigate() may be used only in the context of a <Router> component.");let n=z.useContext(Ya),{basename:a,navigator:r}=z.useContext(Zt),{matches:u}=z.useContext(on),{pathname:o}=$t(),c=JSON.stringify(uf(u)),d=z.useRef(!1);return ly(()=>{d.current=!0}),z.useCallback((g,p={})=>{if(Xt(d.current,ny),!d.current)return;if(typeof g=="number"){r.go(g);return}let x=qu(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 ay=z.createContext(null);function j0(){return z.useContext(ay)}function N0(n){let a=z.useContext(on).outlet;return z.useMemo(()=>a&&z.createElement(ay.Provider,{value:n},a),[a,n])}function Qu(){let{matches:n}=z.useContext(on),a=n[n.length-1];return(a==null?void 0:a.params)??{}}function nr(n,{relative:a}={}){let{matches:r}=z.useContext(on),{pathname:u}=$t(),o=JSON.stringify(uf(r));return z.useMemo(()=>qu(n,JSON.parse(o),u,a==="path"),[n,o,u,a])}function T0(n,a){return iy(n,a)}function iy(n,a,r){var U;Je(Va(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:u}=z.useContext(Zt),{matches:o}=z.useContext(on),c=o[o.length-1],d=c?c.params:{},m=c?c.pathname:"/",g=c?c.pathnameBase:"/",p=c&&c.route;{let k=p&&p.path||"";uy(m,!p||k.endsWith("*")||k.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${m}" (under <Route path="${k}">) 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="${k}"> to <Route path="${k==="/"?"*":`${k}/*`}">.`)}let x=$t(),b;if(a){let k=typeof a=="string"?Yl(a):a;Je(g==="/"||((U=k.pathname)==null?void 0:U.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 "${k.pathname}" was given in the \`location\` prop.`),b=k}else b=x;let E=b.pathname||"/",S=E;if(g!=="/"){let k=g.replace(/^\//,"").split("/");S="/"+E.replace(/^\//,"").split("/").slice(k.length).join("/")}let A=r&&r.state.matches.length?r.state.matches.map(k=>Object.assign(k,{route:r.manifest[k.route.id]||k.route})):Xg(n,{pathname:S});Xt(p||A!=null,`No routes matched location "${b.pathname}${b.search}${b.hash}" `),Xt(A==null||A[A.length-1].route.element!==void 0||A[A.length-1].route.Component!==void 0||A[A.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 R=R0(A&&A.map(k=>Object.assign({},k,{params:Object.assign({},d,k.params),pathname:pn([g,u.encodeLocation?u.encodeLocation(k.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:k.pathname]),pathnameBase:k.pathnameBase==="/"?g:pn([g,u.encodeLocation?u.encodeLocation(k.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:k.pathnameBase])})),o,r);return a&&R?z.createElement(tr.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...b},navigationType:"POP"}},R):R}function C0(){let n=L0(),a=d0(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=z.createElement(z.Fragment,null,z.createElement("p",null,"💿 Hey developer 👋"),z.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",z.createElement("code",{style:c},"ErrorBoundary")," or"," ",z.createElement("code",{style:c},"errorElement")," prop on your route.")),z.createElement(z.Fragment,null,z.createElement("h2",null,"Unexpected Application Error!"),z.createElement("h3",{style:{fontStyle:"italic"}},a),r?z.createElement("pre",{style:o},r):null,d)}var A0=z.createElement(C0,null),ry=class extends z.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=S0(n.digest);r&&(n=r)}let a=n!==void 0?z.createElement(on.Provider,{value:this.props.routeContext},z.createElement(sf.Provider,{value:n,children:this.props.component})):this.props.children;return this.context?z.createElement(z0,{error:n},a):a}};ry.contextType=Wg;var jc=new WeakMap;function z0({children:n,error:a}){let{basename:r}=z.useContext(Zt);if(typeof a=="object"&&a&&"digest"in a&&typeof a.digest=="string"){let u=v0(a.digest);if(u){let o=jc.get(a);if(o)throw o;let c=Ig(u.location,r);if(Jg&&!jc.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 jc.set(a,d),d}return z.createElement("meta",{httpEquiv:"refresh",content:`0;url=${c.absoluteURL||c.to}`})}}return n}function k0({routeContext:n,match:a,children:r}){let u=z.useContext(Ya);return u&&u.static&&u.staticContext&&(a.route.errorElement||a.route.ErrorBoundary)&&(u.staticContext._deepestRenderedBoundaryId=a.route.id),z.createElement(on.Provider,{value:n},r)}function R0(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);Je(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:E,errors:S}=u,A=b.route.loader&&!E.hasOwnProperty(b.route.id)&&(!S||S[b.route.id]===void 0);if(b.route.lazy||A){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 E,S;g(x,{location:u.location,params:((S=(E=u.matches)==null?void 0:E[0])==null?void 0:S.params)??{},pattern:h0(u.matches),errorInfo:b})}:void 0;return o.reduceRight((x,b,E)=>{let S,A=!1,R=null,U=null;u&&(S=c&&b.route.id?c[b.route.id]:void 0,R=b.route.errorElement||A0,d&&(m<0&&E===0?(uy("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),A=!0,U=null):m===E&&(A=!0,U=b.route.hydrateFallbackElement||null)));let k=a.concat(o.slice(0,E+1)),X=()=>{let O;return S?O=R:A?O=U:b.route.Component?O=z.createElement(b.route.Component,null):b.route.element?O=b.route.element:O=x,z.createElement(k0,{match:b,routeContext:{outlet:x,matches:k,isDataRoute:u!=null},children:O})};return u&&(b.route.ErrorBoundary||b.route.errorElement||E===0)?z.createElement(ry,{location:u.location,revalidation:u.revalidation,component:R,error:S,children:X(),routeContext:{outlet:null,matches:k,isDataRoute:!0},onError:p}):X()},null)}function of(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function _0(n){let a=z.useContext(Ya);return Je(a,of(n)),a}function O0(n){let a=z.useContext(Yu);return Je(a,of(n)),a}function M0(n){let a=z.useContext(on);return Je(a,of(n)),a}function cf(n){let a=M0(n),r=a.matches[a.matches.length-1];return Je(r.route.id,`${n} can only be used on routes that contain a unique "id"`),r.route.id}function D0(){return cf("useRouteId")}function L0(){var u;let n=z.useContext(sf),a=O0("useRouteError"),r=cf("useRouteError");return n!==void 0?n:(u=a.errors)==null?void 0:u[r]}function B0(){let{router:n}=_0("useNavigate"),a=cf("useNavigate"),r=z.useRef(!1);return ly(()=>{r.current=!0}),z.useCallback(async(o,c={})=>{Xt(r.current,ny),r.current&&(typeof o=="number"?await n.navigate(o):await n.navigate(o,{fromRouteId:a,...c}))},[n,a])}var Gp={};function uy(n,a,r){!a&&!Gp[n]&&(Gp[n]=!0,Xt(!1,r))}z.memo(U0);function U0({routes:n,manifest:a,future:r,state:u,isStatic:o,onError:c}){return iy(n,void 0,{manifest:a,state:u,isStatic:o,onError:c})}function bl({to:n,replace:a,state:r,relative:u}){Je(Va(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=z.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}=z.useContext(on),{pathname:d}=$t(),m=Vu(),g=qu(n,uf(c),d,u==="path"),p=JSON.stringify(g);return z.useEffect(()=>{m(JSON.parse(p),{replace:a,state:r,relative:u})},[m,p,u,a,r]),null}function H0(n){return N0(n.context)}function Fe(n){Je(!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 sy({basename:n="/",children:a=null,location:r,navigationType:u="POP",navigator:o,static:c=!1,useTransitions:d}){Je(!Va(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let m=n.replace(/^\/*/,"/"),g=z.useMemo(()=>({basename:m,navigator:o,static:c,useTransitions:d,future:{}}),[m,o,c,d]);typeof r=="string"&&(r=Yl(r));let{pathname:p="/",search:x="",hash:b="",state:E=null,key:S="default",mask:A}=r,R=z.useMemo(()=>{let U=Gn(p,m);return U==null?null:{location:{pathname:U,search:x,hash:b,state:E,key:S,mask:A},navigationType:u}},[m,p,x,b,E,S,u,A]);return Xt(R!=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.`),R==null?null:z.createElement(Zt.Provider,{value:g},z.createElement(tr.Provider,{children:a,value:R}))}function q0({children:n,location:a}){return T0(Vc(n),a)}function Vc(n,a=[]){let r=[];return z.Children.forEach(n,(u,o)=>{if(!z.isValidElement(u))return;let c=[...a,o];if(u.type===z.Fragment){r.push.apply(r,Vc(u.props.children,c));return}Je(u.type===Fe,`[${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>`),Je(!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=Vc(u.props.children,c)),r.push(d)}),r}var ku="get",Ru="application/x-www-form-urlencoded";function Ku(n){return typeof HTMLElement<"u"&&n instanceof HTMLElement}function Y0(n){return Ku(n)&&n.tagName.toLowerCase()==="button"}function V0(n){return Ku(n)&&n.tagName.toLowerCase()==="form"}function Q0(n){return Ku(n)&&n.tagName.toLowerCase()==="input"}function K0(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function G0(n,a){return n.button===0&&(!a||a==="_self")&&!K0(n)}function Qc(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 X0(n,a){let r=Qc(n);return a&&a.forEach((u,o)=>{r.has(o)||a.getAll(o).forEach(c=>{r.append(o,c)})}),r}var Nu=null;function Z0(){if(Nu===null)try{new FormData(document.createElement("form"),0),Nu=!1}catch{Nu=!0}return Nu}var $0=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Nc(n){return n!=null&&!$0.has(n)?(Xt(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ru}"`),null):n}function F0(n,a){let r,u,o,c,d;if(V0(n)){let m=n.getAttribute("action");u=m?Gn(m,a):null,r=n.getAttribute("method")||ku,o=Nc(n.getAttribute("enctype"))||Ru,c=new FormData(n)}else if(Y0(n)||Q0(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")||ku,o=Nc(n.getAttribute("formenctype"))||Nc(m.getAttribute("enctype"))||Ru,c=new FormData(m,n),!Z0()){let{name:p,type:x,value:b}=n;if(x==="image"){let E=p?`${p}.`:"";c.append(`${E}x`,"0"),c.append(`${E}y`,"0")}else p&&c.append(p,b)}}else{if(Ku(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=ku,u=null,o=Ru,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 ff(n,a){if(n===!1||n===null||typeof n>"u")throw new Error(a)}function oy(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=`${Du(a)}/_root.${u}`:o.pathname=`${Du(o.pathname)}.${u}`,o}async function J0(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 I0(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 P0(n,a,r){let u=await Promise.all(n.map(async o=>{let c=a.routes[o.route.id];if(c){let d=await J0(c,r);return d.links?d.links():[]}return[]}));return n1(u.flat(1).filter(I0).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function Xp(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 E=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 E=="boolean")return E}return!0}):[]}function W0(n,a,{includeHydrateFallback:r}={}){return e1(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 e1(n){return[...new Set(n)]}function t1(n){let a={},r=Object.keys(n).sort();for(let u of r)a[u]=n[u];return a}function n1(n,a){let r=new Set;return new Set(a),n.reduce((u,o)=>{let c=JSON.stringify(t1(o));return r.has(c)||(r.add(c),u.push({key:c,link:o})),u},[])}function df(){let n=z.useContext(Ya);return ff(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function l1(){let n=z.useContext(Yu);return ff(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var hf=z.createContext(void 0);hf.displayName="FrameworkContext";function mf(){let n=z.useContext(hf);return ff(n,"You must render this element inside a <HydratedRouter> element"),n}function a1(n,a){let r=z.useContext(hf),[u,o]=z.useState(!1),[c,d]=z.useState(!1),{onFocus:m,onBlur:g,onMouseEnter:p,onMouseLeave:x,onTouchStart:b}=a,E=z.useRef(null);z.useEffect(()=>{if(n==="render"&&d(!0),n==="viewport"){let R=k=>{k.forEach(X=>{d(X.isIntersecting)})},U=new IntersectionObserver(R,{threshold:.5});return E.current&&U.observe(E.current),()=>{U.disconnect()}}},[n]),z.useEffect(()=>{if(u){let R=setTimeout(()=>{d(!0)},100);return()=>{clearTimeout(R)}}},[u]);let S=()=>{o(!0)},A=()=>{o(!1),d(!1)};return r?n!=="intent"?[c,E,{}]:[c,E,{onFocus:Yi(m,S),onBlur:Yi(g,A),onMouseEnter:Yi(p,S),onMouseLeave:Yi(x,A),onTouchStart:Yi(b,S)}]:[!1,E,{}]}function Yi(n,a){return r=>{n&&n(r),r.defaultPrevented||a(r)}}function i1({page:n,...a}){let r=p0(),{router:u}=df(),o=z.useMemo(()=>Xg(u.routes,n,u.basename),[u.routes,n,u.basename]);return o?r?z.createElement(u1,{page:n,matches:o,...a}):z.createElement(s1,{page:n,matches:o,...a}):null}function r1(n){let{manifest:a,routeModules:r}=mf(),[u,o]=z.useState([]);return z.useEffect(()=>{let c=!1;return P0(n,a,r).then(d=>{c||o(d)}),()=>{c=!0}},[n,a,r]),u}function u1({page:n,matches:a,...r}){let u=$t(),{future:o}=mf(),{basename:c}=df(),d=z.useMemo(()=>{if(n===u.pathname+u.search+u.hash)return[];let m=oy(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 z.createElement(z.Fragment,null,d.map(m=>z.createElement("link",{key:m,rel:"prefetch",as:"fetch",href:m,...r})))}function s1({page:n,matches:a,...r}){let u=$t(),{future:o,manifest:c,routeModules:d}=mf(),{basename:m}=df(),{loaderData:g,matches:p}=l1(),x=z.useMemo(()=>Xp(n,a,p,c,u,"data"),[n,a,p,c,u]),b=z.useMemo(()=>Xp(n,a,p,c,u,"assets"),[n,a,p,c,u]),E=z.useMemo(()=>{if(n===u.pathname+u.search+u.hash)return[];let R=new Set,U=!1;if(a.forEach(X=>{var I;let O=c.routes[X.route.id];!O||!O.hasLoader||(!x.some(te=>te.route.id===X.route.id)&&X.route.id in g&&((I=d[X.route.id])!=null&&I.shouldRevalidate)||O.hasClientLoader?U=!0:R.add(X.route.id))}),R.size===0)return[];let k=oy(n,m,o.v8_trailingSlashAwareDataRequests,"data");return U&&R.size>0&&k.searchParams.set("_routes",a.filter(X=>R.has(X.route.id)).map(X=>X.route.id).join(",")),[k.pathname+k.search]},[m,o.v8_trailingSlashAwareDataRequests,g,u,c,x,a,n,d]),S=z.useMemo(()=>W0(b,c),[b,c]),A=r1(b);return z.createElement(z.Fragment,null,E.map(R=>z.createElement("link",{key:R,rel:"prefetch",as:"fetch",href:R,...r})),S.map(R=>z.createElement("link",{key:R,rel:"modulepreload",href:R,...r})),A.map(({key:R,link:U})=>z.createElement("link",{key:R,nonce:r.nonce,...U,crossOrigin:U.crossOrigin??r.crossOrigin})))}function o1(...n){return a=>{n.forEach(r=>{typeof r=="function"?r(a):r!=null&&(r.current=a)})}}var c1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{c1&&(window.__reactRouterVersion="7.16.0")}catch{}function f1({basename:n,children:a,useTransitions:r,window:u}){let o=z.useRef();o.current==null&&(o.current=Yv({window:u,v5Compat:!0}));let c=o.current,[d,m]=z.useState({action:c.action,location:c.location}),g=z.useCallback(p=>{r===!1?m(p):z.startTransition(()=>m(p))},[r]);return z.useLayoutEffect(()=>c.listen(g),[c,g]),z.createElement(sy,{basename:n,children:a,location:d.location,navigationType:d.action,navigator:c,useTransitions:r})}function d1({basename:n,children:a,useTransitions:r,window:u}){let o=z.useRef();o.current==null&&(o.current=Vv({window:u,v5Compat:!0}));let c=o.current,[d,m]=z.useState({action:c.action,location:c.location}),g=z.useCallback(p=>{r===!1?m(p):z.startTransition(()=>m(p))},[r]);return z.useLayoutEffect(()=>c.listen(g),[c,g]),z.createElement(sy,{basename:n,children:a,location:d.location,navigationType:d.action,navigator:c,useTransitions:r})}var cy=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Xe=z.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:E,defaultShouldRevalidate:S,...A},R){let{basename:U,navigator:k,useTransitions:X}=z.useContext(Zt),O=typeof x=="string"&&cy.test(x),I=Ig(x,U);x=I.to;let te=E0(x,{relative:o}),q=$t(),F=null;if(m){let $=qu(m,[],q.mask?q.mask.pathname:"/",!0);U!=="/"&&($.pathname=$.pathname==="/"?U:pn([U,$.pathname])),F=k.createHref($)}let[oe,ce,ge]=a1(u,A),ne=p1(x,{replace:d,mask:m,state:g,target:p,preventScrollReset:b,relative:o,viewTransition:E,defaultShouldRevalidate:S,useTransitions:X});function W($){a&&a($),$.defaultPrevented||ne($)}let Se=!(I.isExternal||c),ae=z.createElement("a",{...A,...ge,href:(Se?F:void 0)||I.absoluteURL||te,onClick:Se?W:a,ref:o1(R,ce),target:p,"data-discover":!O&&r==="render"?"true":void 0});return oe&&!O?z.createElement(z.Fragment,null,ae,z.createElement(i1,{page:te})):ae});Xe.displayName="Link";var Fi=z.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=nr(d,{relative:p.relative}),E=$t(),S=z.useContext(Yu),{navigator:A,basename:R}=z.useContext(Zt),U=S!=null&&v1(b)&&m===!0,k=A.encodeLocation?A.encodeLocation(b).pathname:b.pathname,X=E.pathname,O=S&&S.navigation&&S.navigation.location?S.navigation.location.pathname:null;r||(X=X.toLowerCase(),O=O?O.toLowerCase():null,k=k.toLowerCase()),O&&R&&(O=Gn(O,R)||O);const I=k!=="/"&&k.endsWith("/")?k.length-1:k.length;let te=X===k||!o&&X.startsWith(k)&&X.charAt(I)==="/",q=O!=null&&(O===k||!o&&O.startsWith(k)&&O.charAt(k.length)==="/"),F={isActive:te,isPending:q,isTransitioning:U},oe=te?a:void 0,ce;typeof u=="function"?ce=u(F):ce=[u,te?"active":null,q?"pending":null,U?"transitioning":null].filter(Boolean).join(" ");let ge=typeof c=="function"?c(F):c;return z.createElement(Xe,{...p,"aria-current":oe,className:ce,ref:x,style:ge,to:d,viewTransition:m},typeof g=="function"?g(F):g)});Fi.displayName="NavLink";var h1=z.forwardRef(({discover:n="render",fetcherKey:a,navigate:r,reloadDocument:u,replace:o,state:c,method:d=ku,action:m,onSubmit:g,relative:p,preventScrollReset:x,viewTransition:b,defaultShouldRevalidate:E,...S},A)=>{let{useTransitions:R}=z.useContext(Zt),U=x1(),k=b1(m,{relative:p}),X=d.toLowerCase()==="get"?"get":"post",O=typeof m=="string"&&cy.test(m),I=te=>{if(g&&g(te),te.defaultPrevented)return;te.preventDefault();let q=te.nativeEvent.submitter,F=(q==null?void 0:q.getAttribute("formmethod"))||d,oe=()=>U(q||te.currentTarget,{fetcherKey:a,method:F,navigate:r,replace:o,state:c,relative:p,preventScrollReset:x,viewTransition:b,defaultShouldRevalidate:E});R&&r!==!1?z.startTransition(()=>oe()):oe()};return z.createElement("form",{ref:A,method:X,action:k,onSubmit:u?g:I,...S,"data-discover":!O&&n==="render"?"true":void 0})});h1.displayName="Form";function m1(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function fy(n){let a=z.useContext(Ya);return Je(a,m1(n)),a}function p1(n,{target:a,replace:r,mask:u,state:o,preventScrollReset:c,relative:d,viewTransition:m,defaultShouldRevalidate:g,useTransitions:p}={}){let x=Vu(),b=$t(),E=nr(n,{relative:d});return z.useCallback(S=>{if(G0(S,a)){S.preventDefault();let A=r!==void 0?r:Ua(b)===Ua(E),R=()=>x(n,{replace:A,mask:u,state:o,preventScrollReset:c,relative:d,viewTransition:m,defaultShouldRevalidate:g});p?z.startTransition(()=>R()):R()}},[b,x,E,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=z.useRef(Qc(n)),r=z.useRef(!1),u=$t(),o=z.useMemo(()=>X0(u.search,r.current?null:a.current),[u.search]),c=Vu(),d=z.useCallback((m,g)=>{const p=Qc(typeof m=="function"?m(new URLSearchParams(o)):m);r.current=!0,c("?"+p,g)},[c,o]);return[o,d]}var g1=0,y1=()=>`__${String(++g1)}__`;function x1(){let{router:n}=fy("useSubmit"),{basename:a}=z.useContext(Zt),r=D0(),u=n.fetch,o=n.navigate;return z.useCallback(async(c,d={})=>{let{action:m,method:g,encType:p,formData:x,body:b}=F0(c,a);if(d.navigate===!1){let E=d.fetcherKey||y1();await u(E,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 b1(n,{relative:a}={}){let{basename:r}=z.useContext(Zt),u=z.useContext(on);Je(u,"useFormAction must be used inside a RouteContext");let[o]=u.matches.slice(-1),c={...nr(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])),Ua(c)}function v1(n,{relative:a}={}){let r=z.useContext(ey);Je(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:u}=fy("useViewTransitionState"),o=nr(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 Mu(o.pathname,d)!=null||Mu(o.pathname,c)!=null}const dy=["messages","locales","attributes","segments","targets"],Ji={locales:"locale",messages:"message",attributes:"attribute",segments:"segment",targets:"target"},hy={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 jt(n){return encodeURIComponent(n)}function Ii(n){return n?`/sets/${jt(n)}`:""}function et(n,a,r){return`${Ii(r)}/${hy[n]}/${jt(a)}`}function Gu(n){return n?`/data/sets/${jt(n)}`:"/data/root"}let my="browser";function Qa(n){const a=n.replace(/^\//,"");return my==="browser"?`/${a}`:a}function S1(n){my=n||"browser"}async function ql(n){const a=await fetch(n);if(!a.ok)throw new Error(`Unable to load ${n}`);return a.json()}function py(){return ql(Qa("data/manifest.json")).catch(()=>ql("/data/manifest.json"))}function pf(n){return ql(Qa(`${Gu(n)}/index.json`))}function E1(n,a,r){return ql(Qa(`${Gu(r)}/entities/${n}/${jt(a)}.json`))}function w1(n,a){return ql(Qa(`${n}/page-${a}.json`))}function j1(n,a){return ql(Qa(`${Gu(a)}/duplicates/locales/${jt(n)}.json`))}const Tc=new Map;function N1(n){return Array.from(new TextEncoder().encode(n)).map(a=>a.toString(16).padStart(2,"0")).join("")}function T1(n,a){const r=`${a??"__root__"}:${n}`,u=Tc.get(r);return u?Promise.resolve(u):ql(Qa(`${Gu(a)}/translations/${N1(n)}.json`)).then(o=>(Tc.set(r,o),o)).catch(()=>{const o={};return Tc.set(r,o),o})}const gy=z.createContext(null);function C1(n){const[a,r]=z.useState(n.initialManifest||null),[u,o]=z.useState(null);return z.useEffect(()=>{n.initialManifest||py().then(r).catch(c=>o(c.message))},[n.initialManifest]),u?h.jsx("div",{className:"p-8 text-danger",children:u}):a?h.jsx(gy.Provider,{value:{manifest:a},children:n.children}):h.jsx("div",{className:"p-8 text-muted",children:"Loading catalog..."})}function Vl(){const n=z.useContext(gy);if(!n)throw new Error("useCatalog must be used inside CatalogProvider.");return n}const A1="/favicon.png",z1="/logo-text.png",Zp={page:"min-h-screen bg-background text-text",pageShell:"m-8 mx-auto max-w-5xl"};function k1({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 R1(n){const[a,r]=z.useState(null),u=Ii(n.setKey),o="History";return z.useEffect(()=>{r(null),pf(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:[dy.map(c=>{const d=Ji[c];return h.jsxs(Fi,{to:`${u}/${c}`,className:k1,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(Fi,{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 $p(n){return dy.indexOf(n)!==-1}function _1(n,a,r){const u=Ji[a];return(n.entities[u]||[]).some(c=>c.key===r)}async function O1(n,a){const r=jt(a),u=n.match(/^\/sets\/[^/]+\/([^/]+)$/);if(u&&$p(u[1]))return`/sets/${r}/${u[1]}`;if(n.match(/^\/sets\/[^/]+\/history$/))return`/sets/${r}/history`;const o=n.match(/^\/sets\/[^/]+\/([^/]+)\/([^/]+)(\/.*)?$/);if(o&&$p(o[1])){const c=o[1],d=decodeURIComponent(o[2]),m=o[3]||"";try{const g=await pf(a);return _1(g,c,d)?`/sets/${r}/${c}/${jt(d)}${m}`:`/sets/${r}/${c}`}catch{return`/sets/${r}/${c}`}}return`/sets/${r}/messages`}function M1(n){const{manifest:a}=Vl(),r=$t(),u=Vu(),o=z.useId(),c=z.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 O1(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 D1(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 L1(n){return n==="github"||n==="gitlab"||n==="bitbucket"}function B1(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 U1(n){var d;const{manifest:a}=Vl(),u=$t().pathname.match(/^\/sets\/([^/]+)/),o=u?decodeURIComponent(u[1]):void 0,c=!a.sets||!!o;return h.jsxs("div",{className:Zp.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(Fi,{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:A1,alt:"",width:32,height:32,className:"h-8 w-8 shrink-0 object-contain",decoding:"async"}),h.jsx("img",{src:z1,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(M1,{currentSetKey:o}),((d=a.links)==null?void 0:d.repository)&&L1(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(D1,{provider:a.links.provider})})]})]})}),h.jsx("main",{className:Zp.pageShell,children:h.jsxs("div",{className:c?"items-start gap-6 md:flex":"",children:[c&&h.jsx(R1,{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 ",B1(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 H1(){const{manifest:n}=Vl();if(!n.sets)return h.jsx(bl,{to:"/messages",replace:!0});const a=n.setKeys[0];return h.jsx(bl,{to:a?`/sets/${jt(a)}/messages`:"/history",replace:!0})}const q1={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 ${q1[n.tone||"neutral"]}`,children:n.children})}function Ha(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 Xu({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 yy({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})}const Fp=1e3,Cc=10;function Y1(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 Lu(n){const a=[],r=[];for(const u of Y1(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 V1(n,a,r){var m;const{freeText:u,qualifiers:o}=a;if(u.length>0){const g=n.key.toLowerCase();if(!u.every(p=>g.includes(p)))return!1}const c=o.some(g=>g.key==="has"&&g.value==="overrides"),d=o.filter(g=>g.key==="locale").map(g=>g.value.toLowerCase());for(const g of o)switch(g.key){case"description":{if(!(n.description||"").toLowerCase().includes(g.value.toLowerCase()))return!1;break}case"target":{if(!(n.targets||[]).map(x=>x.toLowerCase()).includes(g.value.toLowerCase()))return!1;break}case"is":{if(g.value==="deprecated"&&!n.deprecated||g.value==="archived"&&!n.archived)return!1;break}case"has":{if(g.value==="overrides"){if(d.length>0){const p=(n.overrideLocales||[]).map(x=>x.toLowerCase());if(!d.every(x=>p.includes(x)))return!1}else if(!((m=n.overrideLocales)!=null&&m.length))return!1}break}case"locale":{if(!c&&!(n.locales||[]).map(x=>x.toLowerCase()).includes(g.value.toLowerCase()))return!1;break}case"translation":{if(g.value.length<3||!r)return!0;const p=r[n.key];if(!p||p.length===0)return!1;if(g.value.length===3)break;const x=g.value.toLowerCase();if(!p.some(b=>b.includes(x)))return!1;break}}return!0}function xy(n,a,r){const u=a,o=r;return n==="message"?['translation:"keyword"',...u?[`target:${u}`]:[],...o?[`locale:${o}`]:[],'description:"keyword"',"has:overrides",...o?[`has:overrides locale:${o}`]:["has:overrides"],"is:deprecated","is:archived"]:null}function Q1({type:n,query:a,firstTargetKey:r,firstLocaleKey:u,onHintClick:o}){const c=xy(n,r,u);return c?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:"}),c.map(d=>{const m=a.trim().split(/\s+/).some(g=>g.toLowerCase()===d.toLowerCase());return h.jsx("button",{type:"button",onClick:()=>o(d),className:["cursor-pointer rounded px-1.5 py-0.5 font-mono transition-colors",m?"bg-primary/10 text-primary":"bg-elevated text-muted hover:text-text"].join(" "),children:d},d)})]}):null}function K1(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 G1(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:n.entity.lastModified.author})," on"," ",r]})}function X1(n,a){return n==="target"?[`${a.messageCount||0} ${a.messageCount===1?"message":"messages"}`]:a.targets||[]}function Z1(n){return!n||n==="name"||n==="name:asc"||n==="asc"?"asc":n==="-name"||n==="name:desc"||n==="desc"?"desc":"asc"}function Ac(n,a,r){const u=new URLSearchParams(n);return r?u.set(a,r):u.delete(a),u}function $1(n){var ge,ne,W,Se,ae,$;const[a,r]=Xn(),[u,o]=z.useState(!1),[c,d]=z.useState(!1),[m,g]=z.useState(null),[p,x]=z.useState(null),b=z.useRef(null),E=a.get("q")||"",[S,A]=z.useState(E);z.useEffect(()=>{A(E)},[E]);const R=(W=(ne=(ge=n.allEntities)==null?void 0:ge.target)==null?void 0:ne.find(M=>!M.archived))==null?void 0:W.key,U=($=(ae=(Se=n.allEntities)==null?void 0:Se.locale)==null?void 0:ae.find(M=>!M.archived))==null?void 0:$.key,k=xy(n.type,R,U)!==null,X=Lu(E).qualifiers.find(M=>M.key==="translation"),O=X&&X.value.length>=3?X.value.slice(0,3).toLowerCase():null;z.useEffect(()=>{if(b.current&&clearTimeout(b.current),!O){g(null),x(null);return}if(O!==p)return b.current=setTimeout(()=>{b.current=null,T1(O,n.setKey).then(M=>{g(M),x(O)})},300),()=>{b.current&&clearTimeout(b.current)}},[O,p,n.setKey]);const I=Z1(a.get("sort")),te=p===O?m:null,q=z.useMemo(()=>{const M=Lu(E),Z=E.trim().length>0;return n.entities.filter(pe=>Z?V1(pe,M,te):!0).slice().sort((pe,j)=>{const T=pe.key.localeCompare(pe.key===j.key?"":j.key);return I==="desc"?T*-1:T})},[E,n.entities,I,te]),F=u?q:q.slice(0,Fp),oe=q.length>Fp&&!u;z.useEffect(()=>{o(!1)},[E,I,n.type,n.setKey]);function ce(M){const Z=E.trim(),ie=Z.split(/\s+/).filter(Boolean),pe=ie.findIndex(T=>T.toLowerCase()===M.toLowerCase()),j=pe!==-1?ie.filter((T,V)=>V!==pe).join(" "):Z?`${Z} ${M}`:M;r(Ac(a,"q",j||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(Xu,{value:S,onChange:M=>{const Z=M.target.value;A(Z),r(Ac(a,"q",Z.trim()?Z:void 0))},placeholder:`Search ${Kn[n.type].plural.toLowerCase()}...`,className:k?"pr-10":""}),k&&h.jsx("button",{type:"button",onClick:()=>d(M=>!M),"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(Q1,{type:n.type,query:E,firstTargetKey:R,firstLocaleKey:U,onHintClick:ce})})})]}),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(Ac(a,"sort",I==="desc"?void 0:"-name")),"aria-label":I==="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:I==="desc"?"Z-A":"A-Z"})]})]})}),q.length===0&&h.jsx(Ha,{title:"No results found"}),h.jsx("div",{className:"divide-y divide-border bg-surface",children:F.map(M=>h.jsx(Xe,{to:et(n.type,M.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("div",{className:"font-bold text-primary",children:M.key}),h.jsx("div",{className:"mt-1 truncate text-sm text-muted",children:M.description||"No description"})]}),h.jsx("div",{className:"shrink-0",children:K1(M)})]}),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:X1(n.type,M).map(Z=>h.jsx(sn,{children:Z},Z))}),h.jsx("span",{className:"shrink-0 md:text-right",children:h.jsx(G1,{entity:M})})]})]})})},M.key))}),h.jsxs("div",{className:"space-y-4 px-6 pb-6",children:[h.jsxs("p",{className:"text-center text-sm text-muted",children:[F.length," of ",q.length," ",Kn[n.type].plural.toLowerCase(),q.length!==n.entities.length?` (${n.entities.length} total)`:""]}),oe&&h.jsx("div",{className:"flex justify-center",children:h.jsxs(yy,{onClick:()=>o(!0),children:["Load all ",q.length," ",Kn[n.type].plural.toLowerCase()]})})]})]})}function gf(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:"break-words text-3xl font-black text-text",children:n.title}),n.description&&h.jsx("div",{className:"mt-2 text-sm text-muted",children:n.description})]}),n.actions?h.jsx("div",{className:"shrink-0",children:n.actions}):null]})}function F1(n){return n==="locales"||n==="messages"||n==="attributes"||n==="segments"||n==="targets"}function Jp(){const{entityPath:n,setKey:a}=Qu(),[r,u]=z.useState(null),[o,c]=z.useState(null);if(z.useEffect(()=>{u(null),c(null),pf(a).then(u).catch(m=>c(m.message))},[a]),!F1(n))return h.jsx(bl,{to:"locales",replace:!0});const d=Ji[n];return o?h.jsx(Ha,{title:"Unable to load catalog index",description:o}):r?h.jsxs("div",{children:[h.jsx(gf,{title:Kn[d].plural}),h.jsx($1,{type:d,entities:r.entities[d],setKey:a,allEntities:r.entities})]}):h.jsxs("div",{className:"text-muted",children:["Loading ",Kn[d].plural.toLowerCase(),"..."]})}function J1(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 I1(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 P1(n){var p,x,b,E,S,A;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(R=>R.type==="month"))==null?void 0:p.value,o=(x=r.find(R=>R.type==="day"))==null?void 0:x.value,c=(b=r.find(R=>R.type==="year"))==null?void 0:b.value,d=(E=r.find(R=>R.type==="hour"))==null?void 0:E.value,m=(S=r.find(R=>R.type==="minute"))==null?void 0:S.value,g=(A=r.find(R=>R.type==="second"))==null?void 0:A.value;return!u||!o||!c||!d||!m||!g?n:`${u} ${J1(Number(o))}, ${c} at ${d}:${m}:${g} ${I1(a)}`}function W1(n){var c;const[a,r]=z.useState(!1),u=n.entry.entities.length>Cc,o=a?n.entry.entities:n.entry.entities.slice(0,Cc);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:P1(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",{children:[d.type!=="test"?Kn[d.type].singular:"Test"," ",d.type!=="test"?h.jsx(Xe,{className:"font-medium text-primary hover:underline",to:et(d.type,d.key,d.set||n.setKey),children:d.key}):d.key]},`${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-Cc} more)`})]},`${n.entry.commit}-${n.entry.timestamp}`)}function by(n){const[a,r]=z.useState([]),[u,o]=z.useState(0),[c,d]=z.useState(1),[m,g]=z.useState(null);async function p(x){try{const b=await w1(n.path,x);r(E=>[...E,...b.entries]),o(b.page),d(b.totalPages)}catch(b){g(b.message)}}return z.useEffect(()=>{r([]),o(0),d(1),g(null),p(1)},[n.path]),m?h.jsx(Ha,{title:"History unavailable",description:m}):a.length===0&&u>0?h.jsx(Ha,{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(W1,{entry:x,setKey:n.setKey,commitUrl:n.commitUrl},`${x.commit}-${x.timestamp}`))}),u<c&&h.jsx(yy,{onClick:()=>p(u+1),className:"w-full",children:"Load more"})]})}function Ip(){var u;const{manifest:n}=Vl(),{setKey:a}=Qu(),r=a?`/data/sets/${jt(a)}/history`:"/data/project/history";return h.jsxs("div",{children:[h.jsx(gf,{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(by,{path:r,setKey:a,commitUrl:(u=n.links)==null?void 0:u.commit})})]})}function eS(n){return h.jsxs("div",{children:[h.jsx("nav",{className:"border-b border-border",children:n.tabs.map(a=>h.jsx(Fi,{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 lr(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 tS={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 Pi(n){const a=tS[n.tone||"neutral"],r=n.to?h.jsx(Xe,{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 nS(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 text-sm",children:a.value||"n/a"})]},a.label))})}function Kc(n){return typeof n>"u"?"":n===null?"null":Array.isArray(n)?n.map(a=>Kc(a)).join(", "):typeof n=="object"?JSON.stringify(n):String(n)}function lS(n){return n.split(".")[0]}function aS(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(Xe,{to:et("attribute",lS(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:Kc(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:Kc(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 vy(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(vy,{condition:o,setKey:n.setKey},`${r}-${c}`))})]})}return h.jsx(aS,{condition:a,setKey:n.setKey})}function yf(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(vy,{condition:r,setKey:n.setKey},u))})}function iS(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(Xe,{to:et("segment",n.segmentKey,n.setKey),className:"font-semibold text-primary hover:underline",children:n.segmentKey})]})})}function Sy(n){if(typeof n.segment=="string")return h.jsx(iS,{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(Sy,{segment:u,setKey:n.setKey},`${a}-${o}`))})]})}function Ey(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(Sy,{segment:r,setKey:n.setKey},u))})}function rS(n,a){const r={};return(n[n.length-1]===""?[...n,""]:n).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const uS=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,sS=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,oS={};function Pp(n,a){return(oS.jsx?sS:uS).test(n)}const cS=/[ \t\n\f\r]/g;function fS(n){return typeof n=="object"?n.type==="text"?Wp(n.value):!1:Wp(n)}function Wp(n){return n.replace(cS,"")===""}class ar{constructor(a,r,u){this.normal=r,this.property=a,u&&(this.space=u)}}ar.prototype.normal={};ar.prototype.property={};ar.prototype.space=void 0;function wy(n,a){const r={},u={};for(const o of n)Object.assign(r,o.property),Object.assign(u,o.normal);return new ar(r,u,a)}function Gc(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 dS=0;const ve=Ql(),ut=Ql(),Xc=Ql(),J=Ql(),Ve=Ql(),Da=Ql(),Kt=Ql();function Ql(){return 2**++dS}const Zc=Object.freeze(Object.defineProperty({__proto__:null,boolean:ve,booleanish:ut,commaOrSpaceSeparated:Kt,commaSeparated:Da,number:J,overloadedBoolean:Xc,spaceSeparated:Ve},Symbol.toStringTag,{value:"Module"})),zc=Object.keys(Zc);class xf extends Dt{constructor(a,r,u,o){let c=-1;if(super(a,r),eg(this,"space",o),typeof u=="number")for(;++c<zc.length;){const d=zc[c];eg(this,zc[c],(u&Zc[d])===Zc[d])}}}xf.prototype.defined=!0;function eg(n,a,r){r&&(n[a]=r)}function Ka(n){const a={},r={};for(const[u,o]of Object.entries(n.properties)){const c=new xf(u,n.transform(n.attributes||{},u),o,n.space);n.mustUseProperty&&n.mustUseProperty.includes(u)&&(c.mustUseProperty=!0),a[u]=c,r[Gc(u)]=u,r[Gc(c.attribute)]=u}return new ar(a,r,n.space)}const jy=Ka({properties:{ariaActiveDescendant:null,ariaAtomic:ut,ariaAutoComplete:null,ariaBusy:ut,ariaChecked:ut,ariaColCount:J,ariaColIndex:J,ariaColSpan:J,ariaControls:Ve,ariaCurrent:null,ariaDescribedBy:Ve,ariaDetails:null,ariaDisabled:ut,ariaDropEffect:Ve,ariaErrorMessage:null,ariaExpanded:ut,ariaFlowTo:Ve,ariaGrabbed:ut,ariaHasPopup:null,ariaHidden:ut,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ve,ariaLevel:J,ariaLive:null,ariaModal:ut,ariaMultiLine:ut,ariaMultiSelectable:ut,ariaOrientation:null,ariaOwns:Ve,ariaPlaceholder:null,ariaPosInSet:J,ariaPressed:ut,ariaReadOnly:ut,ariaRelevant:null,ariaRequired:ut,ariaRoleDescription:Ve,ariaRowCount:J,ariaRowIndex:J,ariaRowSpan:J,ariaSelected:ut,ariaSetSize:J,ariaSort:null,ariaValueMax:J,ariaValueMin:J,ariaValueNow:J,ariaValueText:null,role:null},transform(n,a){return a==="role"?a:"aria-"+a.slice(4).toLowerCase()}});function Ny(n,a){return a in n?n[a]:a}function Ty(n,a){return Ny(n,a.toLowerCase())}const hS=Ka({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Da,acceptCharset:Ve,accessKey:Ve,action:null,allow:null,allowFullScreen:ve,allowPaymentRequest:ve,allowUserMedia:ve,alt:null,as:null,async:ve,autoCapitalize:null,autoComplete:Ve,autoFocus:ve,autoPlay:ve,blocking:Ve,capture:null,charSet:null,checked:ve,cite:null,className:Ve,cols:J,colSpan:null,content:null,contentEditable:ut,controls:ve,controlsList:Ve,coords:J|Da,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ve,defer:ve,dir:null,dirName:null,disabled:ve,download:Xc,draggable:ut,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ve,formTarget:null,headers:Ve,height:J,hidden:Xc,high:J,href:null,hrefLang:null,htmlFor:Ve,httpEquiv:Ve,id:null,imageSizes:null,imageSrcSet:null,inert:ve,inputMode:null,integrity:null,is:null,isMap:ve,itemId:null,itemProp:Ve,itemRef:Ve,itemScope:ve,itemType:Ve,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ve,low:J,manifest:null,max:null,maxLength:J,media:null,method:null,min:null,minLength:J,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:J,pattern:null,ping:Ve,placeholder:null,playsInline:ve,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ve,referrerPolicy:null,rel:Ve,required:ve,reversed:ve,rows:J,rowSpan:J,sandbox:Ve,scope:null,scoped:ve,seamless:ve,selected:ve,shadowRootClonable:ve,shadowRootDelegatesFocus:ve,shadowRootMode:null,shape:null,size:J,sizes:null,slot:null,span:J,spellCheck:ut,src:null,srcDoc:null,srcLang:null,srcSet:null,start:J,step:null,style:null,tabIndex:J,target:null,title:null,translate:null,type:null,typeMustMatch:ve,useMap:null,value:ut,width:J,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ve,axis:null,background:null,bgColor:null,border:J,borderColor:null,bottomMargin:J,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:J,leftMargin:J,link:null,longDesc:null,lowSrc:null,marginHeight:J,marginWidth:J,noResize:ve,noHref:ve,noShade:ve,noWrap:ve,object:null,profile:null,prompt:null,rev:null,rightMargin:J,rules:null,scheme:null,scrolling:ut,standby:null,summary:null,text:null,topMargin:J,valueType:null,version:null,vAlign:null,vLink:null,vSpace:J,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ve,disableRemotePlayback:ve,prefix:null,property:null,results:J,security:null,unselectable:null},space:"html",transform:Ty}),mS=Ka({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:J,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:J,amplitude:J,arabicForm:null,ascent:J,attributeName:null,attributeType:null,azimuth:J,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:J,by:null,calcMode:null,capHeight:J,className:Ve,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:J,diffuseConstant:J,direction:null,display:null,dur:null,divisor:J,dominantBaseline:null,download:ve,dx:null,dy:null,edgeMode:null,editable:null,elevation:J,enableBackground:null,end:null,event:null,exponent:J,externalResourcesRequired:null,fill:null,fillOpacity:J,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:Da,g2:Da,glyphName:Da,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:J,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:J,horizOriginX:J,horizOriginY:J,id:null,ideographic:J,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:J,k:J,k1:J,k2:J,k3:J,k4:J,kernelMatrix:Kt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:J,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:J,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:J,overlineThickness:J,paintOrder:null,panose1:null,path:null,pathLength:J,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ve,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:J,pointsAtY:J,pointsAtZ:J,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:J,specularExponent:J,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:J,strikethroughThickness:J,string:null,stroke:null,strokeDashArray:Kt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:J,strokeOpacity:J,strokeWidth:null,style:null,surfaceScale:J,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Kt,tabIndex:J,tableValues:null,target:null,targetX:J,targetY:J,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:J,underlineThickness:J,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:J,values:null,vAlphabetic:J,vMathematical:J,vectorEffect:null,vHanging:J,vIdeographic:J,version:null,vertAdvY:J,vertOriginX:J,vertOriginY:J,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:J,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Ny}),Cy=Ka({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()}}),Ay=Ka({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Ty}),zy=Ka({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(n,a){return"xml:"+a.slice(3).toLowerCase()}}),pS={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"},gS=/[A-Z]/g,tg=/-[a-z]/g,yS=/^data[-\w.:]+$/i;function xS(n,a){const r=Gc(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"&&yS.test(a)){if(a.charAt(4)==="-"){const c=a.slice(5).replace(tg,vS);u="data"+c.charAt(0).toUpperCase()+c.slice(1)}else{const c=a.slice(4);if(!tg.test(c)){let d=c.replace(gS,bS);d.charAt(0)!=="-"&&(d="-"+d),a="data"+d}}o=xf}return new o(u,a)}function bS(n){return"-"+n.toLowerCase()}function vS(n){return n.charAt(1).toUpperCase()}const SS=wy([jy,hS,Cy,Ay,zy],"html"),bf=wy([jy,mS,Cy,Ay,zy],"svg");function ES(n){return n.join(" ").trim()}var _a={},kc,ng;function wS(){if(ng)return kc;ng=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="",E="comment",S="declaration";function A(U,k){if(typeof U!="string")throw new TypeError("First argument must be a string");if(!U)return[];k=k||{};var X=1,O=1;function I(ae){var $=ae.match(a);$&&(X+=$.length);var M=ae.lastIndexOf(g);O=~M?ae.length-M:O+ae.length}function te(){var ae={line:X,column:O};return function($){return $.position=new q(ae),ce(),$}}function q(ae){this.start=ae,this.end={line:X,column:O},this.source=k.source}q.prototype.content=U;function F(ae){var $=new Error(k.source+":"+X+":"+O+": "+ae);if($.reason=ae,$.filename=k.source,$.line=X,$.column=O,$.source=U,!k.silent)throw $}function oe(ae){var $=ae.exec(U);if($){var M=$[0];return I(M),U=U.slice(M.length),$}}function ce(){oe(r)}function ge(ae){var $;for(ae=ae||[];$=ne();)$!==!1&&ae.push($);return ae}function ne(){var ae=te();if(!(p!=U.charAt(0)||x!=U.charAt(1))){for(var $=2;b!=U.charAt($)&&(x!=U.charAt($)||p!=U.charAt($+1));)++$;if($+=2,b===U.charAt($-1))return F("End of comment missing");var M=U.slice(2,$-2);return O+=2,I(M),U=U.slice($),O+=2,ae({type:E,comment:M})}}function W(){var ae=te(),$=oe(u);if($){if(ne(),!oe(o))return F("property missing ':'");var M=oe(c),Z=ae({type:S,property:R($[0].replace(n,b)),value:M?R(M[0].replace(n,b)):b});return oe(d),Z}}function Se(){var ae=[];ge(ae);for(var $;$=W();)$!==!1&&(ae.push($),ge(ae));return ae}return ce(),Se()}function R(U){return U?U.replace(m,b):b}return kc=A,kc}var lg;function jS(){if(lg)return _a;lg=1;var n=_a&&_a.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(_a,"__esModule",{value:!0}),_a.default=r;const a=n(wS());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 _a}var Vi={},ag;function NS(){if(ag)return Vi;ag=1,Object.defineProperty(Vi,"__esModule",{value:!0}),Vi.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 Vi.camelCase=g,Vi}var Qi,ig;function TS(){if(ig)return Qi;ig=1;var n=Qi&&Qi.__importDefault||function(o){return o&&o.__esModule?o:{default:o}},a=n(jS()),r=NS();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,Qi=u,Qi}var CS=TS();const AS=Qg(CS),ky=Ry("end"),vf=Ry("start");function Ry(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 zS(n){const a=vf(n),r=ky(n);if(a&&r)return{start:a,end:r}}function Xi(n){return!n||typeof n!="object"?"":"position"in n||"type"in n?rg(n.position):"start"in n||"end"in n?rg(n):"line"in n||"column"in n?$c(n):""}function $c(n){return ug(n&&n.line)+":"+ug(n&&n.column)}function rg(n){return $c(n&&n.start)+"-"+$c(n&&n.end)}function ug(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=Xi(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 Sf={}.hasOwnProperty,kS=new Map,RS=/[A-Z]/g,_S=new Set(["table","tbody","thead","tfoot","tr"]),OS=new Set(["td","th"]),_y="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function MS(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=VS(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=YS(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"?bf:SS,stylePropertyNameCase:a.stylePropertyNameCase||"dom",tableCellAlignToStyle:a.tableCellAlignToStyle!==!1},c=Oy(o,n,void 0);return c&&typeof c!="string"?c:o.create(n,o.Fragment,{children:c||void 0},void 0)}function Oy(n,a,r){if(a.type==="element")return DS(n,a,r);if(a.type==="mdxFlowExpression"||a.type==="mdxTextExpression")return LS(n,a);if(a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement")return US(n,a,r);if(a.type==="mdxjsEsm")return BS(n,a);if(a.type==="root")return HS(n,a,r);if(a.type==="text")return qS(n,a)}function DS(n,a,r){const u=n.schema;let o=u;a.tagName.toLowerCase()==="svg"&&u.space==="html"&&(o=bf,n.schema=o),n.ancestors.push(a);const c=Dy(n,a.tagName,!1),d=QS(n,a);let m=wf(n,a);return _S.has(a.tagName)&&(m=m.filter(function(g){return typeof g=="string"?!fS(g):!0})),My(n,d,c,a),Ef(d,m),n.ancestors.pop(),n.schema=u,n.create(a,c,d,r)}function LS(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)}Wi(n,a.position)}function BS(n,a){if(a.data&&a.data.estree&&n.evaluater)return n.evaluater.evaluateProgram(a.data.estree);Wi(n,a.position)}function US(n,a,r){const u=n.schema;let o=u;a.name==="svg"&&u.space==="html"&&(o=bf,n.schema=o),n.ancestors.push(a);const c=a.name===null?n.Fragment:Dy(n,a.name,!0),d=KS(n,a),m=wf(n,a);return My(n,d,c,a),Ef(d,m),n.ancestors.pop(),n.schema=u,n.create(a,c,d,r)}function HS(n,a,r){const u={};return Ef(u,wf(n,a)),n.create(a,n.Fragment,u,r)}function qS(n,a){return a.value}function My(n,a,r,u){typeof r!="string"&&r!==n.Fragment&&n.passNode&&(a.node=u)}function Ef(n,a){if(a.length>0){const r=a.length>1?a:a[0];r&&(n.children=r)}}function YS(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 VS(n,a){return r;function r(u,o,c,d){const m=Array.isArray(c.children),g=vf(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 QS(n,a){const r={};let u,o;for(o in a.properties)if(o!=="children"&&Sf.call(a.properties,o)){const c=GS(n,o,a.properties[o]);if(c){const[d,m]=c;n.tableCellAlignToStyle&&d==="align"&&typeof m=="string"&&OS.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 KS(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 Wi(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 Wi(n,a.position);else c=u.value===null?!0:u.value;r[o]=c}return r}function wf(n,a){const r=[];let u=-1;const o=n.passKeys?new Map:kS;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=Oy(n,c,d);m!==void 0&&r.push(m)}return r}function GS(n,a,r){const u=xS(n.schema,a);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=u.commaSeparated?rS(r):ES(r)),u.property==="style"){let o=typeof r=="object"?r:XS(n,String(r));return n.stylePropertyNameCase==="css"&&(o=ZS(o)),["style",o]}return[n.elementAttributeNameCase==="react"&&u.space?pS[u.property]||u.property:u.attribute,r]}}function XS(n,a){try{return AS(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=_y+"#cannot-parse-style-attribute",o}}function Dy(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=Pp(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=Pp(a)&&!/^[a-z]/.test(a)?{type:"Identifier",name:a}:{type:"Literal",value:a};if(u.type==="Literal"){const o=u.value;return Sf.call(n.components,o)?n.components[o]:o}if(n.evaluater)return n.evaluater.evaluateExpression(u);Wi(n)}function Wi(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=_y+"#cannot-handle-mdx-estrees-without-createevaluater",r}function ZS(n){const a={};let r;for(r in n)Sf.call(n,r)&&(a[$S(r)]=n[r]);return a}function $S(n){let a=n.replace(RS,FS);return a.slice(0,3)==="ms-"&&(a="-"+a),a}function FS(n){return"-"+n.toLowerCase()}const Rc={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"]},JS={};function IS(n,a){const r=JS,u=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,o=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return Ly(n,u,o)}function Ly(n,a,r){if(PS(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 sg(n.children,a,r)}return Array.isArray(n)?sg(n,a,r):""}function sg(n,a,r){const u=[];let o=-1;for(;++o<n.length;)u[o]=Ly(n[o],a,r);return u.join("")}function PS(n){return!!(n&&typeof n=="object")}const og=document.createElement("i");function jf(n){const a="&"+n+";";og.innerHTML=a;const r=og.textContent;return r.charCodeAt(r.length-1)===59&&n!=="semi"||r===a?!1:r}function En(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?(En(n,n.length,0,a),n):a}const cg={}.hasOwnProperty;function WS(n){const a={};let r=-1;for(;++r<n.length;)e2(a,n[r]);return a}function e2(n,a){let r;for(r in a){const o=(cg.call(n,r)?n[r]:void 0)||(n[r]={}),c=a[r];let d;if(c)for(d in c){cg.call(o,d)||(o[d]=[]);const m=c[d];t2(o[d],Array.isArray(m)?m:m?[m]:[])}}}function t2(n,a){let r=-1;const u=[];for(;++r<a.length;)(a[r].add==="after"?n:u).push(a[r]);En(n,0,0,u)}function By(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 La(n){return n.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Sn=vl(/[A-Za-z]/),Gt=vl(/[\dA-Za-z]/),n2=vl(/[#-'*+\--9=?A-Z^-~]/);function Fc(n){return n!==null&&(n<32||n===127)}const Jc=vl(/\d/),l2=vl(/[\dA-Fa-f]/),a2=vl(/[!-/:-@[-`{-~]/);function me(n){return n!==null&&n<-2}function Mt(n){return n!==null&&(n<0||n===32)}function _e(n){return n===-2||n===-1||n===32}const i2=vl(new RegExp("\\p{P}|\\p{S}","u")),r2=vl(/\s/);function vl(n){return a;function a(r){return r!==null&&r>-1&&n.test(String.fromCharCode(r))}}function Ga(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 Qe(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 u2={tokenize:s2};function s2(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"),Qe(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 me(m)?(n.consume(m),n.exit("chunkText"),c):(n.consume(m),d)}}const o2={tokenize:c2},fg={tokenize:f2};function c2(n){const a=this,r=[];let u=0,o,c,d;return m;function m(O){if(u<r.length){const I=r[u];return a.containerState=I[1],n.attempt(I[0].continuation,g,p)(O)}return p(O)}function g(O){if(u++,a.containerState._closeFlow){a.containerState._closeFlow=void 0,o&&X();const I=a.events.length;let te=I,q;for(;te--;)if(a.events[te][0]==="exit"&&a.events[te][1].type==="chunkFlow"){q=a.events[te][1].end;break}k(u);let F=I;for(;F<a.events.length;)a.events[F][1].end={...q},F++;return En(a.events,te+1,0,a.events.slice(I)),a.events.length=F,p(O)}return m(O)}function p(O){if(u===r.length){if(!o)return E(O);if(o.currentConstruct&&o.currentConstruct.concrete)return A(O);a.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return a.containerState={},n.check(fg,x,b)(O)}function x(O){return o&&X(),k(u),E(O)}function b(O){return a.parser.lazy[a.now().line]=u!==r.length,d=a.now().offset,A(O)}function E(O){return a.containerState={},n.attempt(fg,S,A)(O)}function S(O){return u++,r.push([a.currentConstruct,a.containerState]),E(O)}function A(O){if(O===null){o&&X(),k(0),n.consume(O);return}return o=o||a.parser.flow(a.now()),n.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:c}),R(O)}function R(O){if(O===null){U(n.exit("chunkFlow"),!0),k(0),n.consume(O);return}return me(O)?(n.consume(O),U(n.exit("chunkFlow")),u=0,a.interrupt=void 0,m):(n.consume(O),R)}function U(O,I){const te=a.sliceStream(O);if(I&&te.push(null),O.previous=c,c&&(c.next=O),c=O,o.defineSkip(O.start),o.write(te),a.parser.lazy[O.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 F=a.events.length;let oe=F,ce,ge;for(;oe--;)if(a.events[oe][0]==="exit"&&a.events[oe][1].type==="chunkFlow"){if(ce){ge=a.events[oe][1].end;break}ce=!0}for(k(u),q=F;q<a.events.length;)a.events[q][1].end={...ge},q++;En(a.events,oe+1,0,a.events.slice(F)),a.events.length=q}}function k(O){let I=r.length;for(;I-- >O;){const te=r[I];a.containerState=te[1],te[0].exit.call(a,n)}r.length=O}function X(){o.write([null]),c=void 0,o=void 0,a.containerState._closeFlow=void 0}}function f2(n,a,r){return Qe(n,n.attempt(this.parser.constructs.document,a,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function dg(n){if(n===null||Mt(n)||r2(n))return 1;if(i2(n))return 2}function Nf(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 Ic={name:"attention",resolveAll:d2,tokenize:h2};function d2(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},E={...n[r][1].start};hg(b,-g),hg(E,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:E},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,Nf(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,En(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 h2(n,a){const r=this.parser.constructs.attentionMarkers.null,u=this.previous,o=dg(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=dg(g),b=!x||x===2&&o||r.includes(g),E=!o||o===2&&x||r.includes(u);return p._open=!!(c===42?b:b&&(o||!E)),p._close=!!(c===42?E:E&&(x||!b)),a(g)}}function hg(n,a){n.column+=a,n.offset+=a,n._bufferIndex+=a}const m2={name:"autolink",tokenize:p2};function p2(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||Fc(S)?r(S):(n.consume(S),g)}function p(S){return S===64?(n.consume(S),x):n2(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):E(S)}function E(S){if((S===45||Gt(S))&&u++<63){const A=S===45?E:b;return n.consume(S),A}return r(S)}}const Zu={partial:!0,tokenize:g2};function g2(n,a,r){return u;function u(c){return _e(c)?Qe(n,o,"linePrefix")(c):o(c)}function o(c){return c===null||me(c)?a(c):r(c)}}const Uy={continuation:{tokenize:x2},exit:b2,name:"blockQuote",tokenize:y2};function y2(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 x2(n,a,r){const u=this;return o;function o(d){return _e(d)?Qe(n,c,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d):c(d)}function c(d){return n.attempt(Uy,a,r)(d)}}function b2(n){n.exit("blockQuote")}const Hy={name:"characterEscape",tokenize:v2};function v2(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 a2(c)?(n.enter("characterEscapeValue"),n.consume(c),n.exit("characterEscapeValue"),n.exit("characterEscape"),a):r(c)}}const qy={name:"characterReference",tokenize:S2};function S2(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=l2,x):(n.enter("characterReferenceValue"),c=7,d=Jc,x(b))}function x(b){if(b===59&&o){const E=n.exit("characterReferenceValue");return d===Gt&&!jf(u.sliceSerialize(E))?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 mg={partial:!0,tokenize:w2},pg={concrete:!0,name:"codeFenced",tokenize:E2};function E2(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 F=u.events[u.events.length-1];return c=F&&F[1].type==="linePrefix"?F[2].sliceSerialize(F[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)?Qe(n,b,"whitespace")(q):b(q))}function b(q){return q===null||me(q)?(n.exit("codeFencedFence"),u.interrupt?a(q):n.check(mg,R,I)(q)):(n.enter("codeFencedFenceInfo"),n.enter("chunkString",{contentType:"string"}),E(q))}function E(q){return q===null||me(q)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),b(q)):_e(q)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),Qe(n,S,"whitespace")(q)):q===96&&q===m?r(q):(n.consume(q),E)}function S(q){return q===null||me(q)?b(q):(n.enter("codeFencedFenceMeta"),n.enter("chunkString",{contentType:"string"}),A(q))}function A(q){return q===null||me(q)?(n.exit("chunkString"),n.exit("codeFencedFenceMeta"),b(q)):q===96&&q===m?r(q):(n.consume(q),A)}function R(q){return n.attempt(o,I,U)(q)}function U(q){return n.enter("lineEnding"),n.consume(q),n.exit("lineEnding"),k}function k(q){return c>0&&_e(q)?Qe(n,X,"linePrefix",c+1)(q):X(q)}function X(q){return q===null||me(q)?n.check(mg,R,I)(q):(n.enter("codeFlowValue"),O(q))}function O(q){return q===null||me(q)?(n.exit("codeFlowValue"),X(q)):(n.consume(q),O)}function I(q){return n.exit("codeFenced"),a(q)}function te(q,F,oe){let ce=0;return ge;function ge($){return q.enter("lineEnding"),q.consume($),q.exit("lineEnding"),ne}function ne($){return q.enter("codeFencedFence"),_e($)?Qe(q,W,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)($):W($)}function W($){return $===m?(q.enter("codeFencedFenceSequence"),Se($)):oe($)}function Se($){return $===m?(ce++,q.consume($),Se):ce>=d?(q.exit("codeFencedFenceSequence"),_e($)?Qe(q,ae,"whitespace")($):ae($)):oe($)}function ae($){return $===null||me($)?(q.exit("codeFencedFence"),F($)):oe($)}}}function w2(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 _c={name:"codeIndented",tokenize:N2},j2={partial:!0,tokenize:T2};function N2(n,a,r){const u=this;return o;function o(p){return n.enter("codeIndented"),Qe(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):me(p)?n.attempt(j2,d,g)(p):(n.enter("codeFlowValue"),m(p))}function m(p){return p===null||me(p)?(n.exit("codeFlowValue"),d(p)):(n.consume(p),m)}function g(p){return n.exit("codeIndented"),a(p)}}function T2(n,a,r){const u=this;return o;function o(d){return u.parser.lazy[u.now().line]?r(d):me(d)?(n.enter("lineEnding"),n.consume(d),n.exit("lineEnding"),o):Qe(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):me(d)?o(d):r(d)}}const C2={name:"codeText",previous:z2,resolve:A2,tokenize:k2};function A2(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 z2(n){return n!==96||this.events[this.events.length-1][1].type==="characterEscape"}function k2(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)):me(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||me(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 R2{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&&Ki(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),Ki(this.left,a)}unshift(a){this.setCursor(0),this.right.push(a)}unshiftMany(a){this.setCursor(0),Ki(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);Ki(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-a,Number.POSITIVE_INFINITY);Ki(this.left,r.reverse())}}}function Ki(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 Yy(n){const a={};let r=-1,u,o,c,d,m,g,p;const x=new R2(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,_2(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 En(n,0,Number.POSITIVE_INFINITY,x.slice(0)),!p}function _2(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,E=-1,S=r,A=0,R=0;const U=[R];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;++E<m.length;)m[E][0]==="exit"&&m[E-1][0]==="enter"&&m[E][1].type===m[E-1][1].type&&m[E][1].start.line!==m[E][1].end.line&&(R=E+1,U.push(R),S._tokenizer=void 0,S.previous=void 0,S=S.next);for(d.events=[],S?(S._tokenizer=void 0,S.previous=void 0):U.pop(),E=U.length;E--;){const k=m.slice(U[E],U[E+1]),X=c.pop();g.push([X,X+k.length-1]),n.splice(X,2,k)}for(g.reverse(),E=-1;++E<g.length;)p[A+g[E][0]]=A+g[E][1],A+=g[E][1]-g[E][0]-1;return p}const O2={resolve:D2,tokenize:L2},M2={partial:!0,tokenize:B2};function D2(n){return Yy(n),n}function L2(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):me(m)?n.check(M2,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 B2(n,a,r){const u=this;return o;function o(d){return n.exit("chunkContent"),n.enter("lineEnding"),n.consume(d),n.exit("lineEnding"),Qe(n,c,"linePrefix")}function c(d){if(d===null||me(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 Vy(n,a,r,u,o,c,d,m,g){const p=g||Number.POSITIVE_INFINITY;let x=0;return b;function b(k){return k===60?(n.enter(u),n.enter(o),n.enter(c),n.consume(k),n.exit(c),E):k===null||k===32||k===41||Fc(k)?r(k):(n.enter(u),n.enter(d),n.enter(m),n.enter("chunkString",{contentType:"string"}),R(k))}function E(k){return k===62?(n.enter(c),n.consume(k),n.exit(c),n.exit(o),n.exit(u),a):(n.enter(m),n.enter("chunkString",{contentType:"string"}),S(k))}function S(k){return k===62?(n.exit("chunkString"),n.exit(m),E(k)):k===null||k===60||me(k)?r(k):(n.consume(k),k===92?A:S)}function A(k){return k===60||k===62||k===92?(n.consume(k),S):S(k)}function R(k){return!x&&(k===null||k===41||Mt(k))?(n.exit("chunkString"),n.exit(m),n.exit(d),n.exit(u),a(k)):x<p&&k===40?(n.consume(k),x++,R):k===41?(n.consume(k),x--,R):k===null||k===32||k===40||Fc(k)?r(k):(n.consume(k),k===92?U:R)}function U(k){return k===40||k===41||k===92?(n.consume(k),R):R(k)}}function Qy(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):me(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||me(S)||m++>999?(n.exit("chunkString"),x(S)):(n.consume(S),g||(g=!_e(S)),S===92?E:b)}function E(S){return S===91||S===92||S===93?(n.consume(S),m++,b):b(S)}}function Ky(n,a,r,u,o,c){let d;return m;function m(E){return E===34||E===39||E===40?(n.enter(u),n.enter(o),n.consume(E),n.exit(o),d=E===40?41:E,g):r(E)}function g(E){return E===d?(n.enter(o),n.consume(E),n.exit(o),n.exit(u),a):(n.enter(c),p(E))}function p(E){return E===d?(n.exit(c),g(d)):E===null?r(E):me(E)?(n.enter("lineEnding"),n.consume(E),n.exit("lineEnding"),Qe(n,p,"linePrefix")):(n.enter("chunkString",{contentType:"string"}),x(E))}function x(E){return E===d||E===null||me(E)?(n.exit("chunkString"),p(E)):(n.consume(E),E===92?b:x)}function b(E){return E===d||E===92?(n.consume(E),x):x(E)}}function Zi(n,a){let r;return u;function u(o){return me(o)?(n.enter("lineEnding"),n.consume(o),n.exit("lineEnding"),r=!0,u):_e(o)?Qe(n,u,r?"linePrefix":"lineSuffix")(o):a(o)}}const U2={name:"definition",tokenize:q2},H2={partial:!0,tokenize:Y2};function q2(n,a,r){const u=this;let o;return c;function c(S){return n.enter("definition"),d(S)}function d(S){return Qy.call(u,n,m,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(S)}function m(S){return o=La(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 Mt(S)?Zi(n,p)(S):p(S)}function p(S){return Vy(n,x,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(S)}function x(S){return n.attempt(H2,b,b)(S)}function b(S){return _e(S)?Qe(n,E,"whitespace")(S):E(S)}function E(S){return S===null||me(S)?(n.exit("definition"),u.parser.defined.push(o),a(S)):r(S)}}function Y2(n,a,r){return u;function u(m){return Mt(m)?Zi(n,o)(m):r(m)}function o(m){return Ky(n,c,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(m)}function c(m){return _e(m)?Qe(n,d,"whitespace")(m):d(m)}function d(m){return m===null||me(m)?a(m):r(m)}}const V2={name:"hardBreakEscape",tokenize:Q2};function Q2(n,a,r){return u;function u(c){return n.enter("hardBreakEscape"),n.consume(c),o}function o(c){return me(c)?(n.exit("hardBreakEscape"),a(c)):r(c)}}const K2={name:"headingAtx",resolve:G2,tokenize:X2};function G2(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"},En(n,u,r-u+1,[["enter",o,a],["enter",c,a],["exit",c,a],["exit",o,a]])),n}function X2(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||Mt(x)?(n.exit("atxHeadingSequence"),m(x)):r(x)}function m(x){return x===35?(n.enter("atxHeadingSequence"),g(x)):x===null||me(x)?(n.exit("atxHeading"),a(x)):_e(x)?Qe(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||Mt(x)?(n.exit("atxHeadingText"),m(x)):(n.consume(x),p)}}const Z2=["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"],gg=["pre","script","style","textarea"],$2={concrete:!0,name:"htmlFlow",resolveTo:I2,tokenize:P2},F2={partial:!0,tokenize:eE},J2={partial:!0,tokenize:W2};function I2(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 P2(n,a,r){const u=this;let o,c,d,m,g;return p;function p(w){return x(w)}function x(w){return n.enter("htmlFlow"),n.enter("htmlFlowData"),n.consume(w),b}function b(w){return w===33?(n.consume(w),E):w===47?(n.consume(w),c=!0,R):w===63?(n.consume(w),o=3,u.interrupt?a:j):Sn(w)?(n.consume(w),d=String.fromCharCode(w),U):r(w)}function E(w){return w===45?(n.consume(w),o=2,S):w===91?(n.consume(w),o=5,m=0,A):Sn(w)?(n.consume(w),o=4,u.interrupt?a:j):r(w)}function S(w){return w===45?(n.consume(w),u.interrupt?a:j):r(w)}function A(w){const ee="CDATA[";return w===ee.charCodeAt(m++)?(n.consume(w),m===ee.length?u.interrupt?a:W:A):r(w)}function R(w){return Sn(w)?(n.consume(w),d=String.fromCharCode(w),U):r(w)}function U(w){if(w===null||w===47||w===62||Mt(w)){const ee=w===47,de=d.toLowerCase();return!ee&&!c&&gg.includes(de)?(o=1,u.interrupt?a(w):W(w)):Z2.includes(d.toLowerCase())?(o=6,ee?(n.consume(w),k):u.interrupt?a(w):W(w)):(o=7,u.interrupt&&!u.parser.lazy[u.now().line]?r(w):c?X(w):O(w))}return w===45||Gt(w)?(n.consume(w),d+=String.fromCharCode(w),U):r(w)}function k(w){return w===62?(n.consume(w),u.interrupt?a:W):r(w)}function X(w){return _e(w)?(n.consume(w),X):ge(w)}function O(w){return w===47?(n.consume(w),ge):w===58||w===95||Sn(w)?(n.consume(w),I):_e(w)?(n.consume(w),O):ge(w)}function I(w){return w===45||w===46||w===58||w===95||Gt(w)?(n.consume(w),I):te(w)}function te(w){return w===61?(n.consume(w),q):_e(w)?(n.consume(w),te):O(w)}function q(w){return w===null||w===60||w===61||w===62||w===96?r(w):w===34||w===39?(n.consume(w),g=w,F):_e(w)?(n.consume(w),q):oe(w)}function F(w){return w===g?(n.consume(w),g=null,ce):w===null||me(w)?r(w):(n.consume(w),F)}function oe(w){return w===null||w===34||w===39||w===47||w===60||w===61||w===62||w===96||Mt(w)?te(w):(n.consume(w),oe)}function ce(w){return w===47||w===62||_e(w)?O(w):r(w)}function ge(w){return w===62?(n.consume(w),ne):r(w)}function ne(w){return w===null||me(w)?W(w):_e(w)?(n.consume(w),ne):r(w)}function W(w){return w===45&&o===2?(n.consume(w),M):w===60&&o===1?(n.consume(w),Z):w===62&&o===4?(n.consume(w),T):w===63&&o===3?(n.consume(w),j):w===93&&o===5?(n.consume(w),pe):me(w)&&(o===6||o===7)?(n.exit("htmlFlowData"),n.check(F2,V,Se)(w)):w===null||me(w)?(n.exit("htmlFlowData"),Se(w)):(n.consume(w),W)}function Se(w){return n.check(J2,ae,V)(w)}function ae(w){return n.enter("lineEnding"),n.consume(w),n.exit("lineEnding"),$}function $(w){return w===null||me(w)?Se(w):(n.enter("htmlFlowData"),W(w))}function M(w){return w===45?(n.consume(w),j):W(w)}function Z(w){return w===47?(n.consume(w),d="",ie):W(w)}function ie(w){if(w===62){const ee=d.toLowerCase();return gg.includes(ee)?(n.consume(w),T):W(w)}return Sn(w)&&d.length<8?(n.consume(w),d+=String.fromCharCode(w),ie):W(w)}function pe(w){return w===93?(n.consume(w),j):W(w)}function j(w){return w===62?(n.consume(w),T):w===45&&o===2?(n.consume(w),j):W(w)}function T(w){return w===null||me(w)?(n.exit("htmlFlowData"),V(w)):(n.consume(w),T)}function V(w){return n.exit("htmlFlow"),a(w)}}function W2(n,a,r){const u=this;return o;function o(d){return me(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 eE(n,a,r){return u;function u(o){return n.enter("lineEnding"),n.consume(o),n.exit("lineEnding"),n.attempt(Zu,a,r)}}const tE={name:"htmlText",tokenize:nE};function nE(n,a,r){const u=this;let o,c,d;return m;function m(j){return n.enter("htmlText"),n.enter("htmlTextData"),n.consume(j),g}function g(j){return j===33?(n.consume(j),p):j===47?(n.consume(j),te):j===63?(n.consume(j),O):Sn(j)?(n.consume(j),oe):r(j)}function p(j){return j===45?(n.consume(j),x):j===91?(n.consume(j),c=0,A):Sn(j)?(n.consume(j),X):r(j)}function x(j){return j===45?(n.consume(j),S):r(j)}function b(j){return j===null?r(j):j===45?(n.consume(j),E):me(j)?(d=b,Z(j)):(n.consume(j),b)}function E(j){return j===45?(n.consume(j),S):b(j)}function S(j){return j===62?M(j):j===45?E(j):b(j)}function A(j){const T="CDATA[";return j===T.charCodeAt(c++)?(n.consume(j),c===T.length?R:A):r(j)}function R(j){return j===null?r(j):j===93?(n.consume(j),U):me(j)?(d=R,Z(j)):(n.consume(j),R)}function U(j){return j===93?(n.consume(j),k):R(j)}function k(j){return j===62?M(j):j===93?(n.consume(j),k):R(j)}function X(j){return j===null||j===62?M(j):me(j)?(d=X,Z(j)):(n.consume(j),X)}function O(j){return j===null?r(j):j===63?(n.consume(j),I):me(j)?(d=O,Z(j)):(n.consume(j),O)}function I(j){return j===62?M(j):O(j)}function te(j){return Sn(j)?(n.consume(j),q):r(j)}function q(j){return j===45||Gt(j)?(n.consume(j),q):F(j)}function F(j){return me(j)?(d=F,Z(j)):_e(j)?(n.consume(j),F):M(j)}function oe(j){return j===45||Gt(j)?(n.consume(j),oe):j===47||j===62||Mt(j)?ce(j):r(j)}function ce(j){return j===47?(n.consume(j),M):j===58||j===95||Sn(j)?(n.consume(j),ge):me(j)?(d=ce,Z(j)):_e(j)?(n.consume(j),ce):M(j)}function ge(j){return j===45||j===46||j===58||j===95||Gt(j)?(n.consume(j),ge):ne(j)}function ne(j){return j===61?(n.consume(j),W):me(j)?(d=ne,Z(j)):_e(j)?(n.consume(j),ne):ce(j)}function W(j){return j===null||j===60||j===61||j===62||j===96?r(j):j===34||j===39?(n.consume(j),o=j,Se):me(j)?(d=W,Z(j)):_e(j)?(n.consume(j),W):(n.consume(j),ae)}function Se(j){return j===o?(n.consume(j),o=void 0,$):j===null?r(j):me(j)?(d=Se,Z(j)):(n.consume(j),Se)}function ae(j){return j===null||j===34||j===39||j===60||j===61||j===96?r(j):j===47||j===62||Mt(j)?ce(j):(n.consume(j),ae)}function $(j){return j===47||j===62||Mt(j)?ce(j):r(j)}function M(j){return j===62?(n.consume(j),n.exit("htmlTextData"),n.exit("htmlText"),a):r(j)}function Z(j){return n.exit("htmlTextData"),n.enter("lineEnding"),n.consume(j),n.exit("lineEnding"),ie}function ie(j){return _e(j)?Qe(n,pe,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(j):pe(j)}function pe(j){return n.enter("htmlTextData"),d(j)}}const Tf={name:"labelEnd",resolveAll:rE,resolveTo:uE,tokenize:sE},lE={tokenize:oE},aE={tokenize:cE},iE={tokenize:fE};function rE(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&&En(n,0,n.length,r),n}function uE(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,Nf(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]]),En(n,c,n.length,m),n}function sE(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(E){return c?c._inactive?b(E):(d=u.parser.defined.includes(La(u.sliceSerialize({start:c.end,end:u.now()}))),n.enter("labelEnd"),n.enter("labelMarker"),n.consume(E),n.exit("labelMarker"),n.exit("labelEnd"),g):r(E)}function g(E){return E===40?n.attempt(lE,x,d?x:b)(E):E===91?n.attempt(aE,x,d?p:b)(E):d?x(E):b(E)}function p(E){return n.attempt(iE,x,b)(E)}function x(E){return a(E)}function b(E){return c._balanced=!0,r(E)}}function oE(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 Mt(b)?Zi(n,c)(b):c(b)}function c(b){return b===41?x(b):Vy(n,d,m,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(b)}function d(b){return Mt(b)?Zi(n,g)(b):x(b)}function m(b){return r(b)}function g(b){return b===34||b===39||b===40?Ky(n,p,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(b):x(b)}function p(b){return Mt(b)?Zi(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 cE(n,a,r){const u=this;return o;function o(m){return Qy.call(u,n,c,d,"reference","referenceMarker","referenceString")(m)}function c(m){return u.parser.defined.includes(La(u.sliceSerialize(u.events[u.events.length-1][1]).slice(1,-1)))?a(m):r(m)}function d(m){return r(m)}}function fE(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 dE={name:"labelStartImage",resolveAll:Tf.resolveAll,tokenize:hE};function hE(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 mE={name:"labelStartLink",resolveAll:Tf.resolveAll,tokenize:pE};function pE(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 Oc={name:"lineEnding",tokenize:gE};function gE(n,a){return r;function r(u){return n.enter("lineEnding"),n.consume(u),n.exit("lineEnding"),Qe(n,a,"linePrefix")}}const _u={name:"thematicBreak",tokenize:yE};function yE(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||me(p))?(n.exit("thematicBreak"),a(p)):r(p)}function g(p){return p===o?(n.consume(p),u++,g):(n.exit("thematicBreakSequence"),_e(p)?Qe(n,m,"whitespace")(p):m(p))}}const Ot={continuation:{tokenize:SE},exit:wE,name:"list",tokenize:vE},xE={partial:!0,tokenize:jE},bE={partial:!0,tokenize:EE};function vE(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 A=u.containerState.type||(S===42||S===43||S===45?"listUnordered":"listOrdered");if(A==="listUnordered"?!u.containerState.marker||S===u.containerState.marker:Jc(S)){if(u.containerState.type||(u.containerState.type=A,n.enter(A,{_container:!0})),A==="listUnordered")return n.enter("listItemPrefix"),S===42||S===45?n.check(_u,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 Jc(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(Zu,u.interrupt?r:x,n.attempt(xE,E,b))}function x(S){return u.containerState.initialBlankLine=!0,c++,E(S)}function b(S){return _e(S)?(n.enter("listItemPrefixWhitespace"),n.consume(S),n.exit("listItemPrefixWhitespace"),E):r(S)}function E(S){return u.containerState.size=c+u.sliceSerialize(n.exit("listItemPrefix"),!0).length,a(S)}}function SE(n,a,r){const u=this;return u.containerState._closeFlow=void 0,n.check(Zu,o,c);function o(m){return u.containerState.furtherBlankLines=u.containerState.furtherBlankLines||u.containerState.initialBlankLine,Qe(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(bE,a,d)(m))}function d(m){return u.containerState._closeFlow=!0,u.interrupt=void 0,Qe(n,n.attempt(Ot,a,r),"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(m)}}function EE(n,a,r){const u=this;return Qe(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 wE(n){n.exit(this.containerState.type)}function jE(n,a,r){const u=this;return Qe(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 yg={name:"setextUnderline",resolveTo:NE,tokenize:TE};function NE(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 TE(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)?Qe(n,g,"lineSuffix")(p):g(p))}function g(p){return p===null||me(p)?(n.exit("setextHeadingLine"),a(p)):r(p)}}const CE={tokenize:AE};function AE(n){const a=this,r=n.attempt(Zu,u,n.attempt(this.parser.constructs.flowInitial,o,Qe(n,n.attempt(this.parser.constructs.flow,o,n.attempt(O2,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 zE={resolveAll:Xy()},kE=Gy("string"),RE=Gy("text");function Gy(n){return{resolveAll:Xy(n==="text"?_E: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 E=-1;if(b)for(;++E<b.length;){const S=b[E];if(!S.previous||S.previous.call(u,u.previous))return!0}return!1}}}function Xy(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 _E(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 OE={42:Ot,43:Ot,45:Ot,48:Ot,49:Ot,50:Ot,51:Ot,52:Ot,53:Ot,54:Ot,55:Ot,56:Ot,57:Ot,62:Uy},ME={91:U2},DE={[-2]:_c,[-1]:_c,32:_c},LE={35:K2,42:_u,45:[yg,_u],60:$2,61:yg,95:_u,96:pg,126:pg},BE={38:qy,92:Hy},UE={[-5]:Oc,[-4]:Oc,[-3]:Oc,33:dE,38:qy,42:Ic,60:[m2,tE],91:mE,92:[V2,Hy],93:Tf,95:Ic,96:C2},HE={null:[Ic,zE]},qE={null:[42,95]},YE={null:[]},VE=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:qE,contentInitial:ME,disable:YE,document:OE,flow:LE,flowInitial:DE,insideSpan:HE,string:BE,text:UE},Symbol.toStringTag,{value:"Module"}));function QE(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:F(te),check:F(q),consume:X,enter:O,exit:I,interrupt:F(q,{interrupt:!0})},p={code:null,containerState:{},defineSkip:R,events:[],now:A,parser:n,previous:null,sliceSerialize:E,sliceStream:S,write:b};let x=a.tokenize.call(p,g);return a.resolveAll&&c.push(a),p;function b(ne){return d=un(d,ne),U(),d[d.length-1]!==null?[]:(oe(a,0),p.events=Nf(c,p.events,p),p.events)}function E(ne,W){return GE(S(ne),W)}function S(ne){return KE(d,ne)}function A(){const{_bufferIndex:ne,_index:W,line:Se,column:ae,offset:$}=u;return{_bufferIndex:ne,_index:W,line:Se,column:ae,offset:$}}function R(ne){o[ne.line]=ne.column,ge()}function U(){let ne;for(;u._index<d.length;){const W=d[u._index];if(typeof W=="string")for(ne=u._index,u._bufferIndex<0&&(u._bufferIndex=0);u._index===ne&&u._bufferIndex<W.length;)k(W.charCodeAt(u._bufferIndex));else k(W)}}function k(ne){x=x(ne)}function X(ne){me(ne)?(u.line++,u.column=1,u.offset+=ne===-3?2:1,ge()):ne!==-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=ne}function O(ne,W){const Se=W||{};return Se.type=ne,Se.start=A(),p.events.push(["enter",Se,p]),m.push(Se),Se}function I(ne){const W=m.pop();return W.end=A(),p.events.push(["exit",W,p]),W}function te(ne,W){oe(ne,W.from)}function q(ne,W){W.restore()}function F(ne,W){return Se;function Se(ae,$,M){let Z,ie,pe,j;return Array.isArray(ae)?V(ae):"tokenize"in ae?V([ae]):T(ae);function T(ue){return Ne;function Ne(Ze){const Le=Ze!==null&&ue[Ze],Ft=Ze!==null&&ue.null,wn=[...Array.isArray(Le)?Le:Le?[Le]:[],...Array.isArray(Ft)?Ft:Ft?[Ft]:[]];return V(wn)(Ze)}}function V(ue){return Z=ue,ie=0,ue.length===0?M:w(ue[ie])}function w(ue){return Ne;function Ne(Ze){return j=ce(),pe=ue,ue.partial||(p.currentConstruct=ue),ue.name&&p.parser.constructs.disable.null.includes(ue.name)?de():ue.tokenize.call(W?Object.assign(Object.create(p),W):p,g,ee,de)(Ze)}}function ee(ue){return ne(pe,j),$}function de(ue){return j.restore(),++ie<Z.length?w(Z[ie]):M}}}function oe(ne,W){ne.resolveAll&&!c.includes(ne)&&c.push(ne),ne.resolve&&En(p.events,W,p.events.length-W,ne.resolve(p.events.slice(W),p)),ne.resolveTo&&(p.events=ne.resolveTo(p.events,p))}function ce(){const ne=A(),W=p.previous,Se=p.currentConstruct,ae=p.events.length,$=Array.from(m);return{from:ae,restore:M};function M(){u=ne,p.previous=W,p.currentConstruct=Se,p.events.length=ae,m=$,ge()}}function ge(){u.line in o&&u.column<2&&(u.column=o[u.line],u.offset+=o[u.line]-1)}}function KE(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 GE(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 XE(n){const u={constructs:WS([VE,...(n||{}).extensions||[]]),content:o(u2),defined:[],document:o(o2),flow:o(CE),lazy:{},string:o(kE),text:o(RE)};return u;function o(c){return d;function d(m){return QE(u,c,m)}}}function ZE(n){for(;!Yy(n););return n}const xg=/[\0\t\n\r]/g;function $E(){let n=1,a="",r=!0,u;return o;function o(c,d,m){const g=[];let p,x,b,E,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(xg.lastIndex=b,p=xg.exec(c),E=p&&p.index!==void 0?p.index:c.length,S=c.charCodeAt(E),!p){a=c.slice(b);break}if(S===10&&b===E&&u)g.push(-3),u=void 0;else switch(u&&(g.push(-5),u=void 0),b<E&&(g.push(c.slice(b,E)),n+=E-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=E+1}return m&&(u&&g.push(-5),a&&g.push(a),g.push(null)),g}}const FE=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function JE(n){return n.replace(FE,IE)}function IE(n,a,r){if(a)return a;if(r.charCodeAt(0)===35){const o=r.charCodeAt(1),c=o===120||o===88;return By(r.slice(c?2:1),c?16:10)}return jf(r)||n}const Zy={}.hasOwnProperty;function PE(n,a,r){return a&&typeof a=="object"&&(r=a,a=void 0),WE(r)(ZE(XE(r).document().write($E()(n,a,!0))))}function WE(n){const a={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:c(Xl),autolinkProtocol:ce,autolinkEmail:ce,atxHeading:c(Kl),blockQuote:c(Ft),characterEscape:ce,characterReference:ce,codeFenced:c(wn),codeFencedFenceInfo:d,codeFencedFenceMeta:d,codeIndented:c(wn,d),codeText:c(Xa,d),codeTextData:ce,data:ce,codeFlowValue:ce,definition:c(rr),definitionDestinationString:d,definitionLabelString:d,definitionTitleString:d,emphasis:c(jn),hardBreakEscape:c(Gl),hardBreakTrailing:c(Gl),htmlFlow:c(ur,d),htmlFlowData:ce,htmlText:c(ur,d),htmlTextData:ce,image:c(sr),label:d,link:c(Xl),listItem:c(Za),listItemValue:E,listOrdered:c(Zl,b),listUnordered:c(Zl),paragraph:c(ts),reference:w,referenceString:d,resourceDestinationString:d,resourceTitleString:d,setextHeading:c(Kl),strong:c(ns),thematicBreak:c(ls)},exit:{atxHeading:g(),atxHeadingSequence:te,autolink:g(),autolinkEmail:Le,autolinkProtocol:Ze,blockQuote:g(),characterEscapeValue:ge,characterReferenceMarkerHexadecimal:de,characterReferenceMarkerNumeric:de,characterReferenceValue:ue,characterReference:Ne,codeFenced:g(U),codeFencedFence:R,codeFencedFenceInfo:S,codeFencedFenceMeta:A,codeFlowValue:ge,codeIndented:g(k),codeText:g($),codeTextData:ge,data:ge,definition:g(),definitionDestinationString:I,definitionLabelString:X,definitionTitleString:O,emphasis:g(),hardBreakEscape:g(W),hardBreakTrailing:g(W),htmlFlow:g(Se),htmlFlowData:ge,htmlText:g(ae),htmlTextData:ge,image:g(Z),label:pe,labelText:ie,lineEnding:ne,link:g(M),listItem:g(),listOrdered:g(),listUnordered:g(),paragraph:g(),referenceString:ee,resourceDestinationString:j,resourceTitleString:T,resource:V,setextHeading:g(oe),setextHeadingLineSequence:F,setextHeadingText:q,strong:g(),thematicBreak:g()}};$y(a,(n||{}).mdastExtensions||[]);const r={};return u;function u(Q){let P={type:"root",children:[]};const he={stack:[P],tokenStack:[],config:a,enter:m,exit:p,buffer:d,resume:x,data:r},Ee=[];let Oe=-1;for(;++Oe<Q.length;)if(Q[Oe][1].type==="listOrdered"||Q[Oe][1].type==="listUnordered")if(Q[Oe][0]==="enter")Ee.push(Oe);else{const Lt=Ee.pop();Oe=o(Q,Lt,Oe)}for(Oe=-1;++Oe<Q.length;){const Lt=a[Q[Oe][0]];Zy.call(Lt,Q[Oe][1].type)&&Lt[Q[Oe][1].type].call(Object.assign({sliceSerialize:Q[Oe][2].sliceSerialize},he),Q[Oe][1])}if(he.tokenStack.length>0){const Lt=he.tokenStack[he.tokenStack.length-1];(Lt[1]||bg).call(he,void 0,Lt[0])}for(P.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})},Oe=-1;++Oe<a.transforms.length;)P=a.transforms[Oe](P)||P;return P}function o(Q,P,he){let Ee=P-1,Oe=-1,Lt=!1,Nn,Et,ot,Nt;for(;++Ee<=he;){const qe=Q[Ee];switch(qe[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{qe[0]==="enter"?Oe++:Oe--,Nt=void 0;break}case"lineEndingBlank":{qe[0]==="enter"&&(Nn&&!Nt&&!Oe&&!ot&&(ot=Ee),Nt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Nt=void 0}if(!Oe&&qe[0]==="enter"&&qe[1].type==="listItemPrefix"||Oe===-1&&qe[0]==="exit"&&(qe[1].type==="listUnordered"||qe[1].type==="listOrdered")){if(Nn){let Zn=Ee;for(Et=void 0;Zn--;){const cn=Q[Zn];if(cn[1].type==="lineEnding"||cn[1].type==="lineEndingBlank"){if(cn[0]==="exit")continue;Et&&(Q[Et][1].type="lineEndingBlank",Lt=!0),cn[1].type="lineEnding",Et=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&&(!Et||ot<Et)&&(Nn._spread=!0),Nn.end=Object.assign({},Et?Q[Et][1].start:qe[1].end),Q.splice(Et||Ee,0,["exit",Nn,qe[2]]),Ee++,he++}if(qe[1].type==="listItemPrefix"){const Zn={type:"listItem",_spread:!1,start:Object.assign({},qe[1].start),end:void 0};Nn=Zn,Q.splice(Ee,0,["enter",Zn,qe[2]]),Ee++,he++,ot=void 0,Nt=!0}}}return Q[P][1]._spread=Lt,he}function c(Q,P){return he;function he(Ee){m.call(this,Q(Ee),Ee),P&&P.call(this,Ee)}}function d(){this.stack.push({type:"fragment",children:[]})}function m(Q,P,he){this.stack[this.stack.length-1].children.push(Q),this.stack.push(Q),this.tokenStack.push([P,he||void 0]),Q.position={start:xl(P.start),end:void 0}}function g(Q){return P;function P(he){Q&&Q.call(this,he),p.call(this,he)}}function p(Q,P){const he=this.stack.pop(),Ee=this.tokenStack.pop();if(Ee)Ee[0].type!==Q.type&&(P?P.call(this,Q,Ee[0]):(Ee[1]||bg).call(this,Q,Ee[0]));else throw new Error("Cannot close `"+Q.type+"` ("+Xi({start:Q.start,end:Q.end})+"): it’s not open");he.position.end=xl(Q.end)}function x(){return IS(this.stack.pop())}function b(){this.data.expectingFirstListItemValue=!0}function E(Q){if(this.data.expectingFirstListItemValue){const P=this.stack[this.stack.length-2];P.start=Number.parseInt(this.sliceSerialize(Q),10),this.data.expectingFirstListItemValue=void 0}}function S(){const Q=this.resume(),P=this.stack[this.stack.length-1];P.lang=Q}function A(){const Q=this.resume(),P=this.stack[this.stack.length-1];P.meta=Q}function R(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function U(){const Q=this.resume(),P=this.stack[this.stack.length-1];P.value=Q.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function k(){const Q=this.resume(),P=this.stack[this.stack.length-1];P.value=Q.replace(/(\r?\n|\r)$/g,"")}function X(Q){const P=this.resume(),he=this.stack[this.stack.length-1];he.label=P,he.identifier=La(this.sliceSerialize(Q)).toLowerCase()}function O(){const Q=this.resume(),P=this.stack[this.stack.length-1];P.title=Q}function I(){const Q=this.resume(),P=this.stack[this.stack.length-1];P.url=Q}function te(Q){const P=this.stack[this.stack.length-1];if(!P.depth){const he=this.sliceSerialize(Q).length;P.depth=he}}function q(){this.data.setextHeadingSlurpLineEnding=!0}function F(Q){const P=this.stack[this.stack.length-1];P.depth=this.sliceSerialize(Q).codePointAt(0)===61?1:2}function oe(){this.data.setextHeadingSlurpLineEnding=void 0}function ce(Q){const he=this.stack[this.stack.length-1].children;let Ee=he[he.length-1];(!Ee||Ee.type!=="text")&&(Ee=St(),Ee.position={start:xl(Q.start),end:void 0},he.push(Ee)),this.stack.push(Ee)}function ge(Q){const P=this.stack.pop();P.value+=this.sliceSerialize(Q),P.position.end=xl(Q.end)}function ne(Q){const P=this.stack[this.stack.length-1];if(this.data.atHardBreak){const he=P.children[P.children.length-1];he.position.end=xl(Q.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&a.canContainEols.includes(P.type)&&(ce.call(this,Q),ge.call(this,Q))}function W(){this.data.atHardBreak=!0}function Se(){const Q=this.resume(),P=this.stack[this.stack.length-1];P.value=Q}function ae(){const Q=this.resume(),P=this.stack[this.stack.length-1];P.value=Q}function $(){const Q=this.resume(),P=this.stack[this.stack.length-1];P.value=Q}function M(){const Q=this.stack[this.stack.length-1];if(this.data.inReference){const P=this.data.referenceType||"shortcut";Q.type+="Reference",Q.referenceType=P,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 P=this.data.referenceType||"shortcut";Q.type+="Reference",Q.referenceType=P,delete Q.url,delete Q.title}else delete Q.identifier,delete Q.label;this.data.referenceType=void 0}function ie(Q){const P=this.sliceSerialize(Q),he=this.stack[this.stack.length-2];he.label=JE(P),he.identifier=La(P).toLowerCase()}function pe(){const Q=this.stack[this.stack.length-1],P=this.resume(),he=this.stack[this.stack.length-1];if(this.data.inReference=!0,he.type==="link"){const Ee=Q.children;he.children=Ee}else he.alt=P}function j(){const Q=this.resume(),P=this.stack[this.stack.length-1];P.url=Q}function T(){const Q=this.resume(),P=this.stack[this.stack.length-1];P.title=Q}function V(){this.data.inReference=void 0}function w(){this.data.referenceType="collapsed"}function ee(Q){const P=this.resume(),he=this.stack[this.stack.length-1];he.label=P,he.identifier=La(this.sliceSerialize(Q)).toLowerCase(),this.data.referenceType="full"}function de(Q){this.data.characterReferenceType=Q.type}function ue(Q){const P=this.sliceSerialize(Q),he=this.data.characterReferenceType;let Ee;he?(Ee=By(P,he==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Ee=jf(P);const Oe=this.stack[this.stack.length-1];Oe.value+=Ee}function Ne(Q){const P=this.stack.pop();P.position.end=xl(Q.end)}function Ze(Q){ge.call(this,Q);const P=this.stack[this.stack.length-1];P.url=this.sliceSerialize(Q)}function Le(Q){ge.call(this,Q);const P=this.stack[this.stack.length-1];P.url="mailto:"+this.sliceSerialize(Q)}function Ft(){return{type:"blockquote",children:[]}}function wn(){return{type:"code",lang:null,meta:null,value:""}}function Xa(){return{type:"inlineCode",value:""}}function rr(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function jn(){return{type:"emphasis",children:[]}}function Kl(){return{type:"heading",depth:0,children:[]}}function Gl(){return{type:"break"}}function ur(){return{type:"html",value:""}}function sr(){return{type:"image",title:null,url:"",alt:null}}function Xl(){return{type:"link",title:null,url:"",children:[]}}function Zl(Q){return{type:"list",ordered:Q.type==="listOrdered",start:null,spread:Q._spread,children:[]}}function Za(Q){return{type:"listItem",spread:Q._spread,checked:null,children:[]}}function ts(){return{type:"paragraph",children:[]}}function ns(){return{type:"strong",children:[]}}function St(){return{type:"text",value:""}}function ls(){return{type:"thematicBreak"}}}function xl(n){return{line:n.line,column:n.column,offset:n.offset}}function $y(n,a){let r=-1;for(;++r<a.length;){const u=a[r];Array.isArray(u)?$y(n,u):ew(n,u)}}function ew(n,a){let r;for(r in a)if(Zy.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 bg(n,a){throw n?new Error("Cannot close `"+n.type+"` ("+Xi({start:n.start,end:n.end})+"): a different token (`"+a.type+"`, "+Xi({start:a.start,end:a.end})+") is open"):new Error("Cannot close document, a token (`"+a.type+"`, "+Xi({start:a.start,end:a.end})+") is still open")}function tw(n){const a=this;a.parser=r;function r(u){return PE(u,{...a.data("settings"),...n,extensions:a.data("micromarkExtensions")||[],mdastExtensions:a.data("fromMarkdownExtensions")||[]})}}function nw(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 lw(n,a){const r={type:"element",tagName:"br",properties:{},children:[]};return n.patch(a,r),[n.applyData(a,r),{type:"text",value:`
64
+ `}]}function aw(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 iw(n,a){const r={type:"element",tagName:"del",properties:{},children:n.all(a)};return n.patch(a,r),n.applyData(a,r)}function rw(n,a){const r={type:"element",tagName:"em",properties:{},children:n.all(a)};return n.patch(a,r),n.applyData(a,r)}function uw(n,a){const r=typeof n.options.clobberPrefix=="string"?n.options.clobberPrefix:"user-content-",u=String(a.identifier).toUpperCase(),o=Ga(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 sw(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 ow(n,a){if(n.options.allowDangerousHtml){const r={type:"raw",value:a.value};return n.patch(a,r),n.applyData(a,r)}}function Fy(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 cw(n,a){const r=String(a.identifier).toUpperCase(),u=n.definitionById.get(r);if(!u)return Fy(n,a);const o={src:Ga(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 fw(n,a){const r={src:Ga(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 dw(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 hw(n,a){const r=String(a.identifier).toUpperCase(),u=n.definitionById.get(r);if(!u)return Fy(n,a);const o={href:Ga(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 mw(n,a){const r={href:Ga(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 pw(n,a,r){const u=n.all(a),o=r?gw(r):Jy(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 gw(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=Jy(r[u])}return a}function Jy(n){const a=n.spread;return a??n.children.length>1}function yw(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 xw(n,a){const r={type:"element",tagName:"p",properties:{},children:n.all(a)};return n.patch(a,r),n.applyData(a,r)}function bw(n,a){const r={type:"root",children:n.wrap(n.all(a))};return n.patch(a,r),n.applyData(a,r)}function vw(n,a){const r={type:"element",tagName:"strong",properties:{},children:n.all(a)};return n.patch(a,r),n.applyData(a,r)}function Sw(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=vf(a.children[1]),g=ky(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 Ew(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],E={},S=d?d[g]:void 0;S&&(E.align=S);let A={type:"element",tagName:c,properties:E,children:[]};b&&(A.children=n.all(b),n.patch(b,A),A=n.applyData(b,A)),p.push(A)}const x={type:"element",tagName:"tr",properties:{},children:n.wrap(p,!0)};return n.patch(a,x),n.applyData(a,x)}function ww(n,a){const r={type:"element",tagName:"td",properties:{},children:n.all(a)};return n.patch(a,r),n.applyData(a,r)}const vg=9,Sg=32;function jw(n){const a=String(n),r=/\r?\n|\r/g;let u=r.exec(a),o=0;const c=[];for(;u;)c.push(Eg(a.slice(o,u.index),o>0,!0),u[0]),o=u.index+u[0].length,u=r.exec(a);return c.push(Eg(a.slice(o),o>0,!1)),c.join("")}function Eg(n,a,r){let u=0,o=n.length;if(a){let c=n.codePointAt(u);for(;c===vg||c===Sg;)u++,c=n.codePointAt(u)}if(r){let c=n.codePointAt(o-1);for(;c===vg||c===Sg;)o--,c=n.codePointAt(o-1)}return o>u?n.slice(u,o):""}function Nw(n,a){const r={type:"text",value:jw(String(a.value))};return n.patch(a,r),n.applyData(a,r)}function Tw(n,a){const r={type:"element",tagName:"hr",properties:{},children:[]};return n.patch(a,r),n.applyData(a,r)}const Cw={blockquote:nw,break:lw,code:aw,delete:iw,emphasis:rw,footnoteReference:uw,heading:sw,html:ow,imageReference:cw,image:fw,inlineCode:dw,linkReference:hw,link:mw,listItem:pw,list:yw,paragraph:xw,root:bw,strong:vw,table:Sw,tableCell:ww,tableRow:Ew,text:Nw,thematicBreak:Tw,toml:Tu,yaml:Tu,definition:Tu,footnoteDefinition:Tu};function Tu(){}const Iy=-1,$u=0,$i=1,Bu=2,Cf=3,Af=4,zf=5,kf=6,Py=7,Wy=8,Aw=typeof self=="object"?self:globalThis,wg=(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 Aw[n](a)},zw=(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 $u:case Iy:return r(d,o);case $i:{const m=r([],o);for(const g of d)m.push(u(g));return m}case Bu:{const m=r({},o);for(const[g,p]of d)m[u(g)]=u(p);return m}case Cf:return r(new Date(d),o);case Af:{const{source:m,flags:g}=d;return r(new RegExp(m,g),o)}case zf:{const m=r(new Map,o);for(const[g,p]of d)m.set(u(g),u(p));return m}case kf:{const m=r(new Set,o);for(const g of d)m.add(u(g));return m}case Py:{const{name:m,message:g}=d;return r(wg(m,g),o)}case Wy: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(wg(c,d),o)};return u},jg=n=>zw(new Map,n)(0),Oa="",{toString:kw}={},{keys:Rw}=Object,Gi=n=>{const a=typeof n;if(a!=="object"||!n)return[$u,a];const r=kw.call(n).slice(8,-1);switch(r){case"Array":return[$i,Oa];case"Object":return[Bu,Oa];case"Date":return[Cf,Oa];case"RegExp":return[Af,Oa];case"Map":return[zf,Oa];case"Set":return[kf,Oa];case"DataView":return[$i,r]}return r.includes("Array")?[$i,r]:r.includes("Error")?[Py,r]:[Bu,r]},Cu=([n,a])=>n===$u&&(a==="function"||a==="symbol"),_w=(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]=Gi(d);switch(m){case $u:{let x=d;switch(g){case"bigint":m=Wy,x=d.toString();break;case"function":case"symbol":if(n)throw new TypeError("unable to serialize "+g);x=null;break;case"undefined":return o([Iy],d)}return o([m,x],d)}case $i:{if(g){let E=d;return g==="DataView"?E=new Uint8Array(d.buffer):g==="ArrayBuffer"&&(E=new Uint8Array(d)),o([g,[...E]],d)}const x=[],b=o([m,x],d);for(const E of d)x.push(c(E));return b}case Bu:{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 E of Rw(d))(n||!Cu(Gi(d[E])))&&x.push([c(E),c(d[E])]);return b}case Cf:return o([m,d.toISOString()],d);case Af:{const{source:x,flags:b}=d;return o([m,{source:x,flags:b}],d)}case zf:{const x=[],b=o([m,x],d);for(const[E,S]of d)(n||!(Cu(Gi(E))||Cu(Gi(S))))&&x.push([c(E),c(S)]);return b}case kf:{const x=[],b=o([m,x],d);for(const E of d)(n||!Cu(Gi(E)))&&x.push(c(E));return b}}const{message:p}=d;return o([m,{name:g,message:p}],d)};return c},Ng=(n,{json:a,lossy:r}={})=>{const u=[];return _w(!(a||r),!!a,new Map,u)(n),u},Uu=typeof structuredClone=="function"?(n,a)=>a&&("json"in a||"lossy"in a)?jg(Ng(n,a)):structuredClone(n):(n,a)=>jg(Ng(n,a));function Ow(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 Mw(n,a){return"Back to reference "+(n+1)+(a>1?"-"+a:"")}function Dw(n){const a=typeof n.options.clobberPrefix=="string"?n.options.clobberPrefix:"user-content-",r=n.options.footnoteBackContent||Ow,u=n.options.footnoteBackLabel||Mw,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(),E=Ga(b.toLowerCase());let S=0;const A=[],R=n.footnoteCounts.get(b);for(;R!==void 0&&++S<=R;){A.length>0&&A.push({type:"text",value:" "});let X=typeof r=="string"?r:r(g,S);typeof X=="string"&&(X={type:"text",value:X}),A.push({type:"element",tagName:"a",properties:{href:"#"+a+"fnref-"+E+(S>1?"-"+S:""),dataFootnoteBackref:"",ariaLabel:typeof u=="string"?u:u(g,S),className:["data-footnote-backref"]},children:Array.isArray(X)?X:[X]})}const U=x[x.length-1];if(U&&U.type==="element"&&U.tagName==="p"){const X=U.children[U.children.length-1];X&&X.type==="text"?X.value+=" ":U.children.push({type:"text",value:" "}),U.children.push(...A)}else x.push(...A);const k={type:"element",tagName:"li",properties:{id:a+"fn-"+E},children:n.wrap(x,!0)};n.patch(p,k),m.push(k)}if(m.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:c,properties:{...Uu(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 ex=(function(n){if(n==null)return Hw;if(typeof n=="function")return Fu(n);if(typeof n=="object")return Array.isArray(n)?Lw(n):Bw(n);if(typeof n=="string")return Uw(n);throw new Error("Expected function, string, or object as test")});function Lw(n){const a=[];let r=-1;for(;++r<n.length;)a[r]=ex(n[r]);return Fu(u);function u(...o){let c=-1;for(;++c<a.length;)if(a[c].apply(this,o))return!0;return!1}}function Bw(n){const a=n;return Fu(r);function r(u){const o=u;let c;for(c in n)if(o[c]!==a[c])return!1;return!0}}function Uw(n){return Fu(a);function a(r){return r&&r.type===n}}function Fu(n){return a;function a(r,u,o){return!!(qw(r)&&n.call(this,r,typeof u=="number"?u:void 0,o||void 0))}}function Hw(){return!0}function qw(n){return n!==null&&typeof n=="object"&&"type"in n}const tx=[],Yw=!0,Tg=!1,Vw="skip";function Qw(n,a,r,u){let o;typeof a=="function"&&typeof r!="function"?(u=r,r=a):o=a;const c=ex(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(E,"name",{value:"node ("+(g.type+(S?"<"+S+">":""))+")"})}return E;function E(){let S=tx,A,R,U;if((!a||c(g,p,x[x.length-1]||void 0))&&(S=Kw(r(g,x)),S[0]===Tg))return S;if("children"in g&&g.children){const k=g;if(k.children&&S[0]!==Vw)for(R=(u?k.children.length:-1)+d,U=x.concat(k);R>-1&&R<k.children.length;){const X=k.children[R];if(A=m(X,R,U)(),A[0]===Tg)return A;R=typeof A[1]=="number"?A[1]:R+d}}return S}}}function Kw(n){return Array.isArray(n)?n:typeof n=="number"?[Yw,n]:n==null?tx:[n]}function nx(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),Qw(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 Pc={}.hasOwnProperty,Gw={};function Xw(n,a){const r=a||Gw,u=new Map,o=new Map,c=new Map,d={...Cw,...r.handlers},m={all:p,applyData:$w,definitionById:u,footnoteById:o,footnoteCounts:c,footnoteOrder:[],handlers:d,one:g,options:r,patch:Zw,wrap:Jw};return nx(n,function(x){if(x.type==="definition"||x.type==="footnoteDefinition"){const b=x.type==="definition"?u:o,E=String(x.identifier).toUpperCase();b.has(E)||b.set(E,x)}}),m;function g(x,b){const E=x.type,S=m.handlers[E];if(Pc.call(m.handlers,E)&&S)return S(m,x,b);if(m.options.passThrough&&m.options.passThrough.includes(E)){if("children"in x){const{children:R,...U}=x,k=Uu(U);return k.children=m.all(x),k}return Uu(x)}return(m.options.unknownHandler||Fw)(m,x,b)}function p(x){const b=[];if("children"in x){const E=x.children;let S=-1;for(;++S<E.length;){const A=m.one(E[S],x);if(A){if(S&&E[S-1].type==="break"&&(!Array.isArray(A)&&A.type==="text"&&(A.value=Cg(A.value)),!Array.isArray(A)&&A.type==="element")){const R=A.children[0];R&&R.type==="text"&&(R.value=Cg(R.value))}Array.isArray(A)?b.push(...A):b.push(A)}}}return b}}function Zw(n,a){n.position&&(a.position=zS(n))}function $w(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,Uu(c)),"children"in r&&r.children&&o!==null&&o!==void 0&&(r.children=o)}return r}function Fw(n,a){const r=a.data||{},u="value"in a&&!(Pc.call(r,"hProperties")||Pc.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 Jw(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 Cg(n){let a=0,r=n.charCodeAt(a);for(;r===9||r===32;)a++,r=n.charCodeAt(a);return n.slice(a)}function Ag(n,a){const r=Xw(n,a),u=r.one(n,void 0),o=Dw(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 Iw(n,a){return n&&"run"in n?async function(r,u){const o=Ag(r,{file:u,...a});await n.run(o,u)}:function(r,u){return Ag(r,{file:u,...n||a})}}function zg(n){if(n)throw n}var Mc,kg;function Pw(){if(kg)return Mc;kg=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 E;for(E in p);return typeof E>"u"||n.call(p,E)},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 Mc=function g(){var p,x,b,E,S,A,R=arguments[0],U=1,k=arguments.length,X=!1;for(typeof R=="boolean"&&(X=R,R=arguments[1]||{},U=2),(R==null||typeof R!="object"&&typeof R!="function")&&(R={});U<k;++U)if(p=arguments[U],p!=null)for(x in p)b=m(R,x),E=m(p,x),R!==E&&(X&&E&&(c(E)||(S=o(E)))?(S?(S=!1,A=b&&o(b)?b:[]):A=b&&c(b)?b:{},d(R,{name:x,newValue:g(X,A,E)})):typeof E<"u"&&d(R,{name:x,newValue:E}));return R},Mc}var Ww=Pw();const Dc=Qg(Ww);function Wc(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 ej(){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?tj(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 tj(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:nj,dirname:lj,extname:aj,join:ij,sep:"/"};function nj(n,a){if(a!==void 0&&typeof a!="string")throw new TypeError('"ext" argument must be a string');ir(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 lj(n){if(ir(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 aj(n){ir(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 ij(...n){let a=-1,r;for(;++a<n.length;)ir(n[a]),n[a]&&(r=r===void 0?n[a]:r+"/"+n[a]);return r===void 0?".":rj(r)}function rj(n){ir(n);const a=n.codePointAt(0)===47;let r=uj(n,!a);return r.length===0&&!a&&(r="."),r.length>0&&n.codePointAt(n.length-1)===47&&(r+="/"),a?"/"+r:r}function uj(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 ir(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}const sj={cwd:oj};function oj(){return"/"}function ef(n){return!!(n!==null&&typeof n=="object"&&"href"in n&&n.href&&"protocol"in n&&n.protocol&&n.auth===void 0)}function cj(n){if(typeof n=="string")n=new URL(n);else if(!ef(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 fj(n)}function fj(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 Lc=["history","path","basename","stem","extname","dirname"];class lx{constructor(a){let r;a?ef(a)?r={path:a}:typeof a=="string"||dj(a)?r={value:a}:r=a:r={},this.cwd="cwd"in r?"":sj.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let u=-1;for(;++u<Lc.length;){const c=Lc[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)Lc.includes(o)||(this[o]=r[o])}get basename(){return typeof this.path=="string"?vn.basename(this.path):void 0}set basename(a){Uc(a,"basename"),Bc(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){Rg(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(Bc(a,"extname"),Rg(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){ef(a)&&(a=cj(a)),Uc(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){Uc(a,"stem"),Bc(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 Bc(n,a){if(n&&n.includes(vn.sep))throw new Error("`"+a+"` cannot be a path: did not expect `"+vn.sep+"`")}function Uc(n,a){if(!n)throw new Error("`"+a+"` cannot be empty")}function Rg(n,a){if(!n)throw new Error("Setting `"+a+"` requires `path` to be set too")}function dj(n){return!!(n&&typeof n=="object"&&"byteLength"in n&&"byteOffset"in n)}const hj=(function(n){const u=this.constructor.prototype,o=u[n],c=function(){return o.apply(c,arguments)};return Object.setPrototypeOf(c,u),c}),mj={}.hasOwnProperty;class Rf extends hj{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=ej()}copy(){const a=new Rf;let r=-1;for(;++r<this.attachers.length;){const u=this.attachers[r];a.use(...u)}return a.data(Dc(!0,{},this.namespace)),a}data(a,r){return typeof a=="string"?arguments.length===2?(Yc("data",this.frozen),this.namespace[a]=r,this):mj.call(this.namespace,a)&&this.namespace[a]||void 0:a?(Yc("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=Au(a),u=this.parser||this.Parser;return Hc("parse",u),u(String(r),r)}process(a,r){const u=this;return this.freeze(),Hc("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=Au(a),g=u.parse(m);u.run(g,m,function(x,b,E){if(x||!b||!E)return p(x);const S=b,A=u.stringify(S,E);yj(A)?E.value=A:E.result=A,p(x,E)});function p(x,b){x||!b?d(x):c?c(b):r(void 0,b)}}}processSync(a){let r=!1,u;return this.freeze(),Hc("processSync",this.parser||this.Parser),qc("processSync",this.compiler||this.Compiler),this.process(a,o),Og("processSync","process",r),u;function o(c,d){r=!0,zg(c),u=d}}run(a,r,u){_g(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=Au(r);o.run(a,g,p);function p(x,b,E){const S=b||a;x?m(x):d?d(S):u(void 0,S,E)}}}runSync(a,r){let u=!1,o;return this.run(a,r,c),Og("runSync","run",u),o;function c(d,m){zg(d),o=m,u=!0}}stringify(a,r){this.freeze();const u=Au(r),o=this.compiler||this.Compiler;return qc("stringify",o),_g(a),o(a,u)}use(a,...r){const u=this.attachers,o=this.namespace;if(Yc("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=Dc(!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,E=-1;for(;++b<u.length;)if(u[b][0]===p){E=b;break}if(E===-1)u.push([p,...x]);else if(x.length>0){let[S,...A]=x;const R=u[E][1];Wc(R)&&Wc(S)&&(S=Dc(!0,R,S)),u[E]=[p,S,...A]}}}}const pj=new Rf().freeze();function Hc(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 Yc(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 _g(n){if(!Wc(n)||typeof n.type!="string")throw new TypeError("Expected node, got `"+n+"`")}function Og(n,a,r){if(!r)throw new Error("`"+n+"` finished async. Use `"+a+"` instead")}function Au(n){return gj(n)?n:new lx(n)}function gj(n){return!!(n&&typeof n=="object"&&"message"in n&&"messages"in n)}function yj(n){return typeof n=="string"||xj(n)}function xj(n){return!!(n&&typeof n=="object"&&"byteLength"in n&&"byteOffset"in n)}const bj="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Mg=[],Dg={allowDangerousHtml:!0},vj=/^(https?|ircs?|mailto|xmpp)$/i,Sj=[{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 Ej(n){const a=wj(n),r=jj(n);return Nj(a.runSync(a.parse(r),r),n)}function wj(n){const a=n.rehypePlugins||Mg,r=n.remarkPlugins||Mg,u=n.remarkRehypeOptions?{...n.remarkRehypeOptions,...Dg}:Dg;return pj().use(tw).use(r).use(Iw,u).use(a)}function jj(n){const a=n.children||"",r=new lx;return typeof a=="string"&&(r.value=a),r}function Nj(n,a){const r=a.allowedElements,u=a.allowElement,o=a.components,c=a.disallowedElements,d=a.skipHtml,m=a.unwrapDisallowed,g=a.urlTransform||Tj;for(const x of Sj)Object.hasOwn(a,x.from)&&(""+x.from+(x.to?"use `"+x.to+"` instead":"remove it")+bj+x.id,void 0);return nx(n,p),MS(n,{Fragment:h.Fragment,components:o,ignoreInvalidStyle:!0,jsx:h.jsx,jsxs:h.jsxs,passKeys:!0,passNode:!0});function p(x,b,E){if(x.type==="raw"&&E&&typeof b=="number")return d?E.children.splice(b,1):E.children[b]={type:"text",value:x.value},b;if(x.type==="element"){let S;for(S in Rc)if(Object.hasOwn(Rc,S)&&Object.hasOwn(x.properties,S)){const A=x.properties[S],R=Rc[S];(R===null||R.includes(x.tagName))&&(x.properties[S]=g(String(A||""),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,E)),S&&E&&typeof b=="number")return m&&x.children?E.children.splice(b,1,...x.children):E.children.splice(b,1),b}}}function Tj(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||vj.test(n.slice(0,a))?n:""}function Hl(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(Ej,{children:n.value})})}function Lg(n){return n==="rtl"?"text-right":""}function Bg(n){if(n)return{unicodeBidi:"plaintext"}}function Ug(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 ax(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]=z.useState([]),[d,m]=z.useState(null);if(u.length===0)return h.jsx("p",{className:"text-sm text-muted",children:"No translations found."});z.useEffect(()=>{if(typeof window>"u"||!n.getRowFragmentId)return;const p=decodeURIComponent(window.location.hash.slice(1));if(!p)return;const x=u.find(E=>{var S;return((S=n.getRowFragmentId)==null?void 0:S.call(n,E))===p});if(!x)return;const b=n.getRowKey?n.getRowKey(x):x.locale;c(E=>E.includes(b)?E:[...E,b]),m(p)},[u,n.getRowFragmentId,n.getRowKey]),z.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 A,R,U,k,X,O,I,te,q;const x=n.getRowKey?n.getRowKey(p):p.locale,b=(A=n.getRowFragmentId)==null?void 0:A.call(n,p),E=!!n.renderExpandedRow,S=o.includes(x);return h.jsxs(z.Fragment,{children:[h.jsxs("tr",{id:b,className:E?["cursor-pointer transition-colors",S?"bg-elevated":"hover:bg-elevated/60"].join(" "):void 0,onClick:E?()=>c(F=>{var oe;if(F.includes(x)){const ce=F.filter(W=>W!==x),ge=b&&d===b?ce[ce.length-1]||null:F[F.length-1]||null,ne=ge&&((oe=n.getRowFragmentId)==null?void 0:oe.call(n,u.find(W=>(n.getRowKey?n.getRowKey(W):W.locale)===ge)))||null;return m(ne),Ug(ne||void 0),ce}return b&&(m(b),Ug(b)),[...F,x]}):void 0,children:[h.jsx("td",{className:"border-b border-border px-3 py-2 font-medium",children:n.linkLocales?h.jsx(Xe,{to:et("locale",p.locale,a),className:"font-medium text-primary hover:underline",onClick:F=>F.stopPropagation(),children:p.locale}):p.locale}),h.jsx("td",{className:["border-b border-border px-3 py-2",p.source==="inherited"?"text-faint":"",Lg((R=n.localeDirections)==null?void 0:R[p.locale])].join(" "),dir:(U=n.localeDirections)==null?void 0:U[p.locale],style:Bg((k=n.localeDirections)==null?void 0:k[p.locale]),children:p.value||"—"}),n.comparisonLabel&&h.jsx("td",{className:["border-b border-border px-3 py-2 text-muted",Lg((X=n.localeDirections)==null?void 0:X[p.locale])].join(" "),dir:(O=n.localeDirections)==null?void 0:O[p.locale],style:Bg((I=n.localeDirections)==null?void 0:I[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(Xe,{to:et("locale",p.from,a),className:"font-medium text-primary hover:underline",onClick:F=>F.stopPropagation(),children:p.from})]}):""]})]}),E&&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 er(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",{children:h.jsx(Xe,{className:"text-primary hover:underline",to:et(n.type,n.type==="attribute"?a.split(".")[0]:a,n.setKey),children:a})},a))})}const Cj="dup";function zu(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),`${Cj}${(a>>>0).toString(36)}${(r>>>0).toString(36)}`}function _f(n,a){if(n)return a==null?void 0:a[n]}function Of(n){return n.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")}function Aj(n){return n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Ie(n){const a=n.query.trim();if(!a)return h.jsx(h.Fragment,{children:n.text});const r=Aj(a),u=new RegExp(r,"gi"),o=[];let c=0,d=0;for(const m of n.text.matchAll(u))m.index!==void 0&&m.index>c&&o.push(n.text.slice(c,m.index)),m.index!==void 0&&(o.push(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:m[0]},`hm-${m.index}-${d++}`)),c=m.index+m[0].length);return c<n.text.length&&o.push(n.text.slice(c)),h.jsx(h.Fragment,{children:o})}function Hg(n){return n==="locales"||n==="messages"||n==="attributes"||n==="segments"||n==="targets"}function st(){return j0()}function Ma(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 zj(n,a){const r=Ju(n.path),u=Ma(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 kj(n,a){const r=a.trim();if(!r)return n;const u=Lu(r);return u.freeText.length===0&&u.qualifiers.length===0?n:n.filter(o=>zj(o,u))}function Rj(n){const a=n.trim();if(!a)return"";const r=Lu(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 Ju(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 _j(n){const r=[...n].sort((d,m)=>d.path.localeCompare(m.path)).map(d=>({row:d,parts:Ju(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 E=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:E,typeBand:o});p=b}o+=1,c=m}return u}function Oj(n){const a=new Set;for(const r of n){const u=Ju(r.path).type;u&&a.add(u)}return[...a].sort((r,u)=>r.localeCompare(u))}const qg=["number","date","time"];function ix(n){return!1}function Mj(n){const a=new Set(qg),r=n.filter(u=>!a.has(u)).sort((u,o)=>u.localeCompare(o));return[...qg,...r]}function mn(n,a,r){const u=new URLSearchParams(n);return r?u.set(a,r):u.delete(a),u}function Dj(){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 Lj(){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 Iu="h-7";function rx(n){return h.jsxs("div",{className:["inline-flex shrink-0 items-stretch rounded-lg border border-border bg-elevated p-px",Iu].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(Dj,{})}),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(Lj,{})})]})}function qa(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 Ba(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(lr,{value:n.value})}function Pu(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(lr,{value:n.value})})}function Wu(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 es(n){z.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 Yg(){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 Bj(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 Uj(n){var E,S;const{manifest:a}=Vl(),[r,u]=z.useState(!1),o=z.useRef(null);z.useEffect(()=>{if(!r)return;function A(U){var k;(k=o.current)!=null&&k.contains(U.target)||u(!1)}function R(U){U.key==="Escape"&&u(!1)}return document.addEventListener("pointerdown",A),document.addEventListener("keydown",R),()=>{document.removeEventListener("pointerdown",A),document.removeEventListener("keydown",R)}},[r]);const c=n.sourcePath&&((E=a.links)!=null&&E.source)?a.links.source.replace("{{path}}",n.sourcePath):void 0,d=(((S=a.dev)==null?void 0:S.editors)||[]).filter(A=>{var R;return(R=n.editLinks)==null?void 0:R[A.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(A=>{var R;return h.jsxs("a",{role:"menuitem",href:(R=n.editLinks)==null?void 0:R[A.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(Bj,{icon:A.icon}),h.jsxs("span",{children:["Open in ",A.label]})]},A.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(A=>!A),children:["Edit",h.jsx(Yg,{})]}),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(A=>!A),children:h.jsx(Yg,{})}),r&&b]}):c?h.jsx("a",{href:c,target:"_blank",rel:"noreferrer",className:g,children:"Edit"}):null}function ux(n){const{setKey:a}=st(),r=n.rows||[],u=n.searchQuery??"",o=Rj(u),c=!!o.trim(),d=n.formatPathLayout==="split",m=!!(n.hideTypeColumn&&d),g=!!n.showExampleColumn;let p=u.trim()?kj(r,u):r;if(d&&n.selectedFormatType&&(p=p.filter(O=>Ju(O.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 O=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:O})}const x=d?_j(p):null;function b(O){return O?c?h.jsx(Ie,{text:O,query:o}):O:h.jsx("span",{className:"font-normal text-muted",children:"—"})}function E(O,I){const te=b(O);return I==="param"?h.jsx("div",{className:"overflow-x-auto whitespace-nowrap font-mono text-[11px] leading-snug text-muted",children:te}):I==="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(O){return O%2===0?"bg-surface":"bg-elevated/[0.2]"}function A(O){switch(O){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 R(O,I){const te=Ma(O.value),q=O.source==="inherited"&&!!O.from,F=O.source==="target";return h.jsx("td",{className:[I,A("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]",O.source==="inherited"?"text-muted":""].join(" "),children:c?h.jsx(Ie,{text:te,query:o}):te}),(q||F)&&h.jsxs("div",{className:"flex shrink-0 flex-col items-end justify-center gap-1",children:[q&&O.from?h.jsx(Pi,{label:"inherited from",value:O.from,to:et("locale",O.from,a),tone:"inheritance",compact:!0}):null,F?h.jsx(Pi,{label:"from",value:"target",tone:"neutral",compact:!0}):null]})]})})}function U(O){return O?c?h.jsx(Ie,{text:O,query:o}):O:h.jsx("span",{className:"font-normal text-muted",children:"—"})}function k(O,I){return!g||!O.showStyleCell?null:h.jsx("td",{rowSpan:O.styleRowSpan,className:["align-middle min-w-0 px-3 py-2 whitespace-pre-wrap [overflow-wrap:anywhere]",I,A("example")].join(" "),children:U(O.row.examplePreview)})}function X(O){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:U(O.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(O=>{const I=S(O.typeBand);return h.jsxs("tr",{children:[!m&&O.showTypeCell?h.jsx("td",{rowSpan:O.typeRowSpan,className:["align-middle min-w-0 px-3 py-2 font-medium",I,A("type")].join(" "),children:E(O.parts.type,"type")}):null,O.showStyleCell?h.jsx("td",{rowSpan:O.styleRowSpan,className:["align-middle min-w-0 px-3 py-2 font-medium",I,A("style")].join(" "),children:E(O.parts.style,"style")}):null,k(O,I),h.jsx("td",{className:["align-middle min-w-0 px-3 py-2 font-medium text-muted",I,A("param")].join(" "),children:E(O.parts.param,"param")}),R(O.row,["align-middle min-w-0 px-3 py-2",I].join(" "))]},O.row.path)}):p.map(O=>{const I=["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:I,children:h.jsx("div",{className:"whitespace-pre-wrap [overflow-wrap:anywhere]",children:c?h.jsx(Ie,{text:O.path,query:o}):O.path})}),g?X(O):null,R(O,"align-middle min-w-0 px-3 py-2 font-medium text-muted")]},O.path)})})]})})}function sx(n){const{setKey:a}=st();return h.jsx(Xe,{to:et("locale",n.localeKey,a),className:"font-medium text-primary hover:underline",children:n.localeKey})}function Hj(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(z.Fragment,{children:[u>0?", ":null,h.jsx(Xe,{className:"font-medium text-primary hover:underline",to:et("locale",r,n.setKey),children:r})]},r))})}function qj(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(Xe,{className:"inline-flex",to:et("target",r,n.setKey),children:h.jsx(sn,{children:r})},r))})}function tf(){const{entityPath:n,entityKey:a,setKey:r}=Qu(),[u,o]=z.useState(null),[c,d]=z.useState(null);if(z.useEffect(()=>{if(!Hg(n)||!a)return;const b=Ji[n];o(null),d(null),E1(b,a,r).then(o).catch(E=>d(E.message))},[n,a,r]),!Hg(n)||!a)return h.jsx(bl,{to:Ii(r)||"/",replace:!0});const m=Ji[n],g=`${Ii(r)}/${hy[m]}/${jt(a)}`;if(c)return h.jsx(Ha,{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=Yj(m,g);return h.jsxs("div",{children:[h.jsx(gf,{title:`${Kn[m].singular}: ${u.key}`,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(Uj,{sourcePath:u.sourcePath,editLinks:u.editLinks})}),h.jsx(eS,{tabs:x,children:h.jsx(H0,{context:{detail:u,setKey:r}})})]})}function Yj(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 Vj(){const{detail:n,setKey:a}=st(),{manifest:r}=Vl(),u=n.entity,o=Qj(n,u,a,r.sets);return h.jsx("div",{className:"space-y-5",children:h.jsx(nS,{fields:o})})}function Qj(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(Hl,{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(qj,{targetKeys:n.targets,setKey:r})},{label:"Summary",value:a.summary,fullWidth:!0},{label:"Description",value:h.jsx(Hl,{value:a.description}),fullWidth:!0},{label:"Meta",value:a.meta?h.jsx(lr,{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?Ma(a.enum):void 0},{label:"Required fields",value:g?Ma(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(Hl,{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(Hl,{value:a.description}),fullWidth:!0}]);const d=[o,{label:"Included message patterns",value:Ma(a.includeMessages)},{label:"Excluded message patterns",value:Ma(a.excludeMessages)},{label:"Locales",value:h.jsx(Hj,{localeKeys:n.locales,setKey:r})},{label:"Description",value:h.jsx(Hl,{value:a.description}),fullWidth:!0}];return c(d)}const Kj=["type:number","style:decimal","type:date","param:maximumFractionDigits","value:2","from:en","source:direct"];function Gj(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:"}),Kj.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 ox(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(Xe,{replace:!0,to:{search:o(null)},className:c(u===null),children:"All types"}),n.typeKeys.map(d=>{const m=d===u;return h.jsx(Xe,{replace:!0,to:{search:o(d)},className:c(m),children:d},d)})]})}function cx(n){const[a]=Xn(),r=a.get("formatType")??"",u=z.useMemo(()=>Oj(n),[n]),o=z.useMemo(()=>Mj(u),[u]),c=r&&o.includes(r)?r:null;return{formatTypes:u,formatTypePillKeys:o,selectedFormatType:c}}function fx(){const[n,a]=Xn(),[r,u]=z.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,E)=>E!==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(Xu,{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:[Iu,"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(Gj,{query:o,onHintClick:c})})})]})})}function Xj(){const{detail:n}=st(),[a]=Xn(),r=a.get("q")??"",u=n.formatRows,o=u??[],{formatTypes:c,formatTypePillKeys:d,selectedFormatType:m}=cx(o),g=ix();return h.jsxs("div",{className:"space-y-6",children:[c.length>0?h.jsx(ox,{typeKeys:d}):null,h.jsx(fx,{}),h.jsx(ux,{rows:u,searchQuery:r,formatPathLayout:"split",hideTypeColumn:m!=null,selectedFormatType:m,showExampleColumn:g})]})}function nf(){const{detail:n}=st();return n.type==="target"?h.jsx(dN,{}):h.jsx(Xj,{})}function Zj(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(Xe,{to:`${et("message",n.messageKey,n.setKey)}/overrides#${a}`,className:"text-sm font-semibold text-primary hover:underline",children:a}),r.source==="inherited"&&r.from&&h.jsx(Pi,{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(Ey,{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(yf,{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(Pu,{value:r.value||"—",direction:_f(r.locale,n.localeDirections)})]})]},a))})]})}function $j(){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(ax,{rows:n.translations,linkLocales:!0,showSource:!1,localeDirections:u,getRowFragmentId:g=>Of(`translation-${g.locale}`),renderExpandedRow:g=>h.jsx(Zj,{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(Pi,{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(Pi,{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 Fj(){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 es([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",children:d.key}),h.jsx(Wu,{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(Hl,{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(Ey,{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(yf,{conditions:d.conditions,setKey:a})]}),h.jsx(ax,{translations:d.translations,linkLocales:!0,showSource:!1,translationLabel:"Overridden translation",comparisonLabel:"Original translation",comparisonValues:o,localeDirections:u})]})]},d.key))})}function Jj(){const{detail:n}=st(),[a,r]=Xn(),u=n.evaluatedExamples||[],o=n.localeDirections||{},c=Object.fromEntries((n.translations||[]).map(E=>[E.locale,E.value])),m=a.get("view")==="expanded"?"expanded":"compact",g=Array.from(new Set(u.map(E=>E.locale))).sort(),p=a.get("locale"),x=p&&g.includes(p)?p:"",b=x?u.filter(E=>E.locale===x):u;return es([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(E=>{const S=x===E;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:E)),children:E},E)})]}),h.jsx("div",{className:"ml-auto shrink-0",children:h.jsx(rx,{activeView:m,onViewChange:E=>r(mn(a,"view",E==="compact"?void 0:E))})})]}),m==="compact"?h.jsx(Wj,{examples:b,localeDirections:o,originalTranslationsByLocale:c}):h.jsx(Pj,{examples:b,localeDirections:o,originalTranslationsByLocale:c})]})}function dx(n){var r,u,o;const a=(r=n.highlightQuery)!=null&&r.trim()&&n.title?h.jsx(Ie,{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(Wu,{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(Ie,{text:n.description.trim(),query:n.highlightQuery})}):h.jsx("div",{className:"text-sm text-muted",children:h.jsx(Hl,{value:n.description})}):null]})}function hx(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(Ie,{text:typeof n.evaluatedTranslation=="string"?n.evaluatedTranslation:JSON.stringify(n.evaluatedTranslation),query:n.highlightQuery??""})}):h.jsx(Pu,{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 lf(n){return Of([`example-${n.exampleIndex+1}`,n.locale,typeof n.matrixIndex=="number"?`matrix-${n.matrixIndex+1}`:""].filter(Boolean).join("-"))}function mx(n){const a=[`Example #${n.exampleIndex+1}`];return typeof n.matrixIndex=="number"&&a.push(`matrix #${n.matrixIndex+1}`),a.join(" · ")}function Ij(n){return typeof n.matrixIndex=="number"?`#${n.exampleIndex+1}.${n.matrixIndex+1}`:`#${n.exampleIndex+1}`}function px(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(sx,{localeKey:a.locale})}),typeof a.values<"u"&&h.jsx(xt,{label:"Values",children:h.jsx(Ba,{value:a.values})}),typeof a.context<"u"&&h.jsx(xt,{label:"Context",children:h.jsx(Ba,{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(Ba,{value:a.formats})}),o&&h.jsx(xt,{label:"Original translation",children:h.jsxs("div",{className:"space-y-2",children:[h.jsx(Pu,{value:o}),h.jsxs("p",{className:"text-xs text-muted",children:["See more"," ",h.jsx(Xe,{to:`${et("message",r.key,u)}/translations`,className:"font-medium text-primary hover:underline",children:"translations"})," ","and"," ",h.jsx(Xe,{to:`${et("message",r.key,u)}/overrides`,className:"font-medium text-primary hover:underline",children:"overrides"}),"."]})]})})]})}function Pj(n){return h.jsx("div",{className:"space-y-6",children:n.examples.map(a=>{const r=lf(a);return h.jsxs("section",{className:"min-w-0 space-y-4",children:[h.jsx(dx,{title:mx(a),targetId:r,description:a.description}),h.jsx(hx,{inputs:h.jsx(px,{example:a,showLocale:!0,originalTranslationsByLocale:n.originalTranslationsByLocale}),evaluatedTranslation:a.evaluatedTranslation,direction:_f(a.locale,n.localeDirections)})]},`${a.exampleIndex}-${a.matrixIndex??"base"}-${a.locale}`)})})}function Wj(n){const[a,r]=z.useState([]),[u,o]=z.useState(null);z.useEffect(()=>{if(typeof window>"u")return;const d=decodeURIComponent(window.location.hash.slice(1));!d||!n.examples.find(g=>lf(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),qa(g||void 0);return}r(m=>[...m,d]),o(d),qa(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=lf(d),g=a.includes(m),p=_f(d.locale,n.localeDirections);return h.jsxs(z.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:Ij(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:mx(d)}),h.jsx(Wu,{targetId:m})]}),h.jsx(px,{example:d,showLocale:!1,originalTranslationsByLocale:n.originalTranslationsByLocale})]})})})]},m)})})]})})}function Hu(n){return Of([`example-${n.exampleIndex+1}`,n.locale,typeof n.matrixIndex=="number"?`matrix-${n.matrixIndex+1}`:""].filter(Boolean).join("-"))}function af(n){const a=[`Example #${n.exampleIndex+1}`];return typeof n.matrixIndex=="number"&&a.push(`matrix #${n.matrixIndex+1}`),a.join(" · ")}function gx(n){return typeof n.matrixIndex=="number"?`#${n.exampleIndex+1}.${n.matrixIndex+1}`:`#${n.exampleIndex+1}`}function eN(n){return typeof n.evaluatedTranslation=="string"?n.evaluatedTranslation:JSON.stringify(n.evaluatedTranslation)}function tN(n,a){const r=a.trim().toLowerCase();return r?n.filter(u=>{const o=Hu(u),c=gx(u),d=u.description??"",m=eN(u);return`${o} ${c} ${d} ${m}`.toLowerCase().includes(r)}):n}function yx(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(Xe,{to:et("locale",g,r),className:"font-medium text-primary hover:underline",children:h.jsx(Ie,{text:g,query:o})}):h.jsx(sx,{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(Xe,{to:et("message",a.message,r),className:"font-medium text-primary hover:underline",children:c?h.jsx(Ie,{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(Ie,{text:a.originalTranslation,query:o})}):h.jsx(Pu,{value:a.originalTranslation,direction:u}),h.jsxs("p",{className:"text-xs text-muted",children:["See more"," ",h.jsx(Xe,{to:`${et("message",a.message,r)}/translations`,className:"font-medium text-primary hover:underline",children:"translations"})," ","and"," ",h.jsx(Xe,{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(Ie,{text:a.rawMessage,query:o})}):h.jsx(lr,{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(Ie,{text:JSON.stringify(a.values,null,2),query:o})}):h.jsx(Ba,{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(Ie,{text:JSON.stringify(a.context,null,2),query:o})}):h.jsx(Ba,{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(Ie,{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(Ie,{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(Ie,{text:JSON.stringify(a.formats,null,2),query:o})}):h.jsx(Ba,{value:a.formats})})]})}function nN(n){return h.jsx("div",{className:"space-y-6",children:n.examples.map(a=>{const r=Hu(a);return h.jsxs("section",{className:"min-w-0 space-y-4",children:[h.jsx(dx,{title:af(a),targetId:r,description:a.description,highlightQuery:n.searchQuery}),h.jsx(hx,{inputs:h.jsx(yx,{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 lN(n){const[a,r]=z.useState([]),[u,o]=z.useState(null);z.useEffect(()=>{if(typeof window>"u")return;const d=decodeURIComponent(window.location.hash.slice(1));!d||!n.examples.find(g=>Hu(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),qa(g||void 0);return}r(m=>[...m,d]),o(d),qa(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=Hu(d),g=a.includes(m);return h.jsxs(z.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(Ie,{text:gx(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(Ie,{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(Ie,{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(Ie,{text:af(d),query:n.searchQuery}):af(d)}),h.jsx(Wu,{targetId:m})]}),h.jsx(yx,{example:d,setKey:n.setKey,localeDirection:n.localeDirection,showLocale:!1,highlightQuery:n.searchQuery})]})})})]},m)})})]})})}function aN(){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(A=>A.sourceLocale))).sort(),p=r.get("sourceLocale"),x=p&&g.includes(p)?p:"",b=x?o.filter(A=>A.sourceLocale===x):o,E=r.get("q")??"",S=tN(b,E);return es([S.length,x,m,E]),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(Xu,{type:"search",value:E,onChange:A=>{const R=A.target.value;u(mn(r,"q",R.trim()?R:void 0),{replace:!0})},placeholder:"Search examples…","aria-label":"Search examples",className:[Iu,"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(A=>{const R=x===A;return h.jsx("button",{type:"button",className:["inline-flex rounded-full border px-3 py-1 text-xs font-semibold transition-colors",R?"border-primary bg-header-active text-header-text":"border-pill bg-transparent text-text hover:bg-elevated"].join(" "),onClick:()=>u(mn(r,"sourceLocale",R?void 0:A)),children:A},A)})]})]}):null,h.jsx("div",{className:"ml-auto shrink-0",children:h.jsx(rx,{activeView:m,onViewChange:A=>u(mn(r,"view",A==="compact"?void 0:A))})})]}),S.length===0?h.jsx("p",{className:"text-sm text-muted",children:"No examples match your search."}):m==="compact"?h.jsx(lN,{examples:S,setKey:a,localeDirection:c,searchQuery:E}):h.jsx(nN,{examples:S,setKey:a,localeDirection:c,searchQuery:E})]})}function iN(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 rN(){const{detail:n,setKey:a}=st(),[r,u]=Xn(),[o,c]=z.useState(null),[d,m]=z.useState(null),[g,p]=z.useState([]),x=n.entity.direction,b=r.get("q")??"";function E(A){const R=zu(A.value);p(U=>{if(U.includes(R)){const k=U.filter(X=>X!==R);return qa(void 0),k}return qa(R),[...U,R]})}if(z.useEffect(()=>{let A=!1;return c(null),m(null),p([]),j1(n.key,a).then(R=>{A||c(R)}).catch(R=>{A||m(R.message)}),()=>{A=!0}},[n.key,a]),z.useEffect(()=>{if(!o||typeof window>"u")return;const A=decodeURIComponent(window.location.hash.slice(1));if(!A)return;const R=o.duplicateValues.find(k=>zu(k.value)===A);if(!R)return;const U=zu(R.value);p(k=>k.includes(U)?k:[...k,U])},[o]),es([o==null?void 0:o.duplicateValues.length,g.length]),d)return h.jsx(Ha,{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 S=iN(o.duplicateValues,b);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(Xu,{type:"search",value:b,onChange:A=>{const R=A.target.value;u(mn(r,"q",R.trim()?R:void 0),{replace:!0})},placeholder:"Search duplicates...","aria-label":"Search duplicates",className:[Iu,"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"]})]}),S.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",children:"Duplicate value"}),h.jsx("th",{className:"border-b border-border px-3 py-2 font-semibold",children:"Messages"})]})}),h.jsx("tbody",{children:S.map(A=>{const R=Object.fromEntries(A.sources.map(X=>[X.messageKey,X.locale])),U=zu(A.value),k=g.includes(U);return h.jsxs(z.Fragment,{children:[h.jsxs("tr",{id:U,className:["cursor-pointer align-top transition-colors",k?"bg-elevated":"hover:bg-elevated/60"].join(" "),onClick:()=>E(A),children:[h.jsx("td",{className:["min-w-0 border-b border-border px-3 py-2 font-medium text-text",x==="rtl"?"text-right":""].join(" "),dir:x,style:x?{unicodeBidi:"plaintext"}:void 0,children:h.jsx("div",{className:"truncate",children:h.jsx(Ie,{text:A.value,query:b})})}),h.jsxs("td",{className:"min-w-0 border-b border-border px-3 py-2 text-muted",children:[A.messageKeys.length," message",A.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(lr,{value:A.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:A.messageKeys.map(X=>{const O=R[X]||o.locale,I=O!==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(Xe,{to:et("message",X,a),className:"font-medium text-primary hover:underline",children:h.jsx(Ie,{text:X,query:b})})}),h.jsx("td",{className:"min-w-0 border-b border-border px-3 py-2 text-muted",children:I?h.jsxs(h.Fragment,{children:[h.jsx("span",{children:"from "}),h.jsx(Xe,{to:et("locale",O,a),className:"font-medium text-primary hover:underline",onClick:te=>te.stopPropagation(),children:h.jsx(Ie,{text:O,query:b})})]}):h.jsx("span",{children:"direct"})})]},X)})})]})})]})})})]},A.value)})})]})})]})}function uN(){const{detail:n}=st();return n.type==="locale"?h.jsx(aN,{}):h.jsx(Jj,{})}function sN(){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(er,{type:"segment",keys:r.segments,setKey:a})]}),h.jsxs("section",{children:[h.jsx("h2",{className:"mb-2 font-semibold",children:"Messages"}),h.jsx(er,{type:"message",keys:r.messages,setKey:a})]})]})}function oN(){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(er,{type:"attribute",keys:r.attributes,setKey:a})]}),h.jsxs("section",{children:[h.jsx("h2",{className:"mb-2 font-semibold",children:"Messages"}),h.jsx(er,{type:"message",keys:r.messages,setKey:a})]})]})}function cN(){const{detail:n}=st();return n.type==="segment"?h.jsx(oN,{}):h.jsx(sN,{})}function fN(){const{detail:n,setKey:a}=st(),r=n.entity;return h.jsx(yf,{conditions:r.conditions,setKey:a})}function dN(){const{detail:n,setKey:a}=st(),{localeKey:r}=Qu(),[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}=cx(g);if(d.length===0)return h.jsx("p",{className:"text-sm text-muted",children:"No target formats found."});const E=`${Ii(a)}/targets/${jt(n.key)}/formats`;if(!r){const S=u.toString();return h.jsx(bl,{to:`${E}/${jt(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 A=u.toString(),R=A?`?${A}`:"",U=S===m;return h.jsx(Xe,{to:`${E}/${jt(S)}${R}`,className:["inline-flex rounded-full border px-3 py-1 text-xs font-semibold transition-colors",U?"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(ox,{typeKeys:x}):null,h.jsx(fx,{}),h.jsx(ux,{rows:c[m],searchQuery:o,formatPathLayout:"split",hideTypeColumn:b!=null,selectedFormatType:b,showExampleColumn:ix()})]})}function hN(){const{detail:n,setKey:a}=st();return h.jsx(er,{type:"message",keys:n.messages,setKey:a})}function mN(){var u;const{manifest:n}=Vl(),{detail:a,setKey:r}=st();return h.jsx(by,{path:`${r?`/data/sets/${jt(r)}`:"/data/root"}/history/${a.type}/${jt(a.key)}`,setKey:r,commitUrl:(u=n.links)==null?void 0:u.commit})}function Vg(n={}){const a=n.prefix||"";return h.jsxs(Fe,{path:`${a}:entityPath/:entityKey`,element:h.jsx(tf,{}),children:[h.jsx(Fe,{index:!0,element:h.jsx(Vj,{})}),h.jsx(Fe,{path:"formats",element:h.jsx(nf,{})}),h.jsx(Fe,{path:"examples",element:h.jsx(uN,{})}),h.jsx(Fe,{path:"duplicates",element:h.jsx(rN,{})}),h.jsx(Fe,{path:"translations",element:h.jsx($j,{})}),h.jsx(Fe,{path:"overrides",element:h.jsx(Fj,{})}),h.jsx(Fe,{path:"conditions",element:h.jsx(fN,{})}),h.jsx(Fe,{path:"usage",element:h.jsx(cN,{})}),h.jsx(Fe,{path:"messages",element:h.jsx(hN,{})}),h.jsx(Fe,{path:"history",element:h.jsx(mN,{})}),h.jsx(Fe,{path:"*",element:h.jsx(bl,{to:".",replace:!0})})]})}function pN(n){return h.jsx(C1,{initialManifest:n.manifest,children:h.jsx(U1,{children:h.jsxs(q0,{children:[h.jsx(Fe,{index:!0,element:h.jsx(H1,{})}),h.jsx(Fe,{path:"sets/:setKey",element:h.jsx(bl,{to:"messages",replace:!0})}),h.jsx(Fe,{path:"sets/:setKey/:entityPath",element:h.jsx(Jp,{})}),h.jsx(Fe,{path:"sets/:setKey/:entityPath/:entityKey/formats/:localeKey",element:h.jsx(tf,{}),children:h.jsx(Fe,{index:!0,element:h.jsx(nf,{})})}),Vg({prefix:"sets/:setKey/"}),h.jsx(Fe,{path:"sets/:setKey/history",element:h.jsx(Ip,{})}),h.jsx(Fe,{path:"history",element:h.jsx(Ip,{})}),h.jsx(Fe,{path:":entityPath",element:h.jsx(Jp,{})}),h.jsx(Fe,{path:":entityPath/:entityKey/formats/:localeKey",element:h.jsx(tf,{}),children:h.jsx(Fe,{index:!0,element:h.jsx(nf,{})})}),Vg(),h.jsx(Fe,{path:"*",element:h.jsx(bl,{to:"/",replace:!0})})]})})})}async function gN(){const n=await py(),a=n.router==="browser"?f1:d1;S1(n.router),Kg.createRoot(document.getElementById("root")).render(h.jsx(z.StrictMode,{children:h.jsx(a,{children:h.jsx(pN,{manifest:n})})}))}gN().catch(n=>{Kg.createRoot(document.getElementById("root")).render(h.jsx("div",{className:"p-8 text-danger",children:n.message}))});