@clappstore/connect 0.7.3 → 0.7.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent-client.d.ts.map +1 -1
- package/dist/agent-client.js +10 -2
- package/dist/agent-client.js.map +1 -1
- package/package.json +1 -1
- package/web-app/assets/index-BsI5PEAv.css +1 -0
- package/web-app/assets/index-CEpgiIwf.js +217 -0
- package/web-app/index.html +2 -2
- package/web-app/assets/index-BYIO2GGA.css +0 -1
- package/web-app/assets/index-kbnfuSZC.js +0 -128
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
var Th=Object.defineProperty;var Ah=(n,i,l)=>i in n?Th(n,i,{enumerable:!0,configurable:!0,writable:!0,value:l}):n[i]=l;var Yt=(n,i,l)=>Ah(n,typeof i!="symbol"?i+"":i,l);(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))a(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const c of s.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&a(c)}).observe(document,{childList:!0,subtree:!0});function l(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function a(o){if(o.ep)return;o.ep=!0;const s=l(o);fetch(o.href,s)}})();function getDefaultExportFromCjs(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function getAugmentedNamespace(n){if(Object.prototype.hasOwnProperty.call(n,"__esModule"))return n;var i=n.default;if(typeof i=="function"){var l=function a(){return this instanceof a?Reflect.construct(i,arguments,this.constructor):i.apply(this,arguments)};l.prototype=i.prototype}else l={};return Object.defineProperty(l,"__esModule",{value:!0}),Object.keys(n).forEach(function(a){var o=Object.getOwnPropertyDescriptor(n,a);Object.defineProperty(l,a,o.get?o:{enumerable:!0,get:function(){return n[a]}})}),l}var jsxRuntime={exports:{}},reactJsxRuntime_production={};/**
|
|
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 hasRequiredReactJsxRuntime_production;function requireReactJsxRuntime_production(){if(hasRequiredReactJsxRuntime_production)return reactJsxRuntime_production;hasRequiredReactJsxRuntime_production=1;var n=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function l(a,o,s){var c=null;if(s!==void 0&&(c=""+s),o.key!==void 0&&(c=""+o.key),"key"in o){s={};for(var h in o)h!=="key"&&(s[h]=o[h])}else s=o;return o=s.ref,{$$typeof:n,type:a,key:c,ref:o!==void 0?o:null,props:s}}return reactJsxRuntime_production.Fragment=i,reactJsxRuntime_production.jsx=l,reactJsxRuntime_production.jsxs=l,reactJsxRuntime_production}var hasRequiredJsxRuntime;function requireJsxRuntime(){return hasRequiredJsxRuntime||(hasRequiredJsxRuntime=1,jsxRuntime.exports=requireReactJsxRuntime_production()),jsxRuntime.exports}var jsxRuntimeExports=requireJsxRuntime(),react={exports:{}},react_production={};/**
|
|
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 hasRequiredReact_production;function requireReact_production(){if(hasRequiredReact_production)return react_production;hasRequiredReact_production=1;var n=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),c=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),x=Symbol.for("react.activity"),b=Symbol.iterator;function k(R){return R===null||typeof R!="object"?null:(R=b&&R[b]||R["@@iterator"],typeof R=="function"?R:null)}var T={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},q=Object.assign,P={};function L(R,X,_){this.props=R,this.context=X,this.refs=P,this.updater=_||T}L.prototype.isReactComponent={},L.prototype.setState=function(R,X){if(typeof R!="object"&&typeof R!="function"&&R!=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,R,X,"setState")},L.prototype.forceUpdate=function(R){this.updater.enqueueForceUpdate(this,R,"forceUpdate")};function ne(){}ne.prototype=L.prototype;function Q(R,X,_){this.props=R,this.context=X,this.refs=P,this.updater=_||T}var ge=Q.prototype=new ne;ge.constructor=Q,q(ge,L.prototype),ge.isPureReactComponent=!0;var pe=Array.isArray;function B(){}var ce={H:null,A:null,T:null,S:null},be=Object.prototype.hasOwnProperty;function Ee(R,X,_){var fe=_.ref;return{$$typeof:n,type:R,key:X,ref:fe!==void 0?fe:null,props:_}}function I(R,X){return Ee(R.type,X,R.props)}function he(R){return typeof R=="object"&&R!==null&&R.$$typeof===n}function de(R){var X={"=":"=0",":":"=2"};return"$"+R.replace(/[=:]/g,function(_){return X[_]})}var Ae=/\/+/g;function oe(R,X){return typeof R=="object"&&R!==null&&R.key!=null?de(""+R.key):X.toString(36)}function ue(R){switch(R.status){case"fulfilled":return R.value;case"rejected":throw R.reason;default:switch(typeof R.status=="string"?R.then(B,B):(R.status="pending",R.then(function(X){R.status==="pending"&&(R.status="fulfilled",R.value=X)},function(X){R.status==="pending"&&(R.status="rejected",R.reason=X)})),R.status){case"fulfilled":return R.value;case"rejected":throw R.reason}}throw R}function Z(R,X,_,fe,me){var xe=typeof R;(xe==="undefined"||xe==="boolean")&&(R=null);var we=!1;if(R===null)we=!0;else switch(xe){case"bigint":case"string":case"number":we=!0;break;case"object":switch(R.$$typeof){case n:case i:we=!0;break;case y:return we=R._init,Z(we(R._payload),X,_,fe,me)}}if(we)return me=me(R),we=fe===""?"."+oe(R,0):fe,pe(me)?(_="",we!=null&&(_=we.replace(Ae,"$&/")+"/"),Z(me,X,_,"",function(ct){return ct})):me!=null&&(he(me)&&(me=I(me,_+(me.key==null||R&&R.key===me.key?"":(""+me.key).replace(Ae,"$&/")+"/")+we)),X.push(me)),1;we=0;var Be=fe===""?".":fe+":";if(pe(R))for(var qe=0;qe<R.length;qe++)fe=R[qe],xe=Be+oe(fe,qe),we+=Z(fe,X,_,xe,me);else if(qe=k(R),typeof qe=="function")for(R=qe.call(R),qe=0;!(fe=R.next()).done;)fe=fe.value,xe=Be+oe(fe,qe++),we+=Z(fe,X,_,xe,me);else if(xe==="object"){if(typeof R.then=="function")return Z(ue(R),X,_,fe,me);throw X=String(R),Error("Objects are not valid as a React child (found: "+(X==="[object Object]"?"object with keys {"+Object.keys(R).join(", ")+"}":X)+"). If you meant to render a collection of children, use an array instead.")}return we}function ae(R,X,_){if(R==null)return R;var fe=[],me=0;return Z(R,fe,"","",function(xe){return X.call(_,xe,me++)}),fe}function te(R){if(R._status===-1){var X=R._result;X=X(),X.then(function(_){(R._status===0||R._status===-1)&&(R._status=1,R._result=_)},function(_){(R._status===0||R._status===-1)&&(R._status=2,R._result=_)}),R._status===-1&&(R._status=0,R._result=X)}if(R._status===1)return R._result.default;throw R._result}var Ce=typeof reportError=="function"?reportError:function(R){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var X=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof R=="object"&&R!==null&&typeof R.message=="string"?String(R.message):String(R),error:R});if(!window.dispatchEvent(X))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",R);return}console.error(R)},A={map:ae,forEach:function(R,X,_){ae(R,function(){X.apply(this,arguments)},_)},count:function(R){var X=0;return ae(R,function(){X++}),X},toArray:function(R){return ae(R,function(X){return X})||[]},only:function(R){if(!he(R))throw Error("React.Children.only expected to receive a single React element child.");return R}};return react_production.Activity=x,react_production.Children=A,react_production.Component=L,react_production.Fragment=l,react_production.Profiler=o,react_production.PureComponent=Q,react_production.StrictMode=a,react_production.Suspense=m,react_production.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ce,react_production.__COMPILER_RUNTIME={__proto__:null,c:function(R){return ce.H.useMemoCache(R)}},react_production.cache=function(R){return function(){return R.apply(null,arguments)}},react_production.cacheSignal=function(){return null},react_production.cloneElement=function(R,X,_){if(R==null)throw Error("The argument must be a React element, but you passed "+R+".");var fe=q({},R.props),me=R.key;if(X!=null)for(xe in X.key!==void 0&&(me=""+X.key),X)!be.call(X,xe)||xe==="key"||xe==="__self"||xe==="__source"||xe==="ref"&&X.ref===void 0||(fe[xe]=X[xe]);var xe=arguments.length-2;if(xe===1)fe.children=_;else if(1<xe){for(var we=Array(xe),Be=0;Be<xe;Be++)we[Be]=arguments[Be+2];fe.children=we}return Ee(R.type,me,fe)},react_production.createContext=function(R){return R={$$typeof:c,_currentValue:R,_currentValue2:R,_threadCount:0,Provider:null,Consumer:null},R.Provider=R,R.Consumer={$$typeof:s,_context:R},R},react_production.createElement=function(R,X,_){var fe,me={},xe=null;if(X!=null)for(fe in X.key!==void 0&&(xe=""+X.key),X)be.call(X,fe)&&fe!=="key"&&fe!=="__self"&&fe!=="__source"&&(me[fe]=X[fe]);var we=arguments.length-2;if(we===1)me.children=_;else if(1<we){for(var Be=Array(we),qe=0;qe<we;qe++)Be[qe]=arguments[qe+2];me.children=Be}if(R&&R.defaultProps)for(fe in we=R.defaultProps,we)me[fe]===void 0&&(me[fe]=we[fe]);return Ee(R,xe,me)},react_production.createRef=function(){return{current:null}},react_production.forwardRef=function(R){return{$$typeof:h,render:R}},react_production.isValidElement=he,react_production.lazy=function(R){return{$$typeof:y,_payload:{_status:-1,_result:R},_init:te}},react_production.memo=function(R,X){return{$$typeof:p,type:R,compare:X===void 0?null:X}},react_production.startTransition=function(R){var X=ce.T,_={};ce.T=_;try{var fe=R(),me=ce.S;me!==null&&me(_,fe),typeof fe=="object"&&fe!==null&&typeof fe.then=="function"&&fe.then(B,Ce)}catch(xe){Ce(xe)}finally{X!==null&&_.types!==null&&(X.types=_.types),ce.T=X}},react_production.unstable_useCacheRefresh=function(){return ce.H.useCacheRefresh()},react_production.use=function(R){return ce.H.use(R)},react_production.useActionState=function(R,X,_){return ce.H.useActionState(R,X,_)},react_production.useCallback=function(R,X){return ce.H.useCallback(R,X)},react_production.useContext=function(R){return ce.H.useContext(R)},react_production.useDebugValue=function(){},react_production.useDeferredValue=function(R,X){return ce.H.useDeferredValue(R,X)},react_production.useEffect=function(R,X){return ce.H.useEffect(R,X)},react_production.useEffectEvent=function(R){return ce.H.useEffectEvent(R)},react_production.useId=function(){return ce.H.useId()},react_production.useImperativeHandle=function(R,X,_){return ce.H.useImperativeHandle(R,X,_)},react_production.useInsertionEffect=function(R,X){return ce.H.useInsertionEffect(R,X)},react_production.useLayoutEffect=function(R,X){return ce.H.useLayoutEffect(R,X)},react_production.useMemo=function(R,X){return ce.H.useMemo(R,X)},react_production.useOptimistic=function(R,X){return ce.H.useOptimistic(R,X)},react_production.useReducer=function(R,X,_){return ce.H.useReducer(R,X,_)},react_production.useRef=function(R){return ce.H.useRef(R)},react_production.useState=function(R){return ce.H.useState(R)},react_production.useSyncExternalStore=function(R,X,_){return ce.H.useSyncExternalStore(R,X,_)},react_production.useTransition=function(){return ce.H.useTransition()},react_production.version="19.2.4",react_production}var hasRequiredReact;function requireReact(){return hasRequiredReact||(hasRequiredReact=1,react.exports=requireReact_production()),react.exports}var reactExports=requireReact();const React=getDefaultExportFromCjs(reactExports);var client={exports:{}},reactDomClient_production={},scheduler={exports:{}},scheduler_production={};/**
|
|
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 hasRequiredScheduler_production;function requireScheduler_production(){return hasRequiredScheduler_production||(hasRequiredScheduler_production=1,(function(n){function i(Z,ae){var te=Z.length;Z.push(ae);e:for(;0<te;){var Ce=te-1>>>1,A=Z[Ce];if(0<o(A,ae))Z[Ce]=ae,Z[te]=A,te=Ce;else break e}}function l(Z){return Z.length===0?null:Z[0]}function a(Z){if(Z.length===0)return null;var ae=Z[0],te=Z.pop();if(te!==ae){Z[0]=te;e:for(var Ce=0,A=Z.length,R=A>>>1;Ce<R;){var X=2*(Ce+1)-1,_=Z[X],fe=X+1,me=Z[fe];if(0>o(_,te))fe<A&&0>o(me,_)?(Z[Ce]=me,Z[fe]=te,Ce=fe):(Z[Ce]=_,Z[X]=te,Ce=X);else if(fe<A&&0>o(me,te))Z[Ce]=me,Z[fe]=te,Ce=fe;else break e}}return ae}function o(Z,ae){var te=Z.sortIndex-ae.sortIndex;return te!==0?te:Z.id-ae.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;n.unstable_now=function(){return s.now()}}else{var c=Date,h=c.now();n.unstable_now=function(){return c.now()-h}}var m=[],p=[],y=1,x=null,b=3,k=!1,T=!1,q=!1,P=!1,L=typeof setTimeout=="function"?setTimeout:null,ne=typeof clearTimeout=="function"?clearTimeout:null,Q=typeof setImmediate<"u"?setImmediate:null;function ge(Z){for(var ae=l(p);ae!==null;){if(ae.callback===null)a(p);else if(ae.startTime<=Z)a(p),ae.sortIndex=ae.expirationTime,i(m,ae);else break;ae=l(p)}}function pe(Z){if(q=!1,ge(Z),!T)if(l(m)!==null)T=!0,B||(B=!0,de());else{var ae=l(p);ae!==null&&ue(pe,ae.startTime-Z)}}var B=!1,ce=-1,be=5,Ee=-1;function I(){return P?!0:!(n.unstable_now()-Ee<be)}function he(){if(P=!1,B){var Z=n.unstable_now();Ee=Z;var ae=!0;try{e:{T=!1,q&&(q=!1,ne(ce),ce=-1),k=!0;var te=b;try{t:{for(ge(Z),x=l(m);x!==null&&!(x.expirationTime>Z&&I());){var Ce=x.callback;if(typeof Ce=="function"){x.callback=null,b=x.priorityLevel;var A=Ce(x.expirationTime<=Z);if(Z=n.unstable_now(),typeof A=="function"){x.callback=A,ge(Z),ae=!0;break t}x===l(m)&&a(m),ge(Z)}else a(m);x=l(m)}if(x!==null)ae=!0;else{var R=l(p);R!==null&&ue(pe,R.startTime-Z),ae=!1}}break e}finally{x=null,b=te,k=!1}ae=void 0}}finally{ae?de():B=!1}}}var de;if(typeof Q=="function")de=function(){Q(he)};else if(typeof MessageChannel<"u"){var Ae=new MessageChannel,oe=Ae.port2;Ae.port1.onmessage=he,de=function(){oe.postMessage(null)}}else de=function(){L(he,0)};function ue(Z,ae){ce=L(function(){Z(n.unstable_now())},ae)}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(Z){Z.callback=null},n.unstable_forceFrameRate=function(Z){0>Z||125<Z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):be=0<Z?Math.floor(1e3/Z):5},n.unstable_getCurrentPriorityLevel=function(){return b},n.unstable_next=function(Z){switch(b){case 1:case 2:case 3:var ae=3;break;default:ae=b}var te=b;b=ae;try{return Z()}finally{b=te}},n.unstable_requestPaint=function(){P=!0},n.unstable_runWithPriority=function(Z,ae){switch(Z){case 1:case 2:case 3:case 4:case 5:break;default:Z=3}var te=b;b=Z;try{return ae()}finally{b=te}},n.unstable_scheduleCallback=function(Z,ae,te){var Ce=n.unstable_now();switch(typeof te=="object"&&te!==null?(te=te.delay,te=typeof te=="number"&&0<te?Ce+te:Ce):te=Ce,Z){case 1:var A=-1;break;case 2:A=250;break;case 5:A=1073741823;break;case 4:A=1e4;break;default:A=5e3}return A=te+A,Z={id:y++,callback:ae,priorityLevel:Z,startTime:te,expirationTime:A,sortIndex:-1},te>Ce?(Z.sortIndex=te,i(p,Z),l(m)===null&&Z===l(p)&&(q?(ne(ce),ce=-1):q=!0,ue(pe,te-Ce))):(Z.sortIndex=A,i(m,Z),T||k||(T=!0,B||(B=!0,de()))),Z},n.unstable_shouldYield=I,n.unstable_wrapCallback=function(Z){var ae=b;return function(){var te=b;b=ae;try{return Z.apply(this,arguments)}finally{b=te}}}})(scheduler_production)),scheduler_production}var hasRequiredScheduler;function requireScheduler(){return hasRequiredScheduler||(hasRequiredScheduler=1,scheduler.exports=requireScheduler_production()),scheduler.exports}var reactDom={exports:{}},reactDom_production={};/**
|
|
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 hasRequiredReactDom_production;function requireReactDom_production(){if(hasRequiredReactDom_production)return reactDom_production;hasRequiredReactDom_production=1;var n=requireReact();function i(m){var p="https://react.dev/errors/"+m;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)p+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+m+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(){}var a={d:{f:l,r:function(){throw Error(i(522))},D:l,C:l,L:l,m:l,X:l,S:l,M:l},p:0,findDOMNode:null},o=Symbol.for("react.portal");function s(m,p,y){var x=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:x==null?null:""+x,children:m,containerInfo:p,implementation:y}}var c=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(m,p){if(m==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return reactDom_production.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,reactDom_production.createPortal=function(m,p){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(i(299));return s(m,p,null,y)},reactDom_production.flushSync=function(m){var p=c.T,y=a.p;try{if(c.T=null,a.p=2,m)return m()}finally{c.T=p,a.p=y,a.d.f()}},reactDom_production.preconnect=function(m,p){typeof m=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,a.d.C(m,p))},reactDom_production.prefetchDNS=function(m){typeof m=="string"&&a.d.D(m)},reactDom_production.preinit=function(m,p){if(typeof m=="string"&&p&&typeof p.as=="string"){var y=p.as,x=h(y,p.crossOrigin),b=typeof p.integrity=="string"?p.integrity:void 0,k=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;y==="style"?a.d.S(m,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:x,integrity:b,fetchPriority:k}):y==="script"&&a.d.X(m,{crossOrigin:x,integrity:b,fetchPriority:k,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},reactDom_production.preinitModule=function(m,p){if(typeof m=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var y=h(p.as,p.crossOrigin);a.d.M(m,{crossOrigin:y,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&a.d.M(m)},reactDom_production.preload=function(m,p){if(typeof m=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var y=p.as,x=h(y,p.crossOrigin);a.d.L(m,y,{crossOrigin:x,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})}},reactDom_production.preloadModule=function(m,p){if(typeof m=="string")if(p){var y=h(p.as,p.crossOrigin);a.d.m(m,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:y,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else a.d.m(m)},reactDom_production.requestFormReset=function(m){a.d.r(m)},reactDom_production.unstable_batchedUpdates=function(m,p){return m(p)},reactDom_production.useFormState=function(m,p,y){return c.H.useFormState(m,p,y)},reactDom_production.useFormStatus=function(){return c.H.useHostTransitionStatus()},reactDom_production.version="19.2.4",reactDom_production}var hasRequiredReactDom;function requireReactDom(){if(hasRequiredReactDom)return reactDom.exports;hasRequiredReactDom=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(i){console.error(i)}}return n(),reactDom.exports=requireReactDom_production(),reactDom.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 hasRequiredReactDomClient_production;function requireReactDomClient_production(){if(hasRequiredReactDomClient_production)return reactDomClient_production;hasRequiredReactDomClient_production=1;var n=requireScheduler(),i=requireReact(),l=requireReactDom();function a(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r])}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 s(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function c(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 h(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 m(e){if(s(e)!==e)throw Error(a(188))}function p(e){var t=e.alternate;if(!t){if(t=s(e),t===null)throw Error(a(188));return t!==e?null:e}for(var r=e,u=t;;){var f=r.return;if(f===null)break;var d=f.alternate;if(d===null){if(u=f.return,u!==null){r=u;continue}break}if(f.child===d.child){for(d=f.child;d;){if(d===r)return m(f),e;if(d===u)return m(f),t;d=d.sibling}throw Error(a(188))}if(r.return!==u.return)r=f,u=d;else{for(var v=!1,E=f.child;E;){if(E===r){v=!0,r=f,u=d;break}if(E===u){v=!0,u=f,r=d;break}E=E.sibling}if(!v){for(E=d.child;E;){if(E===r){v=!0,r=d,u=f;break}if(E===u){v=!0,u=d,r=f;break}E=E.sibling}if(!v)throw Error(a(189))}}if(r.alternate!==u)throw Error(a(190))}if(r.tag!==3)throw Error(a(188));return r.stateNode.current===r?e:t}function y(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=y(e),t!==null)return t;e=e.sibling}return null}var x=Object.assign,b=Symbol.for("react.element"),k=Symbol.for("react.transitional.element"),T=Symbol.for("react.portal"),q=Symbol.for("react.fragment"),P=Symbol.for("react.strict_mode"),L=Symbol.for("react.profiler"),ne=Symbol.for("react.consumer"),Q=Symbol.for("react.context"),ge=Symbol.for("react.forward_ref"),pe=Symbol.for("react.suspense"),B=Symbol.for("react.suspense_list"),ce=Symbol.for("react.memo"),be=Symbol.for("react.lazy"),Ee=Symbol.for("react.activity"),I=Symbol.for("react.memo_cache_sentinel"),he=Symbol.iterator;function de(e){return e===null||typeof e!="object"?null:(e=he&&e[he]||e["@@iterator"],typeof e=="function"?e:null)}var Ae=Symbol.for("react.client.reference");function oe(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Ae?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case q:return"Fragment";case L:return"Profiler";case P:return"StrictMode";case pe:return"Suspense";case B:return"SuspenseList";case Ee:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case T:return"Portal";case Q:return e.displayName||"Context";case ne:return(e._context.displayName||"Context")+".Consumer";case ge:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ce:return t=e.displayName||null,t!==null?t:oe(e.type)||"Memo";case be:t=e._payload,e=e._init;try{return oe(e(t))}catch{}}return null}var ue=Array.isArray,Z=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ae=l.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te={pending:!1,data:null,method:null,action:null},Ce=[],A=-1;function R(e){return{current:e}}function X(e){0>A||(e.current=Ce[A],Ce[A]=null,A--)}function _(e,t){A++,Ce[A]=e.current,e.current=t}var fe=R(null),me=R(null),xe=R(null),we=R(null);function Be(e,t){switch(_(xe,t),_(me,e),_(fe,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?jf(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=jf(t),e=qf(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}X(fe),_(fe,e)}function qe(){X(fe),X(me),X(xe)}function ct(e){e.memoizedState!==null&&_(we,e);var t=fe.current,r=qf(t,e.type);t!==r&&(_(me,e),_(fe,r))}function yt(e){me.current===e&&(X(fe),X(me)),we.current===e&&(X(we),Ir._currentValue=te)}var Lt,ln;function Tt(e){if(Lt===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);Lt=t&&t[1]||"",ln=-1<r.stack.indexOf(`
|
|
42
|
-
at`)?" (<anonymous>)":-1<r.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
-
`+Lt+e+ln}var Pt=!1;function Gt(e,t){if(!e||Pt)return"";Pt=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var u={DetermineComponentFrameRoot:function(){try{if(t){var ee=function(){throw Error()};if(Object.defineProperty(ee.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ee,[])}catch(F){var U=F}Reflect.construct(e,[],ee)}else{try{ee.call()}catch(F){U=F}e.call(ee.prototype)}}else{try{throw Error()}catch(F){U=F}(ee=e())&&typeof ee.catch=="function"&&ee.catch(function(){})}}catch(F){if(F&&U&&typeof F.stack=="string")return[F.stack,U.stack]}return[null,null]}};u.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var f=Object.getOwnPropertyDescriptor(u.DetermineComponentFrameRoot,"name");f&&f.configurable&&Object.defineProperty(u.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var d=u.DetermineComponentFrameRoot(),v=d[0],E=d[1];if(v&&E){var w=v.split(`
|
|
44
|
-
`),j=E.split(`
|
|
45
|
-
`);for(f=u=0;u<w.length&&!w[u].includes("DetermineComponentFrameRoot");)u++;for(;f<j.length&&!j[f].includes("DetermineComponentFrameRoot");)f++;if(u===w.length||f===j.length)for(u=w.length-1,f=j.length-1;1<=u&&0<=f&&w[u]!==j[f];)f--;for(;1<=u&&0<=f;u--,f--)if(w[u]!==j[f]){if(u!==1||f!==1)do if(u--,f--,0>f||w[u]!==j[f]){var K=`
|
|
46
|
-
`+w[u].replace(" at new "," at ");return e.displayName&&K.includes("<anonymous>")&&(K=K.replace("<anonymous>",e.displayName)),K}while(1<=u&&0<=f);break}}}finally{Pt=!1,Error.prepareStackTrace=r}return(r=e?e.displayName||e.name:"")?Tt(r):""}function _n(e,t){switch(e.tag){case 26:case 27:case 5:return Tt(e.type);case 16:return Tt("Lazy");case 13:return e.child!==t&&t!==null?Tt("Suspense Fallback"):Tt("Suspense");case 19:return Tt("SuspenseList");case 0:case 15:return Gt(e.type,!1);case 11:return Gt(e.type.render,!1);case 1:return Gt(e.type,!0);case 31:return Tt("Activity");default:return""}}function xt(e){try{var t="",r=null;do t+=_n(e,r),r=e,e=e.return;while(e);return t}catch(u){return`
|
|
47
|
-
Error generating stack: `+u.message+`
|
|
48
|
-
`+u.stack}}var Jt=Object.prototype.hasOwnProperty,Qt=n.unstable_scheduleCallback,Wt=n.unstable_cancelCallback,Cn=n.unstable_shouldYield,Kn=n.unstable_requestPaint,nt=n.unstable_now,g=n.unstable_getCurrentPriorityLevel,C=n.unstable_ImmediatePriority,z=n.unstable_UserBlockingPriority,$=n.unstable_NormalPriority,H=n.unstable_LowPriority,S=n.unstable_IdlePriority,D=n.log,G=n.unstable_setDisableYieldValue,Y=null,J=null;function ie(e){if(typeof D=="function"&&G(e),J&&typeof J.setStrictMode=="function")try{J.setStrictMode(Y,e)}catch{}}var V=Math.clz32?Math.clz32:ke,se=Math.log,le=Math.LN2;function ke(e){return e>>>=0,e===0?32:31-(se(e)/le|0)|0}var ze=256,Te=262144,We=4194304;function $n(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 Vr(e,t,r){var u=e.pendingLanes;if(u===0)return 0;var f=0,d=e.suspendedLanes,v=e.pingedLanes;e=e.warmLanes;var E=u&134217727;return E!==0?(u=E&~d,u!==0?f=$n(u):(v&=E,v!==0?f=$n(v):r||(r=E&~e,r!==0&&(f=$n(r))))):(E=u&~d,E!==0?f=$n(E):v!==0?f=$n(v):r||(r=u&~e,r!==0&&(f=$n(r)))),f===0?0:t!==0&&t!==f&&(t&d)===0&&(d=f&-f,r=t&-t,d>=r||d===32&&(r&4194048)!==0)?t:f}function Wi(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function pd(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 go(){var e=We;return We<<=1,(We&62914560)===0&&(We=4194304),e}function ia(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function er(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function hd(e,t,r,u,f,d){var v=e.pendingLanes;e.pendingLanes=r,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=r,e.entangledLanes&=r,e.errorRecoveryDisabledLanes&=r,e.shellSuspendCounter=0;var E=e.entanglements,w=e.expirationTimes,j=e.hiddenUpdates;for(r=v&~r;0<r;){var K=31-V(r),ee=1<<K;E[K]=0,w[K]=-1;var U=j[K];if(U!==null)for(j[K]=null,K=0;K<U.length;K++){var F=U[K];F!==null&&(F.lane&=-536870913)}r&=~ee}u!==0&&yo(e,u,0),d!==0&&f===0&&e.tag!==0&&(e.suspendedLanes|=d&~(v&~t))}function yo(e,t,r){e.pendingLanes|=t,e.suspendedLanes&=~t;var u=31-V(t);e.entangledLanes|=t,e.entanglements[u]=e.entanglements[u]|1073741824|r&261930}function xo(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var u=31-V(r),f=1<<u;f&t|e[u]&t&&(e[u]|=t),r&=~f}}function vo(e,t){var r=t&-t;return r=(r&42)!==0?1:ra(r),(r&(e.suspendedLanes|t))!==0?0:r}function ra(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 la(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function bo(){var e=ae.p;return e!==0?e:(e=window.event,e===void 0?32:ad(e.type))}function So(e,t){var r=ae.p;try{return ae.p=e,t()}finally{ae.p=r}}var Tn=Math.random().toString(36).slice(2),ft="__reactFiber$"+Tn,vt="__reactProps$"+Tn,mi="__reactContainer$"+Tn,aa="__reactEvents$"+Tn,md="__reactListeners$"+Tn,gd="__reactHandles$"+Tn,ko="__reactResources$"+Tn,tr="__reactMarker$"+Tn;function ua(e){delete e[ft],delete e[vt],delete e[aa],delete e[md],delete e[gd]}function gi(e){var t=e[ft];if(t)return t;for(var r=e.parentNode;r;){if(t=r[mi]||r[ft]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=Vf(e);e!==null;){if(r=e[ft])return r;e=Vf(e)}return t}e=r,r=e.parentNode}return null}function yi(e){if(e=e[ft]||e[mi]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function nr(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(a(33))}function xi(e){var t=e[ko];return t||(t=e[ko]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ot(e){e[tr]=!0}var Eo=new Set,_o={};function Jn(e,t){vi(e,t),vi(e+"Capture",t)}function vi(e,t){for(_o[e]=t,e=0;e<t.length;e++)Eo.add(t[e])}var yd=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]*$"),Co={},To={};function xd(e){return Jt.call(To,e)?!0:Jt.call(Co,e)?!1:yd.test(e)?To[e]=!0:(Co[e]=!0,!1)}function Yr(e,t,r){if(xd(t))if(r===null)e.removeAttribute(t);else{switch(typeof r){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var u=t.toLowerCase().slice(0,5);if(u!=="data-"&&u!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+r)}}function Pr(e,t,r){if(r===null)e.removeAttribute(t);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+r)}}function an(e,t,r,u){if(u===null)e.removeAttribute(r);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(r);return}e.setAttributeNS(t,r,""+u)}}function Nt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ao(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function vd(e,t,r){var u=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof u<"u"&&typeof u.get=="function"&&typeof u.set=="function"){var f=u.get,d=u.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return f.call(this)},set:function(v){r=""+v,d.call(this,v)}}),Object.defineProperty(e,t,{enumerable:u.enumerable}),{getValue:function(){return r},setValue:function(v){r=""+v},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function oa(e){if(!e._valueTracker){var t=Ao(e)?"checked":"value";e._valueTracker=vd(e,t,""+e[t])}}function wo(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),u="";return e&&(u=Ao(e)?e.checked?"true":"false":e.value),e=u,e!==r?(t.setValue(e),!0):!1}function Gr(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 bd=/[\n"\\]/g;function jt(e){return e.replace(bd,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function sa(e,t,r,u,f,d,v,E){e.name="",v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.type=v:e.removeAttribute("type"),t!=null?v==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Nt(t)):e.value!==""+Nt(t)&&(e.value=""+Nt(t)):v!=="submit"&&v!=="reset"||e.removeAttribute("value"),t!=null?ca(e,v,Nt(t)):r!=null?ca(e,v,Nt(r)):u!=null&&e.removeAttribute("value"),f==null&&d!=null&&(e.defaultChecked=!!d),f!=null&&(e.checked=f&&typeof f!="function"&&typeof f!="symbol"),E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"?e.name=""+Nt(E):e.removeAttribute("name")}function Ro(e,t,r,u,f,d,v,E){if(d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.type=d),t!=null||r!=null){if(!(d!=="submit"&&d!=="reset"||t!=null)){oa(e);return}r=r!=null?""+Nt(r):"",t=t!=null?""+Nt(t):r,E||t===e.value||(e.value=t),e.defaultValue=t}u=u??f,u=typeof u!="function"&&typeof u!="symbol"&&!!u,e.checked=E?e.checked:!!u,e.defaultChecked=!!u,v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(e.name=v),oa(e)}function ca(e,t,r){t==="number"&&Gr(e.ownerDocument)===e||e.defaultValue===""+r||(e.defaultValue=""+r)}function bi(e,t,r,u){if(e=e.options,t){t={};for(var f=0;f<r.length;f++)t["$"+r[f]]=!0;for(r=0;r<e.length;r++)f=t.hasOwnProperty("$"+e[r].value),e[r].selected!==f&&(e[r].selected=f),f&&u&&(e[r].defaultSelected=!0)}else{for(r=""+Nt(r),t=null,f=0;f<e.length;f++){if(e[f].value===r){e[f].selected=!0,u&&(e[f].defaultSelected=!0);return}t!==null||e[f].disabled||(t=e[f])}t!==null&&(t.selected=!0)}}function Oo(e,t,r){if(t!=null&&(t=""+Nt(t),t!==e.value&&(e.value=t),r==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=r!=null?""+Nt(r):""}function zo(e,t,r,u){if(t==null){if(u!=null){if(r!=null)throw Error(a(92));if(ue(u)){if(1<u.length)throw Error(a(93));u=u[0]}r=u}r==null&&(r=""),t=r}r=Nt(t),e.defaultValue=r,u=e.textContent,u===r&&u!==""&&u!==null&&(e.value=u),oa(e)}function Si(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Sd=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 Do(e,t,r){var u=t.indexOf("--")===0;r==null||typeof r=="boolean"||r===""?u?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":u?e.setProperty(t,r):typeof r!="number"||r===0||Sd.has(t)?t==="float"?e.cssFloat=r:e[t]=(""+r).trim():e[t]=r+"px"}function Mo(e,t,r){if(t!=null&&typeof t!="object")throw Error(a(62));if(e=e.style,r!=null){for(var u in r)!r.hasOwnProperty(u)||t!=null&&t.hasOwnProperty(u)||(u.indexOf("--")===0?e.setProperty(u,""):u==="float"?e.cssFloat="":e[u]="");for(var f in t)u=t[f],t.hasOwnProperty(f)&&r[f]!==u&&Do(e,f,u)}else for(var d in t)t.hasOwnProperty(d)&&Do(e,d,t[d])}function fa(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 kd=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"]]),Ed=/^[\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 Qr(e){return Ed.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function un(){}var da=null;function pa(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ki=null,Ei=null;function Lo(e){var t=yi(e);if(t&&(e=t.stateNode)){var r=e[vt]||null;e:switch(e=t.stateNode,t.type){case"input":if(sa(e,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll('input[name="'+jt(""+t)+'"][type="radio"]'),t=0;t<r.length;t++){var u=r[t];if(u!==e&&u.form===e.form){var f=u[vt]||null;if(!f)throw Error(a(90));sa(u,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name)}}for(t=0;t<r.length;t++)u=r[t],u.form===e.form&&wo(u)}break e;case"textarea":Oo(e,r.value,r.defaultValue);break e;case"select":t=r.value,t!=null&&bi(e,!!r.multiple,t,!1)}}}var ha=!1;function No(e,t,r){if(ha)return e(t,r);ha=!0;try{var u=e(t);return u}finally{if(ha=!1,(ki!==null||Ei!==null)&&(Nl(),ki&&(t=ki,e=Ei,Ei=ki=null,Lo(t),e)))for(t=0;t<e.length;t++)Lo(e[t])}}function ir(e,t){var r=e.stateNode;if(r===null)return null;var u=r[vt]||null;if(u===null)return null;r=u[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":(u=!u.disabled)||(e=e.type,u=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!u;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(a(231,t,typeof r));return r}var on=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ma=!1;if(on)try{var rr={};Object.defineProperty(rr,"passive",{get:function(){ma=!0}}),window.addEventListener("test",rr,rr),window.removeEventListener("test",rr,rr)}catch{ma=!1}var An=null,ga=null,Xr=null;function jo(){if(Xr)return Xr;var e,t=ga,r=t.length,u,f="value"in An?An.value:An.textContent,d=f.length;for(e=0;e<r&&t[e]===f[e];e++);var v=r-e;for(u=1;u<=v&&t[r-u]===f[d-u];u++);return Xr=f.slice(e,1<u?1-u:void 0)}function Kr(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 $r(){return!0}function qo(){return!1}function bt(e){function t(r,u,f,d,v){this._reactName=r,this._targetInst=f,this.type=u,this.nativeEvent=d,this.target=v,this.currentTarget=null;for(var E in e)e.hasOwnProperty(E)&&(r=e[E],this[E]=r?r(d):d[E]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?$r:qo,this.isPropagationStopped=qo,this}return x(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=$r)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=$r)},persist:function(){},isPersistent:$r}),t}var Wn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Jr=bt(Wn),lr=x({},Wn,{view:0,detail:0}),_d=bt(lr),ya,xa,ar,Wr=x({},lr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ba,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!==ar&&(ar&&e.type==="mousemove"?(ya=e.screenX-ar.screenX,xa=e.screenY-ar.screenY):xa=ya=0,ar=e),ya)},movementY:function(e){return"movementY"in e?e.movementY:xa}}),Zo=bt(Wr),Cd=x({},Wr,{dataTransfer:0}),Td=bt(Cd),Ad=x({},lr,{relatedTarget:0}),va=bt(Ad),wd=x({},Wn,{animationName:0,elapsedTime:0,pseudoElement:0}),Rd=bt(wd),Od=x({},Wn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),zd=bt(Od),Dd=x({},Wn,{data:0}),Uo=bt(Dd),Md={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ld={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"},Nd={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function jd(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Nd[e])?!!t[e]:!1}function ba(){return jd}var qd=x({},lr,{key:function(e){if(e.key){var t=Md[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Kr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Ld[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ba,charCode:function(e){return e.type==="keypress"?Kr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Kr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Zd=bt(qd),Ud=x({},Wr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Io=bt(Ud),Id=x({},lr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ba}),Bd=bt(Id),Hd=x({},Wn,{propertyName:0,elapsedTime:0,pseudoElement:0}),Fd=bt(Hd),Vd=x({},Wr,{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}),Yd=bt(Vd),Pd=x({},Wn,{newState:0,oldState:0}),Gd=bt(Pd),Qd=[9,13,27,32],Sa=on&&"CompositionEvent"in window,ur=null;on&&"documentMode"in document&&(ur=document.documentMode);var Xd=on&&"TextEvent"in window&&!ur,Bo=on&&(!Sa||ur&&8<ur&&11>=ur),Ho=" ",Fo=!1;function Vo(e,t){switch(e){case"keyup":return Qd.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Yo(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var _i=!1;function Kd(e,t){switch(e){case"compositionend":return Yo(t);case"keypress":return t.which!==32?null:(Fo=!0,Ho);case"textInput":return e=t.data,e===Ho&&Fo?null:e;default:return null}}function $d(e,t){if(_i)return e==="compositionend"||!Sa&&Vo(e,t)?(e=jo(),Xr=ga=An=null,_i=!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 Bo&&t.locale!=="ko"?null:t.data;default:return null}}var Jd={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 Po(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Jd[e.type]:t==="textarea"}function Go(e,t,r,u){ki?Ei?Ei.push(u):Ei=[u]:ki=u,t=Hl(t,"onChange"),0<t.length&&(r=new Jr("onChange","change",null,r,u),e.push({event:r,listeners:t}))}var or=null,sr=null;function Wd(e){Of(e,0)}function el(e){var t=nr(e);if(wo(t))return e}function Qo(e,t){if(e==="change")return t}var Xo=!1;if(on){var ka;if(on){var Ea="oninput"in document;if(!Ea){var Ko=document.createElement("div");Ko.setAttribute("oninput","return;"),Ea=typeof Ko.oninput=="function"}ka=Ea}else ka=!1;Xo=ka&&(!document.documentMode||9<document.documentMode)}function $o(){or&&(or.detachEvent("onpropertychange",Jo),sr=or=null)}function Jo(e){if(e.propertyName==="value"&&el(sr)){var t=[];Go(t,sr,e,pa(e)),No(Wd,t)}}function ep(e,t,r){e==="focusin"?($o(),or=t,sr=r,or.attachEvent("onpropertychange",Jo)):e==="focusout"&&$o()}function tp(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return el(sr)}function np(e,t){if(e==="click")return el(t)}function ip(e,t){if(e==="input"||e==="change")return el(t)}function rp(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var At=typeof Object.is=="function"?Object.is:rp;function cr(e,t){if(At(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),u=Object.keys(t);if(r.length!==u.length)return!1;for(u=0;u<r.length;u++){var f=r[u];if(!Jt.call(t,f)||!At(e[f],t[f]))return!1}return!0}function Wo(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function es(e,t){var r=Wo(e);e=0;for(var u;r;){if(r.nodeType===3){if(u=e+r.textContent.length,e<=t&&u>=t)return{node:r,offset:t-e};e=u}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Wo(r)}}function ts(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ts(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ns(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Gr(e.document);t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Gr(e.document)}return t}function _a(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 lp=on&&"documentMode"in document&&11>=document.documentMode,Ci=null,Ca=null,fr=null,Ta=!1;function is(e,t,r){var u=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Ta||Ci==null||Ci!==Gr(u)||(u=Ci,"selectionStart"in u&&_a(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),fr&&cr(fr,u)||(fr=u,u=Hl(Ca,"onSelect"),0<u.length&&(t=new Jr("onSelect","select",null,t,r),e.push({event:t,listeners:u}),t.target=Ci)))}function ei(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Ti={animationend:ei("Animation","AnimationEnd"),animationiteration:ei("Animation","AnimationIteration"),animationstart:ei("Animation","AnimationStart"),transitionrun:ei("Transition","TransitionRun"),transitionstart:ei("Transition","TransitionStart"),transitioncancel:ei("Transition","TransitionCancel"),transitionend:ei("Transition","TransitionEnd")},Aa={},rs={};on&&(rs=document.createElement("div").style,"AnimationEvent"in window||(delete Ti.animationend.animation,delete Ti.animationiteration.animation,delete Ti.animationstart.animation),"TransitionEvent"in window||delete Ti.transitionend.transition);function ti(e){if(Aa[e])return Aa[e];if(!Ti[e])return e;var t=Ti[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in rs)return Aa[e]=t[r];return e}var ls=ti("animationend"),as=ti("animationiteration"),us=ti("animationstart"),ap=ti("transitionrun"),up=ti("transitionstart"),op=ti("transitioncancel"),os=ti("transitionend"),ss=new Map,wa="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(" ");wa.push("scrollEnd");function Xt(e,t){ss.set(e,t),Jn(t,[e])}var tl=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)},qt=[],Ai=0,Ra=0;function nl(){for(var e=Ai,t=Ra=Ai=0;t<e;){var r=qt[t];qt[t++]=null;var u=qt[t];qt[t++]=null;var f=qt[t];qt[t++]=null;var d=qt[t];if(qt[t++]=null,u!==null&&f!==null){var v=u.pending;v===null?f.next=f:(f.next=v.next,v.next=f),u.pending=f}d!==0&&cs(r,f,d)}}function il(e,t,r,u){qt[Ai++]=e,qt[Ai++]=t,qt[Ai++]=r,qt[Ai++]=u,Ra|=u,e.lanes|=u,e=e.alternate,e!==null&&(e.lanes|=u)}function Oa(e,t,r,u){return il(e,t,r,u),rl(e)}function ni(e,t){return il(e,null,null,t),rl(e)}function cs(e,t,r){e.lanes|=r;var u=e.alternate;u!==null&&(u.lanes|=r);for(var f=!1,d=e.return;d!==null;)d.childLanes|=r,u=d.alternate,u!==null&&(u.childLanes|=r),d.tag===22&&(e=d.stateNode,e===null||e._visibility&1||(f=!0)),e=d,d=d.return;return e.tag===3?(d=e.stateNode,f&&t!==null&&(f=31-V(r),e=d.hiddenUpdates,u=e[f],u===null?e[f]=[t]:u.push(t),t.lane=r|536870912),d):null}function rl(e){if(50<Mr)throw Mr=0,Uu=null,Error(a(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var wi={};function sp(e,t,r,u){this.tag=e,this.key=r,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=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function wt(e,t,r,u){return new sp(e,t,r,u)}function za(e){return e=e.prototype,!(!e||!e.isReactComponent)}function sn(e,t){var r=e.alternate;return r===null?(r=wt(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&65011712,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r.refCleanup=e.refCleanup,r}function fs(e,t){e.flags&=65011714;var r=e.alternate;return r===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=r.childLanes,e.lanes=r.lanes,e.child=r.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=r.memoizedProps,e.memoizedState=r.memoizedState,e.updateQueue=r.updateQueue,e.type=r.type,t=r.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function ll(e,t,r,u,f,d){var v=0;if(u=e,typeof e=="function")za(e)&&(v=1);else if(typeof e=="string")v=hh(e,r,fe.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Ee:return e=wt(31,r,t,f),e.elementType=Ee,e.lanes=d,e;case q:return ii(r.children,f,d,t);case P:v=8,f|=24;break;case L:return e=wt(12,r,t,f|2),e.elementType=L,e.lanes=d,e;case pe:return e=wt(13,r,t,f),e.elementType=pe,e.lanes=d,e;case B:return e=wt(19,r,t,f),e.elementType=B,e.lanes=d,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Q:v=10;break e;case ne:v=9;break e;case ge:v=11;break e;case ce:v=14;break e;case be:v=16,u=null;break e}v=29,r=Error(a(130,e===null?"null":typeof e,"")),u=null}return t=wt(v,r,t,f),t.elementType=e,t.type=u,t.lanes=d,t}function ii(e,t,r,u){return e=wt(7,e,u,t),e.lanes=r,e}function Da(e,t,r){return e=wt(6,e,null,t),e.lanes=r,e}function ds(e){var t=wt(18,null,null,0);return t.stateNode=e,t}function Ma(e,t,r){return t=wt(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var ps=new WeakMap;function Zt(e,t){if(typeof e=="object"&&e!==null){var r=ps.get(e);return r!==void 0?r:(t={value:e,source:t,stack:xt(t)},ps.set(e,t),t)}return{value:e,source:t,stack:xt(t)}}var Ri=[],Oi=0,al=null,dr=0,Ut=[],It=0,wn=null,en=1,tn="";function cn(e,t){Ri[Oi++]=dr,Ri[Oi++]=al,al=e,dr=t}function hs(e,t,r){Ut[It++]=en,Ut[It++]=tn,Ut[It++]=wn,wn=e;var u=en;e=tn;var f=32-V(u)-1;u&=~(1<<f),r+=1;var d=32-V(t)+f;if(30<d){var v=f-f%5;d=(u&(1<<v)-1).toString(32),u>>=v,f-=v,en=1<<32-V(t)+f|r<<f|u,tn=d+e}else en=1<<d|r<<f|u,tn=e}function La(e){e.return!==null&&(cn(e,1),hs(e,1,0))}function Na(e){for(;e===al;)al=Ri[--Oi],Ri[Oi]=null,dr=Ri[--Oi],Ri[Oi]=null;for(;e===wn;)wn=Ut[--It],Ut[It]=null,tn=Ut[--It],Ut[It]=null,en=Ut[--It],Ut[It]=null}function ms(e,t){Ut[It++]=en,Ut[It++]=tn,Ut[It++]=wn,en=t.id,tn=t.overflow,wn=e}var dt=null,Qe=null,je=!1,Rn=null,Bt=!1,ja=Error(a(519));function On(e){var t=Error(a(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw pr(Zt(t,e)),ja}function gs(e){var t=e.stateNode,r=e.type,u=e.memoizedProps;switch(t[ft]=e,t[vt]=u,r){case"dialog":Me("cancel",t),Me("close",t);break;case"iframe":case"object":case"embed":Me("load",t);break;case"video":case"audio":for(r=0;r<Nr.length;r++)Me(Nr[r],t);break;case"source":Me("error",t);break;case"img":case"image":case"link":Me("error",t),Me("load",t);break;case"details":Me("toggle",t);break;case"input":Me("invalid",t),Ro(t,u.value,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name,!0);break;case"select":Me("invalid",t);break;case"textarea":Me("invalid",t),zo(t,u.value,u.defaultValue,u.children)}r=u.children,typeof r!="string"&&typeof r!="number"&&typeof r!="bigint"||t.textContent===""+r||u.suppressHydrationWarning===!0||Lf(t.textContent,r)?(u.popover!=null&&(Me("beforetoggle",t),Me("toggle",t)),u.onScroll!=null&&Me("scroll",t),u.onScrollEnd!=null&&Me("scrollend",t),u.onClick!=null&&(t.onclick=un),t=!0):t=!1,t||On(e,!0)}function ys(e){for(dt=e.return;dt;)switch(dt.tag){case 5:case 31:case 13:Bt=!1;return;case 27:case 3:Bt=!0;return;default:dt=dt.return}}function zi(e){if(e!==dt)return!1;if(!je)return ys(e),je=!0,!1;var t=e.tag,r;if((r=t!==3&&t!==27)&&((r=t===5)&&(r=e.type,r=!(r!=="form"&&r!=="button")||eo(e.type,e.memoizedProps)),r=!r),r&&Qe&&On(e),ys(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(a(317));Qe=Ff(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(a(317));Qe=Ff(e)}else t===27?(t=Qe,Vn(e.type)?(e=lo,lo=null,Qe=e):Qe=t):Qe=dt?Ft(e.stateNode.nextSibling):null;return!0}function ri(){Qe=dt=null,je=!1}function qa(){var e=Rn;return e!==null&&(_t===null?_t=e:_t.push.apply(_t,e),Rn=null),e}function pr(e){Rn===null?Rn=[e]:Rn.push(e)}var Za=R(null),li=null,fn=null;function zn(e,t,r){_(Za,t._currentValue),t._currentValue=r}function dn(e){e._currentValue=Za.current,X(Za)}function Ua(e,t,r){for(;e!==null;){var u=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,u!==null&&(u.childLanes|=t)):u!==null&&(u.childLanes&t)!==t&&(u.childLanes|=t),e===r)break;e=e.return}}function Ia(e,t,r,u){var f=e.child;for(f!==null&&(f.return=e);f!==null;){var d=f.dependencies;if(d!==null){var v=f.child;d=d.firstContext;e:for(;d!==null;){var E=d;d=f;for(var w=0;w<t.length;w++)if(E.context===t[w]){d.lanes|=r,E=d.alternate,E!==null&&(E.lanes|=r),Ua(d.return,r,e),u||(v=null);break e}d=E.next}}else if(f.tag===18){if(v=f.return,v===null)throw Error(a(341));v.lanes|=r,d=v.alternate,d!==null&&(d.lanes|=r),Ua(v,r,e),v=null}else v=f.child;if(v!==null)v.return=f;else for(v=f;v!==null;){if(v===e){v=null;break}if(f=v.sibling,f!==null){f.return=v.return,v=f;break}v=v.return}f=v}}function Di(e,t,r,u){e=null;for(var f=t,d=!1;f!==null;){if(!d){if((f.flags&524288)!==0)d=!0;else if((f.flags&262144)!==0)break}if(f.tag===10){var v=f.alternate;if(v===null)throw Error(a(387));if(v=v.memoizedProps,v!==null){var E=f.type;At(f.pendingProps.value,v.value)||(e!==null?e.push(E):e=[E])}}else if(f===we.current){if(v=f.alternate,v===null)throw Error(a(387));v.memoizedState.memoizedState!==f.memoizedState.memoizedState&&(e!==null?e.push(Ir):e=[Ir])}f=f.return}e!==null&&Ia(t,e,r,u),t.flags|=262144}function ul(e){for(e=e.firstContext;e!==null;){if(!At(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ai(e){li=e,fn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function pt(e){return xs(li,e)}function ol(e,t){return li===null&&ai(e),xs(e,t)}function xs(e,t){var r=t._currentValue;if(t={context:t,memoizedValue:r,next:null},fn===null){if(e===null)throw Error(a(308));fn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else fn=fn.next=t;return r}var cp=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(r,u){e.push(u)}};this.abort=function(){t.aborted=!0,e.forEach(function(r){return r()})}},fp=n.unstable_scheduleCallback,dp=n.unstable_NormalPriority,it={$$typeof:Q,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ba(){return{controller:new cp,data:new Map,refCount:0}}function hr(e){e.refCount--,e.refCount===0&&fp(dp,function(){e.controller.abort()})}var mr=null,Ha=0,Mi=0,Li=null;function pp(e,t){if(mr===null){var r=mr=[];Ha=0,Mi=Yu(),Li={status:"pending",value:void 0,then:function(u){r.push(u)}}}return Ha++,t.then(vs,vs),t}function vs(){if(--Ha===0&&mr!==null){Li!==null&&(Li.status="fulfilled");var e=mr;mr=null,Mi=0,Li=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function hp(e,t){var r=[],u={status:"pending",value:null,reason:null,then:function(f){r.push(f)}};return e.then(function(){u.status="fulfilled",u.value=t;for(var f=0;f<r.length;f++)(0,r[f])(t)},function(f){for(u.status="rejected",u.reason=f,f=0;f<r.length;f++)(0,r[f])(void 0)}),u}var bs=Z.S;Z.S=function(e,t){rf=nt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&pp(e,t),bs!==null&&bs(e,t)};var ui=R(null);function Fa(){var e=ui.current;return e!==null?e:Ge.pooledCache}function sl(e,t){t===null?_(ui,ui.current):_(ui,t.pool)}function Ss(){var e=Fa();return e===null?null:{parent:it._currentValue,pool:e}}var Ni=Error(a(460)),Va=Error(a(474)),cl=Error(a(542)),fl={then:function(){}};function ks(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Es(e,t,r){switch(r=e[r],r===void 0?e.push(t):r!==t&&(t.then(un,un),t=r),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Cs(e),e;default:if(typeof t.status=="string")t.then(un,un);else{if(e=Ge,e!==null&&100<e.shellSuspendCounter)throw Error(a(482));e=t,e.status="pending",e.then(function(u){if(t.status==="pending"){var f=t;f.status="fulfilled",f.value=u}},function(u){if(t.status==="pending"){var f=t;f.status="rejected",f.reason=u}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Cs(e),e}throw si=t,Ni}}function oi(e){try{var t=e._init;return t(e._payload)}catch(r){throw r!==null&&typeof r=="object"&&typeof r.then=="function"?(si=r,Ni):r}}var si=null;function _s(){if(si===null)throw Error(a(459));var e=si;return si=null,e}function Cs(e){if(e===Ni||e===cl)throw Error(a(483))}var ji=null,gr=0;function dl(e){var t=gr;return gr+=1,ji===null&&(ji=[]),Es(ji,e,t)}function yr(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function pl(e,t){throw t.$$typeof===b?Error(a(525)):(e=Object.prototype.toString.call(t),Error(a(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Ts(e){function t(M,O){if(e){var N=M.deletions;N===null?(M.deletions=[O],M.flags|=16):N.push(O)}}function r(M,O){if(!e)return null;for(;O!==null;)t(M,O),O=O.sibling;return null}function u(M){for(var O=new Map;M!==null;)M.key!==null?O.set(M.key,M):O.set(M.index,M),M=M.sibling;return O}function f(M,O){return M=sn(M,O),M.index=0,M.sibling=null,M}function d(M,O,N){return M.index=N,e?(N=M.alternate,N!==null?(N=N.index,N<O?(M.flags|=67108866,O):N):(M.flags|=67108866,O)):(M.flags|=1048576,O)}function v(M){return e&&M.alternate===null&&(M.flags|=67108866),M}function E(M,O,N,W){return O===null||O.tag!==6?(O=Da(N,M.mode,W),O.return=M,O):(O=f(O,N),O.return=M,O)}function w(M,O,N,W){var Se=N.type;return Se===q?K(M,O,N.props.children,W,N.key):O!==null&&(O.elementType===Se||typeof Se=="object"&&Se!==null&&Se.$$typeof===be&&oi(Se)===O.type)?(O=f(O,N.props),yr(O,N),O.return=M,O):(O=ll(N.type,N.key,N.props,null,M.mode,W),yr(O,N),O.return=M,O)}function j(M,O,N,W){return O===null||O.tag!==4||O.stateNode.containerInfo!==N.containerInfo||O.stateNode.implementation!==N.implementation?(O=Ma(N,M.mode,W),O.return=M,O):(O=f(O,N.children||[]),O.return=M,O)}function K(M,O,N,W,Se){return O===null||O.tag!==7?(O=ii(N,M.mode,W,Se),O.return=M,O):(O=f(O,N),O.return=M,O)}function ee(M,O,N){if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return O=Da(""+O,M.mode,N),O.return=M,O;if(typeof O=="object"&&O!==null){switch(O.$$typeof){case k:return N=ll(O.type,O.key,O.props,null,M.mode,N),yr(N,O),N.return=M,N;case T:return O=Ma(O,M.mode,N),O.return=M,O;case be:return O=oi(O),ee(M,O,N)}if(ue(O)||de(O))return O=ii(O,M.mode,N,null),O.return=M,O;if(typeof O.then=="function")return ee(M,dl(O),N);if(O.$$typeof===Q)return ee(M,ol(M,O),N);pl(M,O)}return null}function U(M,O,N,W){var Se=O!==null?O.key:null;if(typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint")return Se!==null?null:E(M,O,""+N,W);if(typeof N=="object"&&N!==null){switch(N.$$typeof){case k:return N.key===Se?w(M,O,N,W):null;case T:return N.key===Se?j(M,O,N,W):null;case be:return N=oi(N),U(M,O,N,W)}if(ue(N)||de(N))return Se!==null?null:K(M,O,N,W,null);if(typeof N.then=="function")return U(M,O,dl(N),W);if(N.$$typeof===Q)return U(M,O,ol(M,N),W);pl(M,N)}return null}function F(M,O,N,W,Se){if(typeof W=="string"&&W!==""||typeof W=="number"||typeof W=="bigint")return M=M.get(N)||null,E(O,M,""+W,Se);if(typeof W=="object"&&W!==null){switch(W.$$typeof){case k:return M=M.get(W.key===null?N:W.key)||null,w(O,M,W,Se);case T:return M=M.get(W.key===null?N:W.key)||null,j(O,M,W,Se);case be:return W=oi(W),F(M,O,N,W,Se)}if(ue(W)||de(W))return M=M.get(N)||null,K(O,M,W,Se,null);if(typeof W.then=="function")return F(M,O,N,dl(W),Se);if(W.$$typeof===Q)return F(M,O,N,ol(O,W),Se);pl(O,W)}return null}function ye(M,O,N,W){for(var Se=null,Ze=null,ve=O,Oe=O=0,Ne=null;ve!==null&&Oe<N.length;Oe++){ve.index>Oe?(Ne=ve,ve=null):Ne=ve.sibling;var Ue=U(M,ve,N[Oe],W);if(Ue===null){ve===null&&(ve=Ne);break}e&&ve&&Ue.alternate===null&&t(M,ve),O=d(Ue,O,Oe),Ze===null?Se=Ue:Ze.sibling=Ue,Ze=Ue,ve=Ne}if(Oe===N.length)return r(M,ve),je&&cn(M,Oe),Se;if(ve===null){for(;Oe<N.length;Oe++)ve=ee(M,N[Oe],W),ve!==null&&(O=d(ve,O,Oe),Ze===null?Se=ve:Ze.sibling=ve,Ze=ve);return je&&cn(M,Oe),Se}for(ve=u(ve);Oe<N.length;Oe++)Ne=F(ve,M,Oe,N[Oe],W),Ne!==null&&(e&&Ne.alternate!==null&&ve.delete(Ne.key===null?Oe:Ne.key),O=d(Ne,O,Oe),Ze===null?Se=Ne:Ze.sibling=Ne,Ze=Ne);return e&&ve.forEach(function(Xn){return t(M,Xn)}),je&&cn(M,Oe),Se}function _e(M,O,N,W){if(N==null)throw Error(a(151));for(var Se=null,Ze=null,ve=O,Oe=O=0,Ne=null,Ue=N.next();ve!==null&&!Ue.done;Oe++,Ue=N.next()){ve.index>Oe?(Ne=ve,ve=null):Ne=ve.sibling;var Xn=U(M,ve,Ue.value,W);if(Xn===null){ve===null&&(ve=Ne);break}e&&ve&&Xn.alternate===null&&t(M,ve),O=d(Xn,O,Oe),Ze===null?Se=Xn:Ze.sibling=Xn,Ze=Xn,ve=Ne}if(Ue.done)return r(M,ve),je&&cn(M,Oe),Se;if(ve===null){for(;!Ue.done;Oe++,Ue=N.next())Ue=ee(M,Ue.value,W),Ue!==null&&(O=d(Ue,O,Oe),Ze===null?Se=Ue:Ze.sibling=Ue,Ze=Ue);return je&&cn(M,Oe),Se}for(ve=u(ve);!Ue.done;Oe++,Ue=N.next())Ue=F(ve,M,Oe,Ue.value,W),Ue!==null&&(e&&Ue.alternate!==null&&ve.delete(Ue.key===null?Oe:Ue.key),O=d(Ue,O,Oe),Ze===null?Se=Ue:Ze.sibling=Ue,Ze=Ue);return e&&ve.forEach(function(Ch){return t(M,Ch)}),je&&cn(M,Oe),Se}function Pe(M,O,N,W){if(typeof N=="object"&&N!==null&&N.type===q&&N.key===null&&(N=N.props.children),typeof N=="object"&&N!==null){switch(N.$$typeof){case k:e:{for(var Se=N.key;O!==null;){if(O.key===Se){if(Se=N.type,Se===q){if(O.tag===7){r(M,O.sibling),W=f(O,N.props.children),W.return=M,M=W;break e}}else if(O.elementType===Se||typeof Se=="object"&&Se!==null&&Se.$$typeof===be&&oi(Se)===O.type){r(M,O.sibling),W=f(O,N.props),yr(W,N),W.return=M,M=W;break e}r(M,O);break}else t(M,O);O=O.sibling}N.type===q?(W=ii(N.props.children,M.mode,W,N.key),W.return=M,M=W):(W=ll(N.type,N.key,N.props,null,M.mode,W),yr(W,N),W.return=M,M=W)}return v(M);case T:e:{for(Se=N.key;O!==null;){if(O.key===Se)if(O.tag===4&&O.stateNode.containerInfo===N.containerInfo&&O.stateNode.implementation===N.implementation){r(M,O.sibling),W=f(O,N.children||[]),W.return=M,M=W;break e}else{r(M,O);break}else t(M,O);O=O.sibling}W=Ma(N,M.mode,W),W.return=M,M=W}return v(M);case be:return N=oi(N),Pe(M,O,N,W)}if(ue(N))return ye(M,O,N,W);if(de(N)){if(Se=de(N),typeof Se!="function")throw Error(a(150));return N=Se.call(N),_e(M,O,N,W)}if(typeof N.then=="function")return Pe(M,O,dl(N),W);if(N.$$typeof===Q)return Pe(M,O,ol(M,N),W);pl(M,N)}return typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint"?(N=""+N,O!==null&&O.tag===6?(r(M,O.sibling),W=f(O,N),W.return=M,M=W):(r(M,O),W=Da(N,M.mode,W),W.return=M,M=W),v(M)):r(M,O)}return function(M,O,N,W){try{gr=0;var Se=Pe(M,O,N,W);return ji=null,Se}catch(ve){if(ve===Ni||ve===cl)throw ve;var Ze=wt(29,ve,null,M.mode);return Ze.lanes=W,Ze.return=M,Ze}finally{}}}var ci=Ts(!0),As=Ts(!1),Dn=!1;function Ya(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Pa(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 Mn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ln(e,t,r){var u=e.updateQueue;if(u===null)return null;if(u=u.shared,(Ie&2)!==0){var f=u.pending;return f===null?t.next=t:(t.next=f.next,f.next=t),u.pending=t,t=rl(e),cs(e,null,r),t}return il(e,u,t,r),rl(e)}function xr(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194048)!==0)){var u=t.lanes;u&=e.pendingLanes,r|=u,t.lanes=r,xo(e,r)}}function Ga(e,t){var r=e.updateQueue,u=e.alternate;if(u!==null&&(u=u.updateQueue,r===u)){var f=null,d=null;if(r=r.firstBaseUpdate,r!==null){do{var v={lane:r.lane,tag:r.tag,payload:r.payload,callback:null,next:null};d===null?f=d=v:d=d.next=v,r=r.next}while(r!==null);d===null?f=d=t:d=d.next=t}else f=d=t;r={baseState:u.baseState,firstBaseUpdate:f,lastBaseUpdate:d,shared:u.shared,callbacks:u.callbacks},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}var Qa=!1;function vr(){if(Qa){var e=Li;if(e!==null)throw e}}function br(e,t,r,u){Qa=!1;var f=e.updateQueue;Dn=!1;var d=f.firstBaseUpdate,v=f.lastBaseUpdate,E=f.shared.pending;if(E!==null){f.shared.pending=null;var w=E,j=w.next;w.next=null,v===null?d=j:v.next=j,v=w;var K=e.alternate;K!==null&&(K=K.updateQueue,E=K.lastBaseUpdate,E!==v&&(E===null?K.firstBaseUpdate=j:E.next=j,K.lastBaseUpdate=w))}if(d!==null){var ee=f.baseState;v=0,K=j=w=null,E=d;do{var U=E.lane&-536870913,F=U!==E.lane;if(F?(Le&U)===U:(u&U)===U){U!==0&&U===Mi&&(Qa=!0),K!==null&&(K=K.next={lane:0,tag:E.tag,payload:E.payload,callback:null,next:null});e:{var ye=e,_e=E;U=t;var Pe=r;switch(_e.tag){case 1:if(ye=_e.payload,typeof ye=="function"){ee=ye.call(Pe,ee,U);break e}ee=ye;break e;case 3:ye.flags=ye.flags&-65537|128;case 0:if(ye=_e.payload,U=typeof ye=="function"?ye.call(Pe,ee,U):ye,U==null)break e;ee=x({},ee,U);break e;case 2:Dn=!0}}U=E.callback,U!==null&&(e.flags|=64,F&&(e.flags|=8192),F=f.callbacks,F===null?f.callbacks=[U]:F.push(U))}else F={lane:U,tag:E.tag,payload:E.payload,callback:E.callback,next:null},K===null?(j=K=F,w=ee):K=K.next=F,v|=U;if(E=E.next,E===null){if(E=f.shared.pending,E===null)break;F=E,E=F.next,F.next=null,f.lastBaseUpdate=F,f.shared.pending=null}}while(!0);K===null&&(w=ee),f.baseState=w,f.firstBaseUpdate=j,f.lastBaseUpdate=K,d===null&&(f.shared.lanes=0),Un|=v,e.lanes=v,e.memoizedState=ee}}function ws(e,t){if(typeof e!="function")throw Error(a(191,e));e.call(t)}function Rs(e,t){var r=e.callbacks;if(r!==null)for(e.callbacks=null,e=0;e<r.length;e++)ws(r[e],t)}var qi=R(null),hl=R(0);function Os(e,t){e=Sn,_(hl,e),_(qi,t),Sn=e|t.baseLanes}function Xa(){_(hl,Sn),_(qi,qi.current)}function Ka(){Sn=hl.current,X(qi),X(hl)}var Rt=R(null),Ht=null;function Nn(e){var t=e.alternate;_(et,et.current&1),_(Rt,e),Ht===null&&(t===null||qi.current!==null||t.memoizedState!==null)&&(Ht=e)}function $a(e){_(et,et.current),_(Rt,e),Ht===null&&(Ht=e)}function zs(e){e.tag===22?(_(et,et.current),_(Rt,e),Ht===null&&(Ht=e)):jn()}function jn(){_(et,et.current),_(Rt,Rt.current)}function Ot(e){X(Rt),Ht===e&&(Ht=null),X(et)}var et=R(0);function ml(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||io(r)||ro(r)))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 pn=0,Re=null,Ve=null,rt=null,gl=!1,Zi=!1,fi=!1,yl=0,Sr=0,Ui=null,mp=0;function $e(){throw Error(a(321))}function Ja(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!At(e[r],t[r]))return!1;return!0}function Wa(e,t,r,u,f,d){return pn=d,Re=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Z.H=e===null||e.memoizedState===null?hc:hu,fi=!1,d=r(u,f),fi=!1,Zi&&(d=Ms(t,r,u,f)),Ds(e),d}function Ds(e){Z.H=_r;var t=Ve!==null&&Ve.next!==null;if(pn=0,rt=Ve=Re=null,gl=!1,Sr=0,Ui=null,t)throw Error(a(300));e===null||lt||(e=e.dependencies,e!==null&&ul(e)&&(lt=!0))}function Ms(e,t,r,u){Re=e;var f=0;do{if(Zi&&(Ui=null),Sr=0,Zi=!1,25<=f)throw Error(a(301));if(f+=1,rt=Ve=null,e.updateQueue!=null){var d=e.updateQueue;d.lastEffect=null,d.events=null,d.stores=null,d.memoCache!=null&&(d.memoCache.index=0)}Z.H=mc,d=t(r,u)}while(Zi);return d}function gp(){var e=Z.H,t=e.useState()[0];return t=typeof t.then=="function"?kr(t):t,e=e.useState()[0],(Ve!==null?Ve.memoizedState:null)!==e&&(Re.flags|=1024),t}function eu(){var e=yl!==0;return yl=0,e}function tu(e,t,r){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~r}function nu(e){if(gl){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}gl=!1}pn=0,rt=Ve=Re=null,Zi=!1,Sr=yl=0,Ui=null}function gt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return rt===null?Re.memoizedState=rt=e:rt=rt.next=e,rt}function tt(){if(Ve===null){var e=Re.alternate;e=e!==null?e.memoizedState:null}else e=Ve.next;var t=rt===null?Re.memoizedState:rt.next;if(t!==null)rt=t,Ve=e;else{if(e===null)throw Re.alternate===null?Error(a(467)):Error(a(310));Ve=e,e={memoizedState:Ve.memoizedState,baseState:Ve.baseState,baseQueue:Ve.baseQueue,queue:Ve.queue,next:null},rt===null?Re.memoizedState=rt=e:rt=rt.next=e}return rt}function xl(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function kr(e){var t=Sr;return Sr+=1,Ui===null&&(Ui=[]),e=Es(Ui,e,t),t=Re,(rt===null?t.memoizedState:rt.next)===null&&(t=t.alternate,Z.H=t===null||t.memoizedState===null?hc:hu),e}function vl(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return kr(e);if(e.$$typeof===Q)return pt(e)}throw Error(a(438,String(e)))}function iu(e){var t=null,r=Re.updateQueue;if(r!==null&&(t=r.memoCache),t==null){var u=Re.alternate;u!==null&&(u=u.updateQueue,u!==null&&(u=u.memoCache,u!=null&&(t={data:u.data.map(function(f){return f.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),r===null&&(r=xl(),Re.updateQueue=r),r.memoCache=t,r=t.data[t.index],r===void 0)for(r=t.data[t.index]=Array(e),u=0;u<e;u++)r[u]=I;return t.index++,r}function hn(e,t){return typeof t=="function"?t(e):t}function bl(e){var t=tt();return ru(t,Ve,e)}function ru(e,t,r){var u=e.queue;if(u===null)throw Error(a(311));u.lastRenderedReducer=r;var f=e.baseQueue,d=u.pending;if(d!==null){if(f!==null){var v=f.next;f.next=d.next,d.next=v}t.baseQueue=f=d,u.pending=null}if(d=e.baseState,f===null)e.memoizedState=d;else{t=f.next;var E=v=null,w=null,j=t,K=!1;do{var ee=j.lane&-536870913;if(ee!==j.lane?(Le&ee)===ee:(pn&ee)===ee){var U=j.revertLane;if(U===0)w!==null&&(w=w.next={lane:0,revertLane:0,gesture:null,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null}),ee===Mi&&(K=!0);else if((pn&U)===U){j=j.next,U===Mi&&(K=!0);continue}else ee={lane:0,revertLane:j.revertLane,gesture:null,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null},w===null?(E=w=ee,v=d):w=w.next=ee,Re.lanes|=U,Un|=U;ee=j.action,fi&&r(d,ee),d=j.hasEagerState?j.eagerState:r(d,ee)}else U={lane:ee,revertLane:j.revertLane,gesture:j.gesture,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null},w===null?(E=w=U,v=d):w=w.next=U,Re.lanes|=ee,Un|=ee;j=j.next}while(j!==null&&j!==t);if(w===null?v=d:w.next=E,!At(d,e.memoizedState)&&(lt=!0,K&&(r=Li,r!==null)))throw r;e.memoizedState=d,e.baseState=v,e.baseQueue=w,u.lastRenderedState=d}return f===null&&(u.lanes=0),[e.memoizedState,u.dispatch]}function lu(e){var t=tt(),r=t.queue;if(r===null)throw Error(a(311));r.lastRenderedReducer=e;var u=r.dispatch,f=r.pending,d=t.memoizedState;if(f!==null){r.pending=null;var v=f=f.next;do d=e(d,v.action),v=v.next;while(v!==f);At(d,t.memoizedState)||(lt=!0),t.memoizedState=d,t.baseQueue===null&&(t.baseState=d),r.lastRenderedState=d}return[d,u]}function Ls(e,t,r){var u=Re,f=tt(),d=je;if(d){if(r===void 0)throw Error(a(407));r=r()}else r=t();var v=!At((Ve||f).memoizedState,r);if(v&&(f.memoizedState=r,lt=!0),f=f.queue,ou(qs.bind(null,u,f,e),[e]),f.getSnapshot!==t||v||rt!==null&&rt.memoizedState.tag&1){if(u.flags|=2048,Ii(9,{destroy:void 0},js.bind(null,u,f,r,t),null),Ge===null)throw Error(a(349));d||(pn&127)!==0||Ns(u,t,r)}return r}function Ns(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=Re.updateQueue,t===null?(t=xl(),Re.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function js(e,t,r,u){t.value=r,t.getSnapshot=u,Zs(t)&&Us(e)}function qs(e,t,r){return r(function(){Zs(t)&&Us(e)})}function Zs(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!At(e,r)}catch{return!0}}function Us(e){var t=ni(e,2);t!==null&&Ct(t,e,2)}function au(e){var t=gt();if(typeof e=="function"){var r=e;if(e=r(),fi){ie(!0);try{r()}finally{ie(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:hn,lastRenderedState:e},t}function Is(e,t,r,u){return e.baseState=r,ru(e,Ve,typeof u=="function"?u:hn)}function yp(e,t,r,u,f){if(El(e))throw Error(a(485));if(e=t.action,e!==null){var d={payload:f,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(v){d.listeners.push(v)}};Z.T!==null?r(!0):d.isTransition=!1,u(d),r=t.pending,r===null?(d.next=t.pending=d,Bs(t,d)):(d.next=r.next,t.pending=r.next=d)}}function Bs(e,t){var r=t.action,u=t.payload,f=e.state;if(t.isTransition){var d=Z.T,v={};Z.T=v;try{var E=r(f,u),w=Z.S;w!==null&&w(v,E),Hs(e,t,E)}catch(j){uu(e,t,j)}finally{d!==null&&v.types!==null&&(d.types=v.types),Z.T=d}}else try{d=r(f,u),Hs(e,t,d)}catch(j){uu(e,t,j)}}function Hs(e,t,r){r!==null&&typeof r=="object"&&typeof r.then=="function"?r.then(function(u){Fs(e,t,u)},function(u){return uu(e,t,u)}):Fs(e,t,r)}function Fs(e,t,r){t.status="fulfilled",t.value=r,Vs(t),e.state=r,t=e.pending,t!==null&&(r=t.next,r===t?e.pending=null:(r=r.next,t.next=r,Bs(e,r)))}function uu(e,t,r){var u=e.pending;if(e.pending=null,u!==null){u=u.next;do t.status="rejected",t.reason=r,Vs(t),t=t.next;while(t!==u)}e.action=null}function Vs(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Ys(e,t){return t}function Ps(e,t){if(je){var r=Ge.formState;if(r!==null){e:{var u=Re;if(je){if(Qe){t:{for(var f=Qe,d=Bt;f.nodeType!==8;){if(!d){f=null;break t}if(f=Ft(f.nextSibling),f===null){f=null;break t}}d=f.data,f=d==="F!"||d==="F"?f:null}if(f){Qe=Ft(f.nextSibling),u=f.data==="F!";break e}}On(u)}u=!1}u&&(t=r[0])}}return r=gt(),r.memoizedState=r.baseState=t,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ys,lastRenderedState:t},r.queue=u,r=fc.bind(null,Re,u),u.dispatch=r,u=au(!1),d=pu.bind(null,Re,!1,u.queue),u=gt(),f={state:t,dispatch:null,action:e,pending:null},u.queue=f,r=yp.bind(null,Re,f,d,r),f.dispatch=r,u.memoizedState=e,[t,r,!1]}function Gs(e){var t=tt();return Qs(t,Ve,e)}function Qs(e,t,r){if(t=ru(e,t,Ys)[0],e=bl(hn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var u=kr(t)}catch(v){throw v===Ni?cl:v}else u=t;t=tt();var f=t.queue,d=f.dispatch;return r!==t.memoizedState&&(Re.flags|=2048,Ii(9,{destroy:void 0},xp.bind(null,f,r),null)),[u,d,e]}function xp(e,t){e.action=t}function Xs(e){var t=tt(),r=Ve;if(r!==null)return Qs(t,r,e);tt(),t=t.memoizedState,r=tt();var u=r.queue.dispatch;return r.memoizedState=e,[t,u,!1]}function Ii(e,t,r,u){return e={tag:e,create:r,deps:u,inst:t,next:null},t=Re.updateQueue,t===null&&(t=xl(),Re.updateQueue=t),r=t.lastEffect,r===null?t.lastEffect=e.next=e:(u=r.next,r.next=e,e.next=u,t.lastEffect=e),e}function Ks(){return tt().memoizedState}function Sl(e,t,r,u){var f=gt();Re.flags|=e,f.memoizedState=Ii(1|t,{destroy:void 0},r,u===void 0?null:u)}function kl(e,t,r,u){var f=tt();u=u===void 0?null:u;var d=f.memoizedState.inst;Ve!==null&&u!==null&&Ja(u,Ve.memoizedState.deps)?f.memoizedState=Ii(t,d,r,u):(Re.flags|=e,f.memoizedState=Ii(1|t,d,r,u))}function $s(e,t){Sl(8390656,8,e,t)}function ou(e,t){kl(2048,8,e,t)}function vp(e){Re.flags|=4;var t=Re.updateQueue;if(t===null)t=xl(),Re.updateQueue=t,t.events=[e];else{var r=t.events;r===null?t.events=[e]:r.push(e)}}function Js(e){var t=tt().memoizedState;return vp({ref:t,nextImpl:e}),function(){if((Ie&2)!==0)throw Error(a(440));return t.impl.apply(void 0,arguments)}}function Ws(e,t){return kl(4,2,e,t)}function ec(e,t){return kl(4,4,e,t)}function tc(e,t){if(typeof t=="function"){e=e();var r=t(e);return function(){typeof r=="function"?r():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function nc(e,t,r){r=r!=null?r.concat([e]):null,kl(4,4,tc.bind(null,t,e),r)}function su(){}function ic(e,t){var r=tt();t=t===void 0?null:t;var u=r.memoizedState;return t!==null&&Ja(t,u[1])?u[0]:(r.memoizedState=[e,t],e)}function rc(e,t){var r=tt();t=t===void 0?null:t;var u=r.memoizedState;if(t!==null&&Ja(t,u[1]))return u[0];if(u=e(),fi){ie(!0);try{e()}finally{ie(!1)}}return r.memoizedState=[u,t],u}function cu(e,t,r){return r===void 0||(pn&1073741824)!==0&&(Le&261930)===0?e.memoizedState=t:(e.memoizedState=r,e=af(),Re.lanes|=e,Un|=e,r)}function lc(e,t,r,u){return At(r,t)?r:qi.current!==null?(e=cu(e,r,u),At(e,t)||(lt=!0),e):(pn&42)===0||(pn&1073741824)!==0&&(Le&261930)===0?(lt=!0,e.memoizedState=r):(e=af(),Re.lanes|=e,Un|=e,t)}function ac(e,t,r,u,f){var d=ae.p;ae.p=d!==0&&8>d?d:8;var v=Z.T,E={};Z.T=E,pu(e,!1,t,r);try{var w=f(),j=Z.S;if(j!==null&&j(E,w),w!==null&&typeof w=="object"&&typeof w.then=="function"){var K=hp(w,u);Er(e,t,K,Mt(e))}else Er(e,t,u,Mt(e))}catch(ee){Er(e,t,{then:function(){},status:"rejected",reason:ee},Mt())}finally{ae.p=d,v!==null&&E.types!==null&&(v.types=E.types),Z.T=v}}function bp(){}function fu(e,t,r,u){if(e.tag!==5)throw Error(a(476));var f=uc(e).queue;ac(e,f,t,te,r===null?bp:function(){return oc(e),r(u)})}function uc(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:te,baseState:te,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hn,lastRenderedState:te},next:null};var r={};return t.next={memoizedState:r,baseState:r,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hn,lastRenderedState:r},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function oc(e){var t=uc(e);t.next===null&&(t=e.alternate.memoizedState),Er(e,t.next.queue,{},Mt())}function du(){return pt(Ir)}function sc(){return tt().memoizedState}function cc(){return tt().memoizedState}function Sp(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var r=Mt();e=Mn(r);var u=Ln(t,e,r);u!==null&&(Ct(u,t,r),xr(u,t,r)),t={cache:Ba()},e.payload=t;return}t=t.return}}function kp(e,t,r){var u=Mt();r={lane:u,revertLane:0,gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},El(e)?dc(t,r):(r=Oa(e,t,r,u),r!==null&&(Ct(r,e,u),pc(r,t,u)))}function fc(e,t,r){var u=Mt();Er(e,t,r,u)}function Er(e,t,r,u){var f={lane:u,revertLane:0,gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null};if(El(e))dc(t,f);else{var d=e.alternate;if(e.lanes===0&&(d===null||d.lanes===0)&&(d=t.lastRenderedReducer,d!==null))try{var v=t.lastRenderedState,E=d(v,r);if(f.hasEagerState=!0,f.eagerState=E,At(E,v))return il(e,t,f,0),Ge===null&&nl(),!1}catch{}finally{}if(r=Oa(e,t,f,u),r!==null)return Ct(r,e,u),pc(r,t,u),!0}return!1}function pu(e,t,r,u){if(u={lane:2,revertLane:Yu(),gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},El(e)){if(t)throw Error(a(479))}else t=Oa(e,r,u,2),t!==null&&Ct(t,e,2)}function El(e){var t=e.alternate;return e===Re||t!==null&&t===Re}function dc(e,t){Zi=gl=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function pc(e,t,r){if((r&4194048)!==0){var u=t.lanes;u&=e.pendingLanes,r|=u,t.lanes=r,xo(e,r)}}var _r={readContext:pt,use:vl,useCallback:$e,useContext:$e,useEffect:$e,useImperativeHandle:$e,useLayoutEffect:$e,useInsertionEffect:$e,useMemo:$e,useReducer:$e,useRef:$e,useState:$e,useDebugValue:$e,useDeferredValue:$e,useTransition:$e,useSyncExternalStore:$e,useId:$e,useHostTransitionStatus:$e,useFormState:$e,useActionState:$e,useOptimistic:$e,useMemoCache:$e,useCacheRefresh:$e};_r.useEffectEvent=$e;var hc={readContext:pt,use:vl,useCallback:function(e,t){return gt().memoizedState=[e,t===void 0?null:t],e},useContext:pt,useEffect:$s,useImperativeHandle:function(e,t,r){r=r!=null?r.concat([e]):null,Sl(4194308,4,tc.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Sl(4194308,4,e,t)},useInsertionEffect:function(e,t){Sl(4,2,e,t)},useMemo:function(e,t){var r=gt();t=t===void 0?null:t;var u=e();if(fi){ie(!0);try{e()}finally{ie(!1)}}return r.memoizedState=[u,t],u},useReducer:function(e,t,r){var u=gt();if(r!==void 0){var f=r(t);if(fi){ie(!0);try{r(t)}finally{ie(!1)}}}else f=t;return u.memoizedState=u.baseState=f,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:f},u.queue=e,e=e.dispatch=kp.bind(null,Re,e),[u.memoizedState,e]},useRef:function(e){var t=gt();return e={current:e},t.memoizedState=e},useState:function(e){e=au(e);var t=e.queue,r=fc.bind(null,Re,t);return t.dispatch=r,[e.memoizedState,r]},useDebugValue:su,useDeferredValue:function(e,t){var r=gt();return cu(r,e,t)},useTransition:function(){var e=au(!1);return e=ac.bind(null,Re,e.queue,!0,!1),gt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,r){var u=Re,f=gt();if(je){if(r===void 0)throw Error(a(407));r=r()}else{if(r=t(),Ge===null)throw Error(a(349));(Le&127)!==0||Ns(u,t,r)}f.memoizedState=r;var d={value:r,getSnapshot:t};return f.queue=d,$s(qs.bind(null,u,d,e),[e]),u.flags|=2048,Ii(9,{destroy:void 0},js.bind(null,u,d,r,t),null),r},useId:function(){var e=gt(),t=Ge.identifierPrefix;if(je){var r=tn,u=en;r=(u&~(1<<32-V(u)-1)).toString(32)+r,t="_"+t+"R_"+r,r=yl++,0<r&&(t+="H"+r.toString(32)),t+="_"}else r=mp++,t="_"+t+"r_"+r.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:du,useFormState:Ps,useActionState:Ps,useOptimistic:function(e){var t=gt();t.memoizedState=t.baseState=e;var r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=r,t=pu.bind(null,Re,!0,r),r.dispatch=t,[e,t]},useMemoCache:iu,useCacheRefresh:function(){return gt().memoizedState=Sp.bind(null,Re)},useEffectEvent:function(e){var t=gt(),r={impl:e};return t.memoizedState=r,function(){if((Ie&2)!==0)throw Error(a(440));return r.impl.apply(void 0,arguments)}}},hu={readContext:pt,use:vl,useCallback:ic,useContext:pt,useEffect:ou,useImperativeHandle:nc,useInsertionEffect:Ws,useLayoutEffect:ec,useMemo:rc,useReducer:bl,useRef:Ks,useState:function(){return bl(hn)},useDebugValue:su,useDeferredValue:function(e,t){var r=tt();return lc(r,Ve.memoizedState,e,t)},useTransition:function(){var e=bl(hn)[0],t=tt().memoizedState;return[typeof e=="boolean"?e:kr(e),t]},useSyncExternalStore:Ls,useId:sc,useHostTransitionStatus:du,useFormState:Gs,useActionState:Gs,useOptimistic:function(e,t){var r=tt();return Is(r,Ve,e,t)},useMemoCache:iu,useCacheRefresh:cc};hu.useEffectEvent=Js;var mc={readContext:pt,use:vl,useCallback:ic,useContext:pt,useEffect:ou,useImperativeHandle:nc,useInsertionEffect:Ws,useLayoutEffect:ec,useMemo:rc,useReducer:lu,useRef:Ks,useState:function(){return lu(hn)},useDebugValue:su,useDeferredValue:function(e,t){var r=tt();return Ve===null?cu(r,e,t):lc(r,Ve.memoizedState,e,t)},useTransition:function(){var e=lu(hn)[0],t=tt().memoizedState;return[typeof e=="boolean"?e:kr(e),t]},useSyncExternalStore:Ls,useId:sc,useHostTransitionStatus:du,useFormState:Xs,useActionState:Xs,useOptimistic:function(e,t){var r=tt();return Ve!==null?Is(r,Ve,e,t):(r.baseState=e,[e,r.queue.dispatch])},useMemoCache:iu,useCacheRefresh:cc};mc.useEffectEvent=Js;function mu(e,t,r,u){t=e.memoizedState,r=r(u,t),r=r==null?t:x({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var gu={enqueueSetState:function(e,t,r){e=e._reactInternals;var u=Mt(),f=Mn(u);f.payload=t,r!=null&&(f.callback=r),t=Ln(e,f,u),t!==null&&(Ct(t,e,u),xr(t,e,u))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var u=Mt(),f=Mn(u);f.tag=1,f.payload=t,r!=null&&(f.callback=r),t=Ln(e,f,u),t!==null&&(Ct(t,e,u),xr(t,e,u))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=Mt(),u=Mn(r);u.tag=2,t!=null&&(u.callback=t),t=Ln(e,u,r),t!==null&&(Ct(t,e,r),xr(t,e,r))}};function gc(e,t,r,u,f,d,v){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(u,d,v):t.prototype&&t.prototype.isPureReactComponent?!cr(r,u)||!cr(f,d):!0}function yc(e,t,r,u){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,u),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,u),t.state!==e&&gu.enqueueReplaceState(t,t.state,null)}function di(e,t){var r=t;if("ref"in t){r={};for(var u in t)u!=="ref"&&(r[u]=t[u])}if(e=e.defaultProps){r===t&&(r=x({},r));for(var f in e)r[f]===void 0&&(r[f]=e[f])}return r}function xc(e){tl(e)}function vc(e){console.error(e)}function bc(e){tl(e)}function _l(e,t){try{var r=e.onUncaughtError;r(t.value,{componentStack:t.stack})}catch(u){setTimeout(function(){throw u})}}function Sc(e,t,r){try{var u=e.onCaughtError;u(r.value,{componentStack:r.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(f){setTimeout(function(){throw f})}}function yu(e,t,r){return r=Mn(r),r.tag=3,r.payload={element:null},r.callback=function(){_l(e,t)},r}function kc(e){return e=Mn(e),e.tag=3,e}function Ec(e,t,r,u){var f=r.type.getDerivedStateFromError;if(typeof f=="function"){var d=u.value;e.payload=function(){return f(d)},e.callback=function(){Sc(t,r,u)}}var v=r.stateNode;v!==null&&typeof v.componentDidCatch=="function"&&(e.callback=function(){Sc(t,r,u),typeof f!="function"&&(In===null?In=new Set([this]):In.add(this));var E=u.stack;this.componentDidCatch(u.value,{componentStack:E!==null?E:""})})}function Ep(e,t,r,u,f){if(r.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){if(t=r.alternate,t!==null&&Di(t,r,f,!0),r=Rt.current,r!==null){switch(r.tag){case 31:case 13:return Ht===null?jl():r.alternate===null&&Je===0&&(Je=3),r.flags&=-257,r.flags|=65536,r.lanes=f,u===fl?r.flags|=16384:(t=r.updateQueue,t===null?r.updateQueue=new Set([u]):t.add(u),Hu(e,u,f)),!1;case 22:return r.flags|=65536,u===fl?r.flags|=16384:(t=r.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([u])},r.updateQueue=t):(r=t.retryQueue,r===null?t.retryQueue=new Set([u]):r.add(u)),Hu(e,u,f)),!1}throw Error(a(435,r.tag))}return Hu(e,u,f),jl(),!1}if(je)return t=Rt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=f,u!==ja&&(e=Error(a(422),{cause:u}),pr(Zt(e,r)))):(u!==ja&&(t=Error(a(423),{cause:u}),pr(Zt(t,r))),e=e.current.alternate,e.flags|=65536,f&=-f,e.lanes|=f,u=Zt(u,r),f=yu(e.stateNode,u,f),Ga(e,f),Je!==4&&(Je=2)),!1;var d=Error(a(520),{cause:u});if(d=Zt(d,r),Dr===null?Dr=[d]:Dr.push(d),Je!==4&&(Je=2),t===null)return!0;u=Zt(u,r),r=t;do{switch(r.tag){case 3:return r.flags|=65536,e=f&-f,r.lanes|=e,e=yu(r.stateNode,u,e),Ga(r,e),!1;case 1:if(t=r.type,d=r.stateNode,(r.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||d!==null&&typeof d.componentDidCatch=="function"&&(In===null||!In.has(d))))return r.flags|=65536,f&=-f,r.lanes|=f,f=kc(f),Ec(f,e,r,u),Ga(r,f),!1}r=r.return}while(r!==null);return!1}var xu=Error(a(461)),lt=!1;function ht(e,t,r,u){t.child=e===null?As(t,null,r,u):ci(t,e.child,r,u)}function _c(e,t,r,u,f){r=r.render;var d=t.ref;if("ref"in u){var v={};for(var E in u)E!=="ref"&&(v[E]=u[E])}else v=u;return ai(t),u=Wa(e,t,r,v,d,f),E=eu(),e!==null&&!lt?(tu(e,t,f),mn(e,t,f)):(je&&E&&La(t),t.flags|=1,ht(e,t,u,f),t.child)}function Cc(e,t,r,u,f){if(e===null){var d=r.type;return typeof d=="function"&&!za(d)&&d.defaultProps===void 0&&r.compare===null?(t.tag=15,t.type=d,Tc(e,t,d,u,f)):(e=ll(r.type,null,u,t,t.mode,f),e.ref=t.ref,e.return=t,t.child=e)}if(d=e.child,!Tu(e,f)){var v=d.memoizedProps;if(r=r.compare,r=r!==null?r:cr,r(v,u)&&e.ref===t.ref)return mn(e,t,f)}return t.flags|=1,e=sn(d,u),e.ref=t.ref,e.return=t,t.child=e}function Tc(e,t,r,u,f){if(e!==null){var d=e.memoizedProps;if(cr(d,u)&&e.ref===t.ref)if(lt=!1,t.pendingProps=u=d,Tu(e,f))(e.flags&131072)!==0&&(lt=!0);else return t.lanes=e.lanes,mn(e,t,f)}return vu(e,t,r,u,f)}function Ac(e,t,r,u){var f=u.children,d=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),u.mode==="hidden"){if((t.flags&128)!==0){if(d=d!==null?d.baseLanes|r:r,e!==null){for(u=t.child=e.child,f=0;u!==null;)f=f|u.lanes|u.childLanes,u=u.sibling;u=f&~d}else u=0,t.child=null;return wc(e,t,d,r,u)}if((r&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&sl(t,d!==null?d.cachePool:null),d!==null?Os(t,d):Xa(),zs(t);else return u=t.lanes=536870912,wc(e,t,d!==null?d.baseLanes|r:r,r,u)}else d!==null?(sl(t,d.cachePool),Os(t,d),jn(),t.memoizedState=null):(e!==null&&sl(t,null),Xa(),jn());return ht(e,t,f,r),t.child}function Cr(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function wc(e,t,r,u,f){var d=Fa();return d=d===null?null:{parent:it._currentValue,pool:d},t.memoizedState={baseLanes:r,cachePool:d},e!==null&&sl(t,null),Xa(),zs(t),e!==null&&Di(e,t,u,!0),t.childLanes=f,null}function Cl(e,t){return t=Al({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Rc(e,t,r){return ci(t,e.child,null,r),e=Cl(t,t.pendingProps),e.flags|=2,Ot(t),t.memoizedState=null,e}function _p(e,t,r){var u=t.pendingProps,f=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(je){if(u.mode==="hidden")return e=Cl(t,u),t.lanes=536870912,Cr(null,e);if($a(t),(e=Qe)?(e=Hf(e,Bt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:wn!==null?{id:en,overflow:tn}:null,retryLane:536870912,hydrationErrors:null},r=ds(e),r.return=t,t.child=r,dt=t,Qe=null)):e=null,e===null)throw On(t);return t.lanes=536870912,null}return Cl(t,u)}var d=e.memoizedState;if(d!==null){var v=d.dehydrated;if($a(t),f)if(t.flags&256)t.flags&=-257,t=Rc(e,t,r);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(a(558));else if(lt||Di(e,t,r,!1),f=(r&e.childLanes)!==0,lt||f){if(u=Ge,u!==null&&(v=vo(u,r),v!==0&&v!==d.retryLane))throw d.retryLane=v,ni(e,v),Ct(u,e,v),xu;jl(),t=Rc(e,t,r)}else e=d.treeContext,Qe=Ft(v.nextSibling),dt=t,je=!0,Rn=null,Bt=!1,e!==null&&ms(t,e),t=Cl(t,u),t.flags|=4096;return t}return e=sn(e.child,{mode:u.mode,children:u.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Tl(e,t){var r=t.ref;if(r===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof r!="function"&&typeof r!="object")throw Error(a(284));(e===null||e.ref!==r)&&(t.flags|=4194816)}}function vu(e,t,r,u,f){return ai(t),r=Wa(e,t,r,u,void 0,f),u=eu(),e!==null&&!lt?(tu(e,t,f),mn(e,t,f)):(je&&u&&La(t),t.flags|=1,ht(e,t,r,f),t.child)}function Oc(e,t,r,u,f,d){return ai(t),t.updateQueue=null,r=Ms(t,u,r,f),Ds(e),u=eu(),e!==null&&!lt?(tu(e,t,d),mn(e,t,d)):(je&&u&&La(t),t.flags|=1,ht(e,t,r,d),t.child)}function zc(e,t,r,u,f){if(ai(t),t.stateNode===null){var d=wi,v=r.contextType;typeof v=="object"&&v!==null&&(d=pt(v)),d=new r(u,d),t.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,d.updater=gu,t.stateNode=d,d._reactInternals=t,d=t.stateNode,d.props=u,d.state=t.memoizedState,d.refs={},Ya(t),v=r.contextType,d.context=typeof v=="object"&&v!==null?pt(v):wi,d.state=t.memoizedState,v=r.getDerivedStateFromProps,typeof v=="function"&&(mu(t,r,v,u),d.state=t.memoizedState),typeof r.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(v=d.state,typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),v!==d.state&&gu.enqueueReplaceState(d,d.state,null),br(t,u,d,f),vr(),d.state=t.memoizedState),typeof d.componentDidMount=="function"&&(t.flags|=4194308),u=!0}else if(e===null){d=t.stateNode;var E=t.memoizedProps,w=di(r,E);d.props=w;var j=d.context,K=r.contextType;v=wi,typeof K=="object"&&K!==null&&(v=pt(K));var ee=r.getDerivedStateFromProps;K=typeof ee=="function"||typeof d.getSnapshotBeforeUpdate=="function",E=t.pendingProps!==E,K||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(E||j!==v)&&yc(t,d,u,v),Dn=!1;var U=t.memoizedState;d.state=U,br(t,u,d,f),vr(),j=t.memoizedState,E||U!==j||Dn?(typeof ee=="function"&&(mu(t,r,ee,u),j=t.memoizedState),(w=Dn||gc(t,r,w,u,U,j,v))?(K||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount()),typeof d.componentDidMount=="function"&&(t.flags|=4194308)):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=u,t.memoizedState=j),d.props=u,d.state=j,d.context=v,u=w):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),u=!1)}else{d=t.stateNode,Pa(e,t),v=t.memoizedProps,K=di(r,v),d.props=K,ee=t.pendingProps,U=d.context,j=r.contextType,w=wi,typeof j=="object"&&j!==null&&(w=pt(j)),E=r.getDerivedStateFromProps,(j=typeof E=="function"||typeof d.getSnapshotBeforeUpdate=="function")||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(v!==ee||U!==w)&&yc(t,d,u,w),Dn=!1,U=t.memoizedState,d.state=U,br(t,u,d,f),vr();var F=t.memoizedState;v!==ee||U!==F||Dn||e!==null&&e.dependencies!==null&&ul(e.dependencies)?(typeof E=="function"&&(mu(t,r,E,u),F=t.memoizedState),(K=Dn||gc(t,r,K,u,U,F,w)||e!==null&&e.dependencies!==null&&ul(e.dependencies))?(j||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(u,F,w),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(u,F,w)),typeof d.componentDidUpdate=="function"&&(t.flags|=4),typeof d.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof d.componentDidUpdate!="function"||v===e.memoizedProps&&U===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||v===e.memoizedProps&&U===e.memoizedState||(t.flags|=1024),t.memoizedProps=u,t.memoizedState=F),d.props=u,d.state=F,d.context=w,u=K):(typeof d.componentDidUpdate!="function"||v===e.memoizedProps&&U===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||v===e.memoizedProps&&U===e.memoizedState||(t.flags|=1024),u=!1)}return d=u,Tl(e,t),u=(t.flags&128)!==0,d||u?(d=t.stateNode,r=u&&typeof r.getDerivedStateFromError!="function"?null:d.render(),t.flags|=1,e!==null&&u?(t.child=ci(t,e.child,null,f),t.child=ci(t,null,r,f)):ht(e,t,r,f),t.memoizedState=d.state,e=t.child):e=mn(e,t,f),e}function Dc(e,t,r,u){return ri(),t.flags|=256,ht(e,t,r,u),t.child}var bu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Su(e){return{baseLanes:e,cachePool:Ss()}}function ku(e,t,r){return e=e!==null?e.childLanes&~r:0,t&&(e|=Dt),e}function Mc(e,t,r){var u=t.pendingProps,f=!1,d=(t.flags&128)!==0,v;if((v=d)||(v=e!==null&&e.memoizedState===null?!1:(et.current&2)!==0),v&&(f=!0,t.flags&=-129),v=(t.flags&32)!==0,t.flags&=-33,e===null){if(je){if(f?Nn(t):jn(),(e=Qe)?(e=Hf(e,Bt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:wn!==null?{id:en,overflow:tn}:null,retryLane:536870912,hydrationErrors:null},r=ds(e),r.return=t,t.child=r,dt=t,Qe=null)):e=null,e===null)throw On(t);return ro(e)?t.lanes=32:t.lanes=536870912,null}var E=u.children;return u=u.fallback,f?(jn(),f=t.mode,E=Al({mode:"hidden",children:E},f),u=ii(u,f,r,null),E.return=t,u.return=t,E.sibling=u,t.child=E,u=t.child,u.memoizedState=Su(r),u.childLanes=ku(e,v,r),t.memoizedState=bu,Cr(null,u)):(Nn(t),Eu(t,E))}var w=e.memoizedState;if(w!==null&&(E=w.dehydrated,E!==null)){if(d)t.flags&256?(Nn(t),t.flags&=-257,t=_u(e,t,r)):t.memoizedState!==null?(jn(),t.child=e.child,t.flags|=128,t=null):(jn(),E=u.fallback,f=t.mode,u=Al({mode:"visible",children:u.children},f),E=ii(E,f,r,null),E.flags|=2,u.return=t,E.return=t,u.sibling=E,t.child=u,ci(t,e.child,null,r),u=t.child,u.memoizedState=Su(r),u.childLanes=ku(e,v,r),t.memoizedState=bu,t=Cr(null,u));else if(Nn(t),ro(E)){if(v=E.nextSibling&&E.nextSibling.dataset,v)var j=v.dgst;v=j,u=Error(a(419)),u.stack="",u.digest=v,pr({value:u,source:null,stack:null}),t=_u(e,t,r)}else if(lt||Di(e,t,r,!1),v=(r&e.childLanes)!==0,lt||v){if(v=Ge,v!==null&&(u=vo(v,r),u!==0&&u!==w.retryLane))throw w.retryLane=u,ni(e,u),Ct(v,e,u),xu;io(E)||jl(),t=_u(e,t,r)}else io(E)?(t.flags|=192,t.child=e.child,t=null):(e=w.treeContext,Qe=Ft(E.nextSibling),dt=t,je=!0,Rn=null,Bt=!1,e!==null&&ms(t,e),t=Eu(t,u.children),t.flags|=4096);return t}return f?(jn(),E=u.fallback,f=t.mode,w=e.child,j=w.sibling,u=sn(w,{mode:"hidden",children:u.children}),u.subtreeFlags=w.subtreeFlags&65011712,j!==null?E=sn(j,E):(E=ii(E,f,r,null),E.flags|=2),E.return=t,u.return=t,u.sibling=E,t.child=u,Cr(null,u),u=t.child,E=e.child.memoizedState,E===null?E=Su(r):(f=E.cachePool,f!==null?(w=it._currentValue,f=f.parent!==w?{parent:w,pool:w}:f):f=Ss(),E={baseLanes:E.baseLanes|r,cachePool:f}),u.memoizedState=E,u.childLanes=ku(e,v,r),t.memoizedState=bu,Cr(e.child,u)):(Nn(t),r=e.child,e=r.sibling,r=sn(r,{mode:"visible",children:u.children}),r.return=t,r.sibling=null,e!==null&&(v=t.deletions,v===null?(t.deletions=[e],t.flags|=16):v.push(e)),t.child=r,t.memoizedState=null,r)}function Eu(e,t){return t=Al({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Al(e,t){return e=wt(22,e,null,t),e.lanes=0,e}function _u(e,t,r){return ci(t,e.child,null,r),e=Eu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Lc(e,t,r){e.lanes|=t;var u=e.alternate;u!==null&&(u.lanes|=t),Ua(e.return,t,r)}function Cu(e,t,r,u,f,d){var v=e.memoizedState;v===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:u,tail:r,tailMode:f,treeForkCount:d}:(v.isBackwards=t,v.rendering=null,v.renderingStartTime=0,v.last=u,v.tail=r,v.tailMode=f,v.treeForkCount=d)}function Nc(e,t,r){var u=t.pendingProps,f=u.revealOrder,d=u.tail;u=u.children;var v=et.current,E=(v&2)!==0;if(E?(v=v&1|2,t.flags|=128):v&=1,_(et,v),ht(e,t,u,r),u=je?dr:0,!E&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Lc(e,r,t);else if(e.tag===19)Lc(e,r,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(f){case"forwards":for(r=t.child,f=null;r!==null;)e=r.alternate,e!==null&&ml(e)===null&&(f=r),r=r.sibling;r=f,r===null?(f=t.child,t.child=null):(f=r.sibling,r.sibling=null),Cu(t,!1,f,r,d,u);break;case"backwards":case"unstable_legacy-backwards":for(r=null,f=t.child,t.child=null;f!==null;){if(e=f.alternate,e!==null&&ml(e)===null){t.child=f;break}e=f.sibling,f.sibling=r,r=f,f=e}Cu(t,!0,r,null,d,u);break;case"together":Cu(t,!1,null,null,void 0,u);break;default:t.memoizedState=null}return t.child}function mn(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Un|=t.lanes,(r&t.childLanes)===0)if(e!==null){if(Di(e,t,r,!1),(r&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(a(153));if(t.child!==null){for(e=t.child,r=sn(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=sn(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function Tu(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&ul(e)))}function Cp(e,t,r){switch(t.tag){case 3:Be(t,t.stateNode.containerInfo),zn(t,it,e.memoizedState.cache),ri();break;case 27:case 5:ct(t);break;case 4:Be(t,t.stateNode.containerInfo);break;case 10:zn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,$a(t),null;break;case 13:var u=t.memoizedState;if(u!==null)return u.dehydrated!==null?(Nn(t),t.flags|=128,null):(r&t.child.childLanes)!==0?Mc(e,t,r):(Nn(t),e=mn(e,t,r),e!==null?e.sibling:null);Nn(t);break;case 19:var f=(e.flags&128)!==0;if(u=(r&t.childLanes)!==0,u||(Di(e,t,r,!1),u=(r&t.childLanes)!==0),f){if(u)return Nc(e,t,r);t.flags|=128}if(f=t.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),_(et,et.current),u)break;return null;case 22:return t.lanes=0,Ac(e,t,r,t.pendingProps);case 24:zn(t,it,e.memoizedState.cache)}return mn(e,t,r)}function jc(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps)lt=!0;else{if(!Tu(e,r)&&(t.flags&128)===0)return lt=!1,Cp(e,t,r);lt=(e.flags&131072)!==0}else lt=!1,je&&(t.flags&1048576)!==0&&hs(t,dr,t.index);switch(t.lanes=0,t.tag){case 16:e:{var u=t.pendingProps;if(e=oi(t.elementType),t.type=e,typeof e=="function")za(e)?(u=di(e,u),t.tag=1,t=zc(null,t,e,u,r)):(t.tag=0,t=vu(null,t,e,u,r));else{if(e!=null){var f=e.$$typeof;if(f===ge){t.tag=11,t=_c(null,t,e,u,r);break e}else if(f===ce){t.tag=14,t=Cc(null,t,e,u,r);break e}}throw t=oe(e)||e,Error(a(306,t,""))}}return t;case 0:return vu(e,t,t.type,t.pendingProps,r);case 1:return u=t.type,f=di(u,t.pendingProps),zc(e,t,u,f,r);case 3:e:{if(Be(t,t.stateNode.containerInfo),e===null)throw Error(a(387));u=t.pendingProps;var d=t.memoizedState;f=d.element,Pa(e,t),br(t,u,null,r);var v=t.memoizedState;if(u=v.cache,zn(t,it,u),u!==d.cache&&Ia(t,[it],r,!0),vr(),u=v.element,d.isDehydrated)if(d={element:u,isDehydrated:!1,cache:v.cache},t.updateQueue.baseState=d,t.memoizedState=d,t.flags&256){t=Dc(e,t,u,r);break e}else if(u!==f){f=Zt(Error(a(424)),t),pr(f),t=Dc(e,t,u,r);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(Qe=Ft(e.firstChild),dt=t,je=!0,Rn=null,Bt=!0,r=As(t,null,u,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling}else{if(ri(),u===f){t=mn(e,t,r);break e}ht(e,t,u,r)}t=t.child}return t;case 26:return Tl(e,t),e===null?(r=Qf(t.type,null,t.pendingProps,null))?t.memoizedState=r:je||(r=t.type,e=t.pendingProps,u=Fl(xe.current).createElement(r),u[ft]=t,u[vt]=e,mt(u,r,e),ot(u),t.stateNode=u):t.memoizedState=Qf(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ct(t),e===null&&je&&(u=t.stateNode=Yf(t.type,t.pendingProps,xe.current),dt=t,Bt=!0,f=Qe,Vn(t.type)?(lo=f,Qe=Ft(u.firstChild)):Qe=f),ht(e,t,t.pendingProps.children,r),Tl(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&je&&((f=u=Qe)&&(u=th(u,t.type,t.pendingProps,Bt),u!==null?(t.stateNode=u,dt=t,Qe=Ft(u.firstChild),Bt=!1,f=!0):f=!1),f||On(t)),ct(t),f=t.type,d=t.pendingProps,v=e!==null?e.memoizedProps:null,u=d.children,eo(f,d)?u=null:v!==null&&eo(f,v)&&(t.flags|=32),t.memoizedState!==null&&(f=Wa(e,t,gp,null,null,r),Ir._currentValue=f),Tl(e,t),ht(e,t,u,r),t.child;case 6:return e===null&&je&&((e=r=Qe)&&(r=nh(r,t.pendingProps,Bt),r!==null?(t.stateNode=r,dt=t,Qe=null,e=!0):e=!1),e||On(t)),null;case 13:return Mc(e,t,r);case 4:return Be(t,t.stateNode.containerInfo),u=t.pendingProps,e===null?t.child=ci(t,null,u,r):ht(e,t,u,r),t.child;case 11:return _c(e,t,t.type,t.pendingProps,r);case 7:return ht(e,t,t.pendingProps,r),t.child;case 8:return ht(e,t,t.pendingProps.children,r),t.child;case 12:return ht(e,t,t.pendingProps.children,r),t.child;case 10:return u=t.pendingProps,zn(t,t.type,u.value),ht(e,t,u.children,r),t.child;case 9:return f=t.type._context,u=t.pendingProps.children,ai(t),f=pt(f),u=u(f),t.flags|=1,ht(e,t,u,r),t.child;case 14:return Cc(e,t,t.type,t.pendingProps,r);case 15:return Tc(e,t,t.type,t.pendingProps,r);case 19:return Nc(e,t,r);case 31:return _p(e,t,r);case 22:return Ac(e,t,r,t.pendingProps);case 24:return ai(t),u=pt(it),e===null?(f=Fa(),f===null&&(f=Ge,d=Ba(),f.pooledCache=d,d.refCount++,d!==null&&(f.pooledCacheLanes|=r),f=d),t.memoizedState={parent:u,cache:f},Ya(t),zn(t,it,f)):((e.lanes&r)!==0&&(Pa(e,t),br(t,null,null,r),vr()),f=e.memoizedState,d=t.memoizedState,f.parent!==u?(f={parent:u,cache:u},t.memoizedState=f,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=f),zn(t,it,u)):(u=d.cache,zn(t,it,u),u!==f.cache&&Ia(t,[it],r,!0))),ht(e,t,t.pendingProps.children,r),t.child;case 29:throw t.pendingProps}throw Error(a(156,t.tag))}function gn(e){e.flags|=4}function Au(e,t,r,u,f){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(f&335544128)===f)if(e.stateNode.complete)e.flags|=8192;else if(cf())e.flags|=8192;else throw si=fl,Va}else e.flags&=-16777217}function qc(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Wf(t))if(cf())e.flags|=8192;else throw si=fl,Va}function wl(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?go():536870912,e.lanes|=t,Vi|=t)}function Tr(e,t){if(!je)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var u=null;r!==null;)r.alternate!==null&&(u=r),r=r.sibling;u===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:u.sibling=null}}function Xe(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,u=0;if(t)for(var f=e.child;f!==null;)r|=f.lanes|f.childLanes,u|=f.subtreeFlags&65011712,u|=f.flags&65011712,f.return=e,f=f.sibling;else for(f=e.child;f!==null;)r|=f.lanes|f.childLanes,u|=f.subtreeFlags,u|=f.flags,f.return=e,f=f.sibling;return e.subtreeFlags|=u,e.childLanes=r,t}function Tp(e,t,r){var u=t.pendingProps;switch(Na(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Xe(t),null;case 1:return Xe(t),null;case 3:return r=t.stateNode,u=null,e!==null&&(u=e.memoizedState.cache),t.memoizedState.cache!==u&&(t.flags|=2048),dn(it),qe(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(zi(t)?gn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,qa())),Xe(t),null;case 26:var f=t.type,d=t.memoizedState;return e===null?(gn(t),d!==null?(Xe(t),qc(t,d)):(Xe(t),Au(t,f,null,u,r))):d?d!==e.memoizedState?(gn(t),Xe(t),qc(t,d)):(Xe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==u&&gn(t),Xe(t),Au(t,f,e,u,r)),null;case 27:if(yt(t),r=xe.current,f=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==u&&gn(t);else{if(!u){if(t.stateNode===null)throw Error(a(166));return Xe(t),null}e=fe.current,zi(t)?gs(t):(e=Yf(f,u,r),t.stateNode=e,gn(t))}return Xe(t),null;case 5:if(yt(t),f=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==u&&gn(t);else{if(!u){if(t.stateNode===null)throw Error(a(166));return Xe(t),null}if(d=fe.current,zi(t))gs(t);else{var v=Fl(xe.current);switch(d){case 1:d=v.createElementNS("http://www.w3.org/2000/svg",f);break;case 2:d=v.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;default:switch(f){case"svg":d=v.createElementNS("http://www.w3.org/2000/svg",f);break;case"math":d=v.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;case"script":d=v.createElement("div"),d.innerHTML="<script><\/script>",d=d.removeChild(d.firstChild);break;case"select":d=typeof u.is=="string"?v.createElement("select",{is:u.is}):v.createElement("select"),u.multiple?d.multiple=!0:u.size&&(d.size=u.size);break;default:d=typeof u.is=="string"?v.createElement(f,{is:u.is}):v.createElement(f)}}d[ft]=t,d[vt]=u;e:for(v=t.child;v!==null;){if(v.tag===5||v.tag===6)d.appendChild(v.stateNode);else if(v.tag!==4&&v.tag!==27&&v.child!==null){v.child.return=v,v=v.child;continue}if(v===t)break e;for(;v.sibling===null;){if(v.return===null||v.return===t)break e;v=v.return}v.sibling.return=v.return,v=v.sibling}t.stateNode=d;e:switch(mt(d,f,u),f){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break e;case"img":u=!0;break e;default:u=!1}u&&gn(t)}}return Xe(t),Au(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,r),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==u&&gn(t);else{if(typeof u!="string"&&t.stateNode===null)throw Error(a(166));if(e=xe.current,zi(t)){if(e=t.stateNode,r=t.memoizedProps,u=null,f=dt,f!==null)switch(f.tag){case 27:case 5:u=f.memoizedProps}e[ft]=t,e=!!(e.nodeValue===r||u!==null&&u.suppressHydrationWarning===!0||Lf(e.nodeValue,r)),e||On(t,!0)}else e=Fl(e).createTextNode(u),e[ft]=t,t.stateNode=e}return Xe(t),null;case 31:if(r=t.memoizedState,e===null||e.memoizedState!==null){if(u=zi(t),r!==null){if(e===null){if(!u)throw Error(a(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(a(557));e[ft]=t}else ri(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Xe(t),e=!1}else r=qa(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),e=!0;if(!e)return t.flags&256?(Ot(t),t):(Ot(t),null);if((t.flags&128)!==0)throw Error(a(558))}return Xe(t),null;case 13:if(u=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(f=zi(t),u!==null&&u.dehydrated!==null){if(e===null){if(!f)throw Error(a(318));if(f=t.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(a(317));f[ft]=t}else ri(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Xe(t),f=!1}else f=qa(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=f),f=!0;if(!f)return t.flags&256?(Ot(t),t):(Ot(t),null)}return Ot(t),(t.flags&128)!==0?(t.lanes=r,t):(r=u!==null,e=e!==null&&e.memoizedState!==null,r&&(u=t.child,f=null,u.alternate!==null&&u.alternate.memoizedState!==null&&u.alternate.memoizedState.cachePool!==null&&(f=u.alternate.memoizedState.cachePool.pool),d=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(d=u.memoizedState.cachePool.pool),d!==f&&(u.flags|=2048)),r!==e&&r&&(t.child.flags|=8192),wl(t,t.updateQueue),Xe(t),null);case 4:return qe(),e===null&&Xu(t.stateNode.containerInfo),Xe(t),null;case 10:return dn(t.type),Xe(t),null;case 19:if(X(et),u=t.memoizedState,u===null)return Xe(t),null;if(f=(t.flags&128)!==0,d=u.rendering,d===null)if(f)Tr(u,!1);else{if(Je!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(d=ml(e),d!==null){for(t.flags|=128,Tr(u,!1),e=d.updateQueue,t.updateQueue=e,wl(t,e),t.subtreeFlags=0,e=r,r=t.child;r!==null;)fs(r,e),r=r.sibling;return _(et,et.current&1|2),je&&cn(t,u.treeForkCount),t.child}e=e.sibling}u.tail!==null&&nt()>Ml&&(t.flags|=128,f=!0,Tr(u,!1),t.lanes=4194304)}else{if(!f)if(e=ml(d),e!==null){if(t.flags|=128,f=!0,e=e.updateQueue,t.updateQueue=e,wl(t,e),Tr(u,!0),u.tail===null&&u.tailMode==="hidden"&&!d.alternate&&!je)return Xe(t),null}else 2*nt()-u.renderingStartTime>Ml&&r!==536870912&&(t.flags|=128,f=!0,Tr(u,!1),t.lanes=4194304);u.isBackwards?(d.sibling=t.child,t.child=d):(e=u.last,e!==null?e.sibling=d:t.child=d,u.last=d)}return u.tail!==null?(e=u.tail,u.rendering=e,u.tail=e.sibling,u.renderingStartTime=nt(),e.sibling=null,r=et.current,_(et,f?r&1|2:r&1),je&&cn(t,u.treeForkCount),e):(Xe(t),null);case 22:case 23:return Ot(t),Ka(),u=t.memoizedState!==null,e!==null?e.memoizedState!==null!==u&&(t.flags|=8192):u&&(t.flags|=8192),u?(r&536870912)!==0&&(t.flags&128)===0&&(Xe(t),t.subtreeFlags&6&&(t.flags|=8192)):Xe(t),r=t.updateQueue,r!==null&&wl(t,r.retryQueue),r=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),u=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(u=t.memoizedState.cachePool.pool),u!==r&&(t.flags|=2048),e!==null&&X(ui),null;case 24:return r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),dn(it),Xe(t),null;case 25:return null;case 30:return null}throw Error(a(156,t.tag))}function Ap(e,t){switch(Na(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return dn(it),qe(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return yt(t),null;case 31:if(t.memoizedState!==null){if(Ot(t),t.alternate===null)throw Error(a(340));ri()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Ot(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(a(340));ri()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return X(et),null;case 4:return qe(),null;case 10:return dn(t.type),null;case 22:case 23:return Ot(t),Ka(),e!==null&&X(ui),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return dn(it),null;case 25:return null;default:return null}}function Zc(e,t){switch(Na(t),t.tag){case 3:dn(it),qe();break;case 26:case 27:case 5:yt(t);break;case 4:qe();break;case 31:t.memoizedState!==null&&Ot(t);break;case 13:Ot(t);break;case 19:X(et);break;case 10:dn(t.type);break;case 22:case 23:Ot(t),Ka(),e!==null&&X(ui);break;case 24:dn(it)}}function Ar(e,t){try{var r=t.updateQueue,u=r!==null?r.lastEffect:null;if(u!==null){var f=u.next;r=f;do{if((r.tag&e)===e){u=void 0;var d=r.create,v=r.inst;u=d(),v.destroy=u}r=r.next}while(r!==f)}}catch(E){Fe(t,t.return,E)}}function qn(e,t,r){try{var u=t.updateQueue,f=u!==null?u.lastEffect:null;if(f!==null){var d=f.next;u=d;do{if((u.tag&e)===e){var v=u.inst,E=v.destroy;if(E!==void 0){v.destroy=void 0,f=t;var w=r,j=E;try{j()}catch(K){Fe(f,w,K)}}}u=u.next}while(u!==d)}}catch(K){Fe(t,t.return,K)}}function Uc(e){var t=e.updateQueue;if(t!==null){var r=e.stateNode;try{Rs(t,r)}catch(u){Fe(e,e.return,u)}}}function Ic(e,t,r){r.props=di(e.type,e.memoizedProps),r.state=e.memoizedState;try{r.componentWillUnmount()}catch(u){Fe(e,t,u)}}function wr(e,t){try{var r=e.ref;if(r!==null){switch(e.tag){case 26:case 27:case 5:var u=e.stateNode;break;case 30:u=e.stateNode;break;default:u=e.stateNode}typeof r=="function"?e.refCleanup=r(u):r.current=u}}catch(f){Fe(e,t,f)}}function nn(e,t){var r=e.ref,u=e.refCleanup;if(r!==null)if(typeof u=="function")try{u()}catch(f){Fe(e,t,f)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof r=="function")try{r(null)}catch(f){Fe(e,t,f)}else r.current=null}function Bc(e){var t=e.type,r=e.memoizedProps,u=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":r.autoFocus&&u.focus();break e;case"img":r.src?u.src=r.src:r.srcSet&&(u.srcset=r.srcSet)}}catch(f){Fe(e,e.return,f)}}function wu(e,t,r){try{var u=e.stateNode;Xp(u,e.type,r,t),u[vt]=t}catch(f){Fe(e,e.return,f)}}function Hc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Vn(e.type)||e.tag===4}function Ru(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Hc(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&&Vn(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 Ou(e,t,r){var u=e.tag;if(u===5||u===6)e=e.stateNode,t?(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r).insertBefore(e,t):(t=r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,t.appendChild(e),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=un));else if(u!==4&&(u===27&&Vn(e.type)&&(r=e.stateNode,t=null),e=e.child,e!==null))for(Ou(e,t,r),e=e.sibling;e!==null;)Ou(e,t,r),e=e.sibling}function Rl(e,t,r){var u=e.tag;if(u===5||u===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(u!==4&&(u===27&&Vn(e.type)&&(r=e.stateNode),e=e.child,e!==null))for(Rl(e,t,r),e=e.sibling;e!==null;)Rl(e,t,r),e=e.sibling}function Fc(e){var t=e.stateNode,r=e.memoizedProps;try{for(var u=e.type,f=t.attributes;f.length;)t.removeAttributeNode(f[0]);mt(t,u,r),t[ft]=e,t[vt]=r}catch(d){Fe(e,e.return,d)}}var yn=!1,at=!1,zu=!1,Vc=typeof WeakSet=="function"?WeakSet:Set,st=null;function wp(e,t){if(e=e.containerInfo,Ju=Kl,e=ns(e),_a(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var u=r.getSelection&&r.getSelection();if(u&&u.rangeCount!==0){r=u.anchorNode;var f=u.anchorOffset,d=u.focusNode;u=u.focusOffset;try{r.nodeType,d.nodeType}catch{r=null;break e}var v=0,E=-1,w=-1,j=0,K=0,ee=e,U=null;t:for(;;){for(var F;ee!==r||f!==0&&ee.nodeType!==3||(E=v+f),ee!==d||u!==0&&ee.nodeType!==3||(w=v+u),ee.nodeType===3&&(v+=ee.nodeValue.length),(F=ee.firstChild)!==null;)U=ee,ee=F;for(;;){if(ee===e)break t;if(U===r&&++j===f&&(E=v),U===d&&++K===u&&(w=v),(F=ee.nextSibling)!==null)break;ee=U,U=ee.parentNode}ee=F}r=E===-1||w===-1?null:{start:E,end:w}}else r=null}r=r||{start:0,end:0}}else r=null;for(Wu={focusedElem:e,selectionRange:r},Kl=!1,st=t;st!==null;)if(t=st,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,st=e;else for(;st!==null;){switch(t=st,d=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(r=0;r<e.length;r++)f=e[r],f.ref.impl=f.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&d!==null){e=void 0,r=t,f=d.memoizedProps,d=d.memoizedState,u=r.stateNode;try{var ye=di(r.type,f);e=u.getSnapshotBeforeUpdate(ye,d),u.__reactInternalSnapshotBeforeUpdate=e}catch(_e){Fe(r,r.return,_e)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,r=e.nodeType,r===9)no(e);else if(r===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":no(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(a(163))}if(e=t.sibling,e!==null){e.return=t.return,st=e;break}st=t.return}}function Yc(e,t,r){var u=r.flags;switch(r.tag){case 0:case 11:case 15:vn(e,r),u&4&&Ar(5,r);break;case 1:if(vn(e,r),u&4)if(e=r.stateNode,t===null)try{e.componentDidMount()}catch(v){Fe(r,r.return,v)}else{var f=di(r.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(f,t,e.__reactInternalSnapshotBeforeUpdate)}catch(v){Fe(r,r.return,v)}}u&64&&Uc(r),u&512&&wr(r,r.return);break;case 3:if(vn(e,r),u&64&&(e=r.updateQueue,e!==null)){if(t=null,r.child!==null)switch(r.child.tag){case 27:case 5:t=r.child.stateNode;break;case 1:t=r.child.stateNode}try{Rs(e,t)}catch(v){Fe(r,r.return,v)}}break;case 27:t===null&&u&4&&Fc(r);case 26:case 5:vn(e,r),t===null&&u&4&&Bc(r),u&512&&wr(r,r.return);break;case 12:vn(e,r);break;case 31:vn(e,r),u&4&&Qc(e,r);break;case 13:vn(e,r),u&4&&Xc(e,r),u&64&&(e=r.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(r=qp.bind(null,r),ih(e,r))));break;case 22:if(u=r.memoizedState!==null||yn,!u){t=t!==null&&t.memoizedState!==null||at,f=yn;var d=at;yn=u,(at=t)&&!d?bn(e,r,(r.subtreeFlags&8772)!==0):vn(e,r),yn=f,at=d}break;case 30:break;default:vn(e,r)}}function Pc(e){var t=e.alternate;t!==null&&(e.alternate=null,Pc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ua(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 Ke=null,St=!1;function xn(e,t,r){for(r=r.child;r!==null;)Gc(e,t,r),r=r.sibling}function Gc(e,t,r){if(J&&typeof J.onCommitFiberUnmount=="function")try{J.onCommitFiberUnmount(Y,r)}catch{}switch(r.tag){case 26:at||nn(r,t),xn(e,t,r),r.memoizedState?r.memoizedState.count--:r.stateNode&&(r=r.stateNode,r.parentNode.removeChild(r));break;case 27:at||nn(r,t);var u=Ke,f=St;Vn(r.type)&&(Ke=r.stateNode,St=!1),xn(e,t,r),qr(r.stateNode),Ke=u,St=f;break;case 5:at||nn(r,t);case 6:if(u=Ke,f=St,Ke=null,xn(e,t,r),Ke=u,St=f,Ke!==null)if(St)try{(Ke.nodeType===9?Ke.body:Ke.nodeName==="HTML"?Ke.ownerDocument.body:Ke).removeChild(r.stateNode)}catch(d){Fe(r,t,d)}else try{Ke.removeChild(r.stateNode)}catch(d){Fe(r,t,d)}break;case 18:Ke!==null&&(St?(e=Ke,If(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,r.stateNode),Ji(e)):If(Ke,r.stateNode));break;case 4:u=Ke,f=St,Ke=r.stateNode.containerInfo,St=!0,xn(e,t,r),Ke=u,St=f;break;case 0:case 11:case 14:case 15:qn(2,r,t),at||qn(4,r,t),xn(e,t,r);break;case 1:at||(nn(r,t),u=r.stateNode,typeof u.componentWillUnmount=="function"&&Ic(r,t,u)),xn(e,t,r);break;case 21:xn(e,t,r);break;case 22:at=(u=at)||r.memoizedState!==null,xn(e,t,r),at=u;break;default:xn(e,t,r)}}function Qc(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ji(e)}catch(r){Fe(t,t.return,r)}}}function Xc(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ji(e)}catch(r){Fe(t,t.return,r)}}function Rp(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Vc),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Vc),t;default:throw Error(a(435,e.tag))}}function Ol(e,t){var r=Rp(e);t.forEach(function(u){if(!r.has(u)){r.add(u);var f=Zp.bind(null,e,u);u.then(f,f)}})}function kt(e,t){var r=t.deletions;if(r!==null)for(var u=0;u<r.length;u++){var f=r[u],d=e,v=t,E=v;e:for(;E!==null;){switch(E.tag){case 27:if(Vn(E.type)){Ke=E.stateNode,St=!1;break e}break;case 5:Ke=E.stateNode,St=!1;break e;case 3:case 4:Ke=E.stateNode.containerInfo,St=!0;break e}E=E.return}if(Ke===null)throw Error(a(160));Gc(d,v,f),Ke=null,St=!1,d=f.alternate,d!==null&&(d.return=null),f.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Kc(t,e),t=t.sibling}var Kt=null;function Kc(e,t){var r=e.alternate,u=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:kt(t,e),Et(e),u&4&&(qn(3,e,e.return),Ar(3,e),qn(5,e,e.return));break;case 1:kt(t,e),Et(e),u&512&&(at||r===null||nn(r,r.return)),u&64&&yn&&(e=e.updateQueue,e!==null&&(u=e.callbacks,u!==null&&(r=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=r===null?u:r.concat(u))));break;case 26:var f=Kt;if(kt(t,e),Et(e),u&512&&(at||r===null||nn(r,r.return)),u&4){var d=r!==null?r.memoizedState:null;if(u=e.memoizedState,r===null)if(u===null)if(e.stateNode===null){e:{u=e.type,r=e.memoizedProps,f=f.ownerDocument||f;t:switch(u){case"title":d=f.getElementsByTagName("title")[0],(!d||d[tr]||d[ft]||d.namespaceURI==="http://www.w3.org/2000/svg"||d.hasAttribute("itemprop"))&&(d=f.createElement(u),f.head.insertBefore(d,f.querySelector("head > title"))),mt(d,u,r),d[ft]=e,ot(d),u=d;break e;case"link":var v=$f("link","href",f).get(u+(r.href||""));if(v){for(var E=0;E<v.length;E++)if(d=v[E],d.getAttribute("href")===(r.href==null||r.href===""?null:r.href)&&d.getAttribute("rel")===(r.rel==null?null:r.rel)&&d.getAttribute("title")===(r.title==null?null:r.title)&&d.getAttribute("crossorigin")===(r.crossOrigin==null?null:r.crossOrigin)){v.splice(E,1);break t}}d=f.createElement(u),mt(d,u,r),f.head.appendChild(d);break;case"meta":if(v=$f("meta","content",f).get(u+(r.content||""))){for(E=0;E<v.length;E++)if(d=v[E],d.getAttribute("content")===(r.content==null?null:""+r.content)&&d.getAttribute("name")===(r.name==null?null:r.name)&&d.getAttribute("property")===(r.property==null?null:r.property)&&d.getAttribute("http-equiv")===(r.httpEquiv==null?null:r.httpEquiv)&&d.getAttribute("charset")===(r.charSet==null?null:r.charSet)){v.splice(E,1);break t}}d=f.createElement(u),mt(d,u,r),f.head.appendChild(d);break;default:throw Error(a(468,u))}d[ft]=e,ot(d),u=d}e.stateNode=u}else Jf(f,e.type,e.stateNode);else e.stateNode=Kf(f,u,e.memoizedProps);else d!==u?(d===null?r.stateNode!==null&&(r=r.stateNode,r.parentNode.removeChild(r)):d.count--,u===null?Jf(f,e.type,e.stateNode):Kf(f,u,e.memoizedProps)):u===null&&e.stateNode!==null&&wu(e,e.memoizedProps,r.memoizedProps)}break;case 27:kt(t,e),Et(e),u&512&&(at||r===null||nn(r,r.return)),r!==null&&u&4&&wu(e,e.memoizedProps,r.memoizedProps);break;case 5:if(kt(t,e),Et(e),u&512&&(at||r===null||nn(r,r.return)),e.flags&32){f=e.stateNode;try{Si(f,"")}catch(ye){Fe(e,e.return,ye)}}u&4&&e.stateNode!=null&&(f=e.memoizedProps,wu(e,f,r!==null?r.memoizedProps:f)),u&1024&&(zu=!0);break;case 6:if(kt(t,e),Et(e),u&4){if(e.stateNode===null)throw Error(a(162));u=e.memoizedProps,r=e.stateNode;try{r.nodeValue=u}catch(ye){Fe(e,e.return,ye)}}break;case 3:if(Pl=null,f=Kt,Kt=Vl(t.containerInfo),kt(t,e),Kt=f,Et(e),u&4&&r!==null&&r.memoizedState.isDehydrated)try{Ji(t.containerInfo)}catch(ye){Fe(e,e.return,ye)}zu&&(zu=!1,$c(e));break;case 4:u=Kt,Kt=Vl(e.stateNode.containerInfo),kt(t,e),Et(e),Kt=u;break;case 12:kt(t,e),Et(e);break;case 31:kt(t,e),Et(e),u&4&&(u=e.updateQueue,u!==null&&(e.updateQueue=null,Ol(e,u)));break;case 13:kt(t,e),Et(e),e.child.flags&8192&&e.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(Dl=nt()),u&4&&(u=e.updateQueue,u!==null&&(e.updateQueue=null,Ol(e,u)));break;case 22:f=e.memoizedState!==null;var w=r!==null&&r.memoizedState!==null,j=yn,K=at;if(yn=j||f,at=K||w,kt(t,e),at=K,yn=j,Et(e),u&8192)e:for(t=e.stateNode,t._visibility=f?t._visibility&-2:t._visibility|1,f&&(r===null||w||yn||at||pi(e)),r=null,t=e;;){if(t.tag===5||t.tag===26){if(r===null){w=r=t;try{if(d=w.stateNode,f)v=d.style,typeof v.setProperty=="function"?v.setProperty("display","none","important"):v.display="none";else{E=w.stateNode;var ee=w.memoizedProps.style,U=ee!=null&&ee.hasOwnProperty("display")?ee.display:null;E.style.display=U==null||typeof U=="boolean"?"":(""+U).trim()}}catch(ye){Fe(w,w.return,ye)}}}else if(t.tag===6){if(r===null){w=t;try{w.stateNode.nodeValue=f?"":w.memoizedProps}catch(ye){Fe(w,w.return,ye)}}}else if(t.tag===18){if(r===null){w=t;try{var F=w.stateNode;f?Bf(F,!0):Bf(w.stateNode,!1)}catch(ye){Fe(w,w.return,ye)}}}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;r===t&&(r=null),t=t.return}r===t&&(r=null),t.sibling.return=t.return,t=t.sibling}u&4&&(u=e.updateQueue,u!==null&&(r=u.retryQueue,r!==null&&(u.retryQueue=null,Ol(e,r))));break;case 19:kt(t,e),Et(e),u&4&&(u=e.updateQueue,u!==null&&(e.updateQueue=null,Ol(e,u)));break;case 30:break;case 21:break;default:kt(t,e),Et(e)}}function Et(e){var t=e.flags;if(t&2){try{for(var r,u=e.return;u!==null;){if(Hc(u)){r=u;break}u=u.return}if(r==null)throw Error(a(160));switch(r.tag){case 27:var f=r.stateNode,d=Ru(e);Rl(e,d,f);break;case 5:var v=r.stateNode;r.flags&32&&(Si(v,""),r.flags&=-33);var E=Ru(e);Rl(e,E,v);break;case 3:case 4:var w=r.stateNode.containerInfo,j=Ru(e);Ou(e,j,w);break;default:throw Error(a(161))}}catch(K){Fe(e,e.return,K)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function $c(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;$c(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function vn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Yc(e,t.alternate,t),t=t.sibling}function pi(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:qn(4,t,t.return),pi(t);break;case 1:nn(t,t.return);var r=t.stateNode;typeof r.componentWillUnmount=="function"&&Ic(t,t.return,r),pi(t);break;case 27:qr(t.stateNode);case 26:case 5:nn(t,t.return),pi(t);break;case 22:t.memoizedState===null&&pi(t);break;case 30:pi(t);break;default:pi(t)}e=e.sibling}}function bn(e,t,r){for(r=r&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var u=t.alternate,f=e,d=t,v=d.flags;switch(d.tag){case 0:case 11:case 15:bn(f,d,r),Ar(4,d);break;case 1:if(bn(f,d,r),u=d,f=u.stateNode,typeof f.componentDidMount=="function")try{f.componentDidMount()}catch(j){Fe(u,u.return,j)}if(u=d,f=u.updateQueue,f!==null){var E=u.stateNode;try{var w=f.shared.hiddenCallbacks;if(w!==null)for(f.shared.hiddenCallbacks=null,f=0;f<w.length;f++)ws(w[f],E)}catch(j){Fe(u,u.return,j)}}r&&v&64&&Uc(d),wr(d,d.return);break;case 27:Fc(d);case 26:case 5:bn(f,d,r),r&&u===null&&v&4&&Bc(d),wr(d,d.return);break;case 12:bn(f,d,r);break;case 31:bn(f,d,r),r&&v&4&&Qc(f,d);break;case 13:bn(f,d,r),r&&v&4&&Xc(f,d);break;case 22:d.memoizedState===null&&bn(f,d,r),wr(d,d.return);break;case 30:break;default:bn(f,d,r)}t=t.sibling}}function Du(e,t){var r=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==r&&(e!=null&&e.refCount++,r!=null&&hr(r))}function Mu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&hr(e))}function $t(e,t,r,u){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Jc(e,t,r,u),t=t.sibling}function Jc(e,t,r,u){var f=t.flags;switch(t.tag){case 0:case 11:case 15:$t(e,t,r,u),f&2048&&Ar(9,t);break;case 1:$t(e,t,r,u);break;case 3:$t(e,t,r,u),f&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&hr(e)));break;case 12:if(f&2048){$t(e,t,r,u),e=t.stateNode;try{var d=t.memoizedProps,v=d.id,E=d.onPostCommit;typeof E=="function"&&E(v,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(w){Fe(t,t.return,w)}}else $t(e,t,r,u);break;case 31:$t(e,t,r,u);break;case 13:$t(e,t,r,u);break;case 23:break;case 22:d=t.stateNode,v=t.alternate,t.memoizedState!==null?d._visibility&2?$t(e,t,r,u):Rr(e,t):d._visibility&2?$t(e,t,r,u):(d._visibility|=2,Bi(e,t,r,u,(t.subtreeFlags&10256)!==0||!1)),f&2048&&Du(v,t);break;case 24:$t(e,t,r,u),f&2048&&Mu(t.alternate,t);break;default:$t(e,t,r,u)}}function Bi(e,t,r,u,f){for(f=f&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var d=e,v=t,E=r,w=u,j=v.flags;switch(v.tag){case 0:case 11:case 15:Bi(d,v,E,w,f),Ar(8,v);break;case 23:break;case 22:var K=v.stateNode;v.memoizedState!==null?K._visibility&2?Bi(d,v,E,w,f):Rr(d,v):(K._visibility|=2,Bi(d,v,E,w,f)),f&&j&2048&&Du(v.alternate,v);break;case 24:Bi(d,v,E,w,f),f&&j&2048&&Mu(v.alternate,v);break;default:Bi(d,v,E,w,f)}t=t.sibling}}function Rr(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var r=e,u=t,f=u.flags;switch(u.tag){case 22:Rr(r,u),f&2048&&Du(u.alternate,u);break;case 24:Rr(r,u),f&2048&&Mu(u.alternate,u);break;default:Rr(r,u)}t=t.sibling}}var Or=8192;function Hi(e,t,r){if(e.subtreeFlags&Or)for(e=e.child;e!==null;)Wc(e,t,r),e=e.sibling}function Wc(e,t,r){switch(e.tag){case 26:Hi(e,t,r),e.flags&Or&&e.memoizedState!==null&&mh(r,Kt,e.memoizedState,e.memoizedProps);break;case 5:Hi(e,t,r);break;case 3:case 4:var u=Kt;Kt=Vl(e.stateNode.containerInfo),Hi(e,t,r),Kt=u;break;case 22:e.memoizedState===null&&(u=e.alternate,u!==null&&u.memoizedState!==null?(u=Or,Or=16777216,Hi(e,t,r),Or=u):Hi(e,t,r));break;default:Hi(e,t,r)}}function ef(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 zr(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var r=0;r<t.length;r++){var u=t[r];st=u,nf(u,e)}ef(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)tf(e),e=e.sibling}function tf(e){switch(e.tag){case 0:case 11:case 15:zr(e),e.flags&2048&&qn(9,e,e.return);break;case 3:zr(e);break;case 12:zr(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,zl(e)):zr(e);break;default:zr(e)}}function zl(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var r=0;r<t.length;r++){var u=t[r];st=u,nf(u,e)}ef(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:qn(8,t,t.return),zl(t);break;case 22:r=t.stateNode,r._visibility&2&&(r._visibility&=-3,zl(t));break;default:zl(t)}e=e.sibling}}function nf(e,t){for(;st!==null;){var r=st;switch(r.tag){case 0:case 11:case 15:qn(8,r,t);break;case 23:case 22:if(r.memoizedState!==null&&r.memoizedState.cachePool!==null){var u=r.memoizedState.cachePool.pool;u!=null&&u.refCount++}break;case 24:hr(r.memoizedState.cache)}if(u=r.child,u!==null)u.return=r,st=u;else e:for(r=e;st!==null;){u=st;var f=u.sibling,d=u.return;if(Pc(u),u===r){st=null;break e}if(f!==null){f.return=d,st=f;break e}st=d}}}var Op={getCacheForType:function(e){var t=pt(it),r=t.data.get(e);return r===void 0&&(r=e(),t.data.set(e,r)),r},cacheSignal:function(){return pt(it).controller.signal}},zp=typeof WeakMap=="function"?WeakMap:Map,Ie=0,Ge=null,De=null,Le=0,He=0,zt=null,Zn=!1,Fi=!1,Lu=!1,Sn=0,Je=0,Un=0,hi=0,Nu=0,Dt=0,Vi=0,Dr=null,_t=null,ju=!1,Dl=0,rf=0,Ml=1/0,Ll=null,In=null,ut=0,Bn=null,Yi=null,kn=0,qu=0,Zu=null,lf=null,Mr=0,Uu=null;function Mt(){return(Ie&2)!==0&&Le!==0?Le&-Le:Z.T!==null?Yu():bo()}function af(){if(Dt===0)if((Le&536870912)===0||je){var e=Te;Te<<=1,(Te&3932160)===0&&(Te=262144),Dt=e}else Dt=536870912;return e=Rt.current,e!==null&&(e.flags|=32),Dt}function Ct(e,t,r){(e===Ge&&(He===2||He===9)||e.cancelPendingCommit!==null)&&(Pi(e,0),Hn(e,Le,Dt,!1)),er(e,r),((Ie&2)===0||e!==Ge)&&(e===Ge&&((Ie&2)===0&&(hi|=r),Je===4&&Hn(e,Le,Dt,!1)),rn(e))}function uf(e,t,r){if((Ie&6)!==0)throw Error(a(327));var u=!r&&(t&127)===0&&(t&e.expiredLanes)===0||Wi(e,t),f=u?Lp(e,t):Bu(e,t,!0),d=u;do{if(f===0){Fi&&!u&&Hn(e,t,0,!1);break}else{if(r=e.current.alternate,d&&!Dp(r)){f=Bu(e,t,!1),d=!1;continue}if(f===2){if(d=t,e.errorRecoveryDisabledLanes&d)var v=0;else v=e.pendingLanes&-536870913,v=v!==0?v:v&536870912?536870912:0;if(v!==0){t=v;e:{var E=e;f=Dr;var w=E.current.memoizedState.isDehydrated;if(w&&(Pi(E,v).flags|=256),v=Bu(E,v,!1),v!==2){if(Lu&&!w){E.errorRecoveryDisabledLanes|=d,hi|=d,f=4;break e}d=_t,_t=f,d!==null&&(_t===null?_t=d:_t.push.apply(_t,d))}f=v}if(d=!1,f!==2)continue}}if(f===1){Pi(e,0),Hn(e,t,0,!0);break}e:{switch(u=e,d=f,d){case 0:case 1:throw Error(a(345));case 4:if((t&4194048)!==t)break;case 6:Hn(u,t,Dt,!Zn);break e;case 2:_t=null;break;case 3:case 5:break;default:throw Error(a(329))}if((t&62914560)===t&&(f=Dl+300-nt(),10<f)){if(Hn(u,t,Dt,!Zn),Vr(u,0,!0)!==0)break e;kn=t,u.timeoutHandle=Zf(of.bind(null,u,r,_t,Ll,ju,t,Dt,hi,Vi,Zn,d,"Throttled",-0,0),f);break e}of(u,r,_t,Ll,ju,t,Dt,hi,Vi,Zn,d,null,-0,0)}}break}while(!0);rn(e)}function of(e,t,r,u,f,d,v,E,w,j,K,ee,U,F){if(e.timeoutHandle=-1,ee=t.subtreeFlags,ee&8192||(ee&16785408)===16785408){ee={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:un},Wc(t,d,ee);var ye=(d&62914560)===d?Dl-nt():(d&4194048)===d?rf-nt():0;if(ye=gh(ee,ye),ye!==null){kn=d,e.cancelPendingCommit=ye(gf.bind(null,e,t,d,r,u,f,v,E,w,K,ee,null,U,F)),Hn(e,d,v,!j);return}}gf(e,t,d,r,u,f,v,E,w)}function Dp(e){for(var t=e;;){var r=t.tag;if((r===0||r===11||r===15)&&t.flags&16384&&(r=t.updateQueue,r!==null&&(r=r.stores,r!==null)))for(var u=0;u<r.length;u++){var f=r[u],d=f.getSnapshot;f=f.value;try{if(!At(d(),f))return!1}catch{return!1}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;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 Hn(e,t,r,u){t&=~Nu,t&=~hi,e.suspendedLanes|=t,e.pingedLanes&=~t,u&&(e.warmLanes|=t),u=e.expirationTimes;for(var f=t;0<f;){var d=31-V(f),v=1<<d;u[d]=-1,f&=~v}r!==0&&yo(e,r,t)}function Nl(){return(Ie&6)===0?(Lr(0),!1):!0}function Iu(){if(De!==null){if(He===0)var e=De.return;else e=De,fn=li=null,nu(e),ji=null,gr=0,e=De;for(;e!==null;)Zc(e.alternate,e),e=e.return;De=null}}function Pi(e,t){var r=e.timeoutHandle;r!==-1&&(e.timeoutHandle=-1,Jp(r)),r=e.cancelPendingCommit,r!==null&&(e.cancelPendingCommit=null,r()),kn=0,Iu(),Ge=e,De=r=sn(e.current,null),Le=t,He=0,zt=null,Zn=!1,Fi=Wi(e,t),Lu=!1,Vi=Dt=Nu=hi=Un=Je=0,_t=Dr=null,ju=!1,(t&8)!==0&&(t|=t&32);var u=e.entangledLanes;if(u!==0)for(e=e.entanglements,u&=t;0<u;){var f=31-V(u),d=1<<f;t|=e[f],u&=~d}return Sn=t,nl(),r}function sf(e,t){Re=null,Z.H=_r,t===Ni||t===cl?(t=_s(),He=3):t===Va?(t=_s(),He=4):He=t===xu?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,zt=t,De===null&&(Je=1,_l(e,Zt(t,e.current)))}function cf(){var e=Rt.current;return e===null?!0:(Le&4194048)===Le?Ht===null:(Le&62914560)===Le||(Le&536870912)!==0?e===Ht:!1}function ff(){var e=Z.H;return Z.H=_r,e===null?_r:e}function df(){var e=Z.A;return Z.A=Op,e}function jl(){Je=4,Zn||(Le&4194048)!==Le&&Rt.current!==null||(Fi=!0),(Un&134217727)===0&&(hi&134217727)===0||Ge===null||Hn(Ge,Le,Dt,!1)}function Bu(e,t,r){var u=Ie;Ie|=2;var f=ff(),d=df();(Ge!==e||Le!==t)&&(Ll=null,Pi(e,t)),t=!1;var v=Je;e:do try{if(He!==0&&De!==null){var E=De,w=zt;switch(He){case 8:Iu(),v=6;break e;case 3:case 2:case 9:case 6:Rt.current===null&&(t=!0);var j=He;if(He=0,zt=null,Gi(e,E,w,j),r&&Fi){v=0;break e}break;default:j=He,He=0,zt=null,Gi(e,E,w,j)}}Mp(),v=Je;break}catch(K){sf(e,K)}while(!0);return t&&e.shellSuspendCounter++,fn=li=null,Ie=u,Z.H=f,Z.A=d,De===null&&(Ge=null,Le=0,nl()),v}function Mp(){for(;De!==null;)pf(De)}function Lp(e,t){var r=Ie;Ie|=2;var u=ff(),f=df();Ge!==e||Le!==t?(Ll=null,Ml=nt()+500,Pi(e,t)):Fi=Wi(e,t);e:do try{if(He!==0&&De!==null){t=De;var d=zt;t:switch(He){case 1:He=0,zt=null,Gi(e,t,d,1);break;case 2:case 9:if(ks(d)){He=0,zt=null,hf(t);break}t=function(){He!==2&&He!==9||Ge!==e||(He=7),rn(e)},d.then(t,t);break e;case 3:He=7;break e;case 4:He=5;break e;case 7:ks(d)?(He=0,zt=null,hf(t)):(He=0,zt=null,Gi(e,t,d,7));break;case 5:var v=null;switch(De.tag){case 26:v=De.memoizedState;case 5:case 27:var E=De;if(v?Wf(v):E.stateNode.complete){He=0,zt=null;var w=E.sibling;if(w!==null)De=w;else{var j=E.return;j!==null?(De=j,ql(j)):De=null}break t}}He=0,zt=null,Gi(e,t,d,5);break;case 6:He=0,zt=null,Gi(e,t,d,6);break;case 8:Iu(),Je=6;break e;default:throw Error(a(462))}}Np();break}catch(K){sf(e,K)}while(!0);return fn=li=null,Z.H=u,Z.A=f,Ie=r,De!==null?0:(Ge=null,Le=0,nl(),Je)}function Np(){for(;De!==null&&!Cn();)pf(De)}function pf(e){var t=jc(e.alternate,e,Sn);e.memoizedProps=e.pendingProps,t===null?ql(e):De=t}function hf(e){var t=e,r=t.alternate;switch(t.tag){case 15:case 0:t=Oc(r,t,t.pendingProps,t.type,void 0,Le);break;case 11:t=Oc(r,t,t.pendingProps,t.type.render,t.ref,Le);break;case 5:nu(t);default:Zc(r,t),t=De=fs(t,Sn),t=jc(r,t,Sn)}e.memoizedProps=e.pendingProps,t===null?ql(e):De=t}function Gi(e,t,r,u){fn=li=null,nu(t),ji=null,gr=0;var f=t.return;try{if(Ep(e,f,t,r,Le)){Je=1,_l(e,Zt(r,e.current)),De=null;return}}catch(d){if(f!==null)throw De=f,d;Je=1,_l(e,Zt(r,e.current)),De=null;return}t.flags&32768?(je||u===1?e=!0:Fi||(Le&536870912)!==0?e=!1:(Zn=e=!0,(u===2||u===9||u===3||u===6)&&(u=Rt.current,u!==null&&u.tag===13&&(u.flags|=16384))),mf(t,e)):ql(t)}function ql(e){var t=e;do{if((t.flags&32768)!==0){mf(t,Zn);return}e=t.return;var r=Tp(t.alternate,t,Sn);if(r!==null){De=r;return}if(t=t.sibling,t!==null){De=t;return}De=t=e}while(t!==null);Je===0&&(Je=5)}function mf(e,t){do{var r=Ap(e.alternate,e);if(r!==null){r.flags&=32767,De=r;return}if(r=e.return,r!==null&&(r.flags|=32768,r.subtreeFlags=0,r.deletions=null),!t&&(e=e.sibling,e!==null)){De=e;return}De=e=r}while(e!==null);Je=6,De=null}function gf(e,t,r,u,f,d,v,E,w){e.cancelPendingCommit=null;do Zl();while(ut!==0);if((Ie&6)!==0)throw Error(a(327));if(t!==null){if(t===e.current)throw Error(a(177));if(d=t.lanes|t.childLanes,d|=Ra,hd(e,r,d,v,E,w),e===Ge&&(De=Ge=null,Le=0),Yi=t,Bn=e,kn=r,qu=d,Zu=f,lf=u,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Up($,function(){return Sf(),null})):(e.callbackNode=null,e.callbackPriority=0),u=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||u){u=Z.T,Z.T=null,f=ae.p,ae.p=2,v=Ie,Ie|=4;try{wp(e,t,r)}finally{Ie=v,ae.p=f,Z.T=u}}ut=1,yf(),xf(),vf()}}function yf(){if(ut===1){ut=0;var e=Bn,t=Yi,r=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||r){r=Z.T,Z.T=null;var u=ae.p;ae.p=2;var f=Ie;Ie|=4;try{Kc(t,e);var d=Wu,v=ns(e.containerInfo),E=d.focusedElem,w=d.selectionRange;if(v!==E&&E&&E.ownerDocument&&ts(E.ownerDocument.documentElement,E)){if(w!==null&&_a(E)){var j=w.start,K=w.end;if(K===void 0&&(K=j),"selectionStart"in E)E.selectionStart=j,E.selectionEnd=Math.min(K,E.value.length);else{var ee=E.ownerDocument||document,U=ee&&ee.defaultView||window;if(U.getSelection){var F=U.getSelection(),ye=E.textContent.length,_e=Math.min(w.start,ye),Pe=w.end===void 0?_e:Math.min(w.end,ye);!F.extend&&_e>Pe&&(v=Pe,Pe=_e,_e=v);var M=es(E,_e),O=es(E,Pe);if(M&&O&&(F.rangeCount!==1||F.anchorNode!==M.node||F.anchorOffset!==M.offset||F.focusNode!==O.node||F.focusOffset!==O.offset)){var N=ee.createRange();N.setStart(M.node,M.offset),F.removeAllRanges(),_e>Pe?(F.addRange(N),F.extend(O.node,O.offset)):(N.setEnd(O.node,O.offset),F.addRange(N))}}}}for(ee=[],F=E;F=F.parentNode;)F.nodeType===1&&ee.push({element:F,left:F.scrollLeft,top:F.scrollTop});for(typeof E.focus=="function"&&E.focus(),E=0;E<ee.length;E++){var W=ee[E];W.element.scrollLeft=W.left,W.element.scrollTop=W.top}}Kl=!!Ju,Wu=Ju=null}finally{Ie=f,ae.p=u,Z.T=r}}e.current=t,ut=2}}function xf(){if(ut===2){ut=0;var e=Bn,t=Yi,r=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||r){r=Z.T,Z.T=null;var u=ae.p;ae.p=2;var f=Ie;Ie|=4;try{Yc(e,t.alternate,t)}finally{Ie=f,ae.p=u,Z.T=r}}ut=3}}function vf(){if(ut===4||ut===3){ut=0,Kn();var e=Bn,t=Yi,r=kn,u=lf;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?ut=5:(ut=0,Yi=Bn=null,bf(e,e.pendingLanes));var f=e.pendingLanes;if(f===0&&(In=null),la(r),t=t.stateNode,J&&typeof J.onCommitFiberRoot=="function")try{J.onCommitFiberRoot(Y,t,void 0,(t.current.flags&128)===128)}catch{}if(u!==null){t=Z.T,f=ae.p,ae.p=2,Z.T=null;try{for(var d=e.onRecoverableError,v=0;v<u.length;v++){var E=u[v];d(E.value,{componentStack:E.stack})}}finally{Z.T=t,ae.p=f}}(kn&3)!==0&&Zl(),rn(e),f=e.pendingLanes,(r&261930)!==0&&(f&42)!==0?e===Uu?Mr++:(Mr=0,Uu=e):Mr=0,Lr(0)}}function bf(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,hr(t)))}function Zl(){return yf(),xf(),vf(),Sf()}function Sf(){if(ut!==5)return!1;var e=Bn,t=qu;qu=0;var r=la(kn),u=Z.T,f=ae.p;try{ae.p=32>r?32:r,Z.T=null,r=Zu,Zu=null;var d=Bn,v=kn;if(ut=0,Yi=Bn=null,kn=0,(Ie&6)!==0)throw Error(a(331));var E=Ie;if(Ie|=4,tf(d.current),Jc(d,d.current,v,r),Ie=E,Lr(0,!1),J&&typeof J.onPostCommitFiberRoot=="function")try{J.onPostCommitFiberRoot(Y,d)}catch{}return!0}finally{ae.p=f,Z.T=u,bf(e,t)}}function kf(e,t,r){t=Zt(r,t),t=yu(e.stateNode,t,2),e=Ln(e,t,2),e!==null&&(er(e,2),rn(e))}function Fe(e,t,r){if(e.tag===3)kf(e,e,r);else for(;t!==null;){if(t.tag===3){kf(t,e,r);break}else if(t.tag===1){var u=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(In===null||!In.has(u))){e=Zt(r,e),r=kc(2),u=Ln(t,r,2),u!==null&&(Ec(r,u,t,e),er(u,2),rn(u));break}}t=t.return}}function Hu(e,t,r){var u=e.pingCache;if(u===null){u=e.pingCache=new zp;var f=new Set;u.set(t,f)}else f=u.get(t),f===void 0&&(f=new Set,u.set(t,f));f.has(r)||(Lu=!0,f.add(r),e=jp.bind(null,e,t,r),t.then(e,e))}function jp(e,t,r){var u=e.pingCache;u!==null&&u.delete(t),e.pingedLanes|=e.suspendedLanes&r,e.warmLanes&=~r,Ge===e&&(Le&r)===r&&(Je===4||Je===3&&(Le&62914560)===Le&&300>nt()-Dl?(Ie&2)===0&&Pi(e,0):Nu|=r,Vi===Le&&(Vi=0)),rn(e)}function Ef(e,t){t===0&&(t=go()),e=ni(e,t),e!==null&&(er(e,t),rn(e))}function qp(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),Ef(e,r)}function Zp(e,t){var r=0;switch(e.tag){case 31:case 13:var u=e.stateNode,f=e.memoizedState;f!==null&&(r=f.retryLane);break;case 19:u=e.stateNode;break;case 22:u=e.stateNode._retryCache;break;default:throw Error(a(314))}u!==null&&u.delete(t),Ef(e,r)}function Up(e,t){return Qt(e,t)}var Ul=null,Qi=null,Fu=!1,Il=!1,Vu=!1,Fn=0;function rn(e){e!==Qi&&e.next===null&&(Qi===null?Ul=Qi=e:Qi=Qi.next=e),Il=!0,Fu||(Fu=!0,Bp())}function Lr(e,t){if(!Vu&&Il){Vu=!0;do for(var r=!1,u=Ul;u!==null;){if(e!==0){var f=u.pendingLanes;if(f===0)var d=0;else{var v=u.suspendedLanes,E=u.pingedLanes;d=(1<<31-V(42|e)+1)-1,d&=f&~(v&~E),d=d&201326741?d&201326741|1:d?d|2:0}d!==0&&(r=!0,Af(u,d))}else d=Le,d=Vr(u,u===Ge?d:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),(d&3)===0||Wi(u,d)||(r=!0,Af(u,d));u=u.next}while(r);Vu=!1}}function Ip(){_f()}function _f(){Il=Fu=!1;var e=0;Fn!==0&&$p()&&(e=Fn);for(var t=nt(),r=null,u=Ul;u!==null;){var f=u.next,d=Cf(u,t);d===0?(u.next=null,r===null?Ul=f:r.next=f,f===null&&(Qi=r)):(r=u,(e!==0||(d&3)!==0)&&(Il=!0)),u=f}ut!==0&&ut!==5||Lr(e),Fn!==0&&(Fn=0)}function Cf(e,t){for(var r=e.suspendedLanes,u=e.pingedLanes,f=e.expirationTimes,d=e.pendingLanes&-62914561;0<d;){var v=31-V(d),E=1<<v,w=f[v];w===-1?((E&r)===0||(E&u)!==0)&&(f[v]=pd(E,t)):w<=t&&(e.expiredLanes|=E),d&=~E}if(t=Ge,r=Le,r=Vr(e,e===t?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),u=e.callbackNode,r===0||e===t&&(He===2||He===9)||e.cancelPendingCommit!==null)return u!==null&&u!==null&&Wt(u),e.callbackNode=null,e.callbackPriority=0;if((r&3)===0||Wi(e,r)){if(t=r&-r,t===e.callbackPriority)return t;switch(u!==null&&Wt(u),la(r)){case 2:case 8:r=z;break;case 32:r=$;break;case 268435456:r=S;break;default:r=$}return u=Tf.bind(null,e),r=Qt(r,u),e.callbackPriority=t,e.callbackNode=r,t}return u!==null&&u!==null&&Wt(u),e.callbackPriority=2,e.callbackNode=null,2}function Tf(e,t){if(ut!==0&&ut!==5)return e.callbackNode=null,e.callbackPriority=0,null;var r=e.callbackNode;if(Zl()&&e.callbackNode!==r)return null;var u=Le;return u=Vr(e,e===Ge?u:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),u===0?null:(uf(e,u,t),Cf(e,nt()),e.callbackNode!=null&&e.callbackNode===r?Tf.bind(null,e):null)}function Af(e,t){if(Zl())return null;uf(e,t,!0)}function Bp(){Wp(function(){(Ie&6)!==0?Qt(C,Ip):_f()})}function Yu(){if(Fn===0){var e=Mi;e===0&&(e=ze,ze<<=1,(ze&261888)===0&&(ze=256)),Fn=e}return Fn}function wf(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Qr(""+e)}function Rf(e,t){var r=t.ownerDocument.createElement("input");return r.name=t.name,r.value=t.value,e.id&&r.setAttribute("form",e.id),t.parentNode.insertBefore(r,t),e=new FormData(e),r.parentNode.removeChild(r),e}function Hp(e,t,r,u,f){if(t==="submit"&&r&&r.stateNode===f){var d=wf((f[vt]||null).action),v=u.submitter;v&&(t=(t=v[vt]||null)?wf(t.formAction):v.getAttribute("formAction"),t!==null&&(d=t,v=null));var E=new Jr("action","action",null,u,f);e.push({event:E,listeners:[{instance:null,listener:function(){if(u.defaultPrevented){if(Fn!==0){var w=v?Rf(f,v):new FormData(f);fu(r,{pending:!0,data:w,method:f.method,action:d},null,w)}}else typeof d=="function"&&(E.preventDefault(),w=v?Rf(f,v):new FormData(f),fu(r,{pending:!0,data:w,method:f.method,action:d},d,w))},currentTarget:f}]})}}for(var Pu=0;Pu<wa.length;Pu++){var Gu=wa[Pu],Fp=Gu.toLowerCase(),Vp=Gu[0].toUpperCase()+Gu.slice(1);Xt(Fp,"on"+Vp)}Xt(ls,"onAnimationEnd"),Xt(as,"onAnimationIteration"),Xt(us,"onAnimationStart"),Xt("dblclick","onDoubleClick"),Xt("focusin","onFocus"),Xt("focusout","onBlur"),Xt(ap,"onTransitionRun"),Xt(up,"onTransitionStart"),Xt(op,"onTransitionCancel"),Xt(os,"onTransitionEnd"),vi("onMouseEnter",["mouseout","mouseover"]),vi("onMouseLeave",["mouseout","mouseover"]),vi("onPointerEnter",["pointerout","pointerover"]),vi("onPointerLeave",["pointerout","pointerover"]),Jn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Jn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Jn("onBeforeInput",["compositionend","keypress","textInput","paste"]),Jn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Jn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Jn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Nr="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(" "),Yp=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Nr));function Of(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var u=e[r],f=u.event;u=u.listeners;e:{var d=void 0;if(t)for(var v=u.length-1;0<=v;v--){var E=u[v],w=E.instance,j=E.currentTarget;if(E=E.listener,w!==d&&f.isPropagationStopped())break e;d=E,f.currentTarget=j;try{d(f)}catch(K){tl(K)}f.currentTarget=null,d=w}else for(v=0;v<u.length;v++){if(E=u[v],w=E.instance,j=E.currentTarget,E=E.listener,w!==d&&f.isPropagationStopped())break e;d=E,f.currentTarget=j;try{d(f)}catch(K){tl(K)}f.currentTarget=null,d=w}}}}function Me(e,t){var r=t[aa];r===void 0&&(r=t[aa]=new Set);var u=e+"__bubble";r.has(u)||(zf(t,e,2,!1),r.add(u))}function Qu(e,t,r){var u=0;t&&(u|=4),zf(r,e,u,t)}var Bl="_reactListening"+Math.random().toString(36).slice(2);function Xu(e){if(!e[Bl]){e[Bl]=!0,Eo.forEach(function(r){r!=="selectionchange"&&(Yp.has(r)||Qu(r,!1,e),Qu(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Bl]||(t[Bl]=!0,Qu("selectionchange",!1,t))}}function zf(e,t,r,u){switch(ad(t)){case 2:var f=vh;break;case 8:f=bh;break;default:f=co}r=f.bind(null,t,r,e),f=void 0,!ma||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(f=!0),u?f!==void 0?e.addEventListener(t,r,{capture:!0,passive:f}):e.addEventListener(t,r,!0):f!==void 0?e.addEventListener(t,r,{passive:f}):e.addEventListener(t,r,!1)}function Ku(e,t,r,u,f){var d=u;if((t&1)===0&&(t&2)===0&&u!==null)e:for(;;){if(u===null)return;var v=u.tag;if(v===3||v===4){var E=u.stateNode.containerInfo;if(E===f)break;if(v===4)for(v=u.return;v!==null;){var w=v.tag;if((w===3||w===4)&&v.stateNode.containerInfo===f)return;v=v.return}for(;E!==null;){if(v=gi(E),v===null)return;if(w=v.tag,w===5||w===6||w===26||w===27){u=d=v;continue e}E=E.parentNode}}u=u.return}No(function(){var j=d,K=pa(r),ee=[];e:{var U=ss.get(e);if(U!==void 0){var F=Jr,ye=e;switch(e){case"keypress":if(Kr(r)===0)break e;case"keydown":case"keyup":F=Zd;break;case"focusin":ye="focus",F=va;break;case"focusout":ye="blur",F=va;break;case"beforeblur":case"afterblur":F=va;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":F=Zo;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":F=Td;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":F=Bd;break;case ls:case as:case us:F=Rd;break;case os:F=Fd;break;case"scroll":case"scrollend":F=_d;break;case"wheel":F=Yd;break;case"copy":case"cut":case"paste":F=zd;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":F=Io;break;case"toggle":case"beforetoggle":F=Gd}var _e=(t&4)!==0,Pe=!_e&&(e==="scroll"||e==="scrollend"),M=_e?U!==null?U+"Capture":null:U;_e=[];for(var O=j,N;O!==null;){var W=O;if(N=W.stateNode,W=W.tag,W!==5&&W!==26&&W!==27||N===null||M===null||(W=ir(O,M),W!=null&&_e.push(jr(O,W,N))),Pe)break;O=O.return}0<_e.length&&(U=new F(U,ye,null,r,K),ee.push({event:U,listeners:_e}))}}if((t&7)===0){e:{if(U=e==="mouseover"||e==="pointerover",F=e==="mouseout"||e==="pointerout",U&&r!==da&&(ye=r.relatedTarget||r.fromElement)&&(gi(ye)||ye[mi]))break e;if((F||U)&&(U=K.window===K?K:(U=K.ownerDocument)?U.defaultView||U.parentWindow:window,F?(ye=r.relatedTarget||r.toElement,F=j,ye=ye?gi(ye):null,ye!==null&&(Pe=s(ye),_e=ye.tag,ye!==Pe||_e!==5&&_e!==27&&_e!==6)&&(ye=null)):(F=null,ye=j),F!==ye)){if(_e=Zo,W="onMouseLeave",M="onMouseEnter",O="mouse",(e==="pointerout"||e==="pointerover")&&(_e=Io,W="onPointerLeave",M="onPointerEnter",O="pointer"),Pe=F==null?U:nr(F),N=ye==null?U:nr(ye),U=new _e(W,O+"leave",F,r,K),U.target=Pe,U.relatedTarget=N,W=null,gi(K)===j&&(_e=new _e(M,O+"enter",ye,r,K),_e.target=N,_e.relatedTarget=Pe,W=_e),Pe=W,F&&ye)t:{for(_e=Pp,M=F,O=ye,N=0,W=M;W;W=_e(W))N++;W=0;for(var Se=O;Se;Se=_e(Se))W++;for(;0<N-W;)M=_e(M),N--;for(;0<W-N;)O=_e(O),W--;for(;N--;){if(M===O||O!==null&&M===O.alternate){_e=M;break t}M=_e(M),O=_e(O)}_e=null}else _e=null;F!==null&&Df(ee,U,F,_e,!1),ye!==null&&Pe!==null&&Df(ee,Pe,ye,_e,!0)}}e:{if(U=j?nr(j):window,F=U.nodeName&&U.nodeName.toLowerCase(),F==="select"||F==="input"&&U.type==="file")var Ze=Qo;else if(Po(U))if(Xo)Ze=ip;else{Ze=tp;var ve=ep}else F=U.nodeName,!F||F.toLowerCase()!=="input"||U.type!=="checkbox"&&U.type!=="radio"?j&&fa(j.elementType)&&(Ze=Qo):Ze=np;if(Ze&&(Ze=Ze(e,j))){Go(ee,Ze,r,K);break e}ve&&ve(e,U,j),e==="focusout"&&j&&U.type==="number"&&j.memoizedProps.value!=null&&ca(U,"number",U.value)}switch(ve=j?nr(j):window,e){case"focusin":(Po(ve)||ve.contentEditable==="true")&&(Ci=ve,Ca=j,fr=null);break;case"focusout":fr=Ca=Ci=null;break;case"mousedown":Ta=!0;break;case"contextmenu":case"mouseup":case"dragend":Ta=!1,is(ee,r,K);break;case"selectionchange":if(lp)break;case"keydown":case"keyup":is(ee,r,K)}var Oe;if(Sa)e:{switch(e){case"compositionstart":var Ne="onCompositionStart";break e;case"compositionend":Ne="onCompositionEnd";break e;case"compositionupdate":Ne="onCompositionUpdate";break e}Ne=void 0}else _i?Vo(e,r)&&(Ne="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(Ne="onCompositionStart");Ne&&(Bo&&r.locale!=="ko"&&(_i||Ne!=="onCompositionStart"?Ne==="onCompositionEnd"&&_i&&(Oe=jo()):(An=K,ga="value"in An?An.value:An.textContent,_i=!0)),ve=Hl(j,Ne),0<ve.length&&(Ne=new Uo(Ne,e,null,r,K),ee.push({event:Ne,listeners:ve}),Oe?Ne.data=Oe:(Oe=Yo(r),Oe!==null&&(Ne.data=Oe)))),(Oe=Xd?Kd(e,r):$d(e,r))&&(Ne=Hl(j,"onBeforeInput"),0<Ne.length&&(ve=new Uo("onBeforeInput","beforeinput",null,r,K),ee.push({event:ve,listeners:Ne}),ve.data=Oe)),Hp(ee,e,j,r,K)}Of(ee,t)})}function jr(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Hl(e,t){for(var r=t+"Capture",u=[];e!==null;){var f=e,d=f.stateNode;if(f=f.tag,f!==5&&f!==26&&f!==27||d===null||(f=ir(e,r),f!=null&&u.unshift(jr(e,f,d)),f=ir(e,t),f!=null&&u.push(jr(e,f,d))),e.tag===3)return u;e=e.return}return[]}function Pp(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Df(e,t,r,u,f){for(var d=t._reactName,v=[];r!==null&&r!==u;){var E=r,w=E.alternate,j=E.stateNode;if(E=E.tag,w!==null&&w===u)break;E!==5&&E!==26&&E!==27||j===null||(w=j,f?(j=ir(r,d),j!=null&&v.unshift(jr(r,j,w))):f||(j=ir(r,d),j!=null&&v.push(jr(r,j,w)))),r=r.return}v.length!==0&&e.push({event:t,listeners:v})}var Gp=/\r\n?/g,Qp=/\u0000|\uFFFD/g;function Mf(e){return(typeof e=="string"?e:""+e).replace(Gp,`
|
|
49
|
-
`).replace(Qp,"")}function Lf(e,t){return t=Mf(t),Mf(e)===t}function Ye(e,t,r,u,f,d){switch(r){case"children":typeof u=="string"?t==="body"||t==="textarea"&&u===""||Si(e,u):(typeof u=="number"||typeof u=="bigint")&&t!=="body"&&Si(e,""+u);break;case"className":Pr(e,"class",u);break;case"tabIndex":Pr(e,"tabindex",u);break;case"dir":case"role":case"viewBox":case"width":case"height":Pr(e,r,u);break;case"style":Mo(e,u,d);break;case"data":if(t!=="object"){Pr(e,"data",u);break}case"src":case"href":if(u===""&&(t!=="a"||r!=="href")){e.removeAttribute(r);break}if(u==null||typeof u=="function"||typeof u=="symbol"||typeof u=="boolean"){e.removeAttribute(r);break}u=Qr(""+u),e.setAttribute(r,u);break;case"action":case"formAction":if(typeof u=="function"){e.setAttribute(r,"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 d=="function"&&(r==="formAction"?(t!=="input"&&Ye(e,t,"name",f.name,f,null),Ye(e,t,"formEncType",f.formEncType,f,null),Ye(e,t,"formMethod",f.formMethod,f,null),Ye(e,t,"formTarget",f.formTarget,f,null)):(Ye(e,t,"encType",f.encType,f,null),Ye(e,t,"method",f.method,f,null),Ye(e,t,"target",f.target,f,null)));if(u==null||typeof u=="symbol"||typeof u=="boolean"){e.removeAttribute(r);break}u=Qr(""+u),e.setAttribute(r,u);break;case"onClick":u!=null&&(e.onclick=un);break;case"onScroll":u!=null&&Me("scroll",e);break;case"onScrollEnd":u!=null&&Me("scrollend",e);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(a(61));if(r=u.__html,r!=null){if(f.children!=null)throw Error(a(60));e.innerHTML=r}}break;case"multiple":e.multiple=u&&typeof u!="function"&&typeof u!="symbol";break;case"muted":e.muted=u&&typeof u!="function"&&typeof u!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(u==null||typeof u=="function"||typeof u=="boolean"||typeof u=="symbol"){e.removeAttribute("xlink:href");break}r=Qr(""+u),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",r);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":u!=null&&typeof u!="function"&&typeof u!="symbol"?e.setAttribute(r,""+u):e.removeAttribute(r);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":u&&typeof u!="function"&&typeof u!="symbol"?e.setAttribute(r,""):e.removeAttribute(r);break;case"capture":case"download":u===!0?e.setAttribute(r,""):u!==!1&&u!=null&&typeof u!="function"&&typeof u!="symbol"?e.setAttribute(r,u):e.removeAttribute(r);break;case"cols":case"rows":case"size":case"span":u!=null&&typeof u!="function"&&typeof u!="symbol"&&!isNaN(u)&&1<=u?e.setAttribute(r,u):e.removeAttribute(r);break;case"rowSpan":case"start":u==null||typeof u=="function"||typeof u=="symbol"||isNaN(u)?e.removeAttribute(r):e.setAttribute(r,u);break;case"popover":Me("beforetoggle",e),Me("toggle",e),Yr(e,"popover",u);break;case"xlinkActuate":an(e,"http://www.w3.org/1999/xlink","xlink:actuate",u);break;case"xlinkArcrole":an(e,"http://www.w3.org/1999/xlink","xlink:arcrole",u);break;case"xlinkRole":an(e,"http://www.w3.org/1999/xlink","xlink:role",u);break;case"xlinkShow":an(e,"http://www.w3.org/1999/xlink","xlink:show",u);break;case"xlinkTitle":an(e,"http://www.w3.org/1999/xlink","xlink:title",u);break;case"xlinkType":an(e,"http://www.w3.org/1999/xlink","xlink:type",u);break;case"xmlBase":an(e,"http://www.w3.org/XML/1998/namespace","xml:base",u);break;case"xmlLang":an(e,"http://www.w3.org/XML/1998/namespace","xml:lang",u);break;case"xmlSpace":an(e,"http://www.w3.org/XML/1998/namespace","xml:space",u);break;case"is":Yr(e,"is",u);break;case"innerText":case"textContent":break;default:(!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N")&&(r=kd.get(r)||r,Yr(e,r,u))}}function $u(e,t,r,u,f,d){switch(r){case"style":Mo(e,u,d);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(a(61));if(r=u.__html,r!=null){if(f.children!=null)throw Error(a(60));e.innerHTML=r}}break;case"children":typeof u=="string"?Si(e,u):(typeof u=="number"||typeof u=="bigint")&&Si(e,""+u);break;case"onScroll":u!=null&&Me("scroll",e);break;case"onScrollEnd":u!=null&&Me("scrollend",e);break;case"onClick":u!=null&&(e.onclick=un);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!_o.hasOwnProperty(r))e:{if(r[0]==="o"&&r[1]==="n"&&(f=r.endsWith("Capture"),t=r.slice(2,f?r.length-7:void 0),d=e[vt]||null,d=d!=null?d[r]:null,typeof d=="function"&&e.removeEventListener(t,d,f),typeof u=="function")){typeof d!="function"&&d!==null&&(r in e?e[r]=null:e.hasAttribute(r)&&e.removeAttribute(r)),e.addEventListener(t,u,f);break e}r in e?e[r]=u:u===!0?e.setAttribute(r,""):Yr(e,r,u)}}}function mt(e,t,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Me("error",e),Me("load",e);var u=!1,f=!1,d;for(d in r)if(r.hasOwnProperty(d)){var v=r[d];if(v!=null)switch(d){case"src":u=!0;break;case"srcSet":f=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(a(137,t));default:Ye(e,t,d,v,r,null)}}f&&Ye(e,t,"srcSet",r.srcSet,r,null),u&&Ye(e,t,"src",r.src,r,null);return;case"input":Me("invalid",e);var E=d=v=f=null,w=null,j=null;for(u in r)if(r.hasOwnProperty(u)){var K=r[u];if(K!=null)switch(u){case"name":f=K;break;case"type":v=K;break;case"checked":w=K;break;case"defaultChecked":j=K;break;case"value":d=K;break;case"defaultValue":E=K;break;case"children":case"dangerouslySetInnerHTML":if(K!=null)throw Error(a(137,t));break;default:Ye(e,t,u,K,r,null)}}Ro(e,d,E,w,j,v,f,!1);return;case"select":Me("invalid",e),u=v=d=null;for(f in r)if(r.hasOwnProperty(f)&&(E=r[f],E!=null))switch(f){case"value":d=E;break;case"defaultValue":v=E;break;case"multiple":u=E;default:Ye(e,t,f,E,r,null)}t=d,r=v,e.multiple=!!u,t!=null?bi(e,!!u,t,!1):r!=null&&bi(e,!!u,r,!0);return;case"textarea":Me("invalid",e),d=f=u=null;for(v in r)if(r.hasOwnProperty(v)&&(E=r[v],E!=null))switch(v){case"value":u=E;break;case"defaultValue":f=E;break;case"children":d=E;break;case"dangerouslySetInnerHTML":if(E!=null)throw Error(a(91));break;default:Ye(e,t,v,E,r,null)}zo(e,u,f,d);return;case"option":for(w in r)if(r.hasOwnProperty(w)&&(u=r[w],u!=null))switch(w){case"selected":e.selected=u&&typeof u!="function"&&typeof u!="symbol";break;default:Ye(e,t,w,u,r,null)}return;case"dialog":Me("beforetoggle",e),Me("toggle",e),Me("cancel",e),Me("close",e);break;case"iframe":case"object":Me("load",e);break;case"video":case"audio":for(u=0;u<Nr.length;u++)Me(Nr[u],e);break;case"image":Me("error",e),Me("load",e);break;case"details":Me("toggle",e);break;case"embed":case"source":case"link":Me("error",e),Me("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(j in r)if(r.hasOwnProperty(j)&&(u=r[j],u!=null))switch(j){case"children":case"dangerouslySetInnerHTML":throw Error(a(137,t));default:Ye(e,t,j,u,r,null)}return;default:if(fa(t)){for(K in r)r.hasOwnProperty(K)&&(u=r[K],u!==void 0&&$u(e,t,K,u,r,void 0));return}}for(E in r)r.hasOwnProperty(E)&&(u=r[E],u!=null&&Ye(e,t,E,u,r,null))}function Xp(e,t,r,u){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var f=null,d=null,v=null,E=null,w=null,j=null,K=null;for(F in r){var ee=r[F];if(r.hasOwnProperty(F)&&ee!=null)switch(F){case"checked":break;case"value":break;case"defaultValue":w=ee;default:u.hasOwnProperty(F)||Ye(e,t,F,null,u,ee)}}for(var U in u){var F=u[U];if(ee=r[U],u.hasOwnProperty(U)&&(F!=null||ee!=null))switch(U){case"type":d=F;break;case"name":f=F;break;case"checked":j=F;break;case"defaultChecked":K=F;break;case"value":v=F;break;case"defaultValue":E=F;break;case"children":case"dangerouslySetInnerHTML":if(F!=null)throw Error(a(137,t));break;default:F!==ee&&Ye(e,t,U,F,u,ee)}}sa(e,v,E,w,j,K,d,f);return;case"select":F=v=E=U=null;for(d in r)if(w=r[d],r.hasOwnProperty(d)&&w!=null)switch(d){case"value":break;case"multiple":F=w;default:u.hasOwnProperty(d)||Ye(e,t,d,null,u,w)}for(f in u)if(d=u[f],w=r[f],u.hasOwnProperty(f)&&(d!=null||w!=null))switch(f){case"value":U=d;break;case"defaultValue":E=d;break;case"multiple":v=d;default:d!==w&&Ye(e,t,f,d,u,w)}t=E,r=v,u=F,U!=null?bi(e,!!r,U,!1):!!u!=!!r&&(t!=null?bi(e,!!r,t,!0):bi(e,!!r,r?[]:"",!1));return;case"textarea":F=U=null;for(E in r)if(f=r[E],r.hasOwnProperty(E)&&f!=null&&!u.hasOwnProperty(E))switch(E){case"value":break;case"children":break;default:Ye(e,t,E,null,u,f)}for(v in u)if(f=u[v],d=r[v],u.hasOwnProperty(v)&&(f!=null||d!=null))switch(v){case"value":U=f;break;case"defaultValue":F=f;break;case"children":break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(a(91));break;default:f!==d&&Ye(e,t,v,f,u,d)}Oo(e,U,F);return;case"option":for(var ye in r)if(U=r[ye],r.hasOwnProperty(ye)&&U!=null&&!u.hasOwnProperty(ye))switch(ye){case"selected":e.selected=!1;break;default:Ye(e,t,ye,null,u,U)}for(w in u)if(U=u[w],F=r[w],u.hasOwnProperty(w)&&U!==F&&(U!=null||F!=null))switch(w){case"selected":e.selected=U&&typeof U!="function"&&typeof U!="symbol";break;default:Ye(e,t,w,U,u,F)}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 _e in r)U=r[_e],r.hasOwnProperty(_e)&&U!=null&&!u.hasOwnProperty(_e)&&Ye(e,t,_e,null,u,U);for(j in u)if(U=u[j],F=r[j],u.hasOwnProperty(j)&&U!==F&&(U!=null||F!=null))switch(j){case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(a(137,t));break;default:Ye(e,t,j,U,u,F)}return;default:if(fa(t)){for(var Pe in r)U=r[Pe],r.hasOwnProperty(Pe)&&U!==void 0&&!u.hasOwnProperty(Pe)&&$u(e,t,Pe,void 0,u,U);for(K in u)U=u[K],F=r[K],!u.hasOwnProperty(K)||U===F||U===void 0&&F===void 0||$u(e,t,K,U,u,F);return}}for(var M in r)U=r[M],r.hasOwnProperty(M)&&U!=null&&!u.hasOwnProperty(M)&&Ye(e,t,M,null,u,U);for(ee in u)U=u[ee],F=r[ee],!u.hasOwnProperty(ee)||U===F||U==null&&F==null||Ye(e,t,ee,U,u,F)}function Nf(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Kp(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,r=performance.getEntriesByType("resource"),u=0;u<r.length;u++){var f=r[u],d=f.transferSize,v=f.initiatorType,E=f.duration;if(d&&E&&Nf(v)){for(v=0,E=f.responseEnd,u+=1;u<r.length;u++){var w=r[u],j=w.startTime;if(j>E)break;var K=w.transferSize,ee=w.initiatorType;K&&Nf(ee)&&(w=w.responseEnd,v+=K*(w<E?1:(E-j)/(w-j)))}if(--u,t+=8*(d+v)/(f.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 Ju=null,Wu=null;function Fl(e){return e.nodeType===9?e:e.ownerDocument}function jf(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 qf(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 eo(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 to=null;function $p(){var e=window.event;return e&&e.type==="popstate"?e===to?!1:(to=e,!0):(to=null,!1)}var Zf=typeof setTimeout=="function"?setTimeout:void 0,Jp=typeof clearTimeout=="function"?clearTimeout:void 0,Uf=typeof Promise=="function"?Promise:void 0,Wp=typeof queueMicrotask=="function"?queueMicrotask:typeof Uf<"u"?function(e){return Uf.resolve(null).then(e).catch(eh)}:Zf;function eh(e){setTimeout(function(){throw e})}function Vn(e){return e==="head"}function If(e,t){var r=t,u=0;do{var f=r.nextSibling;if(e.removeChild(r),f&&f.nodeType===8)if(r=f.data,r==="/$"||r==="/&"){if(u===0){e.removeChild(f),Ji(t);return}u--}else if(r==="$"||r==="$?"||r==="$~"||r==="$!"||r==="&")u++;else if(r==="html")qr(e.ownerDocument.documentElement);else if(r==="head"){r=e.ownerDocument.head,qr(r);for(var d=r.firstChild;d;){var v=d.nextSibling,E=d.nodeName;d[tr]||E==="SCRIPT"||E==="STYLE"||E==="LINK"&&d.rel.toLowerCase()==="stylesheet"||r.removeChild(d),d=v}}else r==="body"&&qr(e.ownerDocument.body);r=f}while(r);Ji(t)}function Bf(e,t){var r=e;e=0;do{var u=r.nextSibling;if(r.nodeType===1?t?(r._stashedDisplay=r.style.display,r.style.display="none"):(r.style.display=r._stashedDisplay||"",r.getAttribute("style")===""&&r.removeAttribute("style")):r.nodeType===3&&(t?(r._stashedText=r.nodeValue,r.nodeValue=""):r.nodeValue=r._stashedText||""),u&&u.nodeType===8)if(r=u.data,r==="/$"){if(e===0)break;e--}else r!=="$"&&r!=="$?"&&r!=="$~"&&r!=="$!"||e++;r=u}while(r)}function no(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var r=t;switch(t=t.nextSibling,r.nodeName){case"HTML":case"HEAD":case"BODY":no(r),ua(r);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(r.rel.toLowerCase()==="stylesheet")continue}e.removeChild(r)}}function th(e,t,r,u){for(;e.nodeType===1;){var f=r;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!u&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(u){if(!e[tr])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(d=e.getAttribute("rel"),d==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(d!==f.rel||e.getAttribute("href")!==(f.href==null||f.href===""?null:f.href)||e.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin)||e.getAttribute("title")!==(f.title==null?null:f.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(d=e.getAttribute("src"),(d!==(f.src==null?null:f.src)||e.getAttribute("type")!==(f.type==null?null:f.type)||e.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin))&&d&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var d=f.name==null?null:""+f.name;if(f.type==="hidden"&&e.getAttribute("name")===d)return e}else return e;if(e=Ft(e.nextSibling),e===null)break}return null}function nh(e,t,r){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!r||(e=Ft(e.nextSibling),e===null))return null;return e}function Hf(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Ft(e.nextSibling),e===null))return null;return e}function io(e){return e.data==="$?"||e.data==="$~"}function ro(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function ih(e,t){var r=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||r.readyState!=="loading")t();else{var u=function(){t(),r.removeEventListener("DOMContentLoaded",u)};r.addEventListener("DOMContentLoaded",u),e._reactRetry=u}}function Ft(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 lo=null;function Ff(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"||r==="/&"){if(t===0)return Ft(e.nextSibling);t--}else r!=="$"&&r!=="$!"&&r!=="$?"&&r!=="$~"&&r!=="&"||t++}e=e.nextSibling}return null}function Vf(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"||r==="$~"||r==="&"){if(t===0)return e;t--}else r!=="/$"&&r!=="/&"||t++}e=e.previousSibling}return null}function Yf(e,t,r){switch(t=Fl(r),e){case"html":if(e=t.documentElement,!e)throw Error(a(452));return e;case"head":if(e=t.head,!e)throw Error(a(453));return e;case"body":if(e=t.body,!e)throw Error(a(454));return e;default:throw Error(a(451))}}function qr(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ua(e)}var Vt=new Map,Pf=new Set;function Vl(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var En=ae.d;ae.d={f:rh,r:lh,D:ah,C:uh,L:oh,m:sh,X:fh,S:ch,M:dh};function rh(){var e=En.f(),t=Nl();return e||t}function lh(e){var t=yi(e);t!==null&&t.tag===5&&t.type==="form"?oc(t):En.r(e)}var Xi=typeof document>"u"?null:document;function Gf(e,t,r){var u=Xi;if(u&&typeof t=="string"&&t){var f=jt(t);f='link[rel="'+e+'"][href="'+f+'"]',typeof r=="string"&&(f+='[crossorigin="'+r+'"]'),Pf.has(f)||(Pf.add(f),e={rel:e,crossOrigin:r,href:t},u.querySelector(f)===null&&(t=u.createElement("link"),mt(t,"link",e),ot(t),u.head.appendChild(t)))}}function ah(e){En.D(e),Gf("dns-prefetch",e,null)}function uh(e,t){En.C(e,t),Gf("preconnect",e,t)}function oh(e,t,r){En.L(e,t,r);var u=Xi;if(u&&e&&t){var f='link[rel="preload"][as="'+jt(t)+'"]';t==="image"&&r&&r.imageSrcSet?(f+='[imagesrcset="'+jt(r.imageSrcSet)+'"]',typeof r.imageSizes=="string"&&(f+='[imagesizes="'+jt(r.imageSizes)+'"]')):f+='[href="'+jt(e)+'"]';var d=f;switch(t){case"style":d=Ki(e);break;case"script":d=$i(e)}Vt.has(d)||(e=x({rel:"preload",href:t==="image"&&r&&r.imageSrcSet?void 0:e,as:t},r),Vt.set(d,e),u.querySelector(f)!==null||t==="style"&&u.querySelector(Zr(d))||t==="script"&&u.querySelector(Ur(d))||(t=u.createElement("link"),mt(t,"link",e),ot(t),u.head.appendChild(t)))}}function sh(e,t){En.m(e,t);var r=Xi;if(r&&e){var u=t&&typeof t.as=="string"?t.as:"script",f='link[rel="modulepreload"][as="'+jt(u)+'"][href="'+jt(e)+'"]',d=f;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":d=$i(e)}if(!Vt.has(d)&&(e=x({rel:"modulepreload",href:e},t),Vt.set(d,e),r.querySelector(f)===null)){switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(r.querySelector(Ur(d)))return}u=r.createElement("link"),mt(u,"link",e),ot(u),r.head.appendChild(u)}}}function ch(e,t,r){En.S(e,t,r);var u=Xi;if(u&&e){var f=xi(u).hoistableStyles,d=Ki(e);t=t||"default";var v=f.get(d);if(!v){var E={loading:0,preload:null};if(v=u.querySelector(Zr(d)))E.loading=5;else{e=x({rel:"stylesheet",href:e,"data-precedence":t},r),(r=Vt.get(d))&&ao(e,r);var w=v=u.createElement("link");ot(w),mt(w,"link",e),w._p=new Promise(function(j,K){w.onload=j,w.onerror=K}),w.addEventListener("load",function(){E.loading|=1}),w.addEventListener("error",function(){E.loading|=2}),E.loading|=4,Yl(v,t,u)}v={type:"stylesheet",instance:v,count:1,state:E},f.set(d,v)}}}function fh(e,t){En.X(e,t);var r=Xi;if(r&&e){var u=xi(r).hoistableScripts,f=$i(e),d=u.get(f);d||(d=r.querySelector(Ur(f)),d||(e=x({src:e,async:!0},t),(t=Vt.get(f))&&uo(e,t),d=r.createElement("script"),ot(d),mt(d,"link",e),r.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},u.set(f,d))}}function dh(e,t){En.M(e,t);var r=Xi;if(r&&e){var u=xi(r).hoistableScripts,f=$i(e),d=u.get(f);d||(d=r.querySelector(Ur(f)),d||(e=x({src:e,async:!0,type:"module"},t),(t=Vt.get(f))&&uo(e,t),d=r.createElement("script"),ot(d),mt(d,"link",e),r.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},u.set(f,d))}}function Qf(e,t,r,u){var f=(f=xe.current)?Vl(f):null;if(!f)throw Error(a(446));switch(e){case"meta":case"title":return null;case"style":return typeof r.precedence=="string"&&typeof r.href=="string"?(t=Ki(r.href),r=xi(f).hoistableStyles,u=r.get(t),u||(u={type:"style",instance:null,count:0,state:null},r.set(t,u)),u):{type:"void",instance:null,count:0,state:null};case"link":if(r.rel==="stylesheet"&&typeof r.href=="string"&&typeof r.precedence=="string"){e=Ki(r.href);var d=xi(f).hoistableStyles,v=d.get(e);if(v||(f=f.ownerDocument||f,v={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},d.set(e,v),(d=f.querySelector(Zr(e)))&&!d._p&&(v.instance=d,v.state.loading=5),Vt.has(e)||(r={rel:"preload",as:"style",href:r.href,crossOrigin:r.crossOrigin,integrity:r.integrity,media:r.media,hrefLang:r.hrefLang,referrerPolicy:r.referrerPolicy},Vt.set(e,r),d||ph(f,e,r,v.state))),t&&u===null)throw Error(a(528,""));return v}if(t&&u!==null)throw Error(a(529,""));return null;case"script":return t=r.async,r=r.src,typeof r=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=$i(r),r=xi(f).hoistableScripts,u=r.get(t),u||(u={type:"script",instance:null,count:0,state:null},r.set(t,u)),u):{type:"void",instance:null,count:0,state:null};default:throw Error(a(444,e))}}function Ki(e){return'href="'+jt(e)+'"'}function Zr(e){return'link[rel="stylesheet"]['+e+"]"}function Xf(e){return x({},e,{"data-precedence":e.precedence,precedence:null})}function ph(e,t,r,u){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?u.loading=1:(t=e.createElement("link"),u.preload=t,t.addEventListener("load",function(){return u.loading|=1}),t.addEventListener("error",function(){return u.loading|=2}),mt(t,"link",r),ot(t),e.head.appendChild(t))}function $i(e){return'[src="'+jt(e)+'"]'}function Ur(e){return"script[async]"+e}function Kf(e,t,r){if(t.count++,t.instance===null)switch(t.type){case"style":var u=e.querySelector('style[data-href~="'+jt(r.href)+'"]');if(u)return t.instance=u,ot(u),u;var f=x({},r,{"data-href":r.href,"data-precedence":r.precedence,href:null,precedence:null});return u=(e.ownerDocument||e).createElement("style"),ot(u),mt(u,"style",f),Yl(u,r.precedence,e),t.instance=u;case"stylesheet":f=Ki(r.href);var d=e.querySelector(Zr(f));if(d)return t.state.loading|=4,t.instance=d,ot(d),d;u=Xf(r),(f=Vt.get(f))&&ao(u,f),d=(e.ownerDocument||e).createElement("link"),ot(d);var v=d;return v._p=new Promise(function(E,w){v.onload=E,v.onerror=w}),mt(d,"link",u),t.state.loading|=4,Yl(d,r.precedence,e),t.instance=d;case"script":return d=$i(r.src),(f=e.querySelector(Ur(d)))?(t.instance=f,ot(f),f):(u=r,(f=Vt.get(d))&&(u=x({},r),uo(u,f)),e=e.ownerDocument||e,f=e.createElement("script"),ot(f),mt(f,"link",u),e.head.appendChild(f),t.instance=f);case"void":return null;default:throw Error(a(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(u=t.instance,t.state.loading|=4,Yl(u,r.precedence,e));return t.instance}function Yl(e,t,r){for(var u=r.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),f=u.length?u[u.length-1]:null,d=f,v=0;v<u.length;v++){var E=u[v];if(E.dataset.precedence===t)d=E;else if(d!==f)break}d?d.parentNode.insertBefore(e,d.nextSibling):(t=r.nodeType===9?r.head:r,t.insertBefore(e,t.firstChild))}function ao(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function uo(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Pl=null;function $f(e,t,r){if(Pl===null){var u=new Map,f=Pl=new Map;f.set(r,u)}else f=Pl,u=f.get(r),u||(u=new Map,f.set(r,u));if(u.has(e))return u;for(u.set(e,null),r=r.getElementsByTagName(e),f=0;f<r.length;f++){var d=r[f];if(!(d[tr]||d[ft]||e==="link"&&d.getAttribute("rel")==="stylesheet")&&d.namespaceURI!=="http://www.w3.org/2000/svg"){var v=d.getAttribute(t)||"";v=e+v;var E=u.get(v);E?E.push(d):u.set(v,[d])}}return u}function Jf(e,t,r){e=e.ownerDocument||e,e.head.insertBefore(r,t==="title"?e.querySelector("head > title"):null)}function hh(e,t,r){if(r===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 Wf(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function mh(e,t,r,u){if(r.type==="stylesheet"&&(typeof u.media!="string"||matchMedia(u.media).matches!==!1)&&(r.state.loading&4)===0){if(r.instance===null){var f=Ki(u.href),d=t.querySelector(Zr(f));if(d){t=d._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Gl.bind(e),t.then(e,e)),r.state.loading|=4,r.instance=d,ot(d);return}d=t.ownerDocument||t,u=Xf(u),(f=Vt.get(f))&&ao(u,f),d=d.createElement("link"),ot(d);var v=d;v._p=new Promise(function(E,w){v.onload=E,v.onerror=w}),mt(d,"link",u),r.instance=d}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(r,t),(t=r.state.preload)&&(r.state.loading&3)===0&&(e.count++,r=Gl.bind(e),t.addEventListener("load",r),t.addEventListener("error",r))}}var oo=0;function gh(e,t){return e.stylesheets&&e.count===0&&Xl(e,e.stylesheets),0<e.count||0<e.imgCount?function(r){var u=setTimeout(function(){if(e.stylesheets&&Xl(e,e.stylesheets),e.unsuspend){var d=e.unsuspend;e.unsuspend=null,d()}},6e4+t);0<e.imgBytes&&oo===0&&(oo=62500*Kp());var f=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Xl(e,e.stylesheets),e.unsuspend)){var d=e.unsuspend;e.unsuspend=null,d()}},(e.imgBytes>oo?50:800)+t);return e.unsuspend=r,function(){e.unsuspend=null,clearTimeout(u),clearTimeout(f)}}:null}function Gl(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Xl(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Ql=null;function Xl(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Ql=new Map,t.forEach(yh,e),Ql=null,Gl.call(e))}function yh(e,t){if(!(t.state.loading&4)){var r=Ql.get(e);if(r)var u=r.get(null);else{r=new Map,Ql.set(e,r);for(var f=e.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;d<f.length;d++){var v=f[d];(v.nodeName==="LINK"||v.getAttribute("media")!=="not all")&&(r.set(v.dataset.precedence,v),u=v)}u&&r.set(null,u)}f=t.instance,v=f.getAttribute("data-precedence"),d=r.get(v)||u,d===u&&r.set(null,f),r.set(v,f),this.count++,u=Gl.bind(this),f.addEventListener("load",u),f.addEventListener("error",u),d?d.parentNode.insertBefore(f,d.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(f,e.firstChild)),t.state.loading|=4}}var Ir={$$typeof:Q,Provider:null,Consumer:null,_currentValue:te,_currentValue2:te,_threadCount:0};function xh(e,t,r,u,f,d,v,E,w){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=ia(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ia(0),this.hiddenUpdates=ia(null),this.identifierPrefix=u,this.onUncaughtError=f,this.onCaughtError=d,this.onRecoverableError=v,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=w,this.incompleteTransitions=new Map}function ed(e,t,r,u,f,d,v,E,w,j,K,ee){return e=new xh(e,t,r,v,w,j,K,ee,E),t=1,d===!0&&(t|=24),d=wt(3,null,null,t),e.current=d,d.stateNode=e,t=Ba(),t.refCount++,e.pooledCache=t,t.refCount++,d.memoizedState={element:u,isDehydrated:r,cache:t},Ya(d),e}function td(e){return e?(e=wi,e):wi}function nd(e,t,r,u,f,d){f=td(f),u.context===null?u.context=f:u.pendingContext=f,u=Mn(t),u.payload={element:r},d=d===void 0?null:d,d!==null&&(u.callback=d),r=Ln(e,u,t),r!==null&&(Ct(r,e,t),xr(r,e,t))}function id(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function so(e,t){id(e,t),(e=e.alternate)&&id(e,t)}function rd(e){if(e.tag===13||e.tag===31){var t=ni(e,67108864);t!==null&&Ct(t,e,67108864),so(e,67108864)}}function ld(e){if(e.tag===13||e.tag===31){var t=Mt();t=ra(t);var r=ni(e,t);r!==null&&Ct(r,e,t),so(e,t)}}var Kl=!0;function vh(e,t,r,u){var f=Z.T;Z.T=null;var d=ae.p;try{ae.p=2,co(e,t,r,u)}finally{ae.p=d,Z.T=f}}function bh(e,t,r,u){var f=Z.T;Z.T=null;var d=ae.p;try{ae.p=8,co(e,t,r,u)}finally{ae.p=d,Z.T=f}}function co(e,t,r,u){if(Kl){var f=fo(u);if(f===null)Ku(e,t,u,$l,r),ud(e,u);else if(kh(f,e,t,r,u))u.stopPropagation();else if(ud(e,u),t&4&&-1<Sh.indexOf(e)){for(;f!==null;){var d=yi(f);if(d!==null)switch(d.tag){case 3:if(d=d.stateNode,d.current.memoizedState.isDehydrated){var v=$n(d.pendingLanes);if(v!==0){var E=d;for(E.pendingLanes|=2,E.entangledLanes|=2;v;){var w=1<<31-V(v);E.entanglements[1]|=w,v&=~w}rn(d),(Ie&6)===0&&(Ml=nt()+500,Lr(0))}}break;case 31:case 13:E=ni(d,2),E!==null&&Ct(E,d,2),Nl(),so(d,2)}if(d=fo(u),d===null&&Ku(e,t,u,$l,r),d===f)break;f=d}f!==null&&u.stopPropagation()}else Ku(e,t,u,null,r)}}function fo(e){return e=pa(e),po(e)}var $l=null;function po(e){if($l=null,e=gi(e),e!==null){var t=s(e);if(t===null)e=null;else{var r=t.tag;if(r===13){if(e=c(t),e!==null)return e;e=null}else if(r===31){if(e=h(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return $l=e,null}function ad(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(g()){case C:return 2;case z:return 8;case $:case H:return 32;case S:return 268435456;default:return 32}default:return 32}}var ho=!1,Yn=null,Pn=null,Gn=null,Br=new Map,Hr=new Map,Qn=[],Sh="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 ud(e,t){switch(e){case"focusin":case"focusout":Yn=null;break;case"dragenter":case"dragleave":Pn=null;break;case"mouseover":case"mouseout":Gn=null;break;case"pointerover":case"pointerout":Br.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Hr.delete(t.pointerId)}}function Fr(e,t,r,u,f,d){return e===null||e.nativeEvent!==d?(e={blockedOn:t,domEventName:r,eventSystemFlags:u,nativeEvent:d,targetContainers:[f]},t!==null&&(t=yi(t),t!==null&&rd(t)),e):(e.eventSystemFlags|=u,t=e.targetContainers,f!==null&&t.indexOf(f)===-1&&t.push(f),e)}function kh(e,t,r,u,f){switch(t){case"focusin":return Yn=Fr(Yn,e,t,r,u,f),!0;case"dragenter":return Pn=Fr(Pn,e,t,r,u,f),!0;case"mouseover":return Gn=Fr(Gn,e,t,r,u,f),!0;case"pointerover":var d=f.pointerId;return Br.set(d,Fr(Br.get(d)||null,e,t,r,u,f)),!0;case"gotpointercapture":return d=f.pointerId,Hr.set(d,Fr(Hr.get(d)||null,e,t,r,u,f)),!0}return!1}function od(e){var t=gi(e.target);if(t!==null){var r=s(t);if(r!==null){if(t=r.tag,t===13){if(t=c(r),t!==null){e.blockedOn=t,So(e.priority,function(){ld(r)});return}}else if(t===31){if(t=h(r),t!==null){e.blockedOn=t,So(e.priority,function(){ld(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Jl(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=fo(e.nativeEvent);if(r===null){r=e.nativeEvent;var u=new r.constructor(r.type,r);da=u,r.target.dispatchEvent(u),da=null}else return t=yi(r),t!==null&&rd(t),e.blockedOn=r,!1;t.shift()}return!0}function sd(e,t,r){Jl(e)&&r.delete(t)}function Eh(){ho=!1,Yn!==null&&Jl(Yn)&&(Yn=null),Pn!==null&&Jl(Pn)&&(Pn=null),Gn!==null&&Jl(Gn)&&(Gn=null),Br.forEach(sd),Hr.forEach(sd)}function Wl(e,t){e.blockedOn===t&&(e.blockedOn=null,ho||(ho=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,Eh)))}var ea=null;function cd(e){ea!==e&&(ea=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){ea===e&&(ea=null);for(var t=0;t<e.length;t+=3){var r=e[t],u=e[t+1],f=e[t+2];if(typeof u!="function"){if(po(u||r)===null)continue;break}var d=yi(r);d!==null&&(e.splice(t,3),t-=3,fu(d,{pending:!0,data:f,method:r.method,action:u},u,f))}}))}function Ji(e){function t(w){return Wl(w,e)}Yn!==null&&Wl(Yn,e),Pn!==null&&Wl(Pn,e),Gn!==null&&Wl(Gn,e),Br.forEach(t),Hr.forEach(t);for(var r=0;r<Qn.length;r++){var u=Qn[r];u.blockedOn===e&&(u.blockedOn=null)}for(;0<Qn.length&&(r=Qn[0],r.blockedOn===null);)od(r),r.blockedOn===null&&Qn.shift();if(r=(e.ownerDocument||e).$$reactFormReplay,r!=null)for(u=0;u<r.length;u+=3){var f=r[u],d=r[u+1],v=f[vt]||null;if(typeof d=="function")v||cd(r);else if(v){var E=null;if(d&&d.hasAttribute("formAction")){if(f=d,v=d[vt]||null)E=v.formAction;else if(po(f)!==null)continue}else E=v.action;typeof E=="function"?r[u+1]=E:(r.splice(u,3),u-=3),cd(r)}}}function fd(){function e(d){d.canIntercept&&d.info==="react-transition"&&d.intercept({handler:function(){return new Promise(function(v){return f=v})},focusReset:"manual",scroll:"manual"})}function t(){f!==null&&(f(),f=null),u||setTimeout(r,20)}function r(){if(!u&&!navigation.transition){var d=navigation.currentEntry;d&&d.url!=null&&navigation.navigate(d.url,{state:d.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var u=!1,f=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(r,100),function(){u=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),f!==null&&(f(),f=null)}}}function mo(e){this._internalRoot=e}ta.prototype.render=mo.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(a(409));var r=t.current,u=Mt();nd(r,u,e,t,null,null)},ta.prototype.unmount=mo.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;nd(e.current,2,null,e,null,null),Nl(),t[mi]=null}};function ta(e){this._internalRoot=e}ta.prototype.unstable_scheduleHydration=function(e){if(e){var t=bo();e={blockedOn:null,target:e,priority:t};for(var r=0;r<Qn.length&&t!==0&&t<Qn[r].priority;r++);Qn.splice(r,0,e),r===0&&od(e)}};var dd=i.version;if(dd!=="19.2.4")throw Error(a(527,dd,"19.2.4"));ae.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(a(188)):(e=Object.keys(e).join(","),Error(a(268,e)));return e=p(t),e=e!==null?y(e):null,e=e===null?null:e.stateNode,e};var _h={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:Z,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var na=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!na.isDisabled&&na.supportsFiber)try{Y=na.inject(_h),J=na}catch{}}return reactDomClient_production.createRoot=function(e,t){if(!o(e))throw Error(a(299));var r=!1,u="",f=xc,d=vc,v=bc;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(u=t.identifierPrefix),t.onUncaughtError!==void 0&&(f=t.onUncaughtError),t.onCaughtError!==void 0&&(d=t.onCaughtError),t.onRecoverableError!==void 0&&(v=t.onRecoverableError)),t=ed(e,1,!1,null,null,r,u,null,f,d,v,fd),e[mi]=t.current,Xu(e),new mo(t)},reactDomClient_production.hydrateRoot=function(e,t,r){if(!o(e))throw Error(a(299));var u=!1,f="",d=xc,v=vc,E=bc,w=null;return r!=null&&(r.unstable_strictMode===!0&&(u=!0),r.identifierPrefix!==void 0&&(f=r.identifierPrefix),r.onUncaughtError!==void 0&&(d=r.onUncaughtError),r.onCaughtError!==void 0&&(v=r.onCaughtError),r.onRecoverableError!==void 0&&(E=r.onRecoverableError),r.formState!==void 0&&(w=r.formState)),t=ed(e,1,!0,t,r??null,u,f,w,d,v,E,fd),t.context=td(null),r=t.current,u=Mt(),u=ra(u),f=Mn(u),f.callback=null,Ln(r,f,u),r=u,t.current.lanes=r,er(t,r),rn(t),e[mi]=t.current,Xu(e),new ta(t)},reactDomClient_production.version="19.2.4",reactDomClient_production}var hasRequiredClient;function requireClient(){if(hasRequiredClient)return client.exports;hasRequiredClient=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(i){console.error(i)}}return n(),client.exports=requireReactDomClient_production(),client.exports}var clientExports=requireClient();class ClappTransport{constructor(i){Yt(this,"serverUrl");Yt(this,"wsUrl");Yt(this,"context");Yt(this,"ws",null);Yt(this,"connected",!1);Yt(this,"reconnectTimer",null);Yt(this,"reconnectDelay",1e3);Yt(this,"stateListeners",new Set);Yt(this,"appsListeners",new Set);Yt(this,"viewListeners",new Set);Yt(this,"connectionListeners",new Set);this.serverUrl=i.serverUrl.replace(/\/$/,""),this.context=i.context;const l=new URL(this.serverUrl);l.protocol=l.protocol==="https:"?"wss:":"ws:",l.pathname="/ws",this.wsUrl=l.toString()}connect(){this.ws||this.createWebSocket()}disconnect(){this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null),this.ws&&(this.ws.close(),this.ws=null),this.setConnected(!1)}subscribe(i){this.wsSend({type:"subscribe",clappIds:i})}onState(i){return this.stateListeners.add(i),()=>this.stateListeners.delete(i)}onApps(i){return this.appsListeners.add(i),()=>this.appsListeners.delete(i)}onView(i){return this.viewListeners.add(i),()=>this.viewListeners.delete(i)}onConnection(i){return this.connectionListeners.add(i),()=>this.connectionListeners.delete(i)}isConnected(){return this.connected}async sendIntent(i,l,a={}){var c;if(this.connected&&((c=this.ws)==null?void 0:c.readyState)===WebSocket.OPEN){this.wsSend({type:"intent",clappId:i,intent:l,payload:a});return}const o={id:crypto.randomUUID(),agentId:"local",clappId:i,intent:l,payload:a,timestamp:new Date().toISOString()},s=await fetch(`${this.serverUrl}/api/intent`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o)});if(!s.ok)throw new Error(`Failed to send intent: ${s.status}`)}async fetchApps(){const i=await fetch(`${this.serverUrl}/api/apps`);if(!i.ok)throw new Error(`Failed to fetch apps: ${i.status}`);return i.json()}async fetchState(i){const l=await fetch(`${this.serverUrl}/api/state/${i}`);if(l.status===404)return null;if(!l.ok)throw new Error(`Failed to fetch state: ${l.status}`);return l.json()}async fetchView(i){const l=await fetch(`${this.serverUrl}/api/views/${i}`);if(l.status===404)return null;if(!l.ok)throw new Error(`Failed to fetch view: ${l.status}`);return l.text()}createWebSocket(){try{this.ws=new WebSocket(this.wsUrl)}catch{this.scheduleReconnect();return}this.ws.onopen=()=>{this.reconnectDelay=1e3,this.setConnected(!0),this.context&&this.wsSend({type:"hello",context:this.context})},this.ws.onmessage=i=>{try{const l=JSON.parse(String(i.data));this.handleMessage(l)}catch{}},this.ws.onclose=()=>{this.ws=null,this.setConnected(!1),this.scheduleReconnect()},this.ws.onerror=()=>{}}handleMessage(i){switch(i.type){case"state":{const l=i.clappId,a=i.state;for(const o of this.stateListeners)o(l,a);break}case"apps":{const l=i.apps;for(const a of this.appsListeners)a(l);break}case"view":{const l=i.viewId,a=i.content;for(const o of this.viewListeners)o(l,a);break}}}wsSend(i){var l;((l=this.ws)==null?void 0:l.readyState)===WebSocket.OPEN&&this.ws.send(JSON.stringify(i))}setConnected(i){if(this.connected!==i){this.connected=i;for(const l of this.connectionListeners)l(i)}}scheduleReconnect(){this.reconnectTimer||(this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.createWebSocket()},this.reconnectDelay),this.reconnectDelay=Math.min(this.reconnectDelay*1.5,1e4))}}function HomeScreen({apps:n,transport:i,onOpenApp:l}){const[a,o]=reactExports.useState(null),[s,c]=reactExports.useState(!1);reactExports.useEffect(()=>(i.fetchState("_status").then(p=>{p!=null&&p.state&&o(p.state)}).catch(()=>{}),i.onState((p,y)=>{p==="_status"&&y.state&&o(y.state)})),[i]);const h=(a==null?void 0:a.setupRequired)&&!s;return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[h&&jsxRuntimeExports.jsx(SetupWarningBanner,{message:a.message,onDismiss:()=>c(!0)}),jsxRuntimeExports.jsx(DefaultHomeGrid,{apps:n,onOpenApp:l})]})}function SetupWarningBanner({message:n,onDismiss:i}){return jsxRuntimeExports.jsxs("div",{style:{margin:"0.75rem",padding:"0.75rem 1rem",background:"rgba(234, 179, 8, 0.12)",border:"1px solid rgba(234, 179, 8, 0.3)",borderRadius:8,fontSize:"0.8125rem",lineHeight:1.5,color:"var(--fg)",display:"flex",gap:"0.75rem",alignItems:"flex-start"},children:[jsxRuntimeExports.jsx("span",{style:{flexShrink:0,fontSize:"1rem"},children:"⚠️"}),jsxRuntimeExports.jsx("span",{style:{flex:1,whiteSpace:"pre-line"},children:n}),jsxRuntimeExports.jsx("button",{onClick:i,style:{background:"none",border:"none",cursor:"pointer",color:"var(--muted)",fontSize:"1rem",padding:0,lineHeight:1,flexShrink:0},"aria-label":"Dismiss",children:"×"})]})}function DefaultHomeGrid({apps:n,onOpenApp:i}){return n.length===0?jsxRuntimeExports.jsx("div",{style:{flex:1,display:"flex",alignItems:"center",justifyContent:"center"},children:jsxRuntimeExports.jsx("p",{style:{color:"var(--muted)",fontSize:"0.875rem"},children:"No apps registered yet."})}):jsxRuntimeExports.jsx("div",{style:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",padding:"2rem 1.5rem"},children:jsxRuntimeExports.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(4, 76px)",gap:"1.5rem",justifyContent:"center"},children:n.map(l=>jsxRuntimeExports.jsxs("button",{onClick:()=>i(l.id),style:{display:"flex",flexDirection:"column",alignItems:"center",gap:"0.375rem",background:"none",border:"none",cursor:"pointer",color:"var(--fg)",padding:0,font:"inherit"},children:[jsxRuntimeExports.jsx("div",{style:{width:60,height:60,borderRadius:14,background:"linear-gradient(135deg, var(--card-bg) 0%, var(--hover-bg, var(--card-bg)) 100%)",border:"1px solid var(--border)",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"1.75rem"},children:l.emoji}),jsxRuntimeExports.jsx("span",{style:{fontSize:"0.6875rem",textAlign:"center",lineHeight:1.2,maxWidth:76,overflow:"hidden",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical"},children:l.name})]},l.id))})})}const createStoreImpl=n=>{let i;const l=new Set,a=(p,y)=>{const x=typeof p=="function"?p(i):p;if(!Object.is(x,i)){const b=i;i=y??(typeof x!="object"||x===null)?x:Object.assign({},i,x),l.forEach(k=>k(i,b))}},o=()=>i,h={setState:a,getState:o,getInitialState:()=>m,subscribe:p=>(l.add(p),()=>l.delete(p))},m=i=n(a,o,h);return h},createStore=(n=>n?createStoreImpl(n):createStoreImpl),identity=n=>n;function useStore(n,i=identity){const l=React.useSyncExternalStore(n.subscribe,React.useCallback(()=>i(n.getState()),[n,i]),React.useCallback(()=>i(n.getInitialState()),[n,i]));return React.useDebugValue(l),l}function createClappStore(){return createStore(n=>({state:{},version:-1,loading:!0,connected:!1,applyState:i=>n({state:i.state,version:i.version,loading:!1}),setConnected:i=>n({connected:i})}))}const ClappContext=reactExports.createContext(null);function ClappProvider({serverUrl:n,clappId:i,children:l,transport:a}){const o=reactExports.useRef(void 0),s=reactExports.useRef(void 0);return o.current||(o.current=createClappStore()),s.current||(s.current=a??new ClappTransport({serverUrl:n})),reactExports.useEffect(()=>{const c=o.current,h=s.current,m=h.onState((y,x)=>{y===i&&c.getState().applyState(x)}),p=h.onConnection(y=>{c.getState().setConnected(y)});return h.connect(),h.subscribe([i]),h.fetchState(i).then(y=>{y&&c.getState().applyState(y)}).catch(()=>{}),()=>{m(),p(),a||h.disconnect()}},[n,i,a]),jsxRuntimeExports.jsx(ClappContext.Provider,{value:{store:o.current,transport:s.current,clappId:i},children:l})}function useClappContext(){const n=reactExports.useContext(ClappContext);if(!n)throw new Error("useClappContext must be used within ClappProvider");return n}function useClappState(n){const{store:i}=useClappContext();return useStore(i,l=>{const a=n.split(".");let o=l.state;for(const s of a){if(o==null||typeof o!="object")return;o=o[s]}return o})}function useClappLoading(){const{store:n}=useClappContext();return useStore(n,i=>i.loading)}function useIntent(){const{transport:n,clappId:i}=useClappContext();return{emit:(l,a={})=>n.sendIntent(i,l,a)}}function Column({gap:n=0,width:i,children:l}){const a={display:"flex",flexDirection:"column",gap:n?`${n*.25}rem`:void 0,flex:i==="sidebar"?"0 0 280px":i==="main"?"1 1 0%":void 0,minWidth:0};return jsxRuntimeExports.jsx("div",{style:a,children:l})}const justifyMap={start:"flex-start",end:"flex-end",center:"center",between:"space-between",around:"space-around"},alignMap={start:"flex-start",end:"flex-end",center:"center",stretch:"stretch"};function Row({gap:n=0,justify:i,align:l,children:a}){const o={display:"flex",flexDirection:"row",gap:n?`${n*.25}rem`:void 0,justifyContent:i?justifyMap[i]??i:void 0,alignItems:l?alignMap[l]??l:void 0};return jsxRuntimeExports.jsx("div",{style:o,children:a})}function Heading({level:n=2,children:i}){const l=`h${Math.min(Math.max(n,1),6)}`;return reactExports.createElement(l,{className:"clapp-heading"},i)}function IntentButton({intent:n,variant:i="default",size:l="md",children:a}){const{emit:o}=useIntent();return jsxRuntimeExports.jsx("button",{className:`clapp-btn clapp-btn-${i} clapp-btn-${l}`,onClick:()=>o(n),children:a})}const icons={"refresh-cw":"↻","file-text":"📄",file:"📄",folder:"📁",chevron:"›"};function Icon({name:n}){return jsxRuntimeExports.jsx("span",{className:"clapp-icon",children:icons[n]??"•"})}function List({data:n,onItemClick:i,active:l}){const a=useClappState(n)??[],o=l?useClappState(l):null,{emit:s}=useIntent();return jsxRuntimeExports.jsx("ul",{className:"clapp-list",children:a.map((c,h)=>{const m=typeof c=="object"&&c!==null,p=m?c:null,y=String(p?p.text??JSON.stringify(c):c),x=p!=null&&p.role?String(p.role):void 0,b=p!=null&&p.id?String(p.id):`${h}`,k=x?` clapp-list-item-${x}`:"";return jsxRuntimeExports.jsxs("li",{className:`clapp-list-item${c===o?" active":""}${k}`,onClick:i?()=>s(i,m?c:{value:c}):void 0,role:i?"button":void 0,children:[!m&&jsxRuntimeExports.jsx("span",{className:"clapp-icon",children:"📄"}),y]},b)})})}function ListItem({children:n}){return jsxRuntimeExports.jsx("li",{className:"clapp-list-item",children:n})}function Conditional({when:n,children:i}){const l=n.startsWith("!"),a=l?n.slice(1):n,o=useClappState(a);return(l?!o:!!o)?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:i}):null}function Skeleton({lines:n=3}){return jsxRuntimeExports.jsx("div",{className:"clapp-skeleton",children:Array.from({length:n},(i,l)=>jsxRuntimeExports.jsx("div",{className:"clapp-skeleton-line"},l))})}function ok$1(){}function unreachable(){}function stringify$2(n,i){const l={};return(n[n.length-1]===""?[...n,""]:n).join((l.padRight?" ":"")+","+(l.padLeft===!1?"":" ")).trim()}const nameRe=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,nameReJsx=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,emptyOptions$3={};function name(n,i){return(emptyOptions$3.jsx?nameReJsx:nameRe).test(n)}const re=/[ \t\n\f\r]/g;function whitespace(n){return typeof n=="object"?n.type==="text"?empty$1(n.value):!1:empty$1(n)}function empty$1(n){return n.replace(re,"")===""}class Schema{constructor(i,l,a){this.normal=l,this.property=i,a&&(this.space=a)}}Schema.prototype.normal={};Schema.prototype.property={};Schema.prototype.space=void 0;function merge$1(n,i){const l={},a={};for(const o of n)Object.assign(l,o.property),Object.assign(a,o.normal);return new Schema(l,a,i)}function normalize$1(n){return n.toLowerCase()}class Info{constructor(i,l){this.attribute=l,this.property=i}}Info.prototype.attribute="";Info.prototype.booleanish=!1;Info.prototype.boolean=!1;Info.prototype.commaOrSpaceSeparated=!1;Info.prototype.commaSeparated=!1;Info.prototype.defined=!1;Info.prototype.mustUseProperty=!1;Info.prototype.number=!1;Info.prototype.overloadedBoolean=!1;Info.prototype.property="";Info.prototype.spaceSeparated=!1;Info.prototype.space=void 0;let powers=0;const boolean=increment(),booleanish=increment(),overloadedBoolean=increment(),number=increment(),spaceSeparated=increment(),commaSeparated=increment(),commaOrSpaceSeparated=increment();function increment(){return 2**++powers}const types=Object.freeze(Object.defineProperty({__proto__:null,boolean,booleanish,commaOrSpaceSeparated,commaSeparated,number,overloadedBoolean,spaceSeparated},Symbol.toStringTag,{value:"Module"})),checks=Object.keys(types);class DefinedInfo extends Info{constructor(i,l,a,o){let s=-1;if(super(i,l),mark$1(this,"space",o),typeof a=="number")for(;++s<checks.length;){const c=checks[s];mark$1(this,checks[s],(a&types[c])===types[c])}}}DefinedInfo.prototype.defined=!0;function mark$1(n,i,l){l&&(n[i]=l)}function create(n){const i={},l={};for(const[a,o]of Object.entries(n.properties)){const s=new DefinedInfo(a,n.transform(n.attributes||{},a),o,n.space);n.mustUseProperty&&n.mustUseProperty.includes(a)&&(s.mustUseProperty=!0),i[a]=s,l[normalize$1(a)]=a,l[normalize$1(s.attribute)]=a}return new Schema(i,l,n.space)}const aria=create({properties:{ariaActiveDescendant:null,ariaAtomic:booleanish,ariaAutoComplete:null,ariaBusy:booleanish,ariaChecked:booleanish,ariaColCount:number,ariaColIndex:number,ariaColSpan:number,ariaControls:spaceSeparated,ariaCurrent:null,ariaDescribedBy:spaceSeparated,ariaDetails:null,ariaDisabled:booleanish,ariaDropEffect:spaceSeparated,ariaErrorMessage:null,ariaExpanded:booleanish,ariaFlowTo:spaceSeparated,ariaGrabbed:booleanish,ariaHasPopup:null,ariaHidden:booleanish,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:spaceSeparated,ariaLevel:number,ariaLive:null,ariaModal:booleanish,ariaMultiLine:booleanish,ariaMultiSelectable:booleanish,ariaOrientation:null,ariaOwns:spaceSeparated,ariaPlaceholder:null,ariaPosInSet:number,ariaPressed:booleanish,ariaReadOnly:booleanish,ariaRelevant:null,ariaRequired:booleanish,ariaRoleDescription:spaceSeparated,ariaRowCount:number,ariaRowIndex:number,ariaRowSpan:number,ariaSelected:booleanish,ariaSetSize:number,ariaSort:null,ariaValueMax:number,ariaValueMin:number,ariaValueNow:number,ariaValueText:null,role:null},transform(n,i){return i==="role"?i:"aria-"+i.slice(4).toLowerCase()}});function caseSensitiveTransform(n,i){return i in n?n[i]:i}function caseInsensitiveTransform(n,i){return caseSensitiveTransform(n,i.toLowerCase())}const html$3=create({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:commaSeparated,acceptCharset:spaceSeparated,accessKey:spaceSeparated,action:null,allow:null,allowFullScreen:boolean,allowPaymentRequest:boolean,allowUserMedia:boolean,alt:null,as:null,async:boolean,autoCapitalize:null,autoComplete:spaceSeparated,autoFocus:boolean,autoPlay:boolean,blocking:spaceSeparated,capture:null,charSet:null,checked:boolean,cite:null,className:spaceSeparated,cols:number,colSpan:null,content:null,contentEditable:booleanish,controls:boolean,controlsList:spaceSeparated,coords:number|commaSeparated,crossOrigin:null,data:null,dateTime:null,decoding:null,default:boolean,defer:boolean,dir:null,dirName:null,disabled:boolean,download:overloadedBoolean,draggable:booleanish,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:boolean,formTarget:null,headers:spaceSeparated,height:number,hidden:overloadedBoolean,high:number,href:null,hrefLang:null,htmlFor:spaceSeparated,httpEquiv:spaceSeparated,id:null,imageSizes:null,imageSrcSet:null,inert:boolean,inputMode:null,integrity:null,is:null,isMap:boolean,itemId:null,itemProp:spaceSeparated,itemRef:spaceSeparated,itemScope:boolean,itemType:spaceSeparated,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:boolean,low:number,manifest:null,max:null,maxLength:number,media:null,method:null,min:null,minLength:number,multiple:boolean,muted:boolean,name:null,nonce:null,noModule:boolean,noValidate:boolean,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:boolean,optimum:number,pattern:null,ping:spaceSeparated,placeholder:null,playsInline:boolean,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:boolean,referrerPolicy:null,rel:spaceSeparated,required:boolean,reversed:boolean,rows:number,rowSpan:number,sandbox:spaceSeparated,scope:null,scoped:boolean,seamless:boolean,selected:boolean,shadowRootClonable:boolean,shadowRootDelegatesFocus:boolean,shadowRootMode:null,shape:null,size:number,sizes:null,slot:null,span:number,spellCheck:booleanish,src:null,srcDoc:null,srcLang:null,srcSet:null,start:number,step:null,style:null,tabIndex:number,target:null,title:null,translate:null,type:null,typeMustMatch:boolean,useMap:null,value:booleanish,width:number,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:spaceSeparated,axis:null,background:null,bgColor:null,border:number,borderColor:null,bottomMargin:number,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:boolean,declare:boolean,event:null,face:null,frame:null,frameBorder:null,hSpace:number,leftMargin:number,link:null,longDesc:null,lowSrc:null,marginHeight:number,marginWidth:number,noResize:boolean,noHref:boolean,noShade:boolean,noWrap:boolean,object:null,profile:null,prompt:null,rev:null,rightMargin:number,rules:null,scheme:null,scrolling:booleanish,standby:null,summary:null,text:null,topMargin:number,valueType:null,version:null,vAlign:null,vLink:null,vSpace:number,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:boolean,disableRemotePlayback:boolean,prefix:null,property:null,results:number,security:null,unselectable:null},space:"html",transform:caseInsensitiveTransform}),svg$1=create({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:commaOrSpaceSeparated,accentHeight:number,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:number,amplitude:number,arabicForm:null,ascent:number,attributeName:null,attributeType:null,azimuth:number,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:number,by:null,calcMode:null,capHeight:number,className:spaceSeparated,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:number,diffuseConstant:number,direction:null,display:null,dur:null,divisor:number,dominantBaseline:null,download:boolean,dx:null,dy:null,edgeMode:null,editable:null,elevation:number,enableBackground:null,end:null,event:null,exponent:number,externalResourcesRequired:null,fill:null,fillOpacity:number,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:commaSeparated,g2:commaSeparated,glyphName:commaSeparated,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:number,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:number,horizOriginX:number,horizOriginY:number,id:null,ideographic:number,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:number,k:number,k1:number,k2:number,k3:number,k4:number,kernelMatrix:commaOrSpaceSeparated,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:number,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:number,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:number,overlineThickness:number,paintOrder:null,panose1:null,path:null,pathLength:number,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:spaceSeparated,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:number,pointsAtY:number,pointsAtZ:number,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:commaOrSpaceSeparated,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:commaOrSpaceSeparated,rev:commaOrSpaceSeparated,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:commaOrSpaceSeparated,requiredFeatures:commaOrSpaceSeparated,requiredFonts:commaOrSpaceSeparated,requiredFormats:commaOrSpaceSeparated,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:number,specularExponent:number,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:number,strikethroughThickness:number,string:null,stroke:null,strokeDashArray:commaOrSpaceSeparated,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:number,strokeOpacity:number,strokeWidth:null,style:null,surfaceScale:number,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:commaOrSpaceSeparated,tabIndex:number,tableValues:null,target:null,targetX:number,targetY:number,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:commaOrSpaceSeparated,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:number,underlineThickness:number,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:number,values:null,vAlphabetic:number,vMathematical:number,vectorEffect:null,vHanging:number,vIdeographic:number,version:null,vertAdvY:number,vertOriginX:number,vertOriginY:number,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:number,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:caseSensitiveTransform}),xlink=create({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(n,i){return"xlink:"+i.slice(5).toLowerCase()}}),xmlns=create({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:caseInsensitiveTransform}),xml=create({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(n,i){return"xml:"+i.slice(3).toLowerCase()}}),hastToReact={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"},cap$1=/[A-Z]/g,dash=/-[a-z]/g,valid=/^data[-\w.:]+$/i;function find(n,i){const l=normalize$1(i);let a=i,o=Info;if(l in n.normal)return n.property[n.normal[l]];if(l.length>4&&l.slice(0,4)==="data"&&valid.test(i)){if(i.charAt(4)==="-"){const s=i.slice(5).replace(dash,camelcase);a="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=i.slice(4);if(!dash.test(s)){let c=s.replace(cap$1,kebab);c.charAt(0)!=="-"&&(c="-"+c),i="data"+c}}o=DefinedInfo}return new o(a,i)}function kebab(n){return"-"+n.toLowerCase()}function camelcase(n){return n.charAt(1).toUpperCase()}const html$2=merge$1([aria,html$3,xlink,xmlns,xml],"html"),svg=merge$1([aria,svg$1,xlink,xmlns,xml],"svg");function stringify$1(n){return n.join(" ").trim()}var cjs$2={},cjs$1,hasRequiredCjs$2;function requireCjs$2(){if(hasRequiredCjs$2)return cjs$1;hasRequiredCjs$2=1;var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,i=/\n/g,l=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,h=/^\s+|\s+$/g,m=`
|
|
50
|
-
`,p="/",y="*",x="",b="comment",k="declaration";function T(P,L){if(typeof P!="string")throw new TypeError("First argument must be a string");if(!P)return[];L=L||{};var ne=1,Q=1;function ge(oe){var ue=oe.match(i);ue&&(ne+=ue.length);var Z=oe.lastIndexOf(m);Q=~Z?oe.length-Z:Q+oe.length}function pe(){var oe={line:ne,column:Q};return function(ue){return ue.position=new B(oe),Ee(),ue}}function B(oe){this.start=oe,this.end={line:ne,column:Q},this.source=L.source}B.prototype.content=P;function ce(oe){var ue=new Error(L.source+":"+ne+":"+Q+": "+oe);if(ue.reason=oe,ue.filename=L.source,ue.line=ne,ue.column=Q,ue.source=P,!L.silent)throw ue}function be(oe){var ue=oe.exec(P);if(ue){var Z=ue[0];return ge(Z),P=P.slice(Z.length),ue}}function Ee(){be(l)}function I(oe){var ue;for(oe=oe||[];ue=he();)ue!==!1&&oe.push(ue);return oe}function he(){var oe=pe();if(!(p!=P.charAt(0)||y!=P.charAt(1))){for(var ue=2;x!=P.charAt(ue)&&(y!=P.charAt(ue)||p!=P.charAt(ue+1));)++ue;if(ue+=2,x===P.charAt(ue-1))return ce("End of comment missing");var Z=P.slice(2,ue-2);return Q+=2,ge(Z),P=P.slice(ue),Q+=2,oe({type:b,comment:Z})}}function de(){var oe=pe(),ue=be(a);if(ue){if(he(),!be(o))return ce("property missing ':'");var Z=be(s),ae=oe({type:k,property:q(ue[0].replace(n,x)),value:Z?q(Z[0].replace(n,x)):x});return be(c),ae}}function Ae(){var oe=[];I(oe);for(var ue;ue=de();)ue!==!1&&(oe.push(ue),I(oe));return oe}return Ee(),Ae()}function q(P){return P?P.replace(h,x):x}return cjs$1=T,cjs$1}var hasRequiredCjs$1;function requireCjs$1(){if(hasRequiredCjs$1)return cjs$2;hasRequiredCjs$1=1;var n=cjs$2&&cjs$2.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(cjs$2,"__esModule",{value:!0}),cjs$2.default=l;const i=n(requireCjs$2());function l(a,o){let s=null;if(!a||typeof a!="string")return s;const c=(0,i.default)(a),h=typeof o=="function";return c.forEach(m=>{if(m.type!=="declaration")return;const{property:p,value:y}=m;h?o(p,y,m):y&&(s=s||{},s[p]=y)}),s}return cjs$2}var utilities={},hasRequiredUtilities;function requireUtilities(){if(hasRequiredUtilities)return utilities;hasRequiredUtilities=1,Object.defineProperty(utilities,"__esModule",{value:!0}),utilities.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,i=/-([a-z])/g,l=/^[^-]+$/,a=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,s=function(p){return!p||l.test(p)||n.test(p)},c=function(p,y){return y.toUpperCase()},h=function(p,y){return"".concat(y,"-")},m=function(p,y){return y===void 0&&(y={}),s(p)?p:(p=p.toLowerCase(),y.reactCompat?p=p.replace(o,h):p=p.replace(a,h),p.replace(i,c))};return utilities.camelCase=m,utilities}var cjs,hasRequiredCjs;function requireCjs(){if(hasRequiredCjs)return cjs;hasRequiredCjs=1;var n=cjs&&cjs.__importDefault||function(o){return o&&o.__esModule?o:{default:o}},i=n(requireCjs$1()),l=requireUtilities();function a(o,s){var c={};return!o||typeof o!="string"||(0,i.default)(o,function(h,m){h&&m&&(c[(0,l.camelCase)(h,s)]=m)}),c}return a.default=a,cjs=a,cjs}var cjsExports=requireCjs();const styleToJs=getDefaultExportFromCjs(cjsExports),pointEnd=point$2("end"),pointStart=point$2("start");function point$2(n){return i;function i(l){const a=l&&l.position&&l.position[n]||{};if(typeof a.line=="number"&&a.line>0&&typeof a.column=="number"&&a.column>0)return{line:a.line,column:a.column,offset:typeof a.offset=="number"&&a.offset>-1?a.offset:void 0}}}function position$1(n){const i=pointStart(n),l=pointEnd(n);if(i&&l)return{start:i,end:l}}function stringifyPosition(n){return!n||typeof n!="object"?"":"position"in n||"type"in n?position(n.position):"start"in n||"end"in n?position(n):"line"in n||"column"in n?point$1(n):""}function point$1(n){return index(n&&n.line)+":"+index(n&&n.column)}function position(n){return point$1(n&&n.start)+"-"+point$1(n&&n.end)}function index(n){return n&&typeof n=="number"?n:1}class VFileMessage extends Error{constructor(i,l,a){super(),typeof l=="string"&&(a=l,l=void 0);let o="",s={},c=!1;if(l&&("line"in l&&"column"in l?s={place:l}:"start"in l&&"end"in l?s={place:l}:"type"in l?s={ancestors:[l],place:l.position}:s={...l}),typeof i=="string"?o=i:!s.cause&&i&&(c=!0,o=i.message,s.cause=i),!s.ruleId&&!s.source&&typeof a=="string"){const m=a.indexOf(":");m===-1?s.ruleId=a:(s.source=a.slice(0,m),s.ruleId=a.slice(m+1))}if(!s.place&&s.ancestors&&s.ancestors){const m=s.ancestors[s.ancestors.length-1];m&&(s.place=m.position)}const h=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=h?h.column:void 0,this.fatal=void 0,this.file="",this.message=o,this.line=h?h.line:void 0,this.name=stringifyPosition(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=c&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}VFileMessage.prototype.file="";VFileMessage.prototype.name="";VFileMessage.prototype.reason="";VFileMessage.prototype.message="";VFileMessage.prototype.stack="";VFileMessage.prototype.column=void 0;VFileMessage.prototype.line=void 0;VFileMessage.prototype.ancestors=void 0;VFileMessage.prototype.cause=void 0;VFileMessage.prototype.fatal=void 0;VFileMessage.prototype.place=void 0;VFileMessage.prototype.ruleId=void 0;VFileMessage.prototype.source=void 0;const own$3={}.hasOwnProperty,emptyMap=new Map,cap=/[A-Z]/g,tableElements=new Set(["table","tbody","thead","tfoot","tr"]),tableCellElement=new Set(["td","th"]),docs="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function toJsxRuntime(n,i){if(!i||i.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const l=i.filePath||void 0;let a;if(i.development){if(typeof i.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");a=developmentCreate(l,i.jsxDEV)}else{if(typeof i.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof i.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");a=productionCreate(l,i.jsx,i.jsxs)}const o={Fragment:i.Fragment,ancestors:[],components:i.components||{},create:a,elementAttributeNameCase:i.elementAttributeNameCase||"react",evaluater:i.createEvaluater?i.createEvaluater():void 0,filePath:l,ignoreInvalidStyle:i.ignoreInvalidStyle||!1,passKeys:i.passKeys!==!1,passNode:i.passNode||!1,schema:i.space==="svg"?svg:html$2,stylePropertyNameCase:i.stylePropertyNameCase||"dom",tableCellAlignToStyle:i.tableCellAlignToStyle!==!1},s=one$1(o,n,void 0);return s&&typeof s!="string"?s:o.create(n,o.Fragment,{children:s||void 0},void 0)}function one$1(n,i,l){if(i.type==="element")return element$1(n,i,l);if(i.type==="mdxFlowExpression"||i.type==="mdxTextExpression")return mdxExpression(n,i);if(i.type==="mdxJsxFlowElement"||i.type==="mdxJsxTextElement")return mdxJsxElement(n,i,l);if(i.type==="mdxjsEsm")return mdxEsm(n,i);if(i.type==="root")return root$2(n,i,l);if(i.type==="text")return text$5(n,i)}function element$1(n,i,l){const a=n.schema;let o=a;i.tagName.toLowerCase()==="svg"&&a.space==="html"&&(o=svg,n.schema=o),n.ancestors.push(i);const s=findComponentFromName(n,i.tagName,!1),c=createElementProps(n,i);let h=createChildren(n,i);return tableElements.has(i.tagName)&&(h=h.filter(function(m){return typeof m=="string"?!whitespace(m):!0})),addNode(n,c,s,i),addChildren(c,h),n.ancestors.pop(),n.schema=a,n.create(i,s,c,l)}function mdxExpression(n,i){if(i.data&&i.data.estree&&n.evaluater){const a=i.data.estree.body[0];return a.type,n.evaluater.evaluateExpression(a.expression)}crashEstree(n,i.position)}function mdxEsm(n,i){if(i.data&&i.data.estree&&n.evaluater)return n.evaluater.evaluateProgram(i.data.estree);crashEstree(n,i.position)}function mdxJsxElement(n,i,l){const a=n.schema;let o=a;i.name==="svg"&&a.space==="html"&&(o=svg,n.schema=o),n.ancestors.push(i);const s=i.name===null?n.Fragment:findComponentFromName(n,i.name,!0),c=createJsxElementProps(n,i),h=createChildren(n,i);return addNode(n,c,s,i),addChildren(c,h),n.ancestors.pop(),n.schema=a,n.create(i,s,c,l)}function root$2(n,i,l){const a={};return addChildren(a,createChildren(n,i)),n.create(i,n.Fragment,a,l)}function text$5(n,i){return i.value}function addNode(n,i,l,a){typeof l!="string"&&l!==n.Fragment&&n.passNode&&(i.node=a)}function addChildren(n,i){if(i.length>0){const l=i.length>1?i:i[0];l&&(n.children=l)}}function productionCreate(n,i,l){return a;function a(o,s,c,h){const p=Array.isArray(c.children)?l:i;return h?p(s,c,h):p(s,c)}}function developmentCreate(n,i){return l;function l(a,o,s,c){const h=Array.isArray(s.children),m=pointStart(a);return i(o,s,c,h,{columnNumber:m?m.column-1:void 0,fileName:n,lineNumber:m?m.line:void 0},void 0)}}function createElementProps(n,i){const l={};let a,o;for(o in i.properties)if(o!=="children"&&own$3.call(i.properties,o)){const s=createProperty(n,o,i.properties[o]);if(s){const[c,h]=s;n.tableCellAlignToStyle&&c==="align"&&typeof h=="string"&&tableCellElement.has(i.tagName)?a=h:l[c]=h}}if(a){const s=l.style||(l.style={});s[n.stylePropertyNameCase==="css"?"text-align":"textAlign"]=a}return l}function createJsxElementProps(n,i){const l={};for(const a of i.attributes)if(a.type==="mdxJsxExpressionAttribute")if(a.data&&a.data.estree&&n.evaluater){const s=a.data.estree.body[0];s.type;const c=s.expression;c.type;const h=c.properties[0];h.type,Object.assign(l,n.evaluater.evaluateExpression(h.argument))}else crashEstree(n,i.position);else{const o=a.name;let s;if(a.value&&typeof a.value=="object")if(a.value.data&&a.value.data.estree&&n.evaluater){const h=a.value.data.estree.body[0];h.type,s=n.evaluater.evaluateExpression(h.expression)}else crashEstree(n,i.position);else s=a.value===null?!0:a.value;l[o]=s}return l}function createChildren(n,i){const l=[];let a=-1;const o=n.passKeys?new Map:emptyMap;for(;++a<i.children.length;){const s=i.children[a];let c;if(n.passKeys){const m=s.type==="element"?s.tagName:s.type==="mdxJsxFlowElement"||s.type==="mdxJsxTextElement"?s.name:void 0;if(m){const p=o.get(m)||0;c=m+"-"+p,o.set(m,p+1)}}const h=one$1(n,s,c);h!==void 0&&l.push(h)}return l}function createProperty(n,i,l){const a=find(n.schema,i);if(!(l==null||typeof l=="number"&&Number.isNaN(l))){if(Array.isArray(l)&&(l=a.commaSeparated?stringify$2(l):stringify$1(l)),a.property==="style"){let o=typeof l=="object"?l:parseStyle(n,String(l));return n.stylePropertyNameCase==="css"&&(o=transformStylesToCssCasing(o)),["style",o]}return[n.elementAttributeNameCase==="react"&&a.space?hastToReact[a.property]||a.property:a.attribute,l]}}function parseStyle(n,i){try{return styleToJs(i,{reactCompat:!0})}catch(l){if(n.ignoreInvalidStyle)return{};const a=l,o=new VFileMessage("Cannot parse `style` attribute",{ancestors:n.ancestors,cause:a,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw o.file=n.filePath||void 0,o.url=docs+"#cannot-parse-style-attribute",o}}function findComponentFromName(n,i,l){let a;if(!l)a={type:"Literal",value:i};else if(i.includes(".")){const o=i.split(".");let s=-1,c;for(;++s<o.length;){const h=name(o[s])?{type:"Identifier",name:o[s]}:{type:"Literal",value:o[s]};c=c?{type:"MemberExpression",object:c,property:h,computed:!!(s&&h.type==="Literal"),optional:!1}:h}a=c}else a=name(i)&&!/^[a-z]/.test(i)?{type:"Identifier",name:i}:{type:"Literal",value:i};if(a.type==="Literal"){const o=a.value;return own$3.call(n.components,o)?n.components[o]:o}if(n.evaluater)return n.evaluater.evaluateExpression(a);crashEstree(n)}function crashEstree(n,i){const l=new VFileMessage("Cannot handle MDX estrees without `createEvaluater`",{ancestors:n.ancestors,place:i,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw l.file=n.filePath||void 0,l.url=docs+"#cannot-handle-mdx-estrees-without-createevaluater",l}function transformStylesToCssCasing(n){const i={};let l;for(l in n)own$3.call(n,l)&&(i[transformStyleToCssCasing(l)]=n[l]);return i}function transformStyleToCssCasing(n){let i=n.replace(cap,toDash);return i.slice(0,3)==="ms-"&&(i="-"+i),i}function toDash(n){return"-"+n.toLowerCase()}const urlAttributes={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"]},emptyOptions$2={};function toString$1(n,i){const l=emptyOptions$2,a=typeof l.includeImageAlt=="boolean"?l.includeImageAlt:!0,o=typeof l.includeHtml=="boolean"?l.includeHtml:!0;return one(n,a,o)}function one(n,i,l){if(node(n)){if("value"in n)return n.type==="html"&&!l?"":n.value;if(i&&"alt"in n&&n.alt)return n.alt;if("children"in n)return all(n.children,i,l)}return Array.isArray(n)?all(n,i,l):""}function all(n,i,l){const a=[];let o=-1;for(;++o<n.length;)a[o]=one(n[o],i,l);return a.join("")}function node(n){return!!(n&&typeof n=="object")}const element=document.createElement("i");function decodeNamedCharacterReference(n){const i="&"+n+";";element.innerHTML=i;const l=element.textContent;return l.charCodeAt(l.length-1)===59&&n!=="semi"||l===i?!1:l}function splice(n,i,l,a){const o=n.length;let s=0,c;if(i<0?i=-i>o?0:o+i:i=i>o?o:i,l=l>0?l:0,a.length<1e4)c=Array.from(a),c.unshift(i,l),n.splice(...c);else for(l&&n.splice(i,l);s<a.length;)c=a.slice(s,s+1e4),c.unshift(i,0),n.splice(...c),s+=1e4,i+=1e4}function push(n,i){return n.length>0?(splice(n,n.length,0,i),n):i}const hasOwnProperty={}.hasOwnProperty;function combineExtensions(n){const i={};let l=-1;for(;++l<n.length;)syntaxExtension(i,n[l]);return i}function syntaxExtension(n,i){let l;for(l in i){const o=(hasOwnProperty.call(n,l)?n[l]:void 0)||(n[l]={}),s=i[l];let c;if(s)for(c in s){hasOwnProperty.call(o,c)||(o[c]=[]);const h=s[c];constructs(o[c],Array.isArray(h)?h:h?[h]:[])}}}function constructs(n,i){let l=-1;const a=[];for(;++l<i.length;)(i[l].add==="after"?n:a).push(i[l]);splice(n,0,0,a)}function decodeNumericCharacterReference(n,i){const l=Number.parseInt(n,i);return l<9||l===11||l>13&&l<32||l>126&&l<160||l>55295&&l<57344||l>64975&&l<65008||(l&65535)===65535||(l&65535)===65534||l>1114111?"�":String.fromCodePoint(l)}function normalizeIdentifier(n){return n.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const asciiAlpha=regexCheck(/[A-Za-z]/),asciiAlphanumeric=regexCheck(/[\dA-Za-z]/),asciiAtext=regexCheck(/[#-'*+\--9=?A-Z^-~]/);function asciiControl(n){return n!==null&&(n<32||n===127)}const asciiDigit=regexCheck(/\d/),asciiHexDigit=regexCheck(/[\dA-Fa-f]/),asciiPunctuation=regexCheck(/[!-/:-@[-`{-~]/);function markdownLineEnding(n){return n!==null&&n<-2}function markdownLineEndingOrSpace(n){return n!==null&&(n<0||n===32)}function markdownSpace(n){return n===-2||n===-1||n===32}const unicodePunctuation=regexCheck(new RegExp("\\p{P}|\\p{S}","u")),unicodeWhitespace=regexCheck(/\s/);function regexCheck(n){return i;function i(l){return l!==null&&l>-1&&n.test(String.fromCharCode(l))}}function normalizeUri(n){const i=[];let l=-1,a=0,o=0;for(;++l<n.length;){const s=n.charCodeAt(l);let c="";if(s===37&&asciiAlphanumeric(n.charCodeAt(l+1))&&asciiAlphanumeric(n.charCodeAt(l+2)))o=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(c=String.fromCharCode(s));else if(s>55295&&s<57344){const h=n.charCodeAt(l+1);s<56320&&h>56319&&h<57344?(c=String.fromCharCode(s,h),o=1):c="�"}else c=String.fromCharCode(s);c&&(i.push(n.slice(a,l),encodeURIComponent(c)),a=l+o+1,c=""),o&&(l+=o,o=0)}return i.join("")+n.slice(a)}function factorySpace(n,i,l,a){const o=a?a-1:Number.POSITIVE_INFINITY;let s=0;return c;function c(m){return markdownSpace(m)?(n.enter(l),h(m)):i(m)}function h(m){return markdownSpace(m)&&s++<o?(n.consume(m),h):(n.exit(l),i(m))}}const content$1={tokenize:initializeContent};function initializeContent(n){const i=n.attempt(this.parser.constructs.contentInitial,a,o);let l;return i;function a(h){if(h===null){n.consume(h);return}return n.enter("lineEnding"),n.consume(h),n.exit("lineEnding"),factorySpace(n,i,"linePrefix")}function o(h){return n.enter("paragraph"),s(h)}function s(h){const m=n.enter("chunkText",{contentType:"text",previous:l});return l&&(l.next=m),l=m,c(h)}function c(h){if(h===null){n.exit("chunkText"),n.exit("paragraph"),n.consume(h);return}return markdownLineEnding(h)?(n.consume(h),n.exit("chunkText"),s):(n.consume(h),c)}}const document$2={tokenize:initializeDocument},containerConstruct={tokenize:tokenizeContainer};function initializeDocument(n){const i=this,l=[];let a=0,o,s,c;return h;function h(Q){if(a<l.length){const ge=l[a];return i.containerState=ge[1],n.attempt(ge[0].continuation,m,p)(Q)}return p(Q)}function m(Q){if(a++,i.containerState._closeFlow){i.containerState._closeFlow=void 0,o&&ne();const ge=i.events.length;let pe=ge,B;for(;pe--;)if(i.events[pe][0]==="exit"&&i.events[pe][1].type==="chunkFlow"){B=i.events[pe][1].end;break}L(a);let ce=ge;for(;ce<i.events.length;)i.events[ce][1].end={...B},ce++;return splice(i.events,pe+1,0,i.events.slice(ge)),i.events.length=ce,p(Q)}return h(Q)}function p(Q){if(a===l.length){if(!o)return b(Q);if(o.currentConstruct&&o.currentConstruct.concrete)return T(Q);i.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return i.containerState={},n.check(containerConstruct,y,x)(Q)}function y(Q){return o&&ne(),L(a),b(Q)}function x(Q){return i.parser.lazy[i.now().line]=a!==l.length,c=i.now().offset,T(Q)}function b(Q){return i.containerState={},n.attempt(containerConstruct,k,T)(Q)}function k(Q){return a++,l.push([i.currentConstruct,i.containerState]),b(Q)}function T(Q){if(Q===null){o&&ne(),L(0),n.consume(Q);return}return o=o||i.parser.flow(i.now()),n.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:s}),q(Q)}function q(Q){if(Q===null){P(n.exit("chunkFlow"),!0),L(0),n.consume(Q);return}return markdownLineEnding(Q)?(n.consume(Q),P(n.exit("chunkFlow")),a=0,i.interrupt=void 0,h):(n.consume(Q),q)}function P(Q,ge){const pe=i.sliceStream(Q);if(ge&&pe.push(null),Q.previous=s,s&&(s.next=Q),s=Q,o.defineSkip(Q.start),o.write(pe),i.parser.lazy[Q.start.line]){let B=o.events.length;for(;B--;)if(o.events[B][1].start.offset<c&&(!o.events[B][1].end||o.events[B][1].end.offset>c))return;const ce=i.events.length;let be=ce,Ee,I;for(;be--;)if(i.events[be][0]==="exit"&&i.events[be][1].type==="chunkFlow"){if(Ee){I=i.events[be][1].end;break}Ee=!0}for(L(a),B=ce;B<i.events.length;)i.events[B][1].end={...I},B++;splice(i.events,be+1,0,i.events.slice(ce)),i.events.length=B}}function L(Q){let ge=l.length;for(;ge-- >Q;){const pe=l[ge];i.containerState=pe[1],pe[0].exit.call(i,n)}l.length=Q}function ne(){o.write([null]),s=void 0,o=void 0,i.containerState._closeFlow=void 0}}function tokenizeContainer(n,i,l){return factorySpace(n,n.attempt(this.parser.constructs.document,i,l),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function classifyCharacter(n){if(n===null||markdownLineEndingOrSpace(n)||unicodeWhitespace(n))return 1;if(unicodePunctuation(n))return 2}function resolveAll(n,i,l){const a=[];let o=-1;for(;++o<n.length;){const s=n[o].resolveAll;s&&!a.includes(s)&&(i=s(i,l),a.push(s))}return i}const attention={name:"attention",resolveAll:resolveAllAttention,tokenize:tokenizeAttention};function resolveAllAttention(n,i){let l=-1,a,o,s,c,h,m,p,y;for(;++l<n.length;)if(n[l][0]==="enter"&&n[l][1].type==="attentionSequence"&&n[l][1]._close){for(a=l;a--;)if(n[a][0]==="exit"&&n[a][1].type==="attentionSequence"&&n[a][1]._open&&i.sliceSerialize(n[a][1]).charCodeAt(0)===i.sliceSerialize(n[l][1]).charCodeAt(0)){if((n[a][1]._close||n[l][1]._open)&&(n[l][1].end.offset-n[l][1].start.offset)%3&&!((n[a][1].end.offset-n[a][1].start.offset+n[l][1].end.offset-n[l][1].start.offset)%3))continue;m=n[a][1].end.offset-n[a][1].start.offset>1&&n[l][1].end.offset-n[l][1].start.offset>1?2:1;const x={...n[a][1].end},b={...n[l][1].start};movePoint(x,-m),movePoint(b,m),c={type:m>1?"strongSequence":"emphasisSequence",start:x,end:{...n[a][1].end}},h={type:m>1?"strongSequence":"emphasisSequence",start:{...n[l][1].start},end:b},s={type:m>1?"strongText":"emphasisText",start:{...n[a][1].end},end:{...n[l][1].start}},o={type:m>1?"strong":"emphasis",start:{...c.start},end:{...h.end}},n[a][1].end={...c.start},n[l][1].start={...h.end},p=[],n[a][1].end.offset-n[a][1].start.offset&&(p=push(p,[["enter",n[a][1],i],["exit",n[a][1],i]])),p=push(p,[["enter",o,i],["enter",c,i],["exit",c,i],["enter",s,i]]),p=push(p,resolveAll(i.parser.constructs.insideSpan.null,n.slice(a+1,l),i)),p=push(p,[["exit",s,i],["enter",h,i],["exit",h,i],["exit",o,i]]),n[l][1].end.offset-n[l][1].start.offset?(y=2,p=push(p,[["enter",n[l][1],i],["exit",n[l][1],i]])):y=0,splice(n,a-1,l-a+3,p),l=a+p.length-y-2;break}}for(l=-1;++l<n.length;)n[l][1].type==="attentionSequence"&&(n[l][1].type="data");return n}function tokenizeAttention(n,i){const l=this.parser.constructs.attentionMarkers.null,a=this.previous,o=classifyCharacter(a);let s;return c;function c(m){return s=m,n.enter("attentionSequence"),h(m)}function h(m){if(m===s)return n.consume(m),h;const p=n.exit("attentionSequence"),y=classifyCharacter(m),x=!y||y===2&&o||l.includes(m),b=!o||o===2&&y||l.includes(a);return p._open=!!(s===42?x:x&&(o||!b)),p._close=!!(s===42?b:b&&(y||!x)),i(m)}}function movePoint(n,i){n.column+=i,n.offset+=i,n._bufferIndex+=i}const autolink={name:"autolink",tokenize:tokenizeAutolink};function tokenizeAutolink(n,i,l){let a=0;return o;function o(k){return n.enter("autolink"),n.enter("autolinkMarker"),n.consume(k),n.exit("autolinkMarker"),n.enter("autolinkProtocol"),s}function s(k){return asciiAlpha(k)?(n.consume(k),c):k===64?l(k):p(k)}function c(k){return k===43||k===45||k===46||asciiAlphanumeric(k)?(a=1,h(k)):p(k)}function h(k){return k===58?(n.consume(k),a=0,m):(k===43||k===45||k===46||asciiAlphanumeric(k))&&a++<32?(n.consume(k),h):(a=0,p(k))}function m(k){return k===62?(n.exit("autolinkProtocol"),n.enter("autolinkMarker"),n.consume(k),n.exit("autolinkMarker"),n.exit("autolink"),i):k===null||k===32||k===60||asciiControl(k)?l(k):(n.consume(k),m)}function p(k){return k===64?(n.consume(k),y):asciiAtext(k)?(n.consume(k),p):l(k)}function y(k){return asciiAlphanumeric(k)?x(k):l(k)}function x(k){return k===46?(n.consume(k),a=0,y):k===62?(n.exit("autolinkProtocol").type="autolinkEmail",n.enter("autolinkMarker"),n.consume(k),n.exit("autolinkMarker"),n.exit("autolink"),i):b(k)}function b(k){if((k===45||asciiAlphanumeric(k))&&a++<63){const T=k===45?b:x;return n.consume(k),T}return l(k)}}const blankLine={partial:!0,tokenize:tokenizeBlankLine};function tokenizeBlankLine(n,i,l){return a;function a(s){return markdownSpace(s)?factorySpace(n,o,"linePrefix")(s):o(s)}function o(s){return s===null||markdownLineEnding(s)?i(s):l(s)}}const blockQuote={continuation:{tokenize:tokenizeBlockQuoteContinuation},exit:exit$1,name:"blockQuote",tokenize:tokenizeBlockQuoteStart};function tokenizeBlockQuoteStart(n,i,l){const a=this;return o;function o(c){if(c===62){const h=a.containerState;return h.open||(n.enter("blockQuote",{_container:!0}),h.open=!0),n.enter("blockQuotePrefix"),n.enter("blockQuoteMarker"),n.consume(c),n.exit("blockQuoteMarker"),s}return l(c)}function s(c){return markdownSpace(c)?(n.enter("blockQuotePrefixWhitespace"),n.consume(c),n.exit("blockQuotePrefixWhitespace"),n.exit("blockQuotePrefix"),i):(n.exit("blockQuotePrefix"),i(c))}}function tokenizeBlockQuoteContinuation(n,i,l){const a=this;return o;function o(c){return markdownSpace(c)?factorySpace(n,s,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c):s(c)}function s(c){return n.attempt(blockQuote,i,l)(c)}}function exit$1(n){n.exit("blockQuote")}const characterEscape={name:"characterEscape",tokenize:tokenizeCharacterEscape};function tokenizeCharacterEscape(n,i,l){return a;function a(s){return n.enter("characterEscape"),n.enter("escapeMarker"),n.consume(s),n.exit("escapeMarker"),o}function o(s){return asciiPunctuation(s)?(n.enter("characterEscapeValue"),n.consume(s),n.exit("characterEscapeValue"),n.exit("characterEscape"),i):l(s)}}const characterReference={name:"characterReference",tokenize:tokenizeCharacterReference};function tokenizeCharacterReference(n,i,l){const a=this;let o=0,s,c;return h;function h(x){return n.enter("characterReference"),n.enter("characterReferenceMarker"),n.consume(x),n.exit("characterReferenceMarker"),m}function m(x){return x===35?(n.enter("characterReferenceMarkerNumeric"),n.consume(x),n.exit("characterReferenceMarkerNumeric"),p):(n.enter("characterReferenceValue"),s=31,c=asciiAlphanumeric,y(x))}function p(x){return x===88||x===120?(n.enter("characterReferenceMarkerHexadecimal"),n.consume(x),n.exit("characterReferenceMarkerHexadecimal"),n.enter("characterReferenceValue"),s=6,c=asciiHexDigit,y):(n.enter("characterReferenceValue"),s=7,c=asciiDigit,y(x))}function y(x){if(x===59&&o){const b=n.exit("characterReferenceValue");return c===asciiAlphanumeric&&!decodeNamedCharacterReference(a.sliceSerialize(b))?l(x):(n.enter("characterReferenceMarker"),n.consume(x),n.exit("characterReferenceMarker"),n.exit("characterReference"),i)}return c(x)&&o++<s?(n.consume(x),y):l(x)}}const nonLazyContinuation={partial:!0,tokenize:tokenizeNonLazyContinuation},codeFenced={concrete:!0,name:"codeFenced",tokenize:tokenizeCodeFenced};function tokenizeCodeFenced(n,i,l){const a=this,o={partial:!0,tokenize:pe};let s=0,c=0,h;return m;function m(B){return p(B)}function p(B){const ce=a.events[a.events.length-1];return s=ce&&ce[1].type==="linePrefix"?ce[2].sliceSerialize(ce[1],!0).length:0,h=B,n.enter("codeFenced"),n.enter("codeFencedFence"),n.enter("codeFencedFenceSequence"),y(B)}function y(B){return B===h?(c++,n.consume(B),y):c<3?l(B):(n.exit("codeFencedFenceSequence"),markdownSpace(B)?factorySpace(n,x,"whitespace")(B):x(B))}function x(B){return B===null||markdownLineEnding(B)?(n.exit("codeFencedFence"),a.interrupt?i(B):n.check(nonLazyContinuation,q,ge)(B)):(n.enter("codeFencedFenceInfo"),n.enter("chunkString",{contentType:"string"}),b(B))}function b(B){return B===null||markdownLineEnding(B)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),x(B)):markdownSpace(B)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),factorySpace(n,k,"whitespace")(B)):B===96&&B===h?l(B):(n.consume(B),b)}function k(B){return B===null||markdownLineEnding(B)?x(B):(n.enter("codeFencedFenceMeta"),n.enter("chunkString",{contentType:"string"}),T(B))}function T(B){return B===null||markdownLineEnding(B)?(n.exit("chunkString"),n.exit("codeFencedFenceMeta"),x(B)):B===96&&B===h?l(B):(n.consume(B),T)}function q(B){return n.attempt(o,ge,P)(B)}function P(B){return n.enter("lineEnding"),n.consume(B),n.exit("lineEnding"),L}function L(B){return s>0&&markdownSpace(B)?factorySpace(n,ne,"linePrefix",s+1)(B):ne(B)}function ne(B){return B===null||markdownLineEnding(B)?n.check(nonLazyContinuation,q,ge)(B):(n.enter("codeFlowValue"),Q(B))}function Q(B){return B===null||markdownLineEnding(B)?(n.exit("codeFlowValue"),ne(B)):(n.consume(B),Q)}function ge(B){return n.exit("codeFenced"),i(B)}function pe(B,ce,be){let Ee=0;return I;function I(ue){return B.enter("lineEnding"),B.consume(ue),B.exit("lineEnding"),he}function he(ue){return B.enter("codeFencedFence"),markdownSpace(ue)?factorySpace(B,de,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ue):de(ue)}function de(ue){return ue===h?(B.enter("codeFencedFenceSequence"),Ae(ue)):be(ue)}function Ae(ue){return ue===h?(Ee++,B.consume(ue),Ae):Ee>=c?(B.exit("codeFencedFenceSequence"),markdownSpace(ue)?factorySpace(B,oe,"whitespace")(ue):oe(ue)):be(ue)}function oe(ue){return ue===null||markdownLineEnding(ue)?(B.exit("codeFencedFence"),ce(ue)):be(ue)}}}function tokenizeNonLazyContinuation(n,i,l){const a=this;return o;function o(c){return c===null?l(c):(n.enter("lineEnding"),n.consume(c),n.exit("lineEnding"),s)}function s(c){return a.parser.lazy[a.now().line]?l(c):i(c)}}const codeIndented={name:"codeIndented",tokenize:tokenizeCodeIndented},furtherStart={partial:!0,tokenize:tokenizeFurtherStart};function tokenizeCodeIndented(n,i,l){const a=this;return o;function o(p){return n.enter("codeIndented"),factorySpace(n,s,"linePrefix",5)(p)}function s(p){const y=a.events[a.events.length-1];return y&&y[1].type==="linePrefix"&&y[2].sliceSerialize(y[1],!0).length>=4?c(p):l(p)}function c(p){return p===null?m(p):markdownLineEnding(p)?n.attempt(furtherStart,c,m)(p):(n.enter("codeFlowValue"),h(p))}function h(p){return p===null||markdownLineEnding(p)?(n.exit("codeFlowValue"),c(p)):(n.consume(p),h)}function m(p){return n.exit("codeIndented"),i(p)}}function tokenizeFurtherStart(n,i,l){const a=this;return o;function o(c){return a.parser.lazy[a.now().line]?l(c):markdownLineEnding(c)?(n.enter("lineEnding"),n.consume(c),n.exit("lineEnding"),o):factorySpace(n,s,"linePrefix",5)(c)}function s(c){const h=a.events[a.events.length-1];return h&&h[1].type==="linePrefix"&&h[2].sliceSerialize(h[1],!0).length>=4?i(c):markdownLineEnding(c)?o(c):l(c)}}const codeText={name:"codeText",previous:previous$1,resolve:resolveCodeText,tokenize:tokenizeCodeText};function resolveCodeText(n){let i=n.length-4,l=3,a,o;if((n[l][1].type==="lineEnding"||n[l][1].type==="space")&&(n[i][1].type==="lineEnding"||n[i][1].type==="space")){for(a=l;++a<i;)if(n[a][1].type==="codeTextData"){n[l][1].type="codeTextPadding",n[i][1].type="codeTextPadding",l+=2,i-=2;break}}for(a=l-1,i++;++a<=i;)o===void 0?a!==i&&n[a][1].type!=="lineEnding"&&(o=a):(a===i||n[a][1].type==="lineEnding")&&(n[o][1].type="codeTextData",a!==o+2&&(n[o][1].end=n[a-1][1].end,n.splice(o+2,a-o-2),i-=a-o-2,a=o+2),o=void 0);return n}function previous$1(n){return n!==96||this.events[this.events.length-1][1].type==="characterEscape"}function tokenizeCodeText(n,i,l){let a=0,o,s;return c;function c(x){return n.enter("codeText"),n.enter("codeTextSequence"),h(x)}function h(x){return x===96?(n.consume(x),a++,h):(n.exit("codeTextSequence"),m(x))}function m(x){return x===null?l(x):x===32?(n.enter("space"),n.consume(x),n.exit("space"),m):x===96?(s=n.enter("codeTextSequence"),o=0,y(x)):markdownLineEnding(x)?(n.enter("lineEnding"),n.consume(x),n.exit("lineEnding"),m):(n.enter("codeTextData"),p(x))}function p(x){return x===null||x===32||x===96||markdownLineEnding(x)?(n.exit("codeTextData"),m(x)):(n.consume(x),p)}function y(x){return x===96?(n.consume(x),o++,y):o===a?(n.exit("codeTextSequence"),n.exit("codeText"),i(x)):(s.type="codeTextData",p(x))}}class SpliceBuffer{constructor(i){this.left=i?[...i]:[],this.right=[]}get(i){if(i<0||i>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+i+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return i<this.left.length?this.left[i]:this.right[this.right.length-i+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(i,l){const a=l??Number.POSITIVE_INFINITY;return a<this.left.length?this.left.slice(i,a):i>this.left.length?this.right.slice(this.right.length-a+this.left.length,this.right.length-i+this.left.length).reverse():this.left.slice(i).concat(this.right.slice(this.right.length-a+this.left.length).reverse())}splice(i,l,a){const o=l||0;this.setCursor(Math.trunc(i));const s=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return a&&chunkedPush(this.left,a),s.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(i){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(i)}pushMany(i){this.setCursor(Number.POSITIVE_INFINITY),chunkedPush(this.left,i)}unshift(i){this.setCursor(0),this.right.push(i)}unshiftMany(i){this.setCursor(0),chunkedPush(this.right,i.reverse())}setCursor(i){if(!(i===this.left.length||i>this.left.length&&this.right.length===0||i<0&&this.left.length===0))if(i<this.left.length){const l=this.left.splice(i,Number.POSITIVE_INFINITY);chunkedPush(this.right,l.reverse())}else{const l=this.right.splice(this.left.length+this.right.length-i,Number.POSITIVE_INFINITY);chunkedPush(this.left,l.reverse())}}}function chunkedPush(n,i){let l=0;if(i.length<1e4)n.push(...i);else for(;l<i.length;)n.push(...i.slice(l,l+1e4)),l+=1e4}function subtokenize(n){const i={};let l=-1,a,o,s,c,h,m,p;const y=new SpliceBuffer(n);for(;++l<y.length;){for(;l in i;)l=i[l];if(a=y.get(l),l&&a[1].type==="chunkFlow"&&y.get(l-1)[1].type==="listItemPrefix"&&(m=a[1]._tokenizer.events,s=0,s<m.length&&m[s][1].type==="lineEndingBlank"&&(s+=2),s<m.length&&m[s][1].type==="content"))for(;++s<m.length&&m[s][1].type!=="content";)m[s][1].type==="chunkText"&&(m[s][1]._isInFirstContentOfListItem=!0,s++);if(a[0]==="enter")a[1].contentType&&(Object.assign(i,subcontent(y,l)),l=i[l],p=!0);else if(a[1]._container){for(s=l,o=void 0;s--;)if(c=y.get(s),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank")c[0]==="enter"&&(o&&(y.get(o)[1].type="lineEndingBlank"),c[1].type="lineEnding",o=s);else if(!(c[1].type==="linePrefix"||c[1].type==="listItemIndent"))break;o&&(a[1].end={...y.get(o)[1].start},h=y.slice(o,l),h.unshift(a),y.splice(o,l-o+1,h))}}return splice(n,0,Number.POSITIVE_INFINITY,y.slice(0)),!p}function subcontent(n,i){const l=n.get(i)[1],a=n.get(i)[2];let o=i-1;const s=[];let c=l._tokenizer;c||(c=a.parser[l.contentType](l.start),l._contentTypeTextTrailing&&(c._contentTypeTextTrailing=!0));const h=c.events,m=[],p={};let y,x,b=-1,k=l,T=0,q=0;const P=[q];for(;k;){for(;n.get(++o)[1]!==k;);s.push(o),k._tokenizer||(y=a.sliceStream(k),k.next||y.push(null),x&&c.defineSkip(k.start),k._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=!0),c.write(y),k._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=void 0)),x=k,k=k.next}for(k=l;++b<h.length;)h[b][0]==="exit"&&h[b-1][0]==="enter"&&h[b][1].type===h[b-1][1].type&&h[b][1].start.line!==h[b][1].end.line&&(q=b+1,P.push(q),k._tokenizer=void 0,k.previous=void 0,k=k.next);for(c.events=[],k?(k._tokenizer=void 0,k.previous=void 0):P.pop(),b=P.length;b--;){const L=h.slice(P[b],P[b+1]),ne=s.pop();m.push([ne,ne+L.length-1]),n.splice(ne,2,L)}for(m.reverse(),b=-1;++b<m.length;)p[T+m[b][0]]=T+m[b][1],T+=m[b][1]-m[b][0]-1;return p}const content={resolve:resolveContent,tokenize:tokenizeContent},continuationConstruct={partial:!0,tokenize:tokenizeContinuation};function resolveContent(n){return subtokenize(n),n}function tokenizeContent(n,i){let l;return a;function a(h){return n.enter("content"),l=n.enter("chunkContent",{contentType:"content"}),o(h)}function o(h){return h===null?s(h):markdownLineEnding(h)?n.check(continuationConstruct,c,s)(h):(n.consume(h),o)}function s(h){return n.exit("chunkContent"),n.exit("content"),i(h)}function c(h){return n.consume(h),n.exit("chunkContent"),l.next=n.enter("chunkContent",{contentType:"content",previous:l}),l=l.next,o}}function tokenizeContinuation(n,i,l){const a=this;return o;function o(c){return n.exit("chunkContent"),n.enter("lineEnding"),n.consume(c),n.exit("lineEnding"),factorySpace(n,s,"linePrefix")}function s(c){if(c===null||markdownLineEnding(c))return l(c);const h=a.events[a.events.length-1];return!a.parser.constructs.disable.null.includes("codeIndented")&&h&&h[1].type==="linePrefix"&&h[2].sliceSerialize(h[1],!0).length>=4?i(c):n.interrupt(a.parser.constructs.flow,l,i)(c)}}function factoryDestination(n,i,l,a,o,s,c,h,m){const p=m||Number.POSITIVE_INFINITY;let y=0;return x;function x(L){return L===60?(n.enter(a),n.enter(o),n.enter(s),n.consume(L),n.exit(s),b):L===null||L===32||L===41||asciiControl(L)?l(L):(n.enter(a),n.enter(c),n.enter(h),n.enter("chunkString",{contentType:"string"}),q(L))}function b(L){return L===62?(n.enter(s),n.consume(L),n.exit(s),n.exit(o),n.exit(a),i):(n.enter(h),n.enter("chunkString",{contentType:"string"}),k(L))}function k(L){return L===62?(n.exit("chunkString"),n.exit(h),b(L)):L===null||L===60||markdownLineEnding(L)?l(L):(n.consume(L),L===92?T:k)}function T(L){return L===60||L===62||L===92?(n.consume(L),k):k(L)}function q(L){return!y&&(L===null||L===41||markdownLineEndingOrSpace(L))?(n.exit("chunkString"),n.exit(h),n.exit(c),n.exit(a),i(L)):y<p&&L===40?(n.consume(L),y++,q):L===41?(n.consume(L),y--,q):L===null||L===32||L===40||asciiControl(L)?l(L):(n.consume(L),L===92?P:q)}function P(L){return L===40||L===41||L===92?(n.consume(L),q):q(L)}}function factoryLabel(n,i,l,a,o,s){const c=this;let h=0,m;return p;function p(k){return n.enter(a),n.enter(o),n.consume(k),n.exit(o),n.enter(s),y}function y(k){return h>999||k===null||k===91||k===93&&!m||k===94&&!h&&"_hiddenFootnoteSupport"in c.parser.constructs?l(k):k===93?(n.exit(s),n.enter(o),n.consume(k),n.exit(o),n.exit(a),i):markdownLineEnding(k)?(n.enter("lineEnding"),n.consume(k),n.exit("lineEnding"),y):(n.enter("chunkString",{contentType:"string"}),x(k))}function x(k){return k===null||k===91||k===93||markdownLineEnding(k)||h++>999?(n.exit("chunkString"),y(k)):(n.consume(k),m||(m=!markdownSpace(k)),k===92?b:x)}function b(k){return k===91||k===92||k===93?(n.consume(k),h++,x):x(k)}}function factoryTitle(n,i,l,a,o,s){let c;return h;function h(b){return b===34||b===39||b===40?(n.enter(a),n.enter(o),n.consume(b),n.exit(o),c=b===40?41:b,m):l(b)}function m(b){return b===c?(n.enter(o),n.consume(b),n.exit(o),n.exit(a),i):(n.enter(s),p(b))}function p(b){return b===c?(n.exit(s),m(c)):b===null?l(b):markdownLineEnding(b)?(n.enter("lineEnding"),n.consume(b),n.exit("lineEnding"),factorySpace(n,p,"linePrefix")):(n.enter("chunkString",{contentType:"string"}),y(b))}function y(b){return b===c||b===null||markdownLineEnding(b)?(n.exit("chunkString"),p(b)):(n.consume(b),b===92?x:y)}function x(b){return b===c||b===92?(n.consume(b),y):y(b)}}function factoryWhitespace(n,i){let l;return a;function a(o){return markdownLineEnding(o)?(n.enter("lineEnding"),n.consume(o),n.exit("lineEnding"),l=!0,a):markdownSpace(o)?factorySpace(n,a,l?"linePrefix":"lineSuffix")(o):i(o)}}const definition$1={name:"definition",tokenize:tokenizeDefinition},titleBefore={partial:!0,tokenize:tokenizeTitleBefore};function tokenizeDefinition(n,i,l){const a=this;let o;return s;function s(k){return n.enter("definition"),c(k)}function c(k){return factoryLabel.call(a,n,h,l,"definitionLabel","definitionLabelMarker","definitionLabelString")(k)}function h(k){return o=normalizeIdentifier(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)),k===58?(n.enter("definitionMarker"),n.consume(k),n.exit("definitionMarker"),m):l(k)}function m(k){return markdownLineEndingOrSpace(k)?factoryWhitespace(n,p)(k):p(k)}function p(k){return factoryDestination(n,y,l,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(k)}function y(k){return n.attempt(titleBefore,x,x)(k)}function x(k){return markdownSpace(k)?factorySpace(n,b,"whitespace")(k):b(k)}function b(k){return k===null||markdownLineEnding(k)?(n.exit("definition"),a.parser.defined.push(o),i(k)):l(k)}}function tokenizeTitleBefore(n,i,l){return a;function a(h){return markdownLineEndingOrSpace(h)?factoryWhitespace(n,o)(h):l(h)}function o(h){return factoryTitle(n,s,l,"definitionTitle","definitionTitleMarker","definitionTitleString")(h)}function s(h){return markdownSpace(h)?factorySpace(n,c,"whitespace")(h):c(h)}function c(h){return h===null||markdownLineEnding(h)?i(h):l(h)}}const hardBreakEscape={name:"hardBreakEscape",tokenize:tokenizeHardBreakEscape};function tokenizeHardBreakEscape(n,i,l){return a;function a(s){return n.enter("hardBreakEscape"),n.consume(s),o}function o(s){return markdownLineEnding(s)?(n.exit("hardBreakEscape"),i(s)):l(s)}}const headingAtx={name:"headingAtx",resolve:resolveHeadingAtx,tokenize:tokenizeHeadingAtx};function resolveHeadingAtx(n,i){let l=n.length-2,a=3,o,s;return n[a][1].type==="whitespace"&&(a+=2),l-2>a&&n[l][1].type==="whitespace"&&(l-=2),n[l][1].type==="atxHeadingSequence"&&(a===l-1||l-4>a&&n[l-2][1].type==="whitespace")&&(l-=a+1===l?2:4),l>a&&(o={type:"atxHeadingText",start:n[a][1].start,end:n[l][1].end},s={type:"chunkText",start:n[a][1].start,end:n[l][1].end,contentType:"text"},splice(n,a,l-a+1,[["enter",o,i],["enter",s,i],["exit",s,i],["exit",o,i]])),n}function tokenizeHeadingAtx(n,i,l){let a=0;return o;function o(y){return n.enter("atxHeading"),s(y)}function s(y){return n.enter("atxHeadingSequence"),c(y)}function c(y){return y===35&&a++<6?(n.consume(y),c):y===null||markdownLineEndingOrSpace(y)?(n.exit("atxHeadingSequence"),h(y)):l(y)}function h(y){return y===35?(n.enter("atxHeadingSequence"),m(y)):y===null||markdownLineEnding(y)?(n.exit("atxHeading"),i(y)):markdownSpace(y)?factorySpace(n,h,"whitespace")(y):(n.enter("atxHeadingText"),p(y))}function m(y){return y===35?(n.consume(y),m):(n.exit("atxHeadingSequence"),h(y))}function p(y){return y===null||y===35||markdownLineEndingOrSpace(y)?(n.exit("atxHeadingText"),h(y)):(n.consume(y),p)}}const htmlBlockNames=["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"],htmlRawNames=["pre","script","style","textarea"],htmlFlow={concrete:!0,name:"htmlFlow",resolveTo:resolveToHtmlFlow,tokenize:tokenizeHtmlFlow},blankLineBefore={partial:!0,tokenize:tokenizeBlankLineBefore},nonLazyContinuationStart={partial:!0,tokenize:tokenizeNonLazyContinuationStart};function resolveToHtmlFlow(n){let i=n.length;for(;i--&&!(n[i][0]==="enter"&&n[i][1].type==="htmlFlow"););return i>1&&n[i-2][1].type==="linePrefix"&&(n[i][1].start=n[i-2][1].start,n[i+1][1].start=n[i-2][1].start,n.splice(i-2,2)),n}function tokenizeHtmlFlow(n,i,l){const a=this;let o,s,c,h,m;return p;function p(_){return y(_)}function y(_){return n.enter("htmlFlow"),n.enter("htmlFlowData"),n.consume(_),x}function x(_){return _===33?(n.consume(_),b):_===47?(n.consume(_),s=!0,q):_===63?(n.consume(_),o=3,a.interrupt?i:A):asciiAlpha(_)?(n.consume(_),c=String.fromCharCode(_),P):l(_)}function b(_){return _===45?(n.consume(_),o=2,k):_===91?(n.consume(_),o=5,h=0,T):asciiAlpha(_)?(n.consume(_),o=4,a.interrupt?i:A):l(_)}function k(_){return _===45?(n.consume(_),a.interrupt?i:A):l(_)}function T(_){const fe="CDATA[";return _===fe.charCodeAt(h++)?(n.consume(_),h===fe.length?a.interrupt?i:de:T):l(_)}function q(_){return asciiAlpha(_)?(n.consume(_),c=String.fromCharCode(_),P):l(_)}function P(_){if(_===null||_===47||_===62||markdownLineEndingOrSpace(_)){const fe=_===47,me=c.toLowerCase();return!fe&&!s&&htmlRawNames.includes(me)?(o=1,a.interrupt?i(_):de(_)):htmlBlockNames.includes(c.toLowerCase())?(o=6,fe?(n.consume(_),L):a.interrupt?i(_):de(_)):(o=7,a.interrupt&&!a.parser.lazy[a.now().line]?l(_):s?ne(_):Q(_))}return _===45||asciiAlphanumeric(_)?(n.consume(_),c+=String.fromCharCode(_),P):l(_)}function L(_){return _===62?(n.consume(_),a.interrupt?i:de):l(_)}function ne(_){return markdownSpace(_)?(n.consume(_),ne):I(_)}function Q(_){return _===47?(n.consume(_),I):_===58||_===95||asciiAlpha(_)?(n.consume(_),ge):markdownSpace(_)?(n.consume(_),Q):I(_)}function ge(_){return _===45||_===46||_===58||_===95||asciiAlphanumeric(_)?(n.consume(_),ge):pe(_)}function pe(_){return _===61?(n.consume(_),B):markdownSpace(_)?(n.consume(_),pe):Q(_)}function B(_){return _===null||_===60||_===61||_===62||_===96?l(_):_===34||_===39?(n.consume(_),m=_,ce):markdownSpace(_)?(n.consume(_),B):be(_)}function ce(_){return _===m?(n.consume(_),m=null,Ee):_===null||markdownLineEnding(_)?l(_):(n.consume(_),ce)}function be(_){return _===null||_===34||_===39||_===47||_===60||_===61||_===62||_===96||markdownLineEndingOrSpace(_)?pe(_):(n.consume(_),be)}function Ee(_){return _===47||_===62||markdownSpace(_)?Q(_):l(_)}function I(_){return _===62?(n.consume(_),he):l(_)}function he(_){return _===null||markdownLineEnding(_)?de(_):markdownSpace(_)?(n.consume(_),he):l(_)}function de(_){return _===45&&o===2?(n.consume(_),Z):_===60&&o===1?(n.consume(_),ae):_===62&&o===4?(n.consume(_),R):_===63&&o===3?(n.consume(_),A):_===93&&o===5?(n.consume(_),Ce):markdownLineEnding(_)&&(o===6||o===7)?(n.exit("htmlFlowData"),n.check(blankLineBefore,X,Ae)(_)):_===null||markdownLineEnding(_)?(n.exit("htmlFlowData"),Ae(_)):(n.consume(_),de)}function Ae(_){return n.check(nonLazyContinuationStart,oe,X)(_)}function oe(_){return n.enter("lineEnding"),n.consume(_),n.exit("lineEnding"),ue}function ue(_){return _===null||markdownLineEnding(_)?Ae(_):(n.enter("htmlFlowData"),de(_))}function Z(_){return _===45?(n.consume(_),A):de(_)}function ae(_){return _===47?(n.consume(_),c="",te):de(_)}function te(_){if(_===62){const fe=c.toLowerCase();return htmlRawNames.includes(fe)?(n.consume(_),R):de(_)}return asciiAlpha(_)&&c.length<8?(n.consume(_),c+=String.fromCharCode(_),te):de(_)}function Ce(_){return _===93?(n.consume(_),A):de(_)}function A(_){return _===62?(n.consume(_),R):_===45&&o===2?(n.consume(_),A):de(_)}function R(_){return _===null||markdownLineEnding(_)?(n.exit("htmlFlowData"),X(_)):(n.consume(_),R)}function X(_){return n.exit("htmlFlow"),i(_)}}function tokenizeNonLazyContinuationStart(n,i,l){const a=this;return o;function o(c){return markdownLineEnding(c)?(n.enter("lineEnding"),n.consume(c),n.exit("lineEnding"),s):l(c)}function s(c){return a.parser.lazy[a.now().line]?l(c):i(c)}}function tokenizeBlankLineBefore(n,i,l){return a;function a(o){return n.enter("lineEnding"),n.consume(o),n.exit("lineEnding"),n.attempt(blankLine,i,l)}}const htmlText={name:"htmlText",tokenize:tokenizeHtmlText};function tokenizeHtmlText(n,i,l){const a=this;let o,s,c;return h;function h(A){return n.enter("htmlText"),n.enter("htmlTextData"),n.consume(A),m}function m(A){return A===33?(n.consume(A),p):A===47?(n.consume(A),pe):A===63?(n.consume(A),Q):asciiAlpha(A)?(n.consume(A),be):l(A)}function p(A){return A===45?(n.consume(A),y):A===91?(n.consume(A),s=0,T):asciiAlpha(A)?(n.consume(A),ne):l(A)}function y(A){return A===45?(n.consume(A),k):l(A)}function x(A){return A===null?l(A):A===45?(n.consume(A),b):markdownLineEnding(A)?(c=x,ae(A)):(n.consume(A),x)}function b(A){return A===45?(n.consume(A),k):x(A)}function k(A){return A===62?Z(A):A===45?b(A):x(A)}function T(A){const R="CDATA[";return A===R.charCodeAt(s++)?(n.consume(A),s===R.length?q:T):l(A)}function q(A){return A===null?l(A):A===93?(n.consume(A),P):markdownLineEnding(A)?(c=q,ae(A)):(n.consume(A),q)}function P(A){return A===93?(n.consume(A),L):q(A)}function L(A){return A===62?Z(A):A===93?(n.consume(A),L):q(A)}function ne(A){return A===null||A===62?Z(A):markdownLineEnding(A)?(c=ne,ae(A)):(n.consume(A),ne)}function Q(A){return A===null?l(A):A===63?(n.consume(A),ge):markdownLineEnding(A)?(c=Q,ae(A)):(n.consume(A),Q)}function ge(A){return A===62?Z(A):Q(A)}function pe(A){return asciiAlpha(A)?(n.consume(A),B):l(A)}function B(A){return A===45||asciiAlphanumeric(A)?(n.consume(A),B):ce(A)}function ce(A){return markdownLineEnding(A)?(c=ce,ae(A)):markdownSpace(A)?(n.consume(A),ce):Z(A)}function be(A){return A===45||asciiAlphanumeric(A)?(n.consume(A),be):A===47||A===62||markdownLineEndingOrSpace(A)?Ee(A):l(A)}function Ee(A){return A===47?(n.consume(A),Z):A===58||A===95||asciiAlpha(A)?(n.consume(A),I):markdownLineEnding(A)?(c=Ee,ae(A)):markdownSpace(A)?(n.consume(A),Ee):Z(A)}function I(A){return A===45||A===46||A===58||A===95||asciiAlphanumeric(A)?(n.consume(A),I):he(A)}function he(A){return A===61?(n.consume(A),de):markdownLineEnding(A)?(c=he,ae(A)):markdownSpace(A)?(n.consume(A),he):Ee(A)}function de(A){return A===null||A===60||A===61||A===62||A===96?l(A):A===34||A===39?(n.consume(A),o=A,Ae):markdownLineEnding(A)?(c=de,ae(A)):markdownSpace(A)?(n.consume(A),de):(n.consume(A),oe)}function Ae(A){return A===o?(n.consume(A),o=void 0,ue):A===null?l(A):markdownLineEnding(A)?(c=Ae,ae(A)):(n.consume(A),Ae)}function oe(A){return A===null||A===34||A===39||A===60||A===61||A===96?l(A):A===47||A===62||markdownLineEndingOrSpace(A)?Ee(A):(n.consume(A),oe)}function ue(A){return A===47||A===62||markdownLineEndingOrSpace(A)?Ee(A):l(A)}function Z(A){return A===62?(n.consume(A),n.exit("htmlTextData"),n.exit("htmlText"),i):l(A)}function ae(A){return n.exit("htmlTextData"),n.enter("lineEnding"),n.consume(A),n.exit("lineEnding"),te}function te(A){return markdownSpace(A)?factorySpace(n,Ce,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(A):Ce(A)}function Ce(A){return n.enter("htmlTextData"),c(A)}}const labelEnd={name:"labelEnd",resolveAll:resolveAllLabelEnd,resolveTo:resolveToLabelEnd,tokenize:tokenizeLabelEnd},resourceConstruct={tokenize:tokenizeResource},referenceFullConstruct={tokenize:tokenizeReferenceFull},referenceCollapsedConstruct={tokenize:tokenizeReferenceCollapsed};function resolveAllLabelEnd(n){let i=-1;const l=[];for(;++i<n.length;){const a=n[i][1];if(l.push(n[i]),a.type==="labelImage"||a.type==="labelLink"||a.type==="labelEnd"){const o=a.type==="labelImage"?4:2;a.type="data",i+=o}}return n.length!==l.length&&splice(n,0,n.length,l),n}function resolveToLabelEnd(n,i){let l=n.length,a=0,o,s,c,h;for(;l--;)if(o=n[l][1],s){if(o.type==="link"||o.type==="labelLink"&&o._inactive)break;n[l][0]==="enter"&&o.type==="labelLink"&&(o._inactive=!0)}else if(c){if(n[l][0]==="enter"&&(o.type==="labelImage"||o.type==="labelLink")&&!o._balanced&&(s=l,o.type!=="labelLink")){a=2;break}}else o.type==="labelEnd"&&(c=l);const m={type:n[s][1].type==="labelLink"?"link":"image",start:{...n[s][1].start},end:{...n[n.length-1][1].end}},p={type:"label",start:{...n[s][1].start},end:{...n[c][1].end}},y={type:"labelText",start:{...n[s+a+2][1].end},end:{...n[c-2][1].start}};return h=[["enter",m,i],["enter",p,i]],h=push(h,n.slice(s+1,s+a+3)),h=push(h,[["enter",y,i]]),h=push(h,resolveAll(i.parser.constructs.insideSpan.null,n.slice(s+a+4,c-3),i)),h=push(h,[["exit",y,i],n[c-2],n[c-1],["exit",p,i]]),h=push(h,n.slice(c+1)),h=push(h,[["exit",m,i]]),splice(n,s,n.length,h),n}function tokenizeLabelEnd(n,i,l){const a=this;let o=a.events.length,s,c;for(;o--;)if((a.events[o][1].type==="labelImage"||a.events[o][1].type==="labelLink")&&!a.events[o][1]._balanced){s=a.events[o][1];break}return h;function h(b){return s?s._inactive?x(b):(c=a.parser.defined.includes(normalizeIdentifier(a.sliceSerialize({start:s.end,end:a.now()}))),n.enter("labelEnd"),n.enter("labelMarker"),n.consume(b),n.exit("labelMarker"),n.exit("labelEnd"),m):l(b)}function m(b){return b===40?n.attempt(resourceConstruct,y,c?y:x)(b):b===91?n.attempt(referenceFullConstruct,y,c?p:x)(b):c?y(b):x(b)}function p(b){return n.attempt(referenceCollapsedConstruct,y,x)(b)}function y(b){return i(b)}function x(b){return s._balanced=!0,l(b)}}function tokenizeResource(n,i,l){return a;function a(x){return n.enter("resource"),n.enter("resourceMarker"),n.consume(x),n.exit("resourceMarker"),o}function o(x){return markdownLineEndingOrSpace(x)?factoryWhitespace(n,s)(x):s(x)}function s(x){return x===41?y(x):factoryDestination(n,c,h,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(x)}function c(x){return markdownLineEndingOrSpace(x)?factoryWhitespace(n,m)(x):y(x)}function h(x){return l(x)}function m(x){return x===34||x===39||x===40?factoryTitle(n,p,l,"resourceTitle","resourceTitleMarker","resourceTitleString")(x):y(x)}function p(x){return markdownLineEndingOrSpace(x)?factoryWhitespace(n,y)(x):y(x)}function y(x){return x===41?(n.enter("resourceMarker"),n.consume(x),n.exit("resourceMarker"),n.exit("resource"),i):l(x)}}function tokenizeReferenceFull(n,i,l){const a=this;return o;function o(h){return factoryLabel.call(a,n,s,c,"reference","referenceMarker","referenceString")(h)}function s(h){return a.parser.defined.includes(normalizeIdentifier(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)))?i(h):l(h)}function c(h){return l(h)}}function tokenizeReferenceCollapsed(n,i,l){return a;function a(s){return n.enter("reference"),n.enter("referenceMarker"),n.consume(s),n.exit("referenceMarker"),o}function o(s){return s===93?(n.enter("referenceMarker"),n.consume(s),n.exit("referenceMarker"),n.exit("reference"),i):l(s)}}const labelStartImage={name:"labelStartImage",resolveAll:labelEnd.resolveAll,tokenize:tokenizeLabelStartImage};function tokenizeLabelStartImage(n,i,l){const a=this;return o;function o(h){return n.enter("labelImage"),n.enter("labelImageMarker"),n.consume(h),n.exit("labelImageMarker"),s}function s(h){return h===91?(n.enter("labelMarker"),n.consume(h),n.exit("labelMarker"),n.exit("labelImage"),c):l(h)}function c(h){return h===94&&"_hiddenFootnoteSupport"in a.parser.constructs?l(h):i(h)}}const labelStartLink={name:"labelStartLink",resolveAll:labelEnd.resolveAll,tokenize:tokenizeLabelStartLink};function tokenizeLabelStartLink(n,i,l){const a=this;return o;function o(c){return n.enter("labelLink"),n.enter("labelMarker"),n.consume(c),n.exit("labelMarker"),n.exit("labelLink"),s}function s(c){return c===94&&"_hiddenFootnoteSupport"in a.parser.constructs?l(c):i(c)}}const lineEnding={name:"lineEnding",tokenize:tokenizeLineEnding};function tokenizeLineEnding(n,i){return l;function l(a){return n.enter("lineEnding"),n.consume(a),n.exit("lineEnding"),factorySpace(n,i,"linePrefix")}}const thematicBreak$2={name:"thematicBreak",tokenize:tokenizeThematicBreak};function tokenizeThematicBreak(n,i,l){let a=0,o;return s;function s(p){return n.enter("thematicBreak"),c(p)}function c(p){return o=p,h(p)}function h(p){return p===o?(n.enter("thematicBreakSequence"),m(p)):a>=3&&(p===null||markdownLineEnding(p))?(n.exit("thematicBreak"),i(p)):l(p)}function m(p){return p===o?(n.consume(p),a++,m):(n.exit("thematicBreakSequence"),markdownSpace(p)?factorySpace(n,h,"whitespace")(p):h(p))}}const list$2={continuation:{tokenize:tokenizeListContinuation},exit:tokenizeListEnd,name:"list",tokenize:tokenizeListStart},listItemPrefixWhitespaceConstruct={partial:!0,tokenize:tokenizeListItemPrefixWhitespace},indentConstruct={partial:!0,tokenize:tokenizeIndent$1};function tokenizeListStart(n,i,l){const a=this,o=a.events[a.events.length-1];let s=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,c=0;return h;function h(k){const T=a.containerState.type||(k===42||k===43||k===45?"listUnordered":"listOrdered");if(T==="listUnordered"?!a.containerState.marker||k===a.containerState.marker:asciiDigit(k)){if(a.containerState.type||(a.containerState.type=T,n.enter(T,{_container:!0})),T==="listUnordered")return n.enter("listItemPrefix"),k===42||k===45?n.check(thematicBreak$2,l,p)(k):p(k);if(!a.interrupt||k===49)return n.enter("listItemPrefix"),n.enter("listItemValue"),m(k)}return l(k)}function m(k){return asciiDigit(k)&&++c<10?(n.consume(k),m):(!a.interrupt||c<2)&&(a.containerState.marker?k===a.containerState.marker:k===41||k===46)?(n.exit("listItemValue"),p(k)):l(k)}function p(k){return n.enter("listItemMarker"),n.consume(k),n.exit("listItemMarker"),a.containerState.marker=a.containerState.marker||k,n.check(blankLine,a.interrupt?l:y,n.attempt(listItemPrefixWhitespaceConstruct,b,x))}function y(k){return a.containerState.initialBlankLine=!0,s++,b(k)}function x(k){return markdownSpace(k)?(n.enter("listItemPrefixWhitespace"),n.consume(k),n.exit("listItemPrefixWhitespace"),b):l(k)}function b(k){return a.containerState.size=s+a.sliceSerialize(n.exit("listItemPrefix"),!0).length,i(k)}}function tokenizeListContinuation(n,i,l){const a=this;return a.containerState._closeFlow=void 0,n.check(blankLine,o,s);function o(h){return a.containerState.furtherBlankLines=a.containerState.furtherBlankLines||a.containerState.initialBlankLine,factorySpace(n,i,"listItemIndent",a.containerState.size+1)(h)}function s(h){return a.containerState.furtherBlankLines||!markdownSpace(h)?(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,c(h)):(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,n.attempt(indentConstruct,i,c)(h))}function c(h){return a.containerState._closeFlow=!0,a.interrupt=void 0,factorySpace(n,n.attempt(list$2,i,l),"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(h)}}function tokenizeIndent$1(n,i,l){const a=this;return factorySpace(n,o,"listItemIndent",a.containerState.size+1);function o(s){const c=a.events[a.events.length-1];return c&&c[1].type==="listItemIndent"&&c[2].sliceSerialize(c[1],!0).length===a.containerState.size?i(s):l(s)}}function tokenizeListEnd(n){n.exit(this.containerState.type)}function tokenizeListItemPrefixWhitespace(n,i,l){const a=this;return factorySpace(n,o,"listItemPrefixWhitespace",a.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function o(s){const c=a.events[a.events.length-1];return!markdownSpace(s)&&c&&c[1].type==="listItemPrefixWhitespace"?i(s):l(s)}}const setextUnderline={name:"setextUnderline",resolveTo:resolveToSetextUnderline,tokenize:tokenizeSetextUnderline};function resolveToSetextUnderline(n,i){let l=n.length,a,o,s;for(;l--;)if(n[l][0]==="enter"){if(n[l][1].type==="content"){a=l;break}n[l][1].type==="paragraph"&&(o=l)}else n[l][1].type==="content"&&n.splice(l,1),!s&&n[l][1].type==="definition"&&(s=l);const c={type:"setextHeading",start:{...n[a][1].start},end:{...n[n.length-1][1].end}};return n[o][1].type="setextHeadingText",s?(n.splice(o,0,["enter",c,i]),n.splice(s+1,0,["exit",n[a][1],i]),n[a][1].end={...n[s][1].end}):n[a][1]=c,n.push(["exit",c,i]),n}function tokenizeSetextUnderline(n,i,l){const a=this;let o;return s;function s(p){let y=a.events.length,x;for(;y--;)if(a.events[y][1].type!=="lineEnding"&&a.events[y][1].type!=="linePrefix"&&a.events[y][1].type!=="content"){x=a.events[y][1].type==="paragraph";break}return!a.parser.lazy[a.now().line]&&(a.interrupt||x)?(n.enter("setextHeadingLine"),o=p,c(p)):l(p)}function c(p){return n.enter("setextHeadingLineSequence"),h(p)}function h(p){return p===o?(n.consume(p),h):(n.exit("setextHeadingLineSequence"),markdownSpace(p)?factorySpace(n,m,"lineSuffix")(p):m(p))}function m(p){return p===null||markdownLineEnding(p)?(n.exit("setextHeadingLine"),i(p)):l(p)}}const flow$1={tokenize:initializeFlow};function initializeFlow(n){const i=this,l=n.attempt(blankLine,a,n.attempt(this.parser.constructs.flowInitial,o,factorySpace(n,n.attempt(this.parser.constructs.flow,o,n.attempt(content,o)),"linePrefix")));return l;function a(s){if(s===null){n.consume(s);return}return n.enter("lineEndingBlank"),n.consume(s),n.exit("lineEndingBlank"),i.currentConstruct=void 0,l}function o(s){if(s===null){n.consume(s);return}return n.enter("lineEnding"),n.consume(s),n.exit("lineEnding"),i.currentConstruct=void 0,l}}const resolver={resolveAll:createResolver()},string$1=initializeFactory("string"),text$4=initializeFactory("text");function initializeFactory(n){return{resolveAll:createResolver(n==="text"?resolveAllLineSuffixes:void 0),tokenize:i};function i(l){const a=this,o=this.parser.constructs[n],s=l.attempt(o,c,h);return c;function c(y){return p(y)?s(y):h(y)}function h(y){if(y===null){l.consume(y);return}return l.enter("data"),l.consume(y),m}function m(y){return p(y)?(l.exit("data"),s(y)):(l.consume(y),m)}function p(y){if(y===null)return!0;const x=o[y];let b=-1;if(x)for(;++b<x.length;){const k=x[b];if(!k.previous||k.previous.call(a,a.previous))return!0}return!1}}}function createResolver(n){return i;function i(l,a){let o=-1,s;for(;++o<=l.length;)s===void 0?l[o]&&l[o][1].type==="data"&&(s=o,o++):(!l[o]||l[o][1].type!=="data")&&(o!==s+2&&(l[s][1].end=l[o-1][1].end,l.splice(s+2,o-s-2),o=s+2),s=void 0);return n?n(l,a):l}}function resolveAllLineSuffixes(n,i){let l=0;for(;++l<=n.length;)if((l===n.length||n[l][1].type==="lineEnding")&&n[l-1][1].type==="data"){const a=n[l-1][1],o=i.sliceStream(a);let s=o.length,c=-1,h=0,m;for(;s--;){const p=o[s];if(typeof p=="string"){for(c=p.length;p.charCodeAt(c-1)===32;)h++,c--;if(c)break;c=-1}else if(p===-2)m=!0,h++;else if(p!==-1){s++;break}}if(i._contentTypeTextTrailing&&l===n.length&&(h=0),h){const p={type:l===n.length||m||h<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?c:a.start._bufferIndex+c,_index:a.start._index+s,line:a.end.line,column:a.end.column-h,offset:a.end.offset-h},end:{...a.end}};a.end={...p.start},a.start.offset===a.end.offset?Object.assign(a,p):(n.splice(l,0,["enter",p,i],["exit",p,i]),l+=2)}l++}return n}const document$1={42:list$2,43:list$2,45:list$2,48:list$2,49:list$2,50:list$2,51:list$2,52:list$2,53:list$2,54:list$2,55:list$2,56:list$2,57:list$2,62:blockQuote},contentInitial={91:definition$1},flowInitial={[-2]:codeIndented,[-1]:codeIndented,32:codeIndented},flow={35:headingAtx,42:thematicBreak$2,45:[setextUnderline,thematicBreak$2],60:htmlFlow,61:setextUnderline,95:thematicBreak$2,96:codeFenced,126:codeFenced},string={38:characterReference,92:characterEscape},text$3={[-5]:lineEnding,[-4]:lineEnding,[-3]:lineEnding,33:labelStartImage,38:characterReference,42:attention,60:[autolink,htmlText],91:labelStartLink,92:[hardBreakEscape,characterEscape],93:labelEnd,95:attention,96:codeText},insideSpan={null:[attention,resolver]},attentionMarkers={null:[42,95]},disable={null:[]},defaultConstructs=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers,contentInitial,disable,document:document$1,flow,flowInitial,insideSpan,string,text:text$3},Symbol.toStringTag,{value:"Module"}));function createTokenizer(n,i,l){let a={_bufferIndex:-1,_index:0,line:l&&l.line||1,column:l&&l.column||1,offset:l&&l.offset||0};const o={},s=[];let c=[],h=[];const m={attempt:ce(pe),check:ce(B),consume:ne,enter:Q,exit:ge,interrupt:ce(B,{interrupt:!0})},p={code:null,containerState:{},defineSkip:q,events:[],now:T,parser:n,previous:null,sliceSerialize:b,sliceStream:k,write:x};let y=i.tokenize.call(p,m);return i.resolveAll&&s.push(i),p;function x(he){return c=push(c,he),P(),c[c.length-1]!==null?[]:(be(i,0),p.events=resolveAll(s,p.events,p),p.events)}function b(he,de){return serializeChunks(k(he),de)}function k(he){return sliceChunks(c,he)}function T(){const{_bufferIndex:he,_index:de,line:Ae,column:oe,offset:ue}=a;return{_bufferIndex:he,_index:de,line:Ae,column:oe,offset:ue}}function q(he){o[he.line]=he.column,I()}function P(){let he;for(;a._index<c.length;){const de=c[a._index];if(typeof de=="string")for(he=a._index,a._bufferIndex<0&&(a._bufferIndex=0);a._index===he&&a._bufferIndex<de.length;)L(de.charCodeAt(a._bufferIndex));else L(de)}}function L(he){y=y(he)}function ne(he){markdownLineEnding(he)?(a.line++,a.column=1,a.offset+=he===-3?2:1,I()):he!==-1&&(a.column++,a.offset++),a._bufferIndex<0?a._index++:(a._bufferIndex++,a._bufferIndex===c[a._index].length&&(a._bufferIndex=-1,a._index++)),p.previous=he}function Q(he,de){const Ae=de||{};return Ae.type=he,Ae.start=T(),p.events.push(["enter",Ae,p]),h.push(Ae),Ae}function ge(he){const de=h.pop();return de.end=T(),p.events.push(["exit",de,p]),de}function pe(he,de){be(he,de.from)}function B(he,de){de.restore()}function ce(he,de){return Ae;function Ae(oe,ue,Z){let ae,te,Ce,A;return Array.isArray(oe)?X(oe):"tokenize"in oe?X([oe]):R(oe);function R(xe){return we;function we(Be){const qe=Be!==null&&xe[Be],ct=Be!==null&&xe.null,yt=[...Array.isArray(qe)?qe:qe?[qe]:[],...Array.isArray(ct)?ct:ct?[ct]:[]];return X(yt)(Be)}}function X(xe){return ae=xe,te=0,xe.length===0?Z:_(xe[te])}function _(xe){return we;function we(Be){return A=Ee(),Ce=xe,xe.partial||(p.currentConstruct=xe),xe.name&&p.parser.constructs.disable.null.includes(xe.name)?me():xe.tokenize.call(de?Object.assign(Object.create(p),de):p,m,fe,me)(Be)}}function fe(xe){return he(Ce,A),ue}function me(xe){return A.restore(),++te<ae.length?_(ae[te]):Z}}}function be(he,de){he.resolveAll&&!s.includes(he)&&s.push(he),he.resolve&&splice(p.events,de,p.events.length-de,he.resolve(p.events.slice(de),p)),he.resolveTo&&(p.events=he.resolveTo(p.events,p))}function Ee(){const he=T(),de=p.previous,Ae=p.currentConstruct,oe=p.events.length,ue=Array.from(h);return{from:oe,restore:Z};function Z(){a=he,p.previous=de,p.currentConstruct=Ae,p.events.length=oe,h=ue,I()}}function I(){a.line in o&&a.column<2&&(a.column=o[a.line],a.offset+=o[a.line]-1)}}function sliceChunks(n,i){const l=i.start._index,a=i.start._bufferIndex,o=i.end._index,s=i.end._bufferIndex;let c;if(l===o)c=[n[l].slice(a,s)];else{if(c=n.slice(l,o),a>-1){const h=c[0];typeof h=="string"?c[0]=h.slice(a):c.shift()}s>0&&c.push(n[o].slice(0,s))}return c}function serializeChunks(n,i){let l=-1;const a=[];let o;for(;++l<n.length;){const s=n[l];let c;if(typeof s=="string")c=s;else switch(s){case-5:{c="\r";break}case-4:{c=`
|
|
51
|
-
`;break}case-3:{c=`\r
|
|
52
|
-
`;break}case-2:{c=i?" ":" ";break}case-1:{if(!i&&o)continue;c=" ";break}default:c=String.fromCharCode(s)}o=s===-2,a.push(c)}return a.join("")}function parse$1(n){const a={constructs:combineExtensions([defaultConstructs,...(n||{}).extensions||[]]),content:o(content$1),defined:[],document:o(document$2),flow:o(flow$1),lazy:{},string:o(string$1),text:o(text$4)};return a;function o(s){return c;function c(h){return createTokenizer(a,s,h)}}}function postprocess(n){for(;!subtokenize(n););return n}const search=/[\0\t\n\r]/g;function preprocess(){let n=1,i="",l=!0,a;return o;function o(s,c,h){const m=[];let p,y,x,b,k;for(s=i+(typeof s=="string"?s.toString():new TextDecoder(c||void 0).decode(s)),x=0,i="",l&&(s.charCodeAt(0)===65279&&x++,l=void 0);x<s.length;){if(search.lastIndex=x,p=search.exec(s),b=p&&p.index!==void 0?p.index:s.length,k=s.charCodeAt(b),!p){i=s.slice(x);break}if(k===10&&x===b&&a)m.push(-3),a=void 0;else switch(a&&(m.push(-5),a=void 0),x<b&&(m.push(s.slice(x,b)),n+=b-x),k){case 0:{m.push(65533),n++;break}case 9:{for(y=Math.ceil(n/4)*4,m.push(-2);n++<y;)m.push(-1);break}case 10:{m.push(-4),n=1;break}default:a=!0,n=1}x=b+1}return h&&(a&&m.push(-5),i&&m.push(i),m.push(null)),m}}const characterEscapeOrReference=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function decodeString(n){return n.replace(characterEscapeOrReference,decode)}function decode(n,i,l){if(i)return i;if(l.charCodeAt(0)===35){const o=l.charCodeAt(1),s=o===120||o===88;return decodeNumericCharacterReference(l.slice(s?2:1),s?16:10)}return decodeNamedCharacterReference(l)||n}const own$2={}.hasOwnProperty;function fromMarkdown(n,i,l){return i&&typeof i=="object"&&(l=i,i=void 0),compiler(l)(postprocess(parse$1(l).document().write(preprocess()(n,i,!0))))}function compiler(n){const i={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(Jt),autolinkProtocol:Ee,autolinkEmail:Ee,atxHeading:s(Pt),blockQuote:s(ct),characterEscape:Ee,characterReference:Ee,codeFenced:s(yt),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:s(yt,c),codeText:s(Lt,c),codeTextData:Ee,data:Ee,codeFlowValue:Ee,definition:s(ln),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:s(Tt),hardBreakEscape:s(Gt),hardBreakTrailing:s(Gt),htmlFlow:s(_n,c),htmlFlowData:Ee,htmlText:s(_n,c),htmlTextData:Ee,image:s(xt),label:c,link:s(Jt),listItem:s(Wt),listItemValue:b,listOrdered:s(Qt,x),listUnordered:s(Qt),paragraph:s(Cn),reference:_,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:s(Pt),strong:s(Kn),thematicBreak:s(g)},exit:{atxHeading:m(),atxHeadingSequence:pe,autolink:m(),autolinkEmail:qe,autolinkProtocol:Be,blockQuote:m(),characterEscapeValue:I,characterReferenceMarkerHexadecimal:me,characterReferenceMarkerNumeric:me,characterReferenceValue:xe,characterReference:we,codeFenced:m(P),codeFencedFence:q,codeFencedFenceInfo:k,codeFencedFenceMeta:T,codeFlowValue:I,codeIndented:m(L),codeText:m(ue),codeTextData:I,data:I,definition:m(),definitionDestinationString:ge,definitionLabelString:ne,definitionTitleString:Q,emphasis:m(),hardBreakEscape:m(de),hardBreakTrailing:m(de),htmlFlow:m(Ae),htmlFlowData:I,htmlText:m(oe),htmlTextData:I,image:m(ae),label:Ce,labelText:te,lineEnding:he,link:m(Z),listItem:m(),listOrdered:m(),listUnordered:m(),paragraph:m(),referenceString:fe,resourceDestinationString:A,resourceTitleString:R,resource:X,setextHeading:m(be),setextHeadingLineSequence:ce,setextHeadingText:B,strong:m(),thematicBreak:m()}};configure(i,(n||{}).mdastExtensions||[]);const l={};return a;function a(C){let z={type:"root",children:[]};const $={stack:[z],tokenStack:[],config:i,enter:h,exit:p,buffer:c,resume:y,data:l},H=[];let S=-1;for(;++S<C.length;)if(C[S][1].type==="listOrdered"||C[S][1].type==="listUnordered")if(C[S][0]==="enter")H.push(S);else{const D=H.pop();S=o(C,D,S)}for(S=-1;++S<C.length;){const D=i[C[S][0]];own$2.call(D,C[S][1].type)&&D[C[S][1].type].call(Object.assign({sliceSerialize:C[S][2].sliceSerialize},$),C[S][1])}if($.tokenStack.length>0){const D=$.tokenStack[$.tokenStack.length-1];(D[1]||defaultOnError).call($,void 0,D[0])}for(z.position={start:point(C.length>0?C[0][1].start:{line:1,column:1,offset:0}),end:point(C.length>0?C[C.length-2][1].end:{line:1,column:1,offset:0})},S=-1;++S<i.transforms.length;)z=i.transforms[S](z)||z;return z}function o(C,z,$){let H=z-1,S=-1,D=!1,G,Y,J,ie;for(;++H<=$;){const V=C[H];switch(V[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{V[0]==="enter"?S++:S--,ie=void 0;break}case"lineEndingBlank":{V[0]==="enter"&&(G&&!ie&&!S&&!J&&(J=H),ie=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:ie=void 0}if(!S&&V[0]==="enter"&&V[1].type==="listItemPrefix"||S===-1&&V[0]==="exit"&&(V[1].type==="listUnordered"||V[1].type==="listOrdered")){if(G){let se=H;for(Y=void 0;se--;){const le=C[se];if(le[1].type==="lineEnding"||le[1].type==="lineEndingBlank"){if(le[0]==="exit")continue;Y&&(C[Y][1].type="lineEndingBlank",D=!0),le[1].type="lineEnding",Y=se}else if(!(le[1].type==="linePrefix"||le[1].type==="blockQuotePrefix"||le[1].type==="blockQuotePrefixWhitespace"||le[1].type==="blockQuoteMarker"||le[1].type==="listItemIndent"))break}J&&(!Y||J<Y)&&(G._spread=!0),G.end=Object.assign({},Y?C[Y][1].start:V[1].end),C.splice(Y||H,0,["exit",G,V[2]]),H++,$++}if(V[1].type==="listItemPrefix"){const se={type:"listItem",_spread:!1,start:Object.assign({},V[1].start),end:void 0};G=se,C.splice(H,0,["enter",se,V[2]]),H++,$++,J=void 0,ie=!0}}}return C[z][1]._spread=D,$}function s(C,z){return $;function $(H){h.call(this,C(H),H),z&&z.call(this,H)}}function c(){this.stack.push({type:"fragment",children:[]})}function h(C,z,$){this.stack[this.stack.length-1].children.push(C),this.stack.push(C),this.tokenStack.push([z,$||void 0]),C.position={start:point(z.start),end:void 0}}function m(C){return z;function z($){C&&C.call(this,$),p.call(this,$)}}function p(C,z){const $=this.stack.pop(),H=this.tokenStack.pop();if(H)H[0].type!==C.type&&(z?z.call(this,C,H[0]):(H[1]||defaultOnError).call(this,C,H[0]));else throw new Error("Cannot close `"+C.type+"` ("+stringifyPosition({start:C.start,end:C.end})+"): it’s not open");$.position.end=point(C.end)}function y(){return toString$1(this.stack.pop())}function x(){this.data.expectingFirstListItemValue=!0}function b(C){if(this.data.expectingFirstListItemValue){const z=this.stack[this.stack.length-2];z.start=Number.parseInt(this.sliceSerialize(C),10),this.data.expectingFirstListItemValue=void 0}}function k(){const C=this.resume(),z=this.stack[this.stack.length-1];z.lang=C}function T(){const C=this.resume(),z=this.stack[this.stack.length-1];z.meta=C}function q(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function P(){const C=this.resume(),z=this.stack[this.stack.length-1];z.value=C.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function L(){const C=this.resume(),z=this.stack[this.stack.length-1];z.value=C.replace(/(\r?\n|\r)$/g,"")}function ne(C){const z=this.resume(),$=this.stack[this.stack.length-1];$.label=z,$.identifier=normalizeIdentifier(this.sliceSerialize(C)).toLowerCase()}function Q(){const C=this.resume(),z=this.stack[this.stack.length-1];z.title=C}function ge(){const C=this.resume(),z=this.stack[this.stack.length-1];z.url=C}function pe(C){const z=this.stack[this.stack.length-1];if(!z.depth){const $=this.sliceSerialize(C).length;z.depth=$}}function B(){this.data.setextHeadingSlurpLineEnding=!0}function ce(C){const z=this.stack[this.stack.length-1];z.depth=this.sliceSerialize(C).codePointAt(0)===61?1:2}function be(){this.data.setextHeadingSlurpLineEnding=void 0}function Ee(C){const $=this.stack[this.stack.length-1].children;let H=$[$.length-1];(!H||H.type!=="text")&&(H=nt(),H.position={start:point(C.start),end:void 0},$.push(H)),this.stack.push(H)}function I(C){const z=this.stack.pop();z.value+=this.sliceSerialize(C),z.position.end=point(C.end)}function he(C){const z=this.stack[this.stack.length-1];if(this.data.atHardBreak){const $=z.children[z.children.length-1];$.position.end=point(C.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&i.canContainEols.includes(z.type)&&(Ee.call(this,C),I.call(this,C))}function de(){this.data.atHardBreak=!0}function Ae(){const C=this.resume(),z=this.stack[this.stack.length-1];z.value=C}function oe(){const C=this.resume(),z=this.stack[this.stack.length-1];z.value=C}function ue(){const C=this.resume(),z=this.stack[this.stack.length-1];z.value=C}function Z(){const C=this.stack[this.stack.length-1];if(this.data.inReference){const z=this.data.referenceType||"shortcut";C.type+="Reference",C.referenceType=z,delete C.url,delete C.title}else delete C.identifier,delete C.label;this.data.referenceType=void 0}function ae(){const C=this.stack[this.stack.length-1];if(this.data.inReference){const z=this.data.referenceType||"shortcut";C.type+="Reference",C.referenceType=z,delete C.url,delete C.title}else delete C.identifier,delete C.label;this.data.referenceType=void 0}function te(C){const z=this.sliceSerialize(C),$=this.stack[this.stack.length-2];$.label=decodeString(z),$.identifier=normalizeIdentifier(z).toLowerCase()}function Ce(){const C=this.stack[this.stack.length-1],z=this.resume(),$=this.stack[this.stack.length-1];if(this.data.inReference=!0,$.type==="link"){const H=C.children;$.children=H}else $.alt=z}function A(){const C=this.resume(),z=this.stack[this.stack.length-1];z.url=C}function R(){const C=this.resume(),z=this.stack[this.stack.length-1];z.title=C}function X(){this.data.inReference=void 0}function _(){this.data.referenceType="collapsed"}function fe(C){const z=this.resume(),$=this.stack[this.stack.length-1];$.label=z,$.identifier=normalizeIdentifier(this.sliceSerialize(C)).toLowerCase(),this.data.referenceType="full"}function me(C){this.data.characterReferenceType=C.type}function xe(C){const z=this.sliceSerialize(C),$=this.data.characterReferenceType;let H;$?(H=decodeNumericCharacterReference(z,$==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):H=decodeNamedCharacterReference(z);const S=this.stack[this.stack.length-1];S.value+=H}function we(C){const z=this.stack.pop();z.position.end=point(C.end)}function Be(C){I.call(this,C);const z=this.stack[this.stack.length-1];z.url=this.sliceSerialize(C)}function qe(C){I.call(this,C);const z=this.stack[this.stack.length-1];z.url="mailto:"+this.sliceSerialize(C)}function ct(){return{type:"blockquote",children:[]}}function yt(){return{type:"code",lang:null,meta:null,value:""}}function Lt(){return{type:"inlineCode",value:""}}function ln(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Tt(){return{type:"emphasis",children:[]}}function Pt(){return{type:"heading",depth:0,children:[]}}function Gt(){return{type:"break"}}function _n(){return{type:"html",value:""}}function xt(){return{type:"image",title:null,url:"",alt:null}}function Jt(){return{type:"link",title:null,url:"",children:[]}}function Qt(C){return{type:"list",ordered:C.type==="listOrdered",start:null,spread:C._spread,children:[]}}function Wt(C){return{type:"listItem",spread:C._spread,checked:null,children:[]}}function Cn(){return{type:"paragraph",children:[]}}function Kn(){return{type:"strong",children:[]}}function nt(){return{type:"text",value:""}}function g(){return{type:"thematicBreak"}}}function point(n){return{line:n.line,column:n.column,offset:n.offset}}function configure(n,i){let l=-1;for(;++l<i.length;){const a=i[l];Array.isArray(a)?configure(n,a):extension(n,a)}}function extension(n,i){let l;for(l in i)if(own$2.call(i,l))switch(l){case"canContainEols":{const a=i[l];a&&n[l].push(...a);break}case"transforms":{const a=i[l];a&&n[l].push(...a);break}case"enter":case"exit":{const a=i[l];a&&Object.assign(n[l],a);break}}}function defaultOnError(n,i){throw n?new Error("Cannot close `"+n.type+"` ("+stringifyPosition({start:n.start,end:n.end})+"): a different token (`"+i.type+"`, "+stringifyPosition({start:i.start,end:i.end})+") is open"):new Error("Cannot close document, a token (`"+i.type+"`, "+stringifyPosition({start:i.start,end:i.end})+") is still open")}function remarkParse(n){const i=this;i.parser=l;function l(a){return fromMarkdown(a,{...i.data("settings"),...n,extensions:i.data("micromarkExtensions")||[],mdastExtensions:i.data("fromMarkdownExtensions")||[]})}}function blockquote$1(n,i){const l={type:"element",tagName:"blockquote",properties:{},children:n.wrap(n.all(i),!0)};return n.patch(i,l),n.applyData(i,l)}function hardBreak$1(n,i){const l={type:"element",tagName:"br",properties:{},children:[]};return n.patch(i,l),[n.applyData(i,l),{type:"text",value:`
|
|
53
|
-
`}]}function code$2(n,i){const l=i.value?i.value+`
|
|
54
|
-
`:"",a={},o=i.lang?i.lang.split(/\s+/):[];o.length>0&&(a.className=["language-"+o[0]]);let s={type:"element",tagName:"code",properties:a,children:[{type:"text",value:l}]};return i.meta&&(s.data={meta:i.meta}),n.patch(i,s),s=n.applyData(i,s),s={type:"element",tagName:"pre",properties:{},children:[s]},n.patch(i,s),s}function strikethrough(n,i){const l={type:"element",tagName:"del",properties:{},children:n.all(i)};return n.patch(i,l),n.applyData(i,l)}function emphasis$1(n,i){const l={type:"element",tagName:"em",properties:{},children:n.all(i)};return n.patch(i,l),n.applyData(i,l)}function footnoteReference$1(n,i){const l=typeof n.options.clobberPrefix=="string"?n.options.clobberPrefix:"user-content-",a=String(i.identifier).toUpperCase(),o=normalizeUri(a.toLowerCase()),s=n.footnoteOrder.indexOf(a);let c,h=n.footnoteCounts.get(a);h===void 0?(h=0,n.footnoteOrder.push(a),c=n.footnoteOrder.length):c=s+1,h+=1,n.footnoteCounts.set(a,h);const m={type:"element",tagName:"a",properties:{href:"#"+l+"fn-"+o,id:l+"fnref-"+o+(h>1?"-"+h:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(c)}]};n.patch(i,m);const p={type:"element",tagName:"sup",properties:{},children:[m]};return n.patch(i,p),n.applyData(i,p)}function heading$1(n,i){const l={type:"element",tagName:"h"+i.depth,properties:{},children:n.all(i)};return n.patch(i,l),n.applyData(i,l)}function html$1(n,i){if(n.options.allowDangerousHtml){const l={type:"raw",value:i.value};return n.patch(i,l),n.applyData(i,l)}}function revert(n,i){const l=i.referenceType;let a="]";if(l==="collapsed"?a+="[]":l==="full"&&(a+="["+(i.label||i.identifier)+"]"),i.type==="imageReference")return[{type:"text",value:"!["+i.alt+a}];const o=n.all(i),s=o[0];s&&s.type==="text"?s.value="["+s.value:o.unshift({type:"text",value:"["});const c=o[o.length-1];return c&&c.type==="text"?c.value+=a:o.push({type:"text",value:a}),o}function imageReference$1(n,i){const l=String(i.identifier).toUpperCase(),a=n.definitionById.get(l);if(!a)return revert(n,i);const o={src:normalizeUri(a.url||""),alt:i.alt};a.title!==null&&a.title!==void 0&&(o.title=a.title);const s={type:"element",tagName:"img",properties:o,children:[]};return n.patch(i,s),n.applyData(i,s)}function image$1(n,i){const l={src:normalizeUri(i.url)};i.alt!==null&&i.alt!==void 0&&(l.alt=i.alt),i.title!==null&&i.title!==void 0&&(l.title=i.title);const a={type:"element",tagName:"img",properties:l,children:[]};return n.patch(i,a),n.applyData(i,a)}function inlineCode$1(n,i){const l={type:"text",value:i.value.replace(/\r?\n|\r/g," ")};n.patch(i,l);const a={type:"element",tagName:"code",properties:{},children:[l]};return n.patch(i,a),n.applyData(i,a)}function linkReference$1(n,i){const l=String(i.identifier).toUpperCase(),a=n.definitionById.get(l);if(!a)return revert(n,i);const o={href:normalizeUri(a.url||"")};a.title!==null&&a.title!==void 0&&(o.title=a.title);const s={type:"element",tagName:"a",properties:o,children:n.all(i)};return n.patch(i,s),n.applyData(i,s)}function link$1(n,i){const l={href:normalizeUri(i.url)};i.title!==null&&i.title!==void 0&&(l.title=i.title);const a={type:"element",tagName:"a",properties:l,children:n.all(i)};return n.patch(i,a),n.applyData(i,a)}function listItem$1(n,i,l){const a=n.all(i),o=l?listLoose(l):listItemLoose(i),s={},c=[];if(typeof i.checked=="boolean"){const y=a[0];let x;y&&y.type==="element"&&y.tagName==="p"?x=y:(x={type:"element",tagName:"p",properties:{},children:[]},a.unshift(x)),x.children.length>0&&x.children.unshift({type:"text",value:" "}),x.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:i.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let h=-1;for(;++h<a.length;){const y=a[h];(o||h!==0||y.type!=="element"||y.tagName!=="p")&&c.push({type:"text",value:`
|
|
55
|
-
`}),y.type==="element"&&y.tagName==="p"&&!o?c.push(...y.children):c.push(y)}const m=a[a.length-1];m&&(o||m.type!=="element"||m.tagName!=="p")&&c.push({type:"text",value:`
|
|
56
|
-
`});const p={type:"element",tagName:"li",properties:s,children:c};return n.patch(i,p),n.applyData(i,p)}function listLoose(n){let i=!1;if(n.type==="list"){i=n.spread||!1;const l=n.children;let a=-1;for(;!i&&++a<l.length;)i=listItemLoose(l[a])}return i}function listItemLoose(n){const i=n.spread;return i??n.children.length>1}function list$1(n,i){const l={},a=n.all(i);let o=-1;for(typeof i.start=="number"&&i.start!==1&&(l.start=i.start);++o<a.length;){const c=a[o];if(c.type==="element"&&c.tagName==="li"&&c.properties&&Array.isArray(c.properties.className)&&c.properties.className.includes("task-list-item")){l.className=["contains-task-list"];break}}const s={type:"element",tagName:i.ordered?"ol":"ul",properties:l,children:n.wrap(a,!0)};return n.patch(i,s),n.applyData(i,s)}function paragraph$1(n,i){const l={type:"element",tagName:"p",properties:{},children:n.all(i)};return n.patch(i,l),n.applyData(i,l)}function root$1(n,i){const l={type:"root",children:n.wrap(n.all(i))};return n.patch(i,l),n.applyData(i,l)}function strong$1(n,i){const l={type:"element",tagName:"strong",properties:{},children:n.all(i)};return n.patch(i,l),n.applyData(i,l)}function table(n,i){const l=n.all(i),a=l.shift(),o=[];if(a){const c={type:"element",tagName:"thead",properties:{},children:n.wrap([a],!0)};n.patch(i.children[0],c),o.push(c)}if(l.length>0){const c={type:"element",tagName:"tbody",properties:{},children:n.wrap(l,!0)},h=pointStart(i.children[1]),m=pointEnd(i.children[i.children.length-1]);h&&m&&(c.position={start:h,end:m}),o.push(c)}const s={type:"element",tagName:"table",properties:{},children:n.wrap(o,!0)};return n.patch(i,s),n.applyData(i,s)}function tableRow(n,i,l){const a=l?l.children:void 0,s=(a?a.indexOf(i):1)===0?"th":"td",c=l&&l.type==="table"?l.align:void 0,h=c?c.length:i.children.length;let m=-1;const p=[];for(;++m<h;){const x=i.children[m],b={},k=c?c[m]:void 0;k&&(b.align=k);let T={type:"element",tagName:s,properties:b,children:[]};x&&(T.children=n.all(x),n.patch(x,T),T=n.applyData(x,T)),p.push(T)}const y={type:"element",tagName:"tr",properties:{},children:n.wrap(p,!0)};return n.patch(i,y),n.applyData(i,y)}function tableCell(n,i){const l={type:"element",tagName:"td",properties:{},children:n.all(i)};return n.patch(i,l),n.applyData(i,l)}const tab=9,space=32;function trimLines(n){const i=String(n),l=/\r?\n|\r/g;let a=l.exec(i),o=0;const s=[];for(;a;)s.push(trimLine(i.slice(o,a.index),o>0,!0),a[0]),o=a.index+a[0].length,a=l.exec(i);return s.push(trimLine(i.slice(o),o>0,!1)),s.join("")}function trimLine(n,i,l){let a=0,o=n.length;if(i){let s=n.codePointAt(a);for(;s===tab||s===space;)a++,s=n.codePointAt(a)}if(l){let s=n.codePointAt(o-1);for(;s===tab||s===space;)o--,s=n.codePointAt(o-1)}return o>a?n.slice(a,o):""}function text$2(n,i){const l={type:"text",value:trimLines(String(i.value))};return n.patch(i,l),n.applyData(i,l)}function thematicBreak$1(n,i){const l={type:"element",tagName:"hr",properties:{},children:[]};return n.patch(i,l),n.applyData(i,l)}const handlers={blockquote:blockquote$1,break:hardBreak$1,code:code$2,delete:strikethrough,emphasis:emphasis$1,footnoteReference:footnoteReference$1,heading:heading$1,html:html$1,imageReference:imageReference$1,image:image$1,inlineCode:inlineCode$1,linkReference:linkReference$1,link:link$1,listItem:listItem$1,list:list$1,paragraph:paragraph$1,root:root$1,strong:strong$1,table,tableCell,tableRow,text:text$2,thematicBreak:thematicBreak$1,toml:ignore,yaml:ignore,definition:ignore,footnoteDefinition:ignore};function ignore(){}const VOID=-1,PRIMITIVE=0,ARRAY=1,OBJECT=2,DATE=3,REGEXP=4,MAP=5,SET=6,ERROR=7,BIGINT=8,env=typeof self=="object"?self:globalThis,deserializer=(n,i)=>{const l=(o,s)=>(n.set(s,o),o),a=o=>{if(n.has(o))return n.get(o);const[s,c]=i[o];switch(s){case PRIMITIVE:case VOID:return l(c,o);case ARRAY:{const h=l([],o);for(const m of c)h.push(a(m));return h}case OBJECT:{const h=l({},o);for(const[m,p]of c)h[a(m)]=a(p);return h}case DATE:return l(new Date(c),o);case REGEXP:{const{source:h,flags:m}=c;return l(new RegExp(h,m),o)}case MAP:{const h=l(new Map,o);for(const[m,p]of c)h.set(a(m),a(p));return h}case SET:{const h=l(new Set,o);for(const m of c)h.add(a(m));return h}case ERROR:{const{name:h,message:m}=c;return l(new env[h](m),o)}case BIGINT:return l(BigInt(c),o);case"BigInt":return l(Object(BigInt(c)),o);case"ArrayBuffer":return l(new Uint8Array(c).buffer,c);case"DataView":{const{buffer:h}=new Uint8Array(c);return l(new DataView(h),c)}}return l(new env[s](c),o)};return a},deserialize=n=>deserializer(new Map,n)(0),EMPTY="",{toString}={},{keys}=Object,typeOf=n=>{const i=typeof n;if(i!=="object"||!n)return[PRIMITIVE,i];const l=toString.call(n).slice(8,-1);switch(l){case"Array":return[ARRAY,EMPTY];case"Object":return[OBJECT,EMPTY];case"Date":return[DATE,EMPTY];case"RegExp":return[REGEXP,EMPTY];case"Map":return[MAP,EMPTY];case"Set":return[SET,EMPTY];case"DataView":return[ARRAY,l]}return l.includes("Array")?[ARRAY,l]:l.includes("Error")?[ERROR,l]:[OBJECT,l]},shouldSkip=([n,i])=>n===PRIMITIVE&&(i==="function"||i==="symbol"),serializer=(n,i,l,a)=>{const o=(c,h)=>{const m=a.push(c)-1;return l.set(h,m),m},s=c=>{if(l.has(c))return l.get(c);let[h,m]=typeOf(c);switch(h){case PRIMITIVE:{let y=c;switch(m){case"bigint":h=BIGINT,y=c.toString();break;case"function":case"symbol":if(n)throw new TypeError("unable to serialize "+m);y=null;break;case"undefined":return o([VOID],c)}return o([h,y],c)}case ARRAY:{if(m){let b=c;return m==="DataView"?b=new Uint8Array(c.buffer):m==="ArrayBuffer"&&(b=new Uint8Array(c)),o([m,[...b]],c)}const y=[],x=o([h,y],c);for(const b of c)y.push(s(b));return x}case OBJECT:{if(m)switch(m){case"BigInt":return o([m,c.toString()],c);case"Boolean":case"Number":case"String":return o([m,c.valueOf()],c)}if(i&&"toJSON"in c)return s(c.toJSON());const y=[],x=o([h,y],c);for(const b of keys(c))(n||!shouldSkip(typeOf(c[b])))&&y.push([s(b),s(c[b])]);return x}case DATE:return o([h,c.toISOString()],c);case REGEXP:{const{source:y,flags:x}=c;return o([h,{source:y,flags:x}],c)}case MAP:{const y=[],x=o([h,y],c);for(const[b,k]of c)(n||!(shouldSkip(typeOf(b))||shouldSkip(typeOf(k))))&&y.push([s(b),s(k)]);return x}case SET:{const y=[],x=o([h,y],c);for(const b of c)(n||!shouldSkip(typeOf(b)))&&y.push(s(b));return x}}const{message:p}=c;return o([h,{name:m,message:p}],c)};return s},serialize$1=(n,{json:i,lossy:l}={})=>{const a=[];return serializer(!(i||l),!!i,new Map,a)(n),a},structuredClone$1=typeof structuredClone=="function"?(n,i)=>i&&("json"in i||"lossy"in i)?deserialize(serialize$1(n,i)):structuredClone(n):(n,i)=>deserialize(serialize$1(n,i));function defaultFootnoteBackContent(n,i){const l=[{type:"text",value:"↩"}];return i>1&&l.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(i)}]}),l}function defaultFootnoteBackLabel(n,i){return"Back to reference "+(n+1)+(i>1?"-"+i:"")}function footer(n){const i=typeof n.options.clobberPrefix=="string"?n.options.clobberPrefix:"user-content-",l=n.options.footnoteBackContent||defaultFootnoteBackContent,a=n.options.footnoteBackLabel||defaultFootnoteBackLabel,o=n.options.footnoteLabel||"Footnotes",s=n.options.footnoteLabelTagName||"h2",c=n.options.footnoteLabelProperties||{className:["sr-only"]},h=[];let m=-1;for(;++m<n.footnoteOrder.length;){const p=n.footnoteById.get(n.footnoteOrder[m]);if(!p)continue;const y=n.all(p),x=String(p.identifier).toUpperCase(),b=normalizeUri(x.toLowerCase());let k=0;const T=[],q=n.footnoteCounts.get(x);for(;q!==void 0&&++k<=q;){T.length>0&&T.push({type:"text",value:" "});let ne=typeof l=="string"?l:l(m,k);typeof ne=="string"&&(ne={type:"text",value:ne}),T.push({type:"element",tagName:"a",properties:{href:"#"+i+"fnref-"+b+(k>1?"-"+k:""),dataFootnoteBackref:"",ariaLabel:typeof a=="string"?a:a(m,k),className:["data-footnote-backref"]},children:Array.isArray(ne)?ne:[ne]})}const P=y[y.length-1];if(P&&P.type==="element"&&P.tagName==="p"){const ne=P.children[P.children.length-1];ne&&ne.type==="text"?ne.value+=" ":P.children.push({type:"text",value:" "}),P.children.push(...T)}else y.push(...T);const L={type:"element",tagName:"li",properties:{id:i+"fn-"+b},children:n.wrap(y,!0)};n.patch(p,L),h.push(L)}if(h.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...structuredClone$1(c),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:`
|
|
57
|
-
`},{type:"element",tagName:"ol",properties:{},children:n.wrap(h,!0)},{type:"text",value:`
|
|
58
|
-
`}]}}const convert=(function(n){if(n==null)return ok;if(typeof n=="function")return castFactory(n);if(typeof n=="object")return Array.isArray(n)?anyFactory(n):propertiesFactory(n);if(typeof n=="string")return typeFactory(n);throw new Error("Expected function, string, or object as test")});function anyFactory(n){const i=[];let l=-1;for(;++l<n.length;)i[l]=convert(n[l]);return castFactory(a);function a(...o){let s=-1;for(;++s<i.length;)if(i[s].apply(this,o))return!0;return!1}}function propertiesFactory(n){const i=n;return castFactory(l);function l(a){const o=a;let s;for(s in n)if(o[s]!==i[s])return!1;return!0}}function typeFactory(n){return castFactory(i);function i(l){return l&&l.type===n}}function castFactory(n){return i;function i(l,a,o){return!!(looksLikeANode(l)&&n.call(this,l,typeof a=="number"?a:void 0,o||void 0))}}function ok(){return!0}function looksLikeANode(n){return n!==null&&typeof n=="object"&&"type"in n}function color(n){return n}const empty=[],CONTINUE=!0,EXIT=!1,SKIP="skip";function visitParents(n,i,l,a){let o;typeof i=="function"&&typeof l!="function"?(a=l,l=i):o=i;const s=convert(o),c=a?-1:1;h(n,void 0,[])();function h(m,p,y){const x=m&&typeof m=="object"?m:{};if(typeof x.type=="string"){const k=typeof x.tagName=="string"?x.tagName:typeof x.name=="string"?x.name:void 0;Object.defineProperty(b,"name",{value:"node ("+(m.type+(k?"<"+k+">":""))+")"})}return b;function b(){let k=empty,T,q,P;if((!i||s(m,p,y[y.length-1]||void 0))&&(k=toResult(l(m,y)),k[0]===EXIT))return k;if("children"in m&&m.children){const L=m;if(L.children&&k[0]!==SKIP)for(q=(a?L.children.length:-1)+c,P=y.concat(L);q>-1&&q<L.children.length;){const ne=L.children[q];if(T=h(ne,q,P)(),T[0]===EXIT)return T;q=typeof T[1]=="number"?T[1]:q+c}}return k}}}function toResult(n){return Array.isArray(n)?n:typeof n=="number"?[CONTINUE,n]:n==null?empty:[n]}function visit(n,i,l,a){let o,s,c;typeof i=="function"&&typeof l!="function"?(s=void 0,c=i,o=l):(s=i,c=l,o=a),visitParents(n,s,h,o);function h(m,p){const y=p[p.length-1],x=y?y.children.indexOf(m):void 0;return c(m,x,y)}}const own$1={}.hasOwnProperty,emptyOptions$1={};function createState(n,i){const l=i||emptyOptions$1,a=new Map,o=new Map,s=new Map,c={...handlers,...l.handlers},h={all:p,applyData,definitionById:a,footnoteById:o,footnoteCounts:s,footnoteOrder:[],handlers:c,one:m,options:l,patch,wrap:wrap$1};return visit(n,function(y){if(y.type==="definition"||y.type==="footnoteDefinition"){const x=y.type==="definition"?a:o,b=String(y.identifier).toUpperCase();x.has(b)||x.set(b,y)}}),h;function m(y,x){const b=y.type,k=h.handlers[b];if(own$1.call(h.handlers,b)&&k)return k(h,y,x);if(h.options.passThrough&&h.options.passThrough.includes(b)){if("children"in y){const{children:q,...P}=y,L=structuredClone$1(P);return L.children=h.all(y),L}return structuredClone$1(y)}return(h.options.unknownHandler||defaultUnknownHandler)(h,y,x)}function p(y){const x=[];if("children"in y){const b=y.children;let k=-1;for(;++k<b.length;){const T=h.one(b[k],y);if(T){if(k&&b[k-1].type==="break"&&(!Array.isArray(T)&&T.type==="text"&&(T.value=trimMarkdownSpaceStart(T.value)),!Array.isArray(T)&&T.type==="element")){const q=T.children[0];q&&q.type==="text"&&(q.value=trimMarkdownSpaceStart(q.value))}Array.isArray(T)?x.push(...T):x.push(T)}}}return x}}function patch(n,i){n.position&&(i.position=position$1(n))}function applyData(n,i){let l=i;if(n&&n.data){const a=n.data.hName,o=n.data.hChildren,s=n.data.hProperties;if(typeof a=="string")if(l.type==="element")l.tagName=a;else{const c="children"in l?l.children:[l];l={type:"element",tagName:a,properties:{},children:c}}l.type==="element"&&s&&Object.assign(l.properties,structuredClone$1(s)),"children"in l&&l.children&&o!==null&&o!==void 0&&(l.children=o)}return l}function defaultUnknownHandler(n,i){const l=i.data||{},a="value"in i&&!(own$1.call(l,"hProperties")||own$1.call(l,"hChildren"))?{type:"text",value:i.value}:{type:"element",tagName:"div",properties:{},children:n.all(i)};return n.patch(i,a),n.applyData(i,a)}function wrap$1(n,i){const l=[];let a=-1;for(i&&l.push({type:"text",value:`
|
|
59
|
-
`});++a<n.length;)a&&l.push({type:"text",value:`
|
|
60
|
-
`}),l.push(n[a]);return i&&n.length>0&&l.push({type:"text",value:`
|
|
61
|
-
`}),l}function trimMarkdownSpaceStart(n){let i=0,l=n.charCodeAt(i);for(;l===9||l===32;)i++,l=n.charCodeAt(i);return n.slice(i)}function toHast(n,i){const l=createState(n,i),a=l.one(n,void 0),o=footer(l),s=Array.isArray(a)?{type:"root",children:a}:a||{type:"root",children:[]};return o&&s.children.push({type:"text",value:`
|
|
62
|
-
`},o),s}function remarkRehype(n,i){return n&&"run"in n?async function(l,a){const o=toHast(l,{file:a,...i});await n.run(o,a)}:function(l,a){return toHast(l,{file:a,...n||i})}}function bail(n){if(n)throw n}var extend$1,hasRequiredExtend;function requireExtend(){if(hasRequiredExtend)return extend$1;hasRequiredExtend=1;var n=Object.prototype.hasOwnProperty,i=Object.prototype.toString,l=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=function(p){return typeof Array.isArray=="function"?Array.isArray(p):i.call(p)==="[object Array]"},s=function(p){if(!p||i.call(p)!=="[object Object]")return!1;var y=n.call(p,"constructor"),x=p.constructor&&p.constructor.prototype&&n.call(p.constructor.prototype,"isPrototypeOf");if(p.constructor&&!y&&!x)return!1;var b;for(b in p);return typeof b>"u"||n.call(p,b)},c=function(p,y){l&&y.name==="__proto__"?l(p,y.name,{enumerable:!0,configurable:!0,value:y.newValue,writable:!0}):p[y.name]=y.newValue},h=function(p,y){if(y==="__proto__")if(n.call(p,y)){if(a)return a(p,y).value}else return;return p[y]};return extend$1=function m(){var p,y,x,b,k,T,q=arguments[0],P=1,L=arguments.length,ne=!1;for(typeof q=="boolean"&&(ne=q,q=arguments[1]||{},P=2),(q==null||typeof q!="object"&&typeof q!="function")&&(q={});P<L;++P)if(p=arguments[P],p!=null)for(y in p)x=h(q,y),b=h(p,y),q!==b&&(ne&&b&&(s(b)||(k=o(b)))?(k?(k=!1,T=x&&o(x)?x:[]):T=x&&s(x)?x:{},c(q,{name:y,newValue:m(ne,T,b)})):typeof b<"u"&&c(q,{name:y,newValue:b}));return q},extend$1}var extendExports=requireExtend();const extend=getDefaultExportFromCjs(extendExports);function isPlainObject(n){if(typeof n!="object"||n===null)return!1;const i=Object.getPrototypeOf(n);return(i===null||i===Object.prototype||Object.getPrototypeOf(i)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)}function trough(){const n=[],i={run:l,use:a};return i;function l(...o){let s=-1;const c=o.pop();if(typeof c!="function")throw new TypeError("Expected function as last argument, not "+c);h(null,...o);function h(m,...p){const y=n[++s];let x=-1;if(m){c(m);return}for(;++x<o.length;)(p[x]===null||p[x]===void 0)&&(p[x]=o[x]);o=p,y?wrap(y,h)(...p):c(null,...p)}}function a(o){if(typeof o!="function")throw new TypeError("Expected `middelware` to be a function, not "+o);return n.push(o),i}}function wrap(n,i){let l;return a;function a(...c){const h=n.length>c.length;let m;h&&c.push(o);try{m=n.apply(this,c)}catch(p){const y=p;if(h&&l)throw y;return o(y)}h||(m&&m.then&&typeof m.then=="function"?m.then(s,o):m instanceof Error?o(m):s(m))}function o(c,...h){l||(l=!0,i(c,...h))}function s(c){o(null,c)}}const minpath={basename,dirname,extname,join,sep:"/"};function basename(n,i){if(i!==void 0&&typeof i!="string")throw new TypeError('"ext" argument must be a string');assertPath$1(n);let l=0,a=-1,o=n.length,s;if(i===void 0||i.length===0||i.length>n.length){for(;o--;)if(n.codePointAt(o)===47){if(s){l=o+1;break}}else a<0&&(s=!0,a=o+1);return a<0?"":n.slice(l,a)}if(i===n)return"";let c=-1,h=i.length-1;for(;o--;)if(n.codePointAt(o)===47){if(s){l=o+1;break}}else c<0&&(s=!0,c=o+1),h>-1&&(n.codePointAt(o)===i.codePointAt(h--)?h<0&&(a=o):(h=-1,a=c));return l===a?a=c:a<0&&(a=n.length),n.slice(l,a)}function dirname(n){if(assertPath$1(n),n.length===0)return".";let i=-1,l=n.length,a;for(;--l;)if(n.codePointAt(l)===47){if(a){i=l;break}}else a||(a=!0);return i<0?n.codePointAt(0)===47?"/":".":i===1&&n.codePointAt(0)===47?"//":n.slice(0,i)}function extname(n){assertPath$1(n);let i=n.length,l=-1,a=0,o=-1,s=0,c;for(;i--;){const h=n.codePointAt(i);if(h===47){if(c){a=i+1;break}continue}l<0&&(c=!0,l=i+1),h===46?o<0?o=i:s!==1&&(s=1):o>-1&&(s=-1)}return o<0||l<0||s===0||s===1&&o===l-1&&o===a+1?"":n.slice(o,l)}function join(...n){let i=-1,l;for(;++i<n.length;)assertPath$1(n[i]),n[i]&&(l=l===void 0?n[i]:l+"/"+n[i]);return l===void 0?".":normalize(l)}function normalize(n){assertPath$1(n);const i=n.codePointAt(0)===47;let l=normalizeString(n,!i);return l.length===0&&!i&&(l="."),l.length>0&&n.codePointAt(n.length-1)===47&&(l+="/"),i?"/"+l:l}function normalizeString(n,i){let l="",a=0,o=-1,s=0,c=-1,h,m;for(;++c<=n.length;){if(c<n.length)h=n.codePointAt(c);else{if(h===47)break;h=47}if(h===47){if(!(o===c-1||s===1))if(o!==c-1&&s===2){if(l.length<2||a!==2||l.codePointAt(l.length-1)!==46||l.codePointAt(l.length-2)!==46){if(l.length>2){if(m=l.lastIndexOf("/"),m!==l.length-1){m<0?(l="",a=0):(l=l.slice(0,m),a=l.length-1-l.lastIndexOf("/")),o=c,s=0;continue}}else if(l.length>0){l="",a=0,o=c,s=0;continue}}i&&(l=l.length>0?l+"/..":"..",a=2)}else l.length>0?l+="/"+n.slice(o+1,c):l=n.slice(o+1,c),a=c-o-1;o=c,s=0}else h===46&&s>-1?s++:s=-1}return l}function assertPath$1(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}const minproc={cwd};function cwd(){return"/"}function isUrl(n){return!!(n!==null&&typeof n=="object"&&"href"in n&&n.href&&"protocol"in n&&n.protocol&&n.auth===void 0)}function urlToPath(n){if(typeof n=="string")n=new URL(n);else if(!isUrl(n)){const i=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+n+"`");throw i.code="ERR_INVALID_ARG_TYPE",i}if(n.protocol!=="file:"){const i=new TypeError("The URL must be of scheme file");throw i.code="ERR_INVALID_URL_SCHEME",i}return getPathFromURLPosix(n)}function getPathFromURLPosix(n){if(n.hostname!==""){const a=new TypeError('File URL host must be "localhost" or empty on darwin');throw a.code="ERR_INVALID_FILE_URL_HOST",a}const i=n.pathname;let l=-1;for(;++l<i.length;)if(i.codePointAt(l)===37&&i.codePointAt(l+1)===50){const a=i.codePointAt(l+2);if(a===70||a===102){const o=new TypeError("File URL path must not include encoded / characters");throw o.code="ERR_INVALID_FILE_URL_PATH",o}}return decodeURIComponent(i)}const order=["history","path","basename","stem","extname","dirname"];class VFile{constructor(i){let l;i?isUrl(i)?l={path:i}:typeof i=="string"||isUint8Array$1(i)?l={value:i}:l=i:l={},this.cwd="cwd"in l?"":minproc.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let a=-1;for(;++a<order.length;){const s=order[a];s in l&&l[s]!==void 0&&l[s]!==null&&(this[s]=s==="history"?[...l[s]]:l[s])}let o;for(o in l)order.includes(o)||(this[o]=l[o])}get basename(){return typeof this.path=="string"?minpath.basename(this.path):void 0}set basename(i){assertNonEmpty(i,"basename"),assertPart(i,"basename"),this.path=minpath.join(this.dirname||"",i)}get dirname(){return typeof this.path=="string"?minpath.dirname(this.path):void 0}set dirname(i){assertPath(this.basename,"dirname"),this.path=minpath.join(i||"",this.basename)}get extname(){return typeof this.path=="string"?minpath.extname(this.path):void 0}set extname(i){if(assertPart(i,"extname"),assertPath(this.dirname,"extname"),i){if(i.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(i.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=minpath.join(this.dirname,this.stem+(i||""))}get path(){return this.history[this.history.length-1]}set path(i){isUrl(i)&&(i=urlToPath(i)),assertNonEmpty(i,"path"),this.path!==i&&this.history.push(i)}get stem(){return typeof this.path=="string"?minpath.basename(this.path,this.extname):void 0}set stem(i){assertNonEmpty(i,"stem"),assertPart(i,"stem"),this.path=minpath.join(this.dirname||"",i+(this.extname||""))}fail(i,l,a){const o=this.message(i,l,a);throw o.fatal=!0,o}info(i,l,a){const o=this.message(i,l,a);return o.fatal=void 0,o}message(i,l,a){const o=new VFileMessage(i,l,a);return this.path&&(o.name=this.path+":"+o.name,o.file=this.path),o.fatal=!1,this.messages.push(o),o}toString(i){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(i||void 0).decode(this.value)}}function assertPart(n,i){if(n&&n.includes(minpath.sep))throw new Error("`"+i+"` cannot be a path: did not expect `"+minpath.sep+"`")}function assertNonEmpty(n,i){if(!n)throw new Error("`"+i+"` cannot be empty")}function assertPath(n,i){if(!n)throw new Error("Setting `"+i+"` requires `path` to be set too")}function isUint8Array$1(n){return!!(n&&typeof n=="object"&&"byteLength"in n&&"byteOffset"in n)}const CallableInstance=(function(n){const a=this.constructor.prototype,o=a[n],s=function(){return o.apply(s,arguments)};return Object.setPrototypeOf(s,a),s}),own={}.hasOwnProperty;class Processor extends CallableInstance{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=trough()}copy(){const i=new Processor;let l=-1;for(;++l<this.attachers.length;){const a=this.attachers[l];i.use(...a)}return i.data(extend(!0,{},this.namespace)),i}data(i,l){return typeof i=="string"?arguments.length===2?(assertUnfrozen("data",this.frozen),this.namespace[i]=l,this):own.call(this.namespace,i)&&this.namespace[i]||void 0:i?(assertUnfrozen("data",this.frozen),this.namespace=i,this):this.namespace}freeze(){if(this.frozen)return this;const i=this;for(;++this.freezeIndex<this.attachers.length;){const[l,...a]=this.attachers[this.freezeIndex];if(a[0]===!1)continue;a[0]===!0&&(a[0]=void 0);const o=l.call(i,...a);typeof o=="function"&&this.transformers.use(o)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(i){this.freeze();const l=vfile(i),a=this.parser||this.Parser;return assertParser("parse",a),a(String(l),l)}process(i,l){const a=this;return this.freeze(),assertParser("process",this.parser||this.Parser),assertCompiler("process",this.compiler||this.Compiler),l?o(void 0,l):new Promise(o);function o(s,c){const h=vfile(i),m=a.parse(h);a.run(m,h,function(y,x,b){if(y||!x||!b)return p(y);const k=x,T=a.stringify(k,b);looksLikeAValue(T)?b.value=T:b.result=T,p(y,b)});function p(y,x){y||!x?c(y):s?s(x):l(void 0,x)}}}processSync(i){let l=!1,a;return this.freeze(),assertParser("processSync",this.parser||this.Parser),assertCompiler("processSync",this.compiler||this.Compiler),this.process(i,o),assertDone("processSync","process",l),a;function o(s,c){l=!0,bail(s),a=c}}run(i,l,a){assertNode(i),this.freeze();const o=this.transformers;return!a&&typeof l=="function"&&(a=l,l=void 0),a?s(void 0,a):new Promise(s);function s(c,h){const m=vfile(l);o.run(i,m,p);function p(y,x,b){const k=x||i;y?h(y):c?c(k):a(void 0,k,b)}}}runSync(i,l){let a=!1,o;return this.run(i,l,s),assertDone("runSync","run",a),o;function s(c,h){bail(c),o=h,a=!0}}stringify(i,l){this.freeze();const a=vfile(l),o=this.compiler||this.Compiler;return assertCompiler("stringify",o),assertNode(i),o(i,a)}use(i,...l){const a=this.attachers,o=this.namespace;if(assertUnfrozen("use",this.frozen),i!=null)if(typeof i=="function")m(i,l);else if(typeof i=="object")Array.isArray(i)?h(i):c(i);else throw new TypeError("Expected usable value, not `"+i+"`");return this;function s(p){if(typeof p=="function")m(p,[]);else if(typeof p=="object")if(Array.isArray(p)){const[y,...x]=p;m(y,x)}else c(p);else throw new TypeError("Expected usable value, not `"+p+"`")}function c(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");h(p.plugins),p.settings&&(o.settings=extend(!0,o.settings,p.settings))}function h(p){let y=-1;if(p!=null)if(Array.isArray(p))for(;++y<p.length;){const x=p[y];s(x)}else throw new TypeError("Expected a list of plugins, not `"+p+"`")}function m(p,y){let x=-1,b=-1;for(;++x<a.length;)if(a[x][0]===p){b=x;break}if(b===-1)a.push([p,...y]);else if(y.length>0){let[k,...T]=y;const q=a[b][1];isPlainObject(q)&&isPlainObject(k)&&(k=extend(!0,q,k)),a[b]=[p,k,...T]}}}}const unified=new Processor().freeze();function assertParser(n,i){if(typeof i!="function")throw new TypeError("Cannot `"+n+"` without `parser`")}function assertCompiler(n,i){if(typeof i!="function")throw new TypeError("Cannot `"+n+"` without `compiler`")}function assertUnfrozen(n,i){if(i)throw new Error("Cannot call `"+n+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function assertNode(n){if(!isPlainObject(n)||typeof n.type!="string")throw new TypeError("Expected node, got `"+n+"`")}function assertDone(n,i,l){if(!l)throw new Error("`"+n+"` finished async. Use `"+i+"` instead")}function vfile(n){return looksLikeAVFile(n)?n:new VFile(n)}function looksLikeAVFile(n){return!!(n&&typeof n=="object"&&"message"in n&&"messages"in n)}function looksLikeAValue(n){return typeof n=="string"||isUint8Array(n)}function isUint8Array(n){return!!(n&&typeof n=="object"&&"byteLength"in n&&"byteOffset"in n)}const changelog="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",emptyPlugins=[],emptyRemarkRehypeOptions={allowDangerousHtml:!0},safeProtocol=/^(https?|ircs?|mailto|xmpp)$/i,deprecations=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Markdown(n){const i=createProcessor(n),l=createFile(n);return post(i.runSync(i.parse(l),l),n)}function createProcessor(n){const i=n.rehypePlugins||emptyPlugins,l=n.remarkPlugins||emptyPlugins,a=n.remarkRehypeOptions?{...n.remarkRehypeOptions,...emptyRemarkRehypeOptions}:emptyRemarkRehypeOptions;return unified().use(remarkParse).use(l).use(remarkRehype,a).use(i)}function createFile(n){const i=n.children||"",l=new VFile;return typeof i=="string"&&(l.value=i),l}function post(n,i){const l=i.allowedElements,a=i.allowElement,o=i.components,s=i.disallowedElements,c=i.skipHtml,h=i.unwrapDisallowed,m=i.urlTransform||defaultUrlTransform;for(const y of deprecations)Object.hasOwn(i,y.from)&&(""+y.from+(y.to?"use `"+y.to+"` instead":"remove it")+changelog+y.id,void 0);return i.className&&(n={type:"element",tagName:"div",properties:{className:i.className},children:n.type==="root"?n.children:[n]}),visit(n,p),toJsxRuntime(n,{Fragment:jsxRuntimeExports.Fragment,components:o,ignoreInvalidStyle:!0,jsx:jsxRuntimeExports.jsx,jsxs:jsxRuntimeExports.jsxs,passKeys:!0,passNode:!0});function p(y,x,b){if(y.type==="raw"&&b&&typeof x=="number")return c?b.children.splice(x,1):b.children[x]={type:"text",value:y.value},x;if(y.type==="element"){let k;for(k in urlAttributes)if(Object.hasOwn(urlAttributes,k)&&Object.hasOwn(y.properties,k)){const T=y.properties[k],q=urlAttributes[k];(q===null||q.includes(y.tagName))&&(y.properties[k]=m(String(T||""),k,y))}}if(y.type==="element"){let k=l?!l.includes(y.tagName):s?s.includes(y.tagName):!1;if(!k&&a&&typeof x=="number"&&(k=!a(y,x,b)),k&&b&&typeof x=="number")return h&&y.children?b.children.splice(x,1,...y.children):b.children.splice(x,1),x}}}function defaultUrlTransform(n){const i=n.indexOf(":"),l=n.indexOf("?"),a=n.indexOf("#"),o=n.indexOf("/");return i===-1||o!==-1&&i>o||l!==-1&&i>l||a!==-1&&i>a||safeProtocol.test(n.slice(0,i))?n:""}function MarkdownContent({source:n}){const i=useClappState(n);return i?jsxRuntimeExports.jsx("div",{className:"clapp-markdown",children:jsxRuntimeExports.jsx(Markdown,{children:i})}):jsxRuntimeExports.jsx("div",{className:"clapp-empty",children:"No content selected"})}function Card({title:n,children:i}){return jsxRuntimeExports.jsxs("div",{className:"clapp-card",children:[n&&jsxRuntimeExports.jsx("div",{className:"clapp-card-header",children:n}),jsxRuntimeExports.jsx("div",{className:"clapp-card-body",children:i})]})}const FormContext=reactExports.createContext(null);function useFormContext(){return reactExports.useContext(FormContext)}function TextInput({name:n,placeholder:i,type:l="text"}){const a=useFormContext(),o=(a==null?void 0:a.values.get(n))??"";return jsxRuntimeExports.jsx("input",{type:l,className:"clapp-input",name:n,placeholder:i,value:o,onChange:s=>a==null?void 0:a.setValue(n,s.target.value),onKeyDown:s=>{s.key==="Enter"&&(s.preventDefault(),a==null||a.submit())}})}function IntentForm({intent:n,submitLabel:i="Submit",children:l}){const{emit:a}=useIntent(),[o,s]=reactExports.useState(()=>new Map),c=reactExports.useCallback((p,y)=>{s(x=>{const b=new Map(x);return b.set(p,y),b})},[]),h=reactExports.useCallback(()=>{const p={};for(const[y,x]of o)p[y]=x;a(n,p),s(new Map)},[o,a,n]),m=reactExports.useMemo(()=>({values:o,setValue:c,submit:h}),[o,c,h]);return jsxRuntimeExports.jsx(FormContext.Provider,{value:m,children:jsxRuntimeExports.jsxs("form",{className:"clapp-form",onSubmit:p=>{p.preventDefault(),h()},children:[l,i&&jsxRuntimeExports.jsx("button",{type:"submit",className:"clapp-btn clapp-btn-default clapp-btn-md",children:i})]})})}const componentMap={Column,Row,Heading,IntentButton,Icon,List,ListItem,Conditional,Skeleton,MarkdownContent,Card,TextInput,IntentForm};function LayoutNodeRenderer({node:n,moduleMap:i}){if(n.component==="Module"&&n.props.ref&&i){const o=String(n.props.ref),s=i.get(o);return s?jsxRuntimeExports.jsx(LayoutNodeRenderer,{node:s,moduleMap:i}):jsxRuntimeExports.jsxs("div",{className:"clapp-error",children:["Module not found: ",o]})}const l=componentMap[n.component];if(!l)return jsxRuntimeExports.jsxs("div",{className:"clapp-error",children:["Unknown component: ",n.component]});const a=n.children.map((o,s)=>typeof o=="string"?jsxRuntimeExports.jsx("span",{children:o},s):jsxRuntimeExports.jsx(LayoutNodeRenderer,{node:o,moduleMap:i},s));return jsxRuntimeExports.jsx(l,{...n.props,children:a})}function AppRenderer({spec:n,modules:i}){const l=reactExports.useMemo(()=>{const a=new Map;for(const o of i)a.set(`${o.domain}/${o.name}`,o.layout);return a},[i]);return jsxRuntimeExports.jsx("div",{className:"clapp-app","data-app":n.name,children:jsxRuntimeExports.jsx(LayoutNodeRenderer,{node:n.layout,moduleMap:l})})}function parseLayoutDSL(n){const i=n.split(`
|
|
63
|
-
`).filter(a=>a.trim().length>0);if(i.length===0)throw new Error("Empty layout DSL");const l=i.map(parseLine);return buildTree(l)}function parseLine(n){const i=n.replace(/\t/g," "),l=i.length-i.trimStart().length,a=i.trim(),o=a.match(/^(\w+)(?:\(([^)]*)\))?:\s*(?:"([^"]*)"|\{\{\s*([^}]+)\s*\}\})?$/);if(!o){const m=a.match(/^(\w+)(?:\(([^)]*)\))?$/);if(m)return{indent:l,component:m[1],props:parseProps(m[2]||""),textContent:null};const p=a.match(/^"([^"]*)"$/);if(p)return{indent:l,component:"__text__",props:{},textContent:p[1]};throw new Error(`Invalid layout DSL line: "${a}"`)}const s=o[1],c=o[2]||"",h=o[3]??(o[4]?`{{ ${o[4].trim()} }}`:null);return{indent:l,component:s,props:parseProps(c),textContent:h}}function parseProps(n){if(!n.trim())return{};const i={},l=n.split(/,\s*/);for(const a of l){const o=a.indexOf("=");if(o===-1)continue;const s=a.slice(0,o).trim(),c=a.slice(o+1).trim();c==="true"?i[s]=!0:c==="false"?i[s]=!1:/^\d+(\.\d+)?$/.test(c)?i[s]=Number(c):i[s]=c}return i}function buildTree(n){if(n.length===0)throw new Error("No lines to build tree from");const i=n[0].indent;function l(s,c){const h=[];let m=s;for(;m<n.length;){const p=n[m],y=p.indent-i;if(y<=c&&m>s)break;if(y===c+2||c===-2&&y===0){if(p.component==="__text__"&&p.textContent!==null){h.push(p.textContent),m++;continue}const x={component:p.component,props:{...p.props},children:[]};if(p.textContent!==null&&x.children.push(p.textContent),m++,m<n.length&&n[m].indent-i>y){const b=l(m,y);x.children.push(...b.nodes),m=b.nextIdx}h.push(x)}else m++}return{nodes:h,nextIdx:m}}const a=n[0],o={component:a.component,props:{...a.props},children:[]};if(a.textContent!==null&&o.children.push(a.textContent),n.length>1){const s=l(1,0);o.children.push(...s.nodes)}return o}const __viteBrowserExternal={},__viteBrowserExternal$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$0=getAugmentedNamespace(__viteBrowserExternal$1);var kindOf,hasRequiredKindOf;function requireKindOf(){if(hasRequiredKindOf)return kindOf;hasRequiredKindOf=1;var n=Object.prototype.toString;kindOf=function(x){if(x===void 0)return"undefined";if(x===null)return"null";var b=typeof x;if(b==="boolean")return"boolean";if(b==="string")return"string";if(b==="number")return"number";if(b==="symbol")return"symbol";if(b==="function")return c(x)?"generatorfunction":"function";if(l(x))return"array";if(p(x))return"buffer";if(m(x))return"arguments";if(o(x))return"date";if(a(x))return"error";if(s(x))return"regexp";switch(i(x)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(h(x))return"generator";switch(b=n.call(x),b){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return b.slice(8,-1).toLowerCase().replace(/\s/g,"")};function i(y){return typeof y.constructor=="function"?y.constructor.name:null}function l(y){return Array.isArray?Array.isArray(y):y instanceof Array}function a(y){return y instanceof Error||typeof y.message=="string"&&y.constructor&&typeof y.constructor.stackTraceLimit=="number"}function o(y){return y instanceof Date?!0:typeof y.toDateString=="function"&&typeof y.getDate=="function"&&typeof y.setDate=="function"}function s(y){return y instanceof RegExp?!0:typeof y.flags=="string"&&typeof y.ignoreCase=="boolean"&&typeof y.multiline=="boolean"&&typeof y.global=="boolean"}function c(y,x){return i(y)==="GeneratorFunction"}function h(y){return typeof y.throw=="function"&&typeof y.return=="function"&&typeof y.next=="function"}function m(y){try{if(typeof y.length=="number"&&typeof y.callee=="function")return!0}catch(x){if(x.message.indexOf("callee")!==-1)return!0}return!1}function p(y){return y.constructor&&typeof y.constructor.isBuffer=="function"?y.constructor.isBuffer(y):!1}return kindOf}/*!
|
|
64
|
-
* is-extendable <https://github.com/jonschlinkert/is-extendable>
|
|
65
|
-
*
|
|
66
|
-
* Copyright (c) 2015, Jon Schlinkert.
|
|
67
|
-
* Licensed under the MIT License.
|
|
68
|
-
*/var isExtendable,hasRequiredIsExtendable;function requireIsExtendable(){return hasRequiredIsExtendable||(hasRequiredIsExtendable=1,isExtendable=function(i){return typeof i<"u"&&i!==null&&(typeof i=="object"||typeof i=="function")}),isExtendable}var extendShallow,hasRequiredExtendShallow;function requireExtendShallow(){if(hasRequiredExtendShallow)return extendShallow;hasRequiredExtendShallow=1;var n=requireIsExtendable();extendShallow=function(o){n(o)||(o={});for(var s=arguments.length,c=1;c<s;c++){var h=arguments[c];n(h)&&i(o,h)}return o};function i(a,o){for(var s in o)l(o,s)&&(a[s]=o[s])}function l(a,o){return Object.prototype.hasOwnProperty.call(a,o)}return extendShallow}var sectionMatter,hasRequiredSectionMatter;function requireSectionMatter(){if(hasRequiredSectionMatter)return sectionMatter;hasRequiredSectionMatter=1;var n=requireKindOf(),i=requireExtendShallow();sectionMatter=function(m,p){typeof p=="function"&&(p={parse:p});var y=a(m),x={section_delimiter:"---",parse:c},b=i({},x,p),k=b.section_delimiter,T=y.content.split(/\r?\n/),q=null,P=s(),L=[],ne=[];function Q(Ee){y.content=Ee,q=[],L=[]}function ge(Ee){ne.length&&(P.key=o(ne[0],k),P.content=Ee,b.parse(P,q),q.push(P),P=s(),L=[],ne=[])}for(var pe=0;pe<T.length;pe++){var B=T[pe],ce=ne.length,be=B.trim();if(l(be,k)){if(be.length===3&&pe!==0){if(ce===0||ce===2){L.push(B);continue}ne.push(be),P.data=L.join(`
|
|
69
|
-
`),L=[];continue}q===null&&Q(L.join(`
|
|
70
|
-
`)),ce===2&&ge(L.join(`
|
|
71
|
-
`)),ne.push(be);continue}L.push(B)}return q===null?Q(L.join(`
|
|
72
|
-
`)):ge(L.join(`
|
|
73
|
-
`)),y.sections=q,y};function l(m,p){return!(m.slice(0,p.length)!==p||m.charAt(p.length+1)===p.slice(-1))}function a(m){if(n(m)!=="object"&&(m={content:m}),typeof m.content!="string"&&!h(m.content))throw new TypeError("expected a buffer or string");return m.content=m.content.toString(),m.sections=[],m}function o(m,p){return m?m.slice(p.length).trim():""}function s(){return{key:"",data:"",content:""}}function c(m){return m}function h(m){return m&&m.constructor&&typeof m.constructor.isBuffer=="function"?m.constructor.isBuffer(m):!1}return sectionMatter}var engines={exports:{}},jsYaml$1={},loader={},common={},hasRequiredCommon;function requireCommon(){if(hasRequiredCommon)return common;hasRequiredCommon=1;function n(c){return typeof c>"u"||c===null}function i(c){return typeof c=="object"&&c!==null}function l(c){return Array.isArray(c)?c:n(c)?[]:[c]}function a(c,h){var m,p,y,x;if(h)for(x=Object.keys(h),m=0,p=x.length;m<p;m+=1)y=x[m],c[y]=h[y];return c}function o(c,h){var m="",p;for(p=0;p<h;p+=1)m+=c;return m}function s(c){return c===0&&Number.NEGATIVE_INFINITY===1/c}return common.isNothing=n,common.isObject=i,common.toArray=l,common.repeat=o,common.isNegativeZero=s,common.extend=a,common}var exception,hasRequiredException;function requireException(){if(hasRequiredException)return exception;hasRequiredException=1;function n(i,l){Error.call(this),this.name="YAMLException",this.reason=i,this.mark=l,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n.prototype.toString=function(l){var a=this.name+": ";return a+=this.reason||"(unknown reason)",!l&&this.mark&&(a+=" "+this.mark.toString()),a},exception=n,exception}var mark,hasRequiredMark;function requireMark(){if(hasRequiredMark)return mark;hasRequiredMark=1;var n=requireCommon();function i(l,a,o,s,c){this.name=l,this.buffer=a,this.position=o,this.line=s,this.column=c}return i.prototype.getSnippet=function(a,o){var s,c,h,m,p;if(!this.buffer)return null;for(a=a||4,o=o||75,s="",c=this.position;c>0&&`\0\r
|
|
74
|
-
\u2028\u2029`.indexOf(this.buffer.charAt(c-1))===-1;)if(c-=1,this.position-c>o/2-1){s=" ... ",c+=5;break}for(h="",m=this.position;m<this.buffer.length&&`\0\r
|
|
75
|
-
\u2028\u2029`.indexOf(this.buffer.charAt(m))===-1;)if(m+=1,m-this.position>o/2-1){h=" ... ",m-=5;break}return p=this.buffer.slice(c,m),n.repeat(" ",a)+s+p+h+`
|
|
76
|
-
`+n.repeat(" ",a+this.position-c+s.length)+"^"},i.prototype.toString=function(a){var o,s="";return this.name&&(s+='in "'+this.name+'" '),s+="at line "+(this.line+1)+", column "+(this.column+1),a||(o=this.getSnippet(),o&&(s+=`:
|
|
77
|
-
`+o)),s},mark=i,mark}var type,hasRequiredType;function requireType(){if(hasRequiredType)return type;hasRequiredType=1;var n=requireException(),i=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],l=["scalar","sequence","mapping"];function a(s){var c={};return s!==null&&Object.keys(s).forEach(function(h){s[h].forEach(function(m){c[String(m)]=h})}),c}function o(s,c){if(c=c||{},Object.keys(c).forEach(function(h){if(i.indexOf(h)===-1)throw new n('Unknown option "'+h+'" is met in definition of "'+s+'" YAML type.')}),this.tag=s,this.kind=c.kind||null,this.resolve=c.resolve||function(){return!0},this.construct=c.construct||function(h){return h},this.instanceOf=c.instanceOf||null,this.predicate=c.predicate||null,this.represent=c.represent||null,this.defaultStyle=c.defaultStyle||null,this.styleAliases=a(c.styleAliases||null),l.indexOf(this.kind)===-1)throw new n('Unknown kind "'+this.kind+'" is specified for "'+s+'" YAML type.')}return type=o,type}var schema,hasRequiredSchema;function requireSchema(){if(hasRequiredSchema)return schema;hasRequiredSchema=1;var n=requireCommon(),i=requireException(),l=requireType();function a(c,h,m){var p=[];return c.include.forEach(function(y){m=a(y,h,m)}),c[h].forEach(function(y){m.forEach(function(x,b){x.tag===y.tag&&x.kind===y.kind&&p.push(b)}),m.push(y)}),m.filter(function(y,x){return p.indexOf(x)===-1})}function o(){var c={scalar:{},sequence:{},mapping:{},fallback:{}},h,m;function p(y){c[y.kind][y.tag]=c.fallback[y.tag]=y}for(h=0,m=arguments.length;h<m;h+=1)arguments[h].forEach(p);return c}function s(c){this.include=c.include||[],this.implicit=c.implicit||[],this.explicit=c.explicit||[],this.implicit.forEach(function(h){if(h.loadKind&&h.loadKind!=="scalar")throw new i("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=a(this,"implicit",[]),this.compiledExplicit=a(this,"explicit",[]),this.compiledTypeMap=o(this.compiledImplicit,this.compiledExplicit)}return s.DEFAULT=null,s.create=function(){var h,m;switch(arguments.length){case 1:h=s.DEFAULT,m=arguments[0];break;case 2:h=arguments[0],m=arguments[1];break;default:throw new i("Wrong number of arguments for Schema.create function")}if(h=n.toArray(h),m=n.toArray(m),!h.every(function(p){return p instanceof s}))throw new i("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!m.every(function(p){return p instanceof l}))throw new i("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new s({include:h,explicit:m})},schema=s,schema}var str,hasRequiredStr;function requireStr(){if(hasRequiredStr)return str;hasRequiredStr=1;var n=requireType();return str=new n("tag:yaml.org,2002:str",{kind:"scalar",construct:function(i){return i!==null?i:""}}),str}var seq,hasRequiredSeq;function requireSeq(){if(hasRequiredSeq)return seq;hasRequiredSeq=1;var n=requireType();return seq=new n("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(i){return i!==null?i:[]}}),seq}var map$2,hasRequiredMap;function requireMap(){if(hasRequiredMap)return map$2;hasRequiredMap=1;var n=requireType();return map$2=new n("tag:yaml.org,2002:map",{kind:"mapping",construct:function(i){return i!==null?i:{}}}),map$2}var failsafe,hasRequiredFailsafe;function requireFailsafe(){if(hasRequiredFailsafe)return failsafe;hasRequiredFailsafe=1;var n=requireSchema();return failsafe=new n({explicit:[requireStr(),requireSeq(),requireMap()]}),failsafe}var _null,hasRequired_null;function require_null(){if(hasRequired_null)return _null;hasRequired_null=1;var n=requireType();function i(o){if(o===null)return!0;var s=o.length;return s===1&&o==="~"||s===4&&(o==="null"||o==="Null"||o==="NULL")}function l(){return null}function a(o){return o===null}return _null=new n("tag:yaml.org,2002:null",{kind:"scalar",resolve:i,construct:l,predicate:a,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"}),_null}var bool,hasRequiredBool;function requireBool(){if(hasRequiredBool)return bool;hasRequiredBool=1;var n=requireType();function i(o){if(o===null)return!1;var s=o.length;return s===4&&(o==="true"||o==="True"||o==="TRUE")||s===5&&(o==="false"||o==="False"||o==="FALSE")}function l(o){return o==="true"||o==="True"||o==="TRUE"}function a(o){return Object.prototype.toString.call(o)==="[object Boolean]"}return bool=new n("tag:yaml.org,2002:bool",{kind:"scalar",resolve:i,construct:l,predicate:a,represent:{lowercase:function(o){return o?"true":"false"},uppercase:function(o){return o?"TRUE":"FALSE"},camelcase:function(o){return o?"True":"False"}},defaultStyle:"lowercase"}),bool}var int,hasRequiredInt;function requireInt(){if(hasRequiredInt)return int;hasRequiredInt=1;var n=requireCommon(),i=requireType();function l(m){return 48<=m&&m<=57||65<=m&&m<=70||97<=m&&m<=102}function a(m){return 48<=m&&m<=55}function o(m){return 48<=m&&m<=57}function s(m){if(m===null)return!1;var p=m.length,y=0,x=!1,b;if(!p)return!1;if(b=m[y],(b==="-"||b==="+")&&(b=m[++y]),b==="0"){if(y+1===p)return!0;if(b=m[++y],b==="b"){for(y++;y<p;y++)if(b=m[y],b!=="_"){if(b!=="0"&&b!=="1")return!1;x=!0}return x&&b!=="_"}if(b==="x"){for(y++;y<p;y++)if(b=m[y],b!=="_"){if(!l(m.charCodeAt(y)))return!1;x=!0}return x&&b!=="_"}for(;y<p;y++)if(b=m[y],b!=="_"){if(!a(m.charCodeAt(y)))return!1;x=!0}return x&&b!=="_"}if(b==="_")return!1;for(;y<p;y++)if(b=m[y],b!=="_"){if(b===":")break;if(!o(m.charCodeAt(y)))return!1;x=!0}return!x||b==="_"?!1:b!==":"?!0:/^(:[0-5]?[0-9])+$/.test(m.slice(y))}function c(m){var p=m,y=1,x,b,k=[];return p.indexOf("_")!==-1&&(p=p.replace(/_/g,"")),x=p[0],(x==="-"||x==="+")&&(x==="-"&&(y=-1),p=p.slice(1),x=p[0]),p==="0"?0:x==="0"?p[1]==="b"?y*parseInt(p.slice(2),2):p[1]==="x"?y*parseInt(p,16):y*parseInt(p,8):p.indexOf(":")!==-1?(p.split(":").forEach(function(T){k.unshift(parseInt(T,10))}),p=0,b=1,k.forEach(function(T){p+=T*b,b*=60}),y*p):y*parseInt(p,10)}function h(m){return Object.prototype.toString.call(m)==="[object Number]"&&m%1===0&&!n.isNegativeZero(m)}return int=new i("tag:yaml.org,2002:int",{kind:"scalar",resolve:s,construct:c,predicate:h,represent:{binary:function(m){return m>=0?"0b"+m.toString(2):"-0b"+m.toString(2).slice(1)},octal:function(m){return m>=0?"0"+m.toString(8):"-0"+m.toString(8).slice(1)},decimal:function(m){return m.toString(10)},hexadecimal:function(m){return m>=0?"0x"+m.toString(16).toUpperCase():"-0x"+m.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),int}var float,hasRequiredFloat;function requireFloat(){if(hasRequiredFloat)return float;hasRequiredFloat=1;var n=requireCommon(),i=requireType(),l=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function a(m){return!(m===null||!l.test(m)||m[m.length-1]==="_")}function o(m){var p,y,x,b;return p=m.replace(/_/g,"").toLowerCase(),y=p[0]==="-"?-1:1,b=[],"+-".indexOf(p[0])>=0&&(p=p.slice(1)),p===".inf"?y===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:p===".nan"?NaN:p.indexOf(":")>=0?(p.split(":").forEach(function(k){b.unshift(parseFloat(k,10))}),p=0,x=1,b.forEach(function(k){p+=k*x,x*=60}),y*p):y*parseFloat(p,10)}var s=/^[-+]?[0-9]+e/;function c(m,p){var y;if(isNaN(m))switch(p){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===m)switch(p){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===m)switch(p){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(n.isNegativeZero(m))return"-0.0";return y=m.toString(10),s.test(y)?y.replace("e",".e"):y}function h(m){return Object.prototype.toString.call(m)==="[object Number]"&&(m%1!==0||n.isNegativeZero(m))}return float=new i("tag:yaml.org,2002:float",{kind:"scalar",resolve:a,construct:o,predicate:h,represent:c,defaultStyle:"lowercase"}),float}var json,hasRequiredJson;function requireJson(){if(hasRequiredJson)return json;hasRequiredJson=1;var n=requireSchema();return json=new n({include:[requireFailsafe()],implicit:[require_null(),requireBool(),requireInt(),requireFloat()]}),json}var core,hasRequiredCore;function requireCore(){if(hasRequiredCore)return core;hasRequiredCore=1;var n=requireSchema();return core=new n({include:[requireJson()]}),core}var timestamp,hasRequiredTimestamp;function requireTimestamp(){if(hasRequiredTimestamp)return timestamp;hasRequiredTimestamp=1;var n=requireType(),i=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),l=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function a(c){return c===null?!1:i.exec(c)!==null||l.exec(c)!==null}function o(c){var h,m,p,y,x,b,k,T=0,q=null,P,L,ne;if(h=i.exec(c),h===null&&(h=l.exec(c)),h===null)throw new Error("Date resolve error");if(m=+h[1],p=+h[2]-1,y=+h[3],!h[4])return new Date(Date.UTC(m,p,y));if(x=+h[4],b=+h[5],k=+h[6],h[7]){for(T=h[7].slice(0,3);T.length<3;)T+="0";T=+T}return h[9]&&(P=+h[10],L=+(h[11]||0),q=(P*60+L)*6e4,h[9]==="-"&&(q=-q)),ne=new Date(Date.UTC(m,p,y,x,b,k,T)),q&&ne.setTime(ne.getTime()-q),ne}function s(c){return c.toISOString()}return timestamp=new n("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:a,construct:o,instanceOf:Date,represent:s}),timestamp}var merge,hasRequiredMerge;function requireMerge(){if(hasRequiredMerge)return merge;hasRequiredMerge=1;var n=requireType();function i(l){return l==="<<"||l===null}return merge=new n("tag:yaml.org,2002:merge",{kind:"scalar",resolve:i}),merge}function commonjsRequire(n){throw new Error('Could not dynamically require "'+n+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var binary,hasRequiredBinary;function requireBinary(){if(hasRequiredBinary)return binary;hasRequiredBinary=1;var n;try{var i=commonjsRequire;n=i("buffer").Buffer}catch{}var l=requireType(),a=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
78
|
-
\r`;function o(m){if(m===null)return!1;var p,y,x=0,b=m.length,k=a;for(y=0;y<b;y++)if(p=k.indexOf(m.charAt(y)),!(p>64)){if(p<0)return!1;x+=6}return x%8===0}function s(m){var p,y,x=m.replace(/[\r\n=]/g,""),b=x.length,k=a,T=0,q=[];for(p=0;p<b;p++)p%4===0&&p&&(q.push(T>>16&255),q.push(T>>8&255),q.push(T&255)),T=T<<6|k.indexOf(x.charAt(p));return y=b%4*6,y===0?(q.push(T>>16&255),q.push(T>>8&255),q.push(T&255)):y===18?(q.push(T>>10&255),q.push(T>>2&255)):y===12&&q.push(T>>4&255),n?n.from?n.from(q):new n(q):q}function c(m){var p="",y=0,x,b,k=m.length,T=a;for(x=0;x<k;x++)x%3===0&&x&&(p+=T[y>>18&63],p+=T[y>>12&63],p+=T[y>>6&63],p+=T[y&63]),y=(y<<8)+m[x];return b=k%3,b===0?(p+=T[y>>18&63],p+=T[y>>12&63],p+=T[y>>6&63],p+=T[y&63]):b===2?(p+=T[y>>10&63],p+=T[y>>4&63],p+=T[y<<2&63],p+=T[64]):b===1&&(p+=T[y>>2&63],p+=T[y<<4&63],p+=T[64],p+=T[64]),p}function h(m){return n&&n.isBuffer(m)}return binary=new l("tag:yaml.org,2002:binary",{kind:"scalar",resolve:o,construct:s,predicate:h,represent:c}),binary}var omap,hasRequiredOmap;function requireOmap(){if(hasRequiredOmap)return omap;hasRequiredOmap=1;var n=requireType(),i=Object.prototype.hasOwnProperty,l=Object.prototype.toString;function a(s){if(s===null)return!0;var c=[],h,m,p,y,x,b=s;for(h=0,m=b.length;h<m;h+=1){if(p=b[h],x=!1,l.call(p)!=="[object Object]")return!1;for(y in p)if(i.call(p,y))if(!x)x=!0;else return!1;if(!x)return!1;if(c.indexOf(y)===-1)c.push(y);else return!1}return!0}function o(s){return s!==null?s:[]}return omap=new n("tag:yaml.org,2002:omap",{kind:"sequence",resolve:a,construct:o}),omap}var pairs,hasRequiredPairs;function requirePairs(){if(hasRequiredPairs)return pairs;hasRequiredPairs=1;var n=requireType(),i=Object.prototype.toString;function l(o){if(o===null)return!0;var s,c,h,m,p,y=o;for(p=new Array(y.length),s=0,c=y.length;s<c;s+=1){if(h=y[s],i.call(h)!=="[object Object]"||(m=Object.keys(h),m.length!==1))return!1;p[s]=[m[0],h[m[0]]]}return!0}function a(o){if(o===null)return[];var s,c,h,m,p,y=o;for(p=new Array(y.length),s=0,c=y.length;s<c;s+=1)h=y[s],m=Object.keys(h),p[s]=[m[0],h[m[0]]];return p}return pairs=new n("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:l,construct:a}),pairs}var set,hasRequiredSet;function requireSet(){if(hasRequiredSet)return set;hasRequiredSet=1;var n=requireType(),i=Object.prototype.hasOwnProperty;function l(o){if(o===null)return!0;var s,c=o;for(s in c)if(i.call(c,s)&&c[s]!==null)return!1;return!0}function a(o){return o!==null?o:{}}return set=new n("tag:yaml.org,2002:set",{kind:"mapping",resolve:l,construct:a}),set}var default_safe,hasRequiredDefault_safe;function requireDefault_safe(){if(hasRequiredDefault_safe)return default_safe;hasRequiredDefault_safe=1;var n=requireSchema();return default_safe=new n({include:[requireCore()],implicit:[requireTimestamp(),requireMerge()],explicit:[requireBinary(),requireOmap(),requirePairs(),requireSet()]}),default_safe}var _undefined,hasRequired_undefined;function require_undefined(){if(hasRequired_undefined)return _undefined;hasRequired_undefined=1;var n=requireType();function i(){return!0}function l(){}function a(){return""}function o(s){return typeof s>"u"}return _undefined=new n("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:i,construct:l,predicate:o,represent:a}),_undefined}var regexp,hasRequiredRegexp;function requireRegexp(){if(hasRequiredRegexp)return regexp;hasRequiredRegexp=1;var n=requireType();function i(s){if(s===null||s.length===0)return!1;var c=s,h=/\/([gim]*)$/.exec(s),m="";return!(c[0]==="/"&&(h&&(m=h[1]),m.length>3||c[c.length-m.length-1]!=="/"))}function l(s){var c=s,h=/\/([gim]*)$/.exec(s),m="";return c[0]==="/"&&(h&&(m=h[1]),c=c.slice(1,c.length-m.length-1)),new RegExp(c,m)}function a(s){var c="/"+s.source+"/";return s.global&&(c+="g"),s.multiline&&(c+="m"),s.ignoreCase&&(c+="i"),c}function o(s){return Object.prototype.toString.call(s)==="[object RegExp]"}return regexp=new n("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:i,construct:l,predicate:o,represent:a}),regexp}var _function,hasRequired_function;function require_function(){if(hasRequired_function)return _function;hasRequired_function=1;var n;try{var i=commonjsRequire;n=i("esprima")}catch{typeof window<"u"&&(n=window.esprima)}var l=requireType();function a(h){if(h===null)return!1;try{var m="("+h+")",p=n.parse(m,{range:!0});return!(p.type!=="Program"||p.body.length!==1||p.body[0].type!=="ExpressionStatement"||p.body[0].expression.type!=="ArrowFunctionExpression"&&p.body[0].expression.type!=="FunctionExpression")}catch{return!1}}function o(h){var m="("+h+")",p=n.parse(m,{range:!0}),y=[],x;if(p.type!=="Program"||p.body.length!==1||p.body[0].type!=="ExpressionStatement"||p.body[0].expression.type!=="ArrowFunctionExpression"&&p.body[0].expression.type!=="FunctionExpression")throw new Error("Failed to resolve function");return p.body[0].expression.params.forEach(function(b){y.push(b.name)}),x=p.body[0].expression.body.range,p.body[0].expression.body.type==="BlockStatement"?new Function(y,m.slice(x[0]+1,x[1]-1)):new Function(y,"return "+m.slice(x[0],x[1]))}function s(h){return h.toString()}function c(h){return Object.prototype.toString.call(h)==="[object Function]"}return _function=new l("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:a,construct:o,predicate:c,represent:s}),_function}var default_full,hasRequiredDefault_full;function requireDefault_full(){if(hasRequiredDefault_full)return default_full;hasRequiredDefault_full=1;var n=requireSchema();return default_full=n.DEFAULT=new n({include:[requireDefault_safe()],explicit:[require_undefined(),requireRegexp(),require_function()]}),default_full}var hasRequiredLoader;function requireLoader(){if(hasRequiredLoader)return loader;hasRequiredLoader=1;var n=requireCommon(),i=requireException(),l=requireMark(),a=requireDefault_safe(),o=requireDefault_full(),s=Object.prototype.hasOwnProperty,c=1,h=2,m=3,p=4,y=1,x=2,b=3,k=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,T=/[\x85\u2028\u2029]/,q=/[,\[\]\{\}]/,P=/^(?:!|!!|![a-z\-]+!)$/i,L=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function ne(g){return Object.prototype.toString.call(g)}function Q(g){return g===10||g===13}function ge(g){return g===9||g===32}function pe(g){return g===9||g===32||g===10||g===13}function B(g){return g===44||g===91||g===93||g===123||g===125}function ce(g){var C;return 48<=g&&g<=57?g-48:(C=g|32,97<=C&&C<=102?C-97+10:-1)}function be(g){return g===120?2:g===117?4:g===85?8:0}function Ee(g){return 48<=g&&g<=57?g-48:-1}function I(g){return g===48?"\0":g===97?"\x07":g===98?"\b":g===116||g===9?" ":g===110?`
|
|
79
|
-
`:g===118?"\v":g===102?"\f":g===114?"\r":g===101?"\x1B":g===32?" ":g===34?'"':g===47?"/":g===92?"\\":g===78?"
":g===95?" ":g===76?"\u2028":g===80?"\u2029":""}function he(g){return g<=65535?String.fromCharCode(g):String.fromCharCode((g-65536>>10)+55296,(g-65536&1023)+56320)}function de(g,C,z){C==="__proto__"?Object.defineProperty(g,C,{configurable:!0,enumerable:!0,writable:!0,value:z}):g[C]=z}for(var Ae=new Array(256),oe=new Array(256),ue=0;ue<256;ue++)Ae[ue]=I(ue)?1:0,oe[ue]=I(ue);function Z(g,C){this.input=g,this.filename=C.filename||null,this.schema=C.schema||o,this.onWarning=C.onWarning||null,this.legacy=C.legacy||!1,this.json=C.json||!1,this.listener=C.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=g.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function ae(g,C){return new i(C,new l(g.filename,g.input,g.position,g.line,g.position-g.lineStart))}function te(g,C){throw ae(g,C)}function Ce(g,C){g.onWarning&&g.onWarning.call(null,ae(g,C))}var A={YAML:function(C,z,$){var H,S,D;C.version!==null&&te(C,"duplication of %YAML directive"),$.length!==1&&te(C,"YAML directive accepts exactly one argument"),H=/^([0-9]+)\.([0-9]+)$/.exec($[0]),H===null&&te(C,"ill-formed argument of the YAML directive"),S=parseInt(H[1],10),D=parseInt(H[2],10),S!==1&&te(C,"unacceptable YAML version of the document"),C.version=$[0],C.checkLineBreaks=D<2,D!==1&&D!==2&&Ce(C,"unsupported YAML version of the document")},TAG:function(C,z,$){var H,S;$.length!==2&&te(C,"TAG directive accepts exactly two arguments"),H=$[0],S=$[1],P.test(H)||te(C,"ill-formed tag handle (first argument) of the TAG directive"),s.call(C.tagMap,H)&&te(C,'there is a previously declared suffix for "'+H+'" tag handle'),L.test(S)||te(C,"ill-formed tag prefix (second argument) of the TAG directive"),C.tagMap[H]=S}};function R(g,C,z,$){var H,S,D,G;if(C<z){if(G=g.input.slice(C,z),$)for(H=0,S=G.length;H<S;H+=1)D=G.charCodeAt(H),D===9||32<=D&&D<=1114111||te(g,"expected valid JSON character");else k.test(G)&&te(g,"the stream contains non-printable characters");g.result+=G}}function X(g,C,z,$){var H,S,D,G;for(n.isObject(z)||te(g,"cannot merge mappings; the provided source object is unacceptable"),H=Object.keys(z),D=0,G=H.length;D<G;D+=1)S=H[D],s.call(C,S)||(de(C,S,z[S]),$[S]=!0)}function _(g,C,z,$,H,S,D,G){var Y,J;if(Array.isArray(H))for(H=Array.prototype.slice.call(H),Y=0,J=H.length;Y<J;Y+=1)Array.isArray(H[Y])&&te(g,"nested arrays are not supported inside keys"),typeof H=="object"&&ne(H[Y])==="[object Object]"&&(H[Y]="[object Object]");if(typeof H=="object"&&ne(H)==="[object Object]"&&(H="[object Object]"),H=String(H),C===null&&(C={}),$==="tag:yaml.org,2002:merge")if(Array.isArray(S))for(Y=0,J=S.length;Y<J;Y+=1)X(g,C,S[Y],z);else X(g,C,S,z);else!g.json&&!s.call(z,H)&&s.call(C,H)&&(g.line=D||g.line,g.position=G||g.position,te(g,"duplicated mapping key")),de(C,H,S),delete z[H];return C}function fe(g){var C;C=g.input.charCodeAt(g.position),C===10?g.position++:C===13?(g.position++,g.input.charCodeAt(g.position)===10&&g.position++):te(g,"a line break is expected"),g.line+=1,g.lineStart=g.position}function me(g,C,z){for(var $=0,H=g.input.charCodeAt(g.position);H!==0;){for(;ge(H);)H=g.input.charCodeAt(++g.position);if(C&&H===35)do H=g.input.charCodeAt(++g.position);while(H!==10&&H!==13&&H!==0);if(Q(H))for(fe(g),H=g.input.charCodeAt(g.position),$++,g.lineIndent=0;H===32;)g.lineIndent++,H=g.input.charCodeAt(++g.position);else break}return z!==-1&&$!==0&&g.lineIndent<z&&Ce(g,"deficient indentation"),$}function xe(g){var C=g.position,z;return z=g.input.charCodeAt(C),!!((z===45||z===46)&&z===g.input.charCodeAt(C+1)&&z===g.input.charCodeAt(C+2)&&(C+=3,z=g.input.charCodeAt(C),z===0||pe(z)))}function we(g,C){C===1?g.result+=" ":C>1&&(g.result+=n.repeat(`
|
|
80
|
-
`,C-1))}function Be(g,C,z){var $,H,S,D,G,Y,J,ie,V=g.kind,se=g.result,le;if(le=g.input.charCodeAt(g.position),pe(le)||B(le)||le===35||le===38||le===42||le===33||le===124||le===62||le===39||le===34||le===37||le===64||le===96||(le===63||le===45)&&(H=g.input.charCodeAt(g.position+1),pe(H)||z&&B(H)))return!1;for(g.kind="scalar",g.result="",S=D=g.position,G=!1;le!==0;){if(le===58){if(H=g.input.charCodeAt(g.position+1),pe(H)||z&&B(H))break}else if(le===35){if($=g.input.charCodeAt(g.position-1),pe($))break}else{if(g.position===g.lineStart&&xe(g)||z&&B(le))break;if(Q(le))if(Y=g.line,J=g.lineStart,ie=g.lineIndent,me(g,!1,-1),g.lineIndent>=C){G=!0,le=g.input.charCodeAt(g.position);continue}else{g.position=D,g.line=Y,g.lineStart=J,g.lineIndent=ie;break}}G&&(R(g,S,D,!1),we(g,g.line-Y),S=D=g.position,G=!1),ge(le)||(D=g.position+1),le=g.input.charCodeAt(++g.position)}return R(g,S,D,!1),g.result?!0:(g.kind=V,g.result=se,!1)}function qe(g,C){var z,$,H;if(z=g.input.charCodeAt(g.position),z!==39)return!1;for(g.kind="scalar",g.result="",g.position++,$=H=g.position;(z=g.input.charCodeAt(g.position))!==0;)if(z===39)if(R(g,$,g.position,!0),z=g.input.charCodeAt(++g.position),z===39)$=g.position,g.position++,H=g.position;else return!0;else Q(z)?(R(g,$,H,!0),we(g,me(g,!1,C)),$=H=g.position):g.position===g.lineStart&&xe(g)?te(g,"unexpected end of the document within a single quoted scalar"):(g.position++,H=g.position);te(g,"unexpected end of the stream within a single quoted scalar")}function ct(g,C){var z,$,H,S,D,G;if(G=g.input.charCodeAt(g.position),G!==34)return!1;for(g.kind="scalar",g.result="",g.position++,z=$=g.position;(G=g.input.charCodeAt(g.position))!==0;){if(G===34)return R(g,z,g.position,!0),g.position++,!0;if(G===92){if(R(g,z,g.position,!0),G=g.input.charCodeAt(++g.position),Q(G))me(g,!1,C);else if(G<256&&Ae[G])g.result+=oe[G],g.position++;else if((D=be(G))>0){for(H=D,S=0;H>0;H--)G=g.input.charCodeAt(++g.position),(D=ce(G))>=0?S=(S<<4)+D:te(g,"expected hexadecimal character");g.result+=he(S),g.position++}else te(g,"unknown escape sequence");z=$=g.position}else Q(G)?(R(g,z,$,!0),we(g,me(g,!1,C)),z=$=g.position):g.position===g.lineStart&&xe(g)?te(g,"unexpected end of the document within a double quoted scalar"):(g.position++,$=g.position)}te(g,"unexpected end of the stream within a double quoted scalar")}function yt(g,C){var z=!0,$,H=g.tag,S,D=g.anchor,G,Y,J,ie,V,se={},le,ke,ze,Te;if(Te=g.input.charCodeAt(g.position),Te===91)Y=93,V=!1,S=[];else if(Te===123)Y=125,V=!0,S={};else return!1;for(g.anchor!==null&&(g.anchorMap[g.anchor]=S),Te=g.input.charCodeAt(++g.position);Te!==0;){if(me(g,!0,C),Te=g.input.charCodeAt(g.position),Te===Y)return g.position++,g.tag=H,g.anchor=D,g.kind=V?"mapping":"sequence",g.result=S,!0;z||te(g,"missed comma between flow collection entries"),ke=le=ze=null,J=ie=!1,Te===63&&(G=g.input.charCodeAt(g.position+1),pe(G)&&(J=ie=!0,g.position++,me(g,!0,C))),$=g.line,xt(g,C,c,!1,!0),ke=g.tag,le=g.result,me(g,!0,C),Te=g.input.charCodeAt(g.position),(ie||g.line===$)&&Te===58&&(J=!0,Te=g.input.charCodeAt(++g.position),me(g,!0,C),xt(g,C,c,!1,!0),ze=g.result),V?_(g,S,se,ke,le,ze):J?S.push(_(g,null,se,ke,le,ze)):S.push(le),me(g,!0,C),Te=g.input.charCodeAt(g.position),Te===44?(z=!0,Te=g.input.charCodeAt(++g.position)):z=!1}te(g,"unexpected end of the stream within a flow collection")}function Lt(g,C){var z,$,H=y,S=!1,D=!1,G=C,Y=0,J=!1,ie,V;if(V=g.input.charCodeAt(g.position),V===124)$=!1;else if(V===62)$=!0;else return!1;for(g.kind="scalar",g.result="";V!==0;)if(V=g.input.charCodeAt(++g.position),V===43||V===45)y===H?H=V===43?b:x:te(g,"repeat of a chomping mode identifier");else if((ie=Ee(V))>=0)ie===0?te(g,"bad explicit indentation width of a block scalar; it cannot be less than one"):D?te(g,"repeat of an indentation width identifier"):(G=C+ie-1,D=!0);else break;if(ge(V)){do V=g.input.charCodeAt(++g.position);while(ge(V));if(V===35)do V=g.input.charCodeAt(++g.position);while(!Q(V)&&V!==0)}for(;V!==0;){for(fe(g),g.lineIndent=0,V=g.input.charCodeAt(g.position);(!D||g.lineIndent<G)&&V===32;)g.lineIndent++,V=g.input.charCodeAt(++g.position);if(!D&&g.lineIndent>G&&(G=g.lineIndent),Q(V)){Y++;continue}if(g.lineIndent<G){H===b?g.result+=n.repeat(`
|
|
81
|
-
`,S?1+Y:Y):H===y&&S&&(g.result+=`
|
|
82
|
-
`);break}for($?ge(V)?(J=!0,g.result+=n.repeat(`
|
|
83
|
-
`,S?1+Y:Y)):J?(J=!1,g.result+=n.repeat(`
|
|
84
|
-
`,Y+1)):Y===0?S&&(g.result+=" "):g.result+=n.repeat(`
|
|
85
|
-
`,Y):g.result+=n.repeat(`
|
|
86
|
-
`,S?1+Y:Y),S=!0,D=!0,Y=0,z=g.position;!Q(V)&&V!==0;)V=g.input.charCodeAt(++g.position);R(g,z,g.position,!1)}return!0}function ln(g,C){var z,$=g.tag,H=g.anchor,S=[],D,G=!1,Y;for(g.anchor!==null&&(g.anchorMap[g.anchor]=S),Y=g.input.charCodeAt(g.position);Y!==0&&!(Y!==45||(D=g.input.charCodeAt(g.position+1),!pe(D)));){if(G=!0,g.position++,me(g,!0,-1)&&g.lineIndent<=C){S.push(null),Y=g.input.charCodeAt(g.position);continue}if(z=g.line,xt(g,C,m,!1,!0),S.push(g.result),me(g,!0,-1),Y=g.input.charCodeAt(g.position),(g.line===z||g.lineIndent>C)&&Y!==0)te(g,"bad indentation of a sequence entry");else if(g.lineIndent<C)break}return G?(g.tag=$,g.anchor=H,g.kind="sequence",g.result=S,!0):!1}function Tt(g,C,z){var $,H,S,D,G=g.tag,Y=g.anchor,J={},ie={},V=null,se=null,le=null,ke=!1,ze=!1,Te;for(g.anchor!==null&&(g.anchorMap[g.anchor]=J),Te=g.input.charCodeAt(g.position);Te!==0;){if($=g.input.charCodeAt(g.position+1),S=g.line,D=g.position,(Te===63||Te===58)&&pe($))Te===63?(ke&&(_(g,J,ie,V,se,null),V=se=le=null),ze=!0,ke=!0,H=!0):ke?(ke=!1,H=!0):te(g,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),g.position+=1,Te=$;else if(xt(g,z,h,!1,!0))if(g.line===S){for(Te=g.input.charCodeAt(g.position);ge(Te);)Te=g.input.charCodeAt(++g.position);if(Te===58)Te=g.input.charCodeAt(++g.position),pe(Te)||te(g,"a whitespace character is expected after the key-value separator within a block mapping"),ke&&(_(g,J,ie,V,se,null),V=se=le=null),ze=!0,ke=!1,H=!1,V=g.tag,se=g.result;else if(ze)te(g,"can not read an implicit mapping pair; a colon is missed");else return g.tag=G,g.anchor=Y,!0}else if(ze)te(g,"can not read a block mapping entry; a multiline key may not be an implicit key");else return g.tag=G,g.anchor=Y,!0;else break;if((g.line===S||g.lineIndent>C)&&(xt(g,C,p,!0,H)&&(ke?se=g.result:le=g.result),ke||(_(g,J,ie,V,se,le,S,D),V=se=le=null),me(g,!0,-1),Te=g.input.charCodeAt(g.position)),g.lineIndent>C&&Te!==0)te(g,"bad indentation of a mapping entry");else if(g.lineIndent<C)break}return ke&&_(g,J,ie,V,se,null),ze&&(g.tag=G,g.anchor=Y,g.kind="mapping",g.result=J),ze}function Pt(g){var C,z=!1,$=!1,H,S,D;if(D=g.input.charCodeAt(g.position),D!==33)return!1;if(g.tag!==null&&te(g,"duplication of a tag property"),D=g.input.charCodeAt(++g.position),D===60?(z=!0,D=g.input.charCodeAt(++g.position)):D===33?($=!0,H="!!",D=g.input.charCodeAt(++g.position)):H="!",C=g.position,z){do D=g.input.charCodeAt(++g.position);while(D!==0&&D!==62);g.position<g.length?(S=g.input.slice(C,g.position),D=g.input.charCodeAt(++g.position)):te(g,"unexpected end of the stream within a verbatim tag")}else{for(;D!==0&&!pe(D);)D===33&&($?te(g,"tag suffix cannot contain exclamation marks"):(H=g.input.slice(C-1,g.position+1),P.test(H)||te(g,"named tag handle cannot contain such characters"),$=!0,C=g.position+1)),D=g.input.charCodeAt(++g.position);S=g.input.slice(C,g.position),q.test(S)&&te(g,"tag suffix cannot contain flow indicator characters")}return S&&!L.test(S)&&te(g,"tag name cannot contain such characters: "+S),z?g.tag=S:s.call(g.tagMap,H)?g.tag=g.tagMap[H]+S:H==="!"?g.tag="!"+S:H==="!!"?g.tag="tag:yaml.org,2002:"+S:te(g,'undeclared tag handle "'+H+'"'),!0}function Gt(g){var C,z;if(z=g.input.charCodeAt(g.position),z!==38)return!1;for(g.anchor!==null&&te(g,"duplication of an anchor property"),z=g.input.charCodeAt(++g.position),C=g.position;z!==0&&!pe(z)&&!B(z);)z=g.input.charCodeAt(++g.position);return g.position===C&&te(g,"name of an anchor node must contain at least one character"),g.anchor=g.input.slice(C,g.position),!0}function _n(g){var C,z,$;if($=g.input.charCodeAt(g.position),$!==42)return!1;for($=g.input.charCodeAt(++g.position),C=g.position;$!==0&&!pe($)&&!B($);)$=g.input.charCodeAt(++g.position);return g.position===C&&te(g,"name of an alias node must contain at least one character"),z=g.input.slice(C,g.position),s.call(g.anchorMap,z)||te(g,'unidentified alias "'+z+'"'),g.result=g.anchorMap[z],me(g,!0,-1),!0}function xt(g,C,z,$,H){var S,D,G,Y=1,J=!1,ie=!1,V,se,le,ke,ze;if(g.listener!==null&&g.listener("open",g),g.tag=null,g.anchor=null,g.kind=null,g.result=null,S=D=G=p===z||m===z,$&&me(g,!0,-1)&&(J=!0,g.lineIndent>C?Y=1:g.lineIndent===C?Y=0:g.lineIndent<C&&(Y=-1)),Y===1)for(;Pt(g)||Gt(g);)me(g,!0,-1)?(J=!0,G=S,g.lineIndent>C?Y=1:g.lineIndent===C?Y=0:g.lineIndent<C&&(Y=-1)):G=!1;if(G&&(G=J||H),(Y===1||p===z)&&(c===z||h===z?ke=C:ke=C+1,ze=g.position-g.lineStart,Y===1?G&&(ln(g,ze)||Tt(g,ze,ke))||yt(g,ke)?ie=!0:(D&&Lt(g,ke)||qe(g,ke)||ct(g,ke)?ie=!0:_n(g)?(ie=!0,(g.tag!==null||g.anchor!==null)&&te(g,"alias node should not have any properties")):Be(g,ke,c===z)&&(ie=!0,g.tag===null&&(g.tag="?")),g.anchor!==null&&(g.anchorMap[g.anchor]=g.result)):Y===0&&(ie=G&&ln(g,ze))),g.tag!==null&&g.tag!=="!")if(g.tag==="?"){for(g.result!==null&&g.kind!=="scalar"&&te(g,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+g.kind+'"'),V=0,se=g.implicitTypes.length;V<se;V+=1)if(le=g.implicitTypes[V],le.resolve(g.result)){g.result=le.construct(g.result),g.tag=le.tag,g.anchor!==null&&(g.anchorMap[g.anchor]=g.result);break}}else s.call(g.typeMap[g.kind||"fallback"],g.tag)?(le=g.typeMap[g.kind||"fallback"][g.tag],g.result!==null&&le.kind!==g.kind&&te(g,"unacceptable node kind for !<"+g.tag+'> tag; it should be "'+le.kind+'", not "'+g.kind+'"'),le.resolve(g.result)?(g.result=le.construct(g.result),g.anchor!==null&&(g.anchorMap[g.anchor]=g.result)):te(g,"cannot resolve a node with !<"+g.tag+"> explicit tag")):te(g,"unknown tag !<"+g.tag+">");return g.listener!==null&&g.listener("close",g),g.tag!==null||g.anchor!==null||ie}function Jt(g){var C=g.position,z,$,H,S=!1,D;for(g.version=null,g.checkLineBreaks=g.legacy,g.tagMap={},g.anchorMap={};(D=g.input.charCodeAt(g.position))!==0&&(me(g,!0,-1),D=g.input.charCodeAt(g.position),!(g.lineIndent>0||D!==37));){for(S=!0,D=g.input.charCodeAt(++g.position),z=g.position;D!==0&&!pe(D);)D=g.input.charCodeAt(++g.position);for($=g.input.slice(z,g.position),H=[],$.length<1&&te(g,"directive name must not be less than one character in length");D!==0;){for(;ge(D);)D=g.input.charCodeAt(++g.position);if(D===35){do D=g.input.charCodeAt(++g.position);while(D!==0&&!Q(D));break}if(Q(D))break;for(z=g.position;D!==0&&!pe(D);)D=g.input.charCodeAt(++g.position);H.push(g.input.slice(z,g.position))}D!==0&&fe(g),s.call(A,$)?A[$](g,$,H):Ce(g,'unknown document directive "'+$+'"')}if(me(g,!0,-1),g.lineIndent===0&&g.input.charCodeAt(g.position)===45&&g.input.charCodeAt(g.position+1)===45&&g.input.charCodeAt(g.position+2)===45?(g.position+=3,me(g,!0,-1)):S&&te(g,"directives end mark is expected"),xt(g,g.lineIndent-1,p,!1,!0),me(g,!0,-1),g.checkLineBreaks&&T.test(g.input.slice(C,g.position))&&Ce(g,"non-ASCII line breaks are interpreted as content"),g.documents.push(g.result),g.position===g.lineStart&&xe(g)){g.input.charCodeAt(g.position)===46&&(g.position+=3,me(g,!0,-1));return}if(g.position<g.length-1)te(g,"end of the stream or a document separator is expected");else return}function Qt(g,C){g=String(g),C=C||{},g.length!==0&&(g.charCodeAt(g.length-1)!==10&&g.charCodeAt(g.length-1)!==13&&(g+=`
|
|
87
|
-
`),g.charCodeAt(0)===65279&&(g=g.slice(1)));var z=new Z(g,C),$=g.indexOf("\0");for($!==-1&&(z.position=$,te(z,"null byte is not allowed in input")),z.input+="\0";z.input.charCodeAt(z.position)===32;)z.lineIndent+=1,z.position+=1;for(;z.position<z.length-1;)Jt(z);return z.documents}function Wt(g,C,z){C!==null&&typeof C=="object"&&typeof z>"u"&&(z=C,C=null);var $=Qt(g,z);if(typeof C!="function")return $;for(var H=0,S=$.length;H<S;H+=1)C($[H])}function Cn(g,C){var z=Qt(g,C);if(z.length!==0){if(z.length===1)return z[0];throw new i("expected a single document in the stream, but found more")}}function Kn(g,C,z){return typeof C=="object"&&C!==null&&typeof z>"u"&&(z=C,C=null),Wt(g,C,n.extend({schema:a},z))}function nt(g,C){return Cn(g,n.extend({schema:a},C))}return loader.loadAll=Wt,loader.load=Cn,loader.safeLoadAll=Kn,loader.safeLoad=nt,loader}var dumper={},hasRequiredDumper;function requireDumper(){if(hasRequiredDumper)return dumper;hasRequiredDumper=1;var n=requireCommon(),i=requireException(),l=requireDefault_full(),a=requireDefault_safe(),o=Object.prototype.toString,s=Object.prototype.hasOwnProperty,c=9,h=10,m=13,p=32,y=33,x=34,b=35,k=37,T=38,q=39,P=42,L=44,ne=45,Q=58,ge=61,pe=62,B=63,ce=64,be=91,Ee=93,I=96,he=123,de=124,Ae=125,oe={};oe[0]="\\0",oe[7]="\\a",oe[8]="\\b",oe[9]="\\t",oe[10]="\\n",oe[11]="\\v",oe[12]="\\f",oe[13]="\\r",oe[27]="\\e",oe[34]='\\"',oe[92]="\\\\",oe[133]="\\N",oe[160]="\\_",oe[8232]="\\L",oe[8233]="\\P";var ue=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function Z(S,D){var G,Y,J,ie,V,se,le;if(D===null)return{};for(G={},Y=Object.keys(D),J=0,ie=Y.length;J<ie;J+=1)V=Y[J],se=String(D[V]),V.slice(0,2)==="!!"&&(V="tag:yaml.org,2002:"+V.slice(2)),le=S.compiledTypeMap.fallback[V],le&&s.call(le.styleAliases,se)&&(se=le.styleAliases[se]),G[V]=se;return G}function ae(S){var D,G,Y;if(D=S.toString(16).toUpperCase(),S<=255)G="x",Y=2;else if(S<=65535)G="u",Y=4;else if(S<=4294967295)G="U",Y=8;else throw new i("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+G+n.repeat("0",Y-D.length)+D}function te(S){this.schema=S.schema||l,this.indent=Math.max(1,S.indent||2),this.noArrayIndent=S.noArrayIndent||!1,this.skipInvalid=S.skipInvalid||!1,this.flowLevel=n.isNothing(S.flowLevel)?-1:S.flowLevel,this.styleMap=Z(this.schema,S.styles||null),this.sortKeys=S.sortKeys||!1,this.lineWidth=S.lineWidth||80,this.noRefs=S.noRefs||!1,this.noCompatMode=S.noCompatMode||!1,this.condenseFlow=S.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function Ce(S,D){for(var G=n.repeat(" ",D),Y=0,J=-1,ie="",V,se=S.length;Y<se;)J=S.indexOf(`
|
|
88
|
-
`,Y),J===-1?(V=S.slice(Y),Y=se):(V=S.slice(Y,J+1),Y=J+1),V.length&&V!==`
|
|
89
|
-
`&&(ie+=G),ie+=V;return ie}function A(S,D){return`
|
|
90
|
-
`+n.repeat(" ",S.indent*D)}function R(S,D){var G,Y,J;for(G=0,Y=S.implicitTypes.length;G<Y;G+=1)if(J=S.implicitTypes[G],J.resolve(D))return!0;return!1}function X(S){return S===p||S===c}function _(S){return 32<=S&&S<=126||161<=S&&S<=55295&&S!==8232&&S!==8233||57344<=S&&S<=65533&&S!==65279||65536<=S&&S<=1114111}function fe(S){return _(S)&&!X(S)&&S!==65279&&S!==m&&S!==h}function me(S,D){return _(S)&&S!==65279&&S!==L&&S!==be&&S!==Ee&&S!==he&&S!==Ae&&S!==Q&&(S!==b||D&&fe(D))}function xe(S){return _(S)&&S!==65279&&!X(S)&&S!==ne&&S!==B&&S!==Q&&S!==L&&S!==be&&S!==Ee&&S!==he&&S!==Ae&&S!==b&&S!==T&&S!==P&&S!==y&&S!==de&&S!==ge&&S!==pe&&S!==q&&S!==x&&S!==k&&S!==ce&&S!==I}function we(S){var D=/^\n* /;return D.test(S)}var Be=1,qe=2,ct=3,yt=4,Lt=5;function ln(S,D,G,Y,J){var ie,V,se,le=!1,ke=!1,ze=Y!==-1,Te=-1,We=xe(S.charCodeAt(0))&&!X(S.charCodeAt(S.length-1));if(D)for(ie=0;ie<S.length;ie++){if(V=S.charCodeAt(ie),!_(V))return Lt;se=ie>0?S.charCodeAt(ie-1):null,We=We&&me(V,se)}else{for(ie=0;ie<S.length;ie++){if(V=S.charCodeAt(ie),V===h)le=!0,ze&&(ke=ke||ie-Te-1>Y&&S[Te+1]!==" ",Te=ie);else if(!_(V))return Lt;se=ie>0?S.charCodeAt(ie-1):null,We=We&&me(V,se)}ke=ke||ze&&ie-Te-1>Y&&S[Te+1]!==" "}return!le&&!ke?We&&!J(S)?Be:qe:G>9&&we(S)?Lt:ke?yt:ct}function Tt(S,D,G,Y){S.dump=(function(){if(D.length===0)return"''";if(!S.noCompatMode&&ue.indexOf(D)!==-1)return"'"+D+"'";var J=S.indent*Math.max(1,G),ie=S.lineWidth===-1?-1:Math.max(Math.min(S.lineWidth,40),S.lineWidth-J),V=Y||S.flowLevel>-1&&G>=S.flowLevel;function se(le){return R(S,le)}switch(ln(D,V,S.indent,ie,se)){case Be:return D;case qe:return"'"+D.replace(/'/g,"''")+"'";case ct:return"|"+Pt(D,S.indent)+Gt(Ce(D,J));case yt:return">"+Pt(D,S.indent)+Gt(Ce(_n(D,ie),J));case Lt:return'"'+Jt(D)+'"';default:throw new i("impossible error: invalid scalar style")}})()}function Pt(S,D){var G=we(S)?String(D):"",Y=S[S.length-1]===`
|
|
91
|
-
`,J=Y&&(S[S.length-2]===`
|
|
92
|
-
`||S===`
|
|
93
|
-
`),ie=J?"+":Y?"":"-";return G+ie+`
|
|
94
|
-
`}function Gt(S){return S[S.length-1]===`
|
|
95
|
-
`?S.slice(0,-1):S}function _n(S,D){for(var G=/(\n+)([^\n]*)/g,Y=(function(){var ke=S.indexOf(`
|
|
96
|
-
`);return ke=ke!==-1?ke:S.length,G.lastIndex=ke,xt(S.slice(0,ke),D)})(),J=S[0]===`
|
|
97
|
-
`||S[0]===" ",ie,V;V=G.exec(S);){var se=V[1],le=V[2];ie=le[0]===" ",Y+=se+(!J&&!ie&&le!==""?`
|
|
98
|
-
`:"")+xt(le,D),J=ie}return Y}function xt(S,D){if(S===""||S[0]===" ")return S;for(var G=/ [^ ]/g,Y,J=0,ie,V=0,se=0,le="";Y=G.exec(S);)se=Y.index,se-J>D&&(ie=V>J?V:se,le+=`
|
|
99
|
-
`+S.slice(J,ie),J=ie+1),V=se;return le+=`
|
|
100
|
-
`,S.length-J>D&&V>J?le+=S.slice(J,V)+`
|
|
101
|
-
`+S.slice(V+1):le+=S.slice(J),le.slice(1)}function Jt(S){for(var D="",G,Y,J,ie=0;ie<S.length;ie++){if(G=S.charCodeAt(ie),G>=55296&&G<=56319&&(Y=S.charCodeAt(ie+1),Y>=56320&&Y<=57343)){D+=ae((G-55296)*1024+Y-56320+65536),ie++;continue}J=oe[G],D+=!J&&_(G)?S[ie]:J||ae(G)}return D}function Qt(S,D,G){var Y="",J=S.tag,ie,V;for(ie=0,V=G.length;ie<V;ie+=1)g(S,D,G[ie],!1,!1)&&(ie!==0&&(Y+=","+(S.condenseFlow?"":" ")),Y+=S.dump);S.tag=J,S.dump="["+Y+"]"}function Wt(S,D,G,Y){var J="",ie=S.tag,V,se;for(V=0,se=G.length;V<se;V+=1)g(S,D+1,G[V],!0,!0)&&((!Y||V!==0)&&(J+=A(S,D)),S.dump&&h===S.dump.charCodeAt(0)?J+="-":J+="- ",J+=S.dump);S.tag=ie,S.dump=J||"[]"}function Cn(S,D,G){var Y="",J=S.tag,ie=Object.keys(G),V,se,le,ke,ze;for(V=0,se=ie.length;V<se;V+=1)ze="",V!==0&&(ze+=", "),S.condenseFlow&&(ze+='"'),le=ie[V],ke=G[le],g(S,D,le,!1,!1)&&(S.dump.length>1024&&(ze+="? "),ze+=S.dump+(S.condenseFlow?'"':"")+":"+(S.condenseFlow?"":" "),g(S,D,ke,!1,!1)&&(ze+=S.dump,Y+=ze));S.tag=J,S.dump="{"+Y+"}"}function Kn(S,D,G,Y){var J="",ie=S.tag,V=Object.keys(G),se,le,ke,ze,Te,We;if(S.sortKeys===!0)V.sort();else if(typeof S.sortKeys=="function")V.sort(S.sortKeys);else if(S.sortKeys)throw new i("sortKeys must be a boolean or a function");for(se=0,le=V.length;se<le;se+=1)We="",(!Y||se!==0)&&(We+=A(S,D)),ke=V[se],ze=G[ke],g(S,D+1,ke,!0,!0,!0)&&(Te=S.tag!==null&&S.tag!=="?"||S.dump&&S.dump.length>1024,Te&&(S.dump&&h===S.dump.charCodeAt(0)?We+="?":We+="? "),We+=S.dump,Te&&(We+=A(S,D)),g(S,D+1,ze,!0,Te)&&(S.dump&&h===S.dump.charCodeAt(0)?We+=":":We+=": ",We+=S.dump,J+=We));S.tag=ie,S.dump=J||"{}"}function nt(S,D,G){var Y,J,ie,V,se,le;for(J=G?S.explicitTypes:S.implicitTypes,ie=0,V=J.length;ie<V;ie+=1)if(se=J[ie],(se.instanceOf||se.predicate)&&(!se.instanceOf||typeof D=="object"&&D instanceof se.instanceOf)&&(!se.predicate||se.predicate(D))){if(S.tag=G?se.tag:"?",se.represent){if(le=S.styleMap[se.tag]||se.defaultStyle,o.call(se.represent)==="[object Function]")Y=se.represent(D,le);else if(s.call(se.represent,le))Y=se.represent[le](D,le);else throw new i("!<"+se.tag+'> tag resolver accepts not "'+le+'" style');S.dump=Y}return!0}return!1}function g(S,D,G,Y,J,ie){S.tag=null,S.dump=G,nt(S,G,!1)||nt(S,G,!0);var V=o.call(S.dump);Y&&(Y=S.flowLevel<0||S.flowLevel>D);var se=V==="[object Object]"||V==="[object Array]",le,ke;if(se&&(le=S.duplicates.indexOf(G),ke=le!==-1),(S.tag!==null&&S.tag!=="?"||ke||S.indent!==2&&D>0)&&(J=!1),ke&&S.usedDuplicates[le])S.dump="*ref_"+le;else{if(se&&ke&&!S.usedDuplicates[le]&&(S.usedDuplicates[le]=!0),V==="[object Object]")Y&&Object.keys(S.dump).length!==0?(Kn(S,D,S.dump,J),ke&&(S.dump="&ref_"+le+S.dump)):(Cn(S,D,S.dump),ke&&(S.dump="&ref_"+le+" "+S.dump));else if(V==="[object Array]"){var ze=S.noArrayIndent&&D>0?D-1:D;Y&&S.dump.length!==0?(Wt(S,ze,S.dump,J),ke&&(S.dump="&ref_"+le+S.dump)):(Qt(S,ze,S.dump),ke&&(S.dump="&ref_"+le+" "+S.dump))}else if(V==="[object String]")S.tag!=="?"&&Tt(S,S.dump,D,ie);else{if(S.skipInvalid)return!1;throw new i("unacceptable kind of an object to dump "+V)}S.tag!==null&&S.tag!=="?"&&(S.dump="!<"+S.tag+"> "+S.dump)}return!0}function C(S,D){var G=[],Y=[],J,ie;for(z(S,G,Y),J=0,ie=Y.length;J<ie;J+=1)D.duplicates.push(G[Y[J]]);D.usedDuplicates=new Array(ie)}function z(S,D,G){var Y,J,ie;if(S!==null&&typeof S=="object")if(J=D.indexOf(S),J!==-1)G.indexOf(J)===-1&&G.push(J);else if(D.push(S),Array.isArray(S))for(J=0,ie=S.length;J<ie;J+=1)z(S[J],D,G);else for(Y=Object.keys(S),J=0,ie=Y.length;J<ie;J+=1)z(S[Y[J]],D,G)}function $(S,D){D=D||{};var G=new te(D);return G.noRefs||C(S,G),g(G,0,S,!0,!0)?G.dump+`
|
|
102
|
-
`:""}function H(S,D){return $(S,n.extend({schema:a},D))}return dumper.dump=$,dumper.safeDump=H,dumper}var hasRequiredJsYaml$1;function requireJsYaml$1(){if(hasRequiredJsYaml$1)return jsYaml$1;hasRequiredJsYaml$1=1;var n=requireLoader(),i=requireDumper();function l(a){return function(){throw new Error("Function "+a+" is deprecated and cannot be used.")}}return jsYaml$1.Type=requireType(),jsYaml$1.Schema=requireSchema(),jsYaml$1.FAILSAFE_SCHEMA=requireFailsafe(),jsYaml$1.JSON_SCHEMA=requireJson(),jsYaml$1.CORE_SCHEMA=requireCore(),jsYaml$1.DEFAULT_SAFE_SCHEMA=requireDefault_safe(),jsYaml$1.DEFAULT_FULL_SCHEMA=requireDefault_full(),jsYaml$1.load=n.load,jsYaml$1.loadAll=n.loadAll,jsYaml$1.safeLoad=n.safeLoad,jsYaml$1.safeLoadAll=n.safeLoadAll,jsYaml$1.dump=i.dump,jsYaml$1.safeDump=i.safeDump,jsYaml$1.YAMLException=requireException(),jsYaml$1.MINIMAL_SCHEMA=requireFailsafe(),jsYaml$1.SAFE_SCHEMA=requireDefault_safe(),jsYaml$1.DEFAULT_SCHEMA=requireDefault_full(),jsYaml$1.scan=l("scan"),jsYaml$1.parse=l("parse"),jsYaml$1.compose=l("compose"),jsYaml$1.addConstructor=l("addConstructor"),jsYaml$1}var jsYaml,hasRequiredJsYaml;function requireJsYaml(){if(hasRequiredJsYaml)return jsYaml;hasRequiredJsYaml=1;var n=requireJsYaml$1();return jsYaml=n,jsYaml}var hasRequiredEngines;function requireEngines(){return hasRequiredEngines||(hasRequiredEngines=1,(function(module,exports$1){const yaml=requireJsYaml(),engines=module.exports;engines.yaml={parse:yaml.safeLoad.bind(yaml),stringify:yaml.safeDump.bind(yaml)},engines.json={parse:JSON.parse.bind(JSON),stringify:function(n,i){const l=Object.assign({replacer:null,space:2},i);return JSON.stringify(n,l.replacer,l.space)}},engines.javascript={parse:function parse(str,options,wrap){try{return wrap!==!1&&(str=`(function() {
|
|
103
|
-
return `+str.trim()+`;
|
|
104
|
-
}());`),eval(str)||{}}catch(n){if(wrap!==!1&&/(unexpected|identifier)/i.test(n.message))return parse(str,options,!1);throw new SyntaxError(n)}},stringify:function(){throw new Error("stringifying JavaScript is not supported")}}})(engines)),engines.exports}var utils={};/*!
|
|
105
|
-
* strip-bom-string <https://github.com/jonschlinkert/strip-bom-string>
|
|
106
|
-
*
|
|
107
|
-
* Copyright (c) 2015, 2017, Jon Schlinkert.
|
|
108
|
-
* Released under the MIT License.
|
|
109
|
-
*/var stripBomString,hasRequiredStripBomString;function requireStripBomString(){return hasRequiredStripBomString||(hasRequiredStripBomString=1,stripBomString=function(n){return typeof n=="string"&&n.charAt(0)==="\uFEFF"?n.slice(1):n}),stripBomString}var hasRequiredUtils;function requireUtils(){return hasRequiredUtils||(hasRequiredUtils=1,(function(n){const i=requireStripBomString(),l=requireKindOf();n.define=function(a,o,s){Reflect.defineProperty(a,o,{enumerable:!1,configurable:!0,writable:!0,value:s})},n.isBuffer=function(a){return l(a)==="buffer"},n.isObject=function(a){return l(a)==="object"},n.toBuffer=function(a){return typeof a=="string"?Buffer.from(a):a},n.toString=function(a){if(n.isBuffer(a))return i(String(a));if(typeof a!="string")throw new TypeError("expected input to be a string or buffer");return i(a)},n.arrayify=function(a){return a?Array.isArray(a)?a:[a]:[]},n.startsWith=function(a,o,s){return typeof s!="number"&&(s=o.length),a.slice(0,s)===o}})(utils)),utils}var defaults,hasRequiredDefaults;function requireDefaults(){if(hasRequiredDefaults)return defaults;hasRequiredDefaults=1;const n=requireEngines(),i=requireUtils();return defaults=function(l){const a=Object.assign({},l);return a.delimiters=i.arrayify(a.delims||a.delimiters||"---"),a.delimiters.length===1&&a.delimiters.push(a.delimiters[0]),a.language=(a.language||a.lang||"yaml").toLowerCase(),a.engines=Object.assign({},n,a.parsers,a.engines),a},defaults}var engine,hasRequiredEngine;function requireEngine(){if(hasRequiredEngine)return engine;hasRequiredEngine=1,engine=function(i,l){let a=l.engines[i]||l.engines[n(i)];if(typeof a>"u")throw new Error('gray-matter engine "'+i+'" is not registered');return typeof a=="function"&&(a={parse:a}),a};function n(i){switch(i.toLowerCase()){case"js":case"javascript":return"javascript";case"coffee":case"coffeescript":case"cson":return"coffee";case"yaml":case"yml":return"yaml";default:return i}}return engine}var stringify,hasRequiredStringify;function requireStringify(){if(hasRequiredStringify)return stringify;hasRequiredStringify=1;const n=requireKindOf(),i=requireEngine(),l=requireDefaults();stringify=function(o,s,c){if(s==null&&c==null)switch(n(o)){case"object":s=o.data,c={};break;case"string":return o;default:throw new TypeError("expected file to be a string or object")}const h=o.content,m=l(c);if(s==null){if(!m.data)return o;s=m.data}const p=o.language||m.language,y=i(p,m);if(typeof y.stringify!="function")throw new TypeError('expected "'+p+'.stringify" to be a function');s=Object.assign({},o.data,s);const x=m.delimiters[0],b=m.delimiters[1],k=y.stringify(s,c).trim();let T="";return k!=="{}"&&(T=a(x)+a(k)+a(b)),typeof o.excerpt=="string"&&o.excerpt!==""&&h.indexOf(o.excerpt.trim())===-1&&(T+=a(o.excerpt)+a(b)),T+a(h)};function a(o){return o.slice(-1)!==`
|
|
110
|
-
`?o+`
|
|
111
|
-
`:o}return stringify}var excerpt,hasRequiredExcerpt;function requireExcerpt(){if(hasRequiredExcerpt)return excerpt;hasRequiredExcerpt=1;const n=requireDefaults();return excerpt=function(i,l){const a=n(l);if(i.data==null&&(i.data={}),typeof a.excerpt=="function")return a.excerpt(i,a);const o=i.data.excerpt_separator||a.excerpt_separator;if(o==null&&(a.excerpt===!1||a.excerpt==null))return i;const s=typeof a.excerpt=="string"?a.excerpt:o||a.delimiters[0],c=i.content.indexOf(s);return c!==-1&&(i.excerpt=i.content.slice(0,c)),i},excerpt}var toFile,hasRequiredToFile;function requireToFile(){if(hasRequiredToFile)return toFile;hasRequiredToFile=1;const n=requireKindOf(),i=requireStringify(),l=requireUtils();return toFile=function(a){return n(a)!=="object"&&(a={content:a}),n(a.data)!=="object"&&(a.data={}),a.contents&&a.content==null&&(a.content=a.contents),l.define(a,"orig",l.toBuffer(a.content)),l.define(a,"language",a.language||""),l.define(a,"matter",a.matter||""),l.define(a,"stringify",function(o,s){return s&&s.language&&(a.language=s.language),i(a,o,s)}),a.content=l.toString(a.content),a.isEmpty=!1,a.excerpt="",a},toFile}var parse,hasRequiredParse;function requireParse(){if(hasRequiredParse)return parse;hasRequiredParse=1;const n=requireEngine(),i=requireDefaults();return parse=function(l,a,o){const s=i(o),c=n(l,s);if(typeof c.parse!="function")throw new TypeError('expected "'+l+'.parse" to be a function');return c.parse(a,s)},parse}var grayMatter,hasRequiredGrayMatter;function requireGrayMatter(){if(hasRequiredGrayMatter)return grayMatter;hasRequiredGrayMatter=1;const n=require$$0,i=requireSectionMatter(),l=requireDefaults(),a=requireStringify(),o=requireExcerpt(),s=requireEngines(),c=requireToFile(),h=requireParse(),m=requireUtils();function p(x,b){if(x==="")return{data:{},content:x,excerpt:"",orig:x};let k=c(x);const T=p.cache[k.content];if(!b){if(T)return k=Object.assign({},T),k.orig=T.orig,k;p.cache[k.content]=k}return y(k,b)}function y(x,b){const k=l(b),T=k.delimiters[0],q=`
|
|
112
|
-
`+k.delimiters[1];let P=x.content;k.language&&(x.language=k.language);const L=T.length;if(!m.startsWith(P,T,L))return o(x,k),x;if(P.charAt(L)===T.slice(-1))return x;P=P.slice(L);const ne=P.length,Q=p.language(P,k);Q.name&&(x.language=Q.name,P=P.slice(Q.raw.length));let ge=P.indexOf(q);return ge===-1&&(ge=ne),x.matter=P.slice(0,ge),x.matter.replace(/^\s*#[^\n]+/gm,"").trim()===""?(x.isEmpty=!0,x.empty=x.content,x.data={}):x.data=h(x.language,x.matter,k),ge===ne?x.content="":(x.content=P.slice(ge+q.length),x.content[0]==="\r"&&(x.content=x.content.slice(1)),x.content[0]===`
|
|
113
|
-
`&&(x.content=x.content.slice(1))),o(x,k),(k.sections===!0||typeof k.section=="function")&&i(x,k.section),x}return p.engines=s,p.stringify=function(x,b,k){return typeof x=="string"&&(x=p(x,k)),a(x,b,k)},p.read=function(x,b){const k=n.readFileSync(x,"utf8"),T=p(k,b);return T.path=x,T},p.test=function(x,b){return m.startsWith(x,l(b).delimiters[0])},p.language=function(x,b){const T=l(b).delimiters[0];p.test(x)&&(x=x.slice(T.length));const q=x.slice(0,x.search(/\r?\n/));return{raw:q,name:q?q.trim():""}},p.cache={},p.clearCache=function(){p.cache={}},grayMatter=p,grayMatter}var grayMatterExports=requireGrayMatter();const matter=getDefaultExportFromCjs(grayMatterExports);function ccount(n,i){const l=String(n);if(typeof i!="string")throw new TypeError("Expected character");let a=0,o=l.indexOf(i);for(;o!==-1;)a++,o=l.indexOf(i,o+i.length);return a}function escapeStringRegexp(n){if(typeof n!="string")throw new TypeError("Expected a string");return n.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function findAndReplace(n,i,l){const o=convert((l||{}).ignore||[]),s=toPairs(i);let c=-1;for(;++c<s.length;)visitParents(n,"text",h);function h(p,y){let x=-1,b;for(;++x<y.length;){const k=y[x],T=b?b.children:void 0;if(o(k,T?T.indexOf(k):void 0,b))return;b=k}if(b)return m(p,y)}function m(p,y){const x=y[y.length-1],b=s[c][0],k=s[c][1];let T=0;const P=x.children.indexOf(p);let L=!1,ne=[];b.lastIndex=0;let Q=b.exec(p.value);for(;Q;){const ge=Q.index,pe={index:Q.index,input:Q.input,stack:[...y,p]};let B=k(...Q,pe);if(typeof B=="string"&&(B=B.length>0?{type:"text",value:B}:void 0),B===!1?b.lastIndex=ge+1:(T!==ge&&ne.push({type:"text",value:p.value.slice(T,ge)}),Array.isArray(B)?ne.push(...B):B&&ne.push(B),T=ge+Q[0].length,L=!0),!b.global)break;Q=b.exec(p.value)}return L?(T<p.value.length&&ne.push({type:"text",value:p.value.slice(T)}),x.children.splice(P,1,...ne)):ne=[p],P+ne.length}}function toPairs(n){const i=[];if(!Array.isArray(n))throw new TypeError("Expected find and replace tuple or list of tuples");const l=!n[0]||Array.isArray(n[0])?n:[n];let a=-1;for(;++a<l.length;){const o=l[a];i.push([toExpression(o[0]),toFunction(o[1])])}return i}function toExpression(n){return typeof n=="string"?new RegExp(escapeStringRegexp(n),"g"):n}function toFunction(n){return typeof n=="function"?n:function(){return n}}const inConstruct="phrasing",notInConstruct=["autolink","link","image","label"];function gfmAutolinkLiteralFromMarkdown(){return{transforms:[transformGfmAutolinkLiterals],enter:{literalAutolink:enterLiteralAutolink,literalAutolinkEmail:enterLiteralAutolinkValue,literalAutolinkHttp:enterLiteralAutolinkValue,literalAutolinkWww:enterLiteralAutolinkValue},exit:{literalAutolink:exitLiteralAutolink,literalAutolinkEmail:exitLiteralAutolinkEmail,literalAutolinkHttp:exitLiteralAutolinkHttp,literalAutolinkWww:exitLiteralAutolinkWww}}}function gfmAutolinkLiteralToMarkdown(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct,notInConstruct},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct,notInConstruct},{character:":",before:"[ps]",after:"\\/",inConstruct,notInConstruct}]}}function enterLiteralAutolink(n){this.enter({type:"link",title:null,url:"",children:[]},n)}function enterLiteralAutolinkValue(n){this.config.enter.autolinkProtocol.call(this,n)}function exitLiteralAutolinkHttp(n){this.config.exit.autolinkProtocol.call(this,n)}function exitLiteralAutolinkWww(n){this.config.exit.data.call(this,n);const i=this.stack[this.stack.length-1];i.type,i.url="http://"+this.sliceSerialize(n)}function exitLiteralAutolinkEmail(n){this.config.exit.autolinkEmail.call(this,n)}function exitLiteralAutolink(n){this.exit(n)}function transformGfmAutolinkLiterals(n){findAndReplace(n,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,findUrl],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),findEmail]],{ignore:["link","linkReference"]})}function findUrl(n,i,l,a,o){let s="";if(!previous(o)||(/^w/i.test(i)&&(l=i+l,i="",s="http://"),!isCorrectDomain(l)))return!1;const c=splitUrl(l+a);if(!c[0])return!1;const h={type:"link",title:null,url:s+i+c[0],children:[{type:"text",value:i+c[0]}]};return c[1]?[h,{type:"text",value:c[1]}]:h}function findEmail(n,i,l,a){return!previous(a,!0)||/[-\d_]$/.test(l)?!1:{type:"link",title:null,url:"mailto:"+i+"@"+l,children:[{type:"text",value:i+"@"+l}]}}function isCorrectDomain(n){const i=n.split(".");return!(i.length<2||i[i.length-1]&&(/_/.test(i[i.length-1])||!/[a-zA-Z\d]/.test(i[i.length-1]))||i[i.length-2]&&(/_/.test(i[i.length-2])||!/[a-zA-Z\d]/.test(i[i.length-2])))}function splitUrl(n){const i=/[!"&'),.:;<>?\]}]+$/.exec(n);if(!i)return[n,void 0];n=n.slice(0,i.index);let l=i[0],a=l.indexOf(")");const o=ccount(n,"(");let s=ccount(n,")");for(;a!==-1&&o>s;)n+=l.slice(0,a+1),l=l.slice(a+1),a=l.indexOf(")"),s++;return[n,l]}function previous(n,i){const l=n.input.charCodeAt(n.index-1);return(n.index===0||unicodeWhitespace(l)||unicodePunctuation(l))&&(!i||l!==47)}footnoteReference.peek=footnoteReferencePeek;function enterFootnoteCallString(){this.buffer()}function enterFootnoteCall(n){this.enter({type:"footnoteReference",identifier:"",label:""},n)}function enterFootnoteDefinitionLabelString(){this.buffer()}function enterFootnoteDefinition(n){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},n)}function exitFootnoteCallString(n){const i=this.resume(),l=this.stack[this.stack.length-1];l.type,l.identifier=normalizeIdentifier(this.sliceSerialize(n)).toLowerCase(),l.label=i}function exitFootnoteCall(n){this.exit(n)}function exitFootnoteDefinitionLabelString(n){const i=this.resume(),l=this.stack[this.stack.length-1];l.type,l.identifier=normalizeIdentifier(this.sliceSerialize(n)).toLowerCase(),l.label=i}function exitFootnoteDefinition(n){this.exit(n)}function footnoteReferencePeek(){return"["}function footnoteReference(n,i,l,a){const o=l.createTracker(a);let s=o.move("[^");const c=l.enter("footnoteReference"),h=l.enter("reference");return s+=o.move(l.safe(l.associationId(n),{after:"]",before:s})),h(),c(),s+=o.move("]"),s}function gfmFootnoteFromMarkdown(){return{enter:{gfmFootnoteCallString:enterFootnoteCallString,gfmFootnoteCall:enterFootnoteCall,gfmFootnoteDefinitionLabelString:enterFootnoteDefinitionLabelString,gfmFootnoteDefinition:enterFootnoteDefinition},exit:{gfmFootnoteCallString:exitFootnoteCallString,gfmFootnoteCall:exitFootnoteCall,gfmFootnoteDefinitionLabelString:exitFootnoteDefinitionLabelString,gfmFootnoteDefinition:exitFootnoteDefinition}}}function gfmFootnoteToMarkdown(n){let i=!1;return n&&n.firstLineBlank&&(i=!0),{handlers:{footnoteDefinition:l,footnoteReference},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function l(a,o,s,c){const h=s.createTracker(c);let m=h.move("[^");const p=s.enter("footnoteDefinition"),y=s.enter("label");return m+=h.move(s.safe(s.associationId(a),{before:m,after:"]"})),y(),m+=h.move("]:"),a.children&&a.children.length>0&&(h.shift(4),m+=h.move((i?`
|
|
114
|
-
`:" ")+s.indentLines(s.containerFlow(a,h.current()),i?mapAll:mapExceptFirst))),p(),m}}function mapExceptFirst(n,i,l){return i===0?n:mapAll(n,i,l)}function mapAll(n,i,l){return(l?"":" ")+n}const constructsWithoutStrikethrough=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];handleDelete.peek=peekDelete;function gfmStrikethroughFromMarkdown(){return{canContainEols:["delete"],enter:{strikethrough:enterStrikethrough},exit:{strikethrough:exitStrikethrough}}}function gfmStrikethroughToMarkdown(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:constructsWithoutStrikethrough}],handlers:{delete:handleDelete}}}function enterStrikethrough(n){this.enter({type:"delete",children:[]},n)}function exitStrikethrough(n){this.exit(n)}function handleDelete(n,i,l,a){const o=l.createTracker(a),s=l.enter("strikethrough");let c=o.move("~~");return c+=l.containerPhrasing(n,{...o.current(),before:c,after:"~"}),c+=o.move("~~"),s(),c}function peekDelete(){return"~"}function defaultStringLength(n){return n.length}function markdownTable(n,i){const l=i||{},a=(l.align||[]).concat(),o=l.stringLength||defaultStringLength,s=[],c=[],h=[],m=[];let p=0,y=-1;for(;++y<n.length;){const q=[],P=[];let L=-1;for(n[y].length>p&&(p=n[y].length);++L<n[y].length;){const ne=serialize(n[y][L]);if(l.alignDelimiters!==!1){const Q=o(ne);P[L]=Q,(m[L]===void 0||Q>m[L])&&(m[L]=Q)}q.push(ne)}c[y]=q,h[y]=P}let x=-1;if(typeof a=="object"&&"length"in a)for(;++x<p;)s[x]=toAlignment(a[x]);else{const q=toAlignment(a);for(;++x<p;)s[x]=q}x=-1;const b=[],k=[];for(;++x<p;){const q=s[x];let P="",L="";q===99?(P=":",L=":"):q===108?P=":":q===114&&(L=":");let ne=l.alignDelimiters===!1?1:Math.max(1,m[x]-P.length-L.length);const Q=P+"-".repeat(ne)+L;l.alignDelimiters!==!1&&(ne=P.length+ne+L.length,ne>m[x]&&(m[x]=ne),k[x]=ne),b[x]=Q}c.splice(1,0,b),h.splice(1,0,k),y=-1;const T=[];for(;++y<c.length;){const q=c[y],P=h[y];x=-1;const L=[];for(;++x<p;){const ne=q[x]||"";let Q="",ge="";if(l.alignDelimiters!==!1){const pe=m[x]-(P[x]||0),B=s[x];B===114?Q=" ".repeat(pe):B===99?pe%2?(Q=" ".repeat(pe/2+.5),ge=" ".repeat(pe/2-.5)):(Q=" ".repeat(pe/2),ge=Q):ge=" ".repeat(pe)}l.delimiterStart!==!1&&!x&&L.push("|"),l.padding!==!1&&!(l.alignDelimiters===!1&&ne==="")&&(l.delimiterStart!==!1||x)&&L.push(" "),l.alignDelimiters!==!1&&L.push(Q),L.push(ne),l.alignDelimiters!==!1&&L.push(ge),l.padding!==!1&&L.push(" "),(l.delimiterEnd!==!1||x!==p-1)&&L.push("|")}T.push(l.delimiterEnd===!1?L.join("").replace(/ +$/,""):L.join(""))}return T.join(`
|
|
115
|
-
`)}function serialize(n){return n==null?"":String(n)}function toAlignment(n){const i=typeof n=="string"?n.codePointAt(0):0;return i===67||i===99?99:i===76||i===108?108:i===82||i===114?114:0}function blockquote(n,i,l,a){const o=l.enter("blockquote"),s=l.createTracker(a);s.move("> "),s.shift(2);const c=l.indentLines(l.containerFlow(n,s.current()),map$1);return o(),c}function map$1(n,i,l){return">"+(l?"":" ")+n}function patternInScope(n,i){return listInScope(n,i.inConstruct,!0)&&!listInScope(n,i.notInConstruct,!1)}function listInScope(n,i,l){if(typeof i=="string"&&(i=[i]),!i||i.length===0)return l;let a=-1;for(;++a<i.length;)if(n.includes(i[a]))return!0;return!1}function hardBreak(n,i,l,a){let o=-1;for(;++o<l.unsafe.length;)if(l.unsafe[o].character===`
|
|
116
|
-
`&&patternInScope(l.stack,l.unsafe[o]))return/[ \t]/.test(a.before)?"":" ";return`\\
|
|
117
|
-
`}function longestStreak(n,i){const l=String(n);let a=l.indexOf(i),o=a,s=0,c=0;if(typeof i!="string")throw new TypeError("Expected substring");for(;a!==-1;)a===o?++s>c&&(c=s):s=1,o=a+i.length,a=l.indexOf(i,o);return c}function formatCodeAsIndented(n,i){return!!(i.options.fences===!1&&n.value&&!n.lang&&/[^ \r\n]/.test(n.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(n.value))}function checkFence(n){const i=n.options.fence||"`";if(i!=="`"&&i!=="~")throw new Error("Cannot serialize code with `"+i+"` for `options.fence`, expected `` ` `` or `~`");return i}function code$1(n,i,l,a){const o=checkFence(l),s=n.value||"",c=o==="`"?"GraveAccent":"Tilde";if(formatCodeAsIndented(n,l)){const x=l.enter("codeIndented"),b=l.indentLines(s,map);return x(),b}const h=l.createTracker(a),m=o.repeat(Math.max(longestStreak(s,o)+1,3)),p=l.enter("codeFenced");let y=h.move(m);if(n.lang){const x=l.enter(`codeFencedLang${c}`);y+=h.move(l.safe(n.lang,{before:y,after:" ",encode:["`"],...h.current()})),x()}if(n.lang&&n.meta){const x=l.enter(`codeFencedMeta${c}`);y+=h.move(" "),y+=h.move(l.safe(n.meta,{before:y,after:`
|
|
118
|
-
`,encode:["`"],...h.current()})),x()}return y+=h.move(`
|
|
119
|
-
`),s&&(y+=h.move(s+`
|
|
120
|
-
`)),y+=h.move(m),p(),y}function map(n,i,l){return(l?"":" ")+n}function checkQuote(n){const i=n.options.quote||'"';if(i!=='"'&&i!=="'")throw new Error("Cannot serialize title with `"+i+"` for `options.quote`, expected `\"`, or `'`");return i}function definition(n,i,l,a){const o=checkQuote(l),s=o==='"'?"Quote":"Apostrophe",c=l.enter("definition");let h=l.enter("label");const m=l.createTracker(a);let p=m.move("[");return p+=m.move(l.safe(l.associationId(n),{before:p,after:"]",...m.current()})),p+=m.move("]: "),h(),!n.url||/[\0- \u007F]/.test(n.url)?(h=l.enter("destinationLiteral"),p+=m.move("<"),p+=m.move(l.safe(n.url,{before:p,after:">",...m.current()})),p+=m.move(">")):(h=l.enter("destinationRaw"),p+=m.move(l.safe(n.url,{before:p,after:n.title?" ":`
|
|
121
|
-
`,...m.current()}))),h(),n.title&&(h=l.enter(`title${s}`),p+=m.move(" "+o),p+=m.move(l.safe(n.title,{before:p,after:o,...m.current()})),p+=m.move(o),h()),c(),p}function checkEmphasis(n){const i=n.options.emphasis||"*";if(i!=="*"&&i!=="_")throw new Error("Cannot serialize emphasis with `"+i+"` for `options.emphasis`, expected `*`, or `_`");return i}function encodeCharacterReference(n){return"&#x"+n.toString(16).toUpperCase()+";"}function encodeInfo(n,i,l){const a=classifyCharacter(n),o=classifyCharacter(i);return a===void 0?o===void 0?l==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:a===1?o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}emphasis.peek=emphasisPeek;function emphasis(n,i,l,a){const o=checkEmphasis(l),s=l.enter("emphasis"),c=l.createTracker(a),h=c.move(o);let m=c.move(l.containerPhrasing(n,{after:o,before:h,...c.current()}));const p=m.charCodeAt(0),y=encodeInfo(a.before.charCodeAt(a.before.length-1),p,o);y.inside&&(m=encodeCharacterReference(p)+m.slice(1));const x=m.charCodeAt(m.length-1),b=encodeInfo(a.after.charCodeAt(0),x,o);b.inside&&(m=m.slice(0,-1)+encodeCharacterReference(x));const k=c.move(o);return s(),l.attentionEncodeSurroundingInfo={after:b.outside,before:y.outside},h+m+k}function emphasisPeek(n,i,l){return l.options.emphasis||"*"}function formatHeadingAsSetext(n,i){let l=!1;return visit(n,function(a){if("value"in a&&/\r?\n|\r/.test(a.value)||a.type==="break")return l=!0,EXIT}),!!((!n.depth||n.depth<3)&&toString$1(n)&&(i.options.setext||l))}function heading(n,i,l,a){const o=Math.max(Math.min(6,n.depth||1),1),s=l.createTracker(a);if(formatHeadingAsSetext(n,l)){const y=l.enter("headingSetext"),x=l.enter("phrasing"),b=l.containerPhrasing(n,{...s.current(),before:`
|
|
122
|
-
`,after:`
|
|
123
|
-
`});return x(),y(),b+`
|
|
124
|
-
`+(o===1?"=":"-").repeat(b.length-(Math.max(b.lastIndexOf("\r"),b.lastIndexOf(`
|
|
125
|
-
`))+1))}const c="#".repeat(o),h=l.enter("headingAtx"),m=l.enter("phrasing");s.move(c+" ");let p=l.containerPhrasing(n,{before:"# ",after:`
|
|
126
|
-
`,...s.current()});return/^[\t ]/.test(p)&&(p=encodeCharacterReference(p.charCodeAt(0))+p.slice(1)),p=p?c+" "+p:c,l.options.closeAtx&&(p+=" "+c),m(),h(),p}html.peek=htmlPeek;function html(n){return n.value||""}function htmlPeek(){return"<"}image.peek=imagePeek;function image(n,i,l,a){const o=checkQuote(l),s=o==='"'?"Quote":"Apostrophe",c=l.enter("image");let h=l.enter("label");const m=l.createTracker(a);let p=m.move("![");return p+=m.move(l.safe(n.alt,{before:p,after:"]",...m.current()})),p+=m.move("]("),h(),!n.url&&n.title||/[\0- \u007F]/.test(n.url)?(h=l.enter("destinationLiteral"),p+=m.move("<"),p+=m.move(l.safe(n.url,{before:p,after:">",...m.current()})),p+=m.move(">")):(h=l.enter("destinationRaw"),p+=m.move(l.safe(n.url,{before:p,after:n.title?" ":")",...m.current()}))),h(),n.title&&(h=l.enter(`title${s}`),p+=m.move(" "+o),p+=m.move(l.safe(n.title,{before:p,after:o,...m.current()})),p+=m.move(o),h()),p+=m.move(")"),c(),p}function imagePeek(){return"!"}imageReference.peek=imageReferencePeek;function imageReference(n,i,l,a){const o=n.referenceType,s=l.enter("imageReference");let c=l.enter("label");const h=l.createTracker(a);let m=h.move("![");const p=l.safe(n.alt,{before:m,after:"]",...h.current()});m+=h.move(p+"]["),c();const y=l.stack;l.stack=[],c=l.enter("reference");const x=l.safe(l.associationId(n),{before:m,after:"]",...h.current()});return c(),l.stack=y,s(),o==="full"||!p||p!==x?m+=h.move(x+"]"):o==="shortcut"?m=m.slice(0,-1):m+=h.move("]"),m}function imageReferencePeek(){return"!"}inlineCode.peek=inlineCodePeek;function inlineCode(n,i,l){let a=n.value||"",o="`",s=-1;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(a);)o+="`";for(/[^ \r\n]/.test(a)&&(/^[ \r\n]/.test(a)&&/[ \r\n]$/.test(a)||/^`|`$/.test(a))&&(a=" "+a+" ");++s<l.unsafe.length;){const c=l.unsafe[s],h=l.compilePattern(c);let m;if(c.atBreak)for(;m=h.exec(a);){let p=m.index;a.charCodeAt(p)===10&&a.charCodeAt(p-1)===13&&p--,a=a.slice(0,p)+" "+a.slice(m.index+1)}}return o+a+o}function inlineCodePeek(){return"`"}function formatLinkAsAutolink(n,i){const l=toString$1(n);return!!(!i.options.resourceLink&&n.url&&!n.title&&n.children&&n.children.length===1&&n.children[0].type==="text"&&(l===n.url||"mailto:"+l===n.url)&&/^[a-z][a-z+.-]+:/i.test(n.url)&&!/[\0- <>\u007F]/.test(n.url))}link.peek=linkPeek;function link(n,i,l,a){const o=checkQuote(l),s=o==='"'?"Quote":"Apostrophe",c=l.createTracker(a);let h,m;if(formatLinkAsAutolink(n,l)){const y=l.stack;l.stack=[],h=l.enter("autolink");let x=c.move("<");return x+=c.move(l.containerPhrasing(n,{before:x,after:">",...c.current()})),x+=c.move(">"),h(),l.stack=y,x}h=l.enter("link"),m=l.enter("label");let p=c.move("[");return p+=c.move(l.containerPhrasing(n,{before:p,after:"](",...c.current()})),p+=c.move("]("),m(),!n.url&&n.title||/[\0- \u007F]/.test(n.url)?(m=l.enter("destinationLiteral"),p+=c.move("<"),p+=c.move(l.safe(n.url,{before:p,after:">",...c.current()})),p+=c.move(">")):(m=l.enter("destinationRaw"),p+=c.move(l.safe(n.url,{before:p,after:n.title?" ":")",...c.current()}))),m(),n.title&&(m=l.enter(`title${s}`),p+=c.move(" "+o),p+=c.move(l.safe(n.title,{before:p,after:o,...c.current()})),p+=c.move(o),m()),p+=c.move(")"),h(),p}function linkPeek(n,i,l){return formatLinkAsAutolink(n,l)?"<":"["}linkReference.peek=linkReferencePeek;function linkReference(n,i,l,a){const o=n.referenceType,s=l.enter("linkReference");let c=l.enter("label");const h=l.createTracker(a);let m=h.move("[");const p=l.containerPhrasing(n,{before:m,after:"]",...h.current()});m+=h.move(p+"]["),c();const y=l.stack;l.stack=[],c=l.enter("reference");const x=l.safe(l.associationId(n),{before:m,after:"]",...h.current()});return c(),l.stack=y,s(),o==="full"||!p||p!==x?m+=h.move(x+"]"):o==="shortcut"?m=m.slice(0,-1):m+=h.move("]"),m}function linkReferencePeek(){return"["}function checkBullet(n){const i=n.options.bullet||"*";if(i!=="*"&&i!=="+"&&i!=="-")throw new Error("Cannot serialize items with `"+i+"` for `options.bullet`, expected `*`, `+`, or `-`");return i}function checkBulletOther(n){const i=checkBullet(n),l=n.options.bulletOther;if(!l)return i==="*"?"-":"*";if(l!=="*"&&l!=="+"&&l!=="-")throw new Error("Cannot serialize items with `"+l+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(l===i)throw new Error("Expected `bullet` (`"+i+"`) and `bulletOther` (`"+l+"`) to be different");return l}function checkBulletOrdered(n){const i=n.options.bulletOrdered||".";if(i!=="."&&i!==")")throw new Error("Cannot serialize items with `"+i+"` for `options.bulletOrdered`, expected `.` or `)`");return i}function checkRule(n){const i=n.options.rule||"*";if(i!=="*"&&i!=="-"&&i!=="_")throw new Error("Cannot serialize rules with `"+i+"` for `options.rule`, expected `*`, `-`, or `_`");return i}function list(n,i,l,a){const o=l.enter("list"),s=l.bulletCurrent;let c=n.ordered?checkBulletOrdered(l):checkBullet(l);const h=n.ordered?c==="."?")":".":checkBulletOther(l);let m=i&&l.bulletLastUsed?c===l.bulletLastUsed:!1;if(!n.ordered){const y=n.children?n.children[0]:void 0;if((c==="*"||c==="-")&&y&&(!y.children||!y.children[0])&&l.stack[l.stack.length-1]==="list"&&l.stack[l.stack.length-2]==="listItem"&&l.stack[l.stack.length-3]==="list"&&l.stack[l.stack.length-4]==="listItem"&&l.indexStack[l.indexStack.length-1]===0&&l.indexStack[l.indexStack.length-2]===0&&l.indexStack[l.indexStack.length-3]===0&&(m=!0),checkRule(l)===c&&y){let x=-1;for(;++x<n.children.length;){const b=n.children[x];if(b&&b.type==="listItem"&&b.children&&b.children[0]&&b.children[0].type==="thematicBreak"){m=!0;break}}}}m&&(c=h),l.bulletCurrent=c;const p=l.containerFlow(n,a);return l.bulletLastUsed=c,l.bulletCurrent=s,o(),p}function checkListItemIndent(n){const i=n.options.listItemIndent||"one";if(i!=="tab"&&i!=="one"&&i!=="mixed")throw new Error("Cannot serialize items with `"+i+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return i}function listItem(n,i,l,a){const o=checkListItemIndent(l);let s=l.bulletCurrent||checkBullet(l);i&&i.type==="list"&&i.ordered&&(s=(typeof i.start=="number"&&i.start>-1?i.start:1)+(l.options.incrementListMarker===!1?0:i.children.indexOf(n))+s);let c=s.length+1;(o==="tab"||o==="mixed"&&(i&&i.type==="list"&&i.spread||n.spread))&&(c=Math.ceil(c/4)*4);const h=l.createTracker(a);h.move(s+" ".repeat(c-s.length)),h.shift(c);const m=l.enter("listItem"),p=l.indentLines(l.containerFlow(n,h.current()),y);return m(),p;function y(x,b,k){return b?(k?"":" ".repeat(c))+x:(k?s:s+" ".repeat(c-s.length))+x}}function paragraph(n,i,l,a){const o=l.enter("paragraph"),s=l.enter("phrasing"),c=l.containerPhrasing(n,a);return s(),o(),c}const phrasing=convert(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function root(n,i,l,a){return(n.children.some(function(c){return phrasing(c)})?l.containerPhrasing:l.containerFlow).call(l,n,a)}function checkStrong(n){const i=n.options.strong||"*";if(i!=="*"&&i!=="_")throw new Error("Cannot serialize strong with `"+i+"` for `options.strong`, expected `*`, or `_`");return i}strong.peek=strongPeek;function strong(n,i,l,a){const o=checkStrong(l),s=l.enter("strong"),c=l.createTracker(a),h=c.move(o+o);let m=c.move(l.containerPhrasing(n,{after:o,before:h,...c.current()}));const p=m.charCodeAt(0),y=encodeInfo(a.before.charCodeAt(a.before.length-1),p,o);y.inside&&(m=encodeCharacterReference(p)+m.slice(1));const x=m.charCodeAt(m.length-1),b=encodeInfo(a.after.charCodeAt(0),x,o);b.inside&&(m=m.slice(0,-1)+encodeCharacterReference(x));const k=c.move(o+o);return s(),l.attentionEncodeSurroundingInfo={after:b.outside,before:y.outside},h+m+k}function strongPeek(n,i,l){return l.options.strong||"*"}function text$1(n,i,l,a){return l.safe(n.value,a)}function checkRuleRepetition(n){const i=n.options.ruleRepetition||3;if(i<3)throw new Error("Cannot serialize rules with repetition `"+i+"` for `options.ruleRepetition`, expected `3` or more");return i}function thematicBreak(n,i,l){const a=(checkRule(l)+(l.options.ruleSpaces?" ":"")).repeat(checkRuleRepetition(l));return l.options.ruleSpaces?a.slice(0,-1):a}const handle={blockquote,break:hardBreak,code:code$1,definition,emphasis,hardBreak,heading,html,image,imageReference,inlineCode,link,linkReference,list,listItem,paragraph,root,strong,text:text$1,thematicBreak};function gfmTableFromMarkdown(){return{enter:{table:enterTable,tableData:enterCell,tableHeader:enterCell,tableRow:enterRow},exit:{codeText:exitCodeText,table:exitTable,tableData:exit,tableHeader:exit,tableRow:exit}}}function enterTable(n){const i=n._align;this.enter({type:"table",align:i.map(function(l){return l==="none"?null:l}),children:[]},n),this.data.inTable=!0}function exitTable(n){this.exit(n),this.data.inTable=void 0}function enterRow(n){this.enter({type:"tableRow",children:[]},n)}function exit(n){this.exit(n)}function enterCell(n){this.enter({type:"tableCell",children:[]},n)}function exitCodeText(n){let i=this.resume();this.data.inTable&&(i=i.replace(/\\([\\|])/g,replace));const l=this.stack[this.stack.length-1];l.type,l.value=i,this.exit(n)}function replace(n,i){return i==="|"?i:n}function gfmTableToMarkdown(n){const i=n||{},l=i.tableCellPadding,a=i.tablePipeAlign,o=i.stringLength,s=l?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
127
|
-
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:b,table:c,tableCell:m,tableRow:h}};function c(k,T,q,P){return p(y(k,q,P),k.align)}function h(k,T,q,P){const L=x(k,q,P),ne=p([L]);return ne.slice(0,ne.indexOf(`
|
|
128
|
-
`))}function m(k,T,q,P){const L=q.enter("tableCell"),ne=q.enter("phrasing"),Q=q.containerPhrasing(k,{...P,before:s,after:s});return ne(),L(),Q}function p(k,T){return markdownTable(k,{align:T,alignDelimiters:a,padding:l,stringLength:o})}function y(k,T,q){const P=k.children;let L=-1;const ne=[],Q=T.enter("table");for(;++L<P.length;)ne[L]=x(P[L],T,q);return Q(),ne}function x(k,T,q){const P=k.children;let L=-1;const ne=[],Q=T.enter("tableRow");for(;++L<P.length;)ne[L]=m(P[L],k,T,q);return Q(),ne}function b(k,T,q){let P=handle.inlineCode(k,T,q);return q.stack.includes("tableCell")&&(P=P.replace(/\|/g,"\\$&")),P}}function gfmTaskListItemFromMarkdown(){return{exit:{taskListCheckValueChecked:exitCheck,taskListCheckValueUnchecked:exitCheck,paragraph:exitParagraphWithTaskListItem}}}function gfmTaskListItemToMarkdown(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:listItemWithTaskListItem}}}function exitCheck(n){const i=this.stack[this.stack.length-2];i.type,i.checked=n.type==="taskListCheckValueChecked"}function exitParagraphWithTaskListItem(n){const i=this.stack[this.stack.length-2];if(i&&i.type==="listItem"&&typeof i.checked=="boolean"){const l=this.stack[this.stack.length-1];l.type;const a=l.children[0];if(a&&a.type==="text"){const o=i.children;let s=-1,c;for(;++s<o.length;){const h=o[s];if(h.type==="paragraph"){c=h;break}}c===l&&(a.value=a.value.slice(1),a.value.length===0?l.children.shift():l.position&&a.position&&typeof a.position.start.offset=="number"&&(a.position.start.column++,a.position.start.offset++,l.position.start=Object.assign({},a.position.start)))}}this.exit(n)}function listItemWithTaskListItem(n,i,l,a){const o=n.children[0],s=typeof n.checked=="boolean"&&o&&o.type==="paragraph",c="["+(n.checked?"x":" ")+"] ",h=l.createTracker(a);s&&h.move(c);let m=handle.listItem(n,i,l,{...a,...h.current()});return s&&(m=m.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,p)),m;function p(y){return y+c}}function gfmFromMarkdown(){return[gfmAutolinkLiteralFromMarkdown(),gfmFootnoteFromMarkdown(),gfmStrikethroughFromMarkdown(),gfmTableFromMarkdown(),gfmTaskListItemFromMarkdown()]}function gfmToMarkdown(n){return{extensions:[gfmAutolinkLiteralToMarkdown(),gfmFootnoteToMarkdown(n),gfmStrikethroughToMarkdown(),gfmTableToMarkdown(n),gfmTaskListItemToMarkdown()]}}const wwwPrefix={tokenize:tokenizeWwwPrefix,partial:!0},domain={tokenize:tokenizeDomain,partial:!0},path={tokenize:tokenizePath,partial:!0},trail={tokenize:tokenizeTrail,partial:!0},emailDomainDotTrail={tokenize:tokenizeEmailDomainDotTrail,partial:!0},wwwAutolink={name:"wwwAutolink",tokenize:tokenizeWwwAutolink,previous:previousWww},protocolAutolink={name:"protocolAutolink",tokenize:tokenizeProtocolAutolink,previous:previousProtocol},emailAutolink={name:"emailAutolink",tokenize:tokenizeEmailAutolink,previous:previousEmail},text={};function gfmAutolinkLiteral(){return{text}}let code=48;for(;code<123;)text[code]=emailAutolink,code++,code===58?code=65:code===91&&(code=97);text[43]=emailAutolink;text[45]=emailAutolink;text[46]=emailAutolink;text[95]=emailAutolink;text[72]=[emailAutolink,protocolAutolink];text[104]=[emailAutolink,protocolAutolink];text[87]=[emailAutolink,wwwAutolink];text[119]=[emailAutolink,wwwAutolink];function tokenizeEmailAutolink(n,i,l){const a=this;let o,s;return c;function c(x){return!gfmAtext(x)||!previousEmail.call(a,a.previous)||previousUnbalanced(a.events)?l(x):(n.enter("literalAutolink"),n.enter("literalAutolinkEmail"),h(x))}function h(x){return gfmAtext(x)?(n.consume(x),h):x===64?(n.consume(x),m):l(x)}function m(x){return x===46?n.check(emailDomainDotTrail,y,p)(x):x===45||x===95||asciiAlphanumeric(x)?(s=!0,n.consume(x),m):y(x)}function p(x){return n.consume(x),o=!0,m}function y(x){return s&&o&&asciiAlpha(a.previous)?(n.exit("literalAutolinkEmail"),n.exit("literalAutolink"),i(x)):l(x)}}function tokenizeWwwAutolink(n,i,l){const a=this;return o;function o(c){return c!==87&&c!==119||!previousWww.call(a,a.previous)||previousUnbalanced(a.events)?l(c):(n.enter("literalAutolink"),n.enter("literalAutolinkWww"),n.check(wwwPrefix,n.attempt(domain,n.attempt(path,s),l),l)(c))}function s(c){return n.exit("literalAutolinkWww"),n.exit("literalAutolink"),i(c)}}function tokenizeProtocolAutolink(n,i,l){const a=this;let o="",s=!1;return c;function c(x){return(x===72||x===104)&&previousProtocol.call(a,a.previous)&&!previousUnbalanced(a.events)?(n.enter("literalAutolink"),n.enter("literalAutolinkHttp"),o+=String.fromCodePoint(x),n.consume(x),h):l(x)}function h(x){if(asciiAlpha(x)&&o.length<5)return o+=String.fromCodePoint(x),n.consume(x),h;if(x===58){const b=o.toLowerCase();if(b==="http"||b==="https")return n.consume(x),m}return l(x)}function m(x){return x===47?(n.consume(x),s?p:(s=!0,m)):l(x)}function p(x){return x===null||asciiControl(x)||markdownLineEndingOrSpace(x)||unicodeWhitespace(x)||unicodePunctuation(x)?l(x):n.attempt(domain,n.attempt(path,y),l)(x)}function y(x){return n.exit("literalAutolinkHttp"),n.exit("literalAutolink"),i(x)}}function tokenizeWwwPrefix(n,i,l){let a=0;return o;function o(c){return(c===87||c===119)&&a<3?(a++,n.consume(c),o):c===46&&a===3?(n.consume(c),s):l(c)}function s(c){return c===null?l(c):i(c)}}function tokenizeDomain(n,i,l){let a,o,s;return c;function c(p){return p===46||p===95?n.check(trail,m,h)(p):p===null||markdownLineEndingOrSpace(p)||unicodeWhitespace(p)||p!==45&&unicodePunctuation(p)?m(p):(s=!0,n.consume(p),c)}function h(p){return p===95?a=!0:(o=a,a=void 0),n.consume(p),c}function m(p){return o||a||!s?l(p):i(p)}}function tokenizePath(n,i){let l=0,a=0;return o;function o(c){return c===40?(l++,n.consume(c),o):c===41&&a<l?s(c):c===33||c===34||c===38||c===39||c===41||c===42||c===44||c===46||c===58||c===59||c===60||c===63||c===93||c===95||c===126?n.check(trail,i,s)(c):c===null||markdownLineEndingOrSpace(c)||unicodeWhitespace(c)?i(c):(n.consume(c),o)}function s(c){return c===41&&a++,n.consume(c),o}}function tokenizeTrail(n,i,l){return a;function a(h){return h===33||h===34||h===39||h===41||h===42||h===44||h===46||h===58||h===59||h===63||h===95||h===126?(n.consume(h),a):h===38?(n.consume(h),s):h===93?(n.consume(h),o):h===60||h===null||markdownLineEndingOrSpace(h)||unicodeWhitespace(h)?i(h):l(h)}function o(h){return h===null||h===40||h===91||markdownLineEndingOrSpace(h)||unicodeWhitespace(h)?i(h):a(h)}function s(h){return asciiAlpha(h)?c(h):l(h)}function c(h){return h===59?(n.consume(h),a):asciiAlpha(h)?(n.consume(h),c):l(h)}}function tokenizeEmailDomainDotTrail(n,i,l){return a;function a(s){return n.consume(s),o}function o(s){return asciiAlphanumeric(s)?l(s):i(s)}}function previousWww(n){return n===null||n===40||n===42||n===95||n===91||n===93||n===126||markdownLineEndingOrSpace(n)}function previousProtocol(n){return!asciiAlpha(n)}function previousEmail(n){return!(n===47||gfmAtext(n))}function gfmAtext(n){return n===43||n===45||n===46||n===95||asciiAlphanumeric(n)}function previousUnbalanced(n){let i=n.length,l=!1;for(;i--;){const a=n[i][1];if((a.type==="labelLink"||a.type==="labelImage")&&!a._balanced){l=!0;break}if(a._gfmAutolinkLiteralWalkedInto){l=!1;break}}return n.length>0&&!l&&(n[n.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),l}const indent={tokenize:tokenizeIndent,partial:!0};function gfmFootnote(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:tokenizeDefinitionStart,continuation:{tokenize:tokenizeDefinitionContinuation},exit:gfmFootnoteDefinitionEnd}},text:{91:{name:"gfmFootnoteCall",tokenize:tokenizeGfmFootnoteCall},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:tokenizePotentialGfmFootnoteCall,resolveTo:resolveToPotentialGfmFootnoteCall}}}}function tokenizePotentialGfmFootnoteCall(n,i,l){const a=this;let o=a.events.length;const s=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let c;for(;o--;){const m=a.events[o][1];if(m.type==="labelImage"){c=m;break}if(m.type==="gfmFootnoteCall"||m.type==="labelLink"||m.type==="label"||m.type==="image"||m.type==="link")break}return h;function h(m){if(!c||!c._balanced)return l(m);const p=normalizeIdentifier(a.sliceSerialize({start:c.end,end:a.now()}));return p.codePointAt(0)!==94||!s.includes(p.slice(1))?l(m):(n.enter("gfmFootnoteCallLabelMarker"),n.consume(m),n.exit("gfmFootnoteCallLabelMarker"),i(m))}}function resolveToPotentialGfmFootnoteCall(n,i){let l=n.length;for(;l--;)if(n[l][1].type==="labelImage"&&n[l][0]==="enter"){n[l][1];break}n[l+1][1].type="data",n[l+3][1].type="gfmFootnoteCallLabelMarker";const a={type:"gfmFootnoteCall",start:Object.assign({},n[l+3][1].start),end:Object.assign({},n[n.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},n[l+3][1].end),end:Object.assign({},n[l+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;const s={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},n[n.length-1][1].start)},c={type:"chunkString",contentType:"string",start:Object.assign({},s.start),end:Object.assign({},s.end)},h=[n[l+1],n[l+2],["enter",a,i],n[l+3],n[l+4],["enter",o,i],["exit",o,i],["enter",s,i],["enter",c,i],["exit",c,i],["exit",s,i],n[n.length-2],n[n.length-1],["exit",a,i]];return n.splice(l,n.length-l+1,...h),n}function tokenizeGfmFootnoteCall(n,i,l){const a=this,o=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let s=0,c;return h;function h(x){return n.enter("gfmFootnoteCall"),n.enter("gfmFootnoteCallLabelMarker"),n.consume(x),n.exit("gfmFootnoteCallLabelMarker"),m}function m(x){return x!==94?l(x):(n.enter("gfmFootnoteCallMarker"),n.consume(x),n.exit("gfmFootnoteCallMarker"),n.enter("gfmFootnoteCallString"),n.enter("chunkString").contentType="string",p)}function p(x){if(s>999||x===93&&!c||x===null||x===91||markdownLineEndingOrSpace(x))return l(x);if(x===93){n.exit("chunkString");const b=n.exit("gfmFootnoteCallString");return o.includes(normalizeIdentifier(a.sliceSerialize(b)))?(n.enter("gfmFootnoteCallLabelMarker"),n.consume(x),n.exit("gfmFootnoteCallLabelMarker"),n.exit("gfmFootnoteCall"),i):l(x)}return markdownLineEndingOrSpace(x)||(c=!0),s++,n.consume(x),x===92?y:p}function y(x){return x===91||x===92||x===93?(n.consume(x),s++,p):p(x)}}function tokenizeDefinitionStart(n,i,l){const a=this,o=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let s,c=0,h;return m;function m(T){return n.enter("gfmFootnoteDefinition")._container=!0,n.enter("gfmFootnoteDefinitionLabel"),n.enter("gfmFootnoteDefinitionLabelMarker"),n.consume(T),n.exit("gfmFootnoteDefinitionLabelMarker"),p}function p(T){return T===94?(n.enter("gfmFootnoteDefinitionMarker"),n.consume(T),n.exit("gfmFootnoteDefinitionMarker"),n.enter("gfmFootnoteDefinitionLabelString"),n.enter("chunkString").contentType="string",y):l(T)}function y(T){if(c>999||T===93&&!h||T===null||T===91||markdownLineEndingOrSpace(T))return l(T);if(T===93){n.exit("chunkString");const q=n.exit("gfmFootnoteDefinitionLabelString");return s=normalizeIdentifier(a.sliceSerialize(q)),n.enter("gfmFootnoteDefinitionLabelMarker"),n.consume(T),n.exit("gfmFootnoteDefinitionLabelMarker"),n.exit("gfmFootnoteDefinitionLabel"),b}return markdownLineEndingOrSpace(T)||(h=!0),c++,n.consume(T),T===92?x:y}function x(T){return T===91||T===92||T===93?(n.consume(T),c++,y):y(T)}function b(T){return T===58?(n.enter("definitionMarker"),n.consume(T),n.exit("definitionMarker"),o.includes(s)||o.push(s),factorySpace(n,k,"gfmFootnoteDefinitionWhitespace")):l(T)}function k(T){return i(T)}}function tokenizeDefinitionContinuation(n,i,l){return n.check(blankLine,i,n.attempt(indent,i,l))}function gfmFootnoteDefinitionEnd(n){n.exit("gfmFootnoteDefinition")}function tokenizeIndent(n,i,l){const a=this;return factorySpace(n,o,"gfmFootnoteDefinitionIndent",5);function o(s){const c=a.events[a.events.length-1];return c&&c[1].type==="gfmFootnoteDefinitionIndent"&&c[2].sliceSerialize(c[1],!0).length===4?i(s):l(s)}}function gfmStrikethrough(n){let l=(n||{}).singleTilde;const a={name:"strikethrough",tokenize:s,resolveAll:o};return l==null&&(l=!0),{text:{126:a},insideSpan:{null:[a]},attentionMarkers:{null:[126]}};function o(c,h){let m=-1;for(;++m<c.length;)if(c[m][0]==="enter"&&c[m][1].type==="strikethroughSequenceTemporary"&&c[m][1]._close){let p=m;for(;p--;)if(c[p][0]==="exit"&&c[p][1].type==="strikethroughSequenceTemporary"&&c[p][1]._open&&c[m][1].end.offset-c[m][1].start.offset===c[p][1].end.offset-c[p][1].start.offset){c[m][1].type="strikethroughSequence",c[p][1].type="strikethroughSequence";const y={type:"strikethrough",start:Object.assign({},c[p][1].start),end:Object.assign({},c[m][1].end)},x={type:"strikethroughText",start:Object.assign({},c[p][1].end),end:Object.assign({},c[m][1].start)},b=[["enter",y,h],["enter",c[p][1],h],["exit",c[p][1],h],["enter",x,h]],k=h.parser.constructs.insideSpan.null;k&&splice(b,b.length,0,resolveAll(k,c.slice(p+1,m),h)),splice(b,b.length,0,[["exit",x,h],["enter",c[m][1],h],["exit",c[m][1],h],["exit",y,h]]),splice(c,p-1,m-p+3,b),m=p+b.length-2;break}}for(m=-1;++m<c.length;)c[m][1].type==="strikethroughSequenceTemporary"&&(c[m][1].type="data");return c}function s(c,h,m){const p=this.previous,y=this.events;let x=0;return b;function b(T){return p===126&&y[y.length-1][1].type!=="characterEscape"?m(T):(c.enter("strikethroughSequenceTemporary"),k(T))}function k(T){const q=classifyCharacter(p);if(T===126)return x>1?m(T):(c.consume(T),x++,k);if(x<2&&!l)return m(T);const P=c.exit("strikethroughSequenceTemporary"),L=classifyCharacter(T);return P._open=!L||L===2&&!!q,P._close=!q||q===2&&!!L,h(T)}}}class EditMap{constructor(){this.map=[]}add(i,l,a){addImplementation(this,i,l,a)}consume(i){if(this.map.sort(function(s,c){return s[0]-c[0]}),this.map.length===0)return;let l=this.map.length;const a=[];for(;l>0;)l-=1,a.push(i.slice(this.map[l][0]+this.map[l][1]),this.map[l][2]),i.length=this.map[l][0];a.push(i.slice()),i.length=0;let o=a.pop();for(;o;){for(const s of o)i.push(s);o=a.pop()}this.map.length=0}}function addImplementation(n,i,l,a){let o=0;if(!(l===0&&a.length===0)){for(;o<n.map.length;){if(n.map[o][0]===i){n.map[o][1]+=l,n.map[o][2].push(...a);return}o+=1}n.map.push([i,l,a])}}function gfmTableAlign(n,i){let l=!1;const a=[];for(;i<n.length;){const o=n[i];if(l){if(o[0]==="enter")o[1].type==="tableContent"&&a.push(n[i+1][1].type==="tableDelimiterMarker"?"left":"none");else if(o[1].type==="tableContent"){if(n[i-1][1].type==="tableDelimiterMarker"){const s=a.length-1;a[s]=a[s]==="left"?"center":"right"}}else if(o[1].type==="tableDelimiterRow")break}else o[0]==="enter"&&o[1].type==="tableDelimiterRow"&&(l=!0);i+=1}return a}function gfmTable(){return{flow:{null:{name:"table",tokenize:tokenizeTable,resolveAll:resolveTable}}}}function tokenizeTable(n,i,l){const a=this;let o=0,s=0,c;return h;function h(I){let he=a.events.length-1;for(;he>-1;){const oe=a.events[he][1].type;if(oe==="lineEnding"||oe==="linePrefix")he--;else break}const de=he>-1?a.events[he][1].type:null,Ae=de==="tableHead"||de==="tableRow"?B:m;return Ae===B&&a.parser.lazy[a.now().line]?l(I):Ae(I)}function m(I){return n.enter("tableHead"),n.enter("tableRow"),p(I)}function p(I){return I===124||(c=!0,s+=1),y(I)}function y(I){return I===null?l(I):markdownLineEnding(I)?s>1?(s=0,a.interrupt=!0,n.exit("tableRow"),n.enter("lineEnding"),n.consume(I),n.exit("lineEnding"),k):l(I):markdownSpace(I)?factorySpace(n,y,"whitespace")(I):(s+=1,c&&(c=!1,o+=1),I===124?(n.enter("tableCellDivider"),n.consume(I),n.exit("tableCellDivider"),c=!0,y):(n.enter("data"),x(I)))}function x(I){return I===null||I===124||markdownLineEndingOrSpace(I)?(n.exit("data"),y(I)):(n.consume(I),I===92?b:x)}function b(I){return I===92||I===124?(n.consume(I),x):x(I)}function k(I){return a.interrupt=!1,a.parser.lazy[a.now().line]?l(I):(n.enter("tableDelimiterRow"),c=!1,markdownSpace(I)?factorySpace(n,T,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(I):T(I))}function T(I){return I===45||I===58?P(I):I===124?(c=!0,n.enter("tableCellDivider"),n.consume(I),n.exit("tableCellDivider"),q):pe(I)}function q(I){return markdownSpace(I)?factorySpace(n,P,"whitespace")(I):P(I)}function P(I){return I===58?(s+=1,c=!0,n.enter("tableDelimiterMarker"),n.consume(I),n.exit("tableDelimiterMarker"),L):I===45?(s+=1,L(I)):I===null||markdownLineEnding(I)?ge(I):pe(I)}function L(I){return I===45?(n.enter("tableDelimiterFiller"),ne(I)):pe(I)}function ne(I){return I===45?(n.consume(I),ne):I===58?(c=!0,n.exit("tableDelimiterFiller"),n.enter("tableDelimiterMarker"),n.consume(I),n.exit("tableDelimiterMarker"),Q):(n.exit("tableDelimiterFiller"),Q(I))}function Q(I){return markdownSpace(I)?factorySpace(n,ge,"whitespace")(I):ge(I)}function ge(I){return I===124?T(I):I===null||markdownLineEnding(I)?!c||o!==s?pe(I):(n.exit("tableDelimiterRow"),n.exit("tableHead"),i(I)):pe(I)}function pe(I){return l(I)}function B(I){return n.enter("tableRow"),ce(I)}function ce(I){return I===124?(n.enter("tableCellDivider"),n.consume(I),n.exit("tableCellDivider"),ce):I===null||markdownLineEnding(I)?(n.exit("tableRow"),i(I)):markdownSpace(I)?factorySpace(n,ce,"whitespace")(I):(n.enter("data"),be(I))}function be(I){return I===null||I===124||markdownLineEndingOrSpace(I)?(n.exit("data"),ce(I)):(n.consume(I),I===92?Ee:be)}function Ee(I){return I===92||I===124?(n.consume(I),be):be(I)}}function resolveTable(n,i){let l=-1,a=!0,o=0,s=[0,0,0,0],c=[0,0,0,0],h=!1,m=0,p,y,x;const b=new EditMap;for(;++l<n.length;){const k=n[l],T=k[1];k[0]==="enter"?T.type==="tableHead"?(h=!1,m!==0&&(flushTableEnd(b,i,m,p,y),y=void 0,m=0),p={type:"table",start:Object.assign({},T.start),end:Object.assign({},T.end)},b.add(l,0,[["enter",p,i]])):T.type==="tableRow"||T.type==="tableDelimiterRow"?(a=!0,x=void 0,s=[0,0,0,0],c=[0,l+1,0,0],h&&(h=!1,y={type:"tableBody",start:Object.assign({},T.start),end:Object.assign({},T.end)},b.add(l,0,[["enter",y,i]])),o=T.type==="tableDelimiterRow"?2:y?3:1):o&&(T.type==="data"||T.type==="tableDelimiterMarker"||T.type==="tableDelimiterFiller")?(a=!1,c[2]===0&&(s[1]!==0&&(c[0]=c[1],x=flushCell(b,i,s,o,void 0,x),s=[0,0,0,0]),c[2]=l)):T.type==="tableCellDivider"&&(a?a=!1:(s[1]!==0&&(c[0]=c[1],x=flushCell(b,i,s,o,void 0,x)),s=c,c=[s[1],l,0,0])):T.type==="tableHead"?(h=!0,m=l):T.type==="tableRow"||T.type==="tableDelimiterRow"?(m=l,s[1]!==0?(c[0]=c[1],x=flushCell(b,i,s,o,l,x)):c[1]!==0&&(x=flushCell(b,i,c,o,l,x)),o=0):o&&(T.type==="data"||T.type==="tableDelimiterMarker"||T.type==="tableDelimiterFiller")&&(c[3]=l)}for(m!==0&&flushTableEnd(b,i,m,p,y),b.consume(i.events),l=-1;++l<i.events.length;){const k=i.events[l];k[0]==="enter"&&k[1].type==="table"&&(k[1]._align=gfmTableAlign(i.events,l))}return n}function flushCell(n,i,l,a,o,s){const c=a===1?"tableHeader":a===2?"tableDelimiter":"tableData",h="tableContent";l[0]!==0&&(s.end=Object.assign({},getPoint(i.events,l[0])),n.add(l[0],0,[["exit",s,i]]));const m=getPoint(i.events,l[1]);if(s={type:c,start:Object.assign({},m),end:Object.assign({},m)},n.add(l[1],0,[["enter",s,i]]),l[2]!==0){const p=getPoint(i.events,l[2]),y=getPoint(i.events,l[3]),x={type:h,start:Object.assign({},p),end:Object.assign({},y)};if(n.add(l[2],0,[["enter",x,i]]),a!==2){const b=i.events[l[2]],k=i.events[l[3]];if(b[1].end=Object.assign({},k[1].end),b[1].type="chunkText",b[1].contentType="text",l[3]>l[2]+1){const T=l[2]+1,q=l[3]-l[2]-1;n.add(T,q,[])}}n.add(l[3]+1,0,[["exit",x,i]])}return o!==void 0&&(s.end=Object.assign({},getPoint(i.events,o)),n.add(o,0,[["exit",s,i]]),s=void 0),s}function flushTableEnd(n,i,l,a,o){const s=[],c=getPoint(i.events,l);o&&(o.end=Object.assign({},c),s.push(["exit",o,i])),a.end=Object.assign({},c),s.push(["exit",a,i]),n.add(l+1,0,s)}function getPoint(n,i){const l=n[i],a=l[0]==="enter"?"start":"end";return l[1][a]}const tasklistCheck={name:"tasklistCheck",tokenize:tokenizeTasklistCheck};function gfmTaskListItem(){return{text:{91:tasklistCheck}}}function tokenizeTasklistCheck(n,i,l){const a=this;return o;function o(m){return a.previous!==null||!a._gfmTasklistFirstContentOfListItem?l(m):(n.enter("taskListCheck"),n.enter("taskListCheckMarker"),n.consume(m),n.exit("taskListCheckMarker"),s)}function s(m){return markdownLineEndingOrSpace(m)?(n.enter("taskListCheckValueUnchecked"),n.consume(m),n.exit("taskListCheckValueUnchecked"),c):m===88||m===120?(n.enter("taskListCheckValueChecked"),n.consume(m),n.exit("taskListCheckValueChecked"),c):l(m)}function c(m){return m===93?(n.enter("taskListCheckMarker"),n.consume(m),n.exit("taskListCheckMarker"),n.exit("taskListCheck"),h):l(m)}function h(m){return markdownLineEnding(m)?i(m):markdownSpace(m)?n.check({tokenize:spaceThenNonSpace},i,l)(m):l(m)}}function spaceThenNonSpace(n,i,l){return factorySpace(n,a,"whitespace");function a(o){return o===null?l(o):i(o)}}function gfm(n){return combineExtensions([gfmAutolinkLiteral(),gfmFootnote(),gfmStrikethrough(n),gfmTable(),gfmTaskListItem()])}const emptyOptions={};function remarkGfm(n){const i=this,l=n||emptyOptions,a=i.data(),o=a.micromarkExtensions||(a.micromarkExtensions=[]),s=a.fromMarkdownExtensions||(a.fromMarkdownExtensions=[]),c=a.toMarkdownExtensions||(a.toMarkdownExtensions=[]);o.push(gfm(l)),s.push(gfmFromMarkdown()),c.push(gfmToMarkdown(l))}function parseViewMd(n){const{data:i,content:l}=matter(n),a=unified().use(remarkParse).use(remarkGfm).parse(l),o=splitByH2$1(a);return{name:i.name??"",domain:i.domain??"",version:i.version??"0.1.0",stateBindings:parseStateBindings(o["State Bindings"]),layout:parseLayoutSection$1(o.Layout),intents:parseIntentsTable(o.Intents)}}function splitByH2$1(n){var a;const i={};let l="__intro__";i[l]=[];for(const o of n.children)o.type==="heading"&&o.depth===2?(l=getTextContent(o),i[l]=[]):(a=i[l])==null||a.push(o);return i}function getTextContent(n){return n.children.map(i=>i.type==="text"?i.value:"").join("")}function parseStateBindings(n){if(!n)return[];const i=[];for(const l of n){if(l.type!=="list")continue;const a=l;for(const o of a.children){const c=extractListItemText(o).match(/`([^`]+)`\s*->\s*(.+)/);c&&i.push({path:c[1],type:c[2].trim()})}}return i}function extractListItemText(n){return n.children.map(i=>i.type==="paragraph"?i.children.map(l=>l.type==="text"?l.value:l.type==="inlineCode"?`\`${l.value}\``:"").join(""):"").join("")}function parseLayoutSection$1(n){if(!n)throw new Error("Missing Layout section in VIEW.md");for(const i of n)if(i.type==="code"){const l=i;if(l.lang==="clapp-layout")return parseLayoutDSL(l.value)}throw new Error("No clapp-layout code block found in Layout section")}function parseIntentsTable(n){if(!n)return[];const i=[];for(const l of n){if(l.type!=="table")continue;const a=l;for(let o=1;o<a.children.length;o++){const c=a.children[o].children;c.length>=3&&i.push({name:getCellText(c[0]),payload:getCellText(c[1]),description:getCellText(c[2])})}}return i}function getCellText(n){return n.children.map(i=>i.type==="text"||i.type==="inlineCode"?i.value:"").join("")}function parseAppMd(n){const{data:i,content:l}=matter(n),a=unified().use(remarkParse).parse(l),o=splitByH2(a);return{name:i.name??"",domain:i.domain??"",modules:parseModulesList(o.Modules),layout:parseLayoutSection(o.Layout)}}function splitByH2(n){var a;const i={};let l="__intro__";i[l]=[];for(const o of n.children)o.type==="heading"&&o.depth===2?(l=o.children.map(c=>c.type==="text"?c.value:"").join(""),i[l]=[]):(a=i[l])==null||a.push(o);return i}function parseModulesList(n){if(!n)return[];const i=[];for(const l of n){if(l.type!=="list")continue;const a=l;for(const o of a.children){const s=o.children.map(c=>c.type==="paragraph"?c.children.map(h=>h.type==="text"?h.value:"").join(""):"").join("").trim();s&&i.push(s)}}return i}function parseLayoutSection(n){if(!n)throw new Error("Missing Layout section in APP.md");for(const i of n)if(i.type==="code"){const l=i;if(l.lang==="clapp-layout")return parseLayoutDSL(l.value)}throw new Error("No clapp-layout code block found in Layout section")}var util;(function(n){n.assertEqual=o=>{};function i(o){}n.assertIs=i;function l(o){throw new Error}n.assertNever=l,n.arrayToEnum=o=>{const s={};for(const c of o)s[c]=c;return s},n.getValidEnumValues=o=>{const s=n.objectKeys(o).filter(h=>typeof o[o[h]]!="number"),c={};for(const h of s)c[h]=o[h];return n.objectValues(c)},n.objectValues=o=>n.objectKeys(o).map(function(s){return o[s]}),n.objectKeys=typeof Object.keys=="function"?o=>Object.keys(o):o=>{const s=[];for(const c in o)Object.prototype.hasOwnProperty.call(o,c)&&s.push(c);return s},n.find=(o,s)=>{for(const c of o)if(s(c))return c},n.isInteger=typeof Number.isInteger=="function"?o=>Number.isInteger(o):o=>typeof o=="number"&&Number.isFinite(o)&&Math.floor(o)===o;function a(o,s=" | "){return o.map(c=>typeof c=="string"?`'${c}'`:c).join(s)}n.joinValues=a,n.jsonStringifyReplacer=(o,s)=>typeof s=="bigint"?s.toString():s})(util||(util={}));var objectUtil;(function(n){n.mergeShapes=(i,l)=>({...i,...l})})(objectUtil||(objectUtil={}));const ZodParsedType=util.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),getParsedType=n=>{switch(typeof n){case"undefined":return ZodParsedType.undefined;case"string":return ZodParsedType.string;case"number":return Number.isNaN(n)?ZodParsedType.nan:ZodParsedType.number;case"boolean":return ZodParsedType.boolean;case"function":return ZodParsedType.function;case"bigint":return ZodParsedType.bigint;case"symbol":return ZodParsedType.symbol;case"object":return Array.isArray(n)?ZodParsedType.array:n===null?ZodParsedType.null:n.then&&typeof n.then=="function"&&n.catch&&typeof n.catch=="function"?ZodParsedType.promise:typeof Map<"u"&&n instanceof Map?ZodParsedType.map:typeof Set<"u"&&n instanceof Set?ZodParsedType.set:typeof Date<"u"&&n instanceof Date?ZodParsedType.date:ZodParsedType.object;default:return ZodParsedType.unknown}},ZodIssueCode=util.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class ZodError extends Error{get errors(){return this.issues}constructor(i){super(),this.issues=[],this.addIssue=a=>{this.issues=[...this.issues,a]},this.addIssues=(a=[])=>{this.issues=[...this.issues,...a]};const l=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,l):this.__proto__=l,this.name="ZodError",this.issues=i}format(i){const l=i||function(s){return s.message},a={_errors:[]},o=s=>{for(const c of s.issues)if(c.code==="invalid_union")c.unionErrors.map(o);else if(c.code==="invalid_return_type")o(c.returnTypeError);else if(c.code==="invalid_arguments")o(c.argumentsError);else if(c.path.length===0)a._errors.push(l(c));else{let h=a,m=0;for(;m<c.path.length;){const p=c.path[m];m===c.path.length-1?(h[p]=h[p]||{_errors:[]},h[p]._errors.push(l(c))):h[p]=h[p]||{_errors:[]},h=h[p],m++}}};return o(this),a}static assert(i){if(!(i instanceof ZodError))throw new Error(`Not a ZodError: ${i}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,util.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(i=l=>l.message){const l={},a=[];for(const o of this.issues)if(o.path.length>0){const s=o.path[0];l[s]=l[s]||[],l[s].push(i(o))}else a.push(i(o));return{formErrors:a,fieldErrors:l}}get formErrors(){return this.flatten()}}ZodError.create=n=>new ZodError(n);const errorMap=(n,i)=>{let l;switch(n.code){case ZodIssueCode.invalid_type:n.received===ZodParsedType.undefined?l="Required":l=`Expected ${n.expected}, received ${n.received}`;break;case ZodIssueCode.invalid_literal:l=`Invalid literal value, expected ${JSON.stringify(n.expected,util.jsonStringifyReplacer)}`;break;case ZodIssueCode.unrecognized_keys:l=`Unrecognized key(s) in object: ${util.joinValues(n.keys,", ")}`;break;case ZodIssueCode.invalid_union:l="Invalid input";break;case ZodIssueCode.invalid_union_discriminator:l=`Invalid discriminator value. Expected ${util.joinValues(n.options)}`;break;case ZodIssueCode.invalid_enum_value:l=`Invalid enum value. Expected ${util.joinValues(n.options)}, received '${n.received}'`;break;case ZodIssueCode.invalid_arguments:l="Invalid function arguments";break;case ZodIssueCode.invalid_return_type:l="Invalid function return type";break;case ZodIssueCode.invalid_date:l="Invalid date";break;case ZodIssueCode.invalid_string:typeof n.validation=="object"?"includes"in n.validation?(l=`Invalid input: must include "${n.validation.includes}"`,typeof n.validation.position=="number"&&(l=`${l} at one or more positions greater than or equal to ${n.validation.position}`)):"startsWith"in n.validation?l=`Invalid input: must start with "${n.validation.startsWith}"`:"endsWith"in n.validation?l=`Invalid input: must end with "${n.validation.endsWith}"`:util.assertNever(n.validation):n.validation!=="regex"?l=`Invalid ${n.validation}`:l="Invalid";break;case ZodIssueCode.too_small:n.type==="array"?l=`Array must contain ${n.exact?"exactly":n.inclusive?"at least":"more than"} ${n.minimum} element(s)`:n.type==="string"?l=`String must contain ${n.exact?"exactly":n.inclusive?"at least":"over"} ${n.minimum} character(s)`:n.type==="number"?l=`Number must be ${n.exact?"exactly equal to ":n.inclusive?"greater than or equal to ":"greater than "}${n.minimum}`:n.type==="bigint"?l=`Number must be ${n.exact?"exactly equal to ":n.inclusive?"greater than or equal to ":"greater than "}${n.minimum}`:n.type==="date"?l=`Date must be ${n.exact?"exactly equal to ":n.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(n.minimum))}`:l="Invalid input";break;case ZodIssueCode.too_big:n.type==="array"?l=`Array must contain ${n.exact?"exactly":n.inclusive?"at most":"less than"} ${n.maximum} element(s)`:n.type==="string"?l=`String must contain ${n.exact?"exactly":n.inclusive?"at most":"under"} ${n.maximum} character(s)`:n.type==="number"?l=`Number must be ${n.exact?"exactly":n.inclusive?"less than or equal to":"less than"} ${n.maximum}`:n.type==="bigint"?l=`BigInt must be ${n.exact?"exactly":n.inclusive?"less than or equal to":"less than"} ${n.maximum}`:n.type==="date"?l=`Date must be ${n.exact?"exactly":n.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(n.maximum))}`:l="Invalid input";break;case ZodIssueCode.custom:l="Invalid input";break;case ZodIssueCode.invalid_intersection_types:l="Intersection results could not be merged";break;case ZodIssueCode.not_multiple_of:l=`Number must be a multiple of ${n.multipleOf}`;break;case ZodIssueCode.not_finite:l="Number must be finite";break;default:l=i.defaultError,util.assertNever(n)}return{message:l}};let overrideErrorMap=errorMap;function getErrorMap(){return overrideErrorMap}const makeIssue=n=>{const{data:i,path:l,errorMaps:a,issueData:o}=n,s=[...l,...o.path||[]],c={...o,path:s};if(o.message!==void 0)return{...o,path:s,message:o.message};let h="";const m=a.filter(p=>!!p).slice().reverse();for(const p of m)h=p(c,{data:i,defaultError:h}).message;return{...o,path:s,message:h}};function addIssueToContext(n,i){const l=getErrorMap(),a=makeIssue({issueData:i,data:n.data,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,l,l===errorMap?void 0:errorMap].filter(o=>!!o)});n.common.issues.push(a)}class ParseStatus{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(i,l){const a=[];for(const o of l){if(o.status==="aborted")return INVALID;o.status==="dirty"&&i.dirty(),a.push(o.value)}return{status:i.value,value:a}}static async mergeObjectAsync(i,l){const a=[];for(const o of l){const s=await o.key,c=await o.value;a.push({key:s,value:c})}return ParseStatus.mergeObjectSync(i,a)}static mergeObjectSync(i,l){const a={};for(const o of l){const{key:s,value:c}=o;if(s.status==="aborted"||c.status==="aborted")return INVALID;s.status==="dirty"&&i.dirty(),c.status==="dirty"&&i.dirty(),s.value!=="__proto__"&&(typeof c.value<"u"||o.alwaysSet)&&(a[s.value]=c.value)}return{status:i.value,value:a}}}const INVALID=Object.freeze({status:"aborted"}),DIRTY=n=>({status:"dirty",value:n}),OK=n=>({status:"valid",value:n}),isAborted=n=>n.status==="aborted",isDirty=n=>n.status==="dirty",isValid=n=>n.status==="valid",isAsync=n=>typeof Promise<"u"&&n instanceof Promise;var errorUtil;(function(n){n.errToObj=i=>typeof i=="string"?{message:i}:i||{},n.toString=i=>typeof i=="string"?i:i==null?void 0:i.message})(errorUtil||(errorUtil={}));class ParseInputLazyPath{constructor(i,l,a,o){this._cachedPath=[],this.parent=i,this.data=l,this._path=a,this._key=o}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const handleResult=(n,i)=>{if(isValid(i))return{success:!0,data:i.value};if(!n.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const l=new ZodError(n.common.issues);return this._error=l,this._error}}};function processCreateParams(n){if(!n)return{};const{errorMap:i,invalid_type_error:l,required_error:a,description:o}=n;if(i&&(l||a))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return i?{errorMap:i,description:o}:{errorMap:(c,h)=>{const{message:m}=n;return c.code==="invalid_enum_value"?{message:m??h.defaultError}:typeof h.data>"u"?{message:m??a??h.defaultError}:c.code!=="invalid_type"?{message:h.defaultError}:{message:m??l??h.defaultError}},description:o}}class ZodType{get description(){return this._def.description}_getType(i){return getParsedType(i.data)}_getOrReturnCtx(i,l){return l||{common:i.parent.common,data:i.data,parsedType:getParsedType(i.data),schemaErrorMap:this._def.errorMap,path:i.path,parent:i.parent}}_processInputParams(i){return{status:new ParseStatus,ctx:{common:i.parent.common,data:i.data,parsedType:getParsedType(i.data),schemaErrorMap:this._def.errorMap,path:i.path,parent:i.parent}}}_parseSync(i){const l=this._parse(i);if(isAsync(l))throw new Error("Synchronous parse encountered promise.");return l}_parseAsync(i){const l=this._parse(i);return Promise.resolve(l)}parse(i,l){const a=this.safeParse(i,l);if(a.success)return a.data;throw a.error}safeParse(i,l){const a={common:{issues:[],async:(l==null?void 0:l.async)??!1,contextualErrorMap:l==null?void 0:l.errorMap},path:(l==null?void 0:l.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:i,parsedType:getParsedType(i)},o=this._parseSync({data:i,path:a.path,parent:a});return handleResult(a,o)}"~validate"(i){var a,o;const l={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:i,parsedType:getParsedType(i)};if(!this["~standard"].async)try{const s=this._parseSync({data:i,path:[],parent:l});return isValid(s)?{value:s.value}:{issues:l.common.issues}}catch(s){(o=(a=s==null?void 0:s.message)==null?void 0:a.toLowerCase())!=null&&o.includes("encountered")&&(this["~standard"].async=!0),l.common={issues:[],async:!0}}return this._parseAsync({data:i,path:[],parent:l}).then(s=>isValid(s)?{value:s.value}:{issues:l.common.issues})}async parseAsync(i,l){const a=await this.safeParseAsync(i,l);if(a.success)return a.data;throw a.error}async safeParseAsync(i,l){const a={common:{issues:[],contextualErrorMap:l==null?void 0:l.errorMap,async:!0},path:(l==null?void 0:l.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:i,parsedType:getParsedType(i)},o=this._parse({data:i,path:a.path,parent:a}),s=await(isAsync(o)?o:Promise.resolve(o));return handleResult(a,s)}refine(i,l){const a=o=>typeof l=="string"||typeof l>"u"?{message:l}:typeof l=="function"?l(o):l;return this._refinement((o,s)=>{const c=i(o),h=()=>s.addIssue({code:ZodIssueCode.custom,...a(o)});return typeof Promise<"u"&&c instanceof Promise?c.then(m=>m?!0:(h(),!1)):c?!0:(h(),!1)})}refinement(i,l){return this._refinement((a,o)=>i(a)?!0:(o.addIssue(typeof l=="function"?l(a,o):l),!1))}_refinement(i){return new ZodEffects({schema:this,typeName:ZodFirstPartyTypeKind.ZodEffects,effect:{type:"refinement",refinement:i}})}superRefine(i){return this._refinement(i)}constructor(i){this.spa=this.safeParseAsync,this._def=i,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:l=>this["~validate"](l)}}optional(){return ZodOptional.create(this,this._def)}nullable(){return ZodNullable.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return ZodArray.create(this)}promise(){return ZodPromise.create(this,this._def)}or(i){return ZodUnion.create([this,i],this._def)}and(i){return ZodIntersection.create(this,i,this._def)}transform(i){return new ZodEffects({...processCreateParams(this._def),schema:this,typeName:ZodFirstPartyTypeKind.ZodEffects,effect:{type:"transform",transform:i}})}default(i){const l=typeof i=="function"?i:()=>i;return new ZodDefault({...processCreateParams(this._def),innerType:this,defaultValue:l,typeName:ZodFirstPartyTypeKind.ZodDefault})}brand(){return new ZodBranded({typeName:ZodFirstPartyTypeKind.ZodBranded,type:this,...processCreateParams(this._def)})}catch(i){const l=typeof i=="function"?i:()=>i;return new ZodCatch({...processCreateParams(this._def),innerType:this,catchValue:l,typeName:ZodFirstPartyTypeKind.ZodCatch})}describe(i){const l=this.constructor;return new l({...this._def,description:i})}pipe(i){return ZodPipeline.create(this,i)}readonly(){return ZodReadonly.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const cuidRegex=/^c[^\s-]{8,}$/i,cuid2Regex=/^[0-9a-z]+$/,ulidRegex=/^[0-9A-HJKMNP-TV-Z]{26}$/i,uuidRegex=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,nanoidRegex=/^[a-z0-9_-]{21}$/i,jwtRegex=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,durationRegex=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,emailRegex=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,_emojiRegex="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let emojiRegex;const ipv4Regex=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ipv4CidrRegex=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,ipv6Regex=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,ipv6CidrRegex=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,base64Regex=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,base64urlRegex=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,dateRegexSource="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",dateRegex=new RegExp(`^${dateRegexSource}$`);function timeRegexSource(n){let i="[0-5]\\d";n.precision?i=`${i}\\.\\d{${n.precision}}`:n.precision==null&&(i=`${i}(\\.\\d+)?`);const l=n.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${i})${l}`}function timeRegex(n){return new RegExp(`^${timeRegexSource(n)}$`)}function datetimeRegex(n){let i=`${dateRegexSource}T${timeRegexSource(n)}`;const l=[];return l.push(n.local?"Z?":"Z"),n.offset&&l.push("([+-]\\d{2}:?\\d{2})"),i=`${i}(${l.join("|")})`,new RegExp(`^${i}$`)}function isValidIP(n,i){return!!((i==="v4"||!i)&&ipv4Regex.test(n)||(i==="v6"||!i)&&ipv6Regex.test(n))}function isValidJWT(n,i){if(!jwtRegex.test(n))return!1;try{const[l]=n.split(".");if(!l)return!1;const a=l.replace(/-/g,"+").replace(/_/g,"/").padEnd(l.length+(4-l.length%4)%4,"="),o=JSON.parse(atob(a));return!(typeof o!="object"||o===null||"typ"in o&&(o==null?void 0:o.typ)!=="JWT"||!o.alg||i&&o.alg!==i)}catch{return!1}}function isValidCidr(n,i){return!!((i==="v4"||!i)&&ipv4CidrRegex.test(n)||(i==="v6"||!i)&&ipv6CidrRegex.test(n))}class ZodString extends ZodType{_parse(i){if(this._def.coerce&&(i.data=String(i.data)),this._getType(i)!==ZodParsedType.string){const s=this._getOrReturnCtx(i);return addIssueToContext(s,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.string,received:s.parsedType}),INVALID}const a=new ParseStatus;let o;for(const s of this._def.checks)if(s.kind==="min")i.data.length<s.value&&(o=this._getOrReturnCtx(i,o),addIssueToContext(o,{code:ZodIssueCode.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),a.dirty());else if(s.kind==="max")i.data.length>s.value&&(o=this._getOrReturnCtx(i,o),addIssueToContext(o,{code:ZodIssueCode.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),a.dirty());else if(s.kind==="length"){const c=i.data.length>s.value,h=i.data.length<s.value;(c||h)&&(o=this._getOrReturnCtx(i,o),c?addIssueToContext(o,{code:ZodIssueCode.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}):h&&addIssueToContext(o,{code:ZodIssueCode.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}),a.dirty())}else if(s.kind==="email")emailRegex.test(i.data)||(o=this._getOrReturnCtx(i,o),addIssueToContext(o,{validation:"email",code:ZodIssueCode.invalid_string,message:s.message}),a.dirty());else if(s.kind==="emoji")emojiRegex||(emojiRegex=new RegExp(_emojiRegex,"u")),emojiRegex.test(i.data)||(o=this._getOrReturnCtx(i,o),addIssueToContext(o,{validation:"emoji",code:ZodIssueCode.invalid_string,message:s.message}),a.dirty());else if(s.kind==="uuid")uuidRegex.test(i.data)||(o=this._getOrReturnCtx(i,o),addIssueToContext(o,{validation:"uuid",code:ZodIssueCode.invalid_string,message:s.message}),a.dirty());else if(s.kind==="nanoid")nanoidRegex.test(i.data)||(o=this._getOrReturnCtx(i,o),addIssueToContext(o,{validation:"nanoid",code:ZodIssueCode.invalid_string,message:s.message}),a.dirty());else if(s.kind==="cuid")cuidRegex.test(i.data)||(o=this._getOrReturnCtx(i,o),addIssueToContext(o,{validation:"cuid",code:ZodIssueCode.invalid_string,message:s.message}),a.dirty());else if(s.kind==="cuid2")cuid2Regex.test(i.data)||(o=this._getOrReturnCtx(i,o),addIssueToContext(o,{validation:"cuid2",code:ZodIssueCode.invalid_string,message:s.message}),a.dirty());else if(s.kind==="ulid")ulidRegex.test(i.data)||(o=this._getOrReturnCtx(i,o),addIssueToContext(o,{validation:"ulid",code:ZodIssueCode.invalid_string,message:s.message}),a.dirty());else if(s.kind==="url")try{new URL(i.data)}catch{o=this._getOrReturnCtx(i,o),addIssueToContext(o,{validation:"url",code:ZodIssueCode.invalid_string,message:s.message}),a.dirty()}else s.kind==="regex"?(s.regex.lastIndex=0,s.regex.test(i.data)||(o=this._getOrReturnCtx(i,o),addIssueToContext(o,{validation:"regex",code:ZodIssueCode.invalid_string,message:s.message}),a.dirty())):s.kind==="trim"?i.data=i.data.trim():s.kind==="includes"?i.data.includes(s.value,s.position)||(o=this._getOrReturnCtx(i,o),addIssueToContext(o,{code:ZodIssueCode.invalid_string,validation:{includes:s.value,position:s.position},message:s.message}),a.dirty()):s.kind==="toLowerCase"?i.data=i.data.toLowerCase():s.kind==="toUpperCase"?i.data=i.data.toUpperCase():s.kind==="startsWith"?i.data.startsWith(s.value)||(o=this._getOrReturnCtx(i,o),addIssueToContext(o,{code:ZodIssueCode.invalid_string,validation:{startsWith:s.value},message:s.message}),a.dirty()):s.kind==="endsWith"?i.data.endsWith(s.value)||(o=this._getOrReturnCtx(i,o),addIssueToContext(o,{code:ZodIssueCode.invalid_string,validation:{endsWith:s.value},message:s.message}),a.dirty()):s.kind==="datetime"?datetimeRegex(s).test(i.data)||(o=this._getOrReturnCtx(i,o),addIssueToContext(o,{code:ZodIssueCode.invalid_string,validation:"datetime",message:s.message}),a.dirty()):s.kind==="date"?dateRegex.test(i.data)||(o=this._getOrReturnCtx(i,o),addIssueToContext(o,{code:ZodIssueCode.invalid_string,validation:"date",message:s.message}),a.dirty()):s.kind==="time"?timeRegex(s).test(i.data)||(o=this._getOrReturnCtx(i,o),addIssueToContext(o,{code:ZodIssueCode.invalid_string,validation:"time",message:s.message}),a.dirty()):s.kind==="duration"?durationRegex.test(i.data)||(o=this._getOrReturnCtx(i,o),addIssueToContext(o,{validation:"duration",code:ZodIssueCode.invalid_string,message:s.message}),a.dirty()):s.kind==="ip"?isValidIP(i.data,s.version)||(o=this._getOrReturnCtx(i,o),addIssueToContext(o,{validation:"ip",code:ZodIssueCode.invalid_string,message:s.message}),a.dirty()):s.kind==="jwt"?isValidJWT(i.data,s.alg)||(o=this._getOrReturnCtx(i,o),addIssueToContext(o,{validation:"jwt",code:ZodIssueCode.invalid_string,message:s.message}),a.dirty()):s.kind==="cidr"?isValidCidr(i.data,s.version)||(o=this._getOrReturnCtx(i,o),addIssueToContext(o,{validation:"cidr",code:ZodIssueCode.invalid_string,message:s.message}),a.dirty()):s.kind==="base64"?base64Regex.test(i.data)||(o=this._getOrReturnCtx(i,o),addIssueToContext(o,{validation:"base64",code:ZodIssueCode.invalid_string,message:s.message}),a.dirty()):s.kind==="base64url"?base64urlRegex.test(i.data)||(o=this._getOrReturnCtx(i,o),addIssueToContext(o,{validation:"base64url",code:ZodIssueCode.invalid_string,message:s.message}),a.dirty()):util.assertNever(s);return{status:a.value,value:i.data}}_regex(i,l,a){return this.refinement(o=>i.test(o),{validation:l,code:ZodIssueCode.invalid_string,...errorUtil.errToObj(a)})}_addCheck(i){return new ZodString({...this._def,checks:[...this._def.checks,i]})}email(i){return this._addCheck({kind:"email",...errorUtil.errToObj(i)})}url(i){return this._addCheck({kind:"url",...errorUtil.errToObj(i)})}emoji(i){return this._addCheck({kind:"emoji",...errorUtil.errToObj(i)})}uuid(i){return this._addCheck({kind:"uuid",...errorUtil.errToObj(i)})}nanoid(i){return this._addCheck({kind:"nanoid",...errorUtil.errToObj(i)})}cuid(i){return this._addCheck({kind:"cuid",...errorUtil.errToObj(i)})}cuid2(i){return this._addCheck({kind:"cuid2",...errorUtil.errToObj(i)})}ulid(i){return this._addCheck({kind:"ulid",...errorUtil.errToObj(i)})}base64(i){return this._addCheck({kind:"base64",...errorUtil.errToObj(i)})}base64url(i){return this._addCheck({kind:"base64url",...errorUtil.errToObj(i)})}jwt(i){return this._addCheck({kind:"jwt",...errorUtil.errToObj(i)})}ip(i){return this._addCheck({kind:"ip",...errorUtil.errToObj(i)})}cidr(i){return this._addCheck({kind:"cidr",...errorUtil.errToObj(i)})}datetime(i){return typeof i=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:i}):this._addCheck({kind:"datetime",precision:typeof(i==null?void 0:i.precision)>"u"?null:i==null?void 0:i.precision,offset:(i==null?void 0:i.offset)??!1,local:(i==null?void 0:i.local)??!1,...errorUtil.errToObj(i==null?void 0:i.message)})}date(i){return this._addCheck({kind:"date",message:i})}time(i){return typeof i=="string"?this._addCheck({kind:"time",precision:null,message:i}):this._addCheck({kind:"time",precision:typeof(i==null?void 0:i.precision)>"u"?null:i==null?void 0:i.precision,...errorUtil.errToObj(i==null?void 0:i.message)})}duration(i){return this._addCheck({kind:"duration",...errorUtil.errToObj(i)})}regex(i,l){return this._addCheck({kind:"regex",regex:i,...errorUtil.errToObj(l)})}includes(i,l){return this._addCheck({kind:"includes",value:i,position:l==null?void 0:l.position,...errorUtil.errToObj(l==null?void 0:l.message)})}startsWith(i,l){return this._addCheck({kind:"startsWith",value:i,...errorUtil.errToObj(l)})}endsWith(i,l){return this._addCheck({kind:"endsWith",value:i,...errorUtil.errToObj(l)})}min(i,l){return this._addCheck({kind:"min",value:i,...errorUtil.errToObj(l)})}max(i,l){return this._addCheck({kind:"max",value:i,...errorUtil.errToObj(l)})}length(i,l){return this._addCheck({kind:"length",value:i,...errorUtil.errToObj(l)})}nonempty(i){return this.min(1,errorUtil.errToObj(i))}trim(){return new ZodString({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new ZodString({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new ZodString({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(i=>i.kind==="datetime")}get isDate(){return!!this._def.checks.find(i=>i.kind==="date")}get isTime(){return!!this._def.checks.find(i=>i.kind==="time")}get isDuration(){return!!this._def.checks.find(i=>i.kind==="duration")}get isEmail(){return!!this._def.checks.find(i=>i.kind==="email")}get isURL(){return!!this._def.checks.find(i=>i.kind==="url")}get isEmoji(){return!!this._def.checks.find(i=>i.kind==="emoji")}get isUUID(){return!!this._def.checks.find(i=>i.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(i=>i.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(i=>i.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(i=>i.kind==="cuid2")}get isULID(){return!!this._def.checks.find(i=>i.kind==="ulid")}get isIP(){return!!this._def.checks.find(i=>i.kind==="ip")}get isCIDR(){return!!this._def.checks.find(i=>i.kind==="cidr")}get isBase64(){return!!this._def.checks.find(i=>i.kind==="base64")}get isBase64url(){return!!this._def.checks.find(i=>i.kind==="base64url")}get minLength(){let i=null;for(const l of this._def.checks)l.kind==="min"&&(i===null||l.value>i)&&(i=l.value);return i}get maxLength(){let i=null;for(const l of this._def.checks)l.kind==="max"&&(i===null||l.value<i)&&(i=l.value);return i}}ZodString.create=n=>new ZodString({checks:[],typeName:ZodFirstPartyTypeKind.ZodString,coerce:(n==null?void 0:n.coerce)??!1,...processCreateParams(n)});function floatSafeRemainder(n,i){const l=(n.toString().split(".")[1]||"").length,a=(i.toString().split(".")[1]||"").length,o=l>a?l:a,s=Number.parseInt(n.toFixed(o).replace(".","")),c=Number.parseInt(i.toFixed(o).replace(".",""));return s%c/10**o}class ZodNumber extends ZodType{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(i){if(this._def.coerce&&(i.data=Number(i.data)),this._getType(i)!==ZodParsedType.number){const s=this._getOrReturnCtx(i);return addIssueToContext(s,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.number,received:s.parsedType}),INVALID}let a;const o=new ParseStatus;for(const s of this._def.checks)s.kind==="int"?util.isInteger(i.data)||(a=this._getOrReturnCtx(i,a),addIssueToContext(a,{code:ZodIssueCode.invalid_type,expected:"integer",received:"float",message:s.message}),o.dirty()):s.kind==="min"?(s.inclusive?i.data<s.value:i.data<=s.value)&&(a=this._getOrReturnCtx(i,a),addIssueToContext(a,{code:ZodIssueCode.too_small,minimum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),o.dirty()):s.kind==="max"?(s.inclusive?i.data>s.value:i.data>=s.value)&&(a=this._getOrReturnCtx(i,a),addIssueToContext(a,{code:ZodIssueCode.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),o.dirty()):s.kind==="multipleOf"?floatSafeRemainder(i.data,s.value)!==0&&(a=this._getOrReturnCtx(i,a),addIssueToContext(a,{code:ZodIssueCode.not_multiple_of,multipleOf:s.value,message:s.message}),o.dirty()):s.kind==="finite"?Number.isFinite(i.data)||(a=this._getOrReturnCtx(i,a),addIssueToContext(a,{code:ZodIssueCode.not_finite,message:s.message}),o.dirty()):util.assertNever(s);return{status:o.value,value:i.data}}gte(i,l){return this.setLimit("min",i,!0,errorUtil.toString(l))}gt(i,l){return this.setLimit("min",i,!1,errorUtil.toString(l))}lte(i,l){return this.setLimit("max",i,!0,errorUtil.toString(l))}lt(i,l){return this.setLimit("max",i,!1,errorUtil.toString(l))}setLimit(i,l,a,o){return new ZodNumber({...this._def,checks:[...this._def.checks,{kind:i,value:l,inclusive:a,message:errorUtil.toString(o)}]})}_addCheck(i){return new ZodNumber({...this._def,checks:[...this._def.checks,i]})}int(i){return this._addCheck({kind:"int",message:errorUtil.toString(i)})}positive(i){return this._addCheck({kind:"min",value:0,inclusive:!1,message:errorUtil.toString(i)})}negative(i){return this._addCheck({kind:"max",value:0,inclusive:!1,message:errorUtil.toString(i)})}nonpositive(i){return this._addCheck({kind:"max",value:0,inclusive:!0,message:errorUtil.toString(i)})}nonnegative(i){return this._addCheck({kind:"min",value:0,inclusive:!0,message:errorUtil.toString(i)})}multipleOf(i,l){return this._addCheck({kind:"multipleOf",value:i,message:errorUtil.toString(l)})}finite(i){return this._addCheck({kind:"finite",message:errorUtil.toString(i)})}safe(i){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:errorUtil.toString(i)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:errorUtil.toString(i)})}get minValue(){let i=null;for(const l of this._def.checks)l.kind==="min"&&(i===null||l.value>i)&&(i=l.value);return i}get maxValue(){let i=null;for(const l of this._def.checks)l.kind==="max"&&(i===null||l.value<i)&&(i=l.value);return i}get isInt(){return!!this._def.checks.find(i=>i.kind==="int"||i.kind==="multipleOf"&&util.isInteger(i.value))}get isFinite(){let i=null,l=null;for(const a of this._def.checks){if(a.kind==="finite"||a.kind==="int"||a.kind==="multipleOf")return!0;a.kind==="min"?(l===null||a.value>l)&&(l=a.value):a.kind==="max"&&(i===null||a.value<i)&&(i=a.value)}return Number.isFinite(l)&&Number.isFinite(i)}}ZodNumber.create=n=>new ZodNumber({checks:[],typeName:ZodFirstPartyTypeKind.ZodNumber,coerce:(n==null?void 0:n.coerce)||!1,...processCreateParams(n)});class ZodBigInt extends ZodType{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(i){if(this._def.coerce)try{i.data=BigInt(i.data)}catch{return this._getInvalidInput(i)}if(this._getType(i)!==ZodParsedType.bigint)return this._getInvalidInput(i);let a;const o=new ParseStatus;for(const s of this._def.checks)s.kind==="min"?(s.inclusive?i.data<s.value:i.data<=s.value)&&(a=this._getOrReturnCtx(i,a),addIssueToContext(a,{code:ZodIssueCode.too_small,type:"bigint",minimum:s.value,inclusive:s.inclusive,message:s.message}),o.dirty()):s.kind==="max"?(s.inclusive?i.data>s.value:i.data>=s.value)&&(a=this._getOrReturnCtx(i,a),addIssueToContext(a,{code:ZodIssueCode.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),o.dirty()):s.kind==="multipleOf"?i.data%s.value!==BigInt(0)&&(a=this._getOrReturnCtx(i,a),addIssueToContext(a,{code:ZodIssueCode.not_multiple_of,multipleOf:s.value,message:s.message}),o.dirty()):util.assertNever(s);return{status:o.value,value:i.data}}_getInvalidInput(i){const l=this._getOrReturnCtx(i);return addIssueToContext(l,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.bigint,received:l.parsedType}),INVALID}gte(i,l){return this.setLimit("min",i,!0,errorUtil.toString(l))}gt(i,l){return this.setLimit("min",i,!1,errorUtil.toString(l))}lte(i,l){return this.setLimit("max",i,!0,errorUtil.toString(l))}lt(i,l){return this.setLimit("max",i,!1,errorUtil.toString(l))}setLimit(i,l,a,o){return new ZodBigInt({...this._def,checks:[...this._def.checks,{kind:i,value:l,inclusive:a,message:errorUtil.toString(o)}]})}_addCheck(i){return new ZodBigInt({...this._def,checks:[...this._def.checks,i]})}positive(i){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:errorUtil.toString(i)})}negative(i){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:errorUtil.toString(i)})}nonpositive(i){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:errorUtil.toString(i)})}nonnegative(i){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:errorUtil.toString(i)})}multipleOf(i,l){return this._addCheck({kind:"multipleOf",value:i,message:errorUtil.toString(l)})}get minValue(){let i=null;for(const l of this._def.checks)l.kind==="min"&&(i===null||l.value>i)&&(i=l.value);return i}get maxValue(){let i=null;for(const l of this._def.checks)l.kind==="max"&&(i===null||l.value<i)&&(i=l.value);return i}}ZodBigInt.create=n=>new ZodBigInt({checks:[],typeName:ZodFirstPartyTypeKind.ZodBigInt,coerce:(n==null?void 0:n.coerce)??!1,...processCreateParams(n)});class ZodBoolean extends ZodType{_parse(i){if(this._def.coerce&&(i.data=!!i.data),this._getType(i)!==ZodParsedType.boolean){const a=this._getOrReturnCtx(i);return addIssueToContext(a,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.boolean,received:a.parsedType}),INVALID}return OK(i.data)}}ZodBoolean.create=n=>new ZodBoolean({typeName:ZodFirstPartyTypeKind.ZodBoolean,coerce:(n==null?void 0:n.coerce)||!1,...processCreateParams(n)});class ZodDate extends ZodType{_parse(i){if(this._def.coerce&&(i.data=new Date(i.data)),this._getType(i)!==ZodParsedType.date){const s=this._getOrReturnCtx(i);return addIssueToContext(s,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.date,received:s.parsedType}),INVALID}if(Number.isNaN(i.data.getTime())){const s=this._getOrReturnCtx(i);return addIssueToContext(s,{code:ZodIssueCode.invalid_date}),INVALID}const a=new ParseStatus;let o;for(const s of this._def.checks)s.kind==="min"?i.data.getTime()<s.value&&(o=this._getOrReturnCtx(i,o),addIssueToContext(o,{code:ZodIssueCode.too_small,message:s.message,inclusive:!0,exact:!1,minimum:s.value,type:"date"}),a.dirty()):s.kind==="max"?i.data.getTime()>s.value&&(o=this._getOrReturnCtx(i,o),addIssueToContext(o,{code:ZodIssueCode.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),a.dirty()):util.assertNever(s);return{status:a.value,value:new Date(i.data.getTime())}}_addCheck(i){return new ZodDate({...this._def,checks:[...this._def.checks,i]})}min(i,l){return this._addCheck({kind:"min",value:i.getTime(),message:errorUtil.toString(l)})}max(i,l){return this._addCheck({kind:"max",value:i.getTime(),message:errorUtil.toString(l)})}get minDate(){let i=null;for(const l of this._def.checks)l.kind==="min"&&(i===null||l.value>i)&&(i=l.value);return i!=null?new Date(i):null}get maxDate(){let i=null;for(const l of this._def.checks)l.kind==="max"&&(i===null||l.value<i)&&(i=l.value);return i!=null?new Date(i):null}}ZodDate.create=n=>new ZodDate({checks:[],coerce:(n==null?void 0:n.coerce)||!1,typeName:ZodFirstPartyTypeKind.ZodDate,...processCreateParams(n)});class ZodSymbol extends ZodType{_parse(i){if(this._getType(i)!==ZodParsedType.symbol){const a=this._getOrReturnCtx(i);return addIssueToContext(a,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.symbol,received:a.parsedType}),INVALID}return OK(i.data)}}ZodSymbol.create=n=>new ZodSymbol({typeName:ZodFirstPartyTypeKind.ZodSymbol,...processCreateParams(n)});class ZodUndefined extends ZodType{_parse(i){if(this._getType(i)!==ZodParsedType.undefined){const a=this._getOrReturnCtx(i);return addIssueToContext(a,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.undefined,received:a.parsedType}),INVALID}return OK(i.data)}}ZodUndefined.create=n=>new ZodUndefined({typeName:ZodFirstPartyTypeKind.ZodUndefined,...processCreateParams(n)});class ZodNull extends ZodType{_parse(i){if(this._getType(i)!==ZodParsedType.null){const a=this._getOrReturnCtx(i);return addIssueToContext(a,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.null,received:a.parsedType}),INVALID}return OK(i.data)}}ZodNull.create=n=>new ZodNull({typeName:ZodFirstPartyTypeKind.ZodNull,...processCreateParams(n)});class ZodAny extends ZodType{constructor(){super(...arguments),this._any=!0}_parse(i){return OK(i.data)}}ZodAny.create=n=>new ZodAny({typeName:ZodFirstPartyTypeKind.ZodAny,...processCreateParams(n)});class ZodUnknown extends ZodType{constructor(){super(...arguments),this._unknown=!0}_parse(i){return OK(i.data)}}ZodUnknown.create=n=>new ZodUnknown({typeName:ZodFirstPartyTypeKind.ZodUnknown,...processCreateParams(n)});class ZodNever extends ZodType{_parse(i){const l=this._getOrReturnCtx(i);return addIssueToContext(l,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.never,received:l.parsedType}),INVALID}}ZodNever.create=n=>new ZodNever({typeName:ZodFirstPartyTypeKind.ZodNever,...processCreateParams(n)});class ZodVoid extends ZodType{_parse(i){if(this._getType(i)!==ZodParsedType.undefined){const a=this._getOrReturnCtx(i);return addIssueToContext(a,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.void,received:a.parsedType}),INVALID}return OK(i.data)}}ZodVoid.create=n=>new ZodVoid({typeName:ZodFirstPartyTypeKind.ZodVoid,...processCreateParams(n)});class ZodArray extends ZodType{_parse(i){const{ctx:l,status:a}=this._processInputParams(i),o=this._def;if(l.parsedType!==ZodParsedType.array)return addIssueToContext(l,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.array,received:l.parsedType}),INVALID;if(o.exactLength!==null){const c=l.data.length>o.exactLength.value,h=l.data.length<o.exactLength.value;(c||h)&&(addIssueToContext(l,{code:c?ZodIssueCode.too_big:ZodIssueCode.too_small,minimum:h?o.exactLength.value:void 0,maximum:c?o.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:o.exactLength.message}),a.dirty())}if(o.minLength!==null&&l.data.length<o.minLength.value&&(addIssueToContext(l,{code:ZodIssueCode.too_small,minimum:o.minLength.value,type:"array",inclusive:!0,exact:!1,message:o.minLength.message}),a.dirty()),o.maxLength!==null&&l.data.length>o.maxLength.value&&(addIssueToContext(l,{code:ZodIssueCode.too_big,maximum:o.maxLength.value,type:"array",inclusive:!0,exact:!1,message:o.maxLength.message}),a.dirty()),l.common.async)return Promise.all([...l.data].map((c,h)=>o.type._parseAsync(new ParseInputLazyPath(l,c,l.path,h)))).then(c=>ParseStatus.mergeArray(a,c));const s=[...l.data].map((c,h)=>o.type._parseSync(new ParseInputLazyPath(l,c,l.path,h)));return ParseStatus.mergeArray(a,s)}get element(){return this._def.type}min(i,l){return new ZodArray({...this._def,minLength:{value:i,message:errorUtil.toString(l)}})}max(i,l){return new ZodArray({...this._def,maxLength:{value:i,message:errorUtil.toString(l)}})}length(i,l){return new ZodArray({...this._def,exactLength:{value:i,message:errorUtil.toString(l)}})}nonempty(i){return this.min(1,i)}}ZodArray.create=(n,i)=>new ZodArray({type:n,minLength:null,maxLength:null,exactLength:null,typeName:ZodFirstPartyTypeKind.ZodArray,...processCreateParams(i)});function deepPartialify(n){if(n instanceof ZodObject){const i={};for(const l in n.shape){const a=n.shape[l];i[l]=ZodOptional.create(deepPartialify(a))}return new ZodObject({...n._def,shape:()=>i})}else return n instanceof ZodArray?new ZodArray({...n._def,type:deepPartialify(n.element)}):n instanceof ZodOptional?ZodOptional.create(deepPartialify(n.unwrap())):n instanceof ZodNullable?ZodNullable.create(deepPartialify(n.unwrap())):n instanceof ZodTuple?ZodTuple.create(n.items.map(i=>deepPartialify(i))):n}class ZodObject extends ZodType{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const i=this._def.shape(),l=util.objectKeys(i);return this._cached={shape:i,keys:l},this._cached}_parse(i){if(this._getType(i)!==ZodParsedType.object){const p=this._getOrReturnCtx(i);return addIssueToContext(p,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.object,received:p.parsedType}),INVALID}const{status:a,ctx:o}=this._processInputParams(i),{shape:s,keys:c}=this._getCached(),h=[];if(!(this._def.catchall instanceof ZodNever&&this._def.unknownKeys==="strip"))for(const p in o.data)c.includes(p)||h.push(p);const m=[];for(const p of c){const y=s[p],x=o.data[p];m.push({key:{status:"valid",value:p},value:y._parse(new ParseInputLazyPath(o,x,o.path,p)),alwaysSet:p in o.data})}if(this._def.catchall instanceof ZodNever){const p=this._def.unknownKeys;if(p==="passthrough")for(const y of h)m.push({key:{status:"valid",value:y},value:{status:"valid",value:o.data[y]}});else if(p==="strict")h.length>0&&(addIssueToContext(o,{code:ZodIssueCode.unrecognized_keys,keys:h}),a.dirty());else if(p!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const p=this._def.catchall;for(const y of h){const x=o.data[y];m.push({key:{status:"valid",value:y},value:p._parse(new ParseInputLazyPath(o,x,o.path,y)),alwaysSet:y in o.data})}}return o.common.async?Promise.resolve().then(async()=>{const p=[];for(const y of m){const x=await y.key,b=await y.value;p.push({key:x,value:b,alwaysSet:y.alwaysSet})}return p}).then(p=>ParseStatus.mergeObjectSync(a,p)):ParseStatus.mergeObjectSync(a,m)}get shape(){return this._def.shape()}strict(i){return errorUtil.errToObj,new ZodObject({...this._def,unknownKeys:"strict",...i!==void 0?{errorMap:(l,a)=>{var s,c;const o=((c=(s=this._def).errorMap)==null?void 0:c.call(s,l,a).message)??a.defaultError;return l.code==="unrecognized_keys"?{message:errorUtil.errToObj(i).message??o}:{message:o}}}:{}})}strip(){return new ZodObject({...this._def,unknownKeys:"strip"})}passthrough(){return new ZodObject({...this._def,unknownKeys:"passthrough"})}extend(i){return new ZodObject({...this._def,shape:()=>({...this._def.shape(),...i})})}merge(i){return new ZodObject({unknownKeys:i._def.unknownKeys,catchall:i._def.catchall,shape:()=>({...this._def.shape(),...i._def.shape()}),typeName:ZodFirstPartyTypeKind.ZodObject})}setKey(i,l){return this.augment({[i]:l})}catchall(i){return new ZodObject({...this._def,catchall:i})}pick(i){const l={};for(const a of util.objectKeys(i))i[a]&&this.shape[a]&&(l[a]=this.shape[a]);return new ZodObject({...this._def,shape:()=>l})}omit(i){const l={};for(const a of util.objectKeys(this.shape))i[a]||(l[a]=this.shape[a]);return new ZodObject({...this._def,shape:()=>l})}deepPartial(){return deepPartialify(this)}partial(i){const l={};for(const a of util.objectKeys(this.shape)){const o=this.shape[a];i&&!i[a]?l[a]=o:l[a]=o.optional()}return new ZodObject({...this._def,shape:()=>l})}required(i){const l={};for(const a of util.objectKeys(this.shape))if(i&&!i[a])l[a]=this.shape[a];else{let s=this.shape[a];for(;s instanceof ZodOptional;)s=s._def.innerType;l[a]=s}return new ZodObject({...this._def,shape:()=>l})}keyof(){return createZodEnum(util.objectKeys(this.shape))}}ZodObject.create=(n,i)=>new ZodObject({shape:()=>n,unknownKeys:"strip",catchall:ZodNever.create(),typeName:ZodFirstPartyTypeKind.ZodObject,...processCreateParams(i)});ZodObject.strictCreate=(n,i)=>new ZodObject({shape:()=>n,unknownKeys:"strict",catchall:ZodNever.create(),typeName:ZodFirstPartyTypeKind.ZodObject,...processCreateParams(i)});ZodObject.lazycreate=(n,i)=>new ZodObject({shape:n,unknownKeys:"strip",catchall:ZodNever.create(),typeName:ZodFirstPartyTypeKind.ZodObject,...processCreateParams(i)});class ZodUnion extends ZodType{_parse(i){const{ctx:l}=this._processInputParams(i),a=this._def.options;function o(s){for(const h of s)if(h.result.status==="valid")return h.result;for(const h of s)if(h.result.status==="dirty")return l.common.issues.push(...h.ctx.common.issues),h.result;const c=s.map(h=>new ZodError(h.ctx.common.issues));return addIssueToContext(l,{code:ZodIssueCode.invalid_union,unionErrors:c}),INVALID}if(l.common.async)return Promise.all(a.map(async s=>{const c={...l,common:{...l.common,issues:[]},parent:null};return{result:await s._parseAsync({data:l.data,path:l.path,parent:c}),ctx:c}})).then(o);{let s;const c=[];for(const m of a){const p={...l,common:{...l.common,issues:[]},parent:null},y=m._parseSync({data:l.data,path:l.path,parent:p});if(y.status==="valid")return y;y.status==="dirty"&&!s&&(s={result:y,ctx:p}),p.common.issues.length&&c.push(p.common.issues)}if(s)return l.common.issues.push(...s.ctx.common.issues),s.result;const h=c.map(m=>new ZodError(m));return addIssueToContext(l,{code:ZodIssueCode.invalid_union,unionErrors:h}),INVALID}}get options(){return this._def.options}}ZodUnion.create=(n,i)=>new ZodUnion({options:n,typeName:ZodFirstPartyTypeKind.ZodUnion,...processCreateParams(i)});function mergeValues(n,i){const l=getParsedType(n),a=getParsedType(i);if(n===i)return{valid:!0,data:n};if(l===ZodParsedType.object&&a===ZodParsedType.object){const o=util.objectKeys(i),s=util.objectKeys(n).filter(h=>o.indexOf(h)!==-1),c={...n,...i};for(const h of s){const m=mergeValues(n[h],i[h]);if(!m.valid)return{valid:!1};c[h]=m.data}return{valid:!0,data:c}}else if(l===ZodParsedType.array&&a===ZodParsedType.array){if(n.length!==i.length)return{valid:!1};const o=[];for(let s=0;s<n.length;s++){const c=n[s],h=i[s],m=mergeValues(c,h);if(!m.valid)return{valid:!1};o.push(m.data)}return{valid:!0,data:o}}else return l===ZodParsedType.date&&a===ZodParsedType.date&&+n==+i?{valid:!0,data:n}:{valid:!1}}class ZodIntersection extends ZodType{_parse(i){const{status:l,ctx:a}=this._processInputParams(i),o=(s,c)=>{if(isAborted(s)||isAborted(c))return INVALID;const h=mergeValues(s.value,c.value);return h.valid?((isDirty(s)||isDirty(c))&&l.dirty(),{status:l.value,value:h.data}):(addIssueToContext(a,{code:ZodIssueCode.invalid_intersection_types}),INVALID)};return a.common.async?Promise.all([this._def.left._parseAsync({data:a.data,path:a.path,parent:a}),this._def.right._parseAsync({data:a.data,path:a.path,parent:a})]).then(([s,c])=>o(s,c)):o(this._def.left._parseSync({data:a.data,path:a.path,parent:a}),this._def.right._parseSync({data:a.data,path:a.path,parent:a}))}}ZodIntersection.create=(n,i,l)=>new ZodIntersection({left:n,right:i,typeName:ZodFirstPartyTypeKind.ZodIntersection,...processCreateParams(l)});class ZodTuple extends ZodType{_parse(i){const{status:l,ctx:a}=this._processInputParams(i);if(a.parsedType!==ZodParsedType.array)return addIssueToContext(a,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.array,received:a.parsedType}),INVALID;if(a.data.length<this._def.items.length)return addIssueToContext(a,{code:ZodIssueCode.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),INVALID;!this._def.rest&&a.data.length>this._def.items.length&&(addIssueToContext(a,{code:ZodIssueCode.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),l.dirty());const s=[...a.data].map((c,h)=>{const m=this._def.items[h]||this._def.rest;return m?m._parse(new ParseInputLazyPath(a,c,a.path,h)):null}).filter(c=>!!c);return a.common.async?Promise.all(s).then(c=>ParseStatus.mergeArray(l,c)):ParseStatus.mergeArray(l,s)}get items(){return this._def.items}rest(i){return new ZodTuple({...this._def,rest:i})}}ZodTuple.create=(n,i)=>{if(!Array.isArray(n))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new ZodTuple({items:n,typeName:ZodFirstPartyTypeKind.ZodTuple,rest:null,...processCreateParams(i)})};class ZodRecord extends ZodType{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(i){const{status:l,ctx:a}=this._processInputParams(i);if(a.parsedType!==ZodParsedType.object)return addIssueToContext(a,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.object,received:a.parsedType}),INVALID;const o=[],s=this._def.keyType,c=this._def.valueType;for(const h in a.data)o.push({key:s._parse(new ParseInputLazyPath(a,h,a.path,h)),value:c._parse(new ParseInputLazyPath(a,a.data[h],a.path,h)),alwaysSet:h in a.data});return a.common.async?ParseStatus.mergeObjectAsync(l,o):ParseStatus.mergeObjectSync(l,o)}get element(){return this._def.valueType}static create(i,l,a){return l instanceof ZodType?new ZodRecord({keyType:i,valueType:l,typeName:ZodFirstPartyTypeKind.ZodRecord,...processCreateParams(a)}):new ZodRecord({keyType:ZodString.create(),valueType:i,typeName:ZodFirstPartyTypeKind.ZodRecord,...processCreateParams(l)})}}class ZodMap extends ZodType{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(i){const{status:l,ctx:a}=this._processInputParams(i);if(a.parsedType!==ZodParsedType.map)return addIssueToContext(a,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.map,received:a.parsedType}),INVALID;const o=this._def.keyType,s=this._def.valueType,c=[...a.data.entries()].map(([h,m],p)=>({key:o._parse(new ParseInputLazyPath(a,h,a.path,[p,"key"])),value:s._parse(new ParseInputLazyPath(a,m,a.path,[p,"value"]))}));if(a.common.async){const h=new Map;return Promise.resolve().then(async()=>{for(const m of c){const p=await m.key,y=await m.value;if(p.status==="aborted"||y.status==="aborted")return INVALID;(p.status==="dirty"||y.status==="dirty")&&l.dirty(),h.set(p.value,y.value)}return{status:l.value,value:h}})}else{const h=new Map;for(const m of c){const p=m.key,y=m.value;if(p.status==="aborted"||y.status==="aborted")return INVALID;(p.status==="dirty"||y.status==="dirty")&&l.dirty(),h.set(p.value,y.value)}return{status:l.value,value:h}}}}ZodMap.create=(n,i,l)=>new ZodMap({valueType:i,keyType:n,typeName:ZodFirstPartyTypeKind.ZodMap,...processCreateParams(l)});class ZodSet extends ZodType{_parse(i){const{status:l,ctx:a}=this._processInputParams(i);if(a.parsedType!==ZodParsedType.set)return addIssueToContext(a,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.set,received:a.parsedType}),INVALID;const o=this._def;o.minSize!==null&&a.data.size<o.minSize.value&&(addIssueToContext(a,{code:ZodIssueCode.too_small,minimum:o.minSize.value,type:"set",inclusive:!0,exact:!1,message:o.minSize.message}),l.dirty()),o.maxSize!==null&&a.data.size>o.maxSize.value&&(addIssueToContext(a,{code:ZodIssueCode.too_big,maximum:o.maxSize.value,type:"set",inclusive:!0,exact:!1,message:o.maxSize.message}),l.dirty());const s=this._def.valueType;function c(m){const p=new Set;for(const y of m){if(y.status==="aborted")return INVALID;y.status==="dirty"&&l.dirty(),p.add(y.value)}return{status:l.value,value:p}}const h=[...a.data.values()].map((m,p)=>s._parse(new ParseInputLazyPath(a,m,a.path,p)));return a.common.async?Promise.all(h).then(m=>c(m)):c(h)}min(i,l){return new ZodSet({...this._def,minSize:{value:i,message:errorUtil.toString(l)}})}max(i,l){return new ZodSet({...this._def,maxSize:{value:i,message:errorUtil.toString(l)}})}size(i,l){return this.min(i,l).max(i,l)}nonempty(i){return this.min(1,i)}}ZodSet.create=(n,i)=>new ZodSet({valueType:n,minSize:null,maxSize:null,typeName:ZodFirstPartyTypeKind.ZodSet,...processCreateParams(i)});class ZodLazy extends ZodType{get schema(){return this._def.getter()}_parse(i){const{ctx:l}=this._processInputParams(i);return this._def.getter()._parse({data:l.data,path:l.path,parent:l})}}ZodLazy.create=(n,i)=>new ZodLazy({getter:n,typeName:ZodFirstPartyTypeKind.ZodLazy,...processCreateParams(i)});class ZodLiteral extends ZodType{_parse(i){if(i.data!==this._def.value){const l=this._getOrReturnCtx(i);return addIssueToContext(l,{received:l.data,code:ZodIssueCode.invalid_literal,expected:this._def.value}),INVALID}return{status:"valid",value:i.data}}get value(){return this._def.value}}ZodLiteral.create=(n,i)=>new ZodLiteral({value:n,typeName:ZodFirstPartyTypeKind.ZodLiteral,...processCreateParams(i)});function createZodEnum(n,i){return new ZodEnum({values:n,typeName:ZodFirstPartyTypeKind.ZodEnum,...processCreateParams(i)})}class ZodEnum extends ZodType{_parse(i){if(typeof i.data!="string"){const l=this._getOrReturnCtx(i),a=this._def.values;return addIssueToContext(l,{expected:util.joinValues(a),received:l.parsedType,code:ZodIssueCode.invalid_type}),INVALID}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(i.data)){const l=this._getOrReturnCtx(i),a=this._def.values;return addIssueToContext(l,{received:l.data,code:ZodIssueCode.invalid_enum_value,options:a}),INVALID}return OK(i.data)}get options(){return this._def.values}get enum(){const i={};for(const l of this._def.values)i[l]=l;return i}get Values(){const i={};for(const l of this._def.values)i[l]=l;return i}get Enum(){const i={};for(const l of this._def.values)i[l]=l;return i}extract(i,l=this._def){return ZodEnum.create(i,{...this._def,...l})}exclude(i,l=this._def){return ZodEnum.create(this.options.filter(a=>!i.includes(a)),{...this._def,...l})}}ZodEnum.create=createZodEnum;class ZodNativeEnum extends ZodType{_parse(i){const l=util.getValidEnumValues(this._def.values),a=this._getOrReturnCtx(i);if(a.parsedType!==ZodParsedType.string&&a.parsedType!==ZodParsedType.number){const o=util.objectValues(l);return addIssueToContext(a,{expected:util.joinValues(o),received:a.parsedType,code:ZodIssueCode.invalid_type}),INVALID}if(this._cache||(this._cache=new Set(util.getValidEnumValues(this._def.values))),!this._cache.has(i.data)){const o=util.objectValues(l);return addIssueToContext(a,{received:a.data,code:ZodIssueCode.invalid_enum_value,options:o}),INVALID}return OK(i.data)}get enum(){return this._def.values}}ZodNativeEnum.create=(n,i)=>new ZodNativeEnum({values:n,typeName:ZodFirstPartyTypeKind.ZodNativeEnum,...processCreateParams(i)});class ZodPromise extends ZodType{unwrap(){return this._def.type}_parse(i){const{ctx:l}=this._processInputParams(i);if(l.parsedType!==ZodParsedType.promise&&l.common.async===!1)return addIssueToContext(l,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.promise,received:l.parsedType}),INVALID;const a=l.parsedType===ZodParsedType.promise?l.data:Promise.resolve(l.data);return OK(a.then(o=>this._def.type.parseAsync(o,{path:l.path,errorMap:l.common.contextualErrorMap})))}}ZodPromise.create=(n,i)=>new ZodPromise({type:n,typeName:ZodFirstPartyTypeKind.ZodPromise,...processCreateParams(i)});class ZodEffects extends ZodType{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===ZodFirstPartyTypeKind.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(i){const{status:l,ctx:a}=this._processInputParams(i),o=this._def.effect||null,s={addIssue:c=>{addIssueToContext(a,c),c.fatal?l.abort():l.dirty()},get path(){return a.path}};if(s.addIssue=s.addIssue.bind(s),o.type==="preprocess"){const c=o.transform(a.data,s);if(a.common.async)return Promise.resolve(c).then(async h=>{if(l.value==="aborted")return INVALID;const m=await this._def.schema._parseAsync({data:h,path:a.path,parent:a});return m.status==="aborted"?INVALID:m.status==="dirty"||l.value==="dirty"?DIRTY(m.value):m});{if(l.value==="aborted")return INVALID;const h=this._def.schema._parseSync({data:c,path:a.path,parent:a});return h.status==="aborted"?INVALID:h.status==="dirty"||l.value==="dirty"?DIRTY(h.value):h}}if(o.type==="refinement"){const c=h=>{const m=o.refinement(h,s);if(a.common.async)return Promise.resolve(m);if(m instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return h};if(a.common.async===!1){const h=this._def.schema._parseSync({data:a.data,path:a.path,parent:a});return h.status==="aborted"?INVALID:(h.status==="dirty"&&l.dirty(),c(h.value),{status:l.value,value:h.value})}else return this._def.schema._parseAsync({data:a.data,path:a.path,parent:a}).then(h=>h.status==="aborted"?INVALID:(h.status==="dirty"&&l.dirty(),c(h.value).then(()=>({status:l.value,value:h.value}))))}if(o.type==="transform")if(a.common.async===!1){const c=this._def.schema._parseSync({data:a.data,path:a.path,parent:a});if(!isValid(c))return INVALID;const h=o.transform(c.value,s);if(h instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:l.value,value:h}}else return this._def.schema._parseAsync({data:a.data,path:a.path,parent:a}).then(c=>isValid(c)?Promise.resolve(o.transform(c.value,s)).then(h=>({status:l.value,value:h})):INVALID);util.assertNever(o)}}ZodEffects.create=(n,i,l)=>new ZodEffects({schema:n,typeName:ZodFirstPartyTypeKind.ZodEffects,effect:i,...processCreateParams(l)});ZodEffects.createWithPreprocess=(n,i,l)=>new ZodEffects({schema:i,effect:{type:"preprocess",transform:n},typeName:ZodFirstPartyTypeKind.ZodEffects,...processCreateParams(l)});class ZodOptional extends ZodType{_parse(i){return this._getType(i)===ZodParsedType.undefined?OK(void 0):this._def.innerType._parse(i)}unwrap(){return this._def.innerType}}ZodOptional.create=(n,i)=>new ZodOptional({innerType:n,typeName:ZodFirstPartyTypeKind.ZodOptional,...processCreateParams(i)});class ZodNullable extends ZodType{_parse(i){return this._getType(i)===ZodParsedType.null?OK(null):this._def.innerType._parse(i)}unwrap(){return this._def.innerType}}ZodNullable.create=(n,i)=>new ZodNullable({innerType:n,typeName:ZodFirstPartyTypeKind.ZodNullable,...processCreateParams(i)});class ZodDefault extends ZodType{_parse(i){const{ctx:l}=this._processInputParams(i);let a=l.data;return l.parsedType===ZodParsedType.undefined&&(a=this._def.defaultValue()),this._def.innerType._parse({data:a,path:l.path,parent:l})}removeDefault(){return this._def.innerType}}ZodDefault.create=(n,i)=>new ZodDefault({innerType:n,typeName:ZodFirstPartyTypeKind.ZodDefault,defaultValue:typeof i.default=="function"?i.default:()=>i.default,...processCreateParams(i)});class ZodCatch extends ZodType{_parse(i){const{ctx:l}=this._processInputParams(i),a={...l,common:{...l.common,issues:[]}},o=this._def.innerType._parse({data:a.data,path:a.path,parent:{...a}});return isAsync(o)?o.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new ZodError(a.common.issues)},input:a.data})})):{status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new ZodError(a.common.issues)},input:a.data})}}removeCatch(){return this._def.innerType}}ZodCatch.create=(n,i)=>new ZodCatch({innerType:n,typeName:ZodFirstPartyTypeKind.ZodCatch,catchValue:typeof i.catch=="function"?i.catch:()=>i.catch,...processCreateParams(i)});class ZodNaN extends ZodType{_parse(i){if(this._getType(i)!==ZodParsedType.nan){const a=this._getOrReturnCtx(i);return addIssueToContext(a,{code:ZodIssueCode.invalid_type,expected:ZodParsedType.nan,received:a.parsedType}),INVALID}return{status:"valid",value:i.data}}}ZodNaN.create=n=>new ZodNaN({typeName:ZodFirstPartyTypeKind.ZodNaN,...processCreateParams(n)});class ZodBranded extends ZodType{_parse(i){const{ctx:l}=this._processInputParams(i),a=l.data;return this._def.type._parse({data:a,path:l.path,parent:l})}unwrap(){return this._def.type}}class ZodPipeline extends ZodType{_parse(i){const{status:l,ctx:a}=this._processInputParams(i);if(a.common.async)return(async()=>{const s=await this._def.in._parseAsync({data:a.data,path:a.path,parent:a});return s.status==="aborted"?INVALID:s.status==="dirty"?(l.dirty(),DIRTY(s.value)):this._def.out._parseAsync({data:s.value,path:a.path,parent:a})})();{const o=this._def.in._parseSync({data:a.data,path:a.path,parent:a});return o.status==="aborted"?INVALID:o.status==="dirty"?(l.dirty(),{status:"dirty",value:o.value}):this._def.out._parseSync({data:o.value,path:a.path,parent:a})}}static create(i,l){return new ZodPipeline({in:i,out:l,typeName:ZodFirstPartyTypeKind.ZodPipeline})}}class ZodReadonly extends ZodType{_parse(i){const l=this._def.innerType._parse(i),a=o=>(isValid(o)&&(o.value=Object.freeze(o.value)),o);return isAsync(l)?l.then(o=>a(o)):a(l)}unwrap(){return this._def.innerType}}ZodReadonly.create=(n,i)=>new ZodReadonly({innerType:n,typeName:ZodFirstPartyTypeKind.ZodReadonly,...processCreateParams(i)});var ZodFirstPartyTypeKind;(function(n){n.ZodString="ZodString",n.ZodNumber="ZodNumber",n.ZodNaN="ZodNaN",n.ZodBigInt="ZodBigInt",n.ZodBoolean="ZodBoolean",n.ZodDate="ZodDate",n.ZodSymbol="ZodSymbol",n.ZodUndefined="ZodUndefined",n.ZodNull="ZodNull",n.ZodAny="ZodAny",n.ZodUnknown="ZodUnknown",n.ZodNever="ZodNever",n.ZodVoid="ZodVoid",n.ZodArray="ZodArray",n.ZodObject="ZodObject",n.ZodUnion="ZodUnion",n.ZodDiscriminatedUnion="ZodDiscriminatedUnion",n.ZodIntersection="ZodIntersection",n.ZodTuple="ZodTuple",n.ZodRecord="ZodRecord",n.ZodMap="ZodMap",n.ZodSet="ZodSet",n.ZodFunction="ZodFunction",n.ZodLazy="ZodLazy",n.ZodLiteral="ZodLiteral",n.ZodEnum="ZodEnum",n.ZodEffects="ZodEffects",n.ZodNativeEnum="ZodNativeEnum",n.ZodOptional="ZodOptional",n.ZodNullable="ZodNullable",n.ZodDefault="ZodDefault",n.ZodCatch="ZodCatch",n.ZodPromise="ZodPromise",n.ZodBranded="ZodBranded",n.ZodPipeline="ZodPipeline",n.ZodReadonly="ZodReadonly"})(ZodFirstPartyTypeKind||(ZodFirstPartyTypeKind={}));const stringType=ZodString.create,numberType=ZodNumber.create,booleanType=ZodBoolean.create,unknownType=ZodUnknown.create;ZodNever.create;const arrayType=ZodArray.create,objectType=ZodObject.create;ZodUnion.create;ZodIntersection.create;ZodTuple.create;const recordType=ZodRecord.create;ZodEnum.create;ZodPromise.create;ZodOptional.create;ZodNullable.create;objectType({id:stringType(),agentId:stringType(),clappId:stringType(),intent:stringType(),payload:recordType(unknownType()),timestamp:stringType()});objectType({agentId:stringType(),clappId:stringType(),version:numberType(),timestamp:stringType(),state:recordType(unknownType())});const AppEntrySchema=objectType({id:stringType(),name:stringType(),description:stringType().default(""),emoji:stringType().default("📦"),icon:stringType().default(""),tags:arrayType(stringType()).default([]),pinned:booleanType().default(!1)});objectType({agentId:stringType(),apps:arrayType(AppEntrySchema)});objectType({agentId:stringType(),viewId:stringType(),content:stringType()});function ClappRenderer({clappId:n,transport:i}){const l=window.location.origin;return jsxRuntimeExports.jsx(ClappProvider,{serverUrl:l,clappId:n,transport:i,children:jsxRuntimeExports.jsxs("div",{className:"clapp-shell",children:[jsxRuntimeExports.jsx(ClappHeader,{clappId:n}),jsxRuntimeExports.jsx(DynamicView,{clappId:n,transport:i})]})})}function ClappHeader({clappId:n}){return jsxRuntimeExports.jsxs("header",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0.75rem 1rem",paddingLeft:"5.5rem",borderBottom:"1px solid var(--border)",flexShrink:0},children:[jsxRuntimeExports.jsx("span",{style:{fontWeight:600,fontSize:"0.875rem"},children:n}),jsxRuntimeExports.jsx("span",{style:{color:"var(--muted)",fontSize:"0.75rem"},children:jsxRuntimeExports.jsx(LoadingIndicator,{})})]})}function LoadingIndicator(){return useClappLoading()?jsxRuntimeExports.jsx("span",{children:"connecting..."}):null}function DynamicView({clappId:n,transport:i}){const[l,a]=reactExports.useState({status:"loading"}),o=reactExports.useCallback(async()=>{try{const s=await i.fetchView(`${n}.app`);if(!s){a({status:"no-view"});return}const c=parseAppMd(s),m=(await Promise.all(c.modules.map(async p=>{const y=p.replace("/","."),x=await i.fetchView(`${y}.view`);return x?parseViewMd(x):null}))).filter(p=>p!==null);a({status:"ready",appSpec:c,modules:m})}catch(s){a({status:"error",message:s instanceof Error?s.message:"Failed to load views"})}},[n,i]);switch(reactExports.useEffect(()=>(o(),i.onView(c=>{(c===`${n}.app`||c.endsWith(".view"))&&o()})),[o,i,n]),l.status){case"loading":return jsxRuntimeExports.jsx("div",{style:{padding:"2rem",textAlign:"center",color:"var(--muted)"},children:"Loading view..."});case"no-view":return jsxRuntimeExports.jsx(StateInspector,{});case"error":return jsxRuntimeExports.jsxs("div",{style:{padding:"1rem"},children:[jsxRuntimeExports.jsx("div",{style:{padding:"0.75rem 1rem",background:"rgba(220, 38, 38, 0.1)",color:"#ef4444",borderRadius:"0.375rem",fontSize:"0.875rem"},children:l.message}),jsxRuntimeExports.jsx("div",{style:{marginTop:"1rem"},children:jsxRuntimeExports.jsx(StateInspector,{})})]});case"ready":return jsxRuntimeExports.jsx(AppRenderer,{spec:l.appSpec,modules:l.modules})}}function StateInspector(){return jsxRuntimeExports.jsxs("div",{style:{padding:"1rem"},children:[jsxRuntimeExports.jsx("div",{style:{fontSize:"0.75rem",color:"var(--muted)",marginBottom:"0.75rem",fontStyle:"italic"},children:"No view definition found. Showing raw state:"}),jsxRuntimeExports.jsx(StateTree,{})]})}function StateTree(){const{store:n}=useClappContext(),i=useStore(n,a=>a.state);return useClappLoading()?jsxRuntimeExports.jsx("div",{style:{color:"var(--muted)",fontSize:"0.875rem"},children:"Waiting for state..."}):!i||Object.keys(i).length===0?jsxRuntimeExports.jsx("div",{style:{color:"var(--muted)",fontSize:"0.875rem"},children:"No state available."}):jsxRuntimeExports.jsx("div",{style:{fontFamily:"monospace",fontSize:"0.8125rem",lineHeight:"1.6"},children:renderEntries(i,"")})}function renderEntries(n,i){return Object.entries(n).map(([l,a])=>{const o=i?`${i}.${l}`:l;return a!==null&&typeof a=="object"&&!Array.isArray(a)?jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("div",{style:{color:"var(--muted)",fontWeight:600},children:o}),jsxRuntimeExports.jsx("div",{style:{paddingLeft:"1rem"},children:renderEntries(a,o)})]},o):jsxRuntimeExports.jsxs("div",{style:{display:"flex",gap:"0.5rem",padding:"0.125rem 0"},children:[jsxRuntimeExports.jsxs("span",{style:{color:"var(--muted)"},children:[o,":"]}),jsxRuntimeExports.jsx("span",{children:typeof a=="string"?a:JSON.stringify(a)})]},o)})}function getServerUrl(){return window.location.origin}function App(){const[n,i]=reactExports.useState(null),[l,a]=reactExports.useState([]),o=reactExports.useRef(void 0);o.current||(o.current=new ClappTransport({serverUrl:getServerUrl(),context:{platform:"web"}}));const s=o.current;reactExports.useEffect(()=>{s.connect();const m=s.onApps(p=>{a(p)});return s.fetchApps().then(a).catch(()=>{}),()=>{m(),s.disconnect()}},[s]);const c=reactExports.useCallback(m=>{i(m)},[]),h=reactExports.useCallback(()=>{i(null)},[]);return jsxRuntimeExports.jsxs("div",{className:"home-shell",children:[jsxRuntimeExports.jsxs("div",{className:`home-shell-layer home-screen-layer ${n?"home-screen-hidden":""}`,children:[jsxRuntimeExports.jsx("header",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0.75rem 1.5rem",borderBottom:"1px solid var(--border)",flexShrink:0},children:jsxRuntimeExports.jsx("h1",{style:{fontSize:"1.125rem",fontWeight:700,letterSpacing:"-0.02em"},children:"clapps"})}),jsxRuntimeExports.jsx(HomeScreen,{apps:l,transport:s,onOpenApp:c})]}),n&&jsxRuntimeExports.jsxs("div",{className:"home-shell-layer app-layer app-layer-visible",children:[jsxRuntimeExports.jsxs("button",{onClick:h,className:"app-back-btn","aria-label":"Back to home",children:[jsxRuntimeExports.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:jsxRuntimeExports.jsx("path",{d:"M12.5 15L7.5 10L12.5 5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),"Home"]}),jsxRuntimeExports.jsx(ClappRenderer,{clappId:n,transport:s})]})]})}clientExports.createRoot(document.getElementById("root")).render(jsxRuntimeExports.jsx(reactExports.StrictMode,{children:jsxRuntimeExports.jsx(App,{})}));
|