@binarycheater/research-sidecar 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{index-BpVgCKdz.css → index-C3mAbt-i.css} +1 -1
- package/dist/client/assets/index-DTKJmZxM.js +321 -0
- package/dist/client/index.html +2 -2
- package/dist-server/lib/files.js +71 -0
- package/dist-server/lib/researchGraph.js +76 -0
- package/dist-server/server/index.js +17 -3
- package/package.json +1 -1
- package/skills/sidecar-thinking/SKILL.md +54 -14
- package/skills/sidecar-thinking/agents/openai.yaml +2 -2
- package/dist/client/assets/index-D7VDrQ1Q.js +0 -324
|
@@ -0,0 +1,321 @@
|
|
|
1
|
+
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))i(l);new MutationObserver(l=>{for(const s of l)if(s.type==="childList")for(const u of s.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&i(u)}).observe(document,{childList:!0,subtree:!0});function n(l){const s={};return l.integrity&&(s.integrity=l.integrity),l.referrerPolicy&&(s.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?s.credentials="include":l.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function i(l){if(l.ep)return;l.ep=!0;const s=n(l);fetch(l.href,s)}})();function vc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ld={exports:{}},us={};var Rg;function Wx(){if(Rg)return us;Rg=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(i,l,s){var u=null;if(s!==void 0&&(u=""+s),l.key!==void 0&&(u=""+l.key),"key"in l){s={};for(var f in l)f!=="key"&&(s[f]=l[f])}else s=l;return l=s.ref,{$$typeof:e,type:i,key:u,ref:l!==void 0?l:null,props:s}}return us.Fragment=t,us.jsx=n,us.jsxs=n,us}var Bg;function eb(){return Bg||(Bg=1,ld.exports=Wx()),ld.exports}var z=eb(),od={exports:{}},Ze={};var Lg;function tb(){if(Lg)return Ze;Lg=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),u=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),m=Symbol.for("react.activity"),v=Symbol.iterator;function x(j){return j===null||typeof j!="object"?null:(j=v&&j[v]||j["@@iterator"],typeof j=="function"?j:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},A=Object.assign,C={};function E(j,Z,_){this.props=j,this.context=Z,this.refs=C,this.updater=_||w}E.prototype.isReactComponent={},E.prototype.setState=function(j,Z){if(typeof j!="object"&&typeof j!="function"&&j!=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,j,Z,"setState")},E.prototype.forceUpdate=function(j){this.updater.enqueueForceUpdate(this,j,"forceUpdate")};function N(){}N.prototype=E.prototype;function T(j,Z,_){this.props=j,this.context=Z,this.refs=C,this.updater=_||w}var B=T.prototype=new N;B.constructor=T,A(B,E.prototype),B.isPureReactComponent=!0;var I=Array.isArray;function D(){}var U={H:null,A:null,T:null,S:null},J=Object.prototype.hasOwnProperty;function P(j,Z,_){var se=_.ref;return{$$typeof:e,type:j,key:Z,ref:se!==void 0?se:null,props:_}}function V(j,Z){return P(j.type,Z,j.props)}function X(j){return typeof j=="object"&&j!==null&&j.$$typeof===e}function W(j){var Z={"=":"=0",":":"=2"};return"$"+j.replace(/[=:]/g,function(_){return Z[_]})}var ce=/\/+/g;function q(j,Z){return typeof j=="object"&&j!==null&&j.key!=null?W(""+j.key):Z.toString(36)}function F(j){switch(j.status){case"fulfilled":return j.value;case"rejected":throw j.reason;default:switch(typeof j.status=="string"?j.then(D,D):(j.status="pending",j.then(function(Z){j.status==="pending"&&(j.status="fulfilled",j.value=Z)},function(Z){j.status==="pending"&&(j.status="rejected",j.reason=Z)})),j.status){case"fulfilled":return j.value;case"rejected":throw j.reason}}throw j}function L(j,Z,_,se,ve){var xe=typeof j;(xe==="undefined"||xe==="boolean")&&(j=null);var we=!1;if(j===null)we=!0;else switch(xe){case"bigint":case"string":case"number":we=!0;break;case"object":switch(j.$$typeof){case e:case t:we=!0;break;case p:return we=j._init,L(we(j._payload),Z,_,se,ve)}}if(we)return ve=ve(j),we=se===""?"."+q(j,0):se,I(ve)?(_="",we!=null&&(_=we.replace(ce,"$&/")+"/"),L(ve,Z,_,"",function(Be){return Be})):ve!=null&&(X(ve)&&(ve=V(ve,_+(ve.key==null||j&&j.key===ve.key?"":(""+ve.key).replace(ce,"$&/")+"/")+we)),Z.push(ve)),1;we=0;var ye=se===""?".":se+":";if(I(j))for(var ke=0;ke<j.length;ke++)se=j[ke],xe=ye+q(se,ke),we+=L(se,Z,_,xe,ve);else if(ke=x(j),typeof ke=="function")for(j=ke.call(j),ke=0;!(se=j.next()).done;)se=se.value,xe=ye+q(se,ke++),we+=L(se,Z,_,xe,ve);else if(xe==="object"){if(typeof j.then=="function")return L(F(j),Z,_,se,ve);throw Z=String(j),Error("Objects are not valid as a React child (found: "+(Z==="[object Object]"?"object with keys {"+Object.keys(j).join(", ")+"}":Z)+"). If you meant to render a collection of children, use an array instead.")}return we}function Y(j,Z,_){if(j==null)return j;var se=[],ve=0;return L(j,se,"","",function(xe){return Z.call(_,xe,ve++)}),se}function K(j){if(j._status===-1){var Z=j._result;Z=Z(),Z.then(function(_){(j._status===0||j._status===-1)&&(j._status=1,j._result=_)},function(_){(j._status===0||j._status===-1)&&(j._status=2,j._result=_)}),j._status===-1&&(j._status=0,j._result=Z)}if(j._status===1)return j._result.default;throw j._result}var ne=typeof reportError=="function"?reportError:function(j){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Z=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof j=="object"&&j!==null&&typeof j.message=="string"?String(j.message):String(j),error:j});if(!window.dispatchEvent(Z))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",j);return}console.error(j)},R={map:Y,forEach:function(j,Z,_){Y(j,function(){Z.apply(this,arguments)},_)},count:function(j){var Z=0;return Y(j,function(){Z++}),Z},toArray:function(j){return Y(j,function(Z){return Z})||[]},only:function(j){if(!X(j))throw Error("React.Children.only expected to receive a single React element child.");return j}};return Ze.Activity=m,Ze.Children=R,Ze.Component=E,Ze.Fragment=n,Ze.Profiler=l,Ze.PureComponent=T,Ze.StrictMode=i,Ze.Suspense=h,Ze.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=U,Ze.__COMPILER_RUNTIME={__proto__:null,c:function(j){return U.H.useMemoCache(j)}},Ze.cache=function(j){return function(){return j.apply(null,arguments)}},Ze.cacheSignal=function(){return null},Ze.cloneElement=function(j,Z,_){if(j==null)throw Error("The argument must be a React element, but you passed "+j+".");var se=A({},j.props),ve=j.key;if(Z!=null)for(xe in Z.key!==void 0&&(ve=""+Z.key),Z)!J.call(Z,xe)||xe==="key"||xe==="__self"||xe==="__source"||xe==="ref"&&Z.ref===void 0||(se[xe]=Z[xe]);var xe=arguments.length-2;if(xe===1)se.children=_;else if(1<xe){for(var we=Array(xe),ye=0;ye<xe;ye++)we[ye]=arguments[ye+2];se.children=we}return P(j.type,ve,se)},Ze.createContext=function(j){return j={$$typeof:u,_currentValue:j,_currentValue2:j,_threadCount:0,Provider:null,Consumer:null},j.Provider=j,j.Consumer={$$typeof:s,_context:j},j},Ze.createElement=function(j,Z,_){var se,ve={},xe=null;if(Z!=null)for(se in Z.key!==void 0&&(xe=""+Z.key),Z)J.call(Z,se)&&se!=="key"&&se!=="__self"&&se!=="__source"&&(ve[se]=Z[se]);var we=arguments.length-2;if(we===1)ve.children=_;else if(1<we){for(var ye=Array(we),ke=0;ke<we;ke++)ye[ke]=arguments[ke+2];ve.children=ye}if(j&&j.defaultProps)for(se in we=j.defaultProps,we)ve[se]===void 0&&(ve[se]=we[se]);return P(j,xe,ve)},Ze.createRef=function(){return{current:null}},Ze.forwardRef=function(j){return{$$typeof:f,render:j}},Ze.isValidElement=X,Ze.lazy=function(j){return{$$typeof:p,_payload:{_status:-1,_result:j},_init:K}},Ze.memo=function(j,Z){return{$$typeof:d,type:j,compare:Z===void 0?null:Z}},Ze.startTransition=function(j){var Z=U.T,_={};U.T=_;try{var se=j(),ve=U.S;ve!==null&&ve(_,se),typeof se=="object"&&se!==null&&typeof se.then=="function"&&se.then(D,ne)}catch(xe){ne(xe)}finally{Z!==null&&_.types!==null&&(Z.types=_.types),U.T=Z}},Ze.unstable_useCacheRefresh=function(){return U.H.useCacheRefresh()},Ze.use=function(j){return U.H.use(j)},Ze.useActionState=function(j,Z,_){return U.H.useActionState(j,Z,_)},Ze.useCallback=function(j,Z){return U.H.useCallback(j,Z)},Ze.useContext=function(j){return U.H.useContext(j)},Ze.useDebugValue=function(){},Ze.useDeferredValue=function(j,Z){return U.H.useDeferredValue(j,Z)},Ze.useEffect=function(j,Z){return U.H.useEffect(j,Z)},Ze.useEffectEvent=function(j){return U.H.useEffectEvent(j)},Ze.useId=function(){return U.H.useId()},Ze.useImperativeHandle=function(j,Z,_){return U.H.useImperativeHandle(j,Z,_)},Ze.useInsertionEffect=function(j,Z){return U.H.useInsertionEffect(j,Z)},Ze.useLayoutEffect=function(j,Z){return U.H.useLayoutEffect(j,Z)},Ze.useMemo=function(j,Z){return U.H.useMemo(j,Z)},Ze.useOptimistic=function(j,Z){return U.H.useOptimistic(j,Z)},Ze.useReducer=function(j,Z,_){return U.H.useReducer(j,Z,_)},Ze.useRef=function(j){return U.H.useRef(j)},Ze.useState=function(j){return U.H.useState(j)},Ze.useSyncExternalStore=function(j,Z,_){return U.H.useSyncExternalStore(j,Z,_)},Ze.useTransition=function(){return U.H.useTransition()},Ze.version="19.2.6",Ze}var Hg;function Fs(){return Hg||(Hg=1,od.exports=tb()),od.exports}var ie=Fs();const nb=vc(ie);var sd={exports:{}},cs={},ud={exports:{}},cd={};var jg;function rb(){return jg||(jg=1,(function(e){function t(L,Y){var K=L.length;L.push(Y);e:for(;0<K;){var ne=K-1>>>1,R=L[ne];if(0<l(R,Y))L[ne]=Y,L[K]=R,K=ne;else break e}}function n(L){return L.length===0?null:L[0]}function i(L){if(L.length===0)return null;var Y=L[0],K=L.pop();if(K!==Y){L[0]=K;e:for(var ne=0,R=L.length,j=R>>>1;ne<j;){var Z=2*(ne+1)-1,_=L[Z],se=Z+1,ve=L[se];if(0>l(_,K))se<R&&0>l(ve,_)?(L[ne]=ve,L[se]=K,ne=se):(L[ne]=_,L[Z]=K,ne=Z);else if(se<R&&0>l(ve,K))L[ne]=ve,L[se]=K,ne=se;else break e}}return Y}function l(L,Y){var K=L.sortIndex-Y.sortIndex;return K!==0?K:L.id-Y.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var u=Date,f=u.now();e.unstable_now=function(){return u.now()-f}}var h=[],d=[],p=1,m=null,v=3,x=!1,w=!1,A=!1,C=!1,E=typeof setTimeout=="function"?setTimeout:null,N=typeof clearTimeout=="function"?clearTimeout:null,T=typeof setImmediate<"u"?setImmediate:null;function B(L){for(var Y=n(d);Y!==null;){if(Y.callback===null)i(d);else if(Y.startTime<=L)i(d),Y.sortIndex=Y.expirationTime,t(h,Y);else break;Y=n(d)}}function I(L){if(A=!1,B(L),!w)if(n(h)!==null)w=!0,D||(D=!0,W());else{var Y=n(d);Y!==null&&F(I,Y.startTime-L)}}var D=!1,U=-1,J=5,P=-1;function V(){return C?!0:!(e.unstable_now()-P<J)}function X(){if(C=!1,D){var L=e.unstable_now();P=L;var Y=!0;try{e:{w=!1,A&&(A=!1,N(U),U=-1),x=!0;var K=v;try{t:{for(B(L),m=n(h);m!==null&&!(m.expirationTime>L&&V());){var ne=m.callback;if(typeof ne=="function"){m.callback=null,v=m.priorityLevel;var R=ne(m.expirationTime<=L);if(L=e.unstable_now(),typeof R=="function"){m.callback=R,B(L),Y=!0;break t}m===n(h)&&i(h),B(L)}else i(h);m=n(h)}if(m!==null)Y=!0;else{var j=n(d);j!==null&&F(I,j.startTime-L),Y=!1}}break e}finally{m=null,v=K,x=!1}Y=void 0}}finally{Y?W():D=!1}}}var W;if(typeof T=="function")W=function(){T(X)};else if(typeof MessageChannel<"u"){var ce=new MessageChannel,q=ce.port2;ce.port1.onmessage=X,W=function(){q.postMessage(null)}}else W=function(){E(X,0)};function F(L,Y){U=E(function(){L(e.unstable_now())},Y)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(L){L.callback=null},e.unstable_forceFrameRate=function(L){0>L||125<L?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):J=0<L?Math.floor(1e3/L):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_next=function(L){switch(v){case 1:case 2:case 3:var Y=3;break;default:Y=v}var K=v;v=Y;try{return L()}finally{v=K}},e.unstable_requestPaint=function(){C=!0},e.unstable_runWithPriority=function(L,Y){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var K=v;v=L;try{return Y()}finally{v=K}},e.unstable_scheduleCallback=function(L,Y,K){var ne=e.unstable_now();switch(typeof K=="object"&&K!==null?(K=K.delay,K=typeof K=="number"&&0<K?ne+K:ne):K=ne,L){case 1:var R=-1;break;case 2:R=250;break;case 5:R=1073741823;break;case 4:R=1e4;break;default:R=5e3}return R=K+R,L={id:p++,callback:Y,priorityLevel:L,startTime:K,expirationTime:R,sortIndex:-1},K>ne?(L.sortIndex=K,t(d,L),n(h)===null&&L===n(d)&&(A?(N(U),U=-1):A=!0,F(I,K-ne))):(L.sortIndex=R,t(h,L),w||x||(w=!0,D||(D=!0,W()))),L},e.unstable_shouldYield=V,e.unstable_wrapCallback=function(L){var Y=v;return function(){var K=v;v=Y;try{return L.apply(this,arguments)}finally{v=K}}}})(cd)),cd}var qg;function ib(){return qg||(qg=1,ud.exports=rb()),ud.exports}var fd={exports:{}},bn={};var Ig;function ab(){if(Ig)return bn;Ig=1;var e=Fs();function t(h){var d="https://react.dev/errors/"+h;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)d+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+h+"; visit "+d+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var i={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},l=Symbol.for("react.portal");function s(h,d,p){var m=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:l,key:m==null?null:""+m,children:h,containerInfo:d,implementation:p}}var u=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(h,d){if(h==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}return bn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,bn.createPortal=function(h,d){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error(t(299));return s(h,d,null,p)},bn.flushSync=function(h){var d=u.T,p=i.p;try{if(u.T=null,i.p=2,h)return h()}finally{u.T=d,i.p=p,i.d.f()}},bn.preconnect=function(h,d){typeof h=="string"&&(d?(d=d.crossOrigin,d=typeof d=="string"?d==="use-credentials"?d:"":void 0):d=null,i.d.C(h,d))},bn.prefetchDNS=function(h){typeof h=="string"&&i.d.D(h)},bn.preinit=function(h,d){if(typeof h=="string"&&d&&typeof d.as=="string"){var p=d.as,m=f(p,d.crossOrigin),v=typeof d.integrity=="string"?d.integrity:void 0,x=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;p==="style"?i.d.S(h,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:m,integrity:v,fetchPriority:x}):p==="script"&&i.d.X(h,{crossOrigin:m,integrity:v,fetchPriority:x,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},bn.preinitModule=function(h,d){if(typeof h=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var p=f(d.as,d.crossOrigin);i.d.M(h,{crossOrigin:p,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0})}}else d==null&&i.d.M(h)},bn.preload=function(h,d){if(typeof h=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var p=d.as,m=f(p,d.crossOrigin);i.d.L(h,p,{crossOrigin:m,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0,type:typeof d.type=="string"?d.type:void 0,fetchPriority:typeof d.fetchPriority=="string"?d.fetchPriority:void 0,referrerPolicy:typeof d.referrerPolicy=="string"?d.referrerPolicy:void 0,imageSrcSet:typeof d.imageSrcSet=="string"?d.imageSrcSet:void 0,imageSizes:typeof d.imageSizes=="string"?d.imageSizes:void 0,media:typeof d.media=="string"?d.media:void 0})}},bn.preloadModule=function(h,d){if(typeof h=="string")if(d){var p=f(d.as,d.crossOrigin);i.d.m(h,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:p,integrity:typeof d.integrity=="string"?d.integrity:void 0})}else i.d.m(h)},bn.requestFormReset=function(h){i.d.r(h)},bn.unstable_batchedUpdates=function(h,d){return h(d)},bn.useFormState=function(h,d,p){return u.H.useFormState(h,d,p)},bn.useFormStatus=function(){return u.H.useHostTransitionStatus()},bn.version="19.2.6",bn}var Ug;function F6(){if(Ug)return fd.exports;Ug=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),fd.exports=ab(),fd.exports}var Fg;function lb(){if(Fg)return cs;Fg=1;var e=ib(),t=Fs(),n=F6();function i(r){var a="https://react.dev/errors/"+r;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var o=2;o<arguments.length;o++)a+="&args[]="+encodeURIComponent(arguments[o])}return"Minified React error #"+r+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function s(r){var a=r,o=r;if(r.alternate)for(;a.return;)a=a.return;else{r=a;do a=r,(a.flags&4098)!==0&&(o=a.return),r=a.return;while(r)}return a.tag===3?o:null}function u(r){if(r.tag===13){var a=r.memoizedState;if(a===null&&(r=r.alternate,r!==null&&(a=r.memoizedState)),a!==null)return a.dehydrated}return null}function f(r){if(r.tag===31){var a=r.memoizedState;if(a===null&&(r=r.alternate,r!==null&&(a=r.memoizedState)),a!==null)return a.dehydrated}return null}function h(r){if(s(r)!==r)throw Error(i(188))}function d(r){var a=r.alternate;if(!a){if(a=s(r),a===null)throw Error(i(188));return a!==r?null:r}for(var o=r,c=a;;){var g=o.return;if(g===null)break;var y=g.alternate;if(y===null){if(c=g.return,c!==null){o=c;continue}break}if(g.child===y.child){for(y=g.child;y;){if(y===o)return h(g),r;if(y===c)return h(g),a;y=y.sibling}throw Error(i(188))}if(o.return!==c.return)o=g,c=y;else{for(var k=!1,O=g.child;O;){if(O===o){k=!0,o=g,c=y;break}if(O===c){k=!0,c=g,o=y;break}O=O.sibling}if(!k){for(O=y.child;O;){if(O===o){k=!0,o=y,c=g;break}if(O===c){k=!0,c=y,o=g;break}O=O.sibling}if(!k)throw Error(i(189))}}if(o.alternate!==c)throw Error(i(190))}if(o.tag!==3)throw Error(i(188));return o.stateNode.current===o?r:a}function p(r){var a=r.tag;if(a===5||a===26||a===27||a===6)return r;for(r=r.child;r!==null;){if(a=p(r),a!==null)return a;r=r.sibling}return null}var m=Object.assign,v=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),A=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),N=Symbol.for("react.consumer"),T=Symbol.for("react.context"),B=Symbol.for("react.forward_ref"),I=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),U=Symbol.for("react.memo"),J=Symbol.for("react.lazy"),P=Symbol.for("react.activity"),V=Symbol.for("react.memo_cache_sentinel"),X=Symbol.iterator;function W(r){return r===null||typeof r!="object"?null:(r=X&&r[X]||r["@@iterator"],typeof r=="function"?r:null)}var ce=Symbol.for("react.client.reference");function q(r){if(r==null)return null;if(typeof r=="function")return r.$$typeof===ce?null:r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case A:return"Fragment";case E:return"Profiler";case C:return"StrictMode";case I:return"Suspense";case D:return"SuspenseList";case P:return"Activity"}if(typeof r=="object")switch(r.$$typeof){case w:return"Portal";case T:return r.displayName||"Context";case N:return(r._context.displayName||"Context")+".Consumer";case B:var a=r.render;return r=r.displayName,r||(r=a.displayName||a.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case U:return a=r.displayName||null,a!==null?a:q(r.type)||"Memo";case J:a=r._payload,r=r._init;try{return q(r(a))}catch{}}return null}var F=Array.isArray,L=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K={pending:!1,data:null,method:null,action:null},ne=[],R=-1;function j(r){return{current:r}}function Z(r){0>R||(r.current=ne[R],ne[R]=null,R--)}function _(r,a){R++,ne[R]=r.current,r.current=a}var se=j(null),ve=j(null),xe=j(null),we=j(null);function ye(r,a){switch(_(xe,a),_(ve,r),_(se,null),a.nodeType){case 9:case 11:r=(r=a.documentElement)&&(r=r.namespaceURI)?rg(r):0;break;default:if(r=a.tagName,a=a.namespaceURI)a=rg(a),r=ig(a,r);else switch(r){case"svg":r=1;break;case"math":r=2;break;default:r=0}}Z(se),_(se,r)}function ke(){Z(se),Z(ve),Z(xe)}function Be(r){r.memoizedState!==null&&_(we,r);var a=se.current,o=ig(a,r.type);a!==o&&(_(ve,r),_(se,o))}function Ue(r){ve.current===r&&(Z(se),Z(ve)),we.current===r&&(Z(we),as._currentValue=K)}var Oe,_e;function Ge(r){if(Oe===void 0)try{throw Error()}catch(o){var a=o.stack.trim().match(/\n( *(at )?)/);Oe=a&&a[1]||"",_e=-1<o.stack.indexOf(`
|
|
2
|
+
at`)?" (<anonymous>)":-1<o.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
+
`+Oe+r+_e}var tt=!1;function Qe(r,a){if(!r||tt)return"";tt=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var c={DetermineComponentFrameRoot:function(){try{if(a){var ge=function(){throw Error()};if(Object.defineProperty(ge.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ge,[])}catch(ue){var oe=ue}Reflect.construct(r,[],ge)}else{try{ge.call()}catch(ue){oe=ue}r.call(ge.prototype)}}else{try{throw Error()}catch(ue){oe=ue}(ge=r())&&typeof ge.catch=="function"&&ge.catch(function(){})}}catch(ue){if(ue&&oe&&typeof ue.stack=="string")return[ue.stack,oe.stack]}return[null,null]}};c.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var g=Object.getOwnPropertyDescriptor(c.DetermineComponentFrameRoot,"name");g&&g.configurable&&Object.defineProperty(c.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var y=c.DetermineComponentFrameRoot(),k=y[0],O=y[1];if(k&&O){var Q=k.split(`
|
|
4
|
+
`),le=O.split(`
|
|
5
|
+
`);for(g=c=0;c<Q.length&&!Q[c].includes("DetermineComponentFrameRoot");)c++;for(;g<le.length&&!le[g].includes("DetermineComponentFrameRoot");)g++;if(c===Q.length||g===le.length)for(c=Q.length-1,g=le.length-1;1<=c&&0<=g&&Q[c]!==le[g];)g--;for(;1<=c&&0<=g;c--,g--)if(Q[c]!==le[g]){if(c!==1||g!==1)do if(c--,g--,0>g||Q[c]!==le[g]){var he=`
|
|
6
|
+
`+Q[c].replace(" at new "," at ");return r.displayName&&he.includes("<anonymous>")&&(he=he.replace("<anonymous>",r.displayName)),he}while(1<=c&&0<=g);break}}}finally{tt=!1,Error.prepareStackTrace=o}return(o=r?r.displayName||r.name:"")?Ge(o):""}function yt(r,a){switch(r.tag){case 26:case 27:case 5:return Ge(r.type);case 16:return Ge("Lazy");case 13:return r.child!==a&&a!==null?Ge("Suspense Fallback"):Ge("Suspense");case 19:return Ge("SuspenseList");case 0:case 15:return Qe(r.type,!1);case 11:return Qe(r.type.render,!1);case 1:return Qe(r.type,!0);case 31:return Ge("Activity");default:return""}}function pe(r){try{var a="",o=null;do a+=yt(r,o),o=r,r=r.return;while(r);return a}catch(c){return`
|
|
7
|
+
Error generating stack: `+c.message+`
|
|
8
|
+
`+c.stack}}var Ve=Object.prototype.hasOwnProperty,ut=e.unstable_scheduleCallback,bt=e.unstable_cancelCallback,wt=e.unstable_shouldYield,vn=e.unstable_requestPaint,zt=e.unstable_now,Vn=e.unstable_getCurrentPriorityLevel,fe=e.unstable_ImmediatePriority,Ee=e.unstable_UserBlockingPriority,qe=e.unstable_NormalPriority,Xe=e.unstable_LowPriority,rt=e.unstable_IdlePriority,fn=e.log,Nn=e.unstable_setDisableYieldValue,rn=null,jt=null;function me(r){if(typeof fn=="function"&&Nn(r),jt&&typeof jt.setStrictMode=="function")try{jt.setStrictMode(rn,r)}catch{}}var Le=Math.clz32?Math.clz32:tl,qt=Math.log,St=Math.LN2;function tl(r){return r>>>=0,r===0?32:31-(qt(r)/St|0)|0}var Pr=256,an=262144,Mr=4194304;function yr(r){var a=r&42;if(a!==0)return a;switch(r&-r){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 r&261888;case 262144:case 524288:case 1048576:case 2097152:return r&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return r&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return r}}function zr(r,a,o){var c=r.pendingLanes;if(c===0)return 0;var g=0,y=r.suspendedLanes,k=r.pingedLanes;r=r.warmLanes;var O=c&134217727;return O!==0?(c=O&~y,c!==0?g=yr(c):(k&=O,k!==0?g=yr(k):o||(o=O&~r,o!==0&&(g=yr(o))))):(O=c&~y,O!==0?g=yr(O):k!==0?g=yr(k):o||(o=c&~r,o!==0&&(g=yr(o)))),g===0?0:a!==0&&a!==g&&(a&y)===0&&(y=g&-g,o=a&-a,y>=o||y===32&&(o&4194048)!==0)?a:g}function Nr(r,a){return(r.pendingLanes&~(r.suspendedLanes&~r.pingedLanes)&a)===0}function go(r,a){switch(r){case 1:case 2:case 4:case 8:case 64:return a+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 a+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 Yn(){var r=Mr;return Mr<<=1,(Mr&62914560)===0&&(Mr=4194304),r}function va(r){for(var a=[],o=0;31>o;o++)a.push(r);return a}function Dr(r,a){r.pendingLanes|=a,a!==268435456&&(r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0)}function nl(r,a,o,c,g,y){var k=r.pendingLanes;r.pendingLanes=o,r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0,r.expiredLanes&=o,r.entangledLanes&=o,r.errorRecoveryDisabledLanes&=o,r.shellSuspendCounter=0;var O=r.entanglements,Q=r.expirationTimes,le=r.hiddenUpdates;for(o=k&~o;0<o;){var he=31-Le(o),ge=1<<he;O[he]=0,Q[he]=-1;var oe=le[he];if(oe!==null)for(le[he]=null,he=0;he<oe.length;he++){var ue=oe[he];ue!==null&&(ue.lane&=-536870913)}o&=~ge}c!==0&&ln(r,c,0),y!==0&&g===0&&r.tag!==0&&(r.suspendedLanes|=y&~(k&~a))}function ln(r,a,o){r.pendingLanes|=a,r.suspendedLanes&=~a;var c=31-Le(a);r.entangledLanes|=a,r.entanglements[c]=r.entanglements[c]|1073741824|o&261930}function rl(r,a){var o=r.entangledLanes|=a;for(r=r.entanglements;o;){var c=31-Le(o),g=1<<c;g&a|r[c]&a&&(r[c]|=a),o&=~g}}function nu(r,a){var o=a&-a;return o=(o&42)!==0?1:yo(o),(o&(r.suspendedLanes|a))!==0?0:o}function yo(r){switch(r){case 2:r=1;break;case 8:r=4;break;case 32:r=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:r=128;break;case 268435456:r=134217728;break;default:r=0}return r}function vo(r){return r&=-r,2<r?8<r?(r&134217727)!==0?32:268435456:8:2}function ru(){var r=Y.p;return r!==0?r:(r=window.event,r===void 0?32:Tg(r.type))}function iu(r,a){var o=Y.p;try{return Y.p=r,a()}finally{Y.p=o}}var _r=Math.random().toString(36).slice(2),on="__reactFiber$"+_r,xn="__reactProps$"+_r,Zr="__reactContainer$"+_r,il="__reactEvents$"+_r,au="__reactListeners$"+_r,Qc="__reactHandles$"+_r,lu="__reactResources$"+_r,xa="__reactMarker$"+_r;function xo(r){delete r[on],delete r[xn],delete r[il],delete r[au],delete r[Qc]}function Mi(r){var a=r[on];if(a)return a;for(var o=r.parentNode;o;){if(a=o[Zr]||o[on]){if(o=a.alternate,a.child!==null||o!==null&&o.child!==null)for(r=fg(r);r!==null;){if(o=r[on])return o;r=fg(r)}return a}r=o,o=r.parentNode}return null}function zi(r){if(r=r[on]||r[Zr]){var a=r.tag;if(a===5||a===6||a===13||a===31||a===26||a===27||a===3)return r}return null}function Ni(r){var a=r.tag;if(a===5||a===26||a===27||a===6)return r.stateNode;throw Error(i(33))}function Di(r){var a=r[lu];return a||(a=r[lu]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function Xt(r){r[xa]=!0}var ou=new Set,su={};function Qr(r,a){_i(r,a),_i(r+"Capture",a)}function _i(r,a){for(su[r]=a,r=0;r<a.length;r++)ou.add(a[r])}var Kc=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]*$"),bo={},uu={};function Jc(r){return Ve.call(uu,r)?!0:Ve.call(bo,r)?!1:Kc.test(r)?uu[r]=!0:(bo[r]=!0,!1)}function al(r,a,o){if(Jc(a))if(o===null)r.removeAttribute(a);else{switch(typeof o){case"undefined":case"function":case"symbol":r.removeAttribute(a);return;case"boolean":var c=a.toLowerCase().slice(0,5);if(c!=="data-"&&c!=="aria-"){r.removeAttribute(a);return}}r.setAttribute(a,""+o)}}function ll(r,a,o){if(o===null)r.removeAttribute(a);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(a);return}r.setAttribute(a,""+o)}}function vr(r,a,o,c){if(c===null)r.removeAttribute(o);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(o);return}r.setAttributeNS(a,o,""+c)}}function Dn(r){switch(typeof r){case"bigint":case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function cu(r){var a=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function Wc(r,a,o){var c=Object.getOwnPropertyDescriptor(r.constructor.prototype,a);if(!r.hasOwnProperty(a)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var g=c.get,y=c.set;return Object.defineProperty(r,a,{configurable:!0,get:function(){return g.call(this)},set:function(k){o=""+k,y.call(this,k)}}),Object.defineProperty(r,a,{enumerable:c.enumerable}),{getValue:function(){return o},setValue:function(k){o=""+k},stopTracking:function(){r._valueTracker=null,delete r[a]}}}}function ol(r){if(!r._valueTracker){var a=cu(r)?"checked":"value";r._valueTracker=Wc(r,a,""+r[a])}}function fu(r){if(!r)return!1;var a=r._valueTracker;if(!a)return!0;var o=a.getValue(),c="";return r&&(c=cu(r)?r.checked?"true":"false":r.value),r=c,r!==o?(a.setValue(r),!0):!1}function ba(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}var ef=/[\n"\\]/g;function _n(r){return r.replace(ef,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function wa(r,a,o,c,g,y,k,O){r.name="",k!=null&&typeof k!="function"&&typeof k!="symbol"&&typeof k!="boolean"?r.type=k:r.removeAttribute("type"),a!=null?k==="number"?(a===0&&r.value===""||r.value!=a)&&(r.value=""+Dn(a)):r.value!==""+Dn(a)&&(r.value=""+Dn(a)):k!=="submit"&&k!=="reset"||r.removeAttribute("value"),a!=null?wo(r,k,Dn(a)):o!=null?wo(r,k,Dn(o)):c!=null&&r.removeAttribute("value"),g==null&&y!=null&&(r.defaultChecked=!!y),g!=null&&(r.checked=g&&typeof g!="function"&&typeof g!="symbol"),O!=null&&typeof O!="function"&&typeof O!="symbol"&&typeof O!="boolean"?r.name=""+Dn(O):r.removeAttribute("name")}function hu(r,a,o,c,g,y,k,O){if(y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(r.type=y),a!=null||o!=null){if(!(y!=="submit"&&y!=="reset"||a!=null)){ol(r);return}o=o!=null?""+Dn(o):"",a=a!=null?""+Dn(a):o,O||a===r.value||(r.value=a),r.defaultValue=a}c=c??g,c=typeof c!="function"&&typeof c!="symbol"&&!!c,r.checked=O?r.checked:!!c,r.defaultChecked=!!c,k!=null&&typeof k!="function"&&typeof k!="symbol"&&typeof k!="boolean"&&(r.name=k),ol(r)}function wo(r,a,o){a==="number"&&ba(r.ownerDocument)===r||r.defaultValue===""+o||(r.defaultValue=""+o)}function Kr(r,a,o,c){if(r=r.options,a){a={};for(var g=0;g<o.length;g++)a["$"+o[g]]=!0;for(o=0;o<r.length;o++)g=a.hasOwnProperty("$"+r[o].value),r[o].selected!==g&&(r[o].selected=g),g&&c&&(r[o].defaultSelected=!0)}else{for(o=""+Dn(o),a=null,g=0;g<r.length;g++){if(r[g].value===o){r[g].selected=!0,c&&(r[g].defaultSelected=!0);return}a!==null||r[g].disabled||(a=r[g])}a!==null&&(a.selected=!0)}}function Jm(r,a,o){if(a!=null&&(a=""+Dn(a),a!==r.value&&(r.value=a),o==null)){r.defaultValue!==a&&(r.defaultValue=a);return}r.defaultValue=o!=null?""+Dn(o):""}function Wm(r,a,o,c){if(a==null){if(c!=null){if(o!=null)throw Error(i(92));if(F(c)){if(1<c.length)throw Error(i(93));c=c[0]}o=c}o==null&&(o=""),a=o}o=Dn(a),r.defaultValue=o,c=r.textContent,c===o&&c!==""&&c!==null&&(r.value=c),ol(r)}function sl(r,a){if(a){var o=r.firstChild;if(o&&o===r.lastChild&&o.nodeType===3){o.nodeValue=a;return}}r.textContent=a}var Pv=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 ep(r,a,o){var c=a.indexOf("--")===0;o==null||typeof o=="boolean"||o===""?c?r.setProperty(a,""):a==="float"?r.cssFloat="":r[a]="":c?r.setProperty(a,o):typeof o!="number"||o===0||Pv.has(a)?a==="float"?r.cssFloat=o:r[a]=(""+o).trim():r[a]=o+"px"}function tp(r,a,o){if(a!=null&&typeof a!="object")throw Error(i(62));if(r=r.style,o!=null){for(var c in o)!o.hasOwnProperty(c)||a!=null&&a.hasOwnProperty(c)||(c.indexOf("--")===0?r.setProperty(c,""):c==="float"?r.cssFloat="":r[c]="");for(var g in a)c=a[g],a.hasOwnProperty(g)&&o[g]!==c&&ep(r,g,c)}else for(var y in a)a.hasOwnProperty(y)&&ep(r,y,a[y])}function tf(r){if(r.indexOf("-")===-1)return!1;switch(r){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 Zv=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"]]),Qv=/^[\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 du(r){return Qv.test(""+r)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":r}function Jr(){}var nf=null;function rf(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var ul=null,cl=null;function np(r){var a=zi(r);if(a&&(r=a.stateNode)){var o=r[xn]||null;e:switch(r=a.stateNode,a.type){case"input":if(wa(r,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name),a=o.name,o.type==="radio"&&a!=null){for(o=r;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll('input[name="'+_n(""+a)+'"][type="radio"]'),a=0;a<o.length;a++){var c=o[a];if(c!==r&&c.form===r.form){var g=c[xn]||null;if(!g)throw Error(i(90));wa(c,g.value,g.defaultValue,g.defaultValue,g.checked,g.defaultChecked,g.type,g.name)}}for(a=0;a<o.length;a++)c=o[a],c.form===r.form&&fu(c)}break e;case"textarea":Jm(r,o.value,o.defaultValue);break e;case"select":a=o.value,a!=null&&Kr(r,!!o.multiple,a,!1)}}}var af=!1;function rp(r,a,o){if(af)return r(a,o);af=!0;try{var c=r(a);return c}finally{if(af=!1,(ul!==null||cl!==null)&&(e0(),ul&&(a=ul,r=cl,cl=ul=null,np(a),r)))for(a=0;a<r.length;a++)np(r[a])}}function So(r,a){var o=r.stateNode;if(o===null)return null;var c=o[xn]||null;if(c===null)return null;o=c[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(c=!c.disabled)||(r=r.type,c=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!c;break e;default:r=!1}if(r)return null;if(o&&typeof o!="function")throw Error(i(231,a,typeof o));return o}var Wr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),lf=!1;if(Wr)try{var ko={};Object.defineProperty(ko,"passive",{get:function(){lf=!0}}),window.addEventListener("test",ko,ko),window.removeEventListener("test",ko,ko)}catch{lf=!1}var Oi=null,of=null,mu=null;function ip(){if(mu)return mu;var r,a=of,o=a.length,c,g="value"in Oi?Oi.value:Oi.textContent,y=g.length;for(r=0;r<o&&a[r]===g[r];r++);var k=o-r;for(c=1;c<=k&&a[o-c]===g[y-c];c++);return mu=g.slice(r,1<c?1-c:void 0)}function pu(r){var a=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&a===13&&(r=13)):r=a,r===10&&(r=13),32<=r||r===13?r:0}function gu(){return!0}function ap(){return!1}function On(r){function a(o,c,g,y,k){this._reactName=o,this._targetInst=g,this.type=c,this.nativeEvent=y,this.target=k,this.currentTarget=null;for(var O in r)r.hasOwnProperty(O)&&(o=r[O],this[O]=o?o(y):y[O]);return this.isDefaultPrevented=(y.defaultPrevented!=null?y.defaultPrevented:y.returnValue===!1)?gu:ap,this.isPropagationStopped=ap,this}return m(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=gu)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=gu)},persist:function(){},isPersistent:gu}),a}var Sa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},yu=On(Sa),Eo=m({},Sa,{view:0,detail:0}),Kv=On(Eo),sf,uf,Ao,vu=m({},Eo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ff,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==Ao&&(Ao&&r.type==="mousemove"?(sf=r.screenX-Ao.screenX,uf=r.screenY-Ao.screenY):uf=sf=0,Ao=r),sf)},movementY:function(r){return"movementY"in r?r.movementY:uf}}),lp=On(vu),Jv=m({},vu,{dataTransfer:0}),Wv=On(Jv),e9=m({},Eo,{relatedTarget:0}),cf=On(e9),t9=m({},Sa,{animationName:0,elapsedTime:0,pseudoElement:0}),n9=On(t9),r9=m({},Sa,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),i9=On(r9),a9=m({},Sa,{data:0}),op=On(a9),l9={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},o9={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"},s9={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function u9(r){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(r):(r=s9[r])?!!a[r]:!1}function ff(){return u9}var c9=m({},Eo,{key:function(r){if(r.key){var a=l9[r.key]||r.key;if(a!=="Unidentified")return a}return r.type==="keypress"?(r=pu(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?o9[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ff,charCode:function(r){return r.type==="keypress"?pu(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?pu(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),f9=On(c9),h9=m({},vu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),sp=On(h9),d9=m({},Eo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ff}),m9=On(d9),p9=m({},Sa,{propertyName:0,elapsedTime:0,pseudoElement:0}),g9=On(p9),y9=m({},vu,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),v9=On(y9),x9=m({},Sa,{newState:0,oldState:0}),b9=On(x9),w9=[9,13,27,32],hf=Wr&&"CompositionEvent"in window,Co=null;Wr&&"documentMode"in document&&(Co=document.documentMode);var S9=Wr&&"TextEvent"in window&&!Co,up=Wr&&(!hf||Co&&8<Co&&11>=Co),cp=" ",fp=!1;function hp(r,a){switch(r){case"keyup":return w9.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function dp(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var fl=!1;function k9(r,a){switch(r){case"compositionend":return dp(a);case"keypress":return a.which!==32?null:(fp=!0,cp);case"textInput":return r=a.data,r===cp&&fp?null:r;default:return null}}function E9(r,a){if(fl)return r==="compositionend"||!hf&&hp(r,a)?(r=ip(),mu=of=Oi=null,fl=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return up&&a.locale!=="ko"?null:a.data;default:return null}}var A9={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 mp(r){var a=r&&r.nodeName&&r.nodeName.toLowerCase();return a==="input"?!!A9[r.type]:a==="textarea"}function pp(r,a,o,c){ul?cl?cl.push(c):cl=[c]:ul=c,a=o0(a,"onChange"),0<a.length&&(o=new yu("onChange","change",null,o,c),r.push({event:o,listeners:a}))}var To=null,Mo=null;function C9(r){K2(r,0)}function xu(r){var a=Ni(r);if(fu(a))return r}function gp(r,a){if(r==="change")return a}var yp=!1;if(Wr){var df;if(Wr){var mf="oninput"in document;if(!mf){var vp=document.createElement("div");vp.setAttribute("oninput","return;"),mf=typeof vp.oninput=="function"}df=mf}else df=!1;yp=df&&(!document.documentMode||9<document.documentMode)}function xp(){To&&(To.detachEvent("onpropertychange",bp),Mo=To=null)}function bp(r){if(r.propertyName==="value"&&xu(Mo)){var a=[];pp(a,Mo,r,rf(r)),rp(C9,a)}}function T9(r,a,o){r==="focusin"?(xp(),To=a,Mo=o,To.attachEvent("onpropertychange",bp)):r==="focusout"&&xp()}function M9(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return xu(Mo)}function z9(r,a){if(r==="click")return xu(a)}function N9(r,a){if(r==="input"||r==="change")return xu(a)}function D9(r,a){return r===a&&(r!==0||1/r===1/a)||r!==r&&a!==a}var Gn=typeof Object.is=="function"?Object.is:D9;function zo(r,a){if(Gn(r,a))return!0;if(typeof r!="object"||r===null||typeof a!="object"||a===null)return!1;var o=Object.keys(r),c=Object.keys(a);if(o.length!==c.length)return!1;for(c=0;c<o.length;c++){var g=o[c];if(!Ve.call(a,g)||!Gn(r[g],a[g]))return!1}return!0}function wp(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function Sp(r,a){var o=wp(r);r=0;for(var c;o;){if(o.nodeType===3){if(c=r+o.textContent.length,r<=a&&c>=a)return{node:o,offset:a-r};r=c}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=wp(o)}}function kp(r,a){return r&&a?r===a?!0:r&&r.nodeType===3?!1:a&&a.nodeType===3?kp(r,a.parentNode):"contains"in r?r.contains(a):r.compareDocumentPosition?!!(r.compareDocumentPosition(a)&16):!1:!1}function Ep(r){r=r!=null&&r.ownerDocument!=null&&r.ownerDocument.defaultView!=null?r.ownerDocument.defaultView:window;for(var a=ba(r.document);a instanceof r.HTMLIFrameElement;){try{var o=typeof a.contentWindow.location.href=="string"}catch{o=!1}if(o)r=a.contentWindow;else break;a=ba(r.document)}return a}function pf(r){var a=r&&r.nodeName&&r.nodeName.toLowerCase();return a&&(a==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||a==="textarea"||r.contentEditable==="true")}var _9=Wr&&"documentMode"in document&&11>=document.documentMode,hl=null,gf=null,No=null,yf=!1;function Ap(r,a,o){var c=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;yf||hl==null||hl!==ba(c)||(c=hl,"selectionStart"in c&&pf(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),No&&zo(No,c)||(No=c,c=o0(gf,"onSelect"),0<c.length&&(a=new yu("onSelect","select",null,a,o),r.push({event:a,listeners:c}),a.target=hl)))}function ka(r,a){var o={};return o[r.toLowerCase()]=a.toLowerCase(),o["Webkit"+r]="webkit"+a,o["Moz"+r]="moz"+a,o}var dl={animationend:ka("Animation","AnimationEnd"),animationiteration:ka("Animation","AnimationIteration"),animationstart:ka("Animation","AnimationStart"),transitionrun:ka("Transition","TransitionRun"),transitionstart:ka("Transition","TransitionStart"),transitioncancel:ka("Transition","TransitionCancel"),transitionend:ka("Transition","TransitionEnd")},vf={},Cp={};Wr&&(Cp=document.createElement("div").style,"AnimationEvent"in window||(delete dl.animationend.animation,delete dl.animationiteration.animation,delete dl.animationstart.animation),"TransitionEvent"in window||delete dl.transitionend.transition);function Ea(r){if(vf[r])return vf[r];if(!dl[r])return r;var a=dl[r],o;for(o in a)if(a.hasOwnProperty(o)&&o in Cp)return vf[r]=a[o];return r}var Tp=Ea("animationend"),Mp=Ea("animationiteration"),zp=Ea("animationstart"),O9=Ea("transitionrun"),R9=Ea("transitionstart"),B9=Ea("transitioncancel"),Np=Ea("transitionend"),Dp=new Map,xf="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(" ");xf.push("scrollEnd");function xr(r,a){Dp.set(r,a),Qr(a,[r])}var bu=typeof reportError=="function"?reportError:function(r){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=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(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",r);return}console.error(r)},lr=[],ml=0,bf=0;function wu(){for(var r=ml,a=bf=ml=0;a<r;){var o=lr[a];lr[a++]=null;var c=lr[a];lr[a++]=null;var g=lr[a];lr[a++]=null;var y=lr[a];if(lr[a++]=null,c!==null&&g!==null){var k=c.pending;k===null?g.next=g:(g.next=k.next,k.next=g),c.pending=g}y!==0&&_p(o,g,y)}}function Su(r,a,o,c){lr[ml++]=r,lr[ml++]=a,lr[ml++]=o,lr[ml++]=c,bf|=c,r.lanes|=c,r=r.alternate,r!==null&&(r.lanes|=c)}function wf(r,a,o,c){return Su(r,a,o,c),ku(r)}function Aa(r,a){return Su(r,null,null,a),ku(r)}function _p(r,a,o){r.lanes|=o;var c=r.alternate;c!==null&&(c.lanes|=o);for(var g=!1,y=r.return;y!==null;)y.childLanes|=o,c=y.alternate,c!==null&&(c.childLanes|=o),y.tag===22&&(r=y.stateNode,r===null||r._visibility&1||(g=!0)),r=y,y=y.return;return r.tag===3?(y=r.stateNode,g&&a!==null&&(g=31-Le(o),r=y.hiddenUpdates,c=r[g],c===null?r[g]=[a]:c.push(a),a.lane=o|536870912),y):null}function ku(r){if(50<Jo)throw Jo=0,Nh=null,Error(i(185));for(var a=r.return;a!==null;)r=a,a=r.return;return r.tag===3?r.stateNode:null}var pl={};function L9(r,a,o,c){this.tag=r,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function $n(r,a,o,c){return new L9(r,a,o,c)}function Sf(r){return r=r.prototype,!(!r||!r.isReactComponent)}function ei(r,a){var o=r.alternate;return o===null?(o=$n(r.tag,a,r.key,r.mode),o.elementType=r.elementType,o.type=r.type,o.stateNode=r.stateNode,o.alternate=r,r.alternate=o):(o.pendingProps=a,o.type=r.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=r.flags&65011712,o.childLanes=r.childLanes,o.lanes=r.lanes,o.child=r.child,o.memoizedProps=r.memoizedProps,o.memoizedState=r.memoizedState,o.updateQueue=r.updateQueue,a=r.dependencies,o.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},o.sibling=r.sibling,o.index=r.index,o.ref=r.ref,o.refCleanup=r.refCleanup,o}function Op(r,a){r.flags&=65011714;var o=r.alternate;return o===null?(r.childLanes=0,r.lanes=a,r.child=null,r.subtreeFlags=0,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null):(r.childLanes=o.childLanes,r.lanes=o.lanes,r.child=o.child,r.subtreeFlags=0,r.deletions=null,r.memoizedProps=o.memoizedProps,r.memoizedState=o.memoizedState,r.updateQueue=o.updateQueue,r.type=o.type,a=o.dependencies,r.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),r}function Eu(r,a,o,c,g,y){var k=0;if(c=r,typeof r=="function")Sf(r)&&(k=1);else if(typeof r=="string")k=Ux(r,o,se.current)?26:r==="html"||r==="head"||r==="body"?27:5;else e:switch(r){case P:return r=$n(31,o,a,g),r.elementType=P,r.lanes=y,r;case A:return Ca(o.children,g,y,a);case C:k=8,g|=24;break;case E:return r=$n(12,o,a,g|2),r.elementType=E,r.lanes=y,r;case I:return r=$n(13,o,a,g),r.elementType=I,r.lanes=y,r;case D:return r=$n(19,o,a,g),r.elementType=D,r.lanes=y,r;default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case T:k=10;break e;case N:k=9;break e;case B:k=11;break e;case U:k=14;break e;case J:k=16,c=null;break e}k=29,o=Error(i(130,r===null?"null":typeof r,"")),c=null}return a=$n(k,o,a,g),a.elementType=r,a.type=c,a.lanes=y,a}function Ca(r,a,o,c){return r=$n(7,r,c,a),r.lanes=o,r}function kf(r,a,o){return r=$n(6,r,null,a),r.lanes=o,r}function Rp(r){var a=$n(18,null,null,0);return a.stateNode=r,a}function Ef(r,a,o){return a=$n(4,r.children!==null?r.children:[],r.key,a),a.lanes=o,a.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},a}var Bp=new WeakMap;function or(r,a){if(typeof r=="object"&&r!==null){var o=Bp.get(r);return o!==void 0?o:(a={value:r,source:a,stack:pe(a)},Bp.set(r,a),a)}return{value:r,source:a,stack:pe(a)}}var gl=[],yl=0,Au=null,Do=0,sr=[],ur=0,Ri=null,Or=1,Rr="";function ti(r,a){gl[yl++]=Do,gl[yl++]=Au,Au=r,Do=a}function Lp(r,a,o){sr[ur++]=Or,sr[ur++]=Rr,sr[ur++]=Ri,Ri=r;var c=Or;r=Rr;var g=32-Le(c)-1;c&=~(1<<g),o+=1;var y=32-Le(a)+g;if(30<y){var k=g-g%5;y=(c&(1<<k)-1).toString(32),c>>=k,g-=k,Or=1<<32-Le(a)+g|o<<g|c,Rr=y+r}else Or=1<<y|o<<g|c,Rr=r}function Af(r){r.return!==null&&(ti(r,1),Lp(r,1,0))}function Cf(r){for(;r===Au;)Au=gl[--yl],gl[yl]=null,Do=gl[--yl],gl[yl]=null;for(;r===Ri;)Ri=sr[--ur],sr[ur]=null,Rr=sr[--ur],sr[ur]=null,Or=sr[--ur],sr[ur]=null}function Hp(r,a){sr[ur++]=Or,sr[ur++]=Rr,sr[ur++]=Ri,Or=a.id,Rr=a.overflow,Ri=r}var mn=null,Dt=null,ct=!1,Bi=null,cr=!1,Tf=Error(i(519));function Li(r){var a=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw _o(or(a,r)),Tf}function jp(r){var a=r.stateNode,o=r.type,c=r.memoizedProps;switch(a[on]=r,a[xn]=c,o){case"dialog":at("cancel",a),at("close",a);break;case"iframe":case"object":case"embed":at("load",a);break;case"video":case"audio":for(o=0;o<es.length;o++)at(es[o],a);break;case"source":at("error",a);break;case"img":case"image":case"link":at("error",a),at("load",a);break;case"details":at("toggle",a);break;case"input":at("invalid",a),hu(a,c.value,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name,!0);break;case"select":at("invalid",a);break;case"textarea":at("invalid",a),Wm(a,c.value,c.defaultValue,c.children)}o=c.children,typeof o!="string"&&typeof o!="number"&&typeof o!="bigint"||a.textContent===""+o||c.suppressHydrationWarning===!0||tg(a.textContent,o)?(c.popover!=null&&(at("beforetoggle",a),at("toggle",a)),c.onScroll!=null&&at("scroll",a),c.onScrollEnd!=null&&at("scrollend",a),c.onClick!=null&&(a.onclick=Jr),a=!0):a=!1,a||Li(r,!0)}function qp(r){for(mn=r.return;mn;)switch(mn.tag){case 5:case 31:case 13:cr=!1;return;case 27:case 3:cr=!0;return;default:mn=mn.return}}function vl(r){if(r!==mn)return!1;if(!ct)return qp(r),ct=!0,!1;var a=r.tag,o;if((o=a!==3&&a!==27)&&((o=a===5)&&(o=r.type,o=!(o!=="form"&&o!=="button")||Gh(r.type,r.memoizedProps)),o=!o),o&&Dt&&Li(r),qp(r),a===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(i(317));Dt=cg(r)}else if(a===31){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(i(317));Dt=cg(r)}else a===27?(a=Dt,Qi(r.type)?(r=Qh,Qh=null,Dt=r):Dt=a):Dt=mn?hr(r.stateNode.nextSibling):null;return!0}function Ta(){Dt=mn=null,ct=!1}function Mf(){var r=Bi;return r!==null&&(Hn===null?Hn=r:Hn.push.apply(Hn,r),Bi=null),r}function _o(r){Bi===null?Bi=[r]:Bi.push(r)}var zf=j(null),Ma=null,ni=null;function Hi(r,a,o){_(zf,a._currentValue),a._currentValue=o}function ri(r){r._currentValue=zf.current,Z(zf)}function Nf(r,a,o){for(;r!==null;){var c=r.alternate;if((r.childLanes&a)!==a?(r.childLanes|=a,c!==null&&(c.childLanes|=a)):c!==null&&(c.childLanes&a)!==a&&(c.childLanes|=a),r===o)break;r=r.return}}function Df(r,a,o,c){var g=r.child;for(g!==null&&(g.return=r);g!==null;){var y=g.dependencies;if(y!==null){var k=g.child;y=y.firstContext;e:for(;y!==null;){var O=y;y=g;for(var Q=0;Q<a.length;Q++)if(O.context===a[Q]){y.lanes|=o,O=y.alternate,O!==null&&(O.lanes|=o),Nf(y.return,o,r),c||(k=null);break e}y=O.next}}else if(g.tag===18){if(k=g.return,k===null)throw Error(i(341));k.lanes|=o,y=k.alternate,y!==null&&(y.lanes|=o),Nf(k,o,r),k=null}else k=g.child;if(k!==null)k.return=g;else for(k=g;k!==null;){if(k===r){k=null;break}if(g=k.sibling,g!==null){g.return=k.return,k=g;break}k=k.return}g=k}}function xl(r,a,o,c){r=null;for(var g=a,y=!1;g!==null;){if(!y){if((g.flags&524288)!==0)y=!0;else if((g.flags&262144)!==0)break}if(g.tag===10){var k=g.alternate;if(k===null)throw Error(i(387));if(k=k.memoizedProps,k!==null){var O=g.type;Gn(g.pendingProps.value,k.value)||(r!==null?r.push(O):r=[O])}}else if(g===we.current){if(k=g.alternate,k===null)throw Error(i(387));k.memoizedState.memoizedState!==g.memoizedState.memoizedState&&(r!==null?r.push(as):r=[as])}g=g.return}r!==null&&Df(a,r,o,c),a.flags|=262144}function Cu(r){for(r=r.firstContext;r!==null;){if(!Gn(r.context._currentValue,r.memoizedValue))return!0;r=r.next}return!1}function za(r){Ma=r,ni=null,r=r.dependencies,r!==null&&(r.firstContext=null)}function pn(r){return Ip(Ma,r)}function Tu(r,a){return Ma===null&&za(r),Ip(r,a)}function Ip(r,a){var o=a._currentValue;if(a={context:a,memoizedValue:o,next:null},ni===null){if(r===null)throw Error(i(308));ni=a,r.dependencies={lanes:0,firstContext:a},r.flags|=524288}else ni=ni.next=a;return o}var H9=typeof AbortController<"u"?AbortController:function(){var r=[],a=this.signal={aborted:!1,addEventListener:function(o,c){r.push(c)}};this.abort=function(){a.aborted=!0,r.forEach(function(o){return o()})}},j9=e.unstable_scheduleCallback,q9=e.unstable_NormalPriority,Pt={$$typeof:T,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function _f(){return{controller:new H9,data:new Map,refCount:0}}function Oo(r){r.refCount--,r.refCount===0&&j9(q9,function(){r.controller.abort()})}var Ro=null,Of=0,bl=0,wl=null;function I9(r,a){if(Ro===null){var o=Ro=[];Of=0,bl=Lh(),wl={status:"pending",value:void 0,then:function(c){o.push(c)}}}return Of++,a.then(Up,Up),a}function Up(){if(--Of===0&&Ro!==null){wl!==null&&(wl.status="fulfilled");var r=Ro;Ro=null,bl=0,wl=null;for(var a=0;a<r.length;a++)(0,r[a])()}}function U9(r,a){var o=[],c={status:"pending",value:null,reason:null,then:function(g){o.push(g)}};return r.then(function(){c.status="fulfilled",c.value=a;for(var g=0;g<o.length;g++)(0,o[g])(a)},function(g){for(c.status="rejected",c.reason=g,g=0;g<o.length;g++)(0,o[g])(void 0)}),c}var Fp=L.S;L.S=function(r,a){A2=zt(),typeof a=="object"&&a!==null&&typeof a.then=="function"&&I9(r,a),Fp!==null&&Fp(r,a)};var Na=j(null);function Rf(){var r=Na.current;return r!==null?r:Ct.pooledCache}function Mu(r,a){a===null?_(Na,Na.current):_(Na,a.pool)}function Vp(){var r=Rf();return r===null?null:{parent:Pt._currentValue,pool:r}}var Sl=Error(i(460)),Bf=Error(i(474)),zu=Error(i(542)),Nu={then:function(){}};function Yp(r){return r=r.status,r==="fulfilled"||r==="rejected"}function Gp(r,a,o){switch(o=r[o],o===void 0?r.push(a):o!==a&&(a.then(Jr,Jr),a=o),a.status){case"fulfilled":return a.value;case"rejected":throw r=a.reason,Xp(r),r;default:if(typeof a.status=="string")a.then(Jr,Jr);else{if(r=Ct,r!==null&&100<r.shellSuspendCounter)throw Error(i(482));r=a,r.status="pending",r.then(function(c){if(a.status==="pending"){var g=a;g.status="fulfilled",g.value=c}},function(c){if(a.status==="pending"){var g=a;g.status="rejected",g.reason=c}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw r=a.reason,Xp(r),r}throw _a=a,Sl}}function Da(r){try{var a=r._init;return a(r._payload)}catch(o){throw o!==null&&typeof o=="object"&&typeof o.then=="function"?(_a=o,Sl):o}}var _a=null;function $p(){if(_a===null)throw Error(i(459));var r=_a;return _a=null,r}function Xp(r){if(r===Sl||r===zu)throw Error(i(483))}var kl=null,Bo=0;function Du(r){var a=Bo;return Bo+=1,kl===null&&(kl=[]),Gp(kl,r,a)}function Lo(r,a){a=a.props.ref,r.ref=a!==void 0?a:null}function _u(r,a){throw a.$$typeof===v?Error(i(525)):(r=Object.prototype.toString.call(a),Error(i(31,r==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":r)))}function Pp(r){function a(re,ee){if(r){var ae=re.deletions;ae===null?(re.deletions=[ee],re.flags|=16):ae.push(ee)}}function o(re,ee){if(!r)return null;for(;ee!==null;)a(re,ee),ee=ee.sibling;return null}function c(re){for(var ee=new Map;re!==null;)re.key!==null?ee.set(re.key,re):ee.set(re.index,re),re=re.sibling;return ee}function g(re,ee){return re=ei(re,ee),re.index=0,re.sibling=null,re}function y(re,ee,ae){return re.index=ae,r?(ae=re.alternate,ae!==null?(ae=ae.index,ae<ee?(re.flags|=67108866,ee):ae):(re.flags|=67108866,ee)):(re.flags|=1048576,ee)}function k(re){return r&&re.alternate===null&&(re.flags|=67108866),re}function O(re,ee,ae,de){return ee===null||ee.tag!==6?(ee=kf(ae,re.mode,de),ee.return=re,ee):(ee=g(ee,ae),ee.return=re,ee)}function Q(re,ee,ae,de){var Ie=ae.type;return Ie===A?he(re,ee,ae.props.children,de,ae.key):ee!==null&&(ee.elementType===Ie||typeof Ie=="object"&&Ie!==null&&Ie.$$typeof===J&&Da(Ie)===ee.type)?(ee=g(ee,ae.props),Lo(ee,ae),ee.return=re,ee):(ee=Eu(ae.type,ae.key,ae.props,null,re.mode,de),Lo(ee,ae),ee.return=re,ee)}function le(re,ee,ae,de){return ee===null||ee.tag!==4||ee.stateNode.containerInfo!==ae.containerInfo||ee.stateNode.implementation!==ae.implementation?(ee=Ef(ae,re.mode,de),ee.return=re,ee):(ee=g(ee,ae.children||[]),ee.return=re,ee)}function he(re,ee,ae,de,Ie){return ee===null||ee.tag!==7?(ee=Ca(ae,re.mode,de,Ie),ee.return=re,ee):(ee=g(ee,ae),ee.return=re,ee)}function ge(re,ee,ae){if(typeof ee=="string"&&ee!==""||typeof ee=="number"||typeof ee=="bigint")return ee=kf(""+ee,re.mode,ae),ee.return=re,ee;if(typeof ee=="object"&&ee!==null){switch(ee.$$typeof){case x:return ae=Eu(ee.type,ee.key,ee.props,null,re.mode,ae),Lo(ae,ee),ae.return=re,ae;case w:return ee=Ef(ee,re.mode,ae),ee.return=re,ee;case J:return ee=Da(ee),ge(re,ee,ae)}if(F(ee)||W(ee))return ee=Ca(ee,re.mode,ae,null),ee.return=re,ee;if(typeof ee.then=="function")return ge(re,Du(ee),ae);if(ee.$$typeof===T)return ge(re,Tu(re,ee),ae);_u(re,ee)}return null}function oe(re,ee,ae,de){var Ie=ee!==null?ee.key:null;if(typeof ae=="string"&&ae!==""||typeof ae=="number"||typeof ae=="bigint")return Ie!==null?null:O(re,ee,""+ae,de);if(typeof ae=="object"&&ae!==null){switch(ae.$$typeof){case x:return ae.key===Ie?Q(re,ee,ae,de):null;case w:return ae.key===Ie?le(re,ee,ae,de):null;case J:return ae=Da(ae),oe(re,ee,ae,de)}if(F(ae)||W(ae))return Ie!==null?null:he(re,ee,ae,de,null);if(typeof ae.then=="function")return oe(re,ee,Du(ae),de);if(ae.$$typeof===T)return oe(re,ee,Tu(re,ae),de);_u(re,ae)}return null}function ue(re,ee,ae,de,Ie){if(typeof de=="string"&&de!==""||typeof de=="number"||typeof de=="bigint")return re=re.get(ae)||null,O(ee,re,""+de,Ie);if(typeof de=="object"&&de!==null){switch(de.$$typeof){case x:return re=re.get(de.key===null?ae:de.key)||null,Q(ee,re,de,Ie);case w:return re=re.get(de.key===null?ae:de.key)||null,le(ee,re,de,Ie);case J:return de=Da(de),ue(re,ee,ae,de,Ie)}if(F(de)||W(de))return re=re.get(ae)||null,he(ee,re,de,Ie,null);if(typeof de.then=="function")return ue(re,ee,ae,Du(de),Ie);if(de.$$typeof===T)return ue(re,ee,ae,Tu(ee,de),Ie);_u(ee,de)}return null}function De(re,ee,ae,de){for(var Ie=null,ht=null,Re=ee,Je=ee=0,st=null;Re!==null&&Je<ae.length;Je++){Re.index>Je?(st=Re,Re=null):st=Re.sibling;var dt=oe(re,Re,ae[Je],de);if(dt===null){Re===null&&(Re=st);break}r&&Re&&dt.alternate===null&&a(re,Re),ee=y(dt,ee,Je),ht===null?Ie=dt:ht.sibling=dt,ht=dt,Re=st}if(Je===ae.length)return o(re,Re),ct&&ti(re,Je),Ie;if(Re===null){for(;Je<ae.length;Je++)Re=ge(re,ae[Je],de),Re!==null&&(ee=y(Re,ee,Je),ht===null?Ie=Re:ht.sibling=Re,ht=Re);return ct&&ti(re,Je),Ie}for(Re=c(Re);Je<ae.length;Je++)st=ue(Re,re,Je,ae[Je],de),st!==null&&(r&&st.alternate!==null&&Re.delete(st.key===null?Je:st.key),ee=y(st,ee,Je),ht===null?Ie=st:ht.sibling=st,ht=st);return r&&Re.forEach(function(ta){return a(re,ta)}),ct&&ti(re,Je),Ie}function Ye(re,ee,ae,de){if(ae==null)throw Error(i(151));for(var Ie=null,ht=null,Re=ee,Je=ee=0,st=null,dt=ae.next();Re!==null&&!dt.done;Je++,dt=ae.next()){Re.index>Je?(st=Re,Re=null):st=Re.sibling;var ta=oe(re,Re,dt.value,de);if(ta===null){Re===null&&(Re=st);break}r&&Re&&ta.alternate===null&&a(re,Re),ee=y(ta,ee,Je),ht===null?Ie=ta:ht.sibling=ta,ht=ta,Re=st}if(dt.done)return o(re,Re),ct&&ti(re,Je),Ie;if(Re===null){for(;!dt.done;Je++,dt=ae.next())dt=ge(re,dt.value,de),dt!==null&&(ee=y(dt,ee,Je),ht===null?Ie=dt:ht.sibling=dt,ht=dt);return ct&&ti(re,Je),Ie}for(Re=c(Re);!dt.done;Je++,dt=ae.next())dt=ue(Re,re,Je,dt.value,de),dt!==null&&(r&&dt.alternate!==null&&Re.delete(dt.key===null?Je:dt.key),ee=y(dt,ee,Je),ht===null?Ie=dt:ht.sibling=dt,ht=dt);return r&&Re.forEach(function(Jx){return a(re,Jx)}),ct&&ti(re,Je),Ie}function At(re,ee,ae,de){if(typeof ae=="object"&&ae!==null&&ae.type===A&&ae.key===null&&(ae=ae.props.children),typeof ae=="object"&&ae!==null){switch(ae.$$typeof){case x:e:{for(var Ie=ae.key;ee!==null;){if(ee.key===Ie){if(Ie=ae.type,Ie===A){if(ee.tag===7){o(re,ee.sibling),de=g(ee,ae.props.children),de.return=re,re=de;break e}}else if(ee.elementType===Ie||typeof Ie=="object"&&Ie!==null&&Ie.$$typeof===J&&Da(Ie)===ee.type){o(re,ee.sibling),de=g(ee,ae.props),Lo(de,ae),de.return=re,re=de;break e}o(re,ee);break}else a(re,ee);ee=ee.sibling}ae.type===A?(de=Ca(ae.props.children,re.mode,de,ae.key),de.return=re,re=de):(de=Eu(ae.type,ae.key,ae.props,null,re.mode,de),Lo(de,ae),de.return=re,re=de)}return k(re);case w:e:{for(Ie=ae.key;ee!==null;){if(ee.key===Ie)if(ee.tag===4&&ee.stateNode.containerInfo===ae.containerInfo&&ee.stateNode.implementation===ae.implementation){o(re,ee.sibling),de=g(ee,ae.children||[]),de.return=re,re=de;break e}else{o(re,ee);break}else a(re,ee);ee=ee.sibling}de=Ef(ae,re.mode,de),de.return=re,re=de}return k(re);case J:return ae=Da(ae),At(re,ee,ae,de)}if(F(ae))return De(re,ee,ae,de);if(W(ae)){if(Ie=W(ae),typeof Ie!="function")throw Error(i(150));return ae=Ie.call(ae),Ye(re,ee,ae,de)}if(typeof ae.then=="function")return At(re,ee,Du(ae),de);if(ae.$$typeof===T)return At(re,ee,Tu(re,ae),de);_u(re,ae)}return typeof ae=="string"&&ae!==""||typeof ae=="number"||typeof ae=="bigint"?(ae=""+ae,ee!==null&&ee.tag===6?(o(re,ee.sibling),de=g(ee,ae),de.return=re,re=de):(o(re,ee),de=kf(ae,re.mode,de),de.return=re,re=de),k(re)):o(re,ee)}return function(re,ee,ae,de){try{Bo=0;var Ie=At(re,ee,ae,de);return kl=null,Ie}catch(Re){if(Re===Sl||Re===zu)throw Re;var ht=$n(29,Re,null,re.mode);return ht.lanes=de,ht.return=re,ht}}}var Oa=Pp(!0),Zp=Pp(!1),ji=!1;function Lf(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Hf(r,a){r=r.updateQueue,a.updateQueue===r&&(a.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,callbacks:null})}function qi(r){return{lane:r,tag:0,payload:null,callback:null,next:null}}function Ii(r,a,o){var c=r.updateQueue;if(c===null)return null;if(c=c.shared,(mt&2)!==0){var g=c.pending;return g===null?a.next=a:(a.next=g.next,g.next=a),c.pending=a,a=ku(r),_p(r,null,o),a}return Su(r,c,a,o),ku(r)}function Ho(r,a,o){if(a=a.updateQueue,a!==null&&(a=a.shared,(o&4194048)!==0)){var c=a.lanes;c&=r.pendingLanes,o|=c,a.lanes=o,rl(r,o)}}function jf(r,a){var o=r.updateQueue,c=r.alternate;if(c!==null&&(c=c.updateQueue,o===c)){var g=null,y=null;if(o=o.firstBaseUpdate,o!==null){do{var k={lane:o.lane,tag:o.tag,payload:o.payload,callback:null,next:null};y===null?g=y=k:y=y.next=k,o=o.next}while(o!==null);y===null?g=y=a:y=y.next=a}else g=y=a;o={baseState:c.baseState,firstBaseUpdate:g,lastBaseUpdate:y,shared:c.shared,callbacks:c.callbacks},r.updateQueue=o;return}r=o.lastBaseUpdate,r===null?o.firstBaseUpdate=a:r.next=a,o.lastBaseUpdate=a}var qf=!1;function jo(){if(qf){var r=wl;if(r!==null)throw r}}function qo(r,a,o,c){qf=!1;var g=r.updateQueue;ji=!1;var y=g.firstBaseUpdate,k=g.lastBaseUpdate,O=g.shared.pending;if(O!==null){g.shared.pending=null;var Q=O,le=Q.next;Q.next=null,k===null?y=le:k.next=le,k=Q;var he=r.alternate;he!==null&&(he=he.updateQueue,O=he.lastBaseUpdate,O!==k&&(O===null?he.firstBaseUpdate=le:O.next=le,he.lastBaseUpdate=Q))}if(y!==null){var ge=g.baseState;k=0,he=le=Q=null,O=y;do{var oe=O.lane&-536870913,ue=oe!==O.lane;if(ue?(ot&oe)===oe:(c&oe)===oe){oe!==0&&oe===bl&&(qf=!0),he!==null&&(he=he.next={lane:0,tag:O.tag,payload:O.payload,callback:null,next:null});e:{var De=r,Ye=O;oe=a;var At=o;switch(Ye.tag){case 1:if(De=Ye.payload,typeof De=="function"){ge=De.call(At,ge,oe);break e}ge=De;break e;case 3:De.flags=De.flags&-65537|128;case 0:if(De=Ye.payload,oe=typeof De=="function"?De.call(At,ge,oe):De,oe==null)break e;ge=m({},ge,oe);break e;case 2:ji=!0}}oe=O.callback,oe!==null&&(r.flags|=64,ue&&(r.flags|=8192),ue=g.callbacks,ue===null?g.callbacks=[oe]:ue.push(oe))}else ue={lane:oe,tag:O.tag,payload:O.payload,callback:O.callback,next:null},he===null?(le=he=ue,Q=ge):he=he.next=ue,k|=oe;if(O=O.next,O===null){if(O=g.shared.pending,O===null)break;ue=O,O=ue.next,ue.next=null,g.lastBaseUpdate=ue,g.shared.pending=null}}while(!0);he===null&&(Q=ge),g.baseState=Q,g.firstBaseUpdate=le,g.lastBaseUpdate=he,y===null&&(g.shared.lanes=0),Gi|=k,r.lanes=k,r.memoizedState=ge}}function Qp(r,a){if(typeof r!="function")throw Error(i(191,r));r.call(a)}function Kp(r,a){var o=r.callbacks;if(o!==null)for(r.callbacks=null,r=0;r<o.length;r++)Qp(o[r],a)}var El=j(null),Ou=j(0);function Jp(r,a){r=hi,_(Ou,r),_(El,a),hi=r|a.baseLanes}function If(){_(Ou,hi),_(El,El.current)}function Uf(){hi=Ou.current,Z(El),Z(Ou)}var Xn=j(null),fr=null;function Ui(r){var a=r.alternate;_(Gt,Gt.current&1),_(Xn,r),fr===null&&(a===null||El.current!==null||a.memoizedState!==null)&&(fr=r)}function Ff(r){_(Gt,Gt.current),_(Xn,r),fr===null&&(fr=r)}function Wp(r){r.tag===22?(_(Gt,Gt.current),_(Xn,r),fr===null&&(fr=r)):Fi()}function Fi(){_(Gt,Gt.current),_(Xn,Xn.current)}function Pn(r){Z(Xn),fr===r&&(fr=null),Z(Gt)}var Gt=j(0);function Ru(r){for(var a=r;a!==null;){if(a.tag===13){var o=a.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||Ph(o)||Zh(o)))return a}else if(a.tag===19&&(a.memoizedProps.revealOrder==="forwards"||a.memoizedProps.revealOrder==="backwards"||a.memoizedProps.revealOrder==="unstable_legacy-backwards"||a.memoizedProps.revealOrder==="together")){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===r)break;for(;a.sibling===null;){if(a.return===null||a.return===r)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var ii=0,Ke=null,kt=null,Zt=null,Bu=!1,Al=!1,Ra=!1,Lu=0,Io=0,Cl=null,F9=0;function Ft(){throw Error(i(321))}function Vf(r,a){if(a===null)return!1;for(var o=0;o<a.length&&o<r.length;o++)if(!Gn(r[o],a[o]))return!1;return!0}function Yf(r,a,o,c,g,y){return ii=y,Ke=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,L.H=r===null||r.memoizedState===null?L4:ah,Ra=!1,y=o(c,g),Ra=!1,Al&&(y=t4(a,o,c,g)),e4(r),y}function e4(r){L.H=Vo;var a=kt!==null&&kt.next!==null;if(ii=0,Zt=kt=Ke=null,Bu=!1,Io=0,Cl=null,a)throw Error(i(300));r===null||Qt||(r=r.dependencies,r!==null&&Cu(r)&&(Qt=!0))}function t4(r,a,o,c){Ke=r;var g=0;do{if(Al&&(Cl=null),Io=0,Al=!1,25<=g)throw Error(i(301));if(g+=1,Zt=kt=null,r.updateQueue!=null){var y=r.updateQueue;y.lastEffect=null,y.events=null,y.stores=null,y.memoCache!=null&&(y.memoCache.index=0)}L.H=H4,y=a(o,c)}while(Al);return y}function V9(){var r=L.H,a=r.useState()[0];return a=typeof a.then=="function"?Uo(a):a,r=r.useState()[0],(kt!==null?kt.memoizedState:null)!==r&&(Ke.flags|=1024),a}function Gf(){var r=Lu!==0;return Lu=0,r}function $f(r,a,o){a.updateQueue=r.updateQueue,a.flags&=-2053,r.lanes&=~o}function Xf(r){if(Bu){for(r=r.memoizedState;r!==null;){var a=r.queue;a!==null&&(a.pending=null),r=r.next}Bu=!1}ii=0,Zt=kt=Ke=null,Al=!1,Io=Lu=0,Cl=null}function En(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Zt===null?Ke.memoizedState=Zt=r:Zt=Zt.next=r,Zt}function $t(){if(kt===null){var r=Ke.alternate;r=r!==null?r.memoizedState:null}else r=kt.next;var a=Zt===null?Ke.memoizedState:Zt.next;if(a!==null)Zt=a,kt=r;else{if(r===null)throw Ke.alternate===null?Error(i(467)):Error(i(310));kt=r,r={memoizedState:kt.memoizedState,baseState:kt.baseState,baseQueue:kt.baseQueue,queue:kt.queue,next:null},Zt===null?Ke.memoizedState=Zt=r:Zt=Zt.next=r}return Zt}function Hu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Uo(r){var a=Io;return Io+=1,Cl===null&&(Cl=[]),r=Gp(Cl,r,a),a=Ke,(Zt===null?a.memoizedState:Zt.next)===null&&(a=a.alternate,L.H=a===null||a.memoizedState===null?L4:ah),r}function ju(r){if(r!==null&&typeof r=="object"){if(typeof r.then=="function")return Uo(r);if(r.$$typeof===T)return pn(r)}throw Error(i(438,String(r)))}function Pf(r){var a=null,o=Ke.updateQueue;if(o!==null&&(a=o.memoCache),a==null){var c=Ke.alternate;c!==null&&(c=c.updateQueue,c!==null&&(c=c.memoCache,c!=null&&(a={data:c.data.map(function(g){return g.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),o===null&&(o=Hu(),Ke.updateQueue=o),o.memoCache=a,o=a.data[a.index],o===void 0)for(o=a.data[a.index]=Array(r),c=0;c<r;c++)o[c]=V;return a.index++,o}function ai(r,a){return typeof a=="function"?a(r):a}function qu(r){var a=$t();return Zf(a,kt,r)}function Zf(r,a,o){var c=r.queue;if(c===null)throw Error(i(311));c.lastRenderedReducer=o;var g=r.baseQueue,y=c.pending;if(y!==null){if(g!==null){var k=g.next;g.next=y.next,y.next=k}a.baseQueue=g=y,c.pending=null}if(y=r.baseState,g===null)r.memoizedState=y;else{a=g.next;var O=k=null,Q=null,le=a,he=!1;do{var ge=le.lane&-536870913;if(ge!==le.lane?(ot&ge)===ge:(ii&ge)===ge){var oe=le.revertLane;if(oe===0)Q!==null&&(Q=Q.next={lane:0,revertLane:0,gesture:null,action:le.action,hasEagerState:le.hasEagerState,eagerState:le.eagerState,next:null}),ge===bl&&(he=!0);else if((ii&oe)===oe){le=le.next,oe===bl&&(he=!0);continue}else ge={lane:0,revertLane:le.revertLane,gesture:null,action:le.action,hasEagerState:le.hasEagerState,eagerState:le.eagerState,next:null},Q===null?(O=Q=ge,k=y):Q=Q.next=ge,Ke.lanes|=oe,Gi|=oe;ge=le.action,Ra&&o(y,ge),y=le.hasEagerState?le.eagerState:o(y,ge)}else oe={lane:ge,revertLane:le.revertLane,gesture:le.gesture,action:le.action,hasEagerState:le.hasEagerState,eagerState:le.eagerState,next:null},Q===null?(O=Q=oe,k=y):Q=Q.next=oe,Ke.lanes|=ge,Gi|=ge;le=le.next}while(le!==null&&le!==a);if(Q===null?k=y:Q.next=O,!Gn(y,r.memoizedState)&&(Qt=!0,he&&(o=wl,o!==null)))throw o;r.memoizedState=y,r.baseState=k,r.baseQueue=Q,c.lastRenderedState=y}return g===null&&(c.lanes=0),[r.memoizedState,c.dispatch]}function Qf(r){var a=$t(),o=a.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=r;var c=o.dispatch,g=o.pending,y=a.memoizedState;if(g!==null){o.pending=null;var k=g=g.next;do y=r(y,k.action),k=k.next;while(k!==g);Gn(y,a.memoizedState)||(Qt=!0),a.memoizedState=y,a.baseQueue===null&&(a.baseState=y),o.lastRenderedState=y}return[y,c]}function n4(r,a,o){var c=Ke,g=$t(),y=ct;if(y){if(o===void 0)throw Error(i(407));o=o()}else o=a();var k=!Gn((kt||g).memoizedState,o);if(k&&(g.memoizedState=o,Qt=!0),g=g.queue,Wf(a4.bind(null,c,g,r),[r]),g.getSnapshot!==a||k||Zt!==null&&Zt.memoizedState.tag&1){if(c.flags|=2048,Tl(9,{destroy:void 0},i4.bind(null,c,g,o,a),null),Ct===null)throw Error(i(349));y||(ii&127)!==0||r4(c,a,o)}return o}function r4(r,a,o){r.flags|=16384,r={getSnapshot:a,value:o},a=Ke.updateQueue,a===null?(a=Hu(),Ke.updateQueue=a,a.stores=[r]):(o=a.stores,o===null?a.stores=[r]:o.push(r))}function i4(r,a,o,c){a.value=o,a.getSnapshot=c,l4(a)&&o4(r)}function a4(r,a,o){return o(function(){l4(a)&&o4(r)})}function l4(r){var a=r.getSnapshot;r=r.value;try{var o=a();return!Gn(r,o)}catch{return!0}}function o4(r){var a=Aa(r,2);a!==null&&jn(a,r,2)}function Kf(r){var a=En();if(typeof r=="function"){var o=r;if(r=o(),Ra){me(!0);try{o()}finally{me(!1)}}}return a.memoizedState=a.baseState=r,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ai,lastRenderedState:r},a}function s4(r,a,o,c){return r.baseState=o,Zf(r,kt,typeof c=="function"?c:ai)}function Y9(r,a,o,c,g){if(Fu(r))throw Error(i(485));if(r=a.action,r!==null){var y={payload:g,action:r,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(k){y.listeners.push(k)}};L.T!==null?o(!0):y.isTransition=!1,c(y),o=a.pending,o===null?(y.next=a.pending=y,u4(a,y)):(y.next=o.next,a.pending=o.next=y)}}function u4(r,a){var o=a.action,c=a.payload,g=r.state;if(a.isTransition){var y=L.T,k={};L.T=k;try{var O=o(g,c),Q=L.S;Q!==null&&Q(k,O),c4(r,a,O)}catch(le){Jf(r,a,le)}finally{y!==null&&k.types!==null&&(y.types=k.types),L.T=y}}else try{y=o(g,c),c4(r,a,y)}catch(le){Jf(r,a,le)}}function c4(r,a,o){o!==null&&typeof o=="object"&&typeof o.then=="function"?o.then(function(c){f4(r,a,c)},function(c){return Jf(r,a,c)}):f4(r,a,o)}function f4(r,a,o){a.status="fulfilled",a.value=o,h4(a),r.state=o,a=r.pending,a!==null&&(o=a.next,o===a?r.pending=null:(o=o.next,a.next=o,u4(r,o)))}function Jf(r,a,o){var c=r.pending;if(r.pending=null,c!==null){c=c.next;do a.status="rejected",a.reason=o,h4(a),a=a.next;while(a!==c)}r.action=null}function h4(r){r=r.listeners;for(var a=0;a<r.length;a++)(0,r[a])()}function d4(r,a){return a}function m4(r,a){if(ct){var o=Ct.formState;if(o!==null){e:{var c=Ke;if(ct){if(Dt){t:{for(var g=Dt,y=cr;g.nodeType!==8;){if(!y){g=null;break t}if(g=hr(g.nextSibling),g===null){g=null;break t}}y=g.data,g=y==="F!"||y==="F"?g:null}if(g){Dt=hr(g.nextSibling),c=g.data==="F!";break e}}Li(c)}c=!1}c&&(a=o[0])}}return o=En(),o.memoizedState=o.baseState=a,c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:d4,lastRenderedState:a},o.queue=c,o=O4.bind(null,Ke,c),c.dispatch=o,c=Kf(!1),y=ih.bind(null,Ke,!1,c.queue),c=En(),g={state:a,dispatch:null,action:r,pending:null},c.queue=g,o=Y9.bind(null,Ke,g,y,o),g.dispatch=o,c.memoizedState=r,[a,o,!1]}function p4(r){var a=$t();return g4(a,kt,r)}function g4(r,a,o){if(a=Zf(r,a,d4)[0],r=qu(ai)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var c=Uo(a)}catch(k){throw k===Sl?zu:k}else c=a;a=$t();var g=a.queue,y=g.dispatch;return o!==a.memoizedState&&(Ke.flags|=2048,Tl(9,{destroy:void 0},G9.bind(null,g,o),null)),[c,y,r]}function G9(r,a){r.action=a}function y4(r){var a=$t(),o=kt;if(o!==null)return g4(a,o,r);$t(),a=a.memoizedState,o=$t();var c=o.queue.dispatch;return o.memoizedState=r,[a,c,!1]}function Tl(r,a,o,c){return r={tag:r,create:o,deps:c,inst:a,next:null},a=Ke.updateQueue,a===null&&(a=Hu(),Ke.updateQueue=a),o=a.lastEffect,o===null?a.lastEffect=r.next=r:(c=o.next,o.next=r,r.next=c,a.lastEffect=r),r}function v4(){return $t().memoizedState}function Iu(r,a,o,c){var g=En();Ke.flags|=r,g.memoizedState=Tl(1|a,{destroy:void 0},o,c===void 0?null:c)}function Uu(r,a,o,c){var g=$t();c=c===void 0?null:c;var y=g.memoizedState.inst;kt!==null&&c!==null&&Vf(c,kt.memoizedState.deps)?g.memoizedState=Tl(a,y,o,c):(Ke.flags|=r,g.memoizedState=Tl(1|a,y,o,c))}function x4(r,a){Iu(8390656,8,r,a)}function Wf(r,a){Uu(2048,8,r,a)}function $9(r){Ke.flags|=4;var a=Ke.updateQueue;if(a===null)a=Hu(),Ke.updateQueue=a,a.events=[r];else{var o=a.events;o===null?a.events=[r]:o.push(r)}}function b4(r){var a=$t().memoizedState;return $9({ref:a,nextImpl:r}),function(){if((mt&2)!==0)throw Error(i(440));return a.impl.apply(void 0,arguments)}}function w4(r,a){return Uu(4,2,r,a)}function S4(r,a){return Uu(4,4,r,a)}function k4(r,a){if(typeof a=="function"){r=r();var o=a(r);return function(){typeof o=="function"?o():a(null)}}if(a!=null)return r=r(),a.current=r,function(){a.current=null}}function E4(r,a,o){o=o!=null?o.concat([r]):null,Uu(4,4,k4.bind(null,a,r),o)}function eh(){}function A4(r,a){var o=$t();a=a===void 0?null:a;var c=o.memoizedState;return a!==null&&Vf(a,c[1])?c[0]:(o.memoizedState=[r,a],r)}function C4(r,a){var o=$t();a=a===void 0?null:a;var c=o.memoizedState;if(a!==null&&Vf(a,c[1]))return c[0];if(c=r(),Ra){me(!0);try{r()}finally{me(!1)}}return o.memoizedState=[c,a],c}function th(r,a,o){return o===void 0||(ii&1073741824)!==0&&(ot&261930)===0?r.memoizedState=a:(r.memoizedState=o,r=T2(),Ke.lanes|=r,Gi|=r,o)}function T4(r,a,o,c){return Gn(o,a)?o:El.current!==null?(r=th(r,o,c),Gn(r,a)||(Qt=!0),r):(ii&42)===0||(ii&1073741824)!==0&&(ot&261930)===0?(Qt=!0,r.memoizedState=o):(r=T2(),Ke.lanes|=r,Gi|=r,a)}function M4(r,a,o,c,g){var y=Y.p;Y.p=y!==0&&8>y?y:8;var k=L.T,O={};L.T=O,ih(r,!1,a,o);try{var Q=g(),le=L.S;if(le!==null&&le(O,Q),Q!==null&&typeof Q=="object"&&typeof Q.then=="function"){var he=U9(Q,c);Fo(r,a,he,Kn(r))}else Fo(r,a,c,Kn(r))}catch(ge){Fo(r,a,{then:function(){},status:"rejected",reason:ge},Kn())}finally{Y.p=y,k!==null&&O.types!==null&&(k.types=O.types),L.T=k}}function X9(){}function nh(r,a,o,c){if(r.tag!==5)throw Error(i(476));var g=z4(r).queue;M4(r,g,a,K,o===null?X9:function(){return N4(r),o(c)})}function z4(r){var a=r.memoizedState;if(a!==null)return a;a={memoizedState:K,baseState:K,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ai,lastRenderedState:K},next:null};var o={};return a.next={memoizedState:o,baseState:o,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ai,lastRenderedState:o},next:null},r.memoizedState=a,r=r.alternate,r!==null&&(r.memoizedState=a),a}function N4(r){var a=z4(r);a.next===null&&(a=r.alternate.memoizedState),Fo(r,a.next.queue,{},Kn())}function rh(){return pn(as)}function D4(){return $t().memoizedState}function _4(){return $t().memoizedState}function P9(r){for(var a=r.return;a!==null;){switch(a.tag){case 24:case 3:var o=Kn();r=qi(o);var c=Ii(a,r,o);c!==null&&(jn(c,a,o),Ho(c,a,o)),a={cache:_f()},r.payload=a;return}a=a.return}}function Z9(r,a,o){var c=Kn();o={lane:c,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},Fu(r)?R4(a,o):(o=wf(r,a,o,c),o!==null&&(jn(o,r,c),B4(o,a,c)))}function O4(r,a,o){var c=Kn();Fo(r,a,o,c)}function Fo(r,a,o,c){var g={lane:c,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null};if(Fu(r))R4(a,g);else{var y=r.alternate;if(r.lanes===0&&(y===null||y.lanes===0)&&(y=a.lastRenderedReducer,y!==null))try{var k=a.lastRenderedState,O=y(k,o);if(g.hasEagerState=!0,g.eagerState=O,Gn(O,k))return Su(r,a,g,0),Ct===null&&wu(),!1}catch{}if(o=wf(r,a,g,c),o!==null)return jn(o,r,c),B4(o,a,c),!0}return!1}function ih(r,a,o,c){if(c={lane:2,revertLane:Lh(),gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null},Fu(r)){if(a)throw Error(i(479))}else a=wf(r,o,c,2),a!==null&&jn(a,r,2)}function Fu(r){var a=r.alternate;return r===Ke||a!==null&&a===Ke}function R4(r,a){Al=Bu=!0;var o=r.pending;o===null?a.next=a:(a.next=o.next,o.next=a),r.pending=a}function B4(r,a,o){if((o&4194048)!==0){var c=a.lanes;c&=r.pendingLanes,o|=c,a.lanes=o,rl(r,o)}}var Vo={readContext:pn,use:ju,useCallback:Ft,useContext:Ft,useEffect:Ft,useImperativeHandle:Ft,useLayoutEffect:Ft,useInsertionEffect:Ft,useMemo:Ft,useReducer:Ft,useRef:Ft,useState:Ft,useDebugValue:Ft,useDeferredValue:Ft,useTransition:Ft,useSyncExternalStore:Ft,useId:Ft,useHostTransitionStatus:Ft,useFormState:Ft,useActionState:Ft,useOptimistic:Ft,useMemoCache:Ft,useCacheRefresh:Ft};Vo.useEffectEvent=Ft;var L4={readContext:pn,use:ju,useCallback:function(r,a){return En().memoizedState=[r,a===void 0?null:a],r},useContext:pn,useEffect:x4,useImperativeHandle:function(r,a,o){o=o!=null?o.concat([r]):null,Iu(4194308,4,k4.bind(null,a,r),o)},useLayoutEffect:function(r,a){return Iu(4194308,4,r,a)},useInsertionEffect:function(r,a){Iu(4,2,r,a)},useMemo:function(r,a){var o=En();a=a===void 0?null:a;var c=r();if(Ra){me(!0);try{r()}finally{me(!1)}}return o.memoizedState=[c,a],c},useReducer:function(r,a,o){var c=En();if(o!==void 0){var g=o(a);if(Ra){me(!0);try{o(a)}finally{me(!1)}}}else g=a;return c.memoizedState=c.baseState=g,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:g},c.queue=r,r=r.dispatch=Z9.bind(null,Ke,r),[c.memoizedState,r]},useRef:function(r){var a=En();return r={current:r},a.memoizedState=r},useState:function(r){r=Kf(r);var a=r.queue,o=O4.bind(null,Ke,a);return a.dispatch=o,[r.memoizedState,o]},useDebugValue:eh,useDeferredValue:function(r,a){var o=En();return th(o,r,a)},useTransition:function(){var r=Kf(!1);return r=M4.bind(null,Ke,r.queue,!0,!1),En().memoizedState=r,[!1,r]},useSyncExternalStore:function(r,a,o){var c=Ke,g=En();if(ct){if(o===void 0)throw Error(i(407));o=o()}else{if(o=a(),Ct===null)throw Error(i(349));(ot&127)!==0||r4(c,a,o)}g.memoizedState=o;var y={value:o,getSnapshot:a};return g.queue=y,x4(a4.bind(null,c,y,r),[r]),c.flags|=2048,Tl(9,{destroy:void 0},i4.bind(null,c,y,o,a),null),o},useId:function(){var r=En(),a=Ct.identifierPrefix;if(ct){var o=Rr,c=Or;o=(c&~(1<<32-Le(c)-1)).toString(32)+o,a="_"+a+"R_"+o,o=Lu++,0<o&&(a+="H"+o.toString(32)),a+="_"}else o=F9++,a="_"+a+"r_"+o.toString(32)+"_";return r.memoizedState=a},useHostTransitionStatus:rh,useFormState:m4,useActionState:m4,useOptimistic:function(r){var a=En();a.memoizedState=a.baseState=r;var o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=o,a=ih.bind(null,Ke,!0,o),o.dispatch=a,[r,a]},useMemoCache:Pf,useCacheRefresh:function(){return En().memoizedState=P9.bind(null,Ke)},useEffectEvent:function(r){var a=En(),o={impl:r};return a.memoizedState=o,function(){if((mt&2)!==0)throw Error(i(440));return o.impl.apply(void 0,arguments)}}},ah={readContext:pn,use:ju,useCallback:A4,useContext:pn,useEffect:Wf,useImperativeHandle:E4,useInsertionEffect:w4,useLayoutEffect:S4,useMemo:C4,useReducer:qu,useRef:v4,useState:function(){return qu(ai)},useDebugValue:eh,useDeferredValue:function(r,a){var o=$t();return T4(o,kt.memoizedState,r,a)},useTransition:function(){var r=qu(ai)[0],a=$t().memoizedState;return[typeof r=="boolean"?r:Uo(r),a]},useSyncExternalStore:n4,useId:D4,useHostTransitionStatus:rh,useFormState:p4,useActionState:p4,useOptimistic:function(r,a){var o=$t();return s4(o,kt,r,a)},useMemoCache:Pf,useCacheRefresh:_4};ah.useEffectEvent=b4;var H4={readContext:pn,use:ju,useCallback:A4,useContext:pn,useEffect:Wf,useImperativeHandle:E4,useInsertionEffect:w4,useLayoutEffect:S4,useMemo:C4,useReducer:Qf,useRef:v4,useState:function(){return Qf(ai)},useDebugValue:eh,useDeferredValue:function(r,a){var o=$t();return kt===null?th(o,r,a):T4(o,kt.memoizedState,r,a)},useTransition:function(){var r=Qf(ai)[0],a=$t().memoizedState;return[typeof r=="boolean"?r:Uo(r),a]},useSyncExternalStore:n4,useId:D4,useHostTransitionStatus:rh,useFormState:y4,useActionState:y4,useOptimistic:function(r,a){var o=$t();return kt!==null?s4(o,kt,r,a):(o.baseState=r,[r,o.queue.dispatch])},useMemoCache:Pf,useCacheRefresh:_4};H4.useEffectEvent=b4;function lh(r,a,o,c){a=r.memoizedState,o=o(c,a),o=o==null?a:m({},a,o),r.memoizedState=o,r.lanes===0&&(r.updateQueue.baseState=o)}var oh={enqueueSetState:function(r,a,o){r=r._reactInternals;var c=Kn(),g=qi(c);g.payload=a,o!=null&&(g.callback=o),a=Ii(r,g,c),a!==null&&(jn(a,r,c),Ho(a,r,c))},enqueueReplaceState:function(r,a,o){r=r._reactInternals;var c=Kn(),g=qi(c);g.tag=1,g.payload=a,o!=null&&(g.callback=o),a=Ii(r,g,c),a!==null&&(jn(a,r,c),Ho(a,r,c))},enqueueForceUpdate:function(r,a){r=r._reactInternals;var o=Kn(),c=qi(o);c.tag=2,a!=null&&(c.callback=a),a=Ii(r,c,o),a!==null&&(jn(a,r,o),Ho(a,r,o))}};function j4(r,a,o,c,g,y,k){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(c,y,k):a.prototype&&a.prototype.isPureReactComponent?!zo(o,c)||!zo(g,y):!0}function q4(r,a,o,c){r=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(o,c),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(o,c),a.state!==r&&oh.enqueueReplaceState(a,a.state,null)}function Ba(r,a){var o=a;if("ref"in a){o={};for(var c in a)c!=="ref"&&(o[c]=a[c])}if(r=r.defaultProps){o===a&&(o=m({},o));for(var g in r)o[g]===void 0&&(o[g]=r[g])}return o}function I4(r){bu(r)}function U4(r){console.error(r)}function F4(r){bu(r)}function Vu(r,a){try{var o=r.onUncaughtError;o(a.value,{componentStack:a.stack})}catch(c){setTimeout(function(){throw c})}}function V4(r,a,o){try{var c=r.onCaughtError;c(o.value,{componentStack:o.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(g){setTimeout(function(){throw g})}}function sh(r,a,o){return o=qi(o),o.tag=3,o.payload={element:null},o.callback=function(){Vu(r,a)},o}function Y4(r){return r=qi(r),r.tag=3,r}function G4(r,a,o,c){var g=o.type.getDerivedStateFromError;if(typeof g=="function"){var y=c.value;r.payload=function(){return g(y)},r.callback=function(){V4(a,o,c)}}var k=o.stateNode;k!==null&&typeof k.componentDidCatch=="function"&&(r.callback=function(){V4(a,o,c),typeof g!="function"&&($i===null?$i=new Set([this]):$i.add(this));var O=c.stack;this.componentDidCatch(c.value,{componentStack:O!==null?O:""})})}function Q9(r,a,o,c,g){if(o.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){if(a=o.alternate,a!==null&&xl(a,o,g,!0),o=Xn.current,o!==null){switch(o.tag){case 31:case 13:return fr===null?t0():o.alternate===null&&Vt===0&&(Vt=3),o.flags&=-257,o.flags|=65536,o.lanes=g,c===Nu?o.flags|=16384:(a=o.updateQueue,a===null?o.updateQueue=new Set([c]):a.add(c),Oh(r,c,g)),!1;case 22:return o.flags|=65536,c===Nu?o.flags|=16384:(a=o.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([c])},o.updateQueue=a):(o=a.retryQueue,o===null?a.retryQueue=new Set([c]):o.add(c)),Oh(r,c,g)),!1}throw Error(i(435,o.tag))}return Oh(r,c,g),t0(),!1}if(ct)return a=Xn.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=g,c!==Tf&&(r=Error(i(422),{cause:c}),_o(or(r,o)))):(c!==Tf&&(a=Error(i(423),{cause:c}),_o(or(a,o))),r=r.current.alternate,r.flags|=65536,g&=-g,r.lanes|=g,c=or(c,o),g=sh(r.stateNode,c,g),jf(r,g),Vt!==4&&(Vt=2)),!1;var y=Error(i(520),{cause:c});if(y=or(y,o),Ko===null?Ko=[y]:Ko.push(y),Vt!==4&&(Vt=2),a===null)return!0;c=or(c,o),o=a;do{switch(o.tag){case 3:return o.flags|=65536,r=g&-g,o.lanes|=r,r=sh(o.stateNode,c,r),jf(o,r),!1;case 1:if(a=o.type,y=o.stateNode,(o.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&($i===null||!$i.has(y))))return o.flags|=65536,g&=-g,o.lanes|=g,g=Y4(g),G4(g,r,o,c),jf(o,g),!1}o=o.return}while(o!==null);return!1}var uh=Error(i(461)),Qt=!1;function gn(r,a,o,c){a.child=r===null?Zp(a,null,o,c):Oa(a,r.child,o,c)}function $4(r,a,o,c,g){o=o.render;var y=a.ref;if("ref"in c){var k={};for(var O in c)O!=="ref"&&(k[O]=c[O])}else k=c;return za(a),c=Yf(r,a,o,k,y,g),O=Gf(),r!==null&&!Qt?($f(r,a,g),li(r,a,g)):(ct&&O&&Af(a),a.flags|=1,gn(r,a,c,g),a.child)}function X4(r,a,o,c,g){if(r===null){var y=o.type;return typeof y=="function"&&!Sf(y)&&y.defaultProps===void 0&&o.compare===null?(a.tag=15,a.type=y,P4(r,a,y,c,g)):(r=Eu(o.type,null,c,a,a.mode,g),r.ref=a.ref,r.return=a,a.child=r)}if(y=r.child,!yh(r,g)){var k=y.memoizedProps;if(o=o.compare,o=o!==null?o:zo,o(k,c)&&r.ref===a.ref)return li(r,a,g)}return a.flags|=1,r=ei(y,c),r.ref=a.ref,r.return=a,a.child=r}function P4(r,a,o,c,g){if(r!==null){var y=r.memoizedProps;if(zo(y,c)&&r.ref===a.ref)if(Qt=!1,a.pendingProps=c=y,yh(r,g))(r.flags&131072)!==0&&(Qt=!0);else return a.lanes=r.lanes,li(r,a,g)}return ch(r,a,o,c,g)}function Z4(r,a,o,c){var g=c.children,y=r!==null?r.memoizedState:null;if(r===null&&a.stateNode===null&&(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),c.mode==="hidden"){if((a.flags&128)!==0){if(y=y!==null?y.baseLanes|o:o,r!==null){for(c=a.child=r.child,g=0;c!==null;)g=g|c.lanes|c.childLanes,c=c.sibling;c=g&~y}else c=0,a.child=null;return Q4(r,a,y,o,c)}if((o&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},r!==null&&Mu(a,y!==null?y.cachePool:null),y!==null?Jp(a,y):If(),Wp(a);else return c=a.lanes=536870912,Q4(r,a,y!==null?y.baseLanes|o:o,o,c)}else y!==null?(Mu(a,y.cachePool),Jp(a,y),Fi(),a.memoizedState=null):(r!==null&&Mu(a,null),If(),Fi());return gn(r,a,g,o),a.child}function Yo(r,a){return r!==null&&r.tag===22||a.stateNode!==null||(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.sibling}function Q4(r,a,o,c,g){var y=Rf();return y=y===null?null:{parent:Pt._currentValue,pool:y},a.memoizedState={baseLanes:o,cachePool:y},r!==null&&Mu(a,null),If(),Wp(a),r!==null&&xl(r,a,c,!0),a.childLanes=g,null}function Yu(r,a){return a=$u({mode:a.mode,children:a.children},r.mode),a.ref=r.ref,r.child=a,a.return=r,a}function K4(r,a,o){return Oa(a,r.child,null,o),r=Yu(a,a.pendingProps),r.flags|=2,Pn(a),a.memoizedState=null,r}function K9(r,a,o){var c=a.pendingProps,g=(a.flags&128)!==0;if(a.flags&=-129,r===null){if(ct){if(c.mode==="hidden")return r=Yu(a,c),a.lanes=536870912,Yo(null,r);if(Ff(a),(r=Dt)?(r=ug(r,cr),r=r!==null&&r.data==="&"?r:null,r!==null&&(a.memoizedState={dehydrated:r,treeContext:Ri!==null?{id:Or,overflow:Rr}:null,retryLane:536870912,hydrationErrors:null},o=Rp(r),o.return=a,a.child=o,mn=a,Dt=null)):r=null,r===null)throw Li(a);return a.lanes=536870912,null}return Yu(a,c)}var y=r.memoizedState;if(y!==null){var k=y.dehydrated;if(Ff(a),g)if(a.flags&256)a.flags&=-257,a=K4(r,a,o);else if(a.memoizedState!==null)a.child=r.child,a.flags|=128,a=null;else throw Error(i(558));else if(Qt||xl(r,a,o,!1),g=(o&r.childLanes)!==0,Qt||g){if(c=Ct,c!==null&&(k=nu(c,o),k!==0&&k!==y.retryLane))throw y.retryLane=k,Aa(r,k),jn(c,r,k),uh;t0(),a=K4(r,a,o)}else r=y.treeContext,Dt=hr(k.nextSibling),mn=a,ct=!0,Bi=null,cr=!1,r!==null&&Hp(a,r),a=Yu(a,c),a.flags|=4096;return a}return r=ei(r.child,{mode:c.mode,children:c.children}),r.ref=a.ref,a.child=r,r.return=a,r}function Gu(r,a){var o=a.ref;if(o===null)r!==null&&r.ref!==null&&(a.flags|=4194816);else{if(typeof o!="function"&&typeof o!="object")throw Error(i(284));(r===null||r.ref!==o)&&(a.flags|=4194816)}}function ch(r,a,o,c,g){return za(a),o=Yf(r,a,o,c,void 0,g),c=Gf(),r!==null&&!Qt?($f(r,a,g),li(r,a,g)):(ct&&c&&Af(a),a.flags|=1,gn(r,a,o,g),a.child)}function J4(r,a,o,c,g,y){return za(a),a.updateQueue=null,o=t4(a,c,o,g),e4(r),c=Gf(),r!==null&&!Qt?($f(r,a,y),li(r,a,y)):(ct&&c&&Af(a),a.flags|=1,gn(r,a,o,y),a.child)}function W4(r,a,o,c,g){if(za(a),a.stateNode===null){var y=pl,k=o.contextType;typeof k=="object"&&k!==null&&(y=pn(k)),y=new o(c,y),a.memoizedState=y.state!==null&&y.state!==void 0?y.state:null,y.updater=oh,a.stateNode=y,y._reactInternals=a,y=a.stateNode,y.props=c,y.state=a.memoizedState,y.refs={},Lf(a),k=o.contextType,y.context=typeof k=="object"&&k!==null?pn(k):pl,y.state=a.memoizedState,k=o.getDerivedStateFromProps,typeof k=="function"&&(lh(a,o,k,c),y.state=a.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof y.getSnapshotBeforeUpdate=="function"||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(k=y.state,typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount(),k!==y.state&&oh.enqueueReplaceState(y,y.state,null),qo(a,c,y,g),jo(),y.state=a.memoizedState),typeof y.componentDidMount=="function"&&(a.flags|=4194308),c=!0}else if(r===null){y=a.stateNode;var O=a.memoizedProps,Q=Ba(o,O);y.props=Q;var le=y.context,he=o.contextType;k=pl,typeof he=="object"&&he!==null&&(k=pn(he));var ge=o.getDerivedStateFromProps;he=typeof ge=="function"||typeof y.getSnapshotBeforeUpdate=="function",O=a.pendingProps!==O,he||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(O||le!==k)&&q4(a,y,c,k),ji=!1;var oe=a.memoizedState;y.state=oe,qo(a,c,y,g),jo(),le=a.memoizedState,O||oe!==le||ji?(typeof ge=="function"&&(lh(a,o,ge,c),le=a.memoizedState),(Q=ji||j4(a,o,Q,c,oe,le,k))?(he||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount()),typeof y.componentDidMount=="function"&&(a.flags|=4194308)):(typeof y.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=c,a.memoizedState=le),y.props=c,y.state=le,y.context=k,c=Q):(typeof y.componentDidMount=="function"&&(a.flags|=4194308),c=!1)}else{y=a.stateNode,Hf(r,a),k=a.memoizedProps,he=Ba(o,k),y.props=he,ge=a.pendingProps,oe=y.context,le=o.contextType,Q=pl,typeof le=="object"&&le!==null&&(Q=pn(le)),O=o.getDerivedStateFromProps,(le=typeof O=="function"||typeof y.getSnapshotBeforeUpdate=="function")||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(k!==ge||oe!==Q)&&q4(a,y,c,Q),ji=!1,oe=a.memoizedState,y.state=oe,qo(a,c,y,g),jo();var ue=a.memoizedState;k!==ge||oe!==ue||ji||r!==null&&r.dependencies!==null&&Cu(r.dependencies)?(typeof O=="function"&&(lh(a,o,O,c),ue=a.memoizedState),(he=ji||j4(a,o,he,c,oe,ue,Q)||r!==null&&r.dependencies!==null&&Cu(r.dependencies))?(le||typeof y.UNSAFE_componentWillUpdate!="function"&&typeof y.componentWillUpdate!="function"||(typeof y.componentWillUpdate=="function"&&y.componentWillUpdate(c,ue,Q),typeof y.UNSAFE_componentWillUpdate=="function"&&y.UNSAFE_componentWillUpdate(c,ue,Q)),typeof y.componentDidUpdate=="function"&&(a.flags|=4),typeof y.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof y.componentDidUpdate!="function"||k===r.memoizedProps&&oe===r.memoizedState||(a.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||k===r.memoizedProps&&oe===r.memoizedState||(a.flags|=1024),a.memoizedProps=c,a.memoizedState=ue),y.props=c,y.state=ue,y.context=Q,c=he):(typeof y.componentDidUpdate!="function"||k===r.memoizedProps&&oe===r.memoizedState||(a.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||k===r.memoizedProps&&oe===r.memoizedState||(a.flags|=1024),c=!1)}return y=c,Gu(r,a),c=(a.flags&128)!==0,y||c?(y=a.stateNode,o=c&&typeof o.getDerivedStateFromError!="function"?null:y.render(),a.flags|=1,r!==null&&c?(a.child=Oa(a,r.child,null,g),a.child=Oa(a,null,o,g)):gn(r,a,o,g),a.memoizedState=y.state,r=a.child):r=li(r,a,g),r}function e2(r,a,o,c){return Ta(),a.flags|=256,gn(r,a,o,c),a.child}var fh={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function hh(r){return{baseLanes:r,cachePool:Vp()}}function dh(r,a,o){return r=r!==null?r.childLanes&~o:0,a&&(r|=Qn),r}function t2(r,a,o){var c=a.pendingProps,g=!1,y=(a.flags&128)!==0,k;if((k=y)||(k=r!==null&&r.memoizedState===null?!1:(Gt.current&2)!==0),k&&(g=!0,a.flags&=-129),k=(a.flags&32)!==0,a.flags&=-33,r===null){if(ct){if(g?Ui(a):Fi(),(r=Dt)?(r=ug(r,cr),r=r!==null&&r.data!=="&"?r:null,r!==null&&(a.memoizedState={dehydrated:r,treeContext:Ri!==null?{id:Or,overflow:Rr}:null,retryLane:536870912,hydrationErrors:null},o=Rp(r),o.return=a,a.child=o,mn=a,Dt=null)):r=null,r===null)throw Li(a);return Zh(r)?a.lanes=32:a.lanes=536870912,null}var O=c.children;return c=c.fallback,g?(Fi(),g=a.mode,O=$u({mode:"hidden",children:O},g),c=Ca(c,g,o,null),O.return=a,c.return=a,O.sibling=c,a.child=O,c=a.child,c.memoizedState=hh(o),c.childLanes=dh(r,k,o),a.memoizedState=fh,Yo(null,c)):(Ui(a),mh(a,O))}var Q=r.memoizedState;if(Q!==null&&(O=Q.dehydrated,O!==null)){if(y)a.flags&256?(Ui(a),a.flags&=-257,a=ph(r,a,o)):a.memoizedState!==null?(Fi(),a.child=r.child,a.flags|=128,a=null):(Fi(),O=c.fallback,g=a.mode,c=$u({mode:"visible",children:c.children},g),O=Ca(O,g,o,null),O.flags|=2,c.return=a,O.return=a,c.sibling=O,a.child=c,Oa(a,r.child,null,o),c=a.child,c.memoizedState=hh(o),c.childLanes=dh(r,k,o),a.memoizedState=fh,a=Yo(null,c));else if(Ui(a),Zh(O)){if(k=O.nextSibling&&O.nextSibling.dataset,k)var le=k.dgst;k=le,c=Error(i(419)),c.stack="",c.digest=k,_o({value:c,source:null,stack:null}),a=ph(r,a,o)}else if(Qt||xl(r,a,o,!1),k=(o&r.childLanes)!==0,Qt||k){if(k=Ct,k!==null&&(c=nu(k,o),c!==0&&c!==Q.retryLane))throw Q.retryLane=c,Aa(r,c),jn(k,r,c),uh;Ph(O)||t0(),a=ph(r,a,o)}else Ph(O)?(a.flags|=192,a.child=r.child,a=null):(r=Q.treeContext,Dt=hr(O.nextSibling),mn=a,ct=!0,Bi=null,cr=!1,r!==null&&Hp(a,r),a=mh(a,c.children),a.flags|=4096);return a}return g?(Fi(),O=c.fallback,g=a.mode,Q=r.child,le=Q.sibling,c=ei(Q,{mode:"hidden",children:c.children}),c.subtreeFlags=Q.subtreeFlags&65011712,le!==null?O=ei(le,O):(O=Ca(O,g,o,null),O.flags|=2),O.return=a,c.return=a,c.sibling=O,a.child=c,Yo(null,c),c=a.child,O=r.child.memoizedState,O===null?O=hh(o):(g=O.cachePool,g!==null?(Q=Pt._currentValue,g=g.parent!==Q?{parent:Q,pool:Q}:g):g=Vp(),O={baseLanes:O.baseLanes|o,cachePool:g}),c.memoizedState=O,c.childLanes=dh(r,k,o),a.memoizedState=fh,Yo(r.child,c)):(Ui(a),o=r.child,r=o.sibling,o=ei(o,{mode:"visible",children:c.children}),o.return=a,o.sibling=null,r!==null&&(k=a.deletions,k===null?(a.deletions=[r],a.flags|=16):k.push(r)),a.child=o,a.memoizedState=null,o)}function mh(r,a){return a=$u({mode:"visible",children:a},r.mode),a.return=r,r.child=a}function $u(r,a){return r=$n(22,r,null,a),r.lanes=0,r}function ph(r,a,o){return Oa(a,r.child,null,o),r=mh(a,a.pendingProps.children),r.flags|=2,a.memoizedState=null,r}function n2(r,a,o){r.lanes|=a;var c=r.alternate;c!==null&&(c.lanes|=a),Nf(r.return,a,o)}function gh(r,a,o,c,g,y){var k=r.memoizedState;k===null?r.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:c,tail:o,tailMode:g,treeForkCount:y}:(k.isBackwards=a,k.rendering=null,k.renderingStartTime=0,k.last=c,k.tail=o,k.tailMode=g,k.treeForkCount=y)}function r2(r,a,o){var c=a.pendingProps,g=c.revealOrder,y=c.tail;c=c.children;var k=Gt.current,O=(k&2)!==0;if(O?(k=k&1|2,a.flags|=128):k&=1,_(Gt,k),gn(r,a,c,o),c=ct?Do:0,!O&&r!==null&&(r.flags&128)!==0)e:for(r=a.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&n2(r,o,a);else if(r.tag===19)n2(r,o,a);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===a)break e;for(;r.sibling===null;){if(r.return===null||r.return===a)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}switch(g){case"forwards":for(o=a.child,g=null;o!==null;)r=o.alternate,r!==null&&Ru(r)===null&&(g=o),o=o.sibling;o=g,o===null?(g=a.child,a.child=null):(g=o.sibling,o.sibling=null),gh(a,!1,g,o,y,c);break;case"backwards":case"unstable_legacy-backwards":for(o=null,g=a.child,a.child=null;g!==null;){if(r=g.alternate,r!==null&&Ru(r)===null){a.child=g;break}r=g.sibling,g.sibling=o,o=g,g=r}gh(a,!0,o,null,y,c);break;case"together":gh(a,!1,null,null,void 0,c);break;default:a.memoizedState=null}return a.child}function li(r,a,o){if(r!==null&&(a.dependencies=r.dependencies),Gi|=a.lanes,(o&a.childLanes)===0)if(r!==null){if(xl(r,a,o,!1),(o&a.childLanes)===0)return null}else return null;if(r!==null&&a.child!==r.child)throw Error(i(153));if(a.child!==null){for(r=a.child,o=ei(r,r.pendingProps),a.child=o,o.return=a;r.sibling!==null;)r=r.sibling,o=o.sibling=ei(r,r.pendingProps),o.return=a;o.sibling=null}return a.child}function yh(r,a){return(r.lanes&a)!==0?!0:(r=r.dependencies,!!(r!==null&&Cu(r)))}function J9(r,a,o){switch(a.tag){case 3:ye(a,a.stateNode.containerInfo),Hi(a,Pt,r.memoizedState.cache),Ta();break;case 27:case 5:Be(a);break;case 4:ye(a,a.stateNode.containerInfo);break;case 10:Hi(a,a.type,a.memoizedProps.value);break;case 31:if(a.memoizedState!==null)return a.flags|=128,Ff(a),null;break;case 13:var c=a.memoizedState;if(c!==null)return c.dehydrated!==null?(Ui(a),a.flags|=128,null):(o&a.child.childLanes)!==0?t2(r,a,o):(Ui(a),r=li(r,a,o),r!==null?r.sibling:null);Ui(a);break;case 19:var g=(r.flags&128)!==0;if(c=(o&a.childLanes)!==0,c||(xl(r,a,o,!1),c=(o&a.childLanes)!==0),g){if(c)return r2(r,a,o);a.flags|=128}if(g=a.memoizedState,g!==null&&(g.rendering=null,g.tail=null,g.lastEffect=null),_(Gt,Gt.current),c)break;return null;case 22:return a.lanes=0,Z4(r,a,o,a.pendingProps);case 24:Hi(a,Pt,r.memoizedState.cache)}return li(r,a,o)}function i2(r,a,o){if(r!==null)if(r.memoizedProps!==a.pendingProps)Qt=!0;else{if(!yh(r,o)&&(a.flags&128)===0)return Qt=!1,J9(r,a,o);Qt=(r.flags&131072)!==0}else Qt=!1,ct&&(a.flags&1048576)!==0&&Lp(a,Do,a.index);switch(a.lanes=0,a.tag){case 16:e:{var c=a.pendingProps;if(r=Da(a.elementType),a.type=r,typeof r=="function")Sf(r)?(c=Ba(r,c),a.tag=1,a=W4(null,a,r,c,o)):(a.tag=0,a=ch(null,a,r,c,o));else{if(r!=null){var g=r.$$typeof;if(g===B){a.tag=11,a=$4(null,a,r,c,o);break e}else if(g===U){a.tag=14,a=X4(null,a,r,c,o);break e}}throw a=q(r)||r,Error(i(306,a,""))}}return a;case 0:return ch(r,a,a.type,a.pendingProps,o);case 1:return c=a.type,g=Ba(c,a.pendingProps),W4(r,a,c,g,o);case 3:e:{if(ye(a,a.stateNode.containerInfo),r===null)throw Error(i(387));c=a.pendingProps;var y=a.memoizedState;g=y.element,Hf(r,a),qo(a,c,null,o);var k=a.memoizedState;if(c=k.cache,Hi(a,Pt,c),c!==y.cache&&Df(a,[Pt],o,!0),jo(),c=k.element,y.isDehydrated)if(y={element:c,isDehydrated:!1,cache:k.cache},a.updateQueue.baseState=y,a.memoizedState=y,a.flags&256){a=e2(r,a,c,o);break e}else if(c!==g){g=or(Error(i(424)),a),_o(g),a=e2(r,a,c,o);break e}else for(r=a.stateNode.containerInfo,r.nodeType===9?r=r.body:r=r.nodeName==="HTML"?r.ownerDocument.body:r,Dt=hr(r.firstChild),mn=a,ct=!0,Bi=null,cr=!0,o=Zp(a,null,c,o),a.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;else{if(Ta(),c===g){a=li(r,a,o);break e}gn(r,a,c,o)}a=a.child}return a;case 26:return Gu(r,a),r===null?(o=pg(a.type,null,a.pendingProps,null))?a.memoizedState=o:ct||(o=a.type,r=a.pendingProps,c=s0(xe.current).createElement(o),c[on]=a,c[xn]=r,yn(c,o,r),Xt(c),a.stateNode=c):a.memoizedState=pg(a.type,r.memoizedProps,a.pendingProps,r.memoizedState),null;case 27:return Be(a),r===null&&ct&&(c=a.stateNode=hg(a.type,a.pendingProps,xe.current),mn=a,cr=!0,g=Dt,Qi(a.type)?(Qh=g,Dt=hr(c.firstChild)):Dt=g),gn(r,a,a.pendingProps.children,o),Gu(r,a),r===null&&(a.flags|=4194304),a.child;case 5:return r===null&&ct&&((g=c=Dt)&&(c=Mx(c,a.type,a.pendingProps,cr),c!==null?(a.stateNode=c,mn=a,Dt=hr(c.firstChild),cr=!1,g=!0):g=!1),g||Li(a)),Be(a),g=a.type,y=a.pendingProps,k=r!==null?r.memoizedProps:null,c=y.children,Gh(g,y)?c=null:k!==null&&Gh(g,k)&&(a.flags|=32),a.memoizedState!==null&&(g=Yf(r,a,V9,null,null,o),as._currentValue=g),Gu(r,a),gn(r,a,c,o),a.child;case 6:return r===null&&ct&&((r=o=Dt)&&(o=zx(o,a.pendingProps,cr),o!==null?(a.stateNode=o,mn=a,Dt=null,r=!0):r=!1),r||Li(a)),null;case 13:return t2(r,a,o);case 4:return ye(a,a.stateNode.containerInfo),c=a.pendingProps,r===null?a.child=Oa(a,null,c,o):gn(r,a,c,o),a.child;case 11:return $4(r,a,a.type,a.pendingProps,o);case 7:return gn(r,a,a.pendingProps,o),a.child;case 8:return gn(r,a,a.pendingProps.children,o),a.child;case 12:return gn(r,a,a.pendingProps.children,o),a.child;case 10:return c=a.pendingProps,Hi(a,a.type,c.value),gn(r,a,c.children,o),a.child;case 9:return g=a.type._context,c=a.pendingProps.children,za(a),g=pn(g),c=c(g),a.flags|=1,gn(r,a,c,o),a.child;case 14:return X4(r,a,a.type,a.pendingProps,o);case 15:return P4(r,a,a.type,a.pendingProps,o);case 19:return r2(r,a,o);case 31:return K9(r,a,o);case 22:return Z4(r,a,o,a.pendingProps);case 24:return za(a),c=pn(Pt),r===null?(g=Rf(),g===null&&(g=Ct,y=_f(),g.pooledCache=y,y.refCount++,y!==null&&(g.pooledCacheLanes|=o),g=y),a.memoizedState={parent:c,cache:g},Lf(a),Hi(a,Pt,g)):((r.lanes&o)!==0&&(Hf(r,a),qo(a,null,null,o),jo()),g=r.memoizedState,y=a.memoizedState,g.parent!==c?(g={parent:c,cache:c},a.memoizedState=g,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=g),Hi(a,Pt,c)):(c=y.cache,Hi(a,Pt,c),c!==g.cache&&Df(a,[Pt],o,!0))),gn(r,a,a.pendingProps.children,o),a.child;case 29:throw a.pendingProps}throw Error(i(156,a.tag))}function oi(r){r.flags|=4}function vh(r,a,o,c,g){if((a=(r.mode&32)!==0)&&(a=!1),a){if(r.flags|=16777216,(g&335544128)===g)if(r.stateNode.complete)r.flags|=8192;else if(D2())r.flags|=8192;else throw _a=Nu,Bf}else r.flags&=-16777217}function a2(r,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)r.flags&=-16777217;else if(r.flags|=16777216,!bg(a))if(D2())r.flags|=8192;else throw _a=Nu,Bf}function Xu(r,a){a!==null&&(r.flags|=4),r.flags&16384&&(a=r.tag!==22?Yn():536870912,r.lanes|=a,Dl|=a)}function Go(r,a){if(!ct)switch(r.tailMode){case"hidden":a=r.tail;for(var o=null;a!==null;)a.alternate!==null&&(o=a),a=a.sibling;o===null?r.tail=null:o.sibling=null;break;case"collapsed":o=r.tail;for(var c=null;o!==null;)o.alternate!==null&&(c=o),o=o.sibling;c===null?a||r.tail===null?r.tail=null:r.tail.sibling=null:c.sibling=null}}function _t(r){var a=r.alternate!==null&&r.alternate.child===r.child,o=0,c=0;if(a)for(var g=r.child;g!==null;)o|=g.lanes|g.childLanes,c|=g.subtreeFlags&65011712,c|=g.flags&65011712,g.return=r,g=g.sibling;else for(g=r.child;g!==null;)o|=g.lanes|g.childLanes,c|=g.subtreeFlags,c|=g.flags,g.return=r,g=g.sibling;return r.subtreeFlags|=c,r.childLanes=o,a}function W9(r,a,o){var c=a.pendingProps;switch(Cf(a),a.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return _t(a),null;case 1:return _t(a),null;case 3:return o=a.stateNode,c=null,r!==null&&(c=r.memoizedState.cache),a.memoizedState.cache!==c&&(a.flags|=2048),ri(Pt),ke(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(r===null||r.child===null)&&(vl(a)?oi(a):r===null||r.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,Mf())),_t(a),null;case 26:var g=a.type,y=a.memoizedState;return r===null?(oi(a),y!==null?(_t(a),a2(a,y)):(_t(a),vh(a,g,null,c,o))):y?y!==r.memoizedState?(oi(a),_t(a),a2(a,y)):(_t(a),a.flags&=-16777217):(r=r.memoizedProps,r!==c&&oi(a),_t(a),vh(a,g,r,c,o)),null;case 27:if(Ue(a),o=xe.current,g=a.type,r!==null&&a.stateNode!=null)r.memoizedProps!==c&&oi(a);else{if(!c){if(a.stateNode===null)throw Error(i(166));return _t(a),null}r=se.current,vl(a)?jp(a):(r=hg(g,c,o),a.stateNode=r,oi(a))}return _t(a),null;case 5:if(Ue(a),g=a.type,r!==null&&a.stateNode!=null)r.memoizedProps!==c&&oi(a);else{if(!c){if(a.stateNode===null)throw Error(i(166));return _t(a),null}if(y=se.current,vl(a))jp(a);else{var k=s0(xe.current);switch(y){case 1:y=k.createElementNS("http://www.w3.org/2000/svg",g);break;case 2:y=k.createElementNS("http://www.w3.org/1998/Math/MathML",g);break;default:switch(g){case"svg":y=k.createElementNS("http://www.w3.org/2000/svg",g);break;case"math":y=k.createElementNS("http://www.w3.org/1998/Math/MathML",g);break;case"script":y=k.createElement("div"),y.innerHTML="<script><\/script>",y=y.removeChild(y.firstChild);break;case"select":y=typeof c.is=="string"?k.createElement("select",{is:c.is}):k.createElement("select"),c.multiple?y.multiple=!0:c.size&&(y.size=c.size);break;default:y=typeof c.is=="string"?k.createElement(g,{is:c.is}):k.createElement(g)}}y[on]=a,y[xn]=c;e:for(k=a.child;k!==null;){if(k.tag===5||k.tag===6)y.appendChild(k.stateNode);else if(k.tag!==4&&k.tag!==27&&k.child!==null){k.child.return=k,k=k.child;continue}if(k===a)break e;for(;k.sibling===null;){if(k.return===null||k.return===a)break e;k=k.return}k.sibling.return=k.return,k=k.sibling}a.stateNode=y;e:switch(yn(y,g,c),g){case"button":case"input":case"select":case"textarea":c=!!c.autoFocus;break e;case"img":c=!0;break e;default:c=!1}c&&oi(a)}}return _t(a),vh(a,a.type,r===null?null:r.memoizedProps,a.pendingProps,o),null;case 6:if(r&&a.stateNode!=null)r.memoizedProps!==c&&oi(a);else{if(typeof c!="string"&&a.stateNode===null)throw Error(i(166));if(r=xe.current,vl(a)){if(r=a.stateNode,o=a.memoizedProps,c=null,g=mn,g!==null)switch(g.tag){case 27:case 5:c=g.memoizedProps}r[on]=a,r=!!(r.nodeValue===o||c!==null&&c.suppressHydrationWarning===!0||tg(r.nodeValue,o)),r||Li(a,!0)}else r=s0(r).createTextNode(c),r[on]=a,a.stateNode=r}return _t(a),null;case 31:if(o=a.memoizedState,r===null||r.memoizedState!==null){if(c=vl(a),o!==null){if(r===null){if(!c)throw Error(i(318));if(r=a.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(i(557));r[on]=a}else Ta(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;_t(a),r=!1}else o=Mf(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=o),r=!0;if(!r)return a.flags&256?(Pn(a),a):(Pn(a),null);if((a.flags&128)!==0)throw Error(i(558))}return _t(a),null;case 13:if(c=a.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(g=vl(a),c!==null&&c.dehydrated!==null){if(r===null){if(!g)throw Error(i(318));if(g=a.memoizedState,g=g!==null?g.dehydrated:null,!g)throw Error(i(317));g[on]=a}else Ta(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;_t(a),g=!1}else g=Mf(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=g),g=!0;if(!g)return a.flags&256?(Pn(a),a):(Pn(a),null)}return Pn(a),(a.flags&128)!==0?(a.lanes=o,a):(o=c!==null,r=r!==null&&r.memoizedState!==null,o&&(c=a.child,g=null,c.alternate!==null&&c.alternate.memoizedState!==null&&c.alternate.memoizedState.cachePool!==null&&(g=c.alternate.memoizedState.cachePool.pool),y=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(y=c.memoizedState.cachePool.pool),y!==g&&(c.flags|=2048)),o!==r&&o&&(a.child.flags|=8192),Xu(a,a.updateQueue),_t(a),null);case 4:return ke(),r===null&&Ih(a.stateNode.containerInfo),_t(a),null;case 10:return ri(a.type),_t(a),null;case 19:if(Z(Gt),c=a.memoizedState,c===null)return _t(a),null;if(g=(a.flags&128)!==0,y=c.rendering,y===null)if(g)Go(c,!1);else{if(Vt!==0||r!==null&&(r.flags&128)!==0)for(r=a.child;r!==null;){if(y=Ru(r),y!==null){for(a.flags|=128,Go(c,!1),r=y.updateQueue,a.updateQueue=r,Xu(a,r),a.subtreeFlags=0,r=o,o=a.child;o!==null;)Op(o,r),o=o.sibling;return _(Gt,Gt.current&1|2),ct&&ti(a,c.treeForkCount),a.child}r=r.sibling}c.tail!==null&&zt()>Ju&&(a.flags|=128,g=!0,Go(c,!1),a.lanes=4194304)}else{if(!g)if(r=Ru(y),r!==null){if(a.flags|=128,g=!0,r=r.updateQueue,a.updateQueue=r,Xu(a,r),Go(c,!0),c.tail===null&&c.tailMode==="hidden"&&!y.alternate&&!ct)return _t(a),null}else 2*zt()-c.renderingStartTime>Ju&&o!==536870912&&(a.flags|=128,g=!0,Go(c,!1),a.lanes=4194304);c.isBackwards?(y.sibling=a.child,a.child=y):(r=c.last,r!==null?r.sibling=y:a.child=y,c.last=y)}return c.tail!==null?(r=c.tail,c.rendering=r,c.tail=r.sibling,c.renderingStartTime=zt(),r.sibling=null,o=Gt.current,_(Gt,g?o&1|2:o&1),ct&&ti(a,c.treeForkCount),r):(_t(a),null);case 22:case 23:return Pn(a),Uf(),c=a.memoizedState!==null,r!==null?r.memoizedState!==null!==c&&(a.flags|=8192):c&&(a.flags|=8192),c?(o&536870912)!==0&&(a.flags&128)===0&&(_t(a),a.subtreeFlags&6&&(a.flags|=8192)):_t(a),o=a.updateQueue,o!==null&&Xu(a,o.retryQueue),o=null,r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),c=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),c!==o&&(a.flags|=2048),r!==null&&Z(Na),null;case 24:return o=null,r!==null&&(o=r.memoizedState.cache),a.memoizedState.cache!==o&&(a.flags|=2048),ri(Pt),_t(a),null;case 25:return null;case 30:return null}throw Error(i(156,a.tag))}function ex(r,a){switch(Cf(a),a.tag){case 1:return r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 3:return ri(Pt),ke(),r=a.flags,(r&65536)!==0&&(r&128)===0?(a.flags=r&-65537|128,a):null;case 26:case 27:case 5:return Ue(a),null;case 31:if(a.memoizedState!==null){if(Pn(a),a.alternate===null)throw Error(i(340));Ta()}return r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 13:if(Pn(a),r=a.memoizedState,r!==null&&r.dehydrated!==null){if(a.alternate===null)throw Error(i(340));Ta()}return r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 19:return Z(Gt),null;case 4:return ke(),null;case 10:return ri(a.type),null;case 22:case 23:return Pn(a),Uf(),r!==null&&Z(Na),r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 24:return ri(Pt),null;case 25:return null;default:return null}}function l2(r,a){switch(Cf(a),a.tag){case 3:ri(Pt),ke();break;case 26:case 27:case 5:Ue(a);break;case 4:ke();break;case 31:a.memoizedState!==null&&Pn(a);break;case 13:Pn(a);break;case 19:Z(Gt);break;case 10:ri(a.type);break;case 22:case 23:Pn(a),Uf(),r!==null&&Z(Na);break;case 24:ri(Pt)}}function $o(r,a){try{var o=a.updateQueue,c=o!==null?o.lastEffect:null;if(c!==null){var g=c.next;o=g;do{if((o.tag&r)===r){c=void 0;var y=o.create,k=o.inst;c=y(),k.destroy=c}o=o.next}while(o!==g)}}catch(O){xt(a,a.return,O)}}function Vi(r,a,o){try{var c=a.updateQueue,g=c!==null?c.lastEffect:null;if(g!==null){var y=g.next;c=y;do{if((c.tag&r)===r){var k=c.inst,O=k.destroy;if(O!==void 0){k.destroy=void 0,g=a;var Q=o,le=O;try{le()}catch(he){xt(g,Q,he)}}}c=c.next}while(c!==y)}}catch(he){xt(a,a.return,he)}}function o2(r){var a=r.updateQueue;if(a!==null){var o=r.stateNode;try{Kp(a,o)}catch(c){xt(r,r.return,c)}}}function s2(r,a,o){o.props=Ba(r.type,r.memoizedProps),o.state=r.memoizedState;try{o.componentWillUnmount()}catch(c){xt(r,a,c)}}function Xo(r,a){try{var o=r.ref;if(o!==null){switch(r.tag){case 26:case 27:case 5:var c=r.stateNode;break;case 30:c=r.stateNode;break;default:c=r.stateNode}typeof o=="function"?r.refCleanup=o(c):o.current=c}}catch(g){xt(r,a,g)}}function Br(r,a){var o=r.ref,c=r.refCleanup;if(o!==null)if(typeof c=="function")try{c()}catch(g){xt(r,a,g)}finally{r.refCleanup=null,r=r.alternate,r!=null&&(r.refCleanup=null)}else if(typeof o=="function")try{o(null)}catch(g){xt(r,a,g)}else o.current=null}function u2(r){var a=r.type,o=r.memoizedProps,c=r.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":o.autoFocus&&c.focus();break e;case"img":o.src?c.src=o.src:o.srcSet&&(c.srcset=o.srcSet)}}catch(g){xt(r,r.return,g)}}function xh(r,a,o){try{var c=r.stateNode;Sx(c,r.type,o,a),c[xn]=a}catch(g){xt(r,r.return,g)}}function c2(r){return r.tag===5||r.tag===3||r.tag===26||r.tag===27&&Qi(r.type)||r.tag===4}function bh(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||c2(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.tag===27&&Qi(r.type)||r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function wh(r,a,o){var c=r.tag;if(c===5||c===6)r=r.stateNode,a?(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o).insertBefore(r,a):(a=o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,a.appendChild(r),o=o._reactRootContainer,o!=null||a.onclick!==null||(a.onclick=Jr));else if(c!==4&&(c===27&&Qi(r.type)&&(o=r.stateNode,a=null),r=r.child,r!==null))for(wh(r,a,o),r=r.sibling;r!==null;)wh(r,a,o),r=r.sibling}function Pu(r,a,o){var c=r.tag;if(c===5||c===6)r=r.stateNode,a?o.insertBefore(r,a):o.appendChild(r);else if(c!==4&&(c===27&&Qi(r.type)&&(o=r.stateNode),r=r.child,r!==null))for(Pu(r,a,o),r=r.sibling;r!==null;)Pu(r,a,o),r=r.sibling}function f2(r){var a=r.stateNode,o=r.memoizedProps;try{for(var c=r.type,g=a.attributes;g.length;)a.removeAttributeNode(g[0]);yn(a,c,o),a[on]=r,a[xn]=o}catch(y){xt(r,r.return,y)}}var si=!1,Kt=!1,Sh=!1,h2=typeof WeakSet=="function"?WeakSet:Set,hn=null;function tx(r,a){if(r=r.containerInfo,Vh=p0,r=Ep(r),pf(r)){if("selectionStart"in r)var o={start:r.selectionStart,end:r.selectionEnd};else e:{o=(o=r.ownerDocument)&&o.defaultView||window;var c=o.getSelection&&o.getSelection();if(c&&c.rangeCount!==0){o=c.anchorNode;var g=c.anchorOffset,y=c.focusNode;c=c.focusOffset;try{o.nodeType,y.nodeType}catch{o=null;break e}var k=0,O=-1,Q=-1,le=0,he=0,ge=r,oe=null;t:for(;;){for(var ue;ge!==o||g!==0&&ge.nodeType!==3||(O=k+g),ge!==y||c!==0&&ge.nodeType!==3||(Q=k+c),ge.nodeType===3&&(k+=ge.nodeValue.length),(ue=ge.firstChild)!==null;)oe=ge,ge=ue;for(;;){if(ge===r)break t;if(oe===o&&++le===g&&(O=k),oe===y&&++he===c&&(Q=k),(ue=ge.nextSibling)!==null)break;ge=oe,oe=ge.parentNode}ge=ue}o=O===-1||Q===-1?null:{start:O,end:Q}}else o=null}o=o||{start:0,end:0}}else o=null;for(Yh={focusedElem:r,selectionRange:o},p0=!1,hn=a;hn!==null;)if(a=hn,r=a.child,(a.subtreeFlags&1028)!==0&&r!==null)r.return=a,hn=r;else for(;hn!==null;){switch(a=hn,y=a.alternate,r=a.flags,a.tag){case 0:if((r&4)!==0&&(r=a.updateQueue,r=r!==null?r.events:null,r!==null))for(o=0;o<r.length;o++)g=r[o],g.ref.impl=g.nextImpl;break;case 11:case 15:break;case 1:if((r&1024)!==0&&y!==null){r=void 0,o=a,g=y.memoizedProps,y=y.memoizedState,c=o.stateNode;try{var De=Ba(o.type,g);r=c.getSnapshotBeforeUpdate(De,y),c.__reactInternalSnapshotBeforeUpdate=r}catch(Ye){xt(o,o.return,Ye)}}break;case 3:if((r&1024)!==0){if(r=a.stateNode.containerInfo,o=r.nodeType,o===9)Xh(r);else if(o===1)switch(r.nodeName){case"HEAD":case"HTML":case"BODY":Xh(r);break;default:r.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((r&1024)!==0)throw Error(i(163))}if(r=a.sibling,r!==null){r.return=a.return,hn=r;break}hn=a.return}}function d2(r,a,o){var c=o.flags;switch(o.tag){case 0:case 11:case 15:ci(r,o),c&4&&$o(5,o);break;case 1:if(ci(r,o),c&4)if(r=o.stateNode,a===null)try{r.componentDidMount()}catch(k){xt(o,o.return,k)}else{var g=Ba(o.type,a.memoizedProps);a=a.memoizedState;try{r.componentDidUpdate(g,a,r.__reactInternalSnapshotBeforeUpdate)}catch(k){xt(o,o.return,k)}}c&64&&o2(o),c&512&&Xo(o,o.return);break;case 3:if(ci(r,o),c&64&&(r=o.updateQueue,r!==null)){if(a=null,o.child!==null)switch(o.child.tag){case 27:case 5:a=o.child.stateNode;break;case 1:a=o.child.stateNode}try{Kp(r,a)}catch(k){xt(o,o.return,k)}}break;case 27:a===null&&c&4&&f2(o);case 26:case 5:ci(r,o),a===null&&c&4&&u2(o),c&512&&Xo(o,o.return);break;case 12:ci(r,o);break;case 31:ci(r,o),c&4&&g2(r,o);break;case 13:ci(r,o),c&4&&y2(r,o),c&64&&(r=o.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&(o=cx.bind(null,o),Nx(r,o))));break;case 22:if(c=o.memoizedState!==null||si,!c){a=a!==null&&a.memoizedState!==null||Kt,g=si;var y=Kt;si=c,(Kt=a)&&!y?fi(r,o,(o.subtreeFlags&8772)!==0):ci(r,o),si=g,Kt=y}break;case 30:break;default:ci(r,o)}}function m2(r){var a=r.alternate;a!==null&&(r.alternate=null,m2(a)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(a=r.stateNode,a!==null&&xo(a)),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}var Ot=null,Rn=!1;function ui(r,a,o){for(o=o.child;o!==null;)p2(r,a,o),o=o.sibling}function p2(r,a,o){if(jt&&typeof jt.onCommitFiberUnmount=="function")try{jt.onCommitFiberUnmount(rn,o)}catch{}switch(o.tag){case 26:Kt||Br(o,a),ui(r,a,o),o.memoizedState?o.memoizedState.count--:o.stateNode&&(o=o.stateNode,o.parentNode.removeChild(o));break;case 27:Kt||Br(o,a);var c=Ot,g=Rn;Qi(o.type)&&(Ot=o.stateNode,Rn=!1),ui(r,a,o),ns(o.stateNode),Ot=c,Rn=g;break;case 5:Kt||Br(o,a);case 6:if(c=Ot,g=Rn,Ot=null,ui(r,a,o),Ot=c,Rn=g,Ot!==null)if(Rn)try{(Ot.nodeType===9?Ot.body:Ot.nodeName==="HTML"?Ot.ownerDocument.body:Ot).removeChild(o.stateNode)}catch(y){xt(o,a,y)}else try{Ot.removeChild(o.stateNode)}catch(y){xt(o,a,y)}break;case 18:Ot!==null&&(Rn?(r=Ot,og(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,o.stateNode),ql(r)):og(Ot,o.stateNode));break;case 4:c=Ot,g=Rn,Ot=o.stateNode.containerInfo,Rn=!0,ui(r,a,o),Ot=c,Rn=g;break;case 0:case 11:case 14:case 15:Vi(2,o,a),Kt||Vi(4,o,a),ui(r,a,o);break;case 1:Kt||(Br(o,a),c=o.stateNode,typeof c.componentWillUnmount=="function"&&s2(o,a,c)),ui(r,a,o);break;case 21:ui(r,a,o);break;case 22:Kt=(c=Kt)||o.memoizedState!==null,ui(r,a,o),Kt=c;break;default:ui(r,a,o)}}function g2(r,a){if(a.memoizedState===null&&(r=a.alternate,r!==null&&(r=r.memoizedState,r!==null))){r=r.dehydrated;try{ql(r)}catch(o){xt(a,a.return,o)}}}function y2(r,a){if(a.memoizedState===null&&(r=a.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null))))try{ql(r)}catch(o){xt(a,a.return,o)}}function nx(r){switch(r.tag){case 31:case 13:case 19:var a=r.stateNode;return a===null&&(a=r.stateNode=new h2),a;case 22:return r=r.stateNode,a=r._retryCache,a===null&&(a=r._retryCache=new h2),a;default:throw Error(i(435,r.tag))}}function Zu(r,a){var o=nx(r);a.forEach(function(c){if(!o.has(c)){o.add(c);var g=fx.bind(null,r,c);c.then(g,g)}})}function Bn(r,a){var o=a.deletions;if(o!==null)for(var c=0;c<o.length;c++){var g=o[c],y=r,k=a,O=k;e:for(;O!==null;){switch(O.tag){case 27:if(Qi(O.type)){Ot=O.stateNode,Rn=!1;break e}break;case 5:Ot=O.stateNode,Rn=!1;break e;case 3:case 4:Ot=O.stateNode.containerInfo,Rn=!0;break e}O=O.return}if(Ot===null)throw Error(i(160));p2(y,k,g),Ot=null,Rn=!1,y=g.alternate,y!==null&&(y.return=null),g.return=null}if(a.subtreeFlags&13886)for(a=a.child;a!==null;)v2(a,r),a=a.sibling}var br=null;function v2(r,a){var o=r.alternate,c=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:Bn(a,r),Ln(r),c&4&&(Vi(3,r,r.return),$o(3,r),Vi(5,r,r.return));break;case 1:Bn(a,r),Ln(r),c&512&&(Kt||o===null||Br(o,o.return)),c&64&&si&&(r=r.updateQueue,r!==null&&(c=r.callbacks,c!==null&&(o=r.shared.hiddenCallbacks,r.shared.hiddenCallbacks=o===null?c:o.concat(c))));break;case 26:var g=br;if(Bn(a,r),Ln(r),c&512&&(Kt||o===null||Br(o,o.return)),c&4){var y=o!==null?o.memoizedState:null;if(c=r.memoizedState,o===null)if(c===null)if(r.stateNode===null){e:{c=r.type,o=r.memoizedProps,g=g.ownerDocument||g;t:switch(c){case"title":y=g.getElementsByTagName("title")[0],(!y||y[xa]||y[on]||y.namespaceURI==="http://www.w3.org/2000/svg"||y.hasAttribute("itemprop"))&&(y=g.createElement(c),g.head.insertBefore(y,g.querySelector("head > title"))),yn(y,c,o),y[on]=r,Xt(y),c=y;break e;case"link":var k=vg("link","href",g).get(c+(o.href||""));if(k){for(var O=0;O<k.length;O++)if(y=k[O],y.getAttribute("href")===(o.href==null||o.href===""?null:o.href)&&y.getAttribute("rel")===(o.rel==null?null:o.rel)&&y.getAttribute("title")===(o.title==null?null:o.title)&&y.getAttribute("crossorigin")===(o.crossOrigin==null?null:o.crossOrigin)){k.splice(O,1);break t}}y=g.createElement(c),yn(y,c,o),g.head.appendChild(y);break;case"meta":if(k=vg("meta","content",g).get(c+(o.content||""))){for(O=0;O<k.length;O++)if(y=k[O],y.getAttribute("content")===(o.content==null?null:""+o.content)&&y.getAttribute("name")===(o.name==null?null:o.name)&&y.getAttribute("property")===(o.property==null?null:o.property)&&y.getAttribute("http-equiv")===(o.httpEquiv==null?null:o.httpEquiv)&&y.getAttribute("charset")===(o.charSet==null?null:o.charSet)){k.splice(O,1);break t}}y=g.createElement(c),yn(y,c,o),g.head.appendChild(y);break;default:throw Error(i(468,c))}y[on]=r,Xt(y),c=y}r.stateNode=c}else xg(g,r.type,r.stateNode);else r.stateNode=yg(g,c,r.memoizedProps);else y!==c?(y===null?o.stateNode!==null&&(o=o.stateNode,o.parentNode.removeChild(o)):y.count--,c===null?xg(g,r.type,r.stateNode):yg(g,c,r.memoizedProps)):c===null&&r.stateNode!==null&&xh(r,r.memoizedProps,o.memoizedProps)}break;case 27:Bn(a,r),Ln(r),c&512&&(Kt||o===null||Br(o,o.return)),o!==null&&c&4&&xh(r,r.memoizedProps,o.memoizedProps);break;case 5:if(Bn(a,r),Ln(r),c&512&&(Kt||o===null||Br(o,o.return)),r.flags&32){g=r.stateNode;try{sl(g,"")}catch(De){xt(r,r.return,De)}}c&4&&r.stateNode!=null&&(g=r.memoizedProps,xh(r,g,o!==null?o.memoizedProps:g)),c&1024&&(Sh=!0);break;case 6:if(Bn(a,r),Ln(r),c&4){if(r.stateNode===null)throw Error(i(162));c=r.memoizedProps,o=r.stateNode;try{o.nodeValue=c}catch(De){xt(r,r.return,De)}}break;case 3:if(f0=null,g=br,br=u0(a.containerInfo),Bn(a,r),br=g,Ln(r),c&4&&o!==null&&o.memoizedState.isDehydrated)try{ql(a.containerInfo)}catch(De){xt(r,r.return,De)}Sh&&(Sh=!1,x2(r));break;case 4:c=br,br=u0(r.stateNode.containerInfo),Bn(a,r),Ln(r),br=c;break;case 12:Bn(a,r),Ln(r);break;case 31:Bn(a,r),Ln(r),c&4&&(c=r.updateQueue,c!==null&&(r.updateQueue=null,Zu(r,c)));break;case 13:Bn(a,r),Ln(r),r.child.flags&8192&&r.memoizedState!==null!=(o!==null&&o.memoizedState!==null)&&(Ku=zt()),c&4&&(c=r.updateQueue,c!==null&&(r.updateQueue=null,Zu(r,c)));break;case 22:g=r.memoizedState!==null;var Q=o!==null&&o.memoizedState!==null,le=si,he=Kt;if(si=le||g,Kt=he||Q,Bn(a,r),Kt=he,si=le,Ln(r),c&8192)e:for(a=r.stateNode,a._visibility=g?a._visibility&-2:a._visibility|1,g&&(o===null||Q||si||Kt||La(r)),o=null,a=r;;){if(a.tag===5||a.tag===26){if(o===null){Q=o=a;try{if(y=Q.stateNode,g)k=y.style,typeof k.setProperty=="function"?k.setProperty("display","none","important"):k.display="none";else{O=Q.stateNode;var ge=Q.memoizedProps.style,oe=ge!=null&&ge.hasOwnProperty("display")?ge.display:null;O.style.display=oe==null||typeof oe=="boolean"?"":(""+oe).trim()}}catch(De){xt(Q,Q.return,De)}}}else if(a.tag===6){if(o===null){Q=a;try{Q.stateNode.nodeValue=g?"":Q.memoizedProps}catch(De){xt(Q,Q.return,De)}}}else if(a.tag===18){if(o===null){Q=a;try{var ue=Q.stateNode;g?sg(ue,!0):sg(Q.stateNode,!1)}catch(De){xt(Q,Q.return,De)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===r)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===r)break e;for(;a.sibling===null;){if(a.return===null||a.return===r)break e;o===a&&(o=null),a=a.return}o===a&&(o=null),a.sibling.return=a.return,a=a.sibling}c&4&&(c=r.updateQueue,c!==null&&(o=c.retryQueue,o!==null&&(c.retryQueue=null,Zu(r,o))));break;case 19:Bn(a,r),Ln(r),c&4&&(c=r.updateQueue,c!==null&&(r.updateQueue=null,Zu(r,c)));break;case 30:break;case 21:break;default:Bn(a,r),Ln(r)}}function Ln(r){var a=r.flags;if(a&2){try{for(var o,c=r.return;c!==null;){if(c2(c)){o=c;break}c=c.return}if(o==null)throw Error(i(160));switch(o.tag){case 27:var g=o.stateNode,y=bh(r);Pu(r,y,g);break;case 5:var k=o.stateNode;o.flags&32&&(sl(k,""),o.flags&=-33);var O=bh(r);Pu(r,O,k);break;case 3:case 4:var Q=o.stateNode.containerInfo,le=bh(r);wh(r,le,Q);break;default:throw Error(i(161))}}catch(he){xt(r,r.return,he)}r.flags&=-3}a&4096&&(r.flags&=-4097)}function x2(r){if(r.subtreeFlags&1024)for(r=r.child;r!==null;){var a=r;x2(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),r=r.sibling}}function ci(r,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)d2(r,a.alternate,a),a=a.sibling}function La(r){for(r=r.child;r!==null;){var a=r;switch(a.tag){case 0:case 11:case 14:case 15:Vi(4,a,a.return),La(a);break;case 1:Br(a,a.return);var o=a.stateNode;typeof o.componentWillUnmount=="function"&&s2(a,a.return,o),La(a);break;case 27:ns(a.stateNode);case 26:case 5:Br(a,a.return),La(a);break;case 22:a.memoizedState===null&&La(a);break;case 30:La(a);break;default:La(a)}r=r.sibling}}function fi(r,a,o){for(o=o&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var c=a.alternate,g=r,y=a,k=y.flags;switch(y.tag){case 0:case 11:case 15:fi(g,y,o),$o(4,y);break;case 1:if(fi(g,y,o),c=y,g=c.stateNode,typeof g.componentDidMount=="function")try{g.componentDidMount()}catch(le){xt(c,c.return,le)}if(c=y,g=c.updateQueue,g!==null){var O=c.stateNode;try{var Q=g.shared.hiddenCallbacks;if(Q!==null)for(g.shared.hiddenCallbacks=null,g=0;g<Q.length;g++)Qp(Q[g],O)}catch(le){xt(c,c.return,le)}}o&&k&64&&o2(y),Xo(y,y.return);break;case 27:f2(y);case 26:case 5:fi(g,y,o),o&&c===null&&k&4&&u2(y),Xo(y,y.return);break;case 12:fi(g,y,o);break;case 31:fi(g,y,o),o&&k&4&&g2(g,y);break;case 13:fi(g,y,o),o&&k&4&&y2(g,y);break;case 22:y.memoizedState===null&&fi(g,y,o),Xo(y,y.return);break;case 30:break;default:fi(g,y,o)}a=a.sibling}}function kh(r,a){var o=null;r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),r=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(r=a.memoizedState.cachePool.pool),r!==o&&(r!=null&&r.refCount++,o!=null&&Oo(o))}function Eh(r,a){r=null,a.alternate!==null&&(r=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==r&&(a.refCount++,r!=null&&Oo(r))}function wr(r,a,o,c){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)b2(r,a,o,c),a=a.sibling}function b2(r,a,o,c){var g=a.flags;switch(a.tag){case 0:case 11:case 15:wr(r,a,o,c),g&2048&&$o(9,a);break;case 1:wr(r,a,o,c);break;case 3:wr(r,a,o,c),g&2048&&(r=null,a.alternate!==null&&(r=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==r&&(a.refCount++,r!=null&&Oo(r)));break;case 12:if(g&2048){wr(r,a,o,c),r=a.stateNode;try{var y=a.memoizedProps,k=y.id,O=y.onPostCommit;typeof O=="function"&&O(k,a.alternate===null?"mount":"update",r.passiveEffectDuration,-0)}catch(Q){xt(a,a.return,Q)}}else wr(r,a,o,c);break;case 31:wr(r,a,o,c);break;case 13:wr(r,a,o,c);break;case 23:break;case 22:y=a.stateNode,k=a.alternate,a.memoizedState!==null?y._visibility&2?wr(r,a,o,c):Po(r,a):y._visibility&2?wr(r,a,o,c):(y._visibility|=2,Ml(r,a,o,c,(a.subtreeFlags&10256)!==0||!1)),g&2048&&kh(k,a);break;case 24:wr(r,a,o,c),g&2048&&Eh(a.alternate,a);break;default:wr(r,a,o,c)}}function Ml(r,a,o,c,g){for(g=g&&((a.subtreeFlags&10256)!==0||!1),a=a.child;a!==null;){var y=r,k=a,O=o,Q=c,le=k.flags;switch(k.tag){case 0:case 11:case 15:Ml(y,k,O,Q,g),$o(8,k);break;case 23:break;case 22:var he=k.stateNode;k.memoizedState!==null?he._visibility&2?Ml(y,k,O,Q,g):Po(y,k):(he._visibility|=2,Ml(y,k,O,Q,g)),g&&le&2048&&kh(k.alternate,k);break;case 24:Ml(y,k,O,Q,g),g&&le&2048&&Eh(k.alternate,k);break;default:Ml(y,k,O,Q,g)}a=a.sibling}}function Po(r,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var o=r,c=a,g=c.flags;switch(c.tag){case 22:Po(o,c),g&2048&&kh(c.alternate,c);break;case 24:Po(o,c),g&2048&&Eh(c.alternate,c);break;default:Po(o,c)}a=a.sibling}}var Zo=8192;function zl(r,a,o){if(r.subtreeFlags&Zo)for(r=r.child;r!==null;)w2(r,a,o),r=r.sibling}function w2(r,a,o){switch(r.tag){case 26:zl(r,a,o),r.flags&Zo&&r.memoizedState!==null&&Fx(o,br,r.memoizedState,r.memoizedProps);break;case 5:zl(r,a,o);break;case 3:case 4:var c=br;br=u0(r.stateNode.containerInfo),zl(r,a,o),br=c;break;case 22:r.memoizedState===null&&(c=r.alternate,c!==null&&c.memoizedState!==null?(c=Zo,Zo=16777216,zl(r,a,o),Zo=c):zl(r,a,o));break;default:zl(r,a,o)}}function S2(r){var a=r.alternate;if(a!==null&&(r=a.child,r!==null)){a.child=null;do a=r.sibling,r.sibling=null,r=a;while(r!==null)}}function Qo(r){var a=r.deletions;if((r.flags&16)!==0){if(a!==null)for(var o=0;o<a.length;o++){var c=a[o];hn=c,E2(c,r)}S2(r)}if(r.subtreeFlags&10256)for(r=r.child;r!==null;)k2(r),r=r.sibling}function k2(r){switch(r.tag){case 0:case 11:case 15:Qo(r),r.flags&2048&&Vi(9,r,r.return);break;case 3:Qo(r);break;case 12:Qo(r);break;case 22:var a=r.stateNode;r.memoizedState!==null&&a._visibility&2&&(r.return===null||r.return.tag!==13)?(a._visibility&=-3,Qu(r)):Qo(r);break;default:Qo(r)}}function Qu(r){var a=r.deletions;if((r.flags&16)!==0){if(a!==null)for(var o=0;o<a.length;o++){var c=a[o];hn=c,E2(c,r)}S2(r)}for(r=r.child;r!==null;){switch(a=r,a.tag){case 0:case 11:case 15:Vi(8,a,a.return),Qu(a);break;case 22:o=a.stateNode,o._visibility&2&&(o._visibility&=-3,Qu(a));break;default:Qu(a)}r=r.sibling}}function E2(r,a){for(;hn!==null;){var o=hn;switch(o.tag){case 0:case 11:case 15:Vi(8,o,a);break;case 23:case 22:if(o.memoizedState!==null&&o.memoizedState.cachePool!==null){var c=o.memoizedState.cachePool.pool;c!=null&&c.refCount++}break;case 24:Oo(o.memoizedState.cache)}if(c=o.child,c!==null)c.return=o,hn=c;else e:for(o=r;hn!==null;){c=hn;var g=c.sibling,y=c.return;if(m2(c),c===o){hn=null;break e}if(g!==null){g.return=y,hn=g;break e}hn=y}}}var rx={getCacheForType:function(r){var a=pn(Pt),o=a.data.get(r);return o===void 0&&(o=r(),a.data.set(r,o)),o},cacheSignal:function(){return pn(Pt).controller.signal}},ix=typeof WeakMap=="function"?WeakMap:Map,mt=0,Ct=null,it=null,ot=0,vt=0,Zn=null,Yi=!1,Nl=!1,Ah=!1,hi=0,Vt=0,Gi=0,Ha=0,Ch=0,Qn=0,Dl=0,Ko=null,Hn=null,Th=!1,Ku=0,A2=0,Ju=1/0,Wu=null,$i=null,sn=0,Xi=null,_l=null,di=0,Mh=0,zh=null,C2=null,Jo=0,Nh=null;function Kn(){return(mt&2)!==0&&ot!==0?ot&-ot:L.T!==null?Lh():ru()}function T2(){if(Qn===0)if((ot&536870912)===0||ct){var r=an;an<<=1,(an&3932160)===0&&(an=262144),Qn=r}else Qn=536870912;return r=Xn.current,r!==null&&(r.flags|=32),Qn}function jn(r,a,o){(r===Ct&&(vt===2||vt===9)||r.cancelPendingCommit!==null)&&(Ol(r,0),Pi(r,ot,Qn,!1)),Dr(r,o),((mt&2)===0||r!==Ct)&&(r===Ct&&((mt&2)===0&&(Ha|=o),Vt===4&&Pi(r,ot,Qn,!1)),Lr(r))}function M2(r,a,o){if((mt&6)!==0)throw Error(i(327));var c=!o&&(a&127)===0&&(a&r.expiredLanes)===0||Nr(r,a),g=c?ox(r,a):_h(r,a,!0),y=c;do{if(g===0){Nl&&!c&&Pi(r,a,0,!1);break}else{if(o=r.current.alternate,y&&!ax(o)){g=_h(r,a,!1),y=!1;continue}if(g===2){if(y=a,r.errorRecoveryDisabledLanes&y)var k=0;else k=r.pendingLanes&-536870913,k=k!==0?k:k&536870912?536870912:0;if(k!==0){a=k;e:{var O=r;g=Ko;var Q=O.current.memoizedState.isDehydrated;if(Q&&(Ol(O,k).flags|=256),k=_h(O,k,!1),k!==2){if(Ah&&!Q){O.errorRecoveryDisabledLanes|=y,Ha|=y,g=4;break e}y=Hn,Hn=g,y!==null&&(Hn===null?Hn=y:Hn.push.apply(Hn,y))}g=k}if(y=!1,g!==2)continue}}if(g===1){Ol(r,0),Pi(r,a,0,!0);break}e:{switch(c=r,y=g,y){case 0:case 1:throw Error(i(345));case 4:if((a&4194048)!==a)break;case 6:Pi(c,a,Qn,!Yi);break e;case 2:Hn=null;break;case 3:case 5:break;default:throw Error(i(329))}if((a&62914560)===a&&(g=Ku+300-zt(),10<g)){if(Pi(c,a,Qn,!Yi),zr(c,0,!0)!==0)break e;di=a,c.timeoutHandle=ag(z2.bind(null,c,o,Hn,Wu,Th,a,Qn,Ha,Dl,Yi,y,"Throttled",-0,0),g);break e}z2(c,o,Hn,Wu,Th,a,Qn,Ha,Dl,Yi,y,null,-0,0)}}break}while(!0);Lr(r)}function z2(r,a,o,c,g,y,k,O,Q,le,he,ge,oe,ue){if(r.timeoutHandle=-1,ge=a.subtreeFlags,ge&8192||(ge&16785408)===16785408){ge={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Jr},w2(a,y,ge);var De=(y&62914560)===y?Ku-zt():(y&4194048)===y?A2-zt():0;if(De=Vx(ge,De),De!==null){di=y,r.cancelPendingCommit=De(H2.bind(null,r,a,y,o,c,g,k,O,Q,he,ge,null,oe,ue)),Pi(r,y,k,!le);return}}H2(r,a,y,o,c,g,k,O,Q)}function ax(r){for(var a=r;;){var o=a.tag;if((o===0||o===11||o===15)&&a.flags&16384&&(o=a.updateQueue,o!==null&&(o=o.stores,o!==null)))for(var c=0;c<o.length;c++){var g=o[c],y=g.getSnapshot;g=g.value;try{if(!Gn(y(),g))return!1}catch{return!1}}if(o=a.child,a.subtreeFlags&16384&&o!==null)o.return=a,a=o;else{if(a===r)break;for(;a.sibling===null;){if(a.return===null||a.return===r)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function Pi(r,a,o,c){a&=~Ch,a&=~Ha,r.suspendedLanes|=a,r.pingedLanes&=~a,c&&(r.warmLanes|=a),c=r.expirationTimes;for(var g=a;0<g;){var y=31-Le(g),k=1<<y;c[y]=-1,g&=~k}o!==0&&ln(r,o,a)}function e0(){return(mt&6)===0?(Wo(0),!1):!0}function Dh(){if(it!==null){if(vt===0)var r=it.return;else r=it,ni=Ma=null,Xf(r),kl=null,Bo=0,r=it;for(;r!==null;)l2(r.alternate,r),r=r.return;it=null}}function Ol(r,a){var o=r.timeoutHandle;o!==-1&&(r.timeoutHandle=-1,Ax(o)),o=r.cancelPendingCommit,o!==null&&(r.cancelPendingCommit=null,o()),di=0,Dh(),Ct=r,it=o=ei(r.current,null),ot=a,vt=0,Zn=null,Yi=!1,Nl=Nr(r,a),Ah=!1,Dl=Qn=Ch=Ha=Gi=Vt=0,Hn=Ko=null,Th=!1,(a&8)!==0&&(a|=a&32);var c=r.entangledLanes;if(c!==0)for(r=r.entanglements,c&=a;0<c;){var g=31-Le(c),y=1<<g;a|=r[g],c&=~y}return hi=a,wu(),o}function N2(r,a){Ke=null,L.H=Vo,a===Sl||a===zu?(a=$p(),vt=3):a===Bf?(a=$p(),vt=4):vt=a===uh?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,Zn=a,it===null&&(Vt=1,Vu(r,or(a,r.current)))}function D2(){var r=Xn.current;return r===null?!0:(ot&4194048)===ot?fr===null:(ot&62914560)===ot||(ot&536870912)!==0?r===fr:!1}function _2(){var r=L.H;return L.H=Vo,r===null?Vo:r}function O2(){var r=L.A;return L.A=rx,r}function t0(){Vt=4,Yi||(ot&4194048)!==ot&&Xn.current!==null||(Nl=!0),(Gi&134217727)===0&&(Ha&134217727)===0||Ct===null||Pi(Ct,ot,Qn,!1)}function _h(r,a,o){var c=mt;mt|=2;var g=_2(),y=O2();(Ct!==r||ot!==a)&&(Wu=null,Ol(r,a)),a=!1;var k=Vt;e:do try{if(vt!==0&&it!==null){var O=it,Q=Zn;switch(vt){case 8:Dh(),k=6;break e;case 3:case 2:case 9:case 6:Xn.current===null&&(a=!0);var le=vt;if(vt=0,Zn=null,Rl(r,O,Q,le),o&&Nl){k=0;break e}break;default:le=vt,vt=0,Zn=null,Rl(r,O,Q,le)}}lx(),k=Vt;break}catch(he){N2(r,he)}while(!0);return a&&r.shellSuspendCounter++,ni=Ma=null,mt=c,L.H=g,L.A=y,it===null&&(Ct=null,ot=0,wu()),k}function lx(){for(;it!==null;)R2(it)}function ox(r,a){var o=mt;mt|=2;var c=_2(),g=O2();Ct!==r||ot!==a?(Wu=null,Ju=zt()+500,Ol(r,a)):Nl=Nr(r,a);e:do try{if(vt!==0&&it!==null){a=it;var y=Zn;t:switch(vt){case 1:vt=0,Zn=null,Rl(r,a,y,1);break;case 2:case 9:if(Yp(y)){vt=0,Zn=null,B2(a);break}a=function(){vt!==2&&vt!==9||Ct!==r||(vt=7),Lr(r)},y.then(a,a);break e;case 3:vt=7;break e;case 4:vt=5;break e;case 7:Yp(y)?(vt=0,Zn=null,B2(a)):(vt=0,Zn=null,Rl(r,a,y,7));break;case 5:var k=null;switch(it.tag){case 26:k=it.memoizedState;case 5:case 27:var O=it;if(k?bg(k):O.stateNode.complete){vt=0,Zn=null;var Q=O.sibling;if(Q!==null)it=Q;else{var le=O.return;le!==null?(it=le,n0(le)):it=null}break t}}vt=0,Zn=null,Rl(r,a,y,5);break;case 6:vt=0,Zn=null,Rl(r,a,y,6);break;case 8:Dh(),Vt=6;break e;default:throw Error(i(462))}}sx();break}catch(he){N2(r,he)}while(!0);return ni=Ma=null,L.H=c,L.A=g,mt=o,it!==null?0:(Ct=null,ot=0,wu(),Vt)}function sx(){for(;it!==null&&!wt();)R2(it)}function R2(r){var a=i2(r.alternate,r,hi);r.memoizedProps=r.pendingProps,a===null?n0(r):it=a}function B2(r){var a=r,o=a.alternate;switch(a.tag){case 15:case 0:a=J4(o,a,a.pendingProps,a.type,void 0,ot);break;case 11:a=J4(o,a,a.pendingProps,a.type.render,a.ref,ot);break;case 5:Xf(a);default:l2(o,a),a=it=Op(a,hi),a=i2(o,a,hi)}r.memoizedProps=r.pendingProps,a===null?n0(r):it=a}function Rl(r,a,o,c){ni=Ma=null,Xf(a),kl=null,Bo=0;var g=a.return;try{if(Q9(r,g,a,o,ot)){Vt=1,Vu(r,or(o,r.current)),it=null;return}}catch(y){if(g!==null)throw it=g,y;Vt=1,Vu(r,or(o,r.current)),it=null;return}a.flags&32768?(ct||c===1?r=!0:Nl||(ot&536870912)!==0?r=!1:(Yi=r=!0,(c===2||c===9||c===3||c===6)&&(c=Xn.current,c!==null&&c.tag===13&&(c.flags|=16384))),L2(a,r)):n0(a)}function n0(r){var a=r;do{if((a.flags&32768)!==0){L2(a,Yi);return}r=a.return;var o=W9(a.alternate,a,hi);if(o!==null){it=o;return}if(a=a.sibling,a!==null){it=a;return}it=a=r}while(a!==null);Vt===0&&(Vt=5)}function L2(r,a){do{var o=ex(r.alternate,r);if(o!==null){o.flags&=32767,it=o;return}if(o=r.return,o!==null&&(o.flags|=32768,o.subtreeFlags=0,o.deletions=null),!a&&(r=r.sibling,r!==null)){it=r;return}it=r=o}while(r!==null);Vt=6,it=null}function H2(r,a,o,c,g,y,k,O,Q){r.cancelPendingCommit=null;do r0();while(sn!==0);if((mt&6)!==0)throw Error(i(327));if(a!==null){if(a===r.current)throw Error(i(177));if(y=a.lanes|a.childLanes,y|=bf,nl(r,o,y,k,O,Q),r===Ct&&(it=Ct=null,ot=0),_l=a,Xi=r,di=o,Mh=y,zh=g,C2=c,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(r.callbackNode=null,r.callbackPriority=0,hx(qe,function(){return F2(),null})):(r.callbackNode=null,r.callbackPriority=0),c=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||c){c=L.T,L.T=null,g=Y.p,Y.p=2,k=mt,mt|=4;try{tx(r,a,o)}finally{mt=k,Y.p=g,L.T=c}}sn=1,j2(),q2(),I2()}}function j2(){if(sn===1){sn=0;var r=Xi,a=_l,o=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||o){o=L.T,L.T=null;var c=Y.p;Y.p=2;var g=mt;mt|=4;try{v2(a,r);var y=Yh,k=Ep(r.containerInfo),O=y.focusedElem,Q=y.selectionRange;if(k!==O&&O&&O.ownerDocument&&kp(O.ownerDocument.documentElement,O)){if(Q!==null&&pf(O)){var le=Q.start,he=Q.end;if(he===void 0&&(he=le),"selectionStart"in O)O.selectionStart=le,O.selectionEnd=Math.min(he,O.value.length);else{var ge=O.ownerDocument||document,oe=ge&&ge.defaultView||window;if(oe.getSelection){var ue=oe.getSelection(),De=O.textContent.length,Ye=Math.min(Q.start,De),At=Q.end===void 0?Ye:Math.min(Q.end,De);!ue.extend&&Ye>At&&(k=At,At=Ye,Ye=k);var re=Sp(O,Ye),ee=Sp(O,At);if(re&&ee&&(ue.rangeCount!==1||ue.anchorNode!==re.node||ue.anchorOffset!==re.offset||ue.focusNode!==ee.node||ue.focusOffset!==ee.offset)){var ae=ge.createRange();ae.setStart(re.node,re.offset),ue.removeAllRanges(),Ye>At?(ue.addRange(ae),ue.extend(ee.node,ee.offset)):(ae.setEnd(ee.node,ee.offset),ue.addRange(ae))}}}}for(ge=[],ue=O;ue=ue.parentNode;)ue.nodeType===1&&ge.push({element:ue,left:ue.scrollLeft,top:ue.scrollTop});for(typeof O.focus=="function"&&O.focus(),O=0;O<ge.length;O++){var de=ge[O];de.element.scrollLeft=de.left,de.element.scrollTop=de.top}}p0=!!Vh,Yh=Vh=null}finally{mt=g,Y.p=c,L.T=o}}r.current=a,sn=2}}function q2(){if(sn===2){sn=0;var r=Xi,a=_l,o=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||o){o=L.T,L.T=null;var c=Y.p;Y.p=2;var g=mt;mt|=4;try{d2(r,a.alternate,a)}finally{mt=g,Y.p=c,L.T=o}}sn=3}}function I2(){if(sn===4||sn===3){sn=0,vn();var r=Xi,a=_l,o=di,c=C2;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?sn=5:(sn=0,_l=Xi=null,U2(r,r.pendingLanes));var g=r.pendingLanes;if(g===0&&($i=null),vo(o),a=a.stateNode,jt&&typeof jt.onCommitFiberRoot=="function")try{jt.onCommitFiberRoot(rn,a,void 0,(a.current.flags&128)===128)}catch{}if(c!==null){a=L.T,g=Y.p,Y.p=2,L.T=null;try{for(var y=r.onRecoverableError,k=0;k<c.length;k++){var O=c[k];y(O.value,{componentStack:O.stack})}}finally{L.T=a,Y.p=g}}(di&3)!==0&&r0(),Lr(r),g=r.pendingLanes,(o&261930)!==0&&(g&42)!==0?r===Nh?Jo++:(Jo=0,Nh=r):Jo=0,Wo(0)}}function U2(r,a){(r.pooledCacheLanes&=a)===0&&(a=r.pooledCache,a!=null&&(r.pooledCache=null,Oo(a)))}function r0(){return j2(),q2(),I2(),F2()}function F2(){if(sn!==5)return!1;var r=Xi,a=Mh;Mh=0;var o=vo(di),c=L.T,g=Y.p;try{Y.p=32>o?32:o,L.T=null,o=zh,zh=null;var y=Xi,k=di;if(sn=0,_l=Xi=null,di=0,(mt&6)!==0)throw Error(i(331));var O=mt;if(mt|=4,k2(y.current),b2(y,y.current,k,o),mt=O,Wo(0,!1),jt&&typeof jt.onPostCommitFiberRoot=="function")try{jt.onPostCommitFiberRoot(rn,y)}catch{}return!0}finally{Y.p=g,L.T=c,U2(r,a)}}function V2(r,a,o){a=or(o,a),a=sh(r.stateNode,a,2),r=Ii(r,a,2),r!==null&&(Dr(r,2),Lr(r))}function xt(r,a,o){if(r.tag===3)V2(r,r,o);else for(;a!==null;){if(a.tag===3){V2(a,r,o);break}else if(a.tag===1){var c=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&($i===null||!$i.has(c))){r=or(o,r),o=Y4(2),c=Ii(a,o,2),c!==null&&(G4(o,c,a,r),Dr(c,2),Lr(c));break}}a=a.return}}function Oh(r,a,o){var c=r.pingCache;if(c===null){c=r.pingCache=new ix;var g=new Set;c.set(a,g)}else g=c.get(a),g===void 0&&(g=new Set,c.set(a,g));g.has(o)||(Ah=!0,g.add(o),r=ux.bind(null,r,a,o),a.then(r,r))}function ux(r,a,o){var c=r.pingCache;c!==null&&c.delete(a),r.pingedLanes|=r.suspendedLanes&o,r.warmLanes&=~o,Ct===r&&(ot&o)===o&&(Vt===4||Vt===3&&(ot&62914560)===ot&&300>zt()-Ku?(mt&2)===0&&Ol(r,0):Ch|=o,Dl===ot&&(Dl=0)),Lr(r)}function Y2(r,a){a===0&&(a=Yn()),r=Aa(r,a),r!==null&&(Dr(r,a),Lr(r))}function cx(r){var a=r.memoizedState,o=0;a!==null&&(o=a.retryLane),Y2(r,o)}function fx(r,a){var o=0;switch(r.tag){case 31:case 13:var c=r.stateNode,g=r.memoizedState;g!==null&&(o=g.retryLane);break;case 19:c=r.stateNode;break;case 22:c=r.stateNode._retryCache;break;default:throw Error(i(314))}c!==null&&c.delete(a),Y2(r,o)}function hx(r,a){return ut(r,a)}var i0=null,Bl=null,Rh=!1,a0=!1,Bh=!1,Zi=0;function Lr(r){r!==Bl&&r.next===null&&(Bl===null?i0=Bl=r:Bl=Bl.next=r),a0=!0,Rh||(Rh=!0,mx())}function Wo(r,a){if(!Bh&&a0){Bh=!0;do for(var o=!1,c=i0;c!==null;){if(r!==0){var g=c.pendingLanes;if(g===0)var y=0;else{var k=c.suspendedLanes,O=c.pingedLanes;y=(1<<31-Le(42|r)+1)-1,y&=g&~(k&~O),y=y&201326741?y&201326741|1:y?y|2:0}y!==0&&(o=!0,P2(c,y))}else y=ot,y=zr(c,c===Ct?y:0,c.cancelPendingCommit!==null||c.timeoutHandle!==-1),(y&3)===0||Nr(c,y)||(o=!0,P2(c,y));c=c.next}while(o);Bh=!1}}function dx(){G2()}function G2(){a0=Rh=!1;var r=0;Zi!==0&&Ex()&&(r=Zi);for(var a=zt(),o=null,c=i0;c!==null;){var g=c.next,y=$2(c,a);y===0?(c.next=null,o===null?i0=g:o.next=g,g===null&&(Bl=o)):(o=c,(r!==0||(y&3)!==0)&&(a0=!0)),c=g}sn!==0&&sn!==5||Wo(r),Zi!==0&&(Zi=0)}function $2(r,a){for(var o=r.suspendedLanes,c=r.pingedLanes,g=r.expirationTimes,y=r.pendingLanes&-62914561;0<y;){var k=31-Le(y),O=1<<k,Q=g[k];Q===-1?((O&o)===0||(O&c)!==0)&&(g[k]=go(O,a)):Q<=a&&(r.expiredLanes|=O),y&=~O}if(a=Ct,o=ot,o=zr(r,r===a?o:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),c=r.callbackNode,o===0||r===a&&(vt===2||vt===9)||r.cancelPendingCommit!==null)return c!==null&&c!==null&&bt(c),r.callbackNode=null,r.callbackPriority=0;if((o&3)===0||Nr(r,o)){if(a=o&-o,a===r.callbackPriority)return a;switch(c!==null&&bt(c),vo(o)){case 2:case 8:o=Ee;break;case 32:o=qe;break;case 268435456:o=rt;break;default:o=qe}return c=X2.bind(null,r),o=ut(o,c),r.callbackPriority=a,r.callbackNode=o,a}return c!==null&&c!==null&&bt(c),r.callbackPriority=2,r.callbackNode=null,2}function X2(r,a){if(sn!==0&&sn!==5)return r.callbackNode=null,r.callbackPriority=0,null;var o=r.callbackNode;if(r0()&&r.callbackNode!==o)return null;var c=ot;return c=zr(r,r===Ct?c:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),c===0?null:(M2(r,c,a),$2(r,zt()),r.callbackNode!=null&&r.callbackNode===o?X2.bind(null,r):null)}function P2(r,a){if(r0())return null;M2(r,a,!0)}function mx(){Cx(function(){(mt&6)!==0?ut(fe,dx):G2()})}function Lh(){if(Zi===0){var r=bl;r===0&&(r=Pr,Pr<<=1,(Pr&261888)===0&&(Pr=256)),Zi=r}return Zi}function Z2(r){return r==null||typeof r=="symbol"||typeof r=="boolean"?null:typeof r=="function"?r:du(""+r)}function Q2(r,a){var o=a.ownerDocument.createElement("input");return o.name=a.name,o.value=a.value,r.id&&o.setAttribute("form",r.id),a.parentNode.insertBefore(o,a),r=new FormData(r),o.parentNode.removeChild(o),r}function px(r,a,o,c,g){if(a==="submit"&&o&&o.stateNode===g){var y=Z2((g[xn]||null).action),k=c.submitter;k&&(a=(a=k[xn]||null)?Z2(a.formAction):k.getAttribute("formAction"),a!==null&&(y=a,k=null));var O=new yu("action","action",null,c,g);r.push({event:O,listeners:[{instance:null,listener:function(){if(c.defaultPrevented){if(Zi!==0){var Q=k?Q2(g,k):new FormData(g);nh(o,{pending:!0,data:Q,method:g.method,action:y},null,Q)}}else typeof y=="function"&&(O.preventDefault(),Q=k?Q2(g,k):new FormData(g),nh(o,{pending:!0,data:Q,method:g.method,action:y},y,Q))},currentTarget:g}]})}}for(var Hh=0;Hh<xf.length;Hh++){var jh=xf[Hh],gx=jh.toLowerCase(),yx=jh[0].toUpperCase()+jh.slice(1);xr(gx,"on"+yx)}xr(Tp,"onAnimationEnd"),xr(Mp,"onAnimationIteration"),xr(zp,"onAnimationStart"),xr("dblclick","onDoubleClick"),xr("focusin","onFocus"),xr("focusout","onBlur"),xr(O9,"onTransitionRun"),xr(R9,"onTransitionStart"),xr(B9,"onTransitionCancel"),xr(Np,"onTransitionEnd"),_i("onMouseEnter",["mouseout","mouseover"]),_i("onMouseLeave",["mouseout","mouseover"]),_i("onPointerEnter",["pointerout","pointerover"]),_i("onPointerLeave",["pointerout","pointerover"]),Qr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Qr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Qr("onBeforeInput",["compositionend","keypress","textInput","paste"]),Qr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Qr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Qr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var es="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(" "),vx=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(es));function K2(r,a){a=(a&4)!==0;for(var o=0;o<r.length;o++){var c=r[o],g=c.event;c=c.listeners;e:{var y=void 0;if(a)for(var k=c.length-1;0<=k;k--){var O=c[k],Q=O.instance,le=O.currentTarget;if(O=O.listener,Q!==y&&g.isPropagationStopped())break e;y=O,g.currentTarget=le;try{y(g)}catch(he){bu(he)}g.currentTarget=null,y=Q}else for(k=0;k<c.length;k++){if(O=c[k],Q=O.instance,le=O.currentTarget,O=O.listener,Q!==y&&g.isPropagationStopped())break e;y=O,g.currentTarget=le;try{y(g)}catch(he){bu(he)}g.currentTarget=null,y=Q}}}}function at(r,a){var o=a[il];o===void 0&&(o=a[il]=new Set);var c=r+"__bubble";o.has(c)||(J2(a,r,2,!1),o.add(c))}function qh(r,a,o){var c=0;a&&(c|=4),J2(o,r,c,a)}var l0="_reactListening"+Math.random().toString(36).slice(2);function Ih(r){if(!r[l0]){r[l0]=!0,ou.forEach(function(o){o!=="selectionchange"&&(vx.has(o)||qh(o,!1,r),qh(o,!0,r))});var a=r.nodeType===9?r:r.ownerDocument;a===null||a[l0]||(a[l0]=!0,qh("selectionchange",!1,a))}}function J2(r,a,o,c){switch(Tg(a)){case 2:var g=$x;break;case 8:g=Xx;break;default:g=td}o=g.bind(null,a,o,r),g=void 0,!lf||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(g=!0),c?g!==void 0?r.addEventListener(a,o,{capture:!0,passive:g}):r.addEventListener(a,o,!0):g!==void 0?r.addEventListener(a,o,{passive:g}):r.addEventListener(a,o,!1)}function Uh(r,a,o,c,g){var y=c;if((a&1)===0&&(a&2)===0&&c!==null)e:for(;;){if(c===null)return;var k=c.tag;if(k===3||k===4){var O=c.stateNode.containerInfo;if(O===g)break;if(k===4)for(k=c.return;k!==null;){var Q=k.tag;if((Q===3||Q===4)&&k.stateNode.containerInfo===g)return;k=k.return}for(;O!==null;){if(k=Mi(O),k===null)return;if(Q=k.tag,Q===5||Q===6||Q===26||Q===27){c=y=k;continue e}O=O.parentNode}}c=c.return}rp(function(){var le=y,he=rf(o),ge=[];e:{var oe=Dp.get(r);if(oe!==void 0){var ue=yu,De=r;switch(r){case"keypress":if(pu(o)===0)break e;case"keydown":case"keyup":ue=f9;break;case"focusin":De="focus",ue=cf;break;case"focusout":De="blur",ue=cf;break;case"beforeblur":case"afterblur":ue=cf;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ue=lp;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ue=Wv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ue=m9;break;case Tp:case Mp:case zp:ue=n9;break;case Np:ue=g9;break;case"scroll":case"scrollend":ue=Kv;break;case"wheel":ue=v9;break;case"copy":case"cut":case"paste":ue=i9;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ue=sp;break;case"toggle":case"beforetoggle":ue=b9}var Ye=(a&4)!==0,At=!Ye&&(r==="scroll"||r==="scrollend"),re=Ye?oe!==null?oe+"Capture":null:oe;Ye=[];for(var ee=le,ae;ee!==null;){var de=ee;if(ae=de.stateNode,de=de.tag,de!==5&&de!==26&&de!==27||ae===null||re===null||(de=So(ee,re),de!=null&&Ye.push(ts(ee,de,ae))),At)break;ee=ee.return}0<Ye.length&&(oe=new ue(oe,De,null,o,he),ge.push({event:oe,listeners:Ye}))}}if((a&7)===0){e:{if(oe=r==="mouseover"||r==="pointerover",ue=r==="mouseout"||r==="pointerout",oe&&o!==nf&&(De=o.relatedTarget||o.fromElement)&&(Mi(De)||De[Zr]))break e;if((ue||oe)&&(oe=he.window===he?he:(oe=he.ownerDocument)?oe.defaultView||oe.parentWindow:window,ue?(De=o.relatedTarget||o.toElement,ue=le,De=De?Mi(De):null,De!==null&&(At=s(De),Ye=De.tag,De!==At||Ye!==5&&Ye!==27&&Ye!==6)&&(De=null)):(ue=null,De=le),ue!==De)){if(Ye=lp,de="onMouseLeave",re="onMouseEnter",ee="mouse",(r==="pointerout"||r==="pointerover")&&(Ye=sp,de="onPointerLeave",re="onPointerEnter",ee="pointer"),At=ue==null?oe:Ni(ue),ae=De==null?oe:Ni(De),oe=new Ye(de,ee+"leave",ue,o,he),oe.target=At,oe.relatedTarget=ae,de=null,Mi(he)===le&&(Ye=new Ye(re,ee+"enter",De,o,he),Ye.target=ae,Ye.relatedTarget=At,de=Ye),At=de,ue&&De)t:{for(Ye=xx,re=ue,ee=De,ae=0,de=re;de;de=Ye(de))ae++;de=0;for(var Ie=ee;Ie;Ie=Ye(Ie))de++;for(;0<ae-de;)re=Ye(re),ae--;for(;0<de-ae;)ee=Ye(ee),de--;for(;ae--;){if(re===ee||ee!==null&&re===ee.alternate){Ye=re;break t}re=Ye(re),ee=Ye(ee)}Ye=null}else Ye=null;ue!==null&&W2(ge,oe,ue,Ye,!1),De!==null&&At!==null&&W2(ge,At,De,Ye,!0)}}e:{if(oe=le?Ni(le):window,ue=oe.nodeName&&oe.nodeName.toLowerCase(),ue==="select"||ue==="input"&&oe.type==="file")var ht=gp;else if(mp(oe))if(yp)ht=N9;else{ht=M9;var Re=T9}else ue=oe.nodeName,!ue||ue.toLowerCase()!=="input"||oe.type!=="checkbox"&&oe.type!=="radio"?le&&tf(le.elementType)&&(ht=gp):ht=z9;if(ht&&(ht=ht(r,le))){pp(ge,ht,o,he);break e}Re&&Re(r,oe,le),r==="focusout"&&le&&oe.type==="number"&&le.memoizedProps.value!=null&&wo(oe,"number",oe.value)}switch(Re=le?Ni(le):window,r){case"focusin":(mp(Re)||Re.contentEditable==="true")&&(hl=Re,gf=le,No=null);break;case"focusout":No=gf=hl=null;break;case"mousedown":yf=!0;break;case"contextmenu":case"mouseup":case"dragend":yf=!1,Ap(ge,o,he);break;case"selectionchange":if(_9)break;case"keydown":case"keyup":Ap(ge,o,he)}var Je;if(hf)e:{switch(r){case"compositionstart":var st="onCompositionStart";break e;case"compositionend":st="onCompositionEnd";break e;case"compositionupdate":st="onCompositionUpdate";break e}st=void 0}else fl?hp(r,o)&&(st="onCompositionEnd"):r==="keydown"&&o.keyCode===229&&(st="onCompositionStart");st&&(up&&o.locale!=="ko"&&(fl||st!=="onCompositionStart"?st==="onCompositionEnd"&&fl&&(Je=ip()):(Oi=he,of="value"in Oi?Oi.value:Oi.textContent,fl=!0)),Re=o0(le,st),0<Re.length&&(st=new op(st,r,null,o,he),ge.push({event:st,listeners:Re}),Je?st.data=Je:(Je=dp(o),Je!==null&&(st.data=Je)))),(Je=S9?k9(r,o):E9(r,o))&&(st=o0(le,"onBeforeInput"),0<st.length&&(Re=new op("onBeforeInput","beforeinput",null,o,he),ge.push({event:Re,listeners:st}),Re.data=Je)),px(ge,r,le,o,he)}K2(ge,a)})}function ts(r,a,o){return{instance:r,listener:a,currentTarget:o}}function o0(r,a){for(var o=a+"Capture",c=[];r!==null;){var g=r,y=g.stateNode;if(g=g.tag,g!==5&&g!==26&&g!==27||y===null||(g=So(r,o),g!=null&&c.unshift(ts(r,g,y)),g=So(r,a),g!=null&&c.push(ts(r,g,y))),r.tag===3)return c;r=r.return}return[]}function xx(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5&&r.tag!==27);return r||null}function W2(r,a,o,c,g){for(var y=a._reactName,k=[];o!==null&&o!==c;){var O=o,Q=O.alternate,le=O.stateNode;if(O=O.tag,Q!==null&&Q===c)break;O!==5&&O!==26&&O!==27||le===null||(Q=le,g?(le=So(o,y),le!=null&&k.unshift(ts(o,le,Q))):g||(le=So(o,y),le!=null&&k.push(ts(o,le,Q)))),o=o.return}k.length!==0&&r.push({event:a,listeners:k})}var bx=/\r\n?/g,wx=/\u0000|\uFFFD/g;function eg(r){return(typeof r=="string"?r:""+r).replace(bx,`
|
|
9
|
+
`).replace(wx,"")}function tg(r,a){return a=eg(a),eg(r)===a}function Et(r,a,o,c,g,y){switch(o){case"children":typeof c=="string"?a==="body"||a==="textarea"&&c===""||sl(r,c):(typeof c=="number"||typeof c=="bigint")&&a!=="body"&&sl(r,""+c);break;case"className":ll(r,"class",c);break;case"tabIndex":ll(r,"tabindex",c);break;case"dir":case"role":case"viewBox":case"width":case"height":ll(r,o,c);break;case"style":tp(r,c,y);break;case"data":if(a!=="object"){ll(r,"data",c);break}case"src":case"href":if(c===""&&(a!=="a"||o!=="href")){r.removeAttribute(o);break}if(c==null||typeof c=="function"||typeof c=="symbol"||typeof c=="boolean"){r.removeAttribute(o);break}c=du(""+c),r.setAttribute(o,c);break;case"action":case"formAction":if(typeof c=="function"){r.setAttribute(o,"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 y=="function"&&(o==="formAction"?(a!=="input"&&Et(r,a,"name",g.name,g,null),Et(r,a,"formEncType",g.formEncType,g,null),Et(r,a,"formMethod",g.formMethod,g,null),Et(r,a,"formTarget",g.formTarget,g,null)):(Et(r,a,"encType",g.encType,g,null),Et(r,a,"method",g.method,g,null),Et(r,a,"target",g.target,g,null)));if(c==null||typeof c=="symbol"||typeof c=="boolean"){r.removeAttribute(o);break}c=du(""+c),r.setAttribute(o,c);break;case"onClick":c!=null&&(r.onclick=Jr);break;case"onScroll":c!=null&&at("scroll",r);break;case"onScrollEnd":c!=null&&at("scrollend",r);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(i(61));if(o=c.__html,o!=null){if(g.children!=null)throw Error(i(60));r.innerHTML=o}}break;case"multiple":r.multiple=c&&typeof c!="function"&&typeof c!="symbol";break;case"muted":r.muted=c&&typeof c!="function"&&typeof c!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(c==null||typeof c=="function"||typeof c=="boolean"||typeof c=="symbol"){r.removeAttribute("xlink:href");break}o=du(""+c),r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",o);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":c!=null&&typeof c!="function"&&typeof c!="symbol"?r.setAttribute(o,""+c):r.removeAttribute(o);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":c&&typeof c!="function"&&typeof c!="symbol"?r.setAttribute(o,""):r.removeAttribute(o);break;case"capture":case"download":c===!0?r.setAttribute(o,""):c!==!1&&c!=null&&typeof c!="function"&&typeof c!="symbol"?r.setAttribute(o,c):r.removeAttribute(o);break;case"cols":case"rows":case"size":case"span":c!=null&&typeof c!="function"&&typeof c!="symbol"&&!isNaN(c)&&1<=c?r.setAttribute(o,c):r.removeAttribute(o);break;case"rowSpan":case"start":c==null||typeof c=="function"||typeof c=="symbol"||isNaN(c)?r.removeAttribute(o):r.setAttribute(o,c);break;case"popover":at("beforetoggle",r),at("toggle",r),al(r,"popover",c);break;case"xlinkActuate":vr(r,"http://www.w3.org/1999/xlink","xlink:actuate",c);break;case"xlinkArcrole":vr(r,"http://www.w3.org/1999/xlink","xlink:arcrole",c);break;case"xlinkRole":vr(r,"http://www.w3.org/1999/xlink","xlink:role",c);break;case"xlinkShow":vr(r,"http://www.w3.org/1999/xlink","xlink:show",c);break;case"xlinkTitle":vr(r,"http://www.w3.org/1999/xlink","xlink:title",c);break;case"xlinkType":vr(r,"http://www.w3.org/1999/xlink","xlink:type",c);break;case"xmlBase":vr(r,"http://www.w3.org/XML/1998/namespace","xml:base",c);break;case"xmlLang":vr(r,"http://www.w3.org/XML/1998/namespace","xml:lang",c);break;case"xmlSpace":vr(r,"http://www.w3.org/XML/1998/namespace","xml:space",c);break;case"is":al(r,"is",c);break;case"innerText":case"textContent":break;default:(!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(o=Zv.get(o)||o,al(r,o,c))}}function Fh(r,a,o,c,g,y){switch(o){case"style":tp(r,c,y);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(i(61));if(o=c.__html,o!=null){if(g.children!=null)throw Error(i(60));r.innerHTML=o}}break;case"children":typeof c=="string"?sl(r,c):(typeof c=="number"||typeof c=="bigint")&&sl(r,""+c);break;case"onScroll":c!=null&&at("scroll",r);break;case"onScrollEnd":c!=null&&at("scrollend",r);break;case"onClick":c!=null&&(r.onclick=Jr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!su.hasOwnProperty(o))e:{if(o[0]==="o"&&o[1]==="n"&&(g=o.endsWith("Capture"),a=o.slice(2,g?o.length-7:void 0),y=r[xn]||null,y=y!=null?y[o]:null,typeof y=="function"&&r.removeEventListener(a,y,g),typeof c=="function")){typeof y!="function"&&y!==null&&(o in r?r[o]=null:r.hasAttribute(o)&&r.removeAttribute(o)),r.addEventListener(a,c,g);break e}o in r?r[o]=c:c===!0?r.setAttribute(o,""):al(r,o,c)}}}function yn(r,a,o){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":at("error",r),at("load",r);var c=!1,g=!1,y;for(y in o)if(o.hasOwnProperty(y)){var k=o[y];if(k!=null)switch(y){case"src":c=!0;break;case"srcSet":g=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,a));default:Et(r,a,y,k,o,null)}}g&&Et(r,a,"srcSet",o.srcSet,o,null),c&&Et(r,a,"src",o.src,o,null);return;case"input":at("invalid",r);var O=y=k=g=null,Q=null,le=null;for(c in o)if(o.hasOwnProperty(c)){var he=o[c];if(he!=null)switch(c){case"name":g=he;break;case"type":k=he;break;case"checked":Q=he;break;case"defaultChecked":le=he;break;case"value":y=he;break;case"defaultValue":O=he;break;case"children":case"dangerouslySetInnerHTML":if(he!=null)throw Error(i(137,a));break;default:Et(r,a,c,he,o,null)}}hu(r,y,O,Q,le,k,g,!1);return;case"select":at("invalid",r),c=k=y=null;for(g in o)if(o.hasOwnProperty(g)&&(O=o[g],O!=null))switch(g){case"value":y=O;break;case"defaultValue":k=O;break;case"multiple":c=O;default:Et(r,a,g,O,o,null)}a=y,o=k,r.multiple=!!c,a!=null?Kr(r,!!c,a,!1):o!=null&&Kr(r,!!c,o,!0);return;case"textarea":at("invalid",r),y=g=c=null;for(k in o)if(o.hasOwnProperty(k)&&(O=o[k],O!=null))switch(k){case"value":c=O;break;case"defaultValue":g=O;break;case"children":y=O;break;case"dangerouslySetInnerHTML":if(O!=null)throw Error(i(91));break;default:Et(r,a,k,O,o,null)}Wm(r,c,g,y);return;case"option":for(Q in o)o.hasOwnProperty(Q)&&(c=o[Q],c!=null)&&(Q==="selected"?r.selected=c&&typeof c!="function"&&typeof c!="symbol":Et(r,a,Q,c,o,null));return;case"dialog":at("beforetoggle",r),at("toggle",r),at("cancel",r),at("close",r);break;case"iframe":case"object":at("load",r);break;case"video":case"audio":for(c=0;c<es.length;c++)at(es[c],r);break;case"image":at("error",r),at("load",r);break;case"details":at("toggle",r);break;case"embed":case"source":case"link":at("error",r),at("load",r);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(le in o)if(o.hasOwnProperty(le)&&(c=o[le],c!=null))switch(le){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,a));default:Et(r,a,le,c,o,null)}return;default:if(tf(a)){for(he in o)o.hasOwnProperty(he)&&(c=o[he],c!==void 0&&Fh(r,a,he,c,o,void 0));return}}for(O in o)o.hasOwnProperty(O)&&(c=o[O],c!=null&&Et(r,a,O,c,o,null))}function Sx(r,a,o,c){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var g=null,y=null,k=null,O=null,Q=null,le=null,he=null;for(ue in o){var ge=o[ue];if(o.hasOwnProperty(ue)&&ge!=null)switch(ue){case"checked":break;case"value":break;case"defaultValue":Q=ge;default:c.hasOwnProperty(ue)||Et(r,a,ue,null,c,ge)}}for(var oe in c){var ue=c[oe];if(ge=o[oe],c.hasOwnProperty(oe)&&(ue!=null||ge!=null))switch(oe){case"type":y=ue;break;case"name":g=ue;break;case"checked":le=ue;break;case"defaultChecked":he=ue;break;case"value":k=ue;break;case"defaultValue":O=ue;break;case"children":case"dangerouslySetInnerHTML":if(ue!=null)throw Error(i(137,a));break;default:ue!==ge&&Et(r,a,oe,ue,c,ge)}}wa(r,k,O,Q,le,he,y,g);return;case"select":ue=k=O=oe=null;for(y in o)if(Q=o[y],o.hasOwnProperty(y)&&Q!=null)switch(y){case"value":break;case"multiple":ue=Q;default:c.hasOwnProperty(y)||Et(r,a,y,null,c,Q)}for(g in c)if(y=c[g],Q=o[g],c.hasOwnProperty(g)&&(y!=null||Q!=null))switch(g){case"value":oe=y;break;case"defaultValue":O=y;break;case"multiple":k=y;default:y!==Q&&Et(r,a,g,y,c,Q)}a=O,o=k,c=ue,oe!=null?Kr(r,!!o,oe,!1):!!c!=!!o&&(a!=null?Kr(r,!!o,a,!0):Kr(r,!!o,o?[]:"",!1));return;case"textarea":ue=oe=null;for(O in o)if(g=o[O],o.hasOwnProperty(O)&&g!=null&&!c.hasOwnProperty(O))switch(O){case"value":break;case"children":break;default:Et(r,a,O,null,c,g)}for(k in c)if(g=c[k],y=o[k],c.hasOwnProperty(k)&&(g!=null||y!=null))switch(k){case"value":oe=g;break;case"defaultValue":ue=g;break;case"children":break;case"dangerouslySetInnerHTML":if(g!=null)throw Error(i(91));break;default:g!==y&&Et(r,a,k,g,c,y)}Jm(r,oe,ue);return;case"option":for(var De in o)oe=o[De],o.hasOwnProperty(De)&&oe!=null&&!c.hasOwnProperty(De)&&(De==="selected"?r.selected=!1:Et(r,a,De,null,c,oe));for(Q in c)oe=c[Q],ue=o[Q],c.hasOwnProperty(Q)&&oe!==ue&&(oe!=null||ue!=null)&&(Q==="selected"?r.selected=oe&&typeof oe!="function"&&typeof oe!="symbol":Et(r,a,Q,oe,c,ue));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 Ye in o)oe=o[Ye],o.hasOwnProperty(Ye)&&oe!=null&&!c.hasOwnProperty(Ye)&&Et(r,a,Ye,null,c,oe);for(le in c)if(oe=c[le],ue=o[le],c.hasOwnProperty(le)&&oe!==ue&&(oe!=null||ue!=null))switch(le){case"children":case"dangerouslySetInnerHTML":if(oe!=null)throw Error(i(137,a));break;default:Et(r,a,le,oe,c,ue)}return;default:if(tf(a)){for(var At in o)oe=o[At],o.hasOwnProperty(At)&&oe!==void 0&&!c.hasOwnProperty(At)&&Fh(r,a,At,void 0,c,oe);for(he in c)oe=c[he],ue=o[he],!c.hasOwnProperty(he)||oe===ue||oe===void 0&&ue===void 0||Fh(r,a,he,oe,c,ue);return}}for(var re in o)oe=o[re],o.hasOwnProperty(re)&&oe!=null&&!c.hasOwnProperty(re)&&Et(r,a,re,null,c,oe);for(ge in c)oe=c[ge],ue=o[ge],!c.hasOwnProperty(ge)||oe===ue||oe==null&&ue==null||Et(r,a,ge,oe,c,ue)}function ng(r){switch(r){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function kx(){if(typeof performance.getEntriesByType=="function"){for(var r=0,a=0,o=performance.getEntriesByType("resource"),c=0;c<o.length;c++){var g=o[c],y=g.transferSize,k=g.initiatorType,O=g.duration;if(y&&O&&ng(k)){for(k=0,O=g.responseEnd,c+=1;c<o.length;c++){var Q=o[c],le=Q.startTime;if(le>O)break;var he=Q.transferSize,ge=Q.initiatorType;he&&ng(ge)&&(Q=Q.responseEnd,k+=he*(Q<O?1:(O-le)/(Q-le)))}if(--c,a+=8*(y+k)/(g.duration/1e3),r++,10<r)break}}if(0<r)return a/r/1e6}return navigator.connection&&(r=navigator.connection.downlink,typeof r=="number")?r:5}var Vh=null,Yh=null;function s0(r){return r.nodeType===9?r:r.ownerDocument}function rg(r){switch(r){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function ig(r,a){if(r===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return r===1&&a==="foreignObject"?0:r}function Gh(r,a){return r==="textarea"||r==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var $h=null;function Ex(){var r=window.event;return r&&r.type==="popstate"?r===$h?!1:($h=r,!0):($h=null,!1)}var ag=typeof setTimeout=="function"?setTimeout:void 0,Ax=typeof clearTimeout=="function"?clearTimeout:void 0,lg=typeof Promise=="function"?Promise:void 0,Cx=typeof queueMicrotask=="function"?queueMicrotask:typeof lg<"u"?function(r){return lg.resolve(null).then(r).catch(Tx)}:ag;function Tx(r){setTimeout(function(){throw r})}function Qi(r){return r==="head"}function og(r,a){var o=a,c=0;do{var g=o.nextSibling;if(r.removeChild(o),g&&g.nodeType===8)if(o=g.data,o==="/$"||o==="/&"){if(c===0){r.removeChild(g),ql(a);return}c--}else if(o==="$"||o==="$?"||o==="$~"||o==="$!"||o==="&")c++;else if(o==="html")ns(r.ownerDocument.documentElement);else if(o==="head"){o=r.ownerDocument.head,ns(o);for(var y=o.firstChild;y;){var k=y.nextSibling,O=y.nodeName;y[xa]||O==="SCRIPT"||O==="STYLE"||O==="LINK"&&y.rel.toLowerCase()==="stylesheet"||o.removeChild(y),y=k}}else o==="body"&&ns(r.ownerDocument.body);o=g}while(o);ql(a)}function sg(r,a){var o=r;r=0;do{var c=o.nextSibling;if(o.nodeType===1?a?(o._stashedDisplay=o.style.display,o.style.display="none"):(o.style.display=o._stashedDisplay||"",o.getAttribute("style")===""&&o.removeAttribute("style")):o.nodeType===3&&(a?(o._stashedText=o.nodeValue,o.nodeValue=""):o.nodeValue=o._stashedText||""),c&&c.nodeType===8)if(o=c.data,o==="/$"){if(r===0)break;r--}else o!=="$"&&o!=="$?"&&o!=="$~"&&o!=="$!"||r++;o=c}while(o)}function Xh(r){var a=r.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var o=a;switch(a=a.nextSibling,o.nodeName){case"HTML":case"HEAD":case"BODY":Xh(o),xo(o);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(o.rel.toLowerCase()==="stylesheet")continue}r.removeChild(o)}}function Mx(r,a,o,c){for(;r.nodeType===1;){var g=o;if(r.nodeName.toLowerCase()!==a.toLowerCase()){if(!c&&(r.nodeName!=="INPUT"||r.type!=="hidden"))break}else if(c){if(!r[xa])switch(a){case"meta":if(!r.hasAttribute("itemprop"))break;return r;case"link":if(y=r.getAttribute("rel"),y==="stylesheet"&&r.hasAttribute("data-precedence"))break;if(y!==g.rel||r.getAttribute("href")!==(g.href==null||g.href===""?null:g.href)||r.getAttribute("crossorigin")!==(g.crossOrigin==null?null:g.crossOrigin)||r.getAttribute("title")!==(g.title==null?null:g.title))break;return r;case"style":if(r.hasAttribute("data-precedence"))break;return r;case"script":if(y=r.getAttribute("src"),(y!==(g.src==null?null:g.src)||r.getAttribute("type")!==(g.type==null?null:g.type)||r.getAttribute("crossorigin")!==(g.crossOrigin==null?null:g.crossOrigin))&&y&&r.hasAttribute("async")&&!r.hasAttribute("itemprop"))break;return r;default:return r}}else if(a==="input"&&r.type==="hidden"){var y=g.name==null?null:""+g.name;if(g.type==="hidden"&&r.getAttribute("name")===y)return r}else return r;if(r=hr(r.nextSibling),r===null)break}return null}function zx(r,a,o){if(a==="")return null;for(;r.nodeType!==3;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!o||(r=hr(r.nextSibling),r===null))return null;return r}function ug(r,a){for(;r.nodeType!==8;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!a||(r=hr(r.nextSibling),r===null))return null;return r}function Ph(r){return r.data==="$?"||r.data==="$~"}function Zh(r){return r.data==="$!"||r.data==="$?"&&r.ownerDocument.readyState!=="loading"}function Nx(r,a){var o=r.ownerDocument;if(r.data==="$~")r._reactRetry=a;else if(r.data!=="$?"||o.readyState!=="loading")a();else{var c=function(){a(),o.removeEventListener("DOMContentLoaded",c)};o.addEventListener("DOMContentLoaded",c),r._reactRetry=c}}function hr(r){for(;r!=null;r=r.nextSibling){var a=r.nodeType;if(a===1||a===3)break;if(a===8){if(a=r.data,a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"||a==="F!"||a==="F")break;if(a==="/$"||a==="/&")return null}}return r}var Qh=null;function cg(r){r=r.nextSibling;for(var a=0;r;){if(r.nodeType===8){var o=r.data;if(o==="/$"||o==="/&"){if(a===0)return hr(r.nextSibling);a--}else o!=="$"&&o!=="$!"&&o!=="$?"&&o!=="$~"&&o!=="&"||a++}r=r.nextSibling}return null}function fg(r){r=r.previousSibling;for(var a=0;r;){if(r.nodeType===8){var o=r.data;if(o==="$"||o==="$!"||o==="$?"||o==="$~"||o==="&"){if(a===0)return r;a--}else o!=="/$"&&o!=="/&"||a++}r=r.previousSibling}return null}function hg(r,a,o){switch(a=s0(o),r){case"html":if(r=a.documentElement,!r)throw Error(i(452));return r;case"head":if(r=a.head,!r)throw Error(i(453));return r;case"body":if(r=a.body,!r)throw Error(i(454));return r;default:throw Error(i(451))}}function ns(r){for(var a=r.attributes;a.length;)r.removeAttributeNode(a[0]);xo(r)}var dr=new Map,dg=new Set;function u0(r){return typeof r.getRootNode=="function"?r.getRootNode():r.nodeType===9?r:r.ownerDocument}var mi=Y.d;Y.d={f:Dx,r:_x,D:Ox,C:Rx,L:Bx,m:Lx,X:jx,S:Hx,M:qx};function Dx(){var r=mi.f(),a=e0();return r||a}function _x(r){var a=zi(r);a!==null&&a.tag===5&&a.type==="form"?N4(a):mi.r(r)}var Ll=typeof document>"u"?null:document;function mg(r,a,o){var c=Ll;if(c&&typeof a=="string"&&a){var g=_n(a);g='link[rel="'+r+'"][href="'+g+'"]',typeof o=="string"&&(g+='[crossorigin="'+o+'"]'),dg.has(g)||(dg.add(g),r={rel:r,crossOrigin:o,href:a},c.querySelector(g)===null&&(a=c.createElement("link"),yn(a,"link",r),Xt(a),c.head.appendChild(a)))}}function Ox(r){mi.D(r),mg("dns-prefetch",r,null)}function Rx(r,a){mi.C(r,a),mg("preconnect",r,a)}function Bx(r,a,o){mi.L(r,a,o);var c=Ll;if(c&&r&&a){var g='link[rel="preload"][as="'+_n(a)+'"]';a==="image"&&o&&o.imageSrcSet?(g+='[imagesrcset="'+_n(o.imageSrcSet)+'"]',typeof o.imageSizes=="string"&&(g+='[imagesizes="'+_n(o.imageSizes)+'"]')):g+='[href="'+_n(r)+'"]';var y=g;switch(a){case"style":y=Hl(r);break;case"script":y=jl(r)}dr.has(y)||(r=m({rel:"preload",href:a==="image"&&o&&o.imageSrcSet?void 0:r,as:a},o),dr.set(y,r),c.querySelector(g)!==null||a==="style"&&c.querySelector(rs(y))||a==="script"&&c.querySelector(is(y))||(a=c.createElement("link"),yn(a,"link",r),Xt(a),c.head.appendChild(a)))}}function Lx(r,a){mi.m(r,a);var o=Ll;if(o&&r){var c=a&&typeof a.as=="string"?a.as:"script",g='link[rel="modulepreload"][as="'+_n(c)+'"][href="'+_n(r)+'"]',y=g;switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":y=jl(r)}if(!dr.has(y)&&(r=m({rel:"modulepreload",href:r},a),dr.set(y,r),o.querySelector(g)===null)){switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(o.querySelector(is(y)))return}c=o.createElement("link"),yn(c,"link",r),Xt(c),o.head.appendChild(c)}}}function Hx(r,a,o){mi.S(r,a,o);var c=Ll;if(c&&r){var g=Di(c).hoistableStyles,y=Hl(r);a=a||"default";var k=g.get(y);if(!k){var O={loading:0,preload:null};if(k=c.querySelector(rs(y)))O.loading=5;else{r=m({rel:"stylesheet",href:r,"data-precedence":a},o),(o=dr.get(y))&&Kh(r,o);var Q=k=c.createElement("link");Xt(Q),yn(Q,"link",r),Q._p=new Promise(function(le,he){Q.onload=le,Q.onerror=he}),Q.addEventListener("load",function(){O.loading|=1}),Q.addEventListener("error",function(){O.loading|=2}),O.loading|=4,c0(k,a,c)}k={type:"stylesheet",instance:k,count:1,state:O},g.set(y,k)}}}function jx(r,a){mi.X(r,a);var o=Ll;if(o&&r){var c=Di(o).hoistableScripts,g=jl(r),y=c.get(g);y||(y=o.querySelector(is(g)),y||(r=m({src:r,async:!0},a),(a=dr.get(g))&&Jh(r,a),y=o.createElement("script"),Xt(y),yn(y,"link",r),o.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},c.set(g,y))}}function qx(r,a){mi.M(r,a);var o=Ll;if(o&&r){var c=Di(o).hoistableScripts,g=jl(r),y=c.get(g);y||(y=o.querySelector(is(g)),y||(r=m({src:r,async:!0,type:"module"},a),(a=dr.get(g))&&Jh(r,a),y=o.createElement("script"),Xt(y),yn(y,"link",r),o.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},c.set(g,y))}}function pg(r,a,o,c){var g=(g=xe.current)?u0(g):null;if(!g)throw Error(i(446));switch(r){case"meta":case"title":return null;case"style":return typeof o.precedence=="string"&&typeof o.href=="string"?(a=Hl(o.href),o=Di(g).hoistableStyles,c=o.get(a),c||(c={type:"style",instance:null,count:0,state:null},o.set(a,c)),c):{type:"void",instance:null,count:0,state:null};case"link":if(o.rel==="stylesheet"&&typeof o.href=="string"&&typeof o.precedence=="string"){r=Hl(o.href);var y=Di(g).hoistableStyles,k=y.get(r);if(k||(g=g.ownerDocument||g,k={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},y.set(r,k),(y=g.querySelector(rs(r)))&&!y._p&&(k.instance=y,k.state.loading=5),dr.has(r)||(o={rel:"preload",as:"style",href:o.href,crossOrigin:o.crossOrigin,integrity:o.integrity,media:o.media,hrefLang:o.hrefLang,referrerPolicy:o.referrerPolicy},dr.set(r,o),y||Ix(g,r,o,k.state))),a&&c===null)throw Error(i(528,""));return k}if(a&&c!==null)throw Error(i(529,""));return null;case"script":return a=o.async,o=o.src,typeof o=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=jl(o),o=Di(g).hoistableScripts,c=o.get(a),c||(c={type:"script",instance:null,count:0,state:null},o.set(a,c)),c):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,r))}}function Hl(r){return'href="'+_n(r)+'"'}function rs(r){return'link[rel="stylesheet"]['+r+"]"}function gg(r){return m({},r,{"data-precedence":r.precedence,precedence:null})}function Ix(r,a,o,c){r.querySelector('link[rel="preload"][as="style"]['+a+"]")?c.loading=1:(a=r.createElement("link"),c.preload=a,a.addEventListener("load",function(){return c.loading|=1}),a.addEventListener("error",function(){return c.loading|=2}),yn(a,"link",o),Xt(a),r.head.appendChild(a))}function jl(r){return'[src="'+_n(r)+'"]'}function is(r){return"script[async]"+r}function yg(r,a,o){if(a.count++,a.instance===null)switch(a.type){case"style":var c=r.querySelector('style[data-href~="'+_n(o.href)+'"]');if(c)return a.instance=c,Xt(c),c;var g=m({},o,{"data-href":o.href,"data-precedence":o.precedence,href:null,precedence:null});return c=(r.ownerDocument||r).createElement("style"),Xt(c),yn(c,"style",g),c0(c,o.precedence,r),a.instance=c;case"stylesheet":g=Hl(o.href);var y=r.querySelector(rs(g));if(y)return a.state.loading|=4,a.instance=y,Xt(y),y;c=gg(o),(g=dr.get(g))&&Kh(c,g),y=(r.ownerDocument||r).createElement("link"),Xt(y);var k=y;return k._p=new Promise(function(O,Q){k.onload=O,k.onerror=Q}),yn(y,"link",c),a.state.loading|=4,c0(y,o.precedence,r),a.instance=y;case"script":return y=jl(o.src),(g=r.querySelector(is(y)))?(a.instance=g,Xt(g),g):(c=o,(g=dr.get(y))&&(c=m({},o),Jh(c,g)),r=r.ownerDocument||r,g=r.createElement("script"),Xt(g),yn(g,"link",c),r.head.appendChild(g),a.instance=g);case"void":return null;default:throw Error(i(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(c=a.instance,a.state.loading|=4,c0(c,o.precedence,r));return a.instance}function c0(r,a,o){for(var c=o.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),g=c.length?c[c.length-1]:null,y=g,k=0;k<c.length;k++){var O=c[k];if(O.dataset.precedence===a)y=O;else if(y!==g)break}y?y.parentNode.insertBefore(r,y.nextSibling):(a=o.nodeType===9?o.head:o,a.insertBefore(r,a.firstChild))}function Kh(r,a){r.crossOrigin==null&&(r.crossOrigin=a.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=a.referrerPolicy),r.title==null&&(r.title=a.title)}function Jh(r,a){r.crossOrigin==null&&(r.crossOrigin=a.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=a.referrerPolicy),r.integrity==null&&(r.integrity=a.integrity)}var f0=null;function vg(r,a,o){if(f0===null){var c=new Map,g=f0=new Map;g.set(o,c)}else g=f0,c=g.get(o),c||(c=new Map,g.set(o,c));if(c.has(r))return c;for(c.set(r,null),o=o.getElementsByTagName(r),g=0;g<o.length;g++){var y=o[g];if(!(y[xa]||y[on]||r==="link"&&y.getAttribute("rel")==="stylesheet")&&y.namespaceURI!=="http://www.w3.org/2000/svg"){var k=y.getAttribute(a)||"";k=r+k;var O=c.get(k);O?O.push(y):c.set(k,[y])}}return c}function xg(r,a,o){r=r.ownerDocument||r,r.head.insertBefore(o,a==="title"?r.querySelector("head > title"):null)}function Ux(r,a,o){if(o===1||a.itemProp!=null)return!1;switch(r){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;return a.rel==="stylesheet"?(r=a.disabled,typeof a.precedence=="string"&&r==null):!0;case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function bg(r){return!(r.type==="stylesheet"&&(r.state.loading&3)===0)}function Fx(r,a,o,c){if(o.type==="stylesheet"&&(typeof c.media!="string"||matchMedia(c.media).matches!==!1)&&(o.state.loading&4)===0){if(o.instance===null){var g=Hl(c.href),y=a.querySelector(rs(g));if(y){a=y._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(r.count++,r=h0.bind(r),a.then(r,r)),o.state.loading|=4,o.instance=y,Xt(y);return}y=a.ownerDocument||a,c=gg(c),(g=dr.get(g))&&Kh(c,g),y=y.createElement("link"),Xt(y);var k=y;k._p=new Promise(function(O,Q){k.onload=O,k.onerror=Q}),yn(y,"link",c),o.instance=y}r.stylesheets===null&&(r.stylesheets=new Map),r.stylesheets.set(o,a),(a=o.state.preload)&&(o.state.loading&3)===0&&(r.count++,o=h0.bind(r),a.addEventListener("load",o),a.addEventListener("error",o))}}var Wh=0;function Vx(r,a){return r.stylesheets&&r.count===0&&m0(r,r.stylesheets),0<r.count||0<r.imgCount?function(o){var c=setTimeout(function(){if(r.stylesheets&&m0(r,r.stylesheets),r.unsuspend){var y=r.unsuspend;r.unsuspend=null,y()}},6e4+a);0<r.imgBytes&&Wh===0&&(Wh=62500*kx());var g=setTimeout(function(){if(r.waitingForImages=!1,r.count===0&&(r.stylesheets&&m0(r,r.stylesheets),r.unsuspend)){var y=r.unsuspend;r.unsuspend=null,y()}},(r.imgBytes>Wh?50:800)+a);return r.unsuspend=o,function(){r.unsuspend=null,clearTimeout(c),clearTimeout(g)}}:null}function h0(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)m0(this,this.stylesheets);else if(this.unsuspend){var r=this.unsuspend;this.unsuspend=null,r()}}}var d0=null;function m0(r,a){r.stylesheets=null,r.unsuspend!==null&&(r.count++,d0=new Map,a.forEach(Yx,r),d0=null,h0.call(r))}function Yx(r,a){if(!(a.state.loading&4)){var o=d0.get(r);if(o)var c=o.get(null);else{o=new Map,d0.set(r,o);for(var g=r.querySelectorAll("link[data-precedence],style[data-precedence]"),y=0;y<g.length;y++){var k=g[y];(k.nodeName==="LINK"||k.getAttribute("media")!=="not all")&&(o.set(k.dataset.precedence,k),c=k)}c&&o.set(null,c)}g=a.instance,k=g.getAttribute("data-precedence"),y=o.get(k)||c,y===c&&o.set(null,g),o.set(k,g),this.count++,c=h0.bind(this),g.addEventListener("load",c),g.addEventListener("error",c),y?y.parentNode.insertBefore(g,y.nextSibling):(r=r.nodeType===9?r.head:r,r.insertBefore(g,r.firstChild)),a.state.loading|=4}}var as={$$typeof:T,Provider:null,Consumer:null,_currentValue:K,_currentValue2:K,_threadCount:0};function Gx(r,a,o,c,g,y,k,O,Q){this.tag=1,this.containerInfo=r,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=va(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=va(0),this.hiddenUpdates=va(null),this.identifierPrefix=c,this.onUncaughtError=g,this.onCaughtError=y,this.onRecoverableError=k,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=Q,this.incompleteTransitions=new Map}function wg(r,a,o,c,g,y,k,O,Q,le,he,ge){return r=new Gx(r,a,o,k,Q,le,he,ge,O),a=1,y===!0&&(a|=24),y=$n(3,null,null,a),r.current=y,y.stateNode=r,a=_f(),a.refCount++,r.pooledCache=a,a.refCount++,y.memoizedState={element:c,isDehydrated:o,cache:a},Lf(y),r}function Sg(r){return r?(r=pl,r):pl}function kg(r,a,o,c,g,y){g=Sg(g),c.context===null?c.context=g:c.pendingContext=g,c=qi(a),c.payload={element:o},y=y===void 0?null:y,y!==null&&(c.callback=y),o=Ii(r,c,a),o!==null&&(jn(o,r,a),Ho(o,r,a))}function Eg(r,a){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var o=r.retryLane;r.retryLane=o!==0&&o<a?o:a}}function ed(r,a){Eg(r,a),(r=r.alternate)&&Eg(r,a)}function Ag(r){if(r.tag===13||r.tag===31){var a=Aa(r,67108864);a!==null&&jn(a,r,67108864),ed(r,67108864)}}function Cg(r){if(r.tag===13||r.tag===31){var a=Kn();a=yo(a);var o=Aa(r,a);o!==null&&jn(o,r,a),ed(r,a)}}var p0=!0;function $x(r,a,o,c){var g=L.T;L.T=null;var y=Y.p;try{Y.p=2,td(r,a,o,c)}finally{Y.p=y,L.T=g}}function Xx(r,a,o,c){var g=L.T;L.T=null;var y=Y.p;try{Y.p=8,td(r,a,o,c)}finally{Y.p=y,L.T=g}}function td(r,a,o,c){if(p0){var g=nd(c);if(g===null)Uh(r,a,c,g0,o),Mg(r,c);else if(Zx(g,r,a,o,c))c.stopPropagation();else if(Mg(r,c),a&4&&-1<Px.indexOf(r)){for(;g!==null;){var y=zi(g);if(y!==null)switch(y.tag){case 3:if(y=y.stateNode,y.current.memoizedState.isDehydrated){var k=yr(y.pendingLanes);if(k!==0){var O=y;for(O.pendingLanes|=2,O.entangledLanes|=2;k;){var Q=1<<31-Le(k);O.entanglements[1]|=Q,k&=~Q}Lr(y),(mt&6)===0&&(Ju=zt()+500,Wo(0))}}break;case 31:case 13:O=Aa(y,2),O!==null&&jn(O,y,2),e0(),ed(y,2)}if(y=nd(c),y===null&&Uh(r,a,c,g0,o),y===g)break;g=y}g!==null&&c.stopPropagation()}else Uh(r,a,c,null,o)}}function nd(r){return r=rf(r),rd(r)}var g0=null;function rd(r){if(g0=null,r=Mi(r),r!==null){var a=s(r);if(a===null)r=null;else{var o=a.tag;if(o===13){if(r=u(a),r!==null)return r;r=null}else if(o===31){if(r=f(a),r!==null)return r;r=null}else if(o===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;r=null}else a!==r&&(r=null)}}return g0=r,null}function Tg(r){switch(r){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(Vn()){case fe:return 2;case Ee:return 8;case qe:case Xe:return 32;case rt:return 268435456;default:return 32}default:return 32}}var id=!1,Ki=null,Ji=null,Wi=null,ls=new Map,os=new Map,ea=[],Px="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 Mg(r,a){switch(r){case"focusin":case"focusout":Ki=null;break;case"dragenter":case"dragleave":Ji=null;break;case"mouseover":case"mouseout":Wi=null;break;case"pointerover":case"pointerout":ls.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":os.delete(a.pointerId)}}function ss(r,a,o,c,g,y){return r===null||r.nativeEvent!==y?(r={blockedOn:a,domEventName:o,eventSystemFlags:c,nativeEvent:y,targetContainers:[g]},a!==null&&(a=zi(a),a!==null&&Ag(a)),r):(r.eventSystemFlags|=c,a=r.targetContainers,g!==null&&a.indexOf(g)===-1&&a.push(g),r)}function Zx(r,a,o,c,g){switch(a){case"focusin":return Ki=ss(Ki,r,a,o,c,g),!0;case"dragenter":return Ji=ss(Ji,r,a,o,c,g),!0;case"mouseover":return Wi=ss(Wi,r,a,o,c,g),!0;case"pointerover":var y=g.pointerId;return ls.set(y,ss(ls.get(y)||null,r,a,o,c,g)),!0;case"gotpointercapture":return y=g.pointerId,os.set(y,ss(os.get(y)||null,r,a,o,c,g)),!0}return!1}function zg(r){var a=Mi(r.target);if(a!==null){var o=s(a);if(o!==null){if(a=o.tag,a===13){if(a=u(o),a!==null){r.blockedOn=a,iu(r.priority,function(){Cg(o)});return}}else if(a===31){if(a=f(o),a!==null){r.blockedOn=a,iu(r.priority,function(){Cg(o)});return}}else if(a===3&&o.stateNode.current.memoizedState.isDehydrated){r.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}r.blockedOn=null}function y0(r){if(r.blockedOn!==null)return!1;for(var a=r.targetContainers;0<a.length;){var o=nd(r.nativeEvent);if(o===null){o=r.nativeEvent;var c=new o.constructor(o.type,o);nf=c,o.target.dispatchEvent(c),nf=null}else return a=zi(o),a!==null&&Ag(a),r.blockedOn=o,!1;a.shift()}return!0}function Ng(r,a,o){y0(r)&&o.delete(a)}function Qx(){id=!1,Ki!==null&&y0(Ki)&&(Ki=null),Ji!==null&&y0(Ji)&&(Ji=null),Wi!==null&&y0(Wi)&&(Wi=null),ls.forEach(Ng),os.forEach(Ng)}function v0(r,a){r.blockedOn===a&&(r.blockedOn=null,id||(id=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Qx)))}var x0=null;function Dg(r){x0!==r&&(x0=r,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){x0===r&&(x0=null);for(var a=0;a<r.length;a+=3){var o=r[a],c=r[a+1],g=r[a+2];if(typeof c!="function"){if(rd(c||o)===null)continue;break}var y=zi(o);y!==null&&(r.splice(a,3),a-=3,nh(y,{pending:!0,data:g,method:o.method,action:c},c,g))}}))}function ql(r){function a(Q){return v0(Q,r)}Ki!==null&&v0(Ki,r),Ji!==null&&v0(Ji,r),Wi!==null&&v0(Wi,r),ls.forEach(a),os.forEach(a);for(var o=0;o<ea.length;o++){var c=ea[o];c.blockedOn===r&&(c.blockedOn=null)}for(;0<ea.length&&(o=ea[0],o.blockedOn===null);)zg(o),o.blockedOn===null&&ea.shift();if(o=(r.ownerDocument||r).$$reactFormReplay,o!=null)for(c=0;c<o.length;c+=3){var g=o[c],y=o[c+1],k=g[xn]||null;if(typeof y=="function")k||Dg(o);else if(k){var O=null;if(y&&y.hasAttribute("formAction")){if(g=y,k=y[xn]||null)O=k.formAction;else if(rd(g)!==null)continue}else O=k.action;typeof O=="function"?o[c+1]=O:(o.splice(c,3),c-=3),Dg(o)}}}function _g(){function r(y){y.canIntercept&&y.info==="react-transition"&&y.intercept({handler:function(){return new Promise(function(k){return g=k})},focusReset:"manual",scroll:"manual"})}function a(){g!==null&&(g(),g=null),c||setTimeout(o,20)}function o(){if(!c&&!navigation.transition){var y=navigation.currentEntry;y&&y.url!=null&&navigation.navigate(y.url,{state:y.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var c=!1,g=null;return navigation.addEventListener("navigate",r),navigation.addEventListener("navigatesuccess",a),navigation.addEventListener("navigateerror",a),setTimeout(o,100),function(){c=!0,navigation.removeEventListener("navigate",r),navigation.removeEventListener("navigatesuccess",a),navigation.removeEventListener("navigateerror",a),g!==null&&(g(),g=null)}}}function ad(r){this._internalRoot=r}b0.prototype.render=ad.prototype.render=function(r){var a=this._internalRoot;if(a===null)throw Error(i(409));var o=a.current,c=Kn();kg(o,c,r,a,null,null)},b0.prototype.unmount=ad.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var a=r.containerInfo;kg(r.current,2,null,r,null,null),e0(),a[Zr]=null}};function b0(r){this._internalRoot=r}b0.prototype.unstable_scheduleHydration=function(r){if(r){var a=ru();r={blockedOn:null,target:r,priority:a};for(var o=0;o<ea.length&&a!==0&&a<ea[o].priority;o++);ea.splice(o,0,r),o===0&&zg(r)}};var Og=t.version;if(Og!=="19.2.6")throw Error(i(527,Og,"19.2.6"));Y.findDOMNode=function(r){var a=r._reactInternals;if(a===void 0)throw typeof r.render=="function"?Error(i(188)):(r=Object.keys(r).join(","),Error(i(268,r)));return r=d(a),r=r!==null?p(r):null,r=r===null?null:r.stateNode,r};var Kx={bundleType:0,version:"19.2.6",rendererPackageName:"react-dom",currentDispatcherRef:L,reconcilerVersion:"19.2.6"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var w0=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!w0.isDisabled&&w0.supportsFiber)try{rn=w0.inject(Kx),jt=w0}catch{}}return cs.createRoot=function(r,a){if(!l(r))throw Error(i(299));var o=!1,c="",g=I4,y=U4,k=F4;return a!=null&&(a.unstable_strictMode===!0&&(o=!0),a.identifierPrefix!==void 0&&(c=a.identifierPrefix),a.onUncaughtError!==void 0&&(g=a.onUncaughtError),a.onCaughtError!==void 0&&(y=a.onCaughtError),a.onRecoverableError!==void 0&&(k=a.onRecoverableError)),a=wg(r,1,!1,null,null,o,c,null,g,y,k,_g),r[Zr]=a.current,Ih(r),new ad(a)},cs.hydrateRoot=function(r,a,o){if(!l(r))throw Error(i(299));var c=!1,g="",y=I4,k=U4,O=F4,Q=null;return o!=null&&(o.unstable_strictMode===!0&&(c=!0),o.identifierPrefix!==void 0&&(g=o.identifierPrefix),o.onUncaughtError!==void 0&&(y=o.onUncaughtError),o.onCaughtError!==void 0&&(k=o.onCaughtError),o.onRecoverableError!==void 0&&(O=o.onRecoverableError),o.formState!==void 0&&(Q=o.formState)),a=wg(r,1,!0,a,o??null,c,g,Q,y,k,O,_g),a.context=Sg(null),o=a.current,c=Kn(),c=yo(c),g=qi(c),g.callback=null,Ii(o,g,c),o=c,a.current.lanes=o,Dr(a,o),Lr(a),r[Zr]=a.current,Ih(r),new b0(a)},cs.version="19.2.6",cs}var Vg;function ob(){if(Vg)return sd.exports;Vg=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),sd.exports=lb(),sd.exports}var sb=ob();async function dn(e,t){const n=await fetch(e,{...t,headers:{"Content-Type":"application/json",...t?.headers||{}}});if(!n.ok){const i=await n.json().catch(()=>({}));throw new Error(i.error||n.statusText)}return n.json()}function Va(e){return e instanceof Error?e.message:"Unknown error."}class Vs{constructor(t,n,i){this.normal=n,this.property=t,i&&(this.space=i)}}Vs.prototype.normal={};Vs.prototype.property={};Vs.prototype.space=void 0;function V6(e,t){const n={},i={};for(const l of e)Object.assign(n,l.property),Object.assign(i,l.normal);return new Vs(n,i,t)}function Cs(e){return e.toLowerCase()}class Fn{constructor(t,n){this.attribute=n,this.property=t}}Fn.prototype.attribute="";Fn.prototype.booleanish=!1;Fn.prototype.boolean=!1;Fn.prototype.commaOrSpaceSeparated=!1;Fn.prototype.commaSeparated=!1;Fn.prototype.defined=!1;Fn.prototype.mustUseProperty=!1;Fn.prototype.number=!1;Fn.prototype.overloadedBoolean=!1;Fn.prototype.property="";Fn.prototype.spaceSeparated=!1;Fn.prototype.space=void 0;let ub=0;const We=Ja(),Jt=Ja(),a1=Ja(),Te=Ja(),Nt=Ja(),Xl=Ja(),Jn=Ja();function Ja(){return 2**++ub}const l1=Object.freeze(Object.defineProperty({__proto__:null,boolean:We,booleanish:Jt,commaOrSpaceSeparated:Jn,commaSeparated:Xl,number:Te,overloadedBoolean:a1,spaceSeparated:Nt},Symbol.toStringTag,{value:"Module"})),hd=Object.keys(l1);class J1 extends Fn{constructor(t,n,i,l){let s=-1;if(super(t,n),Yg(this,"space",l),typeof i=="number")for(;++s<hd.length;){const u=hd[s];Yg(this,hd[s],(i&l1[u])===l1[u])}}}J1.prototype.defined=!0;function Yg(e,t,n){n&&(e[t]=n)}function so(e){const t={},n={};for(const[i,l]of Object.entries(e.properties)){const s=new J1(i,e.transform(e.attributes||{},i),l,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(s.mustUseProperty=!0),t[i]=s,n[Cs(i)]=i,n[Cs(s.attribute)]=i}return new Vs(t,n,e.space)}const Y6=so({properties:{ariaActiveDescendant:null,ariaAtomic:Jt,ariaAutoComplete:null,ariaBusy:Jt,ariaChecked:Jt,ariaColCount:Te,ariaColIndex:Te,ariaColSpan:Te,ariaControls:Nt,ariaCurrent:null,ariaDescribedBy:Nt,ariaDetails:null,ariaDisabled:Jt,ariaDropEffect:Nt,ariaErrorMessage:null,ariaExpanded:Jt,ariaFlowTo:Nt,ariaGrabbed:Jt,ariaHasPopup:null,ariaHidden:Jt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Nt,ariaLevel:Te,ariaLive:null,ariaModal:Jt,ariaMultiLine:Jt,ariaMultiSelectable:Jt,ariaOrientation:null,ariaOwns:Nt,ariaPlaceholder:null,ariaPosInSet:Te,ariaPressed:Jt,ariaReadOnly:Jt,ariaRelevant:null,ariaRequired:Jt,ariaRoleDescription:Nt,ariaRowCount:Te,ariaRowIndex:Te,ariaRowSpan:Te,ariaSelected:Jt,ariaSetSize:Te,ariaSort:null,ariaValueMax:Te,ariaValueMin:Te,ariaValueNow:Te,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function G6(e,t){return t in e?e[t]:t}function $6(e,t){return G6(e,t.toLowerCase())}const cb=so({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Xl,acceptCharset:Nt,accessKey:Nt,action:null,allow:null,allowFullScreen:We,allowPaymentRequest:We,allowUserMedia:We,alt:null,as:null,async:We,autoCapitalize:null,autoComplete:Nt,autoFocus:We,autoPlay:We,blocking:Nt,capture:null,charSet:null,checked:We,cite:null,className:Nt,cols:Te,colSpan:null,content:null,contentEditable:Jt,controls:We,controlsList:Nt,coords:Te|Xl,crossOrigin:null,data:null,dateTime:null,decoding:null,default:We,defer:We,dir:null,dirName:null,disabled:We,download:a1,draggable:Jt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:We,formTarget:null,headers:Nt,height:Te,hidden:a1,high:Te,href:null,hrefLang:null,htmlFor:Nt,httpEquiv:Nt,id:null,imageSizes:null,imageSrcSet:null,inert:We,inputMode:null,integrity:null,is:null,isMap:We,itemId:null,itemProp:Nt,itemRef:Nt,itemScope:We,itemType:Nt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:We,low:Te,manifest:null,max:null,maxLength:Te,media:null,method:null,min:null,minLength:Te,multiple:We,muted:We,name:null,nonce:null,noModule:We,noValidate:We,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:We,optimum:Te,pattern:null,ping:Nt,placeholder:null,playsInline:We,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:We,referrerPolicy:null,rel:Nt,required:We,reversed:We,rows:Te,rowSpan:Te,sandbox:Nt,scope:null,scoped:We,seamless:We,selected:We,shadowRootClonable:We,shadowRootDelegatesFocus:We,shadowRootMode:null,shape:null,size:Te,sizes:null,slot:null,span:Te,spellCheck:Jt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Te,step:null,style:null,tabIndex:Te,target:null,title:null,translate:null,type:null,typeMustMatch:We,useMap:null,value:Jt,width:Te,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Nt,axis:null,background:null,bgColor:null,border:Te,borderColor:null,bottomMargin:Te,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:We,declare:We,event:null,face:null,frame:null,frameBorder:null,hSpace:Te,leftMargin:Te,link:null,longDesc:null,lowSrc:null,marginHeight:Te,marginWidth:Te,noResize:We,noHref:We,noShade:We,noWrap:We,object:null,profile:null,prompt:null,rev:null,rightMargin:Te,rules:null,scheme:null,scrolling:Jt,standby:null,summary:null,text:null,topMargin:Te,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Te,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:We,disableRemotePlayback:We,prefix:null,property:null,results:Te,security:null,unselectable:null},space:"html",transform:$6}),fb=so({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:Jn,accentHeight:Te,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Te,amplitude:Te,arabicForm:null,ascent:Te,attributeName:null,attributeType:null,azimuth:Te,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Te,by:null,calcMode:null,capHeight:Te,className:Nt,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:Te,diffuseConstant:Te,direction:null,display:null,dur:null,divisor:Te,dominantBaseline:null,download:We,dx:null,dy:null,edgeMode:null,editable:null,elevation:Te,enableBackground:null,end:null,event:null,exponent:Te,externalResourcesRequired:null,fill:null,fillOpacity:Te,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:Xl,g2:Xl,glyphName:Xl,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Te,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Te,horizOriginX:Te,horizOriginY:Te,id:null,ideographic:Te,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Te,k:Te,k1:Te,k2:Te,k3:Te,k4:Te,kernelMatrix:Jn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Te,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:Te,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:Te,overlineThickness:Te,paintOrder:null,panose1:null,path:null,pathLength:Te,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Nt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Te,pointsAtY:Te,pointsAtZ:Te,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Jn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Jn,rev:Jn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Jn,requiredFeatures:Jn,requiredFonts:Jn,requiredFormats:Jn,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:Te,specularExponent:Te,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Te,strikethroughThickness:Te,string:null,stroke:null,strokeDashArray:Jn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Te,strokeOpacity:Te,strokeWidth:null,style:null,surfaceScale:Te,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Jn,tabIndex:Te,tableValues:null,target:null,targetX:Te,targetY:Te,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Jn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Te,underlineThickness:Te,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Te,values:null,vAlphabetic:Te,vMathematical:Te,vectorEffect:null,vHanging:Te,vIdeographic:Te,version:null,vertAdvY:Te,vertOriginX:Te,vertOriginY:Te,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Te,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:G6}),X6=so({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),P6=so({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:$6}),Z6=so({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),hb={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"},db=/[A-Z]/g,Gg=/-[a-z]/g,mb=/^data[-\w.:]+$/i;function Q6(e,t){const n=Cs(t);let i=t,l=Fn;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&mb.test(t)){if(t.charAt(4)==="-"){const s=t.slice(5).replace(Gg,gb);i="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=t.slice(4);if(!Gg.test(s)){let u=s.replace(db,pb);u.charAt(0)!=="-"&&(u="-"+u),t="data"+u}}l=J1}return new l(i,t)}function pb(e){return"-"+e.toLowerCase()}function gb(e){return e.charAt(1).toUpperCase()}const K6=V6([Y6,cb,X6,P6,Z6],"html"),xc=V6([Y6,fb,X6,P6,Z6],"svg");function $g(e){const t=[],n=String(e||"");let i=n.indexOf(","),l=0,s=!1;for(;!s;){i===-1&&(i=n.length,s=!0);const u=n.slice(l,i).trim();(u||!s)&&t.push(u),l=i+1,i=n.indexOf(",",l)}return t}function yb(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Xg=/[#.]/g;function vb(e,t){const n=e||"",i={};let l=0,s,u;for(;l<n.length;){Xg.lastIndex=l;const f=Xg.exec(n),h=n.slice(l,f?f.index:n.length);h&&(s?s==="#"?i.id=h:Array.isArray(i.className)?i.className.push(h):i.className=[h]:u=h,l+=h.length),f&&(s=f[0],l++)}return{type:"element",tagName:u||t||"div",properties:i,children:[]}}function Pg(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function xb(e){return e.join(" ").trim()}function J6(e,t,n){const i=n?kb(n):void 0;function l(s,u,...f){let h;if(s==null){h={type:"root",children:[]};const d=u;f.unshift(d)}else{h=vb(s,t);const d=h.tagName.toLowerCase(),p=i?i.get(d):void 0;if(h.tagName=p||d,bb(u))f.unshift(u);else for(const[m,v]of Object.entries(u))wb(e,h.properties,m,v)}for(const d of f)o1(h.children,d);return h.type==="element"&&h.tagName==="template"&&(h.content={type:"root",children:h.children},h.children=[]),h}return l}function bb(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,n=Object.keys(e);for(const i of n){const l=t[i];if(l&&typeof l=="object"){if(!Array.isArray(l))return!0;const s=l;for(const u of s)if(typeof u!="number"&&typeof u!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function wb(e,t,n,i){const l=Q6(e,n);let s;if(i!=null){if(typeof i=="number"){if(Number.isNaN(i))return;s=i}else typeof i=="boolean"?s=i:typeof i=="string"?l.spaceSeparated?s=Pg(i):l.commaSeparated?s=$g(i):l.commaOrSpaceSeparated?s=Pg($g(i).join(" ")):s=Zg(l,l.property,i):Array.isArray(i)?s=[...i]:s=l.property==="style"?Sb(i):String(i);if(Array.isArray(s)){const u=[];for(const f of s)u.push(Zg(l,l.property,f));s=u}l.property==="className"&&Array.isArray(t.className)&&(s=t.className.concat(s)),t[l.property]=s}}function o1(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const n of t)o1(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?o1(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function Zg(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||Cs(n)===Cs(t)))return!0}return n}function Sb(e){const t=[];for(const[n,i]of Object.entries(e))t.push([n,i].join(": "));return t.join("; ")}function kb(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const Eb=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],Ab=J6(K6,"div"),Cb=J6(xc,"g",Eb),dd={html:"http://www.w3.org/1999/xhtml",svg:"http://www.w3.org/2000/svg"};function Tb(e,t){return W6(e,{})||{type:"root",children:[]}}function W6(e,t){const n=Mb(e,t);return n&&t.afterTransform&&t.afterTransform(e,n),n}function Mb(e,t){switch(e.nodeType){case 1:return _b(e,t);case 3:return Nb(e);case 8:return Db(e);case 9:return Qg(e,t);case 10:return zb();case 11:return Qg(e,t);default:return}}function Qg(e,t){return{type:"root",children:e7(e,t)}}function zb(){return{type:"doctype"}}function Nb(e){return{type:"text",value:e.nodeValue||""}}function Db(e){return{type:"comment",value:e.nodeValue||""}}function _b(e,t){const n=e.namespaceURI,i=n===dd.svg?Cb:Ab,l=n===dd.html?e.tagName.toLowerCase():e.tagName,s=n===dd.html&&l==="template"?e.content:e,u=e.getAttributeNames(),f={};let h=-1;for(;++h<u.length;)f[u[h]]=e.getAttribute(u[h])||"";return i(l,f,e7(s,t))}function e7(e,t){const n=e.childNodes,i=[];let l=-1;for(;++l<n.length;){const s=W6(n[l],t);s!==void 0&&i.push(s)}return i}new DOMParser;function Ob(e,t){const n=Rb(e);return Tb(n)}function Rb(e){const t=document.createElement("template");return t.innerHTML=e,t.content}const Ys=(function(e){if(e==null)return jb;if(typeof e=="function")return bc(e);if(typeof e=="object")return Array.isArray(e)?Bb(e):Lb(e);if(typeof e=="string")return Hb(e);throw new Error("Expected function, string, or object as test")});function Bb(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Ys(e[n]);return bc(i);function i(...l){let s=-1;for(;++s<t.length;)if(t[s].apply(this,l))return!0;return!1}}function Lb(e){const t=e;return bc(n);function n(i){const l=i;let s;for(s in e)if(l[s]!==t[s])return!1;return!0}}function Hb(e){return bc(t);function t(n){return n&&n.type===e}}function bc(e){return t;function t(n,i,l){return!!(qb(n)&&e.call(this,n,typeof i=="number"?i:void 0,l||void 0))}}function jb(){return!0}function qb(e){return e!==null&&typeof e=="object"&&"type"in e}const Kg=(function(e,t,n){const i=Ys(n);if(!e||!e.type||!e.children)throw new Error("Expected parent node");if(typeof t=="number"){if(t<0||t===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(t=e.children.indexOf(t),t<0)throw new Error("Expected child node or index");for(;++t<e.children.length;)if(i(e.children[t],t,e))return e.children[t]}),Wa=(function(e){if(e==null)return Fb;if(typeof e=="string")return Ub(e);if(typeof e=="object")return Ib(e);if(typeof e=="function")return W1(e);throw new Error("Expected function, string, or array as `test`")});function Ib(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Wa(e[n]);return W1(i);function i(...l){let s=-1;for(;++s<t.length;)if(t[s].apply(this,l))return!0;return!1}}function Ub(e){return W1(t);function t(n){return n.tagName===e}}function W1(e){return t;function t(n,i,l){return!!(Vb(n)&&e.call(this,n,typeof i=="number"?i:void 0,l||void 0))}}function Fb(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function Vb(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}const Jg=/\n/g,Wg=/[\t ]+/g,s1=Wa("br"),e3=Wa(Kb),Yb=Wa("p"),t3=Wa("tr"),Gb=Wa(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",Qb,Jb]),t7=Wa(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function $b(e,t){const n=t||{},i="children"in e?e.children:[],l=t7(e),s=i7(e,{whitespace:n.whitespace||"normal"}),u=[];(e.type==="text"||e.type==="comment")&&u.push(...r7(e,{breakBefore:!0,breakAfter:!0}));let f=-1;for(;++f<i.length;)u.push(...n7(i[f],e,{whitespace:s,breakBefore:f?void 0:l,breakAfter:f<i.length-1?s1(i[f+1]):l}));const h=[];let d;for(f=-1;++f<u.length;){const p=u[f];typeof p=="number"?d!==void 0&&p>d&&(d=p):p&&(d!==void 0&&d>-1&&h.push(`
|
|
10
|
+
`.repeat(d)||" "),d=-1,h.push(p))}return h.join("")}function n7(e,t,n){return e.type==="element"?Xb(e,t,n):e.type==="text"?n.whitespace==="normal"?r7(e,n):Pb(e):[]}function Xb(e,t,n){const i=i7(e,n),l=e.children||[];let s=-1,u=[];if(Gb(e))return u;let f,h;for(s1(e)||t3(e)&&Kg(t,e,t3)?h=`
|
|
11
|
+
`:Yb(e)?(f=2,h=2):t7(e)&&(f=1,h=1);++s<l.length;)u=u.concat(n7(l[s],e,{whitespace:i,breakBefore:s?void 0:f,breakAfter:s<l.length-1?s1(l[s+1]):h}));return e3(e)&&Kg(t,e,e3)&&u.push(" "),f&&u.unshift(f),h&&u.push(h),u}function r7(e,t){const n=String(e.value),i=[],l=[];let s=0;for(;s<=n.length;){Jg.lastIndex=s;const h=Jg.exec(n),d=h&&"index"in h?h.index:n.length;i.push(Zb(n.slice(s,d).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),s===0?t.breakBefore:!0,d===n.length?t.breakAfter:!0)),s=d+1}let u=-1,f;for(;++u<i.length;)i[u].charCodeAt(i[u].length-1)===8203||u<i.length-1&&i[u+1].charCodeAt(0)===8203?(l.push(i[u]),f=void 0):i[u]?(typeof f=="number"&&l.push(f),l.push(i[u]),f=0):(u===0||u===i.length-1)&&l.push(0);return l}function Pb(e){return[String(e.value)]}function Zb(e,t,n){const i=[];let l=0,s;for(;l<e.length;){Wg.lastIndex=l;const u=Wg.exec(e);s=u?u.index:e.length,!l&&!s&&u&&!t&&i.push(""),l!==s&&i.push(e.slice(l,s)),l=u?s+u[0].length:s}return l!==s&&!n&&i.push(""),i.join(" ")}function i7(e,t){if(e.type==="element"){const n=e.properties||{};switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return n.wrap?"pre-wrap":"pre";case"td":case"th":return n.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap"}}return t.whitespace}function Qb(e){return!!(e.properties||{}).hidden}function Kb(e){return e.tagName==="td"||e.tagName==="th"}function Jb(e){return e.tagName==="dialog"&&!(e.properties||{}).open}class Ae extends Error{constructor(t,n){var i="KaTeX parse error: "+t,l,s,u=n&&n.loc;if(u&&u.start<=u.end){var f=u.lexer.input;l=u.start,s=u.end,l===f.length?i+=" at end of input: ":i+=" at position "+(l+1)+": ";var h=f.slice(l,s).replace(/[^]/g,"$&̲"),d;l>15?d="…"+f.slice(l-15,l):d=f.slice(0,l);var p;s+15<f.length?p=f.slice(s,s+15)+"…":p=f.slice(s),i+=d+h+p}super(i),this.name="ParseError",this.position=void 0,this.length=void 0,this.rawMessage=void 0,Object.setPrototypeOf(this,Ae.prototype),this.position=l,l!=null&&s!=null&&(this.length=s-l),this.rawMessage=t}}var Wb=/([A-Z])/g,ew=e=>e.replace(Wb,"-$1").toLowerCase(),tw={"&":"&",">":">","<":"<",'"':""","'":"'"},nw=/[&><"']/g,Sn=e=>String(e).replace(nw,t=>tw[t]),V0=e=>e.type==="ordgroup"||e.type==="color"?e.body.length===1?V0(e.body[0]):e:e.type==="font"?V0(e.body):e,rw=new Set(["mathord","textord","atom"]),ki=e=>rw.has(V0(e).type),iw=e=>{var t=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return t?t[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?null:t[1].toLowerCase():"_relative"},u1={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand <n>",cliProcessor:e=>e==="Infinity"?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function aw(e){if(typeof e!="string")return e.enum[0];switch(e){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{};default:throw new Error("Unexpected schema type; settings must declare an explicit default.")}}function lw(e){if(e.default!==void 0)return e.default;var t=Array.isArray(e.type)?e.type[0]:e.type;return aw(t)}function ow(e,t,n,i){var l=n[t];e[t]=l!==void 0?i.processor?i.processor(l):l:lw(i)}class em{constructor(t){t===void 0&&(t={}),this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,t=t||{};for(var n of Object.keys(u1)){var i=u1[n];i&&ow(this,n,t,i)}}reportNonstrict(t,n,i){var l=this.strict;if(typeof l=="function"&&(l=l(t,n,i)),!(!l||l==="ignore")){if(l===!0||l==="error")throw new Ae("LaTeX-incompatible input and strict mode is set to 'error': "+(n+" ["+t+"]"),i);l==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+t+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+l+"': "+n+" ["+t+"]"))}}useStrictBehavior(t,n,i){var l=this.strict;if(typeof l=="function")try{l=l(t,n,i)}catch{l="error"}return!l||l==="ignore"?!1:l===!0||l==="error"?!0:l==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+t+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+l+"': "+n+" ["+t+"]")),!1)}isTrusted(t){if("url"in t&&t.url&&!t.protocol){var n=iw(t.url);if(n==null)return!1;t.protocol=n}var i=typeof this.trust=="function"?this.trust(t):this.trust;return!!i}}class na{constructor(t,n,i){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=t,this.size=n,this.cramped=i}sup(){return jr[sw[this.id]]}sub(){return jr[uw[this.id]]}fracNum(){return jr[cw[this.id]]}fracDen(){return jr[fw[this.id]]}cramp(){return jr[hw[this.id]]}text(){return jr[dw[this.id]]}isTight(){return this.size>=2}}var tm=0,J0=1,Pl=2,xi=3,Ts=4,pr=5,Kl=6,Mn=7,jr=[new na(tm,0,!1),new na(J0,0,!0),new na(Pl,1,!1),new na(xi,1,!0),new na(Ts,2,!1),new na(pr,2,!0),new na(Kl,3,!1),new na(Mn,3,!0)],sw=[Ts,pr,Ts,pr,Kl,Mn,Kl,Mn],uw=[pr,pr,pr,pr,Mn,Mn,Mn,Mn],cw=[Pl,xi,Ts,pr,Kl,Mn,Kl,Mn],fw=[xi,xi,pr,pr,Mn,Mn,Mn,Mn],hw=[J0,J0,xi,xi,pr,pr,Mn,Mn],dw=[tm,J0,Pl,xi,Pl,xi,Pl,xi],Pe={DISPLAY:jr[tm],TEXT:jr[Pl],SCRIPT:jr[Ts],SCRIPTSCRIPT:jr[Kl]},c1=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function mw(e){for(var t=0;t<c1.length;t++)for(var n=c1[t],i=0;i<n.blocks.length;i++){var l=n.blocks[i];if(e>=l[0]&&e<=l[1])return n.name}return null}var Y0=[];c1.forEach(e=>e.blocks.forEach(t=>Y0.push(...t)));function a7(e){for(var t=0;t<Y0.length;t+=2)if(e>=Y0[t]&&e<=Y0[t+1])return!0;return!1}var un=e=>e+" "+e,Il=80,pw=function(t,n){return"M95,"+(622+t+n)+`
|
|
12
|
+
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
|
|
13
|
+
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
|
|
14
|
+
c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
|
|
15
|
+
s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
|
|
16
|
+
c69,-144,104.5,-217.7,106.5,-221
|
|
17
|
+
l`+t/2.075+" -"+t+`
|
|
18
|
+
c5.3,-9.3,12,-14,20,-14
|
|
19
|
+
H400000v`+(40+t)+`H845.2724
|
|
20
|
+
s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
|
|
21
|
+
c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
|
|
22
|
+
M`+(834+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},gw=function(t,n){return"M263,"+(601+t+n)+`c0.7,0,18,39.7,52,119
|
|
23
|
+
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
|
|
24
|
+
c340,-704.7,510.7,-1060.3,512,-1067
|
|
25
|
+
l`+t/2.084+" -"+t+`
|
|
26
|
+
c4.7,-7.3,11,-11,19,-11
|
|
27
|
+
H40000v`+(40+t)+`H1012.3
|
|
28
|
+
s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
|
|
29
|
+
c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
|
|
30
|
+
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
|
|
31
|
+
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
|
|
32
|
+
M`+(1001+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},yw=function(t,n){return"M983 "+(10+t+n)+`
|
|
33
|
+
l`+t/3.13+" -"+t+`
|
|
34
|
+
c4,-6.7,10,-10,18,-10 H400000v`+(40+t)+`
|
|
35
|
+
H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
|
|
36
|
+
s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744
|
|
37
|
+
c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
|
|
38
|
+
c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
|
|
39
|
+
c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
|
|
40
|
+
c53.7,-170.3,84.5,-266.8,92.5,-289.5z
|
|
41
|
+
M`+(1001+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},vw=function(t,n){return"M424,"+(2398+t+n)+`
|
|
42
|
+
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
|
|
43
|
+
c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
|
|
44
|
+
s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
|
|
45
|
+
s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
|
|
46
|
+
l`+t/4.223+" -"+t+`c4,-6.7,10,-10,18,-10 H400000
|
|
47
|
+
v`+(40+t)+`H1014.6
|
|
48
|
+
s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
|
|
49
|
+
c-2,6,-10,9,-24,9
|
|
50
|
+
c-8,0,-12,-0.7,-12,-2z M`+(1001+t)+" "+n+`
|
|
51
|
+
h400000v`+(40+t)+"h-400000z"},xw=function(t,n){return"M473,"+(2713+t+n)+`
|
|
52
|
+
c339.3,-1799.3,509.3,-2700,510,-2702 l`+t/5.298+" -"+t+`
|
|
53
|
+
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+t)+`H1017.7
|
|
54
|
+
s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
|
|
55
|
+
c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
|
|
56
|
+
c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
|
|
57
|
+
s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
|
|
58
|
+
606zM`+(1001+t)+" "+n+"h400000v"+(40+t)+"H1017.7z"},bw=function(t){var n=t/2;return"M400000 "+t+" H0 L"+n+" 0 l65 45 L145 "+(t-80)+" H400000z"},ww=function(t,n,i){var l=i-54-n-t;return"M702 "+(t+n)+"H400000"+(40+t)+`
|
|
59
|
+
H742v`+l+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
|
|
60
|
+
h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
|
|
61
|
+
c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
|
|
62
|
+
219 661 l218 661zM702 `+n+"H400000v"+(40+t)+"H742z"},Sw=function(t,n,i){n=1e3*n;var l="";switch(t){case"sqrtMain":l=pw(n,Il);break;case"sqrtSize1":l=gw(n,Il);break;case"sqrtSize2":l=yw(n,Il);break;case"sqrtSize3":l=vw(n,Il);break;case"sqrtSize4":l=xw(n,Il);break;case"sqrtTall":l=ww(n,Il,i)}return l},kw=function(t,n){switch(t){case"⎜":return un("M291 0 H417 V"+n+" H291z");case"∣":return un("M145 0 H188 V"+n+" H145z");case"∥":return un("M145 0 H188 V"+n+" H145z")+un("M367 0 H410 V"+n+" H367z");case"⎟":return un("M457 0 H583 V"+n+" H457z");case"⎢":return un("M319 0 H403 V"+n+" H319z");case"⎥":return un("M263 0 H347 V"+n+" H263z");case"⎪":return un("M384 0 H504 V"+n+" H384z");case"⏐":return un("M312 0 H355 V"+n+" H312z");case"‖":return un("M257 0 H300 V"+n+" H257z")+un("M478 0 H521 V"+n+" H478z");default:return""}},n3={doubleleftarrow:`M262 157
|
|
63
|
+
l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
|
|
64
|
+
0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28
|
|
65
|
+
14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5
|
|
66
|
+
c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
|
|
67
|
+
157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87
|
|
68
|
+
-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
|
|
69
|
+
-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
|
|
70
|
+
m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
|
|
71
|
+
-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5
|
|
72
|
+
14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88
|
|
73
|
+
-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68
|
|
74
|
+
-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18
|
|
75
|
+
-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
|
|
76
|
+
c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3
|
|
77
|
+
-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
|
|
78
|
+
135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8
|
|
79
|
+
-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247
|
|
80
|
+
c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208
|
|
81
|
+
490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3
|
|
82
|
+
1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202
|
|
83
|
+
l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
|
|
84
|
+
-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
|
|
85
|
+
5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13
|
|
86
|
+
35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688
|
|
87
|
+
0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
|
|
88
|
+
-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
|
|
89
|
+
H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0
|
|
90
|
+
435 0h399565z`,leftgroupunder:`M400000 262
|
|
91
|
+
H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
|
|
92
|
+
435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
|
|
93
|
+
-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5
|
|
94
|
+
-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7
|
|
95
|
+
-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5
|
|
96
|
+
20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3
|
|
97
|
+
-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7
|
|
98
|
+
-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
|
|
99
|
+
m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
|
|
100
|
+
5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
|
|
101
|
+
1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667
|
|
102
|
+
-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12
|
|
103
|
+
10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7
|
|
104
|
+
-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
|
|
105
|
+
v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
|
|
106
|
+
-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3
|
|
107
|
+
-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
|
|
108
|
+
71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:un("M40 281 V428 H0 V94 H40 V241 H400000 v40z"),leftbracketunder:un("M0 0 h120 V290 H399995 v120 H0z"),leftbracketover:un("M0 440 h120 V150 H399995 v-120 H0z"),leftmapsto:un("M40 281 V448H0V74H40V241H400000v40z"),leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
|
|
109
|
+
-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
|
|
110
|
+
c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3
|
|
111
|
+
68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:un("M0 50 h400000 v40H0z m0 194h40000v40H0z"),midbrace:`M200428 334
|
|
112
|
+
c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14
|
|
113
|
+
-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
|
|
114
|
+
311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11
|
|
115
|
+
12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
|
|
116
|
+
c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14
|
|
117
|
+
53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
|
|
118
|
+
11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0
|
|
119
|
+
-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6
|
|
120
|
+
-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
|
|
121
|
+
m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8
|
|
122
|
+
60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8
|
|
123
|
+
-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
|
|
124
|
+
m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
|
|
125
|
+
c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6
|
|
126
|
+
-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
|
|
127
|
+
m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
|
|
128
|
+
85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8
|
|
129
|
+
-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
|
|
130
|
+
m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
|
|
131
|
+
c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128
|
|
132
|
+
-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20
|
|
133
|
+
11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7
|
|
134
|
+
39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85
|
|
135
|
+
-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
|
|
136
|
+
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
|
|
137
|
+
151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
|
|
138
|
+
-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5
|
|
139
|
+
s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
|
|
140
|
+
c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3
|
|
141
|
+
28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
|
|
142
|
+
-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
|
|
143
|
+
3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18
|
|
144
|
+
0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3
|
|
145
|
+
-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2
|
|
146
|
+
-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
|
|
147
|
+
69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11
|
|
148
|
+
-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7
|
|
149
|
+
2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z
|
|
150
|
+
m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8
|
|
151
|
+
8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5
|
|
152
|
+
-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95
|
|
153
|
+
-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8
|
|
154
|
+
15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3
|
|
155
|
+
8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3
|
|
156
|
+
-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
|
|
157
|
+
m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3
|
|
158
|
+
15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0
|
|
159
|
+
-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
|
|
160
|
+
66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:un("M399960 241 V94 h40 V428 h-40 V281 H0 v-40z"),rightbracketunder:un("M399995 0 h-120 V290 H0 v120 H400000z"),rightbracketover:un("M399995 440 h-120 V150 H0 v-120 H399995z"),rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
|
|
161
|
+
1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
|
|
162
|
+
-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142
|
|
163
|
+
-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
|
|
164
|
+
115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69
|
|
165
|
+
-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
|
|
166
|
+
-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
|
|
167
|
+
-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
|
|
168
|
+
10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167
|
|
169
|
+
c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3
|
|
170
|
+
41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42
|
|
171
|
+
18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
|
|
172
|
+
-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
|
|
173
|
+
101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7
|
|
174
|
+
-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0
|
|
175
|
+
114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0
|
|
176
|
+
4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
|
|
177
|
+
-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
|
|
178
|
+
-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9
|
|
179
|
+
31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
|
|
180
|
+
c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751
|
|
181
|
+
181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457
|
|
182
|
+
-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
|
|
183
|
+
411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
|
|
184
|
+
16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
|
|
185
|
+
-338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
|
|
186
|
+
-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
|
|
187
|
+
177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
|
|
188
|
+
14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
|
|
189
|
+
-175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5
|
|
190
|
+
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
|
|
191
|
+
10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
|
|
192
|
+
-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1
|
|
193
|
+
-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
|
|
194
|
+
H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
|
|
195
|
+
c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
|
|
196
|
+
c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
197
|
+
-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
198
|
+
-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
199
|
+
-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,
|
|
200
|
+
-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
201
|
+
-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
202
|
+
-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
203
|
+
-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202
|
|
204
|
+
c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
|
|
205
|
+
c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130
|
|
206
|
+
s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47
|
|
207
|
+
121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6
|
|
208
|
+
s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11
|
|
209
|
+
c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
|
|
210
|
+
M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
|
|
211
|
+
-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0
|
|
212
|
+
13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39
|
|
213
|
+
-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5
|
|
214
|
+
-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
|
|
215
|
+
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
|
|
216
|
+
151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|
217
|
+
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
|
|
218
|
+
c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21
|
|
219
|
+
c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
|
|
220
|
+
c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
|
|
221
|
+
M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
|
|
222
|
+
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
|
223
|
+
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
|
|
224
|
+
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
|
|
225
|
+
M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|
226
|
+
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,
|
|
227
|
+
1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,
|
|
228
|
+
-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
|
|
229
|
+
M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0
|
|
230
|
+
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
|
231
|
+
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
|
|
232
|
+
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
|
|
233
|
+
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},Ew=function(t,n){switch(t){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+n+` v1759 h347 v-84
|
|
234
|
+
H403z M403 1759 V0 H319 V1759 v`+n+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+n+` v1759 H0 v84 H347z
|
|
235
|
+
M347 1759 V0 H263 V1759 v`+n+" v1759 h84z";case"vert":return"M145 15 v585 v"+n+` v585 c2.667,10,9.667,15,21,15
|
|
236
|
+
c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
237
|
+
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+n+" v585 h43z";case"doublevert":return"M145 15 v585 v"+n+` v585 c2.667,10,9.667,15,21,15
|
|
238
|
+
c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
239
|
+
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+n+` v585 h43z
|
|
240
|
+
M367 15 v585 v`+n+` v585 c2.667,10,9.667,15,21,15
|
|
241
|
+
c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
242
|
+
c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+n+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+n+` v1715 h263 v84 H319z
|
|
243
|
+
MM319 602 V0 H403 V602 v`+n+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+n+` v1799 H0 v-84 H319z
|
|
244
|
+
MM319 602 V0 H403 V602 v`+n+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+n+` v602 h84z
|
|
245
|
+
M403 1759 V0 H319 V1759 v`+n+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+n+` v602 h84z
|
|
246
|
+
M347 1759 V0 h-84 V1759 v`+n+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1
|
|
247
|
+
c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,
|
|
248
|
+
-36,557 l0,`+(n+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
|
|
249
|
+
949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9
|
|
250
|
+
c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,
|
|
251
|
+
-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
|
|
252
|
+
l0,-`+(n+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
|
|
253
|
+
-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case"rparen":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,
|
|
254
|
+
63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
|
|
255
|
+
c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(n+9)+`
|
|
256
|
+
c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664
|
|
257
|
+
c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11
|
|
258
|
+
c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17
|
|
259
|
+
c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
|
|
260
|
+
l0,-`+(n+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
261
|
+
-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};function Aw(e){return"toText"in e}class uo{constructor(t){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=t,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(t){return this.classes.includes(t)}toNode(){for(var t=document.createDocumentFragment(),n=0;n<this.children.length;n++)t.appendChild(this.children[n].toNode());return t}toMarkup(){for(var t="",n=0;n<this.children.length;n++)t+=this.children[n].toMarkup();return t}toText(){return this.children.map(t=>{if(Aw(t))return t.toText();throw new Error("Expected MathDomNode with toText, got "+t.constructor.name)}).join("")}}var f1={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},Cw={ex:!0,em:!0,mu:!0},l7=function(t){return typeof t!="string"&&(t=t.unit),t in f1||t in Cw||t==="ex"},Ut=function(t,n){var i;if(t.unit in f1)i=f1[t.unit]/n.fontMetrics().ptPerEm/n.sizeMultiplier;else if(t.unit==="mu")i=n.fontMetrics().cssEmPerMu;else{var l;if(n.style.isTight()?l=n.havingStyle(n.style.text()):l=n,t.unit==="ex")i=l.fontMetrics().xHeight;else if(t.unit==="em")i=l.fontMetrics().quad;else throw new Ae("Invalid unit: '"+t.unit+"'");l!==n&&(i*=l.sizeMultiplier/n.sizeMultiplier)}return Math.min(t.number*i,n.maxSize)},Me=function(t){return+t.toFixed(4)+"em"},fa=function(t){return t.filter(n=>n).join(" ")},nm=function(t){var n="";for(var i of Object.keys(t)){var l=t[i];l!==void 0&&(n+=ew(i)+":"+l+";")}return n},o7=function(t,n,i){if(this.classes=t||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=i||{},n){n.style.isTight()&&this.classes.push("mtight");var l=n.getColor();l&&(this.style.color=l)}},s7=function(t){var n=document.createElement(t);n.className=fa(this.classes),Object.assign(n.style,this.style);for(var i of Object.keys(this.attributes))n.setAttribute(i,this.attributes[i]);for(var l=0;l<this.children.length;l++)n.appendChild(this.children[l].toNode());return n},Tw=/[\s"'>/=\x00-\x1f]/,u7=function(t){var n="<"+t;this.classes.length&&(n+=' class="'+Sn(fa(this.classes))+'"');var i=nm(this.style);i&&(n+=' style="'+Sn(i)+'"');for(var l of Object.keys(this.attributes)){if(Tw.test(l))throw new Ae("Invalid attribute name '"+l+"'");n+=" "+l+'="'+Sn(this.attributes[l])+'"'}n+=">";for(var s=0;s<this.children.length;s++)n+=this.children[s].toMarkup();return n+="</"+t+">",n};class co{constructor(t,n,i,l){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,this.italic=void 0,o7.call(this,t,i,l),this.children=n||[]}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return this.classes.includes(t)}toNode(){return s7.call(this,"span")}toMarkup(){return u7.call(this,"span")}}class wc{constructor(t,n,i,l){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,o7.call(this,n,l),this.children=i||[],this.setAttribute("href",t)}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return this.classes.includes(t)}toNode(){return s7.call(this,"a")}toMarkup(){return u7.call(this,"a")}}class Mw{constructor(t,n,i){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=n,this.src=t,this.classes=["mord"],this.height=0,this.depth=0,this.maxFontSize=0,this.style=i}hasClass(t){return this.classes.includes(t)}toNode(){var t=document.createElement("img");return t.src=this.src,t.alt=this.alt,t.className="mord",Object.assign(t.style,this.style),t}toMarkup(){var t='<img src="'+Sn(this.src)+'"'+(' alt="'+Sn(this.alt)+'"'),n=nm(this.style);return n&&(t+=' style="'+Sn(n)+'"'),t+="'/>",t}}var zw={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};class nr{constructor(t,n,i,l,s,u,f,h){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=t,this.height=n||0,this.depth=i||0,this.italic=l||0,this.skew=s||0,this.width=u||0,this.classes=f||[],this.style=h||{},this.maxFontSize=0;var d=mw(this.text.charCodeAt(0));d&&this.classes.push(d+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=zw[this.text])}hasClass(t){return this.classes.includes(t)}toNode(){var t=document.createTextNode(this.text),n=null;return this.italic>0&&(n=document.createElement("span"),n.style.marginRight=Me(this.italic)),this.classes.length>0&&(n=n||document.createElement("span"),n.className=fa(this.classes)),Object.keys(this.style).length>0&&(n=n||document.createElement("span"),Object.assign(n.style,this.style)),n?(n.appendChild(t),n):t}toMarkup(){var t=!1,n="<span";this.classes.length&&(t=!0,n+=' class="',n+=Sn(fa(this.classes)),n+='"');var i="";this.italic>0&&(i+="margin-right:"+Me(this.italic)+";"),i+=nm(this.style),i&&(t=!0,n+=' style="'+Sn(i)+'"');var l=Sn(this.text);return t?(n+=">",n+=l,n+="</span>",n):l}}class bi{constructor(t,n){this.children=void 0,this.attributes=void 0,this.children=t||[],this.attributes=n||{}}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"svg");for(var i of Object.keys(this.attributes))n.setAttribute(i,this.attributes[i]);for(var l=0;l<this.children.length;l++)n.appendChild(this.children[l].toNode());return n}toMarkup(){var t='<svg xmlns="http://www.w3.org/2000/svg"';for(var n of Object.keys(this.attributes))t+=" "+n+'="'+Sn(this.attributes[n])+'"';t+=">";for(var i=0;i<this.children.length;i++)t+=this.children[i].toMarkup();return t+="</svg>",t}}class ha{constructor(t,n){this.pathName=void 0,this.alternate=void 0,this.pathName=t,this.alternate=n}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"path");return this.alternate?n.setAttribute("d",this.alternate):n.setAttribute("d",n3[this.pathName]),n}toMarkup(){return this.alternate?'<path d="'+Sn(this.alternate)+'"/>':'<path d="'+Sn(n3[this.pathName])+'"/>'}}class h1{constructor(t){this.attributes=void 0,this.attributes=t||{}}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"line");for(var i of Object.keys(this.attributes))n.setAttribute(i,this.attributes[i]);return n}toMarkup(){var t="<line";for(var n of Object.keys(this.attributes))t+=" "+n+'="'+Sn(this.attributes[n])+'"';return t+="/>",t}}function Nw(e){if(e instanceof nr)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}function Dw(e){if(e instanceof co)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}var _w=e=>e instanceof co||e instanceof wc||e instanceof uo,Ir={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},S0={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},r3={Å:"A",Ð:"D",Þ:"o",å:"a",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function Ow(e,t){Ir[e]=t}function rm(e,t,n){if(!Ir[t])throw new Error("Font metrics not found for font: "+t+".");var i=e.charCodeAt(0),l=Ir[t][i];if(!l&&e[0]in r3&&(i=r3[e[0]].charCodeAt(0),l=Ir[t][i]),!l&&n==="text"&&a7(i)&&(l=Ir[t][77]),l)return{depth:l[0],height:l[1],italic:l[2],skew:l[3],width:l[4]}}var md={};function Rw(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!md[t]){var n=md[t]={cssEmPerMu:S0.quad[t]/18};for(var i in S0)S0.hasOwnProperty(i)&&(n[i]=S0[i][t])}return md[t]}var Rt={math:{},text:{}};function b(e,t,n,i,l,s){Rt[e][l]={font:t,group:n,replace:i},s&&i&&(Rt[e][i]=Rt[e][l])}var S="math",be="text",M="main",G="ams",Lt="accent-token",Ne="bin",zn="close",fo="inner",Fe="mathord",tn="op-token",ir="open",Gs="punct",$="rel",Ei="spacing",te="textord";b(S,M,$,"≡","\\equiv",!0);b(S,M,$,"≺","\\prec",!0);b(S,M,$,"≻","\\succ",!0);b(S,M,$,"∼","\\sim",!0);b(S,M,$,"⊥","\\perp");b(S,M,$,"⪯","\\preceq",!0);b(S,M,$,"⪰","\\succeq",!0);b(S,M,$,"≃","\\simeq",!0);b(S,M,$,"∣","\\mid",!0);b(S,M,$,"≪","\\ll",!0);b(S,M,$,"≫","\\gg",!0);b(S,M,$,"≍","\\asymp",!0);b(S,M,$,"∥","\\parallel");b(S,M,$,"⋈","\\bowtie",!0);b(S,M,$,"⌣","\\smile",!0);b(S,M,$,"⊑","\\sqsubseteq",!0);b(S,M,$,"⊒","\\sqsupseteq",!0);b(S,M,$,"≐","\\doteq",!0);b(S,M,$,"⌢","\\frown",!0);b(S,M,$,"∋","\\ni",!0);b(S,M,$,"∝","\\propto",!0);b(S,M,$,"⊢","\\vdash",!0);b(S,M,$,"⊣","\\dashv",!0);b(S,M,$,"∋","\\owns");b(S,M,Gs,".","\\ldotp");b(S,M,Gs,"⋅","\\cdotp");b(S,M,Gs,"⋅","·");b(be,M,te,"⋅","·");b(S,M,te,"#","\\#");b(be,M,te,"#","\\#");b(S,M,te,"&","\\&");b(be,M,te,"&","\\&");b(S,M,te,"ℵ","\\aleph",!0);b(S,M,te,"∀","\\forall",!0);b(S,M,te,"ℏ","\\hbar",!0);b(S,M,te,"∃","\\exists",!0);b(S,M,te,"∇","\\nabla",!0);b(S,M,te,"♭","\\flat",!0);b(S,M,te,"ℓ","\\ell",!0);b(S,M,te,"♮","\\natural",!0);b(S,M,te,"♣","\\clubsuit",!0);b(S,M,te,"℘","\\wp",!0);b(S,M,te,"♯","\\sharp",!0);b(S,M,te,"♢","\\diamondsuit",!0);b(S,M,te,"ℜ","\\Re",!0);b(S,M,te,"♡","\\heartsuit",!0);b(S,M,te,"ℑ","\\Im",!0);b(S,M,te,"♠","\\spadesuit",!0);b(S,M,te,"§","\\S",!0);b(be,M,te,"§","\\S");b(S,M,te,"¶","\\P",!0);b(be,M,te,"¶","\\P");b(S,M,te,"†","\\dag");b(be,M,te,"†","\\dag");b(be,M,te,"†","\\textdagger");b(S,M,te,"‡","\\ddag");b(be,M,te,"‡","\\ddag");b(be,M,te,"‡","\\textdaggerdbl");b(S,M,zn,"⎱","\\rmoustache",!0);b(S,M,ir,"⎰","\\lmoustache",!0);b(S,M,zn,"⟯","\\rgroup",!0);b(S,M,ir,"⟮","\\lgroup",!0);b(S,M,Ne,"∓","\\mp",!0);b(S,M,Ne,"⊖","\\ominus",!0);b(S,M,Ne,"⊎","\\uplus",!0);b(S,M,Ne,"⊓","\\sqcap",!0);b(S,M,Ne,"∗","\\ast");b(S,M,Ne,"⊔","\\sqcup",!0);b(S,M,Ne,"◯","\\bigcirc",!0);b(S,M,Ne,"∙","\\bullet",!0);b(S,M,Ne,"‡","\\ddagger");b(S,M,Ne,"≀","\\wr",!0);b(S,M,Ne,"⨿","\\amalg");b(S,M,Ne,"&","\\And");b(S,M,$,"⟵","\\longleftarrow",!0);b(S,M,$,"⇐","\\Leftarrow",!0);b(S,M,$,"⟸","\\Longleftarrow",!0);b(S,M,$,"⟶","\\longrightarrow",!0);b(S,M,$,"⇒","\\Rightarrow",!0);b(S,M,$,"⟹","\\Longrightarrow",!0);b(S,M,$,"↔","\\leftrightarrow",!0);b(S,M,$,"⟷","\\longleftrightarrow",!0);b(S,M,$,"⇔","\\Leftrightarrow",!0);b(S,M,$,"⟺","\\Longleftrightarrow",!0);b(S,M,$,"↦","\\mapsto",!0);b(S,M,$,"⟼","\\longmapsto",!0);b(S,M,$,"↗","\\nearrow",!0);b(S,M,$,"↩","\\hookleftarrow",!0);b(S,M,$,"↪","\\hookrightarrow",!0);b(S,M,$,"↘","\\searrow",!0);b(S,M,$,"↼","\\leftharpoonup",!0);b(S,M,$,"⇀","\\rightharpoonup",!0);b(S,M,$,"↙","\\swarrow",!0);b(S,M,$,"↽","\\leftharpoondown",!0);b(S,M,$,"⇁","\\rightharpoondown",!0);b(S,M,$,"↖","\\nwarrow",!0);b(S,M,$,"⇌","\\rightleftharpoons",!0);b(S,G,$,"≮","\\nless",!0);b(S,G,$,"","\\@nleqslant");b(S,G,$,"","\\@nleqq");b(S,G,$,"⪇","\\lneq",!0);b(S,G,$,"≨","\\lneqq",!0);b(S,G,$,"","\\@lvertneqq");b(S,G,$,"⋦","\\lnsim",!0);b(S,G,$,"⪉","\\lnapprox",!0);b(S,G,$,"⊀","\\nprec",!0);b(S,G,$,"⋠","\\npreceq",!0);b(S,G,$,"⋨","\\precnsim",!0);b(S,G,$,"⪹","\\precnapprox",!0);b(S,G,$,"≁","\\nsim",!0);b(S,G,$,"","\\@nshortmid");b(S,G,$,"∤","\\nmid",!0);b(S,G,$,"⊬","\\nvdash",!0);b(S,G,$,"⊭","\\nvDash",!0);b(S,G,$,"⋪","\\ntriangleleft");b(S,G,$,"⋬","\\ntrianglelefteq",!0);b(S,G,$,"⊊","\\subsetneq",!0);b(S,G,$,"","\\@varsubsetneq");b(S,G,$,"⫋","\\subsetneqq",!0);b(S,G,$,"","\\@varsubsetneqq");b(S,G,$,"≯","\\ngtr",!0);b(S,G,$,"","\\@ngeqslant");b(S,G,$,"","\\@ngeqq");b(S,G,$,"⪈","\\gneq",!0);b(S,G,$,"≩","\\gneqq",!0);b(S,G,$,"","\\@gvertneqq");b(S,G,$,"⋧","\\gnsim",!0);b(S,G,$,"⪊","\\gnapprox",!0);b(S,G,$,"⊁","\\nsucc",!0);b(S,G,$,"⋡","\\nsucceq",!0);b(S,G,$,"⋩","\\succnsim",!0);b(S,G,$,"⪺","\\succnapprox",!0);b(S,G,$,"≆","\\ncong",!0);b(S,G,$,"","\\@nshortparallel");b(S,G,$,"∦","\\nparallel",!0);b(S,G,$,"⊯","\\nVDash",!0);b(S,G,$,"⋫","\\ntriangleright");b(S,G,$,"⋭","\\ntrianglerighteq",!0);b(S,G,$,"","\\@nsupseteqq");b(S,G,$,"⊋","\\supsetneq",!0);b(S,G,$,"","\\@varsupsetneq");b(S,G,$,"⫌","\\supsetneqq",!0);b(S,G,$,"","\\@varsupsetneqq");b(S,G,$,"⊮","\\nVdash",!0);b(S,G,$,"⪵","\\precneqq",!0);b(S,G,$,"⪶","\\succneqq",!0);b(S,G,$,"","\\@nsubseteqq");b(S,G,Ne,"⊴","\\unlhd");b(S,G,Ne,"⊵","\\unrhd");b(S,G,$,"↚","\\nleftarrow",!0);b(S,G,$,"↛","\\nrightarrow",!0);b(S,G,$,"⇍","\\nLeftarrow",!0);b(S,G,$,"⇏","\\nRightarrow",!0);b(S,G,$,"↮","\\nleftrightarrow",!0);b(S,G,$,"⇎","\\nLeftrightarrow",!0);b(S,G,$,"△","\\vartriangle");b(S,G,te,"ℏ","\\hslash");b(S,G,te,"▽","\\triangledown");b(S,G,te,"◊","\\lozenge");b(S,G,te,"Ⓢ","\\circledS");b(S,G,te,"®","\\circledR");b(be,G,te,"®","\\circledR");b(S,G,te,"∡","\\measuredangle",!0);b(S,G,te,"∄","\\nexists");b(S,G,te,"℧","\\mho");b(S,G,te,"Ⅎ","\\Finv",!0);b(S,G,te,"⅁","\\Game",!0);b(S,G,te,"‵","\\backprime");b(S,G,te,"▲","\\blacktriangle");b(S,G,te,"▼","\\blacktriangledown");b(S,G,te,"■","\\blacksquare");b(S,G,te,"⧫","\\blacklozenge");b(S,G,te,"★","\\bigstar");b(S,G,te,"∢","\\sphericalangle",!0);b(S,G,te,"∁","\\complement",!0);b(S,G,te,"ð","\\eth",!0);b(be,M,te,"ð","ð");b(S,G,te,"╱","\\diagup");b(S,G,te,"╲","\\diagdown");b(S,G,te,"□","\\square");b(S,G,te,"□","\\Box");b(S,G,te,"◊","\\Diamond");b(S,G,te,"¥","\\yen",!0);b(be,G,te,"¥","\\yen",!0);b(S,G,te,"✓","\\checkmark",!0);b(be,G,te,"✓","\\checkmark");b(S,G,te,"ℶ","\\beth",!0);b(S,G,te,"ℸ","\\daleth",!0);b(S,G,te,"ℷ","\\gimel",!0);b(S,G,te,"ϝ","\\digamma",!0);b(S,G,te,"ϰ","\\varkappa");b(S,G,ir,"┌","\\@ulcorner",!0);b(S,G,zn,"┐","\\@urcorner",!0);b(S,G,ir,"└","\\@llcorner",!0);b(S,G,zn,"┘","\\@lrcorner",!0);b(S,G,$,"≦","\\leqq",!0);b(S,G,$,"⩽","\\leqslant",!0);b(S,G,$,"⪕","\\eqslantless",!0);b(S,G,$,"≲","\\lesssim",!0);b(S,G,$,"⪅","\\lessapprox",!0);b(S,G,$,"≊","\\approxeq",!0);b(S,G,Ne,"⋖","\\lessdot");b(S,G,$,"⋘","\\lll",!0);b(S,G,$,"≶","\\lessgtr",!0);b(S,G,$,"⋚","\\lesseqgtr",!0);b(S,G,$,"⪋","\\lesseqqgtr",!0);b(S,G,$,"≑","\\doteqdot");b(S,G,$,"≓","\\risingdotseq",!0);b(S,G,$,"≒","\\fallingdotseq",!0);b(S,G,$,"∽","\\backsim",!0);b(S,G,$,"⋍","\\backsimeq",!0);b(S,G,$,"⫅","\\subseteqq",!0);b(S,G,$,"⋐","\\Subset",!0);b(S,G,$,"⊏","\\sqsubset",!0);b(S,G,$,"≼","\\preccurlyeq",!0);b(S,G,$,"⋞","\\curlyeqprec",!0);b(S,G,$,"≾","\\precsim",!0);b(S,G,$,"⪷","\\precapprox",!0);b(S,G,$,"⊲","\\vartriangleleft");b(S,G,$,"⊴","\\trianglelefteq");b(S,G,$,"⊨","\\vDash",!0);b(S,G,$,"⊪","\\Vvdash",!0);b(S,G,$,"⌣","\\smallsmile");b(S,G,$,"⌢","\\smallfrown");b(S,G,$,"≏","\\bumpeq",!0);b(S,G,$,"≎","\\Bumpeq",!0);b(S,G,$,"≧","\\geqq",!0);b(S,G,$,"⩾","\\geqslant",!0);b(S,G,$,"⪖","\\eqslantgtr",!0);b(S,G,$,"≳","\\gtrsim",!0);b(S,G,$,"⪆","\\gtrapprox",!0);b(S,G,Ne,"⋗","\\gtrdot");b(S,G,$,"⋙","\\ggg",!0);b(S,G,$,"≷","\\gtrless",!0);b(S,G,$,"⋛","\\gtreqless",!0);b(S,G,$,"⪌","\\gtreqqless",!0);b(S,G,$,"≖","\\eqcirc",!0);b(S,G,$,"≗","\\circeq",!0);b(S,G,$,"≜","\\triangleq",!0);b(S,G,$,"∼","\\thicksim");b(S,G,$,"≈","\\thickapprox");b(S,G,$,"⫆","\\supseteqq",!0);b(S,G,$,"⋑","\\Supset",!0);b(S,G,$,"⊐","\\sqsupset",!0);b(S,G,$,"≽","\\succcurlyeq",!0);b(S,G,$,"⋟","\\curlyeqsucc",!0);b(S,G,$,"≿","\\succsim",!0);b(S,G,$,"⪸","\\succapprox",!0);b(S,G,$,"⊳","\\vartriangleright");b(S,G,$,"⊵","\\trianglerighteq");b(S,G,$,"⊩","\\Vdash",!0);b(S,G,$,"∣","\\shortmid");b(S,G,$,"∥","\\shortparallel");b(S,G,$,"≬","\\between",!0);b(S,G,$,"⋔","\\pitchfork",!0);b(S,G,$,"∝","\\varpropto");b(S,G,$,"◀","\\blacktriangleleft");b(S,G,$,"∴","\\therefore",!0);b(S,G,$,"∍","\\backepsilon");b(S,G,$,"▶","\\blacktriangleright");b(S,G,$,"∵","\\because",!0);b(S,G,$,"⋘","\\llless");b(S,G,$,"⋙","\\gggtr");b(S,G,Ne,"⊲","\\lhd");b(S,G,Ne,"⊳","\\rhd");b(S,G,$,"≂","\\eqsim",!0);b(S,M,$,"⋈","\\Join");b(S,G,$,"≑","\\Doteq",!0);b(S,G,Ne,"∔","\\dotplus",!0);b(S,G,Ne,"∖","\\smallsetminus");b(S,G,Ne,"⋒","\\Cap",!0);b(S,G,Ne,"⋓","\\Cup",!0);b(S,G,Ne,"⩞","\\doublebarwedge",!0);b(S,G,Ne,"⊟","\\boxminus",!0);b(S,G,Ne,"⊞","\\boxplus",!0);b(S,G,Ne,"⋇","\\divideontimes",!0);b(S,G,Ne,"⋉","\\ltimes",!0);b(S,G,Ne,"⋊","\\rtimes",!0);b(S,G,Ne,"⋋","\\leftthreetimes",!0);b(S,G,Ne,"⋌","\\rightthreetimes",!0);b(S,G,Ne,"⋏","\\curlywedge",!0);b(S,G,Ne,"⋎","\\curlyvee",!0);b(S,G,Ne,"⊝","\\circleddash",!0);b(S,G,Ne,"⊛","\\circledast",!0);b(S,G,Ne,"⋅","\\centerdot");b(S,G,Ne,"⊺","\\intercal",!0);b(S,G,Ne,"⋒","\\doublecap");b(S,G,Ne,"⋓","\\doublecup");b(S,G,Ne,"⊠","\\boxtimes",!0);b(S,G,$,"⇢","\\dashrightarrow",!0);b(S,G,$,"⇠","\\dashleftarrow",!0);b(S,G,$,"⇇","\\leftleftarrows",!0);b(S,G,$,"⇆","\\leftrightarrows",!0);b(S,G,$,"⇚","\\Lleftarrow",!0);b(S,G,$,"↞","\\twoheadleftarrow",!0);b(S,G,$,"↢","\\leftarrowtail",!0);b(S,G,$,"↫","\\looparrowleft",!0);b(S,G,$,"⇋","\\leftrightharpoons",!0);b(S,G,$,"↶","\\curvearrowleft",!0);b(S,G,$,"↺","\\circlearrowleft",!0);b(S,G,$,"↰","\\Lsh",!0);b(S,G,$,"⇈","\\upuparrows",!0);b(S,G,$,"↿","\\upharpoonleft",!0);b(S,G,$,"⇃","\\downharpoonleft",!0);b(S,M,$,"⊶","\\origof",!0);b(S,M,$,"⊷","\\imageof",!0);b(S,G,$,"⊸","\\multimap",!0);b(S,G,$,"↭","\\leftrightsquigarrow",!0);b(S,G,$,"⇉","\\rightrightarrows",!0);b(S,G,$,"⇄","\\rightleftarrows",!0);b(S,G,$,"↠","\\twoheadrightarrow",!0);b(S,G,$,"↣","\\rightarrowtail",!0);b(S,G,$,"↬","\\looparrowright",!0);b(S,G,$,"↷","\\curvearrowright",!0);b(S,G,$,"↻","\\circlearrowright",!0);b(S,G,$,"↱","\\Rsh",!0);b(S,G,$,"⇊","\\downdownarrows",!0);b(S,G,$,"↾","\\upharpoonright",!0);b(S,G,$,"⇂","\\downharpoonright",!0);b(S,G,$,"⇝","\\rightsquigarrow",!0);b(S,G,$,"⇝","\\leadsto");b(S,G,$,"⇛","\\Rrightarrow",!0);b(S,G,$,"↾","\\restriction");b(S,M,te,"‘","`");b(S,M,te,"$","\\$");b(be,M,te,"$","\\$");b(be,M,te,"$","\\textdollar");b(S,M,te,"%","\\%");b(be,M,te,"%","\\%");b(S,M,te,"_","\\_");b(be,M,te,"_","\\_");b(be,M,te,"_","\\textunderscore");b(S,M,te,"∠","\\angle",!0);b(S,M,te,"∞","\\infty",!0);b(S,M,te,"′","\\prime");b(S,M,te,"△","\\triangle");b(S,M,te,"Γ","\\Gamma",!0);b(S,M,te,"Δ","\\Delta",!0);b(S,M,te,"Θ","\\Theta",!0);b(S,M,te,"Λ","\\Lambda",!0);b(S,M,te,"Ξ","\\Xi",!0);b(S,M,te,"Π","\\Pi",!0);b(S,M,te,"Σ","\\Sigma",!0);b(S,M,te,"Υ","\\Upsilon",!0);b(S,M,te,"Φ","\\Phi",!0);b(S,M,te,"Ψ","\\Psi",!0);b(S,M,te,"Ω","\\Omega",!0);b(S,M,te,"A","Α");b(S,M,te,"B","Β");b(S,M,te,"E","Ε");b(S,M,te,"Z","Ζ");b(S,M,te,"H","Η");b(S,M,te,"I","Ι");b(S,M,te,"K","Κ");b(S,M,te,"M","Μ");b(S,M,te,"N","Ν");b(S,M,te,"O","Ο");b(S,M,te,"P","Ρ");b(S,M,te,"T","Τ");b(S,M,te,"X","Χ");b(S,M,te,"¬","\\neg",!0);b(S,M,te,"¬","\\lnot");b(S,M,te,"⊤","\\top");b(S,M,te,"⊥","\\bot");b(S,M,te,"∅","\\emptyset");b(S,G,te,"∅","\\varnothing");b(S,M,Fe,"α","\\alpha",!0);b(S,M,Fe,"β","\\beta",!0);b(S,M,Fe,"γ","\\gamma",!0);b(S,M,Fe,"δ","\\delta",!0);b(S,M,Fe,"ϵ","\\epsilon",!0);b(S,M,Fe,"ζ","\\zeta",!0);b(S,M,Fe,"η","\\eta",!0);b(S,M,Fe,"θ","\\theta",!0);b(S,M,Fe,"ι","\\iota",!0);b(S,M,Fe,"κ","\\kappa",!0);b(S,M,Fe,"λ","\\lambda",!0);b(S,M,Fe,"μ","\\mu",!0);b(S,M,Fe,"ν","\\nu",!0);b(S,M,Fe,"ξ","\\xi",!0);b(S,M,Fe,"ο","\\omicron",!0);b(S,M,Fe,"π","\\pi",!0);b(S,M,Fe,"ρ","\\rho",!0);b(S,M,Fe,"σ","\\sigma",!0);b(S,M,Fe,"τ","\\tau",!0);b(S,M,Fe,"υ","\\upsilon",!0);b(S,M,Fe,"ϕ","\\phi",!0);b(S,M,Fe,"χ","\\chi",!0);b(S,M,Fe,"ψ","\\psi",!0);b(S,M,Fe,"ω","\\omega",!0);b(S,M,Fe,"ε","\\varepsilon",!0);b(S,M,Fe,"ϑ","\\vartheta",!0);b(S,M,Fe,"ϖ","\\varpi",!0);b(S,M,Fe,"ϱ","\\varrho",!0);b(S,M,Fe,"ς","\\varsigma",!0);b(S,M,Fe,"φ","\\varphi",!0);b(S,M,Ne,"∗","*",!0);b(S,M,Ne,"+","+");b(S,M,Ne,"−","-",!0);b(S,M,Ne,"⋅","\\cdot",!0);b(S,M,Ne,"∘","\\circ",!0);b(S,M,Ne,"÷","\\div",!0);b(S,M,Ne,"±","\\pm",!0);b(S,M,Ne,"×","\\times",!0);b(S,M,Ne,"∩","\\cap",!0);b(S,M,Ne,"∪","\\cup",!0);b(S,M,Ne,"∖","\\setminus",!0);b(S,M,Ne,"∧","\\land");b(S,M,Ne,"∨","\\lor");b(S,M,Ne,"∧","\\wedge",!0);b(S,M,Ne,"∨","\\vee",!0);b(S,M,te,"√","\\surd");b(S,M,ir,"⟨","\\langle",!0);b(S,M,ir,"∣","\\lvert");b(S,M,ir,"∥","\\lVert");b(S,M,zn,"?","?");b(S,M,zn,"!","!");b(S,M,zn,"⟩","\\rangle",!0);b(S,M,zn,"∣","\\rvert");b(S,M,zn,"∥","\\rVert");b(S,M,$,"=","=");b(S,M,$,":",":");b(S,M,$,"≈","\\approx",!0);b(S,M,$,"≅","\\cong",!0);b(S,M,$,"≥","\\ge");b(S,M,$,"≥","\\geq",!0);b(S,M,$,"←","\\gets");b(S,M,$,">","\\gt",!0);b(S,M,$,"∈","\\in",!0);b(S,M,$,"","\\@not");b(S,M,$,"⊂","\\subset",!0);b(S,M,$,"⊃","\\supset",!0);b(S,M,$,"⊆","\\subseteq",!0);b(S,M,$,"⊇","\\supseteq",!0);b(S,G,$,"⊈","\\nsubseteq",!0);b(S,G,$,"⊉","\\nsupseteq",!0);b(S,M,$,"⊨","\\models");b(S,M,$,"←","\\leftarrow",!0);b(S,M,$,"≤","\\le");b(S,M,$,"≤","\\leq",!0);b(S,M,$,"<","\\lt",!0);b(S,M,$,"→","\\rightarrow",!0);b(S,M,$,"→","\\to");b(S,G,$,"≱","\\ngeq",!0);b(S,G,$,"≰","\\nleq",!0);b(S,M,Ei," ","\\ ");b(S,M,Ei," ","\\space");b(S,M,Ei," ","\\nobreakspace");b(be,M,Ei," ","\\ ");b(be,M,Ei," "," ");b(be,M,Ei," ","\\space");b(be,M,Ei," ","\\nobreakspace");b(S,M,Ei,"","\\nobreak");b(S,M,Ei,"","\\allowbreak");b(S,M,Gs,",",",");b(S,M,Gs,";",";");b(S,G,Ne,"⊼","\\barwedge",!0);b(S,G,Ne,"⊻","\\veebar",!0);b(S,M,Ne,"⊙","\\odot",!0);b(S,M,Ne,"⊕","\\oplus",!0);b(S,M,Ne,"⊗","\\otimes",!0);b(S,M,te,"∂","\\partial",!0);b(S,M,Ne,"⊘","\\oslash",!0);b(S,G,Ne,"⊚","\\circledcirc",!0);b(S,G,Ne,"⊡","\\boxdot",!0);b(S,M,Ne,"△","\\bigtriangleup");b(S,M,Ne,"▽","\\bigtriangledown");b(S,M,Ne,"†","\\dagger");b(S,M,Ne,"⋄","\\diamond");b(S,M,Ne,"⋆","\\star");b(S,M,Ne,"◃","\\triangleleft");b(S,M,Ne,"▹","\\triangleright");b(S,M,ir,"{","\\{");b(be,M,te,"{","\\{");b(be,M,te,"{","\\textbraceleft");b(S,M,zn,"}","\\}");b(be,M,te,"}","\\}");b(be,M,te,"}","\\textbraceright");b(S,M,ir,"{","\\lbrace");b(S,M,zn,"}","\\rbrace");b(S,M,ir,"[","\\lbrack",!0);b(be,M,te,"[","\\lbrack",!0);b(S,M,zn,"]","\\rbrack",!0);b(be,M,te,"]","\\rbrack",!0);b(S,M,ir,"(","\\lparen",!0);b(S,M,zn,")","\\rparen",!0);b(be,M,te,"<","\\textless",!0);b(be,M,te,">","\\textgreater",!0);b(S,M,ir,"⌊","\\lfloor",!0);b(S,M,zn,"⌋","\\rfloor",!0);b(S,M,ir,"⌈","\\lceil",!0);b(S,M,zn,"⌉","\\rceil",!0);b(S,M,te,"\\","\\backslash");b(S,M,te,"∣","|");b(S,M,te,"∣","\\vert");b(be,M,te,"|","\\textbar",!0);b(S,M,te,"∥","\\|");b(S,M,te,"∥","\\Vert");b(be,M,te,"∥","\\textbardbl");b(be,M,te,"~","\\textasciitilde");b(be,M,te,"\\","\\textbackslash");b(be,M,te,"^","\\textasciicircum");b(S,M,$,"↑","\\uparrow",!0);b(S,M,$,"⇑","\\Uparrow",!0);b(S,M,$,"↓","\\downarrow",!0);b(S,M,$,"⇓","\\Downarrow",!0);b(S,M,$,"↕","\\updownarrow",!0);b(S,M,$,"⇕","\\Updownarrow",!0);b(S,M,tn,"∐","\\coprod");b(S,M,tn,"⋁","\\bigvee");b(S,M,tn,"⋀","\\bigwedge");b(S,M,tn,"⨄","\\biguplus");b(S,M,tn,"⋂","\\bigcap");b(S,M,tn,"⋃","\\bigcup");b(S,M,tn,"∫","\\int");b(S,M,tn,"∫","\\intop");b(S,M,tn,"∬","\\iint");b(S,M,tn,"∭","\\iiint");b(S,M,tn,"∏","\\prod");b(S,M,tn,"∑","\\sum");b(S,M,tn,"⨂","\\bigotimes");b(S,M,tn,"⨁","\\bigoplus");b(S,M,tn,"⨀","\\bigodot");b(S,M,tn,"∮","\\oint");b(S,M,tn,"∯","\\oiint");b(S,M,tn,"∰","\\oiiint");b(S,M,tn,"⨆","\\bigsqcup");b(S,M,tn,"∫","\\smallint");b(be,M,fo,"…","\\textellipsis");b(S,M,fo,"…","\\mathellipsis");b(be,M,fo,"…","\\ldots",!0);b(S,M,fo,"…","\\ldots",!0);b(S,M,fo,"⋯","\\@cdots",!0);b(S,M,fo,"⋱","\\ddots",!0);b(S,M,te,"⋮","\\varvdots");b(be,M,te,"⋮","\\varvdots");b(S,M,Lt,"ˊ","\\acute");b(S,M,Lt,"ˋ","\\grave");b(S,M,Lt,"¨","\\ddot");b(S,M,Lt,"~","\\tilde");b(S,M,Lt,"ˉ","\\bar");b(S,M,Lt,"˘","\\breve");b(S,M,Lt,"ˇ","\\check");b(S,M,Lt,"^","\\hat");b(S,M,Lt,"⃗","\\vec");b(S,M,Lt,"˙","\\dot");b(S,M,Lt,"˚","\\mathring");b(S,M,Fe,"","\\@imath");b(S,M,Fe,"","\\@jmath");b(S,M,te,"ı","ı");b(S,M,te,"ȷ","ȷ");b(be,M,te,"ı","\\i",!0);b(be,M,te,"ȷ","\\j",!0);b(be,M,te,"ß","\\ss",!0);b(be,M,te,"æ","\\ae",!0);b(be,M,te,"œ","\\oe",!0);b(be,M,te,"ø","\\o",!0);b(be,M,te,"Æ","\\AE",!0);b(be,M,te,"Œ","\\OE",!0);b(be,M,te,"Ø","\\O",!0);b(be,M,Lt,"ˊ","\\'");b(be,M,Lt,"ˋ","\\`");b(be,M,Lt,"ˆ","\\^");b(be,M,Lt,"˜","\\~");b(be,M,Lt,"ˉ","\\=");b(be,M,Lt,"˘","\\u");b(be,M,Lt,"˙","\\.");b(be,M,Lt,"¸","\\c");b(be,M,Lt,"˚","\\r");b(be,M,Lt,"ˇ","\\v");b(be,M,Lt,"¨",'\\"');b(be,M,Lt,"˝","\\H");b(be,M,Lt,"◯","\\textcircled");var c7={"--":!0,"---":!0,"``":!0,"''":!0};b(be,M,te,"–","--",!0);b(be,M,te,"–","\\textendash");b(be,M,te,"—","---",!0);b(be,M,te,"—","\\textemdash");b(be,M,te,"‘","`",!0);b(be,M,te,"‘","\\textquoteleft");b(be,M,te,"’","'",!0);b(be,M,te,"’","\\textquoteright");b(be,M,te,"“","``",!0);b(be,M,te,"“","\\textquotedblleft");b(be,M,te,"”","''",!0);b(be,M,te,"”","\\textquotedblright");b(S,M,te,"°","\\degree",!0);b(be,M,te,"°","\\degree");b(be,M,te,"°","\\textdegree",!0);b(S,M,te,"£","\\pounds");b(S,M,te,"£","\\mathsterling",!0);b(be,M,te,"£","\\pounds");b(be,M,te,"£","\\textsterling",!0);b(S,G,te,"✠","\\maltese");b(be,G,te,"✠","\\maltese");var i3='0123456789/@."';for(var pd=0;pd<i3.length;pd++){var a3=i3.charAt(pd);b(S,M,te,a3,a3)}var l3='0123456789!@*()-=+";:?/.,';for(var gd=0;gd<l3.length;gd++){var o3=l3.charAt(gd);b(be,M,te,o3,o3)}var W0="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(var yd=0;yd<W0.length;yd++){var k0=W0.charAt(yd);b(S,M,Fe,k0,k0),b(be,M,te,k0,k0)}b(S,G,te,"C","ℂ");b(be,G,te,"C","ℂ");b(S,G,te,"H","ℍ");b(be,G,te,"H","ℍ");b(S,G,te,"N","ℕ");b(be,G,te,"N","ℕ");b(S,G,te,"P","ℙ");b(be,G,te,"P","ℙ");b(S,G,te,"Q","ℚ");b(be,G,te,"Q","ℚ");b(S,G,te,"R","ℝ");b(be,G,te,"R","ℝ");b(S,G,te,"Z","ℤ");b(be,G,te,"Z","ℤ");b(S,M,Fe,"h","ℎ");b(be,M,Fe,"h","ℎ");var $e;for(var An=0;An<W0.length;An++){var Yt=W0.charAt(An);$e=String.fromCharCode(55349,56320+An),b(S,M,Fe,Yt,$e),b(be,M,te,Yt,$e),$e=String.fromCharCode(55349,56372+An),b(S,M,Fe,Yt,$e),b(be,M,te,Yt,$e),$e=String.fromCharCode(55349,56424+An),b(S,M,Fe,Yt,$e),b(be,M,te,Yt,$e),$e=String.fromCharCode(55349,56580+An),b(S,M,Fe,Yt,$e),b(be,M,te,Yt,$e),$e=String.fromCharCode(55349,56684+An),b(S,M,Fe,Yt,$e),b(be,M,te,Yt,$e),$e=String.fromCharCode(55349,56736+An),b(S,M,Fe,Yt,$e),b(be,M,te,Yt,$e),$e=String.fromCharCode(55349,56788+An),b(S,M,Fe,Yt,$e),b(be,M,te,Yt,$e),$e=String.fromCharCode(55349,56840+An),b(S,M,Fe,Yt,$e),b(be,M,te,Yt,$e),$e=String.fromCharCode(55349,56944+An),b(S,M,Fe,Yt,$e),b(be,M,te,Yt,$e),An<26&&($e=String.fromCharCode(55349,56632+An),b(S,M,Fe,Yt,$e),b(be,M,te,Yt,$e),$e=String.fromCharCode(55349,56476+An),b(S,M,Fe,Yt,$e),b(be,M,te,Yt,$e))}$e="𝕜";b(S,M,Fe,"k",$e);b(be,M,te,"k",$e);for(var ja=0;ja<10;ja++){var ra=ja.toString();$e=String.fromCharCode(55349,57294+ja),b(S,M,Fe,ra,$e),b(be,M,te,ra,$e),$e=String.fromCharCode(55349,57314+ja),b(S,M,Fe,ra,$e),b(be,M,te,ra,$e),$e=String.fromCharCode(55349,57324+ja),b(S,M,Fe,ra,$e),b(be,M,te,ra,$e),$e=String.fromCharCode(55349,57334+ja),b(S,M,Fe,ra,$e),b(be,M,te,ra,$e)}var d1="ÐÞþ";for(var vd=0;vd<d1.length;vd++){var E0=d1.charAt(vd);b(S,M,Fe,E0,E0),b(be,M,te,E0,E0)}var m1={mathClass:"mathbf",textClass:"textbf",font:"Main-Bold"},s3={mathClass:"mathnormal",textClass:"textit",font:"Math-Italic"},u3={mathClass:"boldsymbol",textClass:"boldsymbol",font:"Main-BoldItalic"},Bw={mathClass:"mathscr",textClass:"textscr",font:"Script-Regular"},Fa={mathClass:"",textClass:"",font:""},c3={mathClass:"mathfrak",textClass:"textfrak",font:"Fraktur-Regular"},f3={mathClass:"mathbb",textClass:"textbb",font:"AMS-Regular"},h3={mathClass:"mathboldfrak",textClass:"textboldfrak",font:"Fraktur-Regular"},p1={mathClass:"mathsf",textClass:"textsf",font:"SansSerif-Regular"},g1={mathClass:"mathboldsf",textClass:"textboldsf",font:"SansSerif-Bold"},d3={mathClass:"mathitsf",textClass:"textitsf",font:"SansSerif-Italic"},y1={mathClass:"mathtt",textClass:"texttt",font:"Typewriter-Regular"},m3=[m1,m1,s3,s3,u3,u3,Bw,Fa,Fa,Fa,c3,c3,f3,f3,h3,h3,p1,p1,g1,g1,d3,d3,Fa,Fa,y1,y1],Lw=[m1,Fa,p1,g1,y1],Hw=e=>{var t=e.charCodeAt(0),n=e.charCodeAt(1),i=(t-55296)*1024+(n-56320)+65536;if(119808<=i&&i<120484){var l=Math.floor((i-119808)/26);return m3[l]}else if(120782<=i&&i<=120831){var s=Math.floor((i-120782)/10);return Lw[s]}else{if(i===120485||i===120486)return m3[0];if(120486<i&&i<120782)return Fa;throw new Ae("Unsupported character: "+e)}},Sc=function(t,n,i){if(Rt[i][t]){var l=Rt[i][t].replace;l&&(t=l)}return{value:t,metrics:rm(t,n,i)}},Cn=function(t,n,i,l,s){var u=Sc(t,n,i),f=u.metrics;t=u.value;var h;if(f){var d=f.italic;(i==="text"||l&&l.font==="mathit")&&(d=0),h=new nr(t,f.height,f.depth,d,f.skew,f.width,s)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+t+"' in style '"+n+"' and mode '"+i+"'")),h=new nr(t,0,0,0,0,0,s);if(l){h.maxFontSize=l.sizeMultiplier,l.style.isTight()&&h.classes.push("mtight");var p=l.getColor();p&&(h.style.color=p)}return h},im=function(t,n,i,l){return l===void 0&&(l=[]),i.font==="boldsymbol"&&Sc(t,"Main-Bold",n).metrics?Cn(t,"Main-Bold",n,i,l.concat(["mathbf"])):t==="\\"||Rt[n][t].font==="main"?Cn(t,"Main-Regular",n,i,l):Cn(t,"AMS-Regular",n,i,l.concat(["amsrm"]))},jw=function(t,n,i){return i!=="textord"&&Sc(t,"Math-BoldItalic",n).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},kc=function(t,n,i){var l=t.mode,s=t.text,u=["mord"],{font:f,fontFamily:h,fontWeight:d,fontShape:p}=n,m=l==="math"||l==="text"&&!!f,v=m?f:h,x="",w="";if(s.charCodeAt(0)===55349){var A=Hw(s);x=A.font,w=A[l+"Class"]}if(x)return Cn(s,x,l,n,u.concat(w));if(v){var C,E;if(v==="boldsymbol"){var N=jw(s,l,i);C=N.fontName,E=[N.fontClass]}else m?(C=v1[f].fontName,E=[f]):(C=A0(h,d,p),E=[h,d,p]);if(Sc(s,C,l).metrics)return Cn(s,C,l,n,u.concat(E));if(c7.hasOwnProperty(s)&&C.slice(0,10)==="Typewriter"){for(var T=[],B=0;B<s.length;B++)T.push(Cn(s[B],C,l,n,u.concat(E)));return Ai(T)}}if(i==="mathord")return Cn(s,"Math-Italic",l,n,u.concat(["mathnormal"]));if(i==="textord"){var I=Rt[l][s]&&Rt[l][s].font;if(I==="ams"){var D=A0("amsrm",d,p);return Cn(s,D,l,n,u.concat("amsrm",d,p))}else if(I==="main"||!I){var U=A0("textrm",d,p);return Cn(s,U,l,n,u.concat(d,p))}else{var J=A0(I,d,p);return Cn(s,J,l,n,u.concat(J,d,p))}}else throw new Error("unexpected type: "+i+" in makeOrd")},qw=(e,t)=>{if(fa(e.classes)!==fa(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize||e.italic!==0&&e.hasClass("mathnormal"))return!1;if(e.classes.length===1){var n=e.classes[0];if(n==="mbin"||n==="mord")return!1}for(var i of Object.keys(e.style))if(e.style[i]!==t.style[i])return!1;for(var l of Object.keys(t.style))if(e.style[l]!==t.style[l])return!1;return!0},f7=e=>{for(var t=0;t<e.length-1;t++){var n=e[t],i=e[t+1];n instanceof nr&&i instanceof nr&&qw(n,i)&&(n.text+=i.text,n.height=Math.max(n.height,i.height),n.depth=Math.max(n.depth,i.depth),n.italic=i.italic,e.splice(t+1,1),t--)}return e},am=function(t){for(var n=0,i=0,l=0,s=0;s<t.children.length;s++){var u=t.children[s];u.height>n&&(n=u.height),u.depth>i&&(i=u.depth),u.maxFontSize>l&&(l=u.maxFontSize)}t.height=n,t.depth=i,t.maxFontSize=l},Se=function(t,n,i,l){var s=new co(t,n,i,l);return am(s),s},da=(e,t,n,i)=>new co(e,t,n,i),Jl=function(t,n,i){var l=Se([t],[],n);return l.height=Math.max(i||n.fontMetrics().defaultRuleThickness,n.minRuleThickness),l.style.borderBottomWidth=Me(l.height),l.maxFontSize=1,l},Iw=function(t,n,i,l){var s=new wc(t,n,i,l);return am(s),s},Ai=function(t){var n=new uo(t);return am(n),n},Wl=function(t,n){return t instanceof uo?Se([],[t],n):t},Uw=function(t){if(t.positionType==="individualShift"){for(var n=t.children,i=[n[0]],l=-n[0].shift-n[0].elem.depth,s=l,u=1;u<n.length;u++){var f=-n[u].shift-s-n[u].elem.depth,h=f-(n[u-1].elem.height+n[u-1].elem.depth);s=s+f,i.push({type:"kern",size:h}),i.push(n[u])}return{children:i,depth:l}}var d;if(t.positionType==="top"){for(var p=t.positionData,m=0;m<t.children.length;m++){var v=t.children[m];p-=v.type==="kern"?v.size:v.elem.height+v.elem.depth}d=p}else if(t.positionType==="bottom")d=-t.positionData;else{var x=t.children[0];if(x.type!=="elem")throw new Error('First child must have type "elem".');if(t.positionType==="shift")d=-x.elem.depth-t.positionData;else if(t.positionType==="firstBaseline")d=-x.elem.depth;else throw new Error("Invalid positionType "+t.positionType+".")}return{children:t.children,depth:d}},pt=function(t,n){for(var{children:i,depth:l}=Uw(t),s=0,u=0;u<i.length;u++){var f=i[u];if(f.type==="elem"){var h=f.elem;s=Math.max(s,h.maxFontSize,h.height)}}s+=2;var d=Se(["pstrut"],[]);d.style.height=Me(s);for(var p=[],m=l,v=l,x=l,w=0;w<i.length;w++){var A=i[w];if(A.type==="kern")x+=A.size;else{var C=A.elem,E=A.wrapperClasses||[],N=A.wrapperStyle||{},T=Se(E,[d,C],void 0,N);T.style.top=Me(-s-x-C.depth),A.marginLeft&&(T.style.marginLeft=A.marginLeft),A.marginRight&&(T.style.marginRight=A.marginRight),p.push(T),x+=C.height+C.depth}m=Math.min(m,x),v=Math.max(v,x)}var B=Se(["vlist"],p);B.style.height=Me(v);var I;if(m<0){var D=Se([],[]),U=Se(["vlist"],[D]);U.style.height=Me(-m);var J=Se(["vlist-s"],[new nr("")]);I=[Se(["vlist-r"],[B,J]),Se(["vlist-r"],[U])]}else I=[Se(["vlist-r"],[B])];var P=Se(["vlist-t"],I);return I.length===2&&P.classes.push("vlist-t2"),P.height=v,P.depth=-m,P},h7=(e,t)=>{var n=Se(["mspace"],[],t),i=Ut(e,t);return n.style.marginRight=Me(i),n},A0=(e,t,n)=>{var i,l;switch(e){case"amsrm":i="AMS";break;case"textrm":i="Main";break;case"textsf":i="SansSerif";break;case"texttt":i="Typewriter";break;default:i=e}return t==="textbf"&&n==="textit"?l="BoldItalic":t==="textbf"?l="Bold":n==="textit"?l="Italic":l="Regular",i+"-"+l},v1={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},d7={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},m7=function(t,n){var[i,l,s]=d7[t],u=new ha(i),f=new bi([u],{width:Me(l),height:Me(s),style:"width:"+Me(l),viewBox:"0 0 "+1e3*l+" "+1e3*s,preserveAspectRatio:"xMinYMin"}),h=da(["overlay"],[f],n);return h.height=s,h.style.height=Me(s),h.style.width=Me(l),h},It={number:3,unit:"mu"},qa={number:4,unit:"mu"},pi={number:5,unit:"mu"},Fw={mord:{mop:It,mbin:qa,mrel:pi,minner:It},mop:{mord:It,mop:It,mrel:pi,minner:It},mbin:{mord:qa,mop:qa,mopen:qa,minner:qa},mrel:{mord:pi,mop:pi,mopen:pi,minner:pi},mopen:{},mclose:{mop:It,mbin:qa,mrel:pi,minner:It},mpunct:{mord:It,mop:It,mrel:pi,mopen:It,mclose:It,mpunct:It,minner:It},minner:{mord:It,mop:It,mbin:qa,mrel:pi,mopen:It,mpunct:It,minner:It}},Vw={mord:{mop:It},mop:{mord:It,mop:It},mbin:{},mrel:{},mopen:{},mclose:{mop:It},mpunct:{},minner:{mop:It}},p7={},ec={},tc={};function ze(e){for(var{type:t,names:n,props:i,handler:l,htmlBuilder:s,mathmlBuilder:u}=e,f={type:t,numArgs:i.numArgs,argTypes:i.argTypes,allowedInArgument:!!i.allowedInArgument,allowedInText:!!i.allowedInText,allowedInMath:i.allowedInMath===void 0?!0:i.allowedInMath,numOptionalArgs:i.numOptionalArgs||0,infix:!!i.infix,primitive:!!i.primitive,handler:l},h=0;h<n.length;++h)p7[n[h]]=f;t&&(s&&(ec[t]=s),u&&(tc[t]=u))}function el(e){var{type:t,htmlBuilder:n,mathmlBuilder:i}=e;ze({type:t,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:n,mathmlBuilder:i})}var nc=function(t){return t.type==="ordgroup"&&t.body.length===1?t.body[0]:t},Wt=function(t){return t.type==="ordgroup"?t.body:[t]},Yw=new Set(["leftmost","mbin","mopen","mrel","mop","mpunct"]),Gw=new Set(["rightmost","mrel","mclose","mpunct"]),$w={display:Pe.DISPLAY,text:Pe.TEXT,script:Pe.SCRIPT,scriptscript:Pe.SCRIPTSCRIPT},Xw={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},cn=function(t,n,i,l){l===void 0&&(l=[null,null]);for(var s=[],u=0;u<t.length;u++){var f=gt(t[u],n);if(f instanceof uo){var h=f.children;s.push(...h)}else s.push(f)}if(f7(s),!i)return s;var d=n;if(t.length===1){var p=t[0];p.type==="sizing"?d=n.havingSize(p.size):p.type==="styling"&&(d=n.havingStyle($w[p.style]))}var m=Se([l[0]||"leftmost"],[],n),v=Se([l[1]||"rightmost"],[],n),x=i==="root";return x1(s,(w,A)=>{var C=A.classes[0],E=w.classes[0];C==="mbin"&&Gw.has(E)?A.classes[0]="mord":E==="mbin"&&Yw.has(C)&&(w.classes[0]="mord")},{node:m},v,x),x1(s,(w,A)=>{var C,E,N=w1(A),T=w1(w),B=N&&T?w.hasClass("mtight")?(C=Vw[N])==null?void 0:C[T]:(E=Fw[N])==null?void 0:E[T]:null;if(B)return h7(B,d)},{node:m},v,x),s},x1=function(t,n,i,l,s){l&&t.push(l);for(var u=0;u<t.length;u++){var f=t[u],h=g7(f);if(h){x1(h.children,n,i,null,s);continue}var d=!f.hasClass("mspace");if(d){var p=n(f,i.node);p&&(i.insertAfter?i.insertAfter(p):(t.unshift(p),u++))}d?i.node=f:s&&f.hasClass("newline")&&(i.node=Se(["leftmost"])),i.insertAfter=(m=>v=>{t.splice(m+1,0,v),u++})(u)}l&&t.pop()},g7=function(t){return t instanceof uo||t instanceof wc||t instanceof co&&t.hasClass("enclosing")?t:null},b1=function(t,n){var i=g7(t);if(i){var l=i.children;if(l.length){if(n==="right")return b1(l[l.length-1],"right");if(n==="left")return b1(l[0],"left")}}return t},w1=function(t,n){if(!t)return null;n&&(t=b1(t,n));var i=t.classes[0];return Xw[i]||null},Ms=function(t,n){var i=["nulldelimiter"].concat(t.baseSizingClasses());return Se(n.concat(i))},gt=function(t,n,i){if(!t)return Se();if(ec[t.type]){var l=ec[t.type](t,n);if(i&&n.size!==i.size){l=Se(n.sizingClasses(i),[l],n);var s=n.sizeMultiplier/i.sizeMultiplier;l.height*=s,l.depth*=s}return l}else throw new Ae("Got group of unknown type: '"+t.type+"'")};function C0(e,t){var n=Se(["base"],e,t),i=Se(["strut"]);return i.style.height=Me(n.height+n.depth),n.depth&&(i.style.verticalAlign=Me(-n.depth)),n.children.unshift(i),n}function S1(e,t){var n=null;e.length===1&&e[0].type==="tag"&&(n=e[0].tag,e=e[0].body);var i=cn(e,t,"root"),l;i.length===2&&i[1].hasClass("tag")&&(l=i.pop());for(var s=[],u=[],f=0;f<i.length;f++)if(u.push(i[f]),i[f].hasClass("mbin")||i[f].hasClass("mrel")||i[f].hasClass("allowbreak")){for(var h=!1;f<i.length-1&&i[f+1].hasClass("mspace")&&!i[f+1].hasClass("newline");)f++,u.push(i[f]),i[f].hasClass("nobreak")&&(h=!0);h||(s.push(C0(u,t)),u=[])}else i[f].hasClass("newline")&&(u.pop(),u.length>0&&(s.push(C0(u,t)),u=[]),s.push(i[f]));u.length>0&&s.push(C0(u,t));var d;n?(d=C0(cn(n,t,!0),t),d.classes=["tag"],s.push(d)):l&&s.push(l);var p=Se(["katex-html"],s);if(p.setAttribute("aria-hidden","true"),d){var m=d.children[0];m.style.height=Me(p.height+p.depth),p.depth&&(m.style.verticalAlign=Me(-p.depth))}return p}function y7(e){return new uo(e)}class Ce{constructor(t,n,i){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=t,this.attributes={},this.children=n||[],this.classes=i||[]}setAttribute(t,n){this.attributes[t]=n}getAttribute(t){return this.attributes[t]}toNode(){var t=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&t.setAttribute(n,this.attributes[n]);this.classes.length>0&&(t.className=fa(this.classes));for(var i=0;i<this.children.length;i++)if(this.children[i]instanceof en&&this.children[i+1]instanceof en){for(var l=this.children[i].toText()+this.children[++i].toText();this.children[i+1]instanceof en;)l+=this.children[++i].toText();t.appendChild(new en(l).toNode())}else t.appendChild(this.children[i].toNode());return t}toMarkup(){var t="<"+this.type;for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&(t+=" "+n+'="',t+=Sn(this.attributes[n]),t+='"');this.classes.length>0&&(t+=' class ="'+Sn(fa(this.classes))+'"'),t+=">";for(var i=0;i<this.children.length;i++)t+=this.children[i].toMarkup();return t+="</"+this.type+">",t}toText(){return this.children.map(t=>t.toText()).join("")}}class en{constructor(t){this.text=void 0,this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return Sn(this.toText())}toText(){return this.text}}class v7{constructor(t){this.width=void 0,this.character=void 0,this.width=t,t>=.05555&&t<=.05556?this.character=" ":t>=.1666&&t<=.1667?this.character=" ":t>=.2222&&t<=.2223?this.character=" ":t>=.2777&&t<=.2778?this.character=" ":t>=-.05556&&t<=-.05555?this.character=" ":t>=-.1667&&t<=-.1666?this.character=" ":t>=-.2223&&t<=-.2222?this.character=" ":t>=-.2778&&t<=-.2777?this.character=" ":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var t=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return t.setAttribute("width",Me(this.width)),t}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+Me(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var Pw=new Set(["\\imath","\\jmath"]),Zw=new Set(["mrow","mtable"]),gr=function(t,n,i){return Rt[n][t]&&Rt[n][t].replace&&t.charCodeAt(0)!==55349&&!(c7.hasOwnProperty(t)&&i&&(i.fontFamily&&i.fontFamily.slice(4,6)==="tt"||i.font&&i.font.slice(4,6)==="tt"))&&(t=Rt[n][t].replace),new en(t)},lm=function(t){return t.length===1?t[0]:new Ce("mrow",t)},Qw={mathit:"italic",boldsymbol:e=>e.type==="textord"?"bold":"bold-italic",mathbf:"bold",mathbb:"double-struck",mathsfit:"sans-serif-italic",mathfrak:"fraktur",mathscr:"script",mathcal:"script",mathsf:"sans-serif",mathtt:"monospace"},om=(e,t)=>{if(e.mode==="text"){if(t.fontFamily==="texttt")return"monospace";if(t.fontFamily==="textsf")return t.fontShape==="textit"&&t.fontWeight==="textbf"?"sans-serif-bold-italic":t.fontShape==="textit"?"sans-serif-italic":t.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(t.fontShape==="textit"&&t.fontWeight==="textbf")return"bold-italic";if(t.fontShape==="textit")return"italic";if(t.fontWeight==="textbf")return"bold"}var n=t.font;if(!n||n==="mathnormal")return null;var i=e.mode,l=Qw[n];if(l)return typeof l=="function"?l(e):l;var s=e.text;if(Pw.has(s))return null;if(Rt[i][s]){var u=Rt[i][s].replace;u&&(s=u)}var f=v1[n].fontName;return rm(s,f,i)?v1[n].variant:null};function xd(e){if(!e)return!1;if(e.type==="mi"&&e.children.length===1){var t=e.children[0];return t instanceof en&&t.text==="."}else if(e.type==="mo"&&e.children.length===1&&e.getAttribute("separator")==="true"&&e.getAttribute("lspace")==="0em"&&e.getAttribute("rspace")==="0em"){var n=e.children[0];return n instanceof en&&n.text===","}else return!1}var ar=function(t,n,i){if(t.length===1){var l=Tt(t[0],n);return i&&l instanceof Ce&&l.type==="mo"&&(l.setAttribute("lspace","0em"),l.setAttribute("rspace","0em")),[l]}for(var s=[],u,f=0;f<t.length;f++){var h=Tt(t[f],n);if(h instanceof Ce&&u instanceof Ce){if(h.type==="mtext"&&u.type==="mtext"&&h.getAttribute("mathvariant")===u.getAttribute("mathvariant")){u.children.push(...h.children);continue}else if(h.type==="mn"&&u.type==="mn"){u.children.push(...h.children);continue}else if(xd(h)&&u.type==="mn"){u.children.push(...h.children);continue}else if(h.type==="mn"&&xd(u))h.children=[...u.children,...h.children],s.pop();else if((h.type==="msup"||h.type==="msub")&&h.children.length>=1&&(u.type==="mn"||xd(u))){var d=h.children[0];d instanceof Ce&&d.type==="mn"&&(d.children=[...u.children,...d.children],s.pop())}else if(u.type==="mi"&&u.children.length===1){var p=u.children[0];if(p instanceof en&&p.text==="̸"&&(h.type==="mo"||h.type==="mi"||h.type==="mn")){var m=h.children[0];m instanceof en&&m.text.length>0&&(m.text=m.text.slice(0,1)+"̸"+m.text.slice(1),s.pop())}}}s.push(h),u=h}return s},ma=function(t,n,i){return lm(ar(t,n,i))},Tt=function(t,n){if(!t)return new Ce("mrow");if(tc[t.type])return tc[t.type](t,n);throw new Ae("Got group of unknown type: '"+t.type+"'")};function p3(e,t,n,i,l){var s=ar(e,n),u;s.length===1&&s[0]instanceof Ce&&Zw.has(s[0].type)?u=s[0]:u=new Ce("mrow",s);var f=new Ce("annotation",[new en(t)]);f.setAttribute("encoding","application/x-tex");var h=new Ce("semantics",[u,f]),d=new Ce("math",[h]);d.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),i&&d.setAttribute("display","block");var p=l?"katex":"katex-mathml";return Se([p],[d])}var Kw=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],g3=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],y3=function(t,n){return n.size<2?t:Kw[t-1][n.size-1]};class yi{constructor(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=t.style,this.color=t.color,this.size=t.size||yi.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||"",this.fontFamily=t.fontFamily||"",this.fontWeight=t.fontWeight||"",this.fontShape=t.fontShape||"",this.sizeMultiplier=g3[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var n={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};return Object.assign(n,t),new yi(n)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:y3(this.textSize,t)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(t){return this.size===t&&this.textSize===t?this:this.extend({style:this.style.text(),size:t,textSize:t,sizeMultiplier:g3[t-1]})}havingBaseStyle(t){t=t||this.style.text();var n=y3(yi.BASESIZE,t);return this.size===n&&this.textSize===yi.BASESIZE&&this.style===t?this:this.extend({style:t,size:n})}havingBaseSizing(){var t;switch(this.style.id){case 4:case 5:t=3;break;case 6:case 7:t=1;break;default:t=6}return this.extend({style:this.style.text(),size:t})}withColor(t){return this.extend({color:t})}withPhantom(){return this.extend({phantom:!0})}withFont(t){return this.extend({font:t})}withTextFontFamily(t){return this.extend({fontFamily:t,font:""})}withTextFontWeight(t){return this.extend({fontWeight:t,font:""})}withTextFontShape(t){return this.extend({fontShape:t,font:""})}sizingClasses(t){return t.size!==this.size?["sizing","reset-size"+t.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==yi.BASESIZE?["sizing","reset-size"+this.size,"size"+yi.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=Rw(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}yi.BASESIZE=6;var x7=function(t){return new yi({style:t.displayMode?Pe.DISPLAY:Pe.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},b7=function(t,n){if(n.displayMode){var i=["katex-display"];n.leqno&&i.push("leqno"),n.fleqn&&i.push("fleqn"),t=Se(i,[t])}return t},Jw=function(t,n,i){var l=x7(i),s;if(i.output==="mathml")return p3(t,n,l,i.displayMode,!0);if(i.output==="html"){var u=S1(t,l);s=Se(["katex"],[u])}else{var f=p3(t,n,l,i.displayMode,!1),h=S1(t,l);s=Se(["katex"],[f,h])}return b7(s,i)},Ww=function(t,n,i){var l=x7(i),s=S1(t,l),u=Se(["katex"],[s]);return b7(u,i)},eS={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",underbracket:"⎵",overbracket:"⎴",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},Ec=function(t){var n=new Ce("mo",[new en(eS[t.replace(/^\\/,"")])]);return n.setAttribute("stretchy","true"),n},tS={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overbracket:[["leftbracketover","rightbracketover"],1.6,440],underbracket:[["leftbracketunder","rightbracketunder"],1.6,410],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},nS=new Set(["widehat","widecheck","widetilde","utilde"]),Ac=function(t,n){function i(){var f=4e5,h=t.label.slice(1);if(nS.has(h)&&"base"in t){var d=t.base.type==="ordgroup"?t.base.body.length:1,p,m,v;if(d>5)h==="widehat"||h==="widecheck"?(p=420,f=2364,v=.42,m=h+"4"):(p=312,f=2340,v=.34,m="tilde4");else{var x=[1,1,2,2,3,3][d];h==="widehat"||h==="widecheck"?(f=[0,1062,2364,2364,2364][x],p=[0,239,300,360,420][x],v=[0,.24,.3,.3,.36,.42][x],m=h+x):(f=[0,600,1033,2339,2340][x],p=[0,260,286,306,312][x],v=[0,.26,.286,.3,.306,.34][x],m="tilde"+x)}var w=new ha(m),A=new bi([w],{width:"100%",height:Me(v),viewBox:"0 0 "+f+" "+p,preserveAspectRatio:"none"});return{span:da([],[A],n),minWidth:0,height:v}}else{var C=[],E=tS[h];if(!E)throw new Error('No SVG data for "'+h+'".');var[N,T,B]=E,I=B/1e3,D=N.length,U,J;if(D===1){if(E.length!==4)throw new Error('Expected 4-tuple for single-path SVG data "'+h+'".');U=["hide-tail"],J=[E[3]]}else if(D===2)U=["halfarrow-left","halfarrow-right"],J=["xMinYMin","xMaxYMin"];else if(D===3)U=["brace-left","brace-center","brace-right"],J=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
|
|
262
|
+
`+D+" children.");for(var P=0;P<D;P++){var V=new ha(N[P]),X=new bi([V],{width:"400em",height:Me(I),viewBox:"0 0 "+f+" "+B,preserveAspectRatio:J[P]+" slice"}),W=da([U[P]],[X],n);if(D===1)return{span:W,minWidth:T,height:I};W.style.height=Me(I),C.push(W)}return{span:Se(["stretchy"],C,n),minWidth:T,height:I}}}var{span:l,minWidth:s,height:u}=i();return l.height=u,l.style.height=Me(u),s>0&&(l.style.minWidth=Me(s)),l},rS=function(t,n,i,l,s){var u,f=t.height+t.depth+i+l;if(/fbox|color|angl/.test(n)){if(u=Se(["stretchy",n],[],s),n==="fbox"){var h=s.color&&s.getColor();h&&(u.style.borderColor=h)}}else{var d=[];/^[bx]cancel$/.test(n)&&d.push(new h1({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(n)&&d.push(new h1({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var p=new bi(d,{width:"100%",height:Me(f)});u=da([],[p],s)}return u.height=f,u.style.height=Me(f),u},iS={bin:1,close:1,inner:1,open:1,punct:1,rel:1},aS={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1};function lS(e){return e in iS}function et(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function Cc(e){var t=Tc(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function Tc(e){return e&&(e.type==="atom"||aS.hasOwnProperty(e.type))?e:null}var w7=e=>{if(e instanceof nr)return e;if(_w(e)&&e.children.length===1)return w7(e.children[0])},sm=(e,t)=>{var n,i,l;e&&e.type==="supsub"?(i=et(e.base,"accent"),n=i.base,e.base=n,l=Dw(gt(e,t)),e.base=i):(i=et(e,"accent"),n=i.base);var s=gt(n,t.havingCrampedStyle()),u=i.isShifty&&ki(n),f=0;if(u){var h,d;f=(h=(d=w7(s))==null?void 0:d.skew)!=null?h:0}var p=i.label==="\\c",m=p?s.height+s.depth:Math.min(s.height,t.fontMetrics().xHeight),v;if(i.isStretchy)v=Ac(i,t),v=pt({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"elem",elem:v,wrapperClasses:["svg-align"],wrapperStyle:f>0?{width:"calc(100% - "+Me(2*f)+")",marginLeft:Me(2*f)}:void 0}]});else{var x,w;i.label==="\\vec"?(x=m7("vec",t),w=d7.vec[1]):(x=kc({mode:i.mode,text:i.label},t,"textord"),x=Nw(x),x.italic=0,w=x.width,p&&(m+=x.depth)),v=Se(["accent-body"],[x]);var A=i.label==="\\textcircled";A&&(v.classes.push("accent-full"),m=s.height);var C=f;A||(C-=w/2),v.style.left=Me(C),i.label==="\\textcircled"&&(v.style.top=".2em"),v=pt({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:-m},{type:"elem",elem:v}]})}var E=Se(["mord","accent"],[v],t);return l?(l.children[0]=E,l.height=Math.max(E.height,l.height),l.classes[0]="mord",l):E},S7=(e,t)=>{var n=e.isStretchy?Ec(e.label):new Ce("mo",[gr(e.label,e.mode)]),i=new Ce("mover",[Tt(e.base,t),n]);return i.setAttribute("accent","true"),i},oS=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));ze({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var n=nc(t[0]),i=!oS.test(e.funcName),l=!i||e.funcName==="\\widehat"||e.funcName==="\\widetilde"||e.funcName==="\\widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:i,isShifty:l,base:n}},htmlBuilder:sm,mathmlBuilder:S7});ze({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var n=t[0],i=e.parser.mode;return i==="math"&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),i="text"),{type:"accent",mode:i,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:sm,mathmlBuilder:S7});ze({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:i}=e,l=t[0];return{type:"accentUnder",mode:n.mode,label:i,base:l}},htmlBuilder:(e,t)=>{var n=gt(e.base,t),i=Ac(e,t),l=e.label==="\\utilde"?.12:0,s=pt({positionType:"top",positionData:n.height,children:[{type:"elem",elem:i,wrapperClasses:["svg-align"]},{type:"kern",size:l},{type:"elem",elem:n}]});return Se(["mord","accentunder"],[s],t)},mathmlBuilder:(e,t)=>{var n=Ec(e.label),i=new Ce("munder",[Tt(e.base,t),n]);return i.setAttribute("accentunder","true"),i}});var T0=e=>{var t=new Ce("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};ze({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:i,funcName:l}=e;return{type:"xArrow",mode:i.mode,label:l,body:t[0],below:n[0]}},htmlBuilder(e,t){var n=t.style,i=t.havingStyle(n.sup()),l=Wl(gt(e.body,i,t),t),s=e.label.slice(0,2)==="\\x"?"x":"cd";l.classes.push(s+"-arrow-pad");var u;e.below&&(i=t.havingStyle(n.sub()),u=Wl(gt(e.below,i,t),t),u.classes.push(s+"-arrow-pad"));var f=Ac(e,t),h=-t.fontMetrics().axisHeight+.5*f.height,d=-t.fontMetrics().axisHeight-.5*f.height-.111;(l.depth>.25||e.label==="\\xleftequilibrium")&&(d-=l.depth);var p;if(u){var m=-t.fontMetrics().axisHeight+u.height+.5*f.height+.111;p=pt({positionType:"individualShift",children:[{type:"elem",elem:l,shift:d},{type:"elem",elem:f,shift:h,wrapperClasses:["svg-align"]},{type:"elem",elem:u,shift:m}]})}else p=pt({positionType:"individualShift",children:[{type:"elem",elem:l,shift:d},{type:"elem",elem:f,shift:h,wrapperClasses:["svg-align"]}]});return Se(["mrel","x-arrow"],[p],t)},mathmlBuilder(e,t){var n=Ec(e.label);n.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var i;if(e.body){var l=T0(Tt(e.body,t));if(e.below){var s=T0(Tt(e.below,t));i=new Ce("munderover",[n,s,l])}else i=new Ce("mover",[n,l])}else if(e.below){var u=T0(Tt(e.below,t));i=new Ce("munder",[n,u])}else i=T0(),i=new Ce("mover",[n,i]);return i}});function k7(e,t){var n=cn(e.body,t,!0);return Se([e.mclass],n,t)}function E7(e,t){var n,i=ar(e.body,t);return e.mclass==="minner"?n=new Ce("mpadded",i):e.mclass==="mord"?e.isCharacterBox?(n=i[0],n.type="mi"):n=new Ce("mi",i):(e.isCharacterBox?(n=i[0],n.type="mo"):n=new Ce("mo",i),e.mclass==="mbin"?(n.attributes.lspace="0.22em",n.attributes.rspace="0.22em"):e.mclass==="mpunct"?(n.attributes.lspace="0em",n.attributes.rspace="0.17em"):e.mclass==="mopen"||e.mclass==="mclose"?(n.attributes.lspace="0em",n.attributes.rspace="0em"):e.mclass==="minner"&&(n.attributes.lspace="0.0556em",n.attributes.width="+0.1111em")),n}ze({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:n,funcName:i}=e,l=t[0];return{type:"mclass",mode:n.mode,mclass:"m"+i.slice(5),body:Wt(l),isCharacterBox:ki(l)}},htmlBuilder:k7,mathmlBuilder:E7});var Mc=e=>{var t=e.type==="ordgroup"&&e.body.length?e.body[0]:e;return t.type==="atom"&&(t.family==="bin"||t.family==="rel")?"m"+t.family:"mord"};ze({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:n}=e;return{type:"mclass",mode:n.mode,mclass:Mc(t[0]),body:Wt(t[1]),isCharacterBox:ki(t[1])}}});ze({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:n,funcName:i}=e,l=t[1],s=t[0],u;i!=="\\stackrel"?u=Mc(l):u="mrel";var f={type:"op",mode:l.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:i!=="\\stackrel",body:Wt(l)},h={type:"supsub",mode:s.mode,base:f,sup:i==="\\underset"?null:s,sub:i==="\\underset"?s:null};return{type:"mclass",mode:n.mode,mclass:u,body:[h],isCharacterBox:ki(h)}},htmlBuilder:k7,mathmlBuilder:E7});ze({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"pmb",mode:n.mode,mclass:Mc(t[0]),body:Wt(t[0])}},htmlBuilder(e,t){var n=cn(e.body,t,!0),i=Se([e.mclass],n,t);return i.style.textShadow="0.02em 0.01em 0.04px",i},mathmlBuilder(e,t){var n=ar(e.body,t),i=new Ce("mstyle",n);return i.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),i}});var sS={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},v3=()=>({type:"styling",body:[],mode:"math",style:"display",resetFont:!0}),x3=e=>e.type==="textord"&&e.text==="@",uS=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function cS(e,t,n){var i=sS[e];switch(i){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return n.callFunction(i,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{var l=n.callFunction("\\\\cdleft",[t[0]],[]),s={type:"atom",text:i,mode:"math",family:"rel"},u=n.callFunction("\\Big",[s],[]),f=n.callFunction("\\\\cdright",[t[1]],[]),h={type:"ordgroup",mode:"math",body:[l,u,f]};return n.callFunction("\\\\cdparent",[h],[])}case"\\\\cdlongequal":return n.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var d={type:"textord",text:"\\Vert",mode:"math"};return n.callFunction("\\Big",[d],[])}default:return{type:"textord",text:" ",mode:"math"}}}function fS(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var n=e.fetch().text;if(n==="&"||n==="\\\\")e.consume();else if(n==="\\end"){t[t.length-1].length===0&&t.pop();break}else throw new Ae("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var i=[],l=[i],s=0;s<t.length;s++){for(var u=t[s],f=v3(),h=0;h<u.length;h++)if(!x3(u[h]))f.body.push(u[h]);else{i.push(f),h+=1;var d=Cc(u[h]).text,p=new Array(2);if(p[0]={type:"ordgroup",mode:"math",body:[]},p[1]={type:"ordgroup",mode:"math",body:[]},!"=|.".includes(d))if("<>AV".includes(d))for(var m=0;m<2;m++){for(var v=!0,x=h+1;x<u.length;x++){if(uS(u[x],d)){v=!1,h=x;break}if(x3(u[x]))throw new Ae("Missing a "+d+" character to complete a CD arrow.",u[x]);p[m].body.push(u[x])}if(v)throw new Ae("Missing a "+d+" character to complete a CD arrow.",u[h])}else throw new Ae('Expected one of "<>AV=|." after @',u[h]);var w=cS(d,p,e),A={type:"styling",body:[w],mode:"math",style:"display",resetFont:!0};i.push(A),f=v3()}s%2===0?i.push(f):i.shift(),i=[],l.push(i)}e.gullet.endGroup(),e.gullet.endGroup();var C=new Array(l[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:l,arraystretch:1,addJot:!0,rowGaps:[null],cols:C,colSeparationType:"CD",hLinesBeforeRow:new Array(l.length+1).fill([])}}ze({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:i}=e;return{type:"cdlabel",mode:n.mode,side:i.slice(4),label:t[0]}},htmlBuilder(e,t){var n=t.havingStyle(t.style.sup()),i=Wl(gt(e.label,n,t),t);return i.classes.push("cd-label-"+e.side),i.style.bottom=Me(.8-i.depth),i.height=0,i.depth=0,i},mathmlBuilder(e,t){var n=new Ce("mrow",[Tt(e.label,t)]);return n=new Ce("mpadded",[n]),n.setAttribute("width","0"),e.side==="left"&&n.setAttribute("lspace","-1width"),n.setAttribute("voffset","0.7em"),n=new Ce("mstyle",[n]),n.setAttribute("displaystyle","false"),n.setAttribute("scriptlevel","1"),n}});ze({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:n}=e;return{type:"cdlabelparent",mode:n.mode,fragment:t[0]}},htmlBuilder(e,t){var n=Wl(gt(e.fragment,t),t);return n.classes.push("cd-vert-arrow"),n},mathmlBuilder(e,t){return new Ce("mrow",[Tt(e.fragment,t)])}});ze({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:n}=e,i=et(t[0],"ordgroup"),l=i.body,s="",u=0;u<l.length;u++){var f=et(l[u],"textord");s+=f.text}var h=parseInt(s),d;if(isNaN(h))throw new Ae("\\@char has non-numeric argument "+s);if(h<0||h>=1114111)throw new Ae("\\@char with invalid code point "+s);return h<=65535?d=String.fromCharCode(h):(h-=65536,d=String.fromCharCode((h>>10)+55296,(h&1023)+56320)),{type:"textord",mode:n.mode,text:d}}});var A7=(e,t)=>{var n=cn(e.body,t.withColor(e.color),!1);return Ai(n)},C7=(e,t)=>{var n=ar(e.body,t.withColor(e.color)),i=new Ce("mstyle",n);return i.setAttribute("mathcolor",e.color),i};ze({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:n}=e,i=et(t[0],"color-token").color,l=t[1];return{type:"color",mode:n.mode,color:i,body:Wt(l)}},htmlBuilder:A7,mathmlBuilder:C7});ze({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:n,breakOnTokenText:i}=e,l=et(t[0],"color-token").color;n.gullet.macros.set("\\current@color",l);var s=n.parseExpression(!0,i);return{type:"color",mode:n.mode,color:l,body:s}},htmlBuilder:A7,mathmlBuilder:C7});ze({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,n){var{parser:i}=e,l=i.gullet.future().text==="["?i.parseSizeGroup(!0):null,s=!i.settings.displayMode||!i.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:i.mode,newLine:s,size:l&&et(l,"size").value}},htmlBuilder(e,t){var n=Se(["mspace"],[],t);return e.newLine&&(n.classes.push("newline"),e.size&&(n.style.marginTop=Me(Ut(e.size,t)))),n},mathmlBuilder(e,t){var n=new Ce("mspace");return e.newLine&&(n.setAttribute("linebreak","newline"),e.size&&n.setAttribute("height",Me(Ut(e.size,t)))),n}});var k1={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},T7=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new Ae("Expected a control sequence",e);return t},hS=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},M7=(e,t,n,i)=>{var l=e.gullet.macros.get(n.text);l==null&&(n.noexpand=!0,l={tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,l,i)};ze({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:n}=e;t.consumeSpaces();var i=t.fetch();if(k1[i.text])return(n==="\\global"||n==="\\\\globallong")&&(i.text=k1[i.text]),et(t.parseFunction(),"internal");throw new Ae("Invalid token after macro prefix",i)}});ze({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,i=t.gullet.popToken(),l=i.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(l))throw new Ae("Expected a control sequence",i);for(var s=0,u,f=[[]];t.gullet.future().text!=="{";)if(i=t.gullet.popToken(),i.text==="#"){if(t.gullet.future().text==="{"){u=t.gullet.future(),f[s].push("{");break}if(i=t.gullet.popToken(),!/^[1-9]$/.test(i.text))throw new Ae('Invalid argument number "'+i.text+'"');if(parseInt(i.text)!==s+1)throw new Ae('Argument number "'+i.text+'" out of order');s++,f.push([])}else{if(i.text==="EOF")throw new Ae("Expected a macro definition");f[s].push(i.text)}var{tokens:h}=t.gullet.consumeArg();return u&&h.unshift(u),(n==="\\edef"||n==="\\xdef")&&(h=t.gullet.expandTokens(h),h.reverse()),t.gullet.macros.set(l,{tokens:h,numArgs:s,delimiters:f},n===k1[n]),{type:"internal",mode:t.mode}}});ze({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,i=T7(t.gullet.popToken());t.gullet.consumeSpaces();var l=hS(t);return M7(t,i,l,n==="\\\\globallet"),{type:"internal",mode:t.mode}}});ze({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,i=T7(t.gullet.popToken()),l=t.gullet.popToken(),s=t.gullet.popToken();return M7(t,i,s,n==="\\\\globalfuture"),t.gullet.pushToken(s),t.gullet.pushToken(l),{type:"internal",mode:t.mode}}});var ys=function(t,n,i){var l=Rt.math[t]&&Rt.math[t].replace,s=rm(l||t,n,i);if(!s)throw new Error("Unsupported symbol "+t+" and font size "+n+".");return s},um=function(t,n,i,l){var s=i.havingBaseStyle(n),u=Se(l.concat(s.sizingClasses(i)),[t],i),f=s.sizeMultiplier/i.sizeMultiplier;return u.height*=f,u.depth*=f,u.maxFontSize=s.sizeMultiplier,u},z7=function(t,n,i){var l=n.havingBaseStyle(i),s=(1-n.sizeMultiplier/l.sizeMultiplier)*n.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=Me(s),t.height-=s,t.depth+=s},dS=function(t,n,i,l,s,u){var f=Cn(t,"Main-Regular",s,l),h=um(f,n,l,u);return z7(h,l,n),h},mS=function(t,n,i,l){return Cn(t,"Size"+n+"-Regular",i,l)},N7=function(t,n,i,l,s,u){var f=mS(t,n,s,l),h=um(Se(["delimsizing","size"+n],[f],l),Pe.TEXT,l,u);return i&&z7(h,l,Pe.TEXT),h},bd=function(t,n,i){var l;n==="Size1-Regular"?l="delim-size1":l="delim-size4";var s=Se(["delimsizinginner",l],[Se([],[Cn(t,n,i)])]);return{type:"elem",elem:s}},wd=function(t,n,i){var l=Ir["Size4-Regular"][t.charCodeAt(0)]?Ir["Size4-Regular"][t.charCodeAt(0)][4]:Ir["Size1-Regular"][t.charCodeAt(0)][4],s=new ha("inner",kw(t,Math.round(1e3*n))),u=new bi([s],{width:Me(l),height:Me(n),style:"width:"+Me(l),viewBox:"0 0 "+1e3*l+" "+Math.round(1e3*n),preserveAspectRatio:"xMinYMin"}),f=da([],[u],i);return f.height=n,f.style.height=Me(n),f.style.width=Me(l),{type:"elem",elem:f}},E1=.008,M0={type:"kern",size:-1*E1},pS=new Set(["|","\\lvert","\\rvert","\\vert"]),gS=new Set(["\\|","\\lVert","\\rVert","\\Vert"]),D7=function(t,n,i,l,s,u){var f,h,d,p,m="",v=0;f=d=p=t,h=null;var x="Size1-Regular";t==="\\uparrow"?d=p="⏐":t==="\\Uparrow"?d=p="‖":t==="\\downarrow"?f=d="⏐":t==="\\Downarrow"?f=d="‖":t==="\\updownarrow"?(f="\\uparrow",d="⏐",p="\\downarrow"):t==="\\Updownarrow"?(f="\\Uparrow",d="‖",p="\\Downarrow"):pS.has(t)?(d="∣",m="vert",v=333):gS.has(t)?(d="∥",m="doublevert",v=556):t==="["||t==="\\lbrack"?(f="⎡",d="⎢",p="⎣",x="Size4-Regular",m="lbrack",v=667):t==="]"||t==="\\rbrack"?(f="⎤",d="⎥",p="⎦",x="Size4-Regular",m="rbrack",v=667):t==="\\lfloor"||t==="⌊"?(d=f="⎢",p="⎣",x="Size4-Regular",m="lfloor",v=667):t==="\\lceil"||t==="⌈"?(f="⎡",d=p="⎢",x="Size4-Regular",m="lceil",v=667):t==="\\rfloor"||t==="⌋"?(d=f="⎥",p="⎦",x="Size4-Regular",m="rfloor",v=667):t==="\\rceil"||t==="⌉"?(f="⎤",d=p="⎥",x="Size4-Regular",m="rceil",v=667):t==="("||t==="\\lparen"?(f="⎛",d="⎜",p="⎝",x="Size4-Regular",m="lparen",v=875):t===")"||t==="\\rparen"?(f="⎞",d="⎟",p="⎠",x="Size4-Regular",m="rparen",v=875):t==="\\{"||t==="\\lbrace"?(f="⎧",h="⎨",p="⎩",d="⎪",x="Size4-Regular"):t==="\\}"||t==="\\rbrace"?(f="⎫",h="⎬",p="⎭",d="⎪",x="Size4-Regular"):t==="\\lgroup"||t==="⟮"?(f="⎧",p="⎩",d="⎪",x="Size4-Regular"):t==="\\rgroup"||t==="⟯"?(f="⎫",p="⎭",d="⎪",x="Size4-Regular"):t==="\\lmoustache"||t==="⎰"?(f="⎧",p="⎭",d="⎪",x="Size4-Regular"):(t==="\\rmoustache"||t==="⎱")&&(f="⎫",p="⎩",d="⎪",x="Size4-Regular");var w=ys(f,x,s),A=w.height+w.depth,C=ys(d,x,s),E=C.height+C.depth,N=ys(p,x,s),T=N.height+N.depth,B=0,I=1;if(h!==null){var D=ys(h,x,s);B=D.height+D.depth,I=2}var U=A+T+B,J=Math.max(0,Math.ceil((n-U)/(I*E))),P=U+J*I*E,V=l.fontMetrics().axisHeight;i&&(V*=l.sizeMultiplier);var X=P/2-V,W=[];if(m.length>0){var ce=P-A-T,q=Math.round(P*1e3),F=Ew(m,Math.round(ce*1e3)),L=new ha(m,F),Y=Me(v/1e3),K=Me(q/1e3),ne=new bi([L],{width:Y,height:K,viewBox:"0 0 "+v+" "+q}),R=da([],[ne],l);R.height=q/1e3,R.style.width=Y,R.style.height=K,W.push({type:"elem",elem:R})}else{if(W.push(bd(p,x,s)),W.push(M0),h===null){var j=P-A-T+2*E1;W.push(wd(d,j,l))}else{var Z=(P-A-T-B)/2+2*E1;W.push(wd(d,Z,l)),W.push(M0),W.push(bd(h,x,s)),W.push(M0),W.push(wd(d,Z,l))}W.push(M0),W.push(bd(f,x,s))}var _=l.havingBaseStyle(Pe.TEXT),se=pt({positionType:"bottom",positionData:X,children:W});return um(Se(["delimsizing","mult"],[se],_),Pe.TEXT,l,u)},Sd=80,kd=.08,Ed=function(t,n,i,l,s){var u=Sw(t,l,i),f=new ha(t,u),h=new bi([f],{width:"400em",height:Me(n),viewBox:"0 0 400000 "+i,preserveAspectRatio:"xMinYMin slice"});return da(["hide-tail"],[h],s)},yS=function(t,n){var i=n.havingBaseSizing(),l=L7("\\surd",t*i.sizeMultiplier,B7,i),s=i.sizeMultiplier,u=Math.max(0,n.minRuleThickness-n.fontMetrics().sqrtRuleThickness),f,h,d,p,m;return l.type==="small"?(p=1e3+1e3*u+Sd,t<1?s=1:t<1.4&&(s=.7),h=(1+u+kd)/s,d=(1+u)/s,f=Ed("sqrtMain",h,p,u,n),f.style.minWidth="0.853em",m=.833/s):l.type==="large"?(p=(1e3+Sd)*bs[l.size],d=(bs[l.size]+u)/s,h=(bs[l.size]+u+kd)/s,f=Ed("sqrtSize"+l.size,h,p,u,n),f.style.minWidth="1.02em",m=1/s):(h=t+u+kd,d=t+u,p=Math.floor(1e3*t+u)+Sd,f=Ed("sqrtTall",h,p,u,n),f.style.minWidth="0.742em",m=1.056),f.height=d,f.style.height=Me(h),{span:f,advanceWidth:m,ruleWidth:(n.fontMetrics().sqrtRuleThickness+u)*s}},_7=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"]),vS=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"]),O7=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),bs=[0,1.2,1.8,2.4,3],R7=function(t,n,i,l,s){if(t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle"),_7.has(t)||O7.has(t))return N7(t,n,!1,i,l,s);if(vS.has(t))return D7(t,bs[n],!1,i,l,s);throw new Ae("Illegal delimiter: '"+t+"'")},xS=[{type:"small",style:Pe.SCRIPTSCRIPT},{type:"small",style:Pe.SCRIPT},{type:"small",style:Pe.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],bS=[{type:"small",style:Pe.SCRIPTSCRIPT},{type:"small",style:Pe.SCRIPT},{type:"small",style:Pe.TEXT},{type:"stack"}],B7=[{type:"small",style:Pe.SCRIPTSCRIPT},{type:"small",style:Pe.SCRIPT},{type:"small",style:Pe.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],wS=function(t){if(t.type==="small")return"Main-Regular";if(t.type==="large")return"Size"+t.size+"-Regular";if(t.type==="stack")return"Size4-Regular";var n=t.type;throw new Error("Add support for delim type '"+n+"' here.")},L7=function(t,n,i,l){for(var s=Math.min(2,3-l.style.size),u=s;u<i.length;u++){var f=i[u];if(f.type==="stack")break;var h=ys(t,wS(f),"math"),d=h.height+h.depth;if(f.type==="small"){var p=l.havingBaseStyle(f.style);d*=p.sizeMultiplier}if(d>n)return f}return i[i.length-1]},A1=function(t,n,i,l,s,u){t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle");var f;O7.has(t)?f=xS:_7.has(t)?f=B7:f=bS;var h=L7(t,n,f,l);return h.type==="small"?dS(t,h.style,i,l,s,u):h.type==="large"?N7(t,h.size,i,l,s,u):D7(t,n,i,l,s,u)},Ad=function(t,n,i,l,s,u){var f=l.fontMetrics().axisHeight*l.sizeMultiplier,h=901,d=5/l.fontMetrics().ptPerEm,p=Math.max(n-f,i+f),m=Math.max(p/500*h,2*p-d);return A1(t,m,!0,l,s,u)},b3={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},SS=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."]);function w3(e){return"isMiddle"in e}function zc(e,t){var n=Tc(e);if(n&&SS.has(n.text))return n;throw n?new Ae("Invalid delimiter '"+n.text+"' after '"+t.funcName+"'",e):new Ae("Invalid delimiter type '"+e.type+"'",e)}ze({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var n=zc(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:b3[e.funcName].size,mclass:b3[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>e.delim==="."?Se([e.mclass]):R7(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!=="."&&t.push(gr(e.delim,e.mode));var n=new Ce("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n.setAttribute("stretchy","true");var i=Me(bs[e.size]);return n.setAttribute("minsize",i),n.setAttribute("maxsize",i),n}});function S3(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}ze({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=e.parser.gullet.macros.get("\\current@color");if(n&&typeof n!="string")throw new Ae("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:zc(t[0],e).text,color:n}}});ze({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=zc(t[0],e),i=e.parser;++i.leftrightDepth;var l=i.parseExpression(!1);--i.leftrightDepth,i.expect("\\right",!1);var s=et(i.parseFunction(),"leftright-right");return{type:"leftright",mode:i.mode,body:l,left:n.text,right:s.delim,rightColor:s.color}},htmlBuilder:(e,t)=>{S3(e);for(var n=cn(e.body,t,!0,["mopen","mclose"]),i=0,l=0,s=!1,u=0;u<n.length;u++){var f=n[u];w3(f)?s=!0:(i=Math.max(n[u].height,i),l=Math.max(n[u].depth,l))}i*=t.sizeMultiplier,l*=t.sizeMultiplier;var h;if(e.left==="."?h=Ms(t,["mopen"]):h=Ad(e.left,i,l,t,e.mode,["mopen"]),n.unshift(h),s)for(var d=1;d<n.length;d++){var p=n[d];if(w3(p)){var m=p.isMiddle;n[d]=Ad(m.delim,i,l,m.options,e.mode,[])}}var v;if(e.right===".")v=Ms(t,["mclose"]);else{var x=e.rightColor?t.withColor(e.rightColor):t;v=Ad(e.right,i,l,x,e.mode,["mclose"])}return n.push(v),Se(["minner"],n,t)},mathmlBuilder:(e,t)=>{S3(e);var n=ar(e.body,t);if(e.left!=="."){var i=new Ce("mo",[gr(e.left,e.mode)]);i.setAttribute("fence","true"),n.unshift(i)}if(e.right!=="."){var l=new Ce("mo",[gr(e.right,e.mode)]);l.setAttribute("fence","true"),e.rightColor&&l.setAttribute("mathcolor",e.rightColor),n.push(l)}return lm(n)}});ze({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=zc(t[0],e);if(!e.parser.leftrightDepth)throw new Ae("\\middle without preceding \\left",n);return{type:"middle",mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{var n;return e.delim==="."?n=Ms(t,[]):(n=R7(e.delim,1,t,e.mode,[]),n.isMiddle={delim:e.delim,options:t}),n},mathmlBuilder:(e,t)=>{var n=e.delim==="\\vert"||e.delim==="|"?gr("|","text"):gr(e.delim,e.mode),i=new Ce("mo",[n]);return i.setAttribute("fence","true"),i.setAttribute("lspace","0.05em"),i.setAttribute("rspace","0.05em"),i}});var Nc=(e,t)=>{var n=Wl(gt(e.body,t),t),i=e.label.slice(1),l=t.sizeMultiplier,s,u,f=ki(e.body);if(i==="sout")s=Se(["stretchy","sout"]),s.height=t.fontMetrics().defaultRuleThickness/l,u=-.5*t.fontMetrics().xHeight;else if(i==="phase"){var h=Ut({number:.6,unit:"pt"},t),d=Ut({number:.35,unit:"ex"},t),p=t.havingBaseSizing();l=l/p.sizeMultiplier;var m=n.height+n.depth+h+d;n.style.paddingLeft=Me(m/2+h);var v=Math.floor(1e3*m*l),x=bw(v),w=new bi([new ha("phase",x)],{width:"400em",height:Me(v/1e3),viewBox:"0 0 400000 "+v,preserveAspectRatio:"xMinYMin slice"});s=da(["hide-tail"],[w],t),s.style.height=Me(m),u=n.depth+h+d}else{/cancel/.test(i)?f||n.classes.push("cancel-pad"):i==="angl"?n.classes.push("anglpad"):n.classes.push("boxpad");var A,C,E=0;/box/.test(i)?(E=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),A=t.fontMetrics().fboxsep+(i==="colorbox"?0:E),C=A):i==="angl"?(E=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),A=4*E,C=Math.max(0,.25-n.depth)):(A=f?.2:0,C=A),s=rS(n,i,A,C,t),/fbox|boxed|fcolorbox/.test(i)?(s.style.borderStyle="solid",s.style.borderWidth=Me(E)):i==="angl"&&E!==.049&&(s.style.borderTopWidth=Me(E),s.style.borderRightWidth=Me(E)),u=n.depth+C,e.backgroundColor&&(s.style.backgroundColor=e.backgroundColor,e.borderColor&&(s.style.borderColor=e.borderColor))}var N;if(e.backgroundColor)N=pt({positionType:"individualShift",children:[{type:"elem",elem:s,shift:u},{type:"elem",elem:n,shift:0}]});else{var T=/cancel|phase/.test(i)?["svg-align"]:[];N=pt({positionType:"individualShift",children:[{type:"elem",elem:n,shift:0},{type:"elem",elem:s,shift:u,wrapperClasses:T}]})}return/cancel/.test(i)&&(N.height=n.height,N.depth=n.depth),/cancel/.test(i)&&!f?Se(["mord","cancel-lap"],[N],t):Se(["mord"],[N],t)},Dc=(e,t)=>{var n,i=new Ce(e.label.includes("colorbox")?"mpadded":"menclose",[Tt(e.body,t)]);switch(e.label){case"\\cancel":i.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":i.setAttribute("notation","downdiagonalstrike");break;case"\\phase":i.setAttribute("notation","phasorangle");break;case"\\sout":i.setAttribute("notation","horizontalstrike");break;case"\\fbox":i.setAttribute("notation","box");break;case"\\angl":i.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,i.setAttribute("width","+"+2*n+"pt"),i.setAttribute("height","+"+2*n+"pt"),i.setAttribute("lspace",n+"pt"),i.setAttribute("voffset",n+"pt"),e.label==="\\fcolorbox"){var l=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);i.setAttribute("style","border: "+Me(l)+" solid "+e.borderColor)}break;case"\\xcancel":i.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&i.setAttribute("mathbackground",e.backgroundColor),i};ze({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","hbox"]},handler(e,t,n){var{parser:i,funcName:l}=e,s=et(t[0],"color-token").color,u=t[1];return{type:"enclose",mode:i.mode,label:l,backgroundColor:s,body:u}},htmlBuilder:Nc,mathmlBuilder:Dc});ze({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","hbox"]},handler(e,t,n){var{parser:i,funcName:l}=e,s=et(t[0],"color-token").color,u=et(t[1],"color-token").color,f=t[2];return{type:"enclose",mode:i.mode,label:l,backgroundColor:u,borderColor:s,body:f}},htmlBuilder:Nc,mathmlBuilder:Dc});ze({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\fbox",body:t[0]}}});ze({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\phase"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:i}=e,l=t[0];return{type:"enclose",mode:n.mode,label:i,body:l}},htmlBuilder:Nc,mathmlBuilder:Dc});ze({type:"enclose",names:["\\sout"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n,funcName:i}=e;n.mode==="math"&&n.settings.reportNonstrict("mathVsSout","LaTeX's \\sout works only in text mode");var l=t[0];return{type:"enclose",mode:n.mode,label:i,body:l}},htmlBuilder:Nc,mathmlBuilder:Dc});ze({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\angl",body:t[0]}}});var H7={};function Vr(e){for(var{type:t,names:n,props:i,handler:l,htmlBuilder:s,mathmlBuilder:u}=e,f={type:t,numArgs:i.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:l},h=0;h<n.length;++h)H7[n[h]]=f;s&&(ec[t]=s),u&&(tc[t]=u)}var j7={};function H(e,t){j7[e]=t}class In{constructor(t,n,i){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=t,this.start=n,this.end=i}static range(t,n){return n?!t||!t.loc||!n.loc||t.loc.lexer!==n.loc.lexer?null:new In(t.loc.lexer,t.loc.start,n.loc.end):t&&t.loc}}class er{constructor(t,n){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=t,this.loc=n}range(t,n){return new er(n,In.range(this,t))}}function k3(e){var t=[];e.consumeSpaces();var n=e.fetch().text;for(n==="\\relax"&&(e.consume(),e.consumeSpaces(),n=e.fetch().text);n==="\\hline"||n==="\\hdashline";)e.consume(),t.push(n==="\\hdashline"),e.consumeSpaces(),n=e.fetch().text;return t}var _c=e=>{var t=e.parser.settings;if(!t.displayMode)throw new Ae("{"+e.envName+"} can be used only in display mode.")},kS=new Set(["gather","gather*"]);function cm(e){if(!e.includes("ed"))return!e.includes("*")}function ga(e,t,n){var{hskipBeforeAndAfter:i,addJot:l,cols:s,arraystretch:u,colSeparationType:f,autoTag:h,singleRow:d,emptySingleRow:p,maxNumCols:m,leqno:v}=t;if(e.gullet.beginGroup(),d||e.gullet.macros.set("\\cr","\\\\\\relax"),!u){var x=e.gullet.expandMacroAsText("\\arraystretch");if(x==null)u=1;else if(u=parseFloat(x),!u||u<0)throw new Ae("Invalid \\arraystretch: "+x)}e.gullet.beginGroup();var w=[],A=[w],C=[],E=[],N=h!=null?[]:void 0;function T(){h&&e.gullet.macros.set("\\@eqnsw","1",!0)}function B(){N&&(e.gullet.macros.get("\\df@tag")?(N.push(e.subparse([new er("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):N.push(!!h&&e.gullet.macros.get("\\@eqnsw")==="1"))}for(T(),E.push(k3(e));;){var I=e.parseExpression(!1,d?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup();var D={type:"ordgroup",mode:e.mode,body:I};n&&(D={type:"styling",mode:e.mode,style:n,resetFont:!0,body:[D]}),w.push(D);var U=e.fetch().text;if(U==="&"){if(m&&w.length===m){if(d||f)throw new Ae("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else if(U==="\\end"){B(),w.length===1&&D.type==="styling"&&D.body.length===1&&D.body[0].type==="ordgroup"&&D.body[0].body.length===0&&(A.length>1||!p)&&A.pop(),E.length<A.length+1&&E.push([]);break}else if(U==="\\\\"){e.consume();var J=void 0;e.gullet.future().text!==" "&&(J=e.parseSizeGroup(!0)),C.push(J?J.value:null),B(),E.push(k3(e)),w=[],A.push(w),T()}else throw new Ae("Expected & or \\\\ or \\cr or \\end",e.nextToken)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,addJot:l,arraystretch:u,body:A,cols:s,rowGaps:C,hskipBeforeAndAfter:i,hLinesBeforeRow:E,colSeparationType:f,tags:N,leqno:v}}function fm(e){return e.slice(0,1)==="d"?"display":"text"}var Yr=function(t,n){var i,l,s=t.body.length,u=t.hLinesBeforeRow,f=0,h=new Array(s),d=[],p=Math.max(n.fontMetrics().arrayRuleWidth,n.minRuleThickness),m=1/n.fontMetrics().ptPerEm,v=5*m;if(t.colSeparationType&&t.colSeparationType==="small"){var x=n.havingStyle(Pe.SCRIPT).sizeMultiplier;v=.2778*(x/n.sizeMultiplier)}var w=t.colSeparationType==="CD"?Ut({number:3,unit:"ex"},n):12*m,A=3*m,C=t.arraystretch*w,E=.7*C,N=.3*C,T=0;function B(qe){for(var Xe=0;Xe<qe.length;++Xe)Xe>0&&(T+=.25),d.push({pos:T,isDashed:qe[Xe]})}for(B(u[0]),i=0;i<t.body.length;++i){var I=t.body[i],D=E,U=N;f<I.length&&(f=I.length);var J={cells:new Array(I.length),height:0,depth:0,pos:0};for(l=0;l<I.length;++l){var P=gt(I[l],n);U<P.depth&&(U=P.depth),D<P.height&&(D=P.height),J.cells[l]=P}var V=t.rowGaps[i],X=0;V&&(X=Ut(V,n),X>0&&(X+=N,U<X&&(U=X),X=0)),t.addJot&&i<t.body.length-1&&(U+=A),J.height=D,J.depth=U,T+=D,J.pos=T,T+=U+X,h[i]=J,B(u[i+1])}var W=T/2+n.fontMetrics().axisHeight,ce=t.cols||[],q=[],F,L,Y=[];if(t.tags&&t.tags.some(qe=>qe))for(i=0;i<s;++i){var K=h[i],ne=K.pos-W,R=t.tags[i],j=void 0;R===!0?j=Se(["eqn-num"],[],n):R===!1?j=Se([],[],n):j=Se([],cn(R,n,!0),n),j.depth=K.depth,j.height=K.height,Y.push({type:"elem",elem:j,shift:ne})}for(l=0,L=0;l<f||L<ce.length;++l,++L){for(var Z,_=ce[L],se=!0;((ve=_)==null?void 0:ve.type)==="separator";){var ve;if(se||(F=Se(["arraycolsep"],[]),F.style.width=Me(n.fontMetrics().doubleRuleSep),q.push(F)),_.separator==="|"||_.separator===":"){var xe=_.separator==="|"?"solid":"dashed",we=Se(["vertical-separator"],[],n);we.style.height=Me(T),we.style.borderRightWidth=Me(p),we.style.borderRightStyle=xe,we.style.margin="0 "+Me(-p/2);var ye=T-W;ye&&(we.style.verticalAlign=Me(-ye)),q.push(we)}else throw new Ae("Invalid separator type: "+_.separator);L++,_=ce[L],se=!1}if(!(l>=f)){var ke=void 0;if(l>0||t.hskipBeforeAndAfter){var Be,Ue;ke=(Be=(Ue=_)==null?void 0:Ue.pregap)!=null?Be:v,ke!==0&&(F=Se(["arraycolsep"],[]),F.style.width=Me(ke),q.push(F))}var Oe=[];for(i=0;i<s;++i){var _e=h[i],Ge=_e.cells[l];if(Ge){var tt=_e.pos-W;Ge.depth=_e.depth,Ge.height=_e.height,Oe.push({type:"elem",elem:Ge,shift:tt})}}var Qe=pt({positionType:"individualShift",children:Oe}),yt=Se(["col-align-"+(((Z=_)==null?void 0:Z.align)||"c")],[Qe]);if(q.push(yt),l<f-1||t.hskipBeforeAndAfter){var pe,Ve;ke=(pe=(Ve=_)==null?void 0:Ve.postgap)!=null?pe:v,ke!==0&&(F=Se(["arraycolsep"],[]),F.style.width=Me(ke),q.push(F))}}}var ut=Se(["mtable"],q);if(d.length>0){for(var bt=Jl("hline",n,p),wt=Jl("hdashline",n,p),vn=[{type:"elem",elem:ut,shift:0}];d.length>0;){var zt=d.pop(),Vn=zt.pos-W;zt.isDashed?vn.push({type:"elem",elem:wt,shift:Vn}):vn.push({type:"elem",elem:bt,shift:Vn})}ut=pt({positionType:"individualShift",children:vn})}if(Y.length===0)return Se(["mord"],[ut],n);var fe=pt({positionType:"individualShift",children:Y}),Ee=Se(["tag"],[fe],n);return Ai([ut,Ee])},ES={c:"center ",l:"left ",r:"right "},Gr=function(t,n){for(var i=[],l=new Ce("mtd",[],["mtr-glue"]),s=new Ce("mtd",[],["mml-eqn-num"]),u=0;u<t.body.length;u++){for(var f=t.body[u],h=[],d=0;d<f.length;d++)h.push(new Ce("mtd",[Tt(f[d],n)]));t.tags&&t.tags[u]&&(h.unshift(l),h.push(l),t.leqno?h.unshift(s):h.push(s)),i.push(new Ce("mtr",h))}var p=new Ce("mtable",i),m=t.arraystretch===.5?.1:.16+t.arraystretch-1+(t.addJot?.09:0);p.setAttribute("rowspacing",Me(m));var v="",x="";if(t.cols&&t.cols.length>0){var w=t.cols,A="",C=!1,E=0,N=w.length;w[0].type==="separator"&&(v+="top ",E=1),w[w.length-1].type==="separator"&&(v+="bottom ",N-=1);for(var T=E;T<N;T++){var B=w[T];B.type==="align"?(x+=ES[B.align],C&&(A+="none "),C=!0):B.type==="separator"&&C&&(A+=B.separator==="|"?"solid ":"dashed ",C=!1)}p.setAttribute("columnalign",x.trim()),/[sd]/.test(A)&&p.setAttribute("columnlines",A.trim())}if(t.colSeparationType==="align"){for(var I=t.cols||[],D="",U=1;U<I.length;U++)D+=U%2?"0em ":"1em ";p.setAttribute("columnspacing",D.trim())}else t.colSeparationType==="alignat"||t.colSeparationType==="gather"?p.setAttribute("columnspacing","0em"):t.colSeparationType==="small"?p.setAttribute("columnspacing","0.2778em"):t.colSeparationType==="CD"?p.setAttribute("columnspacing","0.5em"):p.setAttribute("columnspacing","1em");var J="",P=t.hLinesBeforeRow;v+=P[0].length>0?"left ":"",v+=P[P.length-1].length>0?"right ":"";for(var V=1;V<P.length-1;V++)J+=P[V].length===0?"none ":P[V][0]?"dashed ":"solid ";return/[sd]/.test(J)&&p.setAttribute("rowlines",J.trim()),v!==""&&(p=new Ce("menclose",[p]),p.setAttribute("notation",v.trim())),t.arraystretch&&t.arraystretch<1&&(p=new Ce("mstyle",[p]),p.setAttribute("scriptlevel","1")),p},q7=function(t,n){t.envName.includes("ed")||_c(t);var i=[],l=t.envName.includes("at")?"alignat":"align",s=t.envName==="split",u=ga(t.parser,{cols:i,addJot:!0,autoTag:s?void 0:cm(t.envName),emptySingleRow:!0,colSeparationType:l,maxNumCols:s?2:void 0,leqno:t.parser.settings.leqno},"display"),f=0,h=0,d={type:"ordgroup",mode:t.mode,body:[]};if(n[0]&&n[0].type==="ordgroup"){for(var p="",m=0;m<n[0].body.length;m++){var v=et(n[0].body[m],"textord");p+=v.text}f=Number(p),h=f*2}var x=!h;u.body.forEach(function(E){for(var N=1;N<E.length;N+=2){var T=et(E[N],"styling"),B=et(T.body[0],"ordgroup");B.body.unshift(d)}if(x)h<E.length&&(h=E.length);else{var I=E.length/2;if(f<I)throw new Ae("Too many math in a row: "+("expected "+f+", but got "+I),E[0])}});for(var w=0;w<h;++w){var A="r",C=0;w%2===1?A="l":w>0&&x&&(C=1),i[w]={type:"align",align:A,pregap:C,postgap:0}}return u.colSeparationType=x?"align":"alignat",u};Vr({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var n=Tc(t[0]),i=n?[t[0]]:et(t[0],"ordgroup").body,l=i.map(function(u){var f=Cc(u),h=f.text;if("lcr".includes(h))return{type:"align",align:h};if(h==="|")return{type:"separator",separator:"|"};if(h===":")return{type:"separator",separator:":"};throw new Ae("Unknown column alignment: "+h,u)}),s={cols:l,hskipBeforeAndAfter:!0,maxNumCols:l.length};return ga(e.parser,s,fm(e.envName))},htmlBuilder:Yr,mathmlBuilder:Gr});Vr({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],n="c",i={hskipBeforeAndAfter:!1,cols:[{type:"align",align:n}]};if(e.envName.charAt(e.envName.length-1)==="*"){var l=e.parser;if(l.consumeSpaces(),l.fetch().text==="["){if(l.consume(),l.consumeSpaces(),n=l.fetch().text,!"lcr".includes(n))throw new Ae("Expected l or c or r",l.nextToken);l.consume(),l.consumeSpaces(),l.expect("]"),l.consume(),i.cols=[{type:"align",align:n}]}}var s=ga(e.parser,i,fm(e.envName)),u=Math.max(0,...s.body.map(f=>f.length));return s.cols=new Array(u).fill({type:"align",align:n}),t?{type:"leftright",mode:e.mode,body:[s],left:t[0],right:t[1],rightColor:void 0}:s},htmlBuilder:Yr,mathmlBuilder:Gr});Vr({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5},n=ga(e.parser,t,"script");return n.colSeparationType="small",n},htmlBuilder:Yr,mathmlBuilder:Gr});Vr({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var n=Tc(t[0]),i=n?[t[0]]:et(t[0],"ordgroup").body,l=i.map(function(f){var h=Cc(f),d=h.text;if("lc".includes(d))return{type:"align",align:d};throw new Ae("Unknown column alignment: "+d,f)});if(l.length>1)throw new Ae("{subarray} can contain only one column");var s={cols:l,hskipBeforeAndAfter:!1,arraystretch:.5},u=ga(e.parser,s,"script");if(u.body.length>0&&u.body[0].length>1)throw new Ae("{subarray} can contain only one column");return u},htmlBuilder:Yr,mathmlBuilder:Gr});Vr({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},n=ga(e.parser,t,fm(e.envName));return{type:"leftright",mode:e.mode,body:[n],left:e.envName.includes("r")?".":"\\{",right:e.envName.includes("r")?"\\}":".",rightColor:void 0}},htmlBuilder:Yr,mathmlBuilder:Gr});Vr({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:q7,htmlBuilder:Yr,mathmlBuilder:Gr});Vr({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){kS.has(e.envName)&&_c(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:cm(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return ga(e.parser,t,"display")},htmlBuilder:Yr,mathmlBuilder:Gr});Vr({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:q7,htmlBuilder:Yr,mathmlBuilder:Gr});Vr({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){_c(e);var t={autoTag:cm(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return ga(e.parser,t,"display")},htmlBuilder:Yr,mathmlBuilder:Gr});Vr({type:"array",names:["CD"],props:{numArgs:0},handler(e){return _c(e),fS(e.parser)},htmlBuilder:Yr,mathmlBuilder:Gr});H("\\nonumber","\\gdef\\@eqnsw{0}");H("\\notag","\\nonumber");ze({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new Ae(e.funcName+" valid only within array environment")}});var E3=H7;ze({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:n,funcName:i}=e,l=t[0];if(l.type!=="ordgroup")throw new Ae("Invalid environment name",l);for(var s="",u=0;u<l.body.length;++u)s+=et(l.body[u],"textord").text;if(i==="\\begin"){if(!E3.hasOwnProperty(s))throw new Ae("No such environment: "+s,l);var f=E3[s],{args:h,optArgs:d}=n.parseArguments("\\begin{"+s+"}",f),p={mode:n.mode,envName:s,parser:n},m=f.handler(p,h,d);n.expect("\\end",!1);var v=n.nextToken,x=et(n.parseFunction(),"environment");if(x.name!==s)throw new Ae("Mismatch: \\begin{"+s+"} matched by \\end{"+x.name+"}",v);return m}return{type:"environment",mode:n.mode,name:s,nameGroup:l}}});var I7=(e,t)=>{var n=e.font,i=t.withFont(n);return gt(e.body,i)},U7=(e,t)=>{var n=e.font,i=t.withFont(n);return Tt(e.body,i)},A3={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak"};ze({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:i}=e,l=nc(t[0]),s=i;return s in A3&&(s=A3[s]),{type:"font",mode:n.mode,font:s.slice(1),body:l}},htmlBuilder:I7,mathmlBuilder:U7});ze({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:n}=e,i=t[0];return{type:"mclass",mode:n.mode,mclass:Mc(i),body:[{type:"font",mode:n.mode,font:"boldsymbol",body:i}],isCharacterBox:ki(i)}}});ze({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:i,breakOnTokenText:l}=e,{mode:s}=n,u=n.parseExpression(!0,l);return{type:"font",mode:s,font:"math"+i.slice(1),body:{type:"ordgroup",mode:n.mode,body:u}}},htmlBuilder:I7,mathmlBuilder:U7});var AS=(e,t)=>{var n=t.style,i=n.fracNum(),l=n.fracDen(),s;s=t.havingStyle(i);var u=gt(e.numer,s,t);if(e.continued){var f=8.5/t.fontMetrics().ptPerEm,h=3.5/t.fontMetrics().ptPerEm;u.height=u.height<f?f:u.height,u.depth=u.depth<h?h:u.depth}s=t.havingStyle(l);var d=gt(e.denom,s,t),p,m,v;e.hasBarLine?(e.barSize?(m=Ut(e.barSize,t),p=Jl("frac-line",t,m)):p=Jl("frac-line",t),m=p.height,v=p.height):(p=null,m=0,v=t.fontMetrics().defaultRuleThickness);var x,w,A;n.size===Pe.DISPLAY.size?(x=t.fontMetrics().num1,m>0?w=3*v:w=7*v,A=t.fontMetrics().denom1):(m>0?(x=t.fontMetrics().num2,w=v):(x=t.fontMetrics().num3,w=3*v),A=t.fontMetrics().denom2);var C;if(p){var N=t.fontMetrics().axisHeight;x-u.depth-(N+.5*m)<w&&(x+=w-(x-u.depth-(N+.5*m))),N-.5*m-(d.height-A)<w&&(A+=w-(N-.5*m-(d.height-A)));var T=-(N-.5*m);C=pt({positionType:"individualShift",children:[{type:"elem",elem:d,shift:A},{type:"elem",elem:p,shift:T},{type:"elem",elem:u,shift:-x}]})}else{var E=x-u.depth-(d.height-A);E<w&&(x+=.5*(w-E),A+=.5*(w-E)),C=pt({positionType:"individualShift",children:[{type:"elem",elem:d,shift:A},{type:"elem",elem:u,shift:-x}]})}s=t.havingStyle(n),C.height*=s.sizeMultiplier/t.sizeMultiplier,C.depth*=s.sizeMultiplier/t.sizeMultiplier;var B;n.size===Pe.DISPLAY.size?B=t.fontMetrics().delim1:n.size===Pe.SCRIPTSCRIPT.size?B=t.havingStyle(Pe.SCRIPT).fontMetrics().delim2:B=t.fontMetrics().delim2;var I,D;return e.leftDelim==null?I=Ms(t,["mopen"]):I=A1(e.leftDelim,B,!0,t.havingStyle(n),e.mode,["mopen"]),e.continued?D=Se([]):e.rightDelim==null?D=Ms(t,["mclose"]):D=A1(e.rightDelim,B,!0,t.havingStyle(n),e.mode,["mclose"]),Se(["mord"].concat(s.sizingClasses(t)),[I,Se(["mfrac"],[C]),D],t)},CS=(e,t)=>{var n=new Ce("mfrac",[Tt(e.numer,t),Tt(e.denom,t)]);if(!e.hasBarLine)n.setAttribute("linethickness","0px");else if(e.barSize){var i=Ut(e.barSize,t);n.setAttribute("linethickness",Me(i))}if(e.leftDelim!=null||e.rightDelim!=null){var l=[];if(e.leftDelim!=null){var s=new Ce("mo",[new en(e.leftDelim.replace("\\",""))]);s.setAttribute("fence","true"),l.push(s)}if(l.push(n),e.rightDelim!=null){var u=new Ce("mo",[new en(e.rightDelim.replace("\\",""))]);u.setAttribute("fence","true"),l.push(u)}return lm(l)}return n},F7=(e,t)=>{if(!t)return e;var n={type:"styling",mode:e.mode,style:t,body:[e]};return n};ze({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:i}=e,l=t[0],s=t[1],u,f=null,h=null;switch(i){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":u=!0;break;case"\\\\atopfrac":u=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":u=!1,f="(",h=")";break;case"\\\\bracefrac":u=!1,f="\\{",h="\\}";break;case"\\\\brackfrac":u=!1,f="[",h="]";break;default:throw new Error("Unrecognized genfrac command")}var d=i==="\\cfrac",p=null;return d||i.startsWith("\\d")?p="display":i.startsWith("\\t")&&(p="text"),F7({type:"genfrac",mode:n.mode,numer:l,denom:s,continued:d,hasBarLine:u,leftDelim:f,rightDelim:h,barSize:null},p)},htmlBuilder:AS,mathmlBuilder:CS});ze({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:n,token:i}=e,l;switch(n){case"\\over":l="\\frac";break;case"\\choose":l="\\binom";break;case"\\atop":l="\\\\atopfrac";break;case"\\brace":l="\\\\bracefrac";break;case"\\brack":l="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:t.mode,replaceWith:l,token:i}}});var C3=["display","text","script","scriptscript"],T3=function(t){var n=null;return t.length>0&&(n=t,n=n==="."?null:n),n};ze({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var{parser:n}=e,i=t[4],l=t[5],s=nc(t[0]),u=s.type==="atom"&&s.family==="open"?T3(s.text):null,f=nc(t[1]),h=f.type==="atom"&&f.family==="close"?T3(f.text):null,d=et(t[2],"size"),p,m=null;d.isBlank?p=!0:(m=d.value,p=m.number>0);var v=null,x=t[3];if(x.type==="ordgroup"){if(x.body.length>0){var w=et(x.body[0],"textord");v=C3[Number(w.text)]}}else x=et(x,"textord"),v=C3[Number(x.text)];return F7({type:"genfrac",mode:n.mode,numer:i,denom:l,continued:!1,hasBarLine:p,barSize:m,leftDelim:u,rightDelim:h},v)}});ze({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:n,funcName:i,token:l}=e;return{type:"infix",mode:n.mode,replaceWith:"\\\\abovefrac",size:et(t[0],"size").value,token:l}}});ze({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:n,funcName:i}=e,l=t[0],s=et(t[1],"infix").size;if(!s)throw new Error("\\\\abovefrac expected size, but got "+String(s));var u=t[2],f=s.number>0;return{type:"genfrac",mode:n.mode,numer:l,denom:u,continued:!1,hasBarLine:f,barSize:s,leftDelim:null,rightDelim:null}}});var V7=(e,t)=>{var n=t.style,i,l;e.type==="supsub"?(i=e.sup?gt(e.sup,t.havingStyle(n.sup()),t):gt(e.sub,t.havingStyle(n.sub()),t),l=et(e.base,"horizBrace")):l=et(e,"horizBrace");var s=gt(l.base,t.havingBaseStyle(Pe.DISPLAY)),u=Ac(l,t),f;if(l.isOver?f=pt({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:u,wrapperClasses:["svg-align"]}]}):f=pt({positionType:"bottom",positionData:s.depth+.1+u.height,children:[{type:"elem",elem:u,wrapperClasses:["svg-align"]},{type:"kern",size:.1},{type:"elem",elem:s}]}),i){var h=Se(["minner",l.isOver?"mover":"munder"],[f],t);l.isOver?f=pt({positionType:"firstBaseline",children:[{type:"elem",elem:h},{type:"kern",size:.2},{type:"elem",elem:i}]}):f=pt({positionType:"bottom",positionData:h.depth+.2+i.height+i.depth,children:[{type:"elem",elem:i},{type:"kern",size:.2},{type:"elem",elem:h}]})}return Se(["minner",l.isOver?"mover":"munder"],[f],t)},TS=(e,t)=>{var n=Ec(e.label);return new Ce(e.isOver?"mover":"munder",[Tt(e.base,t),n])};ze({type:"horizBrace",names:["\\overbrace","\\underbrace","\\overbracket","\\underbracket"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:i}=e;return{type:"horizBrace",mode:n.mode,label:i,isOver:i.includes("\\over"),base:t[0]}},htmlBuilder:V7,mathmlBuilder:TS});ze({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,i=t[1],l=et(t[0],"url").url;return n.settings.isTrusted({command:"\\href",url:l})?{type:"href",mode:n.mode,href:l,body:Wt(i)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var n=cn(e.body,t,!1);return Iw(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=ma(e.body,t);return n instanceof Ce||(n=new Ce("mrow",[n])),n.setAttribute("href",e.href),n}});ze({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,i=et(t[0],"url").url;if(!n.settings.isTrusted({command:"\\url",url:i}))return n.formatUnsupportedCmd("\\url");for(var l=[],s=0;s<i.length;s++){var u=i[s];u==="~"&&(u="\\textasciitilde"),l.push({type:"textord",mode:"text",text:u})}var f={type:"text",mode:n.mode,font:"\\texttt",body:l};return{type:"href",mode:n.mode,href:i,body:Wt(f)}}});ze({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(e,t){var{parser:n}=e;return{type:"hbox",mode:n.mode,body:Wt(t[0])}},htmlBuilder(e,t){var n=cn(e.body,t.withFont(""),!1);return Ai(n)},mathmlBuilder(e,t){return new Ce("mrow",ar(e.body,t.withFont("")))}});ze({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:i,token:l}=e,s=et(t[0],"raw").string,u=t[1];n.settings.strict&&n.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var f,h={};switch(i){case"\\htmlClass":h.class=s,f={command:"\\htmlClass",class:s};break;case"\\htmlId":h.id=s,f={command:"\\htmlId",id:s};break;case"\\htmlStyle":h.style=s,f={command:"\\htmlStyle",style:s};break;case"\\htmlData":{for(var d=s.split(","),p=0;p<d.length;p++){var m=d[p],v=m.indexOf("=");if(v<0)throw new Ae("\\htmlData key/value '"+m+"' missing equals sign");var x=m.slice(0,v),w=m.slice(v+1);h["data-"+x.trim()]=w}f={command:"\\htmlData",attributes:h};break}default:throw new Error("Unrecognized html command")}return n.settings.isTrusted(f)?{type:"html",mode:n.mode,attributes:h,body:Wt(u)}:n.formatUnsupportedCmd(i)},htmlBuilder:(e,t)=>{var n=cn(e.body,t,!1),i=["enclosing"];e.attributes.class&&i.push(...e.attributes.class.trim().split(/\s+/));var l=Se(i,n,t);for(var s in e.attributes)s!=="class"&&e.attributes.hasOwnProperty(s)&&l.setAttribute(s,e.attributes[s]);return l},mathmlBuilder:(e,t)=>ma(e.body,t)});ze({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInArgument:!0,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"htmlmathml",mode:n.mode,html:Wt(t[0]),mathml:Wt(t[1])}},htmlBuilder:(e,t)=>{var n=cn(e.html,t,!1);return Ai(n)},mathmlBuilder:(e,t)=>ma(e.mathml,t)});var Cd=function(t){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(t))return{number:+t,unit:"bp"};var n=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t);if(!n)throw new Ae("Invalid size: '"+t+"' in \\includegraphics");var i={number:+(n[1]+n[2]),unit:n[3]};if(!l7(i))throw new Ae("Invalid unit: '"+i.unit+"' in \\includegraphics.");return i};ze({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,n)=>{var{parser:i}=e,l={number:0,unit:"em"},s={number:.9,unit:"em"},u={number:0,unit:"em"},f="";if(n[0])for(var h=et(n[0],"raw").string,d=h.split(","),p=0;p<d.length;p++){var m=d[p].split("=");if(m.length===2){var v=m[1].trim();switch(m[0].trim()){case"alt":f=v;break;case"width":l=Cd(v);break;case"height":s=Cd(v);break;case"totalheight":u=Cd(v);break;default:throw new Ae("Invalid key: '"+m[0]+"' in \\includegraphics.")}}}var x=et(t[0],"url").url;return f===""&&(f=x,f=f.replace(/^.*[\\/]/,""),f=f.substring(0,f.lastIndexOf("."))),i.settings.isTrusted({command:"\\includegraphics",url:x})?{type:"includegraphics",mode:i.mode,alt:f,width:l,height:s,totalheight:u,src:x}:i.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(e,t)=>{var n=Ut(e.height,t),i=0;e.totalheight.number>0&&(i=Ut(e.totalheight,t)-n);var l=0;e.width.number>0&&(l=Ut(e.width,t));var s={height:Me(n+i)};l>0&&(s.width=Me(l)),i>0&&(s.verticalAlign=Me(-i));var u=new Mw(e.src,e.alt,s);return u.height=n,u.depth=i,u},mathmlBuilder:(e,t)=>{var n=new Ce("mglyph",[]);n.setAttribute("alt",e.alt);var i=Ut(e.height,t),l=0;if(e.totalheight.number>0&&(l=Ut(e.totalheight,t)-i,n.setAttribute("valign",Me(-l))),n.setAttribute("height",Me(i+l)),e.width.number>0){var s=Ut(e.width,t);n.setAttribute("width",Me(s))}return n.setAttribute("src",e.src),n}});ze({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:i}=e,l=et(t[0],"size");if(n.settings.strict){var s=i[1]==="m",u=l.value.unit==="mu";s?(u||n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+i+" supports only mu units, "+("not "+l.value.unit+" units")),n.mode!=="math"&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+i+" works only in math mode")):u&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+i+" doesn't support mu units")}return{type:"kern",mode:n.mode,dimension:l.value}},htmlBuilder(e,t){return h7(e.dimension,t)},mathmlBuilder(e,t){var n=Ut(e.dimension,t);return new v7(n)}});ze({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:i}=e,l=t[0];return{type:"lap",mode:n.mode,alignment:i.slice(5),body:l}},htmlBuilder:(e,t)=>{var n;e.alignment==="clap"?(n=Se([],[gt(e.body,t)]),n=Se(["inner"],[n],t)):n=Se(["inner"],[gt(e.body,t)]);var i=Se(["fix"],[]),l=Se([e.alignment],[n,i],t),s=Se(["strut"]);return s.style.height=Me(l.height+l.depth),l.depth&&(s.style.verticalAlign=Me(-l.depth)),l.children.unshift(s),l=Se(["thinbox"],[l],t),Se(["mord","vbox"],[l],t)},mathmlBuilder:(e,t)=>{var n=new Ce("mpadded",[Tt(e.body,t)]);if(e.alignment!=="rlap"){var i=e.alignment==="llap"?"-1":"-0.5";n.setAttribute("lspace",i+"width")}return n.setAttribute("width","0px"),n}});ze({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:n,parser:i}=e,l=i.mode;i.switchMode("math");var s=n==="\\("?"\\)":"$",u=i.parseExpression(!1,s);return i.expect(s),i.switchMode(l),{type:"styling",mode:i.mode,style:"text",resetFont:!0,body:u}}});ze({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new Ae("Mismatched "+e.funcName)}});var M3=(e,t)=>{switch(t.style.size){case Pe.DISPLAY.size:return e.display;case Pe.TEXT.size:return e.text;case Pe.SCRIPT.size:return e.script;case Pe.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};ze({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"mathchoice",mode:n.mode,display:Wt(t[0]),text:Wt(t[1]),script:Wt(t[2]),scriptscript:Wt(t[3])}},htmlBuilder:(e,t)=>{var n=M3(e,t),i=cn(n,t,!1);return Ai(i)},mathmlBuilder:(e,t)=>{var n=M3(e,t);return ma(n,t)}});var Y7=(e,t,n,i,l,s,u)=>{e=Se([],[e]);var f=n&&ki(n),h,d;if(t){var p=gt(t,i.havingStyle(l.sup()),i);d={elem:p,kern:Math.max(i.fontMetrics().bigOpSpacing1,i.fontMetrics().bigOpSpacing3-p.depth)}}if(n){var m=gt(n,i.havingStyle(l.sub()),i);h={elem:m,kern:Math.max(i.fontMetrics().bigOpSpacing2,i.fontMetrics().bigOpSpacing4-m.height)}}var v;if(d&&h){var x=i.fontMetrics().bigOpSpacing5+h.elem.height+h.elem.depth+h.kern+e.depth+u;v=pt({positionType:"bottom",positionData:x,children:[{type:"kern",size:i.fontMetrics().bigOpSpacing5},{type:"elem",elem:h.elem,marginLeft:Me(-s)},{type:"kern",size:h.kern},{type:"elem",elem:e},{type:"kern",size:d.kern},{type:"elem",elem:d.elem,marginLeft:Me(s)},{type:"kern",size:i.fontMetrics().bigOpSpacing5}]})}else if(h){var w=e.height-u;v=pt({positionType:"top",positionData:w,children:[{type:"kern",size:i.fontMetrics().bigOpSpacing5},{type:"elem",elem:h.elem,marginLeft:Me(-s)},{type:"kern",size:h.kern},{type:"elem",elem:e}]})}else if(d){var A=e.depth+u;v=pt({positionType:"bottom",positionData:A,children:[{type:"elem",elem:e},{type:"kern",size:d.kern},{type:"elem",elem:d.elem,marginLeft:Me(s)},{type:"kern",size:i.fontMetrics().bigOpSpacing5}]})}else return e;var C=[v];if(h&&s!==0&&!f){var E=Se(["mspace"],[],i);E.style.marginRight=Me(s),C.unshift(E)}return Se(["mop","op-limits"],C,i)},G7=new Set(["\\smallint"]),ho=(e,t)=>{var n,i,l=!1,s;e.type==="supsub"?(n=e.sup,i=e.sub,s=et(e.base,"op"),l=!0):s=et(e,"op");var u=t.style,f=!1;u.size===Pe.DISPLAY.size&&s.symbol&&!G7.has(s.name)&&(f=!0);var h,d;if(s.symbol){var p=f?"Size2-Regular":"Size1-Regular",m="";if((s.name==="\\oiint"||s.name==="\\oiiint")&&(m=s.name.slice(1),s.name=m==="oiint"?"\\iint":"\\iiint"),h=Cn(s.name,p,"math",t,["mop","op-symbol",f?"large-op":"small-op"]),d=h.italic,m.length>0){var v=m7(m+"Size"+(f?"2":"1"),t);h=pt({positionType:"individualShift",children:[{type:"elem",elem:h,shift:0},{type:"elem",elem:v,shift:f?.08:0}]}),s.name="\\"+m,h.classes.unshift("mop"),h.italic=d}}else if(s.body){var x=cn(s.body,t,!0);x.length===1&&x[0]instanceof nr?(h=x[0],h.classes[0]="mop"):h=Se(["mop"],x,t)}else{for(var w=[],A=1;A<s.name.length;A++)w.push(im(s.name[A],s.mode,t));h=Se(["mop"],w,t)}var C=0,E=0;if((h instanceof nr||s.name==="\\oiint"||s.name==="\\oiiint")&&!s.suppressBaseShift){var N;C=(h.height-h.depth)/2-t.fontMetrics().axisHeight,E=(N=h.italic)!=null?N:0}return l?Y7(h,n,i,t,u,E,C):(C&&(h.style.position="relative",h.style.top=Me(C)),h)},$s=(e,t)=>{var n;if(e.symbol)n=new Ce("mo",[gr(e.name,e.mode)]),G7.has(e.name)&&n.setAttribute("largeop","false");else if(e.body)n=new Ce("mo",ar(e.body,t));else{n=new Ce("mi",[new en(e.name.slice(1))]);var i=new Ce("mo",[gr("","text")]);e.parentIsSupSub?n=new Ce("mrow",[n,i]):n=y7([n,i])}return n},MS={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};ze({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{var{parser:n,funcName:i}=e,l=i;return l.length===1&&(l=MS[l]),{type:"op",mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:l}},htmlBuilder:ho,mathmlBuilder:$s});ze({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:n}=e,i=t[0];return{type:"op",mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:Wt(i)}},htmlBuilder:ho,mathmlBuilder:$s});var zS={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};ze({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:ho,mathmlBuilder:$s});ze({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:ho,mathmlBuilder:$s});ze({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0,allowedInArgument:!0},handler(e){var{parser:t,funcName:n}=e,i=n;return i.length===1&&(i=zS[i]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:ho,mathmlBuilder:$s});var $7=(e,t)=>{var n,i,l=!1,s;e.type==="supsub"?(n=e.sup,i=e.sub,s=et(e.base,"operatorname"),l=!0):s=et(e,"operatorname");var u;if(s.body.length>0){for(var f=s.body.map(m=>{var v="text"in m?m.text:void 0;return typeof v=="string"?{type:"textord",mode:m.mode,text:v}:m}),h=cn(f,t.withFont("mathrm"),!0),d=0;d<h.length;d++){var p=h[d];p instanceof nr&&(p.text=p.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}u=Se(["mop"],h,t)}else u=Se(["mop"],[],t);return l?Y7(u,n,i,t,t.style,0,0):u},NS=(e,t)=>{for(var n=ar(e.body,t.withFont("mathrm")),i=!0,l=0;l<n.length;l++){var s=n[l];if(!(s instanceof v7))if(s instanceof Ce)switch(s.type){case"mi":case"mn":case"mspace":case"mtext":break;case"mo":{var u=s.children[0];s.children.length===1&&u instanceof en?u.text=u.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):i=!1;break}default:i=!1}else i=!1}if(i){var f=n.map(p=>p.toText()).join("");n=[new en(f)]}var h=new Ce("mi",n);h.setAttribute("mathvariant","normal");var d=new Ce("mo",[gr("","text")]);return e.parentIsSupSub?new Ce("mrow",[h,d]):y7([h,d])};ze({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:i}=e,l=t[0];return{type:"operatorname",mode:n.mode,body:Wt(l),alwaysHandleSupSub:i==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:$7,mathmlBuilder:NS});H("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");el({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?Ai(cn(e.body,t,!1)):Se(["mord"],cn(e.body,t,!0),t)},mathmlBuilder(e,t){return ma(e.body,t,!0)}});ze({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:n}=e,i=t[0];return{type:"overline",mode:n.mode,body:i}},htmlBuilder(e,t){var n=gt(e.body,t.havingCrampedStyle()),i=Jl("overline-line",t),l=t.fontMetrics().defaultRuleThickness,s=pt({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"kern",size:3*l},{type:"elem",elem:i},{type:"kern",size:l}]});return Se(["mord","overline"],[s],t)},mathmlBuilder(e,t){var n=new Ce("mo",[new en("‾")]);n.setAttribute("stretchy","true");var i=new Ce("mover",[Tt(e.body,t),n]);return i.setAttribute("accent","true"),i}});ze({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,i=t[0];return{type:"phantom",mode:n.mode,body:Wt(i)}},htmlBuilder:(e,t)=>{var n=cn(e.body,t.withPhantom(),!1);return Ai(n)},mathmlBuilder:(e,t)=>{var n=ar(e.body,t);return new Ce("mphantom",n)}});H("\\hphantom","\\smash{\\phantom{#1}}");ze({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,i=t[0];return{type:"vphantom",mode:n.mode,body:i}},htmlBuilder:(e,t)=>{var n=Se(["inner"],[gt(e.body,t.withPhantom())]),i=Se(["fix"],[]);return Se(["mord","rlap"],[n,i],t)},mathmlBuilder:(e,t)=>{var n=ar(Wt(e.body),t),i=new Ce("mphantom",n),l=new Ce("mpadded",[i]);return l.setAttribute("width","0px"),l}});ze({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e,i=et(t[0],"size").value,l=t[1];return{type:"raisebox",mode:n.mode,dy:i,body:l}},htmlBuilder(e,t){var n=gt(e.body,t),i=Ut(e.dy,t);return pt({positionType:"shift",positionData:-i,children:[{type:"elem",elem:n}]})},mathmlBuilder(e,t){var n=new Ce("mpadded",[Tt(e.body,t)]),i=e.dy.number+e.dy.unit;return n.setAttribute("voffset",i),n}});ze({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}});ze({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(e,t,n){var{parser:i}=e,l=n[0],s=et(t[0],"size"),u=et(t[1],"size");return{type:"rule",mode:i.mode,shift:l&&et(l,"size").value,width:s.value,height:u.value}},htmlBuilder(e,t){var n=Se(["mord","rule"],[],t),i=Ut(e.width,t),l=Ut(e.height,t),s=e.shift?Ut(e.shift,t):0;return n.style.borderRightWidth=Me(i),n.style.borderTopWidth=Me(l),n.style.bottom=Me(s),n.width=i,n.height=l+s,n.depth=-s,n.maxFontSize=l*1.125*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=Ut(e.width,t),i=Ut(e.height,t),l=e.shift?Ut(e.shift,t):0,s=t.color&&t.getColor()||"black",u=new Ce("mspace");u.setAttribute("mathbackground",s),u.setAttribute("width",Me(n)),u.setAttribute("height",Me(i));var f=new Ce("mpadded",[u]);return l>=0?f.setAttribute("height",Me(l)):(f.setAttribute("height",Me(l)),f.setAttribute("depth",Me(-l))),f.setAttribute("voffset",Me(l)),f}});function X7(e,t,n){for(var i=cn(e,t,!1),l=t.sizeMultiplier/n.sizeMultiplier,s=0;s<i.length;s++){var u=i[s].classes.indexOf("sizing");u<0?Array.prototype.push.apply(i[s].classes,t.sizingClasses(n)):i[s].classes[u+1]==="reset-size"+t.size&&(i[s].classes[u+1]="reset-size"+n.size),i[s].height*=l,i[s].depth*=l}return Ai(i)}var z3=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],DS=(e,t)=>{var n=t.havingSize(e.size);return X7(e.body,n,t)};ze({type:"sizing",names:z3,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:n,funcName:i,parser:l}=e,s=l.parseExpression(!1,n);return{type:"sizing",mode:l.mode,size:z3.indexOf(i)+1,body:s}},htmlBuilder:DS,mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),i=ar(e.body,n),l=new Ce("mstyle",i);return l.setAttribute("mathsize",Me(n.sizeMultiplier)),l}});ze({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,n)=>{var{parser:i}=e,l=!1,s=!1,u=n[0]&&et(n[0],"ordgroup");if(u)for(var f,h=0;h<u.body.length;++h){var d=u.body[h];if(f=Cc(d).text,f==="t")l=!0;else if(f==="b")s=!0;else{l=!1,s=!1;break}}else l=!0,s=!0;var p=t[0];return{type:"smash",mode:i.mode,body:p,smashHeight:l,smashDepth:s}},htmlBuilder:(e,t)=>{var n=Se([],[gt(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0),e.smashDepth&&(n.depth=0),e.smashHeight&&e.smashDepth)return Se(["mord","smash"],[n],t);if(n.children)for(var i=0;i<n.children.length;i++)e.smashHeight&&(n.children[i].height=0),e.smashDepth&&(n.children[i].depth=0);var l=pt({positionType:"firstBaseline",children:[{type:"elem",elem:n}]});return Se(["mord"],[l],t)},mathmlBuilder:(e,t)=>{var n=new Ce("mpadded",[Tt(e.body,t)]);return e.smashHeight&&n.setAttribute("height","0px"),e.smashDepth&&n.setAttribute("depth","0px"),n}});ze({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:i}=e,l=n[0],s=t[0];return{type:"sqrt",mode:i.mode,body:s,index:l}},htmlBuilder(e,t){var n=gt(e.body,t.havingCrampedStyle());n.height===0&&(n.height=t.fontMetrics().xHeight),n=Wl(n,t);var i=t.fontMetrics(),l=i.defaultRuleThickness,s=l;t.style.id<Pe.TEXT.id&&(s=t.fontMetrics().xHeight);var u=l+s/4,f=n.height+n.depth+u+l,{span:h,ruleWidth:d,advanceWidth:p}=yS(f,t),m=h.height-d;m>n.height+n.depth+u&&(u=(u+m-n.height-n.depth)/2);var v=h.height-n.height-u-d;n.style.paddingLeft=Me(p);var x=pt({positionType:"firstBaseline",children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:-(n.height+v)},{type:"elem",elem:h},{type:"kern",size:d}]});if(e.index){var w=t.havingStyle(Pe.SCRIPTSCRIPT),A=gt(e.index,w,t),C=.6*(x.height-x.depth),E=pt({positionType:"shift",positionData:-C,children:[{type:"elem",elem:A}]}),N=Se(["root"],[E]);return Se(["mord","sqrt"],[N,x],t)}else return Se(["mord","sqrt"],[x],t)},mathmlBuilder(e,t){var{body:n,index:i}=e;return i?new Ce("mroot",[Tt(n,t),Tt(i,t)]):new Ce("msqrt",[Tt(n,t)])}});var C1={display:Pe.DISPLAY,text:Pe.TEXT,script:Pe.SCRIPT,scriptscript:Pe.SCRIPTSCRIPT};function _S(e){return e in C1}ze({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:n,funcName:i,parser:l}=e,s=l.parseExpression(!0,n),u=i.slice(1,i.length-5);if(!_S(u))throw new Error("Unknown style: "+u);return{type:"styling",mode:l.mode,style:u,body:s}},htmlBuilder(e,t){var n=C1[e.style],i=t.havingStyle(n);return e.resetFont&&(i=i.withFont("")),X7(e.body,i,t)},mathmlBuilder(e,t){var n=C1[e.style],i=t.havingStyle(n);e.resetFont&&(i=i.withFont(""));var l=ar(e.body,i),s=new Ce("mstyle",l),u={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},f=u[e.style];return s.setAttribute("scriptlevel",f[0]),s.setAttribute("displaystyle",f[1]),s}});var OS=function(t,n){var i=t.base;if(i)if(i.type==="op"){var l=i.limits&&(n.style.size===Pe.DISPLAY.size||i.alwaysHandleSupSub);return l?ho:null}else if(i.type==="operatorname"){var s=i.alwaysHandleSupSub&&(n.style.size===Pe.DISPLAY.size||i.limits);return s?$7:null}else{if(i.type==="accent")return ki(i.base)?sm:null;if(i.type==="horizBrace"){var u=!t.sub;return u===i.isOver?V7:null}else return null}else return null};el({type:"supsub",htmlBuilder(e,t){var n=OS(e,t);if(n)return n(e,t);var{base:i,sup:l,sub:s}=e,u=gt(i,t),f,h,d=t.fontMetrics(),p=0,m=0,v=i&&ki(i);if(l){var x=t.havingStyle(t.style.sup());f=gt(l,x,t),v||(p=u.height-x.fontMetrics().supDrop*x.sizeMultiplier/t.sizeMultiplier)}if(s){var w=t.havingStyle(t.style.sub());h=gt(s,w,t),v||(m=u.depth+w.fontMetrics().subDrop*w.sizeMultiplier/t.sizeMultiplier)}var A;t.style===Pe.DISPLAY?A=d.sup1:t.style.cramped?A=d.sup3:A=d.sup2;var C=t.sizeMultiplier,E=Me(.5/d.ptPerEm/C),N=null;if(h){var T=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");if(u instanceof nr||T){var B;N=Me(-((B=u.italic)!=null?B:0))}}var I;if(f&&h){p=Math.max(p,A,f.depth+.25*d.xHeight),m=Math.max(m,d.sub2);var D=d.defaultRuleThickness,U=4*D;if(p-f.depth-(h.height-m)<U){m=U-(p-f.depth)+h.height;var J=.8*d.xHeight-(p-f.depth);J>0&&(p+=J,m-=J)}var P=[{type:"elem",elem:h,shift:m,marginRight:E,marginLeft:N},{type:"elem",elem:f,shift:-p,marginRight:E}];I=pt({positionType:"individualShift",children:P})}else if(h){m=Math.max(m,d.sub1,h.height-.8*d.xHeight);var V=[{type:"elem",elem:h,marginLeft:N,marginRight:E}];I=pt({positionType:"shift",positionData:m,children:V})}else if(f)p=Math.max(p,A,f.depth+.25*d.xHeight),I=pt({positionType:"shift",positionData:-p,children:[{type:"elem",elem:f,marginRight:E}]});else throw new Error("supsub must have either sup or sub.");var X=w1(u,"right")||"mord";return Se([X],[u,Se(["msupsub"],[I])],t)},mathmlBuilder(e,t){var n=!1,i,l;e.base&&e.base.type==="horizBrace"&&(l=!!e.sup,l===e.base.isOver&&(n=!0,i=e.base.isOver)),e.base&&(e.base.type==="op"||e.base.type==="operatorname")&&(e.base.parentIsSupSub=!0);var s=[Tt(e.base,t)];e.sub&&s.push(Tt(e.sub,t)),e.sup&&s.push(Tt(e.sup,t));var u;if(n)u=i?"mover":"munder";else if(e.sub)if(e.sup){var d=e.base;d&&d.type==="op"&&d.limits&&t.style===Pe.DISPLAY||d&&d.type==="operatorname"&&d.alwaysHandleSupSub&&(t.style===Pe.DISPLAY||d.limits)?u="munderover":u="msubsup"}else{var h=e.base;h&&h.type==="op"&&h.limits&&(t.style===Pe.DISPLAY||h.alwaysHandleSupSub)||h&&h.type==="operatorname"&&h.alwaysHandleSupSub&&(h.limits||t.style===Pe.DISPLAY)?u="munder":u="msub"}else{var f=e.base;f&&f.type==="op"&&f.limits&&(t.style===Pe.DISPLAY||f.alwaysHandleSupSub)||f&&f.type==="operatorname"&&f.alwaysHandleSupSub&&(f.limits||t.style===Pe.DISPLAY)?u="mover":u="msup"}return new Ce(u,s)}});el({type:"atom",htmlBuilder(e,t){return im(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var n=new Ce("mo",[gr(e.text,e.mode)]);if(e.family==="bin"){var i=om(e,t);i==="bold-italic"&&n.setAttribute("mathvariant",i)}else e.family==="punct"?n.setAttribute("separator","true"):(e.family==="open"||e.family==="close")&&n.setAttribute("stretchy","false");return n}});var P7={mi:"italic",mn:"normal",mtext:"normal"};el({type:"mathord",htmlBuilder(e,t){return kc(e,t,"mathord")},mathmlBuilder(e,t){var n=new Ce("mi",[gr(e.text,e.mode,t)]),i=om(e,t)||"italic";return i!==P7[n.type]&&n.setAttribute("mathvariant",i),n}});el({type:"textord",htmlBuilder(e,t){return kc(e,t,"textord")},mathmlBuilder(e,t){var n=gr(e.text,e.mode,t),i=om(e,t)||"normal",l;return e.mode==="text"?l=new Ce("mtext",[n]):/[0-9]/.test(e.text)?l=new Ce("mn",[n]):e.text==="\\prime"?l=new Ce("mo",[n]):l=new Ce("mi",[n]),i!==P7[l.type]&&l.setAttribute("mathvariant",i),l}});var Td={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},Md={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};el({type:"spacing",htmlBuilder(e,t){if(Md.hasOwnProperty(e.text)){var n=Md[e.text].className||"";if(e.mode==="text"){var i=kc(e,t,"textord");return i.classes.push(n),i}else return Se(["mspace",n],[im(e.text,e.mode,t)],t)}else{if(Td.hasOwnProperty(e.text))return Se(["mspace",Td[e.text]],[],t);throw new Ae('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var n;if(Md.hasOwnProperty(e.text))n=new Ce("mtext",[new en(" ")]);else{if(Td.hasOwnProperty(e.text))return new Ce("mspace");throw new Ae('Unknown type of space "'+e.text+'"')}return n}});var N3=()=>{var e=new Ce("mtd",[]);return e.setAttribute("width","50%"),e};el({type:"tag",mathmlBuilder(e,t){var n=new Ce("mtable",[new Ce("mtr",[N3(),new Ce("mtd",[ma(e.body,t)]),N3(),new Ce("mtd",[ma(e.tag,t)])])]);return n.setAttribute("width","100%"),n}});var D3={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},_3={"\\textbf":"textbf","\\textmd":"textmd"},RS={"\\textit":"textit","\\textup":"textup"},O3=(e,t)=>{var n=e.font;if(n){if(D3[n])return t.withTextFontFamily(D3[n]);if(_3[n])return t.withTextFontWeight(_3[n]);if(n==="\\emph")return t.fontShape==="textit"?t.withTextFontShape("textup"):t.withTextFontShape("textit")}else return t;return t.withTextFontShape(RS[n])};ze({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:i}=e,l=t[0];return{type:"text",mode:n.mode,body:Wt(l),font:i}},htmlBuilder(e,t){var n=O3(e,t),i=cn(e.body,n,!0);return Se(["mord","text"],i,n)},mathmlBuilder(e,t){var n=O3(e,t);return ma(e.body,n)}});ze({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"underline",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=gt(e.body,t),i=Jl("underline-line",t),l=t.fontMetrics().defaultRuleThickness,s=pt({positionType:"top",positionData:n.height,children:[{type:"kern",size:l},{type:"elem",elem:i},{type:"kern",size:3*l},{type:"elem",elem:n}]});return Se(["mord","underline"],[s],t)},mathmlBuilder(e,t){var n=new Ce("mo",[new en("‾")]);n.setAttribute("stretchy","true");var i=new Ce("munder",[Tt(e.body,t),n]);return i.setAttribute("accentunder","true"),i}});ze({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"vcenter",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=gt(e.body,t),i=t.fontMetrics().axisHeight,l=.5*(n.height-i-(n.depth+i));return pt({positionType:"shift",positionData:l,children:[{type:"elem",elem:n}]})},mathmlBuilder(e,t){var n=new Ce("mpadded",[Tt(e.body,t)],["vcenter"]);return new Ce("mrow",[n])}});ze({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,n){throw new Ae("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var n=R3(e),i=[],l=t.havingStyle(t.style.text()),s=0;s<n.length;s++){var u=n[s];u==="~"&&(u="\\textasciitilde"),i.push(Cn(u,"Typewriter-Regular",e.mode,l,["mord","texttt"]))}return Se(["mord","text"].concat(l.sizingClasses(t)),f7(i),l)},mathmlBuilder(e,t){var n=new en(R3(e)),i=new Ce("mtext",[n]);return i.setAttribute("mathvariant","monospace"),i}});var R3=e=>e.body.replace(/ /g,e.star?"␣":" "),sa=p7,Z7=`[ \r
|
|
263
|
+
]`,BS="\\\\[a-zA-Z@]+",LS="\\\\[^\uD800-\uDFFF]",HS="("+BS+")"+Z7+"*",jS=`\\\\(
|
|
264
|
+
|[ \r ]+
|
|
265
|
+
?)[ \r ]*`,T1="[̀-ͯ]",qS=new RegExp(T1+"+$"),IS="("+Z7+"+)|"+(jS+"|")+"([!-\\[\\]-‧-豈-]"+(T1+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(T1+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+HS)+("|"+LS+")");class B3{constructor(t,n){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=t,this.settings=n,this.tokenRegex=new RegExp(IS,"g"),this.catcodes={"%":14,"~":13}}setCatcode(t,n){this.catcodes[t]=n}lex(){var t=this.input,n=this.tokenRegex.lastIndex;if(n===t.length)return new er("EOF",new In(this,n,n));var i=this.tokenRegex.exec(t);if(i===null||i.index!==n)throw new Ae("Unexpected character: '"+t[n]+"'",new er(t[n],new In(this,n,n+1)));var l=i[6]||i[3]||(i[2]?"\\ ":" ");if(this.catcodes[l]===14){var s=t.indexOf(`
|
|
266
|
+
`,this.tokenRegex.lastIndex);return s===-1?(this.tokenRegex.lastIndex=t.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=s+1,this.lex()}return new er(l,new In(this,n,this.tokenRegex.lastIndex))}}class US{constructor(t,n){t===void 0&&(t={}),n===void 0&&(n={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=n,this.builtins=t,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new Ae("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var t=this.undefStack.pop();for(var n in t)t.hasOwnProperty(n)&&(t[n]==null?delete this.current[n]:this.current[n]=t[n])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(t){return this.current.hasOwnProperty(t)||this.builtins.hasOwnProperty(t)}get(t){return this.current.hasOwnProperty(t)?this.current[t]:this.builtins[t]}set(t,n,i){if(i===void 0&&(i=!1),i){for(var l=0;l<this.undefStack.length;l++)delete this.undefStack[l][t];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][t]=n)}else{var s=this.undefStack[this.undefStack.length-1];s&&!s.hasOwnProperty(t)&&(s[t]=this.current[t])}n==null?delete this.current[t]:this.current[t]=n}}var FS=j7;H("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}});H("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}});H("\\@firstoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}});H("\\@secondoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}});H("\\@ifnextchar",function(e){var t=e.consumeArgs(3);e.consumeSpaces();var n=e.future();return t[0].length===1&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}});H("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");H("\\TextOrMath",function(e){var t=e.consumeArgs(2);return e.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var L3={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};H("\\char",function(e){var t=e.popToken(),n,i=0;if(t.text==="'")n=8,t=e.popToken();else if(t.text==='"')n=16,t=e.popToken();else if(t.text==="`")if(t=e.popToken(),t.text[0]==="\\")i=t.text.charCodeAt(1);else{if(t.text==="EOF")throw new Ae("\\char` missing argument");i=t.text.charCodeAt(0)}else n=10;if(n){if(i=L3[t.text],i==null||i>=n)throw new Ae("Invalid base-"+n+" digit "+t.text);for(var l;(l=L3[e.future().text])!=null&&l<n;)i*=n,i+=l,e.popToken()}return"\\@char{"+i+"}"});var hm=(e,t,n,i)=>{var l=e.consumeArg().tokens;if(l.length!==1)throw new Ae("\\newcommand's first argument must be a macro name");var s=l[0].text,u=e.isDefined(s);if(u&&!t)throw new Ae("\\newcommand{"+s+"} attempting to redefine "+(s+"; use \\renewcommand"));if(!u&&!n)throw new Ae("\\renewcommand{"+s+"} when command "+s+" does not yet exist; use \\newcommand");var f=0;if(l=e.consumeArg().tokens,l.length===1&&l[0].text==="["){for(var h="",d=e.expandNextToken();d.text!=="]"&&d.text!=="EOF";)h+=d.text,d=e.expandNextToken();if(!h.match(/^\s*[0-9]+\s*$/))throw new Ae("Invalid number of arguments: "+h);f=parseInt(h),l=e.consumeArg().tokens}return u&&i||e.macros.set(s,{tokens:l,numArgs:f}),""};H("\\newcommand",e=>hm(e,!1,!0,!1));H("\\renewcommand",e=>hm(e,!0,!1,!1));H("\\providecommand",e=>hm(e,!0,!0,!0));H("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(n=>n.text).join("")),""});H("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(n=>n.text).join("")),""});H("\\show",e=>{var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),sa[n],Rt.math[n],Rt.text[n]),""});H("\\bgroup","{");H("\\egroup","}");H("~","\\nobreakspace");H("\\lq","`");H("\\rq","'");H("\\aa","\\r a");H("\\AA","\\r A");H("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");H("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");H("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");H("ℬ","\\mathscr{B}");H("ℰ","\\mathscr{E}");H("ℱ","\\mathscr{F}");H("ℋ","\\mathscr{H}");H("ℐ","\\mathscr{I}");H("ℒ","\\mathscr{L}");H("ℳ","\\mathscr{M}");H("ℛ","\\mathscr{R}");H("ℭ","\\mathfrak{C}");H("ℌ","\\mathfrak{H}");H("ℨ","\\mathfrak{Z}");H("\\Bbbk","\\Bbb{k}");H("\\llap","\\mathllap{\\textrm{#1}}");H("\\rlap","\\mathrlap{\\textrm{#1}}");H("\\clap","\\mathclap{\\textrm{#1}}");H("\\mathstrut","\\vphantom{(}");H("\\underbar","\\underline{\\text{#1}}");H("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}');H("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");H("\\ne","\\neq");H("≠","\\neq");H("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");H("∉","\\notin");H("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");H("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");H("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");H("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");H("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");H("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");H("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");H("⟂","\\perp");H("‼","\\mathclose{!\\mkern-0.8mu!}");H("∌","\\notni");H("⌜","\\ulcorner");H("⌝","\\urcorner");H("⌞","\\llcorner");H("⌟","\\lrcorner");H("©","\\copyright");H("®","\\textregistered");H("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');H("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');H("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');H("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');H("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");H("⋮","\\vdots");H("\\varGamma","\\mathit{\\Gamma}");H("\\varDelta","\\mathit{\\Delta}");H("\\varTheta","\\mathit{\\Theta}");H("\\varLambda","\\mathit{\\Lambda}");H("\\varXi","\\mathit{\\Xi}");H("\\varPi","\\mathit{\\Pi}");H("\\varSigma","\\mathit{\\Sigma}");H("\\varUpsilon","\\mathit{\\Upsilon}");H("\\varPhi","\\mathit{\\Phi}");H("\\varPsi","\\mathit{\\Psi}");H("\\varOmega","\\mathit{\\Omega}");H("\\substack","\\begin{subarray}{c}#1\\end{subarray}");H("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");H("\\boxed","\\fbox{$\\displaystyle{#1}$}");H("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");H("\\implies","\\DOTSB\\;\\Longrightarrow\\;");H("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");H("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");H("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var H3={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"},VS=new Set(["bin","rel"]);H("\\dots",function(e){var t="\\dotso",n=e.expandAfterFuture().text;return n in H3?t=H3[n]:(n.slice(0,4)==="\\not"||n in Rt.math&&VS.has(Rt.math[n].group))&&(t="\\dotsb"),t});var dm={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};H("\\dotso",function(e){var t=e.future().text;return t in dm?"\\ldots\\,":"\\ldots"});H("\\dotsc",function(e){var t=e.future().text;return t in dm&&t!==","?"\\ldots\\,":"\\ldots"});H("\\cdots",function(e){var t=e.future().text;return t in dm?"\\@cdots\\,":"\\@cdots"});H("\\dotsb","\\cdots");H("\\dotsm","\\cdots");H("\\dotsi","\\!\\cdots");H("\\dotsx","\\ldots\\,");H("\\DOTSI","\\relax");H("\\DOTSB","\\relax");H("\\DOTSX","\\relax");H("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");H("\\,","\\tmspace+{3mu}{.1667em}");H("\\thinspace","\\,");H("\\>","\\mskip{4mu}");H("\\:","\\tmspace+{4mu}{.2222em}");H("\\medspace","\\:");H("\\;","\\tmspace+{5mu}{.2777em}");H("\\thickspace","\\;");H("\\!","\\tmspace-{3mu}{.1667em}");H("\\negthinspace","\\!");H("\\negmedspace","\\tmspace-{4mu}{.2222em}");H("\\negthickspace","\\tmspace-{5mu}{.277em}");H("\\enspace","\\kern.5em ");H("\\enskip","\\hskip.5em\\relax");H("\\quad","\\hskip1em\\relax");H("\\qquad","\\hskip2em\\relax");H("\\tag","\\@ifstar\\tag@literal\\tag@paren");H("\\tag@paren","\\tag@literal{({#1})}");H("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new Ae("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});H("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");H("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");H("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");H("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");H("\\newline","\\\\\\relax");H("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var Q7=Me(Ir["Main-Regular"][84][1]-.7*Ir["Main-Regular"][65][1]);H("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+Q7+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");H("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+Q7+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");H("\\hspace","\\@ifstar\\@hspacer\\@hspace");H("\\@hspace","\\hskip #1\\relax");H("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");H("\\ordinarycolon",":");H("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");H("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');H("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');H("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');H("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');H("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');H("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');H("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');H("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');H("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');H("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');H("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');H("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');H("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');H("∷","\\dblcolon");H("∹","\\eqcolon");H("≔","\\coloneqq");H("≕","\\eqqcolon");H("⩴","\\Coloneqq");H("\\ratio","\\vcentcolon");H("\\coloncolon","\\dblcolon");H("\\colonequals","\\coloneqq");H("\\coloncolonequals","\\Coloneqq");H("\\equalscolon","\\eqqcolon");H("\\equalscoloncolon","\\Eqqcolon");H("\\colonminus","\\coloneq");H("\\coloncolonminus","\\Coloneq");H("\\minuscolon","\\eqcolon");H("\\minuscoloncolon","\\Eqcolon");H("\\coloncolonapprox","\\Colonapprox");H("\\coloncolonsim","\\Colonsim");H("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");H("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");H("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");H("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");H("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");H("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");H("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");H("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");H("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");H("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");H("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");H("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");H("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");H("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");H("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");H("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");H("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");H("\\nleqq","\\html@mathml{\\@nleqq}{≰}");H("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");H("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");H("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");H("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");H("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");H("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");H("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");H("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");H("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");H("\\imath","\\html@mathml{\\@imath}{ı}");H("\\jmath","\\html@mathml{\\@jmath}{ȷ}");H("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");H("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");H("⟦","\\llbracket");H("⟧","\\rrbracket");H("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");H("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");H("⦃","\\lBrace");H("⦄","\\rBrace");H("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");H("⦵","\\minuso");H("\\darr","\\downarrow");H("\\dArr","\\Downarrow");H("\\Darr","\\Downarrow");H("\\lang","\\langle");H("\\rang","\\rangle");H("\\uarr","\\uparrow");H("\\uArr","\\Uparrow");H("\\Uarr","\\Uparrow");H("\\N","\\mathbb{N}");H("\\R","\\mathbb{R}");H("\\Z","\\mathbb{Z}");H("\\alef","\\aleph");H("\\alefsym","\\aleph");H("\\Alpha","\\mathrm{A}");H("\\Beta","\\mathrm{B}");H("\\bull","\\bullet");H("\\Chi","\\mathrm{X}");H("\\clubs","\\clubsuit");H("\\cnums","\\mathbb{C}");H("\\Complex","\\mathbb{C}");H("\\Dagger","\\ddagger");H("\\diamonds","\\diamondsuit");H("\\empty","\\emptyset");H("\\Epsilon","\\mathrm{E}");H("\\Eta","\\mathrm{H}");H("\\exist","\\exists");H("\\harr","\\leftrightarrow");H("\\hArr","\\Leftrightarrow");H("\\Harr","\\Leftrightarrow");H("\\hearts","\\heartsuit");H("\\image","\\Im");H("\\infin","\\infty");H("\\Iota","\\mathrm{I}");H("\\isin","\\in");H("\\Kappa","\\mathrm{K}");H("\\larr","\\leftarrow");H("\\lArr","\\Leftarrow");H("\\Larr","\\Leftarrow");H("\\lrarr","\\leftrightarrow");H("\\lrArr","\\Leftrightarrow");H("\\Lrarr","\\Leftrightarrow");H("\\Mu","\\mathrm{M}");H("\\natnums","\\mathbb{N}");H("\\Nu","\\mathrm{N}");H("\\Omicron","\\mathrm{O}");H("\\plusmn","\\pm");H("\\rarr","\\rightarrow");H("\\rArr","\\Rightarrow");H("\\Rarr","\\Rightarrow");H("\\real","\\Re");H("\\reals","\\mathbb{R}");H("\\Reals","\\mathbb{R}");H("\\Rho","\\mathrm{P}");H("\\sdot","\\cdot");H("\\sect","\\S");H("\\spades","\\spadesuit");H("\\sub","\\subset");H("\\sube","\\subseteq");H("\\supe","\\supseteq");H("\\Tau","\\mathrm{T}");H("\\thetasym","\\vartheta");H("\\weierp","\\wp");H("\\Zeta","\\mathrm{Z}");H("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");H("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");H("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");H("\\bra","\\mathinner{\\langle{#1}|}");H("\\ket","\\mathinner{|{#1}\\rangle}");H("\\braket","\\mathinner{\\langle{#1}\\rangle}");H("\\Bra","\\left\\langle#1\\right|");H("\\Ket","\\left|#1\\right\\rangle");var K7=e=>t=>{var n=t.consumeArg().tokens,i=t.consumeArg().tokens,l=t.consumeArg().tokens,s=t.consumeArg().tokens,u=t.macros.get("|"),f=t.macros.get("\\|");t.macros.beginGroup();var h=m=>v=>{e&&(v.macros.set("|",u),l.length&&v.macros.set("\\|",f));var x=m;if(!m&&l.length){var w=v.future();w.text==="|"&&(v.popToken(),x=!0)}return{tokens:x?l:i,numArgs:0}};t.macros.set("|",h(!1)),l.length&&t.macros.set("\\|",h(!0));var d=t.consumeArg().tokens,p=t.expandTokens([...s,...d,...n]);return t.macros.endGroup(),{tokens:p.reverse(),numArgs:0}};H("\\bra@ket",K7(!1));H("\\bra@set",K7(!0));H("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");H("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");H("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");H("\\angln","{\\angl n}");H("\\blue","\\textcolor{##6495ed}{#1}");H("\\orange","\\textcolor{##ffa500}{#1}");H("\\pink","\\textcolor{##ff00af}{#1}");H("\\red","\\textcolor{##df0030}{#1}");H("\\green","\\textcolor{##28ae7b}{#1}");H("\\gray","\\textcolor{gray}{#1}");H("\\purple","\\textcolor{##9d38bd}{#1}");H("\\blueA","\\textcolor{##ccfaff}{#1}");H("\\blueB","\\textcolor{##80f6ff}{#1}");H("\\blueC","\\textcolor{##63d9ea}{#1}");H("\\blueD","\\textcolor{##11accd}{#1}");H("\\blueE","\\textcolor{##0c7f99}{#1}");H("\\tealA","\\textcolor{##94fff5}{#1}");H("\\tealB","\\textcolor{##26edd5}{#1}");H("\\tealC","\\textcolor{##01d1c1}{#1}");H("\\tealD","\\textcolor{##01a995}{#1}");H("\\tealE","\\textcolor{##208170}{#1}");H("\\greenA","\\textcolor{##b6ffb0}{#1}");H("\\greenB","\\textcolor{##8af281}{#1}");H("\\greenC","\\textcolor{##74cf70}{#1}");H("\\greenD","\\textcolor{##1fab54}{#1}");H("\\greenE","\\textcolor{##0d923f}{#1}");H("\\goldA","\\textcolor{##ffd0a9}{#1}");H("\\goldB","\\textcolor{##ffbb71}{#1}");H("\\goldC","\\textcolor{##ff9c39}{#1}");H("\\goldD","\\textcolor{##e07d10}{#1}");H("\\goldE","\\textcolor{##a75a05}{#1}");H("\\redA","\\textcolor{##fca9a9}{#1}");H("\\redB","\\textcolor{##ff8482}{#1}");H("\\redC","\\textcolor{##f9685d}{#1}");H("\\redD","\\textcolor{##e84d39}{#1}");H("\\redE","\\textcolor{##bc2612}{#1}");H("\\maroonA","\\textcolor{##ffbde0}{#1}");H("\\maroonB","\\textcolor{##ff92c6}{#1}");H("\\maroonC","\\textcolor{##ed5fa6}{#1}");H("\\maroonD","\\textcolor{##ca337c}{#1}");H("\\maroonE","\\textcolor{##9e034e}{#1}");H("\\purpleA","\\textcolor{##ddd7ff}{#1}");H("\\purpleB","\\textcolor{##c6b9fc}{#1}");H("\\purpleC","\\textcolor{##aa87ff}{#1}");H("\\purpleD","\\textcolor{##7854ab}{#1}");H("\\purpleE","\\textcolor{##543b78}{#1}");H("\\mintA","\\textcolor{##f5f9e8}{#1}");H("\\mintB","\\textcolor{##edf2df}{#1}");H("\\mintC","\\textcolor{##e0e5cc}{#1}");H("\\grayA","\\textcolor{##f6f7f7}{#1}");H("\\grayB","\\textcolor{##f0f1f2}{#1}");H("\\grayC","\\textcolor{##e3e5e6}{#1}");H("\\grayD","\\textcolor{##d6d8da}{#1}");H("\\grayE","\\textcolor{##babec2}{#1}");H("\\grayF","\\textcolor{##888d93}{#1}");H("\\grayG","\\textcolor{##626569}{#1}");H("\\grayH","\\textcolor{##3b3e40}{#1}");H("\\grayI","\\textcolor{##21242c}{#1}");H("\\kaBlue","\\textcolor{##314453}{#1}");H("\\kaGreen","\\textcolor{##71B307}{#1}");var J7={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class YS{constructor(t,n,i){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=n,this.expansionCount=0,this.feed(t),this.macros=new US(FS,n.macros),this.mode=i,this.stack=[]}feed(t){this.lexer=new B3(t,this.settings)}switchMode(t){this.mode=t}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(t){this.stack.push(t)}pushTokens(t){this.stack.push(...t)}scanArgument(t){var n,i,l;if(t){if(this.consumeSpaces(),this.future().text!=="[")return null;n=this.popToken(),{tokens:l,end:i}=this.consumeArg(["]"])}else({tokens:l,start:n,end:i}=this.consumeArg());return this.pushToken(new er("EOF",i.loc)),this.pushTokens(l),new er("",In.range(n,i))}consumeSpaces(){for(;;){var t=this.future();if(t.text===" ")this.stack.pop();else break}}consumeArg(t){var n=[],i=t&&t.length>0;i||this.consumeSpaces();var l=this.future(),s,u=0,f=0;do{if(s=this.popToken(),n.push(s),s.text==="{")++u;else if(s.text==="}"){if(--u,u===-1)throw new Ae("Extra }",s)}else if(s.text==="EOF")throw new Ae("Unexpected end of input in a macro argument, expected '"+(t&&i?t[f]:"}")+"'",s);if(t&&i)if((u===0||u===1&&t[f]==="{")&&s.text===t[f]){if(++f,f===t.length){n.splice(-f,f);break}}else f=0}while(u!==0||i);return l.text==="{"&&n[n.length-1].text==="}"&&(n.pop(),n.shift()),n.reverse(),{tokens:n,start:l,end:s}}consumeArgs(t,n){if(n){if(n.length!==t+1)throw new Ae("The length of delimiters doesn't match the number of args!");for(var i=n[0],l=0;l<i.length;l++){var s=this.popToken();if(i[l]!==s.text)throw new Ae("Use of the macro doesn't match its definition",s)}}for(var u=[],f=0;f<t;f++)u.push(this.consumeArg(n&&n[f+1]).tokens);return u}countExpansion(t){if(this.expansionCount+=t,this.expansionCount>this.settings.maxExpand)throw new Ae("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(t){var n=this.popToken(),i=n.text,l=n.noexpand?null:this._getExpansion(i);if(l==null||t&&l.unexpandable){if(t&&l==null&&i[0]==="\\"&&!this.isDefined(i))throw new Ae("Undefined control sequence: "+i);return this.pushToken(n),!1}this.countExpansion(1);var s=l.tokens,u=this.consumeArgs(l.numArgs,l.delimiters);if(l.numArgs){s=s.slice();for(var f=s.length-1;f>=0;--f){var h=s[f];if(h.text==="#"){if(f===0)throw new Ae("Incomplete placeholder at end of macro body",h);if(h=s[--f],h.text==="#")s.splice(f+1,1);else if(/^[1-9]$/.test(h.text))s.splice(f,2,...u[+h.text-1]);else throw new Ae("Not a valid argument number",h)}}}return this.pushTokens(s),s.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var t=this.stack.pop();return t.treatAsRelax&&(t.text="\\relax"),t}}expandMacro(t){return this.macros.has(t)?this.expandTokens([new er(t)]):void 0}expandTokens(t){var n=[],i=this.stack.length;for(this.pushTokens(t);this.stack.length>i;)if(this.expandOnce(!0)===!1){var l=this.stack.pop();l.treatAsRelax&&(l.noexpand=!1,l.treatAsRelax=!1),n.push(l)}return this.countExpansion(n.length),n}expandMacroAsText(t){var n=this.expandMacro(t);return n&&n.map(i=>i.text).join("")}_getExpansion(t){var n=this.macros.get(t);if(n==null)return n;if(t.length===1){var i=this.lexer.catcodes[t];if(i!=null&&i!==13)return}var l=typeof n=="function"?n(this):n;if(typeof l=="string"){var s=0;if(l.includes("#"))for(var u=l.replace(/##/g,"");u.includes("#"+(s+1));)++s;for(var f=new B3(l,this.settings),h=[],d=f.lex();d.text!=="EOF";)h.push(d),d=f.lex();h.reverse();var p={tokens:h,numArgs:s};return p}return l}isDefined(t){return this.macros.has(t)||sa.hasOwnProperty(t)||Rt.math.hasOwnProperty(t)||Rt.text.hasOwnProperty(t)||J7.hasOwnProperty(t)}isExpandable(t){var n=this.macros.get(t);return n!=null?typeof n=="string"||typeof n=="function"||!n.unexpandable:sa.hasOwnProperty(t)&&!sa[t].primitive}}var j3=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,z0=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g",ʰ:"h","ⁱ":"i",ʲ:"j","ᵏ":"k",ˡ:"l","ᵐ":"m",ⁿ:"n","ᵒ":"o","ᵖ":"p",ʳ:"r",ˢ:"s","ᵗ":"t","ᵘ":"u","ᵛ":"v",ʷ:"w",ˣ:"x",ʸ:"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),zd={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},q3={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};class Oc{constructor(t,n){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new YS(t,n,this.mode),this.settings=n,this.leftrightDepth=0,this.nextToken=null}expect(t,n){if(n===void 0&&(n=!0),this.fetch().text!==t)throw new Ae("Expected '"+t+"', got '"+this.fetch().text+"'",this.fetch());n&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(t){this.mode=t,this.gullet.switchMode(t)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var t=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),t}finally{this.gullet.endGroups()}}subparse(t){var n=this.nextToken;this.consume(),this.gullet.pushToken(new er("}")),this.gullet.pushTokens(t);var i=this.parseExpression(!1);return this.expect("}"),this.nextToken=n,i}parseExpression(t,n){for(var i=[];;){this.mode==="math"&&this.consumeSpaces();var l=this.fetch();if(Oc.endOfExpression.has(l.text)||n&&l.text===n||t&&sa[l.text]&&sa[l.text].infix)break;var s=this.parseAtom(n);if(s){if(s.type==="internal")continue}else break;i.push(s)}return this.mode==="text"&&this.formLigatures(i),this.handleInfixNodes(i)}handleInfixNodes(t){for(var n=-1,i,l=0;l<t.length;l++){var s=t[l];if(s.type==="infix"){if(n!==-1)throw new Ae("only one infix operator per group",s.token);n=l,i=s.replaceWith}}if(n!==-1&&i){var u,f,h=t.slice(0,n),d=t.slice(n+1);h.length===1&&h[0].type==="ordgroup"?u=h[0]:u={type:"ordgroup",mode:this.mode,body:h},d.length===1&&d[0].type==="ordgroup"?f=d[0]:f={type:"ordgroup",mode:this.mode,body:d};var p;return i==="\\\\abovefrac"?p=this.callFunction(i,[u,t[n],f],[]):p=this.callFunction(i,[u,f],[]),[p]}else return t}handleSupSubscript(t){var n=this.fetch(),i=n.text;this.consume(),this.consumeSpaces();var l;do{var s;l=this.parseGroup(t)}while(((s=l)==null?void 0:s.type)==="internal");if(!l)throw new Ae("Expected group after '"+i+"'",n);return l}formatUnsupportedCmd(t){for(var n=[],i=0;i<t.length;i++)n.push({type:"textord",mode:"text",text:t[i]});var l={type:"text",mode:this.mode,body:n},s={type:"color",mode:this.mode,color:this.settings.errorColor,body:[l]};return s}parseAtom(t){var n=this.parseGroup("atom",t);if(n?.type==="internal"||this.mode==="text")return n;for(var i,l;;){this.consumeSpaces();var s=this.fetch();if(s.text==="\\limits"||s.text==="\\nolimits"){if(n&&n.type==="op"){var u=s.text==="\\limits";n.limits=u,n.alwaysHandleSupSub=!0}else if(n&&n.type==="operatorname")n.alwaysHandleSupSub&&(n.limits=s.text==="\\limits");else throw new Ae("Limit controls must follow a math operator",s);this.consume()}else if(s.text==="^"){if(i)throw new Ae("Double superscript",s);i=this.handleSupSubscript("superscript")}else if(s.text==="_"){if(l)throw new Ae("Double subscript",s);l=this.handleSupSubscript("subscript")}else if(s.text==="'"){if(i)throw new Ae("Double superscript",s);var f={type:"textord",mode:this.mode,text:"\\prime"},h=[f];for(this.consume();this.fetch().text==="'";)h.push(f),this.consume();this.fetch().text==="^"&&h.push(this.handleSupSubscript("superscript")),i={type:"ordgroup",mode:this.mode,body:h}}else if(z0[s.text]){var d=j3.test(s.text),p=[];for(p.push(new er(z0[s.text])),this.consume();;){var m=this.fetch().text;if(!z0[m]||j3.test(m)!==d)break;p.unshift(new er(z0[m])),this.consume()}var v=this.subparse(p);d?l={type:"ordgroup",mode:"math",body:v}:i={type:"ordgroup",mode:"math",body:v}}else break}return i||l?{type:"supsub",mode:this.mode,base:n,sup:i,sub:l}:n}parseFunction(t,n){var i=this.fetch(),l=i.text,s=sa[l];if(!s)return null;if(this.consume(),n&&n!=="atom"&&!s.allowedInArgument)throw new Ae("Got function '"+l+"' with no arguments"+(n?" as "+n:""),i);if(this.mode==="text"&&!s.allowedInText)throw new Ae("Can't use function '"+l+"' in text mode",i);if(this.mode==="math"&&s.allowedInMath===!1)throw new Ae("Can't use function '"+l+"' in math mode",i);var{args:u,optArgs:f}=this.parseArguments(l,s);return this.callFunction(l,u,f,i,t)}callFunction(t,n,i,l,s){var u={funcName:t,parser:this,token:l,breakOnTokenText:s},f=sa[t];if(f&&f.handler)return f.handler(u,n,i);throw new Ae("No function handler for "+t)}parseArguments(t,n){var i=n.numArgs+n.numOptionalArgs;if(i===0)return{args:[],optArgs:[]};for(var l=[],s=[],u=0;u<i;u++){var f=n.argTypes&&n.argTypes[u],h=u<n.numOptionalArgs;("primitive"in n&&n.primitive&&f==null||n.type==="sqrt"&&u===1&&s[0]==null)&&(f="primitive");var d=this.parseGroupOfType("argument to '"+t+"'",f,h);if(h)s.push(d);else if(d!=null)l.push(d);else throw new Ae("Null argument, please report this as a bug")}return{args:l,optArgs:s}}parseGroupOfType(t,n,i){switch(n){case"color":return this.parseColorGroup(i);case"size":return this.parseSizeGroup(i);case"url":return this.parseUrlGroup(i);case"math":case"text":return this.parseArgumentGroup(i,n);case"hbox":{var l=this.parseArgumentGroup(i,"text");return l!=null?{type:"styling",mode:l.mode,body:[l],style:"text",resetFont:!0}:null}case"raw":{var s=this.parseStringGroup("raw",i);return s!=null?{type:"raw",mode:"text",string:s.text}:null}case"primitive":{if(i)throw new Ae("A primitive argument cannot be optional");var u=this.parseGroup(t);if(u==null)throw new Ae("Expected group as "+t,this.fetch());return u}case"original":case null:case void 0:return this.parseArgumentGroup(i);default:throw new Ae("Unknown group type as "+t,this.fetch())}}consumeSpaces(){for(;this.fetch().text===" ";)this.consume()}parseStringGroup(t,n){var i=this.gullet.scanArgument(n);if(i==null)return null;for(var l="",s;(s=this.fetch()).text!=="EOF";)l+=s.text,this.consume();return this.consume(),i.text=l,i}parseRegexGroup(t,n){for(var i=this.fetch(),l=i,s="",u;(u=this.fetch()).text!=="EOF"&&t.test(s+u.text);)l=u,s+=l.text,this.consume();if(s==="")throw new Ae("Invalid "+n+": '"+i.text+"'",i);return i.range(l,s)}parseColorGroup(t){var n=this.parseStringGroup("color",t);if(n==null)return null;var i=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(n.text);if(!i)throw new Ae("Invalid color: '"+n.text+"'",n);var l=i[0];return/^[0-9a-f]{6}$/i.test(l)&&(l="#"+l),{type:"color-token",mode:this.mode,color:l}}parseSizeGroup(t){var n,i=!1;if(this.gullet.consumeSpaces(),!t&&this.gullet.future().text!=="{"?n=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):n=this.parseStringGroup("size",t),!n)return null;!t&&n.text.length===0&&(n.text="0pt",i=!0);var l=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(n.text);if(!l)throw new Ae("Invalid size: '"+n.text+"'",n);var s={number:+(l[1]+l[2]),unit:l[3]};if(!l7(s))throw new Ae("Invalid unit: '"+s.unit+"'",n);return{type:"size",mode:this.mode,value:s,isBlank:i}}parseUrlGroup(t){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var n=this.parseStringGroup("url",t);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),n==null)return null;var i=n.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:i}}parseArgumentGroup(t,n){var i=this.gullet.scanArgument(t);if(i==null)return null;var l=this.mode;n&&this.switchMode(n),this.gullet.beginGroup();var s=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var u={type:"ordgroup",mode:this.mode,loc:i.loc,body:s};return n&&this.switchMode(l),u}parseGroup(t,n){var i=this.fetch(),l=i.text,s;if(l==="{"||l==="\\begingroup"){this.consume();var u=l==="{"?"}":"\\endgroup";this.gullet.beginGroup();var f=this.parseExpression(!1,u),h=this.fetch();this.expect(u),this.gullet.endGroup(),s={type:"ordgroup",mode:this.mode,loc:In.range(i,h),body:f,semisimple:l==="\\begingroup"||void 0}}else if(s=this.parseFunction(n,t)||this.parseSymbol(),s==null&&l[0]==="\\"&&!J7.hasOwnProperty(l)){if(this.settings.throwOnError)throw new Ae("Undefined control sequence: "+l,i);s=this.formatUnsupportedCmd(l),this.consume()}return s}formLigatures(t){for(var n=t.length-1,i=0;i<n;++i){var l=t[i];if(l.type==="textord"){var s=l.text,u=t[i+1];if(!(!u||u.type!=="textord")){if(s==="-"&&u.text==="-"){var f=t[i+2];i+1<n&&f&&f.type==="textord"&&f.text==="-"?(t.splice(i,3,{type:"textord",mode:"text",loc:In.range(l,f),text:"---"}),n-=2):(t.splice(i,2,{type:"textord",mode:"text",loc:In.range(l,u),text:"--"}),n-=1)}(s==="'"||s==="`")&&u.text===s&&(t.splice(i,2,{type:"textord",mode:"text",loc:In.range(l,u),text:s+s}),n-=1)}}}}parseSymbol(){var t=this.fetch(),n=t.text;if(/^\\verb[^a-zA-Z]/.test(n)){this.consume();var i=n.slice(5),l=i.charAt(0)==="*";if(l&&(i=i.slice(1)),i.length<2||i.charAt(0)!==i.slice(-1))throw new Ae(`\\verb assertion failed --
|
|
267
|
+
please report what input caused this bug`);return i=i.slice(1,-1),{type:"verb",mode:"text",body:i,star:l}}q3.hasOwnProperty(n[0])&&!Rt[this.mode][n[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+n[0]+'" used in math mode',t),n=q3[n[0]]+n.slice(1));var s=qS.exec(n);s&&(n=n.substring(0,s.index),n==="i"?n="ı":n==="j"&&(n="ȷ"));var u;if(Rt[this.mode][n]){this.settings.strict&&this.mode==="math"&&d1.includes(n)&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+n[0]+'" used in math mode',t);var f=Rt[this.mode][n].group,h=In.range(t),d;lS(f)?d={type:"atom",mode:this.mode,family:f,loc:h,text:n}:d={type:f,mode:this.mode,loc:h,text:n},u=d}else if(n.charCodeAt(0)>=128)this.settings.strict&&(a7(n.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+n[0]+'" used in math mode',t):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+n[0]+'"'+(" ("+n.charCodeAt(0)+")"),t)),u={type:"textord",mode:"text",loc:In.range(t),text:n};else return null;if(this.consume(),s)for(var p=0;p<s[0].length;p++){var m=s[0][p];if(!zd[m])throw new Ae("Unknown accent ' "+m+"'",t);var v=zd[m][this.mode]||zd[m].text;if(!v)throw new Ae("Accent "+m+" unsupported in "+this.mode+" mode",t);u={type:"accent",mode:this.mode,loc:In.range(t),label:v,isStretchy:!1,isShifty:!0,base:u}}return u}}Oc.endOfExpression=new Set(["}","\\endgroup","\\end","\\right","&"]);var mm=function(t,n){if(!(typeof t=="string"||t instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var i=new Oc(t,n);delete i.gullet.macros.current["\\df@tag"];var l=i.parse();if(delete i.gullet.macros.current["\\current@color"],delete i.gullet.macros.current["\\color"],i.gullet.macros.get("\\df@tag")){if(!n.displayMode)throw new Ae("\\tag works only in display equations");l=[{type:"tag",mode:"text",body:l,tag:i.subparse([new er("\\df@tag")])}]}return l},W7=function(t,n,i){n.textContent="";var l=pm(t,i).toNode();n.appendChild(l)};typeof document<"u"&&document.compatMode!=="CSS1Compat"&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),W7=function(){throw new Ae("KaTeX doesn't work in quirks mode.")});var GS=function(t,n){var i=pm(t,n).toMarkup();return i},$S=function(t,n){var i=new em(n);return mm(t,i)},ey=function(t,n,i){if(i.throwOnError||!(t instanceof Ae))throw t;var l=Se(["katex-error"],[new nr(n)]);return l.setAttribute("title",t.toString()),l.setAttribute("style","color:"+i.errorColor),l},pm=function(t,n){var i=new em(n);try{var l=mm(t,i);return Jw(l,t,i)}catch(s){return ey(s,t,i)}},XS=function(t,n){var i=new em(n);try{var l=mm(t,i);return Ww(l,t,i)}catch(s){return ey(s,t,i)}},PS="0.16.46",ZS={Span:co,Anchor:wc,SymbolNode:nr,SvgNode:bi,PathNode:ha,LineNode:h1},I3={version:PS,render:W7,renderToString:GS,ParseError:Ae,SETTINGS_SCHEMA:u1,__parse:$S,__renderToDomTree:pm,__renderToHTMLTree:XS,__setFontMetrics:Ow,__defineSymbol:b,__defineFunction:ze,__defineMacro:H,__domTree:ZS};const ty=[],QS=!0,M1=!1,ny="skip";function gm(e,t,n,i){let l;typeof t=="function"&&typeof n!="function"?(i=n,n=t):l=t;const s=Ys(l),u=i?-1:1;f(e,void 0,[])();function f(h,d,p){const m=h&&typeof h=="object"?h:{};if(typeof m.type=="string"){const x=typeof m.tagName=="string"?m.tagName:typeof m.name=="string"?m.name:void 0;Object.defineProperty(v,"name",{value:"node ("+(h.type+(x?"<"+x+">":""))+")"})}return v;function v(){let x=ty,w,A,C;if((!t||s(h,d,p[p.length-1]||void 0))&&(x=KS(n(h,p)),x[0]===M1))return x;if("children"in h&&h.children){const E=h;if(E.children&&x[0]!==ny)for(A=(i?E.children.length:-1)+u,C=p.concat(E);A>-1&&A<E.children.length;){const N=E.children[A];if(w=f(N,A,C)(),w[0]===M1)return w;A=typeof w[1]=="number"?w[1]:A+u}}return x}}}function KS(e){return Array.isArray(e)?e:typeof e=="number"?[QS,e]:e==null?ty:[e]}const JS={},WS=[];function ek(e){const t=e||JS;return function(n,i){gm(n,"element",function(l,s){const u=Array.isArray(l.properties.className)?l.properties.className:WS,f=u.includes("language-math"),h=u.includes("math-display"),d=u.includes("math-inline");let p=h;if(!f&&!h&&!d)return;let m=s[s.length-1],v=l;if(l.tagName==="code"&&f&&m&&m.type==="element"&&m.tagName==="pre"&&(v=m,m=s[s.length-2],p=!0),!m)return;const x=$b(v,{whitespace:"pre"});let w;try{w=I3.renderToString(x,{...t,displayMode:p,throwOnError:!0})}catch(C){const E=C,N=E.name.toLowerCase();i.message("Could not render math with KaTeX",{ancestors:[...s,l],cause:E,place:l.position,ruleId:N,source:"rehype-katex"});try{w=I3.renderToString(x,{...t,displayMode:p,strict:"ignore",throwOnError:!1})}catch{w=[{type:"element",tagName:"span",properties:{className:["katex-error"],style:"color:"+(t.errorColor||"#cc0000"),title:String(C)},children:[{type:"text",value:x}]}]}}typeof w=="string"&&(w=Ob(w).children);const A=m.children.indexOf(v);return m.children.splice(A,1,...w),ny})}}const tk=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,nk=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,rk={};function U3(e,t){return(rk.jsx?nk:tk).test(e)}const ik=/[ \t\n\f\r]/g;function ak(e){return typeof e=="object"?e.type==="text"?F3(e.value):!1:F3(e)}function F3(e){return e.replace(ik,"")===""}var Ul={},Nd,V3;function lk(){if(V3)return Nd;V3=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,l=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,u=/^[;\s]*/,f=/^\s+|\s+$/g,h=`
|
|
268
|
+
`,d="/",p="*",m="",v="comment",x="declaration";function w(C,E){if(typeof C!="string")throw new TypeError("First argument must be a string");if(!C)return[];E=E||{};var N=1,T=1;function B(q){var F=q.match(t);F&&(N+=F.length);var L=q.lastIndexOf(h);T=~L?q.length-L:T+q.length}function I(){var q={line:N,column:T};return function(F){return F.position=new D(q),P(),F}}function D(q){this.start=q,this.end={line:N,column:T},this.source=E.source}D.prototype.content=C;function U(q){var F=new Error(E.source+":"+N+":"+T+": "+q);if(F.reason=q,F.filename=E.source,F.line=N,F.column=T,F.source=C,!E.silent)throw F}function J(q){var F=q.exec(C);if(F){var L=F[0];return B(L),C=C.slice(L.length),F}}function P(){J(n)}function V(q){var F;for(q=q||[];F=X();)F!==!1&&q.push(F);return q}function X(){var q=I();if(!(d!=C.charAt(0)||p!=C.charAt(1))){for(var F=2;m!=C.charAt(F)&&(p!=C.charAt(F)||d!=C.charAt(F+1));)++F;if(F+=2,m===C.charAt(F-1))return U("End of comment missing");var L=C.slice(2,F-2);return T+=2,B(L),C=C.slice(F),T+=2,q({type:v,comment:L})}}function W(){var q=I(),F=J(i);if(F){if(X(),!J(l))return U("property missing ':'");var L=J(s),Y=q({type:x,property:A(F[0].replace(e,m)),value:L?A(L[0].replace(e,m)):m});return J(u),Y}}function ce(){var q=[];V(q);for(var F;F=W();)F!==!1&&(q.push(F),V(q));return q}return P(),ce()}function A(C){return C?C.replace(f,m):m}return Nd=w,Nd}var Y3;function ok(){if(Y3)return Ul;Y3=1;var e=Ul&&Ul.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Ul,"__esModule",{value:!0}),Ul.default=n;const t=e(lk());function n(i,l){let s=null;if(!i||typeof i!="string")return s;const u=(0,t.default)(i),f=typeof l=="function";return u.forEach(h=>{if(h.type!=="declaration")return;const{property:d,value:p}=h;f?l(d,p,h):p&&(s=s||{},s[d]=p)}),s}return Ul}var fs={},G3;function sk(){if(G3)return fs;G3=1,Object.defineProperty(fs,"__esModule",{value:!0}),fs.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,l=/^-(ms)-/,s=function(d){return!d||n.test(d)||e.test(d)},u=function(d,p){return p.toUpperCase()},f=function(d,p){return"".concat(p,"-")},h=function(d,p){return p===void 0&&(p={}),s(d)?d:(d=d.toLowerCase(),p.reactCompat?d=d.replace(l,f):d=d.replace(i,f),d.replace(t,u))};return fs.camelCase=h,fs}var hs,$3;function uk(){if($3)return hs;$3=1;var e=hs&&hs.__importDefault||function(l){return l&&l.__esModule?l:{default:l}},t=e(ok()),n=sk();function i(l,s){var u={};return!l||typeof l!="string"||(0,t.default)(l,function(f,h){f&&h&&(u[(0,n.camelCase)(f,s)]=h)}),u}return i.default=i,hs=i,hs}var ck=uk();const fk=vc(ck),ry=iy("end"),ym=iy("start");function iy(e){return t;function t(n){const i=n&&n.position&&n.position[e]||{};if(typeof i.line=="number"&&i.line>0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function hk(e){const t=ym(e),n=ry(e);if(t&&n)return{start:t,end:n}}function ws(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?X3(e.position):"start"in e||"end"in e?X3(e):"line"in e||"column"in e?z1(e):""}function z1(e){return P3(e&&e.line)+":"+P3(e&&e.column)}function X3(e){return z1(e&&e.start)+"-"+z1(e&&e.end)}function P3(e){return e&&typeof e=="number"?e:1}class kn extends Error{constructor(t,n,i){super(),typeof n=="string"&&(i=n,n=void 0);let l="",s={},u=!1;if(n&&("line"in n&&"column"in n?s={place:n}:"start"in n&&"end"in n?s={place:n}:"type"in n?s={ancestors:[n],place:n.position}:s={...n}),typeof t=="string"?l=t:!s.cause&&t&&(u=!0,l=t.message,s.cause=t),!s.ruleId&&!s.source&&typeof i=="string"){const h=i.indexOf(":");h===-1?s.ruleId=i:(s.source=i.slice(0,h),s.ruleId=i.slice(h+1))}if(!s.place&&s.ancestors&&s.ancestors){const h=s.ancestors[s.ancestors.length-1];h&&(s.place=h.position)}const f=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=f?f.column:void 0,this.fatal=void 0,this.file="",this.message=l,this.line=f?f.line:void 0,this.name=ws(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=u&&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}}kn.prototype.file="";kn.prototype.name="";kn.prototype.reason="";kn.prototype.message="";kn.prototype.stack="";kn.prototype.column=void 0;kn.prototype.line=void 0;kn.prototype.ancestors=void 0;kn.prototype.cause=void 0;kn.prototype.fatal=void 0;kn.prototype.place=void 0;kn.prototype.ruleId=void 0;kn.prototype.source=void 0;const vm={}.hasOwnProperty,dk=new Map,mk=/[A-Z]/g,pk=new Set(["table","tbody","thead","tfoot","tr"]),gk=new Set(["td","th"]),ay="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function yk(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let i;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");i=Ak(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");i=Ek(n,t.jsx,t.jsxs)}const l={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:i,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?xc:K6,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},s=ly(l,e,void 0);return s&&typeof s!="string"?s:l.create(e,l.Fragment,{children:s||void 0},void 0)}function ly(e,t,n){if(t.type==="element")return vk(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return xk(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return wk(e,t,n);if(t.type==="mdxjsEsm")return bk(e,t);if(t.type==="root")return Sk(e,t,n);if(t.type==="text")return kk(e,t)}function vk(e,t,n){const i=e.schema;let l=i;t.tagName.toLowerCase()==="svg"&&i.space==="html"&&(l=xc,e.schema=l),e.ancestors.push(t);const s=sy(e,t.tagName,!1),u=Ck(e,t);let f=bm(e,t);return pk.has(t.tagName)&&(f=f.filter(function(h){return typeof h=="string"?!ak(h):!0})),oy(e,u,s,t),xm(u,f),e.ancestors.pop(),e.schema=i,e.create(t,s,u,n)}function xk(e,t){if(t.data&&t.data.estree&&e.evaluater){const i=t.data.estree.body[0];return i.type,e.evaluater.evaluateExpression(i.expression)}zs(e,t.position)}function bk(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);zs(e,t.position)}function wk(e,t,n){const i=e.schema;let l=i;t.name==="svg"&&i.space==="html"&&(l=xc,e.schema=l),e.ancestors.push(t);const s=t.name===null?e.Fragment:sy(e,t.name,!0),u=Tk(e,t),f=bm(e,t);return oy(e,u,s,t),xm(u,f),e.ancestors.pop(),e.schema=i,e.create(t,s,u,n)}function Sk(e,t,n){const i={};return xm(i,bm(e,t)),e.create(t,e.Fragment,i,n)}function kk(e,t){return t.value}function oy(e,t,n,i){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=i)}function xm(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Ek(e,t,n){return i;function i(l,s,u,f){const d=Array.isArray(u.children)?n:t;return f?d(s,u,f):d(s,u)}}function Ak(e,t){return n;function n(i,l,s,u){const f=Array.isArray(s.children),h=ym(i);return t(l,s,u,f,{columnNumber:h?h.column-1:void 0,fileName:e,lineNumber:h?h.line:void 0},void 0)}}function Ck(e,t){const n={};let i,l;for(l in t.properties)if(l!=="children"&&vm.call(t.properties,l)){const s=Mk(e,l,t.properties[l]);if(s){const[u,f]=s;e.tableCellAlignToStyle&&u==="align"&&typeof f=="string"&&gk.has(t.tagName)?i=f:n[u]=f}}if(i){const s=n.style||(n.style={});s[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=i}return n}function Tk(e,t){const n={};for(const i of t.attributes)if(i.type==="mdxJsxExpressionAttribute")if(i.data&&i.data.estree&&e.evaluater){const s=i.data.estree.body[0];s.type;const u=s.expression;u.type;const f=u.properties[0];f.type,Object.assign(n,e.evaluater.evaluateExpression(f.argument))}else zs(e,t.position);else{const l=i.name;let s;if(i.value&&typeof i.value=="object")if(i.value.data&&i.value.data.estree&&e.evaluater){const f=i.value.data.estree.body[0];f.type,s=e.evaluater.evaluateExpression(f.expression)}else zs(e,t.position);else s=i.value===null?!0:i.value;n[l]=s}return n}function bm(e,t){const n=[];let i=-1;const l=e.passKeys?new Map:dk;for(;++i<t.children.length;){const s=t.children[i];let u;if(e.passKeys){const h=s.type==="element"?s.tagName:s.type==="mdxJsxFlowElement"||s.type==="mdxJsxTextElement"?s.name:void 0;if(h){const d=l.get(h)||0;u=h+"-"+d,l.set(h,d+1)}}const f=ly(e,s,u);f!==void 0&&n.push(f)}return n}function Mk(e,t,n){const i=Q6(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=i.commaSeparated?yb(n):xb(n)),i.property==="style"){let l=typeof n=="object"?n:zk(e,String(n));return e.stylePropertyNameCase==="css"&&(l=Nk(l)),["style",l]}return[e.elementAttributeNameCase==="react"&&i.space?hb[i.property]||i.property:i.attribute,n]}}function zk(e,t){try{return fk(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const i=n,l=new kn("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:i,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw l.file=e.filePath||void 0,l.url=ay+"#cannot-parse-style-attribute",l}}function sy(e,t,n){let i;if(!n)i={type:"Literal",value:t};else if(t.includes(".")){const l=t.split(".");let s=-1,u;for(;++s<l.length;){const f=U3(l[s])?{type:"Identifier",name:l[s]}:{type:"Literal",value:l[s]};u=u?{type:"MemberExpression",object:u,property:f,computed:!!(s&&f.type==="Literal"),optional:!1}:f}i=u}else i=U3(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(i.type==="Literal"){const l=i.value;return vm.call(e.components,l)?e.components[l]:l}if(e.evaluater)return e.evaluater.evaluateExpression(i);zs(e)}function zs(e,t){const n=new kn("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=ay+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Nk(e){const t={};let n;for(n in e)vm.call(e,n)&&(t[Dk(n)]=e[n]);return t}function Dk(e){let t=e.replace(mk,_k);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function _k(e){return"-"+e.toLowerCase()}const Dd={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"]},Ok={};function wm(e,t){const n=Ok,i=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,l=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return uy(e,i,l)}function uy(e,t,n){if(Rk(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Z3(e.children,t,n)}return Array.isArray(e)?Z3(e,t,n):""}function Z3(e,t,n){const i=[];let l=-1;for(;++l<e.length;)i[l]=uy(e[l],t,n);return i.join("")}function Rk(e){return!!(e&&typeof e=="object")}const Q3=document.createElement("i");function Sm(e){const t="&"+e+";";Q3.innerHTML=t;const n=Q3.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function tr(e,t,n,i){const l=e.length;let s=0,u;if(t<0?t=-t>l?0:l+t:t=t>l?l:t,n=n>0?n:0,i.length<1e4)u=Array.from(i),u.unshift(t,n),e.splice(...u);else for(n&&e.splice(t,n);s<i.length;)u=i.slice(s,s+1e4),u.unshift(t,0),e.splice(...u),s+=1e4,t+=1e4}function mr(e,t){return e.length>0?(tr(e,e.length,0,t),e):t}const K3={}.hasOwnProperty;function cy(e){const t={};let n=-1;for(;++n<e.length;)Bk(t,e[n]);return t}function Bk(e,t){let n;for(n in t){const l=(K3.call(e,n)?e[n]:void 0)||(e[n]={}),s=t[n];let u;if(s)for(u in s){K3.call(l,u)||(l[u]=[]);const f=s[u];Lk(l[u],Array.isArray(f)?f:f?[f]:[])}}}function Lk(e,t){let n=-1;const i=[];for(;++n<t.length;)(t[n].add==="after"?e:i).push(t[n]);tr(e,0,0,i)}function fy(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Cr(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Tn=ya(/[A-Za-z]/),wn=ya(/[\dA-Za-z]/),Hk=ya(/[#-'*+\--9=?A-Z^-~]/);function rc(e){return e!==null&&(e<32||e===127)}const N1=ya(/\d/),jk=ya(/[\dA-Fa-f]/),qk=ya(/[!-/:-@[-`{-~]/);function je(e){return e!==null&&e<-2}function Mt(e){return e!==null&&(e<0||e===32)}function lt(e){return e===-2||e===-1||e===32}const Rc=ya(new RegExp("\\p{P}|\\p{S}","u")),Xa=ya(/\s/);function ya(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function mo(e){const t=[];let n=-1,i=0,l=0;for(;++n<e.length;){const s=e.charCodeAt(n);let u="";if(s===37&&wn(e.charCodeAt(n+1))&&wn(e.charCodeAt(n+2)))l=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(u=String.fromCharCode(s));else if(s>55295&&s<57344){const f=e.charCodeAt(n+1);s<56320&&f>56319&&f<57344?(u=String.fromCharCode(s,f),l=1):u="�"}else u=String.fromCharCode(s);u&&(t.push(e.slice(i,n),encodeURIComponent(u)),i=n+l+1,u=""),l&&(n+=l,l=0)}return t.join("")+e.slice(i)}function nt(e,t,n,i){const l=i?i-1:Number.POSITIVE_INFINITY;let s=0;return u;function u(h){return lt(h)?(e.enter(n),f(h)):t(h)}function f(h){return lt(h)&&s++<l?(e.consume(h),f):(e.exit(n),t(h))}}const Ik={tokenize:Uk};function Uk(e){const t=e.attempt(this.parser.constructs.contentInitial,i,l);let n;return t;function i(f){if(f===null){e.consume(f);return}return e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),nt(e,t,"linePrefix")}function l(f){return e.enter("paragraph"),s(f)}function s(f){const h=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=h),n=h,u(f)}function u(f){if(f===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(f);return}return je(f)?(e.consume(f),e.exit("chunkText"),s):(e.consume(f),u)}}const Fk={tokenize:Vk},J3={tokenize:Yk};function Vk(e){const t=this,n=[];let i=0,l,s,u;return f;function f(T){if(i<n.length){const B=n[i];return t.containerState=B[1],e.attempt(B[0].continuation,h,d)(T)}return d(T)}function h(T){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,l&&N();const B=t.events.length;let I=B,D;for(;I--;)if(t.events[I][0]==="exit"&&t.events[I][1].type==="chunkFlow"){D=t.events[I][1].end;break}E(i);let U=B;for(;U<t.events.length;)t.events[U][1].end={...D},U++;return tr(t.events,I+1,0,t.events.slice(B)),t.events.length=U,d(T)}return f(T)}function d(T){if(i===n.length){if(!l)return v(T);if(l.currentConstruct&&l.currentConstruct.concrete)return w(T);t.interrupt=!!(l.currentConstruct&&!l._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(J3,p,m)(T)}function p(T){return l&&N(),E(i),v(T)}function m(T){return t.parser.lazy[t.now().line]=i!==n.length,u=t.now().offset,w(T)}function v(T){return t.containerState={},e.attempt(J3,x,w)(T)}function x(T){return i++,n.push([t.currentConstruct,t.containerState]),v(T)}function w(T){if(T===null){l&&N(),E(0),e.consume(T);return}return l=l||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:l,contentType:"flow",previous:s}),A(T)}function A(T){if(T===null){C(e.exit("chunkFlow"),!0),E(0),e.consume(T);return}return je(T)?(e.consume(T),C(e.exit("chunkFlow")),i=0,t.interrupt=void 0,f):(e.consume(T),A)}function C(T,B){const I=t.sliceStream(T);if(B&&I.push(null),T.previous=s,s&&(s.next=T),s=T,l.defineSkip(T.start),l.write(I),t.parser.lazy[T.start.line]){let D=l.events.length;for(;D--;)if(l.events[D][1].start.offset<u&&(!l.events[D][1].end||l.events[D][1].end.offset>u))return;const U=t.events.length;let J=U,P,V;for(;J--;)if(t.events[J][0]==="exit"&&t.events[J][1].type==="chunkFlow"){if(P){V=t.events[J][1].end;break}P=!0}for(E(i),D=U;D<t.events.length;)t.events[D][1].end={...V},D++;tr(t.events,J+1,0,t.events.slice(U)),t.events.length=D}}function E(T){let B=n.length;for(;B-- >T;){const I=n[B];t.containerState=I[1],I[0].exit.call(t,e)}n.length=T}function N(){l.write([null]),s=void 0,l=void 0,t.containerState._closeFlow=void 0}}function Yk(e,t,n){return nt(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function eo(e){if(e===null||Mt(e)||Xa(e))return 1;if(Rc(e))return 2}function Bc(e,t,n){const i=[];let l=-1;for(;++l<e.length;){const s=e[l].resolveAll;s&&!i.includes(s)&&(t=s(t,n),i.push(s))}return t}const D1={name:"attention",resolveAll:Gk,tokenize:$k};function Gk(e,t){let n=-1,i,l,s,u,f,h,d,p;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(i=n;i--;)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[i][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;h=e[i][1].end.offset-e[i][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const m={...e[i][1].end},v={...e[n][1].start};W3(m,-h),W3(v,h),u={type:h>1?"strongSequence":"emphasisSequence",start:m,end:{...e[i][1].end}},f={type:h>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:v},s={type:h>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[n][1].start}},l={type:h>1?"strong":"emphasis",start:{...u.start},end:{...f.end}},e[i][1].end={...u.start},e[n][1].start={...f.end},d=[],e[i][1].end.offset-e[i][1].start.offset&&(d=mr(d,[["enter",e[i][1],t],["exit",e[i][1],t]])),d=mr(d,[["enter",l,t],["enter",u,t],["exit",u,t],["enter",s,t]]),d=mr(d,Bc(t.parser.constructs.insideSpan.null,e.slice(i+1,n),t)),d=mr(d,[["exit",s,t],["enter",f,t],["exit",f,t],["exit",l,t]]),e[n][1].end.offset-e[n][1].start.offset?(p=2,d=mr(d,[["enter",e[n][1],t],["exit",e[n][1],t]])):p=0,tr(e,i-1,n-i+3,d),n=i+d.length-p-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function $k(e,t){const n=this.parser.constructs.attentionMarkers.null,i=this.previous,l=eo(i);let s;return u;function u(h){return s=h,e.enter("attentionSequence"),f(h)}function f(h){if(h===s)return e.consume(h),f;const d=e.exit("attentionSequence"),p=eo(h),m=!p||p===2&&l||n.includes(h),v=!l||l===2&&p||n.includes(i);return d._open=!!(s===42?m:m&&(l||!v)),d._close=!!(s===42?v:v&&(p||!m)),t(h)}}function W3(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Xk={name:"autolink",tokenize:Pk};function Pk(e,t,n){let i=0;return l;function l(x){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(x),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),s}function s(x){return Tn(x)?(e.consume(x),u):x===64?n(x):d(x)}function u(x){return x===43||x===45||x===46||wn(x)?(i=1,f(x)):d(x)}function f(x){return x===58?(e.consume(x),i=0,h):(x===43||x===45||x===46||wn(x))&&i++<32?(e.consume(x),f):(i=0,d(x))}function h(x){return x===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(x),e.exit("autolinkMarker"),e.exit("autolink"),t):x===null||x===32||x===60||rc(x)?n(x):(e.consume(x),h)}function d(x){return x===64?(e.consume(x),p):Hk(x)?(e.consume(x),d):n(x)}function p(x){return wn(x)?m(x):n(x)}function m(x){return x===46?(e.consume(x),i=0,p):x===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(x),e.exit("autolinkMarker"),e.exit("autolink"),t):v(x)}function v(x){if((x===45||wn(x))&&i++<63){const w=x===45?v:m;return e.consume(x),w}return n(x)}}const Xs={partial:!0,tokenize:Zk};function Zk(e,t,n){return i;function i(s){return lt(s)?nt(e,l,"linePrefix")(s):l(s)}function l(s){return s===null||je(s)?t(s):n(s)}}const hy={continuation:{tokenize:Kk},exit:Jk,name:"blockQuote",tokenize:Qk};function Qk(e,t,n){const i=this;return l;function l(u){if(u===62){const f=i.containerState;return f.open||(e.enter("blockQuote",{_container:!0}),f.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(u),e.exit("blockQuoteMarker"),s}return n(u)}function s(u){return lt(u)?(e.enter("blockQuotePrefixWhitespace"),e.consume(u),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(u))}}function Kk(e,t,n){const i=this;return l;function l(u){return lt(u)?nt(e,s,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u):s(u)}function s(u){return e.attempt(hy,t,n)(u)}}function Jk(e){e.exit("blockQuote")}const dy={name:"characterEscape",tokenize:Wk};function Wk(e,t,n){return i;function i(s){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(s),e.exit("escapeMarker"),l}function l(s){return qk(s)?(e.enter("characterEscapeValue"),e.consume(s),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(s)}}const my={name:"characterReference",tokenize:eE};function eE(e,t,n){const i=this;let l=0,s,u;return f;function f(m){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(m),e.exit("characterReferenceMarker"),h}function h(m){return m===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(m),e.exit("characterReferenceMarkerNumeric"),d):(e.enter("characterReferenceValue"),s=31,u=wn,p(m))}function d(m){return m===88||m===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(m),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),s=6,u=jk,p):(e.enter("characterReferenceValue"),s=7,u=N1,p(m))}function p(m){if(m===59&&l){const v=e.exit("characterReferenceValue");return u===wn&&!Sm(i.sliceSerialize(v))?n(m):(e.enter("characterReferenceMarker"),e.consume(m),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return u(m)&&l++<s?(e.consume(m),p):n(m)}}const e5={partial:!0,tokenize:nE},t5={concrete:!0,name:"codeFenced",tokenize:tE};function tE(e,t,n){const i=this,l={partial:!0,tokenize:I};let s=0,u=0,f;return h;function h(D){return d(D)}function d(D){const U=i.events[i.events.length-1];return s=U&&U[1].type==="linePrefix"?U[2].sliceSerialize(U[1],!0).length:0,f=D,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),p(D)}function p(D){return D===f?(u++,e.consume(D),p):u<3?n(D):(e.exit("codeFencedFenceSequence"),lt(D)?nt(e,m,"whitespace")(D):m(D))}function m(D){return D===null||je(D)?(e.exit("codeFencedFence"),i.interrupt?t(D):e.check(e5,A,B)(D)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),v(D))}function v(D){return D===null||je(D)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),m(D)):lt(D)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),nt(e,x,"whitespace")(D)):D===96&&D===f?n(D):(e.consume(D),v)}function x(D){return D===null||je(D)?m(D):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),w(D))}function w(D){return D===null||je(D)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),m(D)):D===96&&D===f?n(D):(e.consume(D),w)}function A(D){return e.attempt(l,B,C)(D)}function C(D){return e.enter("lineEnding"),e.consume(D),e.exit("lineEnding"),E}function E(D){return s>0&<(D)?nt(e,N,"linePrefix",s+1)(D):N(D)}function N(D){return D===null||je(D)?e.check(e5,A,B)(D):(e.enter("codeFlowValue"),T(D))}function T(D){return D===null||je(D)?(e.exit("codeFlowValue"),N(D)):(e.consume(D),T)}function B(D){return e.exit("codeFenced"),t(D)}function I(D,U,J){let P=0;return V;function V(F){return D.enter("lineEnding"),D.consume(F),D.exit("lineEnding"),X}function X(F){return D.enter("codeFencedFence"),lt(F)?nt(D,W,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(F):W(F)}function W(F){return F===f?(D.enter("codeFencedFenceSequence"),ce(F)):J(F)}function ce(F){return F===f?(P++,D.consume(F),ce):P>=u?(D.exit("codeFencedFenceSequence"),lt(F)?nt(D,q,"whitespace")(F):q(F)):J(F)}function q(F){return F===null||je(F)?(D.exit("codeFencedFence"),U(F)):J(F)}}}function nE(e,t,n){const i=this;return l;function l(u){return u===null?n(u):(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),s)}function s(u){return i.parser.lazy[i.now().line]?n(u):t(u)}}const _d={name:"codeIndented",tokenize:iE},rE={partial:!0,tokenize:aE};function iE(e,t,n){const i=this;return l;function l(d){return e.enter("codeIndented"),nt(e,s,"linePrefix",5)(d)}function s(d){const p=i.events[i.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?u(d):n(d)}function u(d){return d===null?h(d):je(d)?e.attempt(rE,u,h)(d):(e.enter("codeFlowValue"),f(d))}function f(d){return d===null||je(d)?(e.exit("codeFlowValue"),u(d)):(e.consume(d),f)}function h(d){return e.exit("codeIndented"),t(d)}}function aE(e,t,n){const i=this;return l;function l(u){return i.parser.lazy[i.now().line]?n(u):je(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),l):nt(e,s,"linePrefix",5)(u)}function s(u){const f=i.events[i.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?t(u):je(u)?l(u):n(u)}}const lE={name:"codeText",previous:sE,resolve:oE,tokenize:uE};function oE(e){let t=e.length-4,n=3,i,l;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(i=n;++i<t;)if(e[i][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(i=n-1,t++;++i<=t;)l===void 0?i!==t&&e[i][1].type!=="lineEnding"&&(l=i):(i===t||e[i][1].type==="lineEnding")&&(e[l][1].type="codeTextData",i!==l+2&&(e[l][1].end=e[i-1][1].end,e.splice(l+2,i-l-2),t-=i-l-2,i=l+2),l=void 0);return e}function sE(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function uE(e,t,n){let i=0,l,s;return u;function u(m){return e.enter("codeText"),e.enter("codeTextSequence"),f(m)}function f(m){return m===96?(e.consume(m),i++,f):(e.exit("codeTextSequence"),h(m))}function h(m){return m===null?n(m):m===32?(e.enter("space"),e.consume(m),e.exit("space"),h):m===96?(s=e.enter("codeTextSequence"),l=0,p(m)):je(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),h):(e.enter("codeTextData"),d(m))}function d(m){return m===null||m===32||m===96||je(m)?(e.exit("codeTextData"),h(m)):(e.consume(m),d)}function p(m){return m===96?(e.consume(m),l++,p):l===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(m)):(s.type="codeTextData",d(m))}}class cE{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const i=n??Number.POSITIVE_INFINITY;return i<this.left.length?this.left.slice(t,i):t>this.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(t,n,i){const l=n||0;this.setCursor(Math.trunc(t));const s=this.right.splice(this.right.length-l,Number.POSITIVE_INFINITY);return i&&ds(this.left,i),s.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),ds(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),ds(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);ds(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);ds(this.left,n.reverse())}}}function ds(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function py(e){const t={};let n=-1,i,l,s,u,f,h,d;const p=new cE(e);for(;++n<p.length;){for(;n in t;)n=t[n];if(i=p.get(n),n&&i[1].type==="chunkFlow"&&p.get(n-1)[1].type==="listItemPrefix"&&(h=i[1]._tokenizer.events,s=0,s<h.length&&h[s][1].type==="lineEndingBlank"&&(s+=2),s<h.length&&h[s][1].type==="content"))for(;++s<h.length&&h[s][1].type!=="content";)h[s][1].type==="chunkText"&&(h[s][1]._isInFirstContentOfListItem=!0,s++);if(i[0]==="enter")i[1].contentType&&(Object.assign(t,fE(p,n)),n=t[n],d=!0);else if(i[1]._container){for(s=n,l=void 0;s--;)if(u=p.get(s),u[1].type==="lineEnding"||u[1].type==="lineEndingBlank")u[0]==="enter"&&(l&&(p.get(l)[1].type="lineEndingBlank"),u[1].type="lineEnding",l=s);else if(!(u[1].type==="linePrefix"||u[1].type==="listItemIndent"))break;l&&(i[1].end={...p.get(l)[1].start},f=p.slice(l,n),f.unshift(i),p.splice(l,n-l+1,f))}}return tr(e,0,Number.POSITIVE_INFINITY,p.slice(0)),!d}function fE(e,t){const n=e.get(t)[1],i=e.get(t)[2];let l=t-1;const s=[];let u=n._tokenizer;u||(u=i.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(u._contentTypeTextTrailing=!0));const f=u.events,h=[],d={};let p,m,v=-1,x=n,w=0,A=0;const C=[A];for(;x;){for(;e.get(++l)[1]!==x;);s.push(l),x._tokenizer||(p=i.sliceStream(x),x.next||p.push(null),m&&u.defineSkip(x.start),x._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=!0),u.write(p),x._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=void 0)),m=x,x=x.next}for(x=n;++v<f.length;)f[v][0]==="exit"&&f[v-1][0]==="enter"&&f[v][1].type===f[v-1][1].type&&f[v][1].start.line!==f[v][1].end.line&&(A=v+1,C.push(A),x._tokenizer=void 0,x.previous=void 0,x=x.next);for(u.events=[],x?(x._tokenizer=void 0,x.previous=void 0):C.pop(),v=C.length;v--;){const E=f.slice(C[v],C[v+1]),N=s.pop();h.push([N,N+E.length-1]),e.splice(N,2,E)}for(h.reverse(),v=-1;++v<h.length;)d[w+h[v][0]]=w+h[v][1],w+=h[v][1]-h[v][0]-1;return d}const hE={resolve:mE,tokenize:pE},dE={partial:!0,tokenize:gE};function mE(e){return py(e),e}function pE(e,t){let n;return i;function i(f){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),l(f)}function l(f){return f===null?s(f):je(f)?e.check(dE,u,s)(f):(e.consume(f),l)}function s(f){return e.exit("chunkContent"),e.exit("content"),t(f)}function u(f){return e.consume(f),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,l}}function gE(e,t,n){const i=this;return l;function l(u){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),nt(e,s,"linePrefix")}function s(u){if(u===null||je(u))return n(u);const f=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?t(u):e.interrupt(i.parser.constructs.flow,n,t)(u)}}function gy(e,t,n,i,l,s,u,f,h){const d=h||Number.POSITIVE_INFINITY;let p=0;return m;function m(E){return E===60?(e.enter(i),e.enter(l),e.enter(s),e.consume(E),e.exit(s),v):E===null||E===32||E===41||rc(E)?n(E):(e.enter(i),e.enter(u),e.enter(f),e.enter("chunkString",{contentType:"string"}),A(E))}function v(E){return E===62?(e.enter(s),e.consume(E),e.exit(s),e.exit(l),e.exit(i),t):(e.enter(f),e.enter("chunkString",{contentType:"string"}),x(E))}function x(E){return E===62?(e.exit("chunkString"),e.exit(f),v(E)):E===null||E===60||je(E)?n(E):(e.consume(E),E===92?w:x)}function w(E){return E===60||E===62||E===92?(e.consume(E),x):x(E)}function A(E){return!p&&(E===null||E===41||Mt(E))?(e.exit("chunkString"),e.exit(f),e.exit(u),e.exit(i),t(E)):p<d&&E===40?(e.consume(E),p++,A):E===41?(e.consume(E),p--,A):E===null||E===32||E===40||rc(E)?n(E):(e.consume(E),E===92?C:A)}function C(E){return E===40||E===41||E===92?(e.consume(E),A):A(E)}}function yy(e,t,n,i,l,s){const u=this;let f=0,h;return d;function d(x){return e.enter(i),e.enter(l),e.consume(x),e.exit(l),e.enter(s),p}function p(x){return f>999||x===null||x===91||x===93&&!h||x===94&&!f&&"_hiddenFootnoteSupport"in u.parser.constructs?n(x):x===93?(e.exit(s),e.enter(l),e.consume(x),e.exit(l),e.exit(i),t):je(x)?(e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),p):(e.enter("chunkString",{contentType:"string"}),m(x))}function m(x){return x===null||x===91||x===93||je(x)||f++>999?(e.exit("chunkString"),p(x)):(e.consume(x),h||(h=!lt(x)),x===92?v:m)}function v(x){return x===91||x===92||x===93?(e.consume(x),f++,m):m(x)}}function vy(e,t,n,i,l,s){let u;return f;function f(v){return v===34||v===39||v===40?(e.enter(i),e.enter(l),e.consume(v),e.exit(l),u=v===40?41:v,h):n(v)}function h(v){return v===u?(e.enter(l),e.consume(v),e.exit(l),e.exit(i),t):(e.enter(s),d(v))}function d(v){return v===u?(e.exit(s),h(u)):v===null?n(v):je(v)?(e.enter("lineEnding"),e.consume(v),e.exit("lineEnding"),nt(e,d,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),p(v))}function p(v){return v===u||v===null||je(v)?(e.exit("chunkString"),d(v)):(e.consume(v),v===92?m:p)}function m(v){return v===u||v===92?(e.consume(v),p):p(v)}}function Ss(e,t){let n;return i;function i(l){return je(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),n=!0,i):lt(l)?nt(e,i,n?"linePrefix":"lineSuffix")(l):t(l)}}const yE={name:"definition",tokenize:xE},vE={partial:!0,tokenize:bE};function xE(e,t,n){const i=this;let l;return s;function s(x){return e.enter("definition"),u(x)}function u(x){return yy.call(i,e,f,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(x)}function f(x){return l=Cr(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),x===58?(e.enter("definitionMarker"),e.consume(x),e.exit("definitionMarker"),h):n(x)}function h(x){return Mt(x)?Ss(e,d)(x):d(x)}function d(x){return gy(e,p,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(x)}function p(x){return e.attempt(vE,m,m)(x)}function m(x){return lt(x)?nt(e,v,"whitespace")(x):v(x)}function v(x){return x===null||je(x)?(e.exit("definition"),i.parser.defined.push(l),t(x)):n(x)}}function bE(e,t,n){return i;function i(f){return Mt(f)?Ss(e,l)(f):n(f)}function l(f){return vy(e,s,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(f)}function s(f){return lt(f)?nt(e,u,"whitespace")(f):u(f)}function u(f){return f===null||je(f)?t(f):n(f)}}const wE={name:"hardBreakEscape",tokenize:SE};function SE(e,t,n){return i;function i(s){return e.enter("hardBreakEscape"),e.consume(s),l}function l(s){return je(s)?(e.exit("hardBreakEscape"),t(s)):n(s)}}const kE={name:"headingAtx",resolve:EE,tokenize:AE};function EE(e,t){let n=e.length-2,i=3,l,s;return e[i][1].type==="whitespace"&&(i+=2),n-2>i&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(i===n-1||n-4>i&&e[n-2][1].type==="whitespace")&&(n-=i+1===n?2:4),n>i&&(l={type:"atxHeadingText",start:e[i][1].start,end:e[n][1].end},s={type:"chunkText",start:e[i][1].start,end:e[n][1].end,contentType:"text"},tr(e,i,n-i+1,[["enter",l,t],["enter",s,t],["exit",s,t],["exit",l,t]])),e}function AE(e,t,n){let i=0;return l;function l(p){return e.enter("atxHeading"),s(p)}function s(p){return e.enter("atxHeadingSequence"),u(p)}function u(p){return p===35&&i++<6?(e.consume(p),u):p===null||Mt(p)?(e.exit("atxHeadingSequence"),f(p)):n(p)}function f(p){return p===35?(e.enter("atxHeadingSequence"),h(p)):p===null||je(p)?(e.exit("atxHeading"),t(p)):lt(p)?nt(e,f,"whitespace")(p):(e.enter("atxHeadingText"),d(p))}function h(p){return p===35?(e.consume(p),h):(e.exit("atxHeadingSequence"),f(p))}function d(p){return p===null||p===35||Mt(p)?(e.exit("atxHeadingText"),f(p)):(e.consume(p),d)}}const CE=["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"],n5=["pre","script","style","textarea"],TE={concrete:!0,name:"htmlFlow",resolveTo:NE,tokenize:DE},ME={partial:!0,tokenize:OE},zE={partial:!0,tokenize:_E};function NE(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function DE(e,t,n){const i=this;let l,s,u,f,h;return d;function d(_){return p(_)}function p(_){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(_),m}function m(_){return _===33?(e.consume(_),v):_===47?(e.consume(_),s=!0,A):_===63?(e.consume(_),l=3,i.interrupt?t:R):Tn(_)?(e.consume(_),u=String.fromCharCode(_),C):n(_)}function v(_){return _===45?(e.consume(_),l=2,x):_===91?(e.consume(_),l=5,f=0,w):Tn(_)?(e.consume(_),l=4,i.interrupt?t:R):n(_)}function x(_){return _===45?(e.consume(_),i.interrupt?t:R):n(_)}function w(_){const se="CDATA[";return _===se.charCodeAt(f++)?(e.consume(_),f===se.length?i.interrupt?t:W:w):n(_)}function A(_){return Tn(_)?(e.consume(_),u=String.fromCharCode(_),C):n(_)}function C(_){if(_===null||_===47||_===62||Mt(_)){const se=_===47,ve=u.toLowerCase();return!se&&!s&&n5.includes(ve)?(l=1,i.interrupt?t(_):W(_)):CE.includes(u.toLowerCase())?(l=6,se?(e.consume(_),E):i.interrupt?t(_):W(_)):(l=7,i.interrupt&&!i.parser.lazy[i.now().line]?n(_):s?N(_):T(_))}return _===45||wn(_)?(e.consume(_),u+=String.fromCharCode(_),C):n(_)}function E(_){return _===62?(e.consume(_),i.interrupt?t:W):n(_)}function N(_){return lt(_)?(e.consume(_),N):V(_)}function T(_){return _===47?(e.consume(_),V):_===58||_===95||Tn(_)?(e.consume(_),B):lt(_)?(e.consume(_),T):V(_)}function B(_){return _===45||_===46||_===58||_===95||wn(_)?(e.consume(_),B):I(_)}function I(_){return _===61?(e.consume(_),D):lt(_)?(e.consume(_),I):T(_)}function D(_){return _===null||_===60||_===61||_===62||_===96?n(_):_===34||_===39?(e.consume(_),h=_,U):lt(_)?(e.consume(_),D):J(_)}function U(_){return _===h?(e.consume(_),h=null,P):_===null||je(_)?n(_):(e.consume(_),U)}function J(_){return _===null||_===34||_===39||_===47||_===60||_===61||_===62||_===96||Mt(_)?I(_):(e.consume(_),J)}function P(_){return _===47||_===62||lt(_)?T(_):n(_)}function V(_){return _===62?(e.consume(_),X):n(_)}function X(_){return _===null||je(_)?W(_):lt(_)?(e.consume(_),X):n(_)}function W(_){return _===45&&l===2?(e.consume(_),L):_===60&&l===1?(e.consume(_),Y):_===62&&l===4?(e.consume(_),j):_===63&&l===3?(e.consume(_),R):_===93&&l===5?(e.consume(_),ne):je(_)&&(l===6||l===7)?(e.exit("htmlFlowData"),e.check(ME,Z,ce)(_)):_===null||je(_)?(e.exit("htmlFlowData"),ce(_)):(e.consume(_),W)}function ce(_){return e.check(zE,q,Z)(_)}function q(_){return e.enter("lineEnding"),e.consume(_),e.exit("lineEnding"),F}function F(_){return _===null||je(_)?ce(_):(e.enter("htmlFlowData"),W(_))}function L(_){return _===45?(e.consume(_),R):W(_)}function Y(_){return _===47?(e.consume(_),u="",K):W(_)}function K(_){if(_===62){const se=u.toLowerCase();return n5.includes(se)?(e.consume(_),j):W(_)}return Tn(_)&&u.length<8?(e.consume(_),u+=String.fromCharCode(_),K):W(_)}function ne(_){return _===93?(e.consume(_),R):W(_)}function R(_){return _===62?(e.consume(_),j):_===45&&l===2?(e.consume(_),R):W(_)}function j(_){return _===null||je(_)?(e.exit("htmlFlowData"),Z(_)):(e.consume(_),j)}function Z(_){return e.exit("htmlFlow"),t(_)}}function _E(e,t,n){const i=this;return l;function l(u){return je(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),s):n(u)}function s(u){return i.parser.lazy[i.now().line]?n(u):t(u)}}function OE(e,t,n){return i;function i(l){return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),e.attempt(Xs,t,n)}}const RE={name:"htmlText",tokenize:BE};function BE(e,t,n){const i=this;let l,s,u;return f;function f(R){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(R),h}function h(R){return R===33?(e.consume(R),d):R===47?(e.consume(R),I):R===63?(e.consume(R),T):Tn(R)?(e.consume(R),J):n(R)}function d(R){return R===45?(e.consume(R),p):R===91?(e.consume(R),s=0,w):Tn(R)?(e.consume(R),N):n(R)}function p(R){return R===45?(e.consume(R),x):n(R)}function m(R){return R===null?n(R):R===45?(e.consume(R),v):je(R)?(u=m,Y(R)):(e.consume(R),m)}function v(R){return R===45?(e.consume(R),x):m(R)}function x(R){return R===62?L(R):R===45?v(R):m(R)}function w(R){const j="CDATA[";return R===j.charCodeAt(s++)?(e.consume(R),s===j.length?A:w):n(R)}function A(R){return R===null?n(R):R===93?(e.consume(R),C):je(R)?(u=A,Y(R)):(e.consume(R),A)}function C(R){return R===93?(e.consume(R),E):A(R)}function E(R){return R===62?L(R):R===93?(e.consume(R),E):A(R)}function N(R){return R===null||R===62?L(R):je(R)?(u=N,Y(R)):(e.consume(R),N)}function T(R){return R===null?n(R):R===63?(e.consume(R),B):je(R)?(u=T,Y(R)):(e.consume(R),T)}function B(R){return R===62?L(R):T(R)}function I(R){return Tn(R)?(e.consume(R),D):n(R)}function D(R){return R===45||wn(R)?(e.consume(R),D):U(R)}function U(R){return je(R)?(u=U,Y(R)):lt(R)?(e.consume(R),U):L(R)}function J(R){return R===45||wn(R)?(e.consume(R),J):R===47||R===62||Mt(R)?P(R):n(R)}function P(R){return R===47?(e.consume(R),L):R===58||R===95||Tn(R)?(e.consume(R),V):je(R)?(u=P,Y(R)):lt(R)?(e.consume(R),P):L(R)}function V(R){return R===45||R===46||R===58||R===95||wn(R)?(e.consume(R),V):X(R)}function X(R){return R===61?(e.consume(R),W):je(R)?(u=X,Y(R)):lt(R)?(e.consume(R),X):P(R)}function W(R){return R===null||R===60||R===61||R===62||R===96?n(R):R===34||R===39?(e.consume(R),l=R,ce):je(R)?(u=W,Y(R)):lt(R)?(e.consume(R),W):(e.consume(R),q)}function ce(R){return R===l?(e.consume(R),l=void 0,F):R===null?n(R):je(R)?(u=ce,Y(R)):(e.consume(R),ce)}function q(R){return R===null||R===34||R===39||R===60||R===61||R===96?n(R):R===47||R===62||Mt(R)?P(R):(e.consume(R),q)}function F(R){return R===47||R===62||Mt(R)?P(R):n(R)}function L(R){return R===62?(e.consume(R),e.exit("htmlTextData"),e.exit("htmlText"),t):n(R)}function Y(R){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(R),e.exit("lineEnding"),K}function K(R){return lt(R)?nt(e,ne,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(R):ne(R)}function ne(R){return e.enter("htmlTextData"),u(R)}}const km={name:"labelEnd",resolveAll:qE,resolveTo:IE,tokenize:UE},LE={tokenize:FE},HE={tokenize:VE},jE={tokenize:YE};function qE(e){let t=-1;const n=[];for(;++t<e.length;){const i=e[t][1];if(n.push(e[t]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const l=i.type==="labelImage"?4:2;i.type="data",t+=l}}return e.length!==n.length&&tr(e,0,e.length,n),e}function IE(e,t){let n=e.length,i=0,l,s,u,f;for(;n--;)if(l=e[n][1],s){if(l.type==="link"||l.type==="labelLink"&&l._inactive)break;e[n][0]==="enter"&&l.type==="labelLink"&&(l._inactive=!0)}else if(u){if(e[n][0]==="enter"&&(l.type==="labelImage"||l.type==="labelLink")&&!l._balanced&&(s=n,l.type!=="labelLink")){i=2;break}}else l.type==="labelEnd"&&(u=n);const h={type:e[s][1].type==="labelLink"?"link":"image",start:{...e[s][1].start},end:{...e[e.length-1][1].end}},d={type:"label",start:{...e[s][1].start},end:{...e[u][1].end}},p={type:"labelText",start:{...e[s+i+2][1].end},end:{...e[u-2][1].start}};return f=[["enter",h,t],["enter",d,t]],f=mr(f,e.slice(s+1,s+i+3)),f=mr(f,[["enter",p,t]]),f=mr(f,Bc(t.parser.constructs.insideSpan.null,e.slice(s+i+4,u-3),t)),f=mr(f,[["exit",p,t],e[u-2],e[u-1],["exit",d,t]]),f=mr(f,e.slice(u+1)),f=mr(f,[["exit",h,t]]),tr(e,s,e.length,f),e}function UE(e,t,n){const i=this;let l=i.events.length,s,u;for(;l--;)if((i.events[l][1].type==="labelImage"||i.events[l][1].type==="labelLink")&&!i.events[l][1]._balanced){s=i.events[l][1];break}return f;function f(v){return s?s._inactive?m(v):(u=i.parser.defined.includes(Cr(i.sliceSerialize({start:s.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(v),e.exit("labelMarker"),e.exit("labelEnd"),h):n(v)}function h(v){return v===40?e.attempt(LE,p,u?p:m)(v):v===91?e.attempt(HE,p,u?d:m)(v):u?p(v):m(v)}function d(v){return e.attempt(jE,p,m)(v)}function p(v){return t(v)}function m(v){return s._balanced=!0,n(v)}}function FE(e,t,n){return i;function i(m){return e.enter("resource"),e.enter("resourceMarker"),e.consume(m),e.exit("resourceMarker"),l}function l(m){return Mt(m)?Ss(e,s)(m):s(m)}function s(m){return m===41?p(m):gy(e,u,f,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(m)}function u(m){return Mt(m)?Ss(e,h)(m):p(m)}function f(m){return n(m)}function h(m){return m===34||m===39||m===40?vy(e,d,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(m):p(m)}function d(m){return Mt(m)?Ss(e,p)(m):p(m)}function p(m){return m===41?(e.enter("resourceMarker"),e.consume(m),e.exit("resourceMarker"),e.exit("resource"),t):n(m)}}function VE(e,t,n){const i=this;return l;function l(f){return yy.call(i,e,s,u,"reference","referenceMarker","referenceString")(f)}function s(f){return i.parser.defined.includes(Cr(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(f):n(f)}function u(f){return n(f)}}function YE(e,t,n){return i;function i(s){return e.enter("reference"),e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),l}function l(s){return s===93?(e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),e.exit("reference"),t):n(s)}}const GE={name:"labelStartImage",resolveAll:km.resolveAll,tokenize:$E};function $E(e,t,n){const i=this;return l;function l(f){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(f),e.exit("labelImageMarker"),s}function s(f){return f===91?(e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelImage"),u):n(f)}function u(f){return f===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(f):t(f)}}const XE={name:"labelStartLink",resolveAll:km.resolveAll,tokenize:PE};function PE(e,t,n){const i=this;return l;function l(u){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelLink"),s}function s(u){return u===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(u):t(u)}}const Od={name:"lineEnding",tokenize:ZE};function ZE(e,t){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),nt(e,t,"linePrefix")}}const G0={name:"thematicBreak",tokenize:QE};function QE(e,t,n){let i=0,l;return s;function s(d){return e.enter("thematicBreak"),u(d)}function u(d){return l=d,f(d)}function f(d){return d===l?(e.enter("thematicBreakSequence"),h(d)):i>=3&&(d===null||je(d))?(e.exit("thematicBreak"),t(d)):n(d)}function h(d){return d===l?(e.consume(d),i++,h):(e.exit("thematicBreakSequence"),lt(d)?nt(e,f,"whitespace")(d):f(d))}}const qn={continuation:{tokenize:eA},exit:nA,name:"list",tokenize:WE},KE={partial:!0,tokenize:rA},JE={partial:!0,tokenize:tA};function WE(e,t,n){const i=this,l=i.events[i.events.length-1];let s=l&&l[1].type==="linePrefix"?l[2].sliceSerialize(l[1],!0).length:0,u=0;return f;function f(x){const w=i.containerState.type||(x===42||x===43||x===45?"listUnordered":"listOrdered");if(w==="listUnordered"?!i.containerState.marker||x===i.containerState.marker:N1(x)){if(i.containerState.type||(i.containerState.type=w,e.enter(w,{_container:!0})),w==="listUnordered")return e.enter("listItemPrefix"),x===42||x===45?e.check(G0,n,d)(x):d(x);if(!i.interrupt||x===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),h(x)}return n(x)}function h(x){return N1(x)&&++u<10?(e.consume(x),h):(!i.interrupt||u<2)&&(i.containerState.marker?x===i.containerState.marker:x===41||x===46)?(e.exit("listItemValue"),d(x)):n(x)}function d(x){return e.enter("listItemMarker"),e.consume(x),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||x,e.check(Xs,i.interrupt?n:p,e.attempt(KE,v,m))}function p(x){return i.containerState.initialBlankLine=!0,s++,v(x)}function m(x){return lt(x)?(e.enter("listItemPrefixWhitespace"),e.consume(x),e.exit("listItemPrefixWhitespace"),v):n(x)}function v(x){return i.containerState.size=s+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(x)}}function eA(e,t,n){const i=this;return i.containerState._closeFlow=void 0,e.check(Xs,l,s);function l(f){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,nt(e,t,"listItemIndent",i.containerState.size+1)(f)}function s(f){return i.containerState.furtherBlankLines||!lt(f)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,u(f)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(JE,t,u)(f))}function u(f){return i.containerState._closeFlow=!0,i.interrupt=void 0,nt(e,e.attempt(qn,t,n),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f)}}function tA(e,t,n){const i=this;return nt(e,l,"listItemIndent",i.containerState.size+1);function l(s){const u=i.events[i.events.length-1];return u&&u[1].type==="listItemIndent"&&u[2].sliceSerialize(u[1],!0).length===i.containerState.size?t(s):n(s)}}function nA(e){e.exit(this.containerState.type)}function rA(e,t,n){const i=this;return nt(e,l,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function l(s){const u=i.events[i.events.length-1];return!lt(s)&&u&&u[1].type==="listItemPrefixWhitespace"?t(s):n(s)}}const r5={name:"setextUnderline",resolveTo:iA,tokenize:aA};function iA(e,t){let n=e.length,i,l,s;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){i=n;break}e[n][1].type==="paragraph"&&(l=n)}else e[n][1].type==="content"&&e.splice(n,1),!s&&e[n][1].type==="definition"&&(s=n);const u={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[l][1].type="setextHeadingText",s?(e.splice(l,0,["enter",u,t]),e.splice(s+1,0,["exit",e[i][1],t]),e[i][1].end={...e[s][1].end}):e[i][1]=u,e.push(["exit",u,t]),e}function aA(e,t,n){const i=this;let l;return s;function s(d){let p=i.events.length,m;for(;p--;)if(i.events[p][1].type!=="lineEnding"&&i.events[p][1].type!=="linePrefix"&&i.events[p][1].type!=="content"){m=i.events[p][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||m)?(e.enter("setextHeadingLine"),l=d,u(d)):n(d)}function u(d){return e.enter("setextHeadingLineSequence"),f(d)}function f(d){return d===l?(e.consume(d),f):(e.exit("setextHeadingLineSequence"),lt(d)?nt(e,h,"lineSuffix")(d):h(d))}function h(d){return d===null||je(d)?(e.exit("setextHeadingLine"),t(d)):n(d)}}const lA={tokenize:oA};function oA(e){const t=this,n=e.attempt(Xs,i,e.attempt(this.parser.constructs.flowInitial,l,nt(e,e.attempt(this.parser.constructs.flow,l,e.attempt(hE,l)),"linePrefix")));return n;function i(s){if(s===null){e.consume(s);return}return e.enter("lineEndingBlank"),e.consume(s),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function l(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const sA={resolveAll:by()},uA=xy("string"),cA=xy("text");function xy(e){return{resolveAll:by(e==="text"?fA:void 0),tokenize:t};function t(n){const i=this,l=this.parser.constructs[e],s=n.attempt(l,u,f);return u;function u(p){return d(p)?s(p):f(p)}function f(p){if(p===null){n.consume(p);return}return n.enter("data"),n.consume(p),h}function h(p){return d(p)?(n.exit("data"),s(p)):(n.consume(p),h)}function d(p){if(p===null)return!0;const m=l[p];let v=-1;if(m)for(;++v<m.length;){const x=m[v];if(!x.previous||x.previous.call(i,i.previous))return!0}return!1}}}function by(e){return t;function t(n,i){let l=-1,s;for(;++l<=n.length;)s===void 0?n[l]&&n[l][1].type==="data"&&(s=l,l++):(!n[l]||n[l][1].type!=="data")&&(l!==s+2&&(n[s][1].end=n[l-1][1].end,n.splice(s+2,l-s-2),l=s+2),s=void 0);return e?e(n,i):n}}function fA(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const i=e[n-1][1],l=t.sliceStream(i);let s=l.length,u=-1,f=0,h;for(;s--;){const d=l[s];if(typeof d=="string"){for(u=d.length;d.charCodeAt(u-1)===32;)f++,u--;if(u)break;u=-1}else if(d===-2)h=!0,f++;else if(d!==-1){s++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(f=0),f){const d={type:n===e.length||h||f<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?u:i.start._bufferIndex+u,_index:i.start._index+s,line:i.end.line,column:i.end.column-f,offset:i.end.offset-f},end:{...i.end}};i.end={...d.start},i.start.offset===i.end.offset?Object.assign(i,d):(e.splice(n,0,["enter",d,t],["exit",d,t]),n+=2)}n++}return e}const hA={42:qn,43:qn,45:qn,48:qn,49:qn,50:qn,51:qn,52:qn,53:qn,54:qn,55:qn,56:qn,57:qn,62:hy},dA={91:yE},mA={[-2]:_d,[-1]:_d,32:_d},pA={35:kE,42:G0,45:[r5,G0],60:TE,61:r5,95:G0,96:t5,126:t5},gA={38:my,92:dy},yA={[-5]:Od,[-4]:Od,[-3]:Od,33:GE,38:my,42:D1,60:[Xk,RE],91:XE,92:[wE,dy],93:km,95:D1,96:lE},vA={null:[D1,sA]},xA={null:[42,95]},bA={null:[]},wA=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:xA,contentInitial:dA,disable:bA,document:hA,flow:pA,flowInitial:mA,insideSpan:vA,string:gA,text:yA},Symbol.toStringTag,{value:"Module"}));function SA(e,t,n){let i={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const l={},s=[];let u=[],f=[];const h={attempt:U(I),check:U(D),consume:N,enter:T,exit:B,interrupt:U(D,{interrupt:!0})},d={code:null,containerState:{},defineSkip:A,events:[],now:w,parser:e,previous:null,sliceSerialize:v,sliceStream:x,write:m};let p=t.tokenize.call(d,h);return t.resolveAll&&s.push(t),d;function m(X){return u=mr(u,X),C(),u[u.length-1]!==null?[]:(J(t,0),d.events=Bc(s,d.events,d),d.events)}function v(X,W){return EA(x(X),W)}function x(X){return kA(u,X)}function w(){const{_bufferIndex:X,_index:W,line:ce,column:q,offset:F}=i;return{_bufferIndex:X,_index:W,line:ce,column:q,offset:F}}function A(X){l[X.line]=X.column,V()}function C(){let X;for(;i._index<u.length;){const W=u[i._index];if(typeof W=="string")for(X=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===X&&i._bufferIndex<W.length;)E(W.charCodeAt(i._bufferIndex));else E(W)}}function E(X){p=p(X)}function N(X){je(X)?(i.line++,i.column=1,i.offset+=X===-3?2:1,V()):X!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===u[i._index].length&&(i._bufferIndex=-1,i._index++)),d.previous=X}function T(X,W){const ce=W||{};return ce.type=X,ce.start=w(),d.events.push(["enter",ce,d]),f.push(ce),ce}function B(X){const W=f.pop();return W.end=w(),d.events.push(["exit",W,d]),W}function I(X,W){J(X,W.from)}function D(X,W){W.restore()}function U(X,W){return ce;function ce(q,F,L){let Y,K,ne,R;return Array.isArray(q)?Z(q):"tokenize"in q?Z([q]):j(q);function j(xe){return we;function we(ye){const ke=ye!==null&&xe[ye],Be=ye!==null&&xe.null,Ue=[...Array.isArray(ke)?ke:ke?[ke]:[],...Array.isArray(Be)?Be:Be?[Be]:[]];return Z(Ue)(ye)}}function Z(xe){return Y=xe,K=0,xe.length===0?L:_(xe[K])}function _(xe){return we;function we(ye){return R=P(),ne=xe,xe.partial||(d.currentConstruct=xe),xe.name&&d.parser.constructs.disable.null.includes(xe.name)?ve():xe.tokenize.call(W?Object.assign(Object.create(d),W):d,h,se,ve)(ye)}}function se(xe){return X(ne,R),F}function ve(xe){return R.restore(),++K<Y.length?_(Y[K]):L}}}function J(X,W){X.resolveAll&&!s.includes(X)&&s.push(X),X.resolve&&tr(d.events,W,d.events.length-W,X.resolve(d.events.slice(W),d)),X.resolveTo&&(d.events=X.resolveTo(d.events,d))}function P(){const X=w(),W=d.previous,ce=d.currentConstruct,q=d.events.length,F=Array.from(f);return{from:q,restore:L};function L(){i=X,d.previous=W,d.currentConstruct=ce,d.events.length=q,f=F,V()}}function V(){i.line in l&&i.column<2&&(i.column=l[i.line],i.offset+=l[i.line]-1)}}function kA(e,t){const n=t.start._index,i=t.start._bufferIndex,l=t.end._index,s=t.end._bufferIndex;let u;if(n===l)u=[e[n].slice(i,s)];else{if(u=e.slice(n,l),i>-1){const f=u[0];typeof f=="string"?u[0]=f.slice(i):u.shift()}s>0&&u.push(e[l].slice(0,s))}return u}function EA(e,t){let n=-1;const i=[];let l;for(;++n<e.length;){const s=e[n];let u;if(typeof s=="string")u=s;else switch(s){case-5:{u="\r";break}case-4:{u=`
|
|
269
|
+
`;break}case-3:{u=`\r
|
|
270
|
+
`;break}case-2:{u=t?" ":" ";break}case-1:{if(!t&&l)continue;u=" ";break}default:u=String.fromCharCode(s)}l=s===-2,i.push(u)}return i.join("")}function AA(e){const i={constructs:cy([wA,...(e||{}).extensions||[]]),content:l(Ik),defined:[],document:l(Fk),flow:l(lA),lazy:{},string:l(uA),text:l(cA)};return i;function l(s){return u;function u(f){return SA(i,s,f)}}}function CA(e){for(;!py(e););return e}const i5=/[\0\t\n\r]/g;function TA(){let e=1,t="",n=!0,i;return l;function l(s,u,f){const h=[];let d,p,m,v,x;for(s=t+(typeof s=="string"?s.toString():new TextDecoder(u||void 0).decode(s)),m=0,t="",n&&(s.charCodeAt(0)===65279&&m++,n=void 0);m<s.length;){if(i5.lastIndex=m,d=i5.exec(s),v=d&&d.index!==void 0?d.index:s.length,x=s.charCodeAt(v),!d){t=s.slice(m);break}if(x===10&&m===v&&i)h.push(-3),i=void 0;else switch(i&&(h.push(-5),i=void 0),m<v&&(h.push(s.slice(m,v)),e+=v-m),x){case 0:{h.push(65533),e++;break}case 9:{for(p=Math.ceil(e/4)*4,h.push(-2);e++<p;)h.push(-1);break}case 10:{h.push(-4),e=1;break}default:i=!0,e=1}m=v+1}return f&&(i&&h.push(-5),t&&h.push(t),h.push(null)),h}}const MA=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function zA(e){return e.replace(MA,NA)}function NA(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const l=n.charCodeAt(1),s=l===120||l===88;return fy(n.slice(s?2:1),s?16:10)}return Sm(n)||e}const wy={}.hasOwnProperty;function DA(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),_A(n)(CA(AA(n).document().write(TA()(e,t,!0))))}function _A(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(Ve),autolinkProtocol:P,autolinkEmail:P,atxHeading:s(tt),blockQuote:s(Be),characterEscape:P,characterReference:P,codeFenced:s(Ue),codeFencedFenceInfo:u,codeFencedFenceMeta:u,codeIndented:s(Ue,u),codeText:s(Oe,u),codeTextData:P,data:P,codeFlowValue:P,definition:s(_e),definitionDestinationString:u,definitionLabelString:u,definitionTitleString:u,emphasis:s(Ge),hardBreakEscape:s(Qe),hardBreakTrailing:s(Qe),htmlFlow:s(yt,u),htmlFlowData:P,htmlText:s(yt,u),htmlTextData:P,image:s(pe),label:u,link:s(Ve),listItem:s(bt),listItemValue:v,listOrdered:s(ut,m),listUnordered:s(ut),paragraph:s(wt),reference:_,referenceString:u,resourceDestinationString:u,resourceTitleString:u,setextHeading:s(tt),strong:s(vn),thematicBreak:s(Vn)},exit:{atxHeading:h(),atxHeadingSequence:I,autolink:h(),autolinkEmail:ke,autolinkProtocol:ye,blockQuote:h(),characterEscapeValue:V,characterReferenceMarkerHexadecimal:ve,characterReferenceMarkerNumeric:ve,characterReferenceValue:xe,characterReference:we,codeFenced:h(C),codeFencedFence:A,codeFencedFenceInfo:x,codeFencedFenceMeta:w,codeFlowValue:V,codeIndented:h(E),codeText:h(F),codeTextData:V,data:V,definition:h(),definitionDestinationString:B,definitionLabelString:N,definitionTitleString:T,emphasis:h(),hardBreakEscape:h(W),hardBreakTrailing:h(W),htmlFlow:h(ce),htmlFlowData:V,htmlText:h(q),htmlTextData:V,image:h(Y),label:ne,labelText:K,lineEnding:X,link:h(L),listItem:h(),listOrdered:h(),listUnordered:h(),paragraph:h(),referenceString:se,resourceDestinationString:R,resourceTitleString:j,resource:Z,setextHeading:h(J),setextHeadingLineSequence:U,setextHeadingText:D,strong:h(),thematicBreak:h()}};Sy(t,(e||{}).mdastExtensions||[]);const n={};return i;function i(fe){let Ee={type:"root",children:[]};const qe={stack:[Ee],tokenStack:[],config:t,enter:f,exit:d,buffer:u,resume:p,data:n},Xe=[];let rt=-1;for(;++rt<fe.length;)if(fe[rt][1].type==="listOrdered"||fe[rt][1].type==="listUnordered")if(fe[rt][0]==="enter")Xe.push(rt);else{const fn=Xe.pop();rt=l(fe,fn,rt)}for(rt=-1;++rt<fe.length;){const fn=t[fe[rt][0]];wy.call(fn,fe[rt][1].type)&&fn[fe[rt][1].type].call(Object.assign({sliceSerialize:fe[rt][2].sliceSerialize},qe),fe[rt][1])}if(qe.tokenStack.length>0){const fn=qe.tokenStack[qe.tokenStack.length-1];(fn[1]||a5).call(qe,void 0,fn[0])}for(Ee.position={start:ia(fe.length>0?fe[0][1].start:{line:1,column:1,offset:0}),end:ia(fe.length>0?fe[fe.length-2][1].end:{line:1,column:1,offset:0})},rt=-1;++rt<t.transforms.length;)Ee=t.transforms[rt](Ee)||Ee;return Ee}function l(fe,Ee,qe){let Xe=Ee-1,rt=-1,fn=!1,Nn,rn,jt,me;for(;++Xe<=qe;){const Le=fe[Xe];switch(Le[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Le[0]==="enter"?rt++:rt--,me=void 0;break}case"lineEndingBlank":{Le[0]==="enter"&&(Nn&&!me&&!rt&&!jt&&(jt=Xe),me=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:me=void 0}if(!rt&&Le[0]==="enter"&&Le[1].type==="listItemPrefix"||rt===-1&&Le[0]==="exit"&&(Le[1].type==="listUnordered"||Le[1].type==="listOrdered")){if(Nn){let qt=Xe;for(rn=void 0;qt--;){const St=fe[qt];if(St[1].type==="lineEnding"||St[1].type==="lineEndingBlank"){if(St[0]==="exit")continue;rn&&(fe[rn][1].type="lineEndingBlank",fn=!0),St[1].type="lineEnding",rn=qt}else if(!(St[1].type==="linePrefix"||St[1].type==="blockQuotePrefix"||St[1].type==="blockQuotePrefixWhitespace"||St[1].type==="blockQuoteMarker"||St[1].type==="listItemIndent"))break}jt&&(!rn||jt<rn)&&(Nn._spread=!0),Nn.end=Object.assign({},rn?fe[rn][1].start:Le[1].end),fe.splice(rn||Xe,0,["exit",Nn,Le[2]]),Xe++,qe++}if(Le[1].type==="listItemPrefix"){const qt={type:"listItem",_spread:!1,start:Object.assign({},Le[1].start),end:void 0};Nn=qt,fe.splice(Xe,0,["enter",qt,Le[2]]),Xe++,qe++,jt=void 0,me=!0}}}return fe[Ee][1]._spread=fn,qe}function s(fe,Ee){return qe;function qe(Xe){f.call(this,fe(Xe),Xe),Ee&&Ee.call(this,Xe)}}function u(){this.stack.push({type:"fragment",children:[]})}function f(fe,Ee,qe){this.stack[this.stack.length-1].children.push(fe),this.stack.push(fe),this.tokenStack.push([Ee,qe||void 0]),fe.position={start:ia(Ee.start),end:void 0}}function h(fe){return Ee;function Ee(qe){fe&&fe.call(this,qe),d.call(this,qe)}}function d(fe,Ee){const qe=this.stack.pop(),Xe=this.tokenStack.pop();if(Xe)Xe[0].type!==fe.type&&(Ee?Ee.call(this,fe,Xe[0]):(Xe[1]||a5).call(this,fe,Xe[0]));else throw new Error("Cannot close `"+fe.type+"` ("+ws({start:fe.start,end:fe.end})+"): it’s not open");qe.position.end=ia(fe.end)}function p(){return wm(this.stack.pop())}function m(){this.data.expectingFirstListItemValue=!0}function v(fe){if(this.data.expectingFirstListItemValue){const Ee=this.stack[this.stack.length-2];Ee.start=Number.parseInt(this.sliceSerialize(fe),10),this.data.expectingFirstListItemValue=void 0}}function x(){const fe=this.resume(),Ee=this.stack[this.stack.length-1];Ee.lang=fe}function w(){const fe=this.resume(),Ee=this.stack[this.stack.length-1];Ee.meta=fe}function A(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function C(){const fe=this.resume(),Ee=this.stack[this.stack.length-1];Ee.value=fe.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function E(){const fe=this.resume(),Ee=this.stack[this.stack.length-1];Ee.value=fe.replace(/(\r?\n|\r)$/g,"")}function N(fe){const Ee=this.resume(),qe=this.stack[this.stack.length-1];qe.label=Ee,qe.identifier=Cr(this.sliceSerialize(fe)).toLowerCase()}function T(){const fe=this.resume(),Ee=this.stack[this.stack.length-1];Ee.title=fe}function B(){const fe=this.resume(),Ee=this.stack[this.stack.length-1];Ee.url=fe}function I(fe){const Ee=this.stack[this.stack.length-1];if(!Ee.depth){const qe=this.sliceSerialize(fe).length;Ee.depth=qe}}function D(){this.data.setextHeadingSlurpLineEnding=!0}function U(fe){const Ee=this.stack[this.stack.length-1];Ee.depth=this.sliceSerialize(fe).codePointAt(0)===61?1:2}function J(){this.data.setextHeadingSlurpLineEnding=void 0}function P(fe){const qe=this.stack[this.stack.length-1].children;let Xe=qe[qe.length-1];(!Xe||Xe.type!=="text")&&(Xe=zt(),Xe.position={start:ia(fe.start),end:void 0},qe.push(Xe)),this.stack.push(Xe)}function V(fe){const Ee=this.stack.pop();Ee.value+=this.sliceSerialize(fe),Ee.position.end=ia(fe.end)}function X(fe){const Ee=this.stack[this.stack.length-1];if(this.data.atHardBreak){const qe=Ee.children[Ee.children.length-1];qe.position.end=ia(fe.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(Ee.type)&&(P.call(this,fe),V.call(this,fe))}function W(){this.data.atHardBreak=!0}function ce(){const fe=this.resume(),Ee=this.stack[this.stack.length-1];Ee.value=fe}function q(){const fe=this.resume(),Ee=this.stack[this.stack.length-1];Ee.value=fe}function F(){const fe=this.resume(),Ee=this.stack[this.stack.length-1];Ee.value=fe}function L(){const fe=this.stack[this.stack.length-1];if(this.data.inReference){const Ee=this.data.referenceType||"shortcut";fe.type+="Reference",fe.referenceType=Ee,delete fe.url,delete fe.title}else delete fe.identifier,delete fe.label;this.data.referenceType=void 0}function Y(){const fe=this.stack[this.stack.length-1];if(this.data.inReference){const Ee=this.data.referenceType||"shortcut";fe.type+="Reference",fe.referenceType=Ee,delete fe.url,delete fe.title}else delete fe.identifier,delete fe.label;this.data.referenceType=void 0}function K(fe){const Ee=this.sliceSerialize(fe),qe=this.stack[this.stack.length-2];qe.label=zA(Ee),qe.identifier=Cr(Ee).toLowerCase()}function ne(){const fe=this.stack[this.stack.length-1],Ee=this.resume(),qe=this.stack[this.stack.length-1];if(this.data.inReference=!0,qe.type==="link"){const Xe=fe.children;qe.children=Xe}else qe.alt=Ee}function R(){const fe=this.resume(),Ee=this.stack[this.stack.length-1];Ee.url=fe}function j(){const fe=this.resume(),Ee=this.stack[this.stack.length-1];Ee.title=fe}function Z(){this.data.inReference=void 0}function _(){this.data.referenceType="collapsed"}function se(fe){const Ee=this.resume(),qe=this.stack[this.stack.length-1];qe.label=Ee,qe.identifier=Cr(this.sliceSerialize(fe)).toLowerCase(),this.data.referenceType="full"}function ve(fe){this.data.characterReferenceType=fe.type}function xe(fe){const Ee=this.sliceSerialize(fe),qe=this.data.characterReferenceType;let Xe;qe?(Xe=fy(Ee,qe==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Xe=Sm(Ee);const rt=this.stack[this.stack.length-1];rt.value+=Xe}function we(fe){const Ee=this.stack.pop();Ee.position.end=ia(fe.end)}function ye(fe){V.call(this,fe);const Ee=this.stack[this.stack.length-1];Ee.url=this.sliceSerialize(fe)}function ke(fe){V.call(this,fe);const Ee=this.stack[this.stack.length-1];Ee.url="mailto:"+this.sliceSerialize(fe)}function Be(){return{type:"blockquote",children:[]}}function Ue(){return{type:"code",lang:null,meta:null,value:""}}function Oe(){return{type:"inlineCode",value:""}}function _e(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Ge(){return{type:"emphasis",children:[]}}function tt(){return{type:"heading",depth:0,children:[]}}function Qe(){return{type:"break"}}function yt(){return{type:"html",value:""}}function pe(){return{type:"image",title:null,url:"",alt:null}}function Ve(){return{type:"link",title:null,url:"",children:[]}}function ut(fe){return{type:"list",ordered:fe.type==="listOrdered",start:null,spread:fe._spread,children:[]}}function bt(fe){return{type:"listItem",spread:fe._spread,checked:null,children:[]}}function wt(){return{type:"paragraph",children:[]}}function vn(){return{type:"strong",children:[]}}function zt(){return{type:"text",value:""}}function Vn(){return{type:"thematicBreak"}}}function ia(e){return{line:e.line,column:e.column,offset:e.offset}}function Sy(e,t){let n=-1;for(;++n<t.length;){const i=t[n];Array.isArray(i)?Sy(e,i):OA(e,i)}}function OA(e,t){let n;for(n in t)if(wy.call(t,n))switch(n){case"canContainEols":{const i=t[n];i&&e[n].push(...i);break}case"transforms":{const i=t[n];i&&e[n].push(...i);break}case"enter":case"exit":{const i=t[n];i&&Object.assign(e[n],i);break}}}function a5(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+ws({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+ws({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+ws({start:t.start,end:t.end})+") is still open")}function RA(e){const t=this;t.parser=n;function n(i){return DA(i,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function BA(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function LA(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
271
|
+
`}]}function HA(e,t){const n=t.value?t.value+`
|
|
272
|
+
`:"",i={},l=t.lang?t.lang.split(/\s+/):[];l.length>0&&(i.className=["language-"+l[0]]);let s={type:"element",tagName:"code",properties:i,children:[{type:"text",value:n}]};return t.meta&&(s.data={meta:t.meta}),e.patch(t,s),s=e.applyData(t,s),s={type:"element",tagName:"pre",properties:{},children:[s]},e.patch(t,s),s}function jA(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function qA(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function IA(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),l=mo(i.toLowerCase()),s=e.footnoteOrder.indexOf(i);let u,f=e.footnoteCounts.get(i);f===void 0?(f=0,e.footnoteOrder.push(i),u=e.footnoteOrder.length):u=s+1,f+=1,e.footnoteCounts.set(i,f);const h={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+l,id:n+"fnref-"+l+(f>1?"-"+f:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(u)}]};e.patch(t,h);const d={type:"element",tagName:"sup",properties:{},children:[h]};return e.patch(t,d),e.applyData(t,d)}function UA(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function FA(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function ky(e,t){const n=t.referenceType;let i="]";if(n==="collapsed"?i+="[]":n==="full"&&(i+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+i}];const l=e.all(t),s=l[0];s&&s.type==="text"?s.value="["+s.value:l.unshift({type:"text",value:"["});const u=l[l.length-1];return u&&u.type==="text"?u.value+=i:l.push({type:"text",value:i}),l}function VA(e,t){const n=String(t.identifier).toUpperCase(),i=e.definitionById.get(n);if(!i)return ky(e,t);const l={src:mo(i.url||""),alt:t.alt};i.title!==null&&i.title!==void 0&&(l.title=i.title);const s={type:"element",tagName:"img",properties:l,children:[]};return e.patch(t,s),e.applyData(t,s)}function YA(e,t){const n={src:mo(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const i={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,i),e.applyData(t,i)}function GA(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const i={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,i),e.applyData(t,i)}function $A(e,t){const n=String(t.identifier).toUpperCase(),i=e.definitionById.get(n);if(!i)return ky(e,t);const l={href:mo(i.url||"")};i.title!==null&&i.title!==void 0&&(l.title=i.title);const s={type:"element",tagName:"a",properties:l,children:e.all(t)};return e.patch(t,s),e.applyData(t,s)}function XA(e,t){const n={href:mo(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const i={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function PA(e,t,n){const i=e.all(t),l=n?ZA(n):Ey(t),s={},u=[];if(typeof t.checked=="boolean"){const p=i[0];let m;p&&p.type==="element"&&p.tagName==="p"?m=p:(m={type:"element",tagName:"p",properties:{},children:[]},i.unshift(m)),m.children.length>0&&m.children.unshift({type:"text",value:" "}),m.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let f=-1;for(;++f<i.length;){const p=i[f];(l||f!==0||p.type!=="element"||p.tagName!=="p")&&u.push({type:"text",value:`
|
|
273
|
+
`}),p.type==="element"&&p.tagName==="p"&&!l?u.push(...p.children):u.push(p)}const h=i[i.length-1];h&&(l||h.type!=="element"||h.tagName!=="p")&&u.push({type:"text",value:`
|
|
274
|
+
`});const d={type:"element",tagName:"li",properties:s,children:u};return e.patch(t,d),e.applyData(t,d)}function ZA(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let i=-1;for(;!t&&++i<n.length;)t=Ey(n[i])}return t}function Ey(e){const t=e.spread;return t??e.children.length>1}function QA(e,t){const n={},i=e.all(t);let l=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++l<i.length;){const u=i[l];if(u.type==="element"&&u.tagName==="li"&&u.properties&&Array.isArray(u.properties.className)&&u.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const s={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(i,!0)};return e.patch(t,s),e.applyData(t,s)}function KA(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function JA(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function WA(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function eC(e,t){const n=e.all(t),i=n.shift(),l=[];if(i){const u={type:"element",tagName:"thead",properties:{},children:e.wrap([i],!0)};e.patch(t.children[0],u),l.push(u)}if(n.length>0){const u={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},f=ym(t.children[1]),h=ry(t.children[t.children.length-1]);f&&h&&(u.position={start:f,end:h}),l.push(u)}const s={type:"element",tagName:"table",properties:{},children:e.wrap(l,!0)};return e.patch(t,s),e.applyData(t,s)}function tC(e,t,n){const i=n?n.children:void 0,s=(i?i.indexOf(t):1)===0?"th":"td",u=n&&n.type==="table"?n.align:void 0,f=u?u.length:t.children.length;let h=-1;const d=[];for(;++h<f;){const m=t.children[h],v={},x=u?u[h]:void 0;x&&(v.align=x);let w={type:"element",tagName:s,properties:v,children:[]};m&&(w.children=e.all(m),e.patch(m,w),w=e.applyData(m,w)),d.push(w)}const p={type:"element",tagName:"tr",properties:{},children:e.wrap(d,!0)};return e.patch(t,p),e.applyData(t,p)}function nC(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const l5=9,o5=32;function rC(e){const t=String(e),n=/\r?\n|\r/g;let i=n.exec(t),l=0;const s=[];for(;i;)s.push(s5(t.slice(l,i.index),l>0,!0),i[0]),l=i.index+i[0].length,i=n.exec(t);return s.push(s5(t.slice(l),l>0,!1)),s.join("")}function s5(e,t,n){let i=0,l=e.length;if(t){let s=e.codePointAt(i);for(;s===l5||s===o5;)i++,s=e.codePointAt(i)}if(n){let s=e.codePointAt(l-1);for(;s===l5||s===o5;)l--,s=e.codePointAt(l-1)}return l>i?e.slice(i,l):""}function iC(e,t){const n={type:"text",value:rC(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function aC(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const lC={blockquote:BA,break:LA,code:HA,delete:jA,emphasis:qA,footnoteReference:IA,heading:UA,html:FA,imageReference:VA,image:YA,inlineCode:GA,linkReference:$A,link:XA,listItem:PA,list:QA,paragraph:KA,root:JA,strong:WA,table:eC,tableCell:nC,tableRow:tC,text:iC,thematicBreak:aC,toml:N0,yaml:N0,definition:N0,footnoteDefinition:N0};function N0(){}const Ay=-1,Lc=0,ks=1,ic=2,Em=3,Am=4,Cm=5,Tm=6,Cy=7,Ty=8,oC=typeof self=="object"?self:globalThis,u5=(e,t)=>{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+e)}return new oC[e](t)},sC=(e,t)=>{const n=(l,s)=>(e.set(s,l),l),i=l=>{if(e.has(l))return e.get(l);const[s,u]=t[l];switch(s){case Lc:case Ay:return n(u,l);case ks:{const f=n([],l);for(const h of u)f.push(i(h));return f}case ic:{const f=n({},l);for(const[h,d]of u)f[i(h)]=i(d);return f}case Em:return n(new Date(u),l);case Am:{const{source:f,flags:h}=u;return n(new RegExp(f,h),l)}case Cm:{const f=n(new Map,l);for(const[h,d]of u)f.set(i(h),i(d));return f}case Tm:{const f=n(new Set,l);for(const h of u)f.add(i(h));return f}case Cy:{const{name:f,message:h}=u;return n(u5(f,h),l)}case Ty:return n(BigInt(u),l);case"BigInt":return n(Object(BigInt(u)),l);case"ArrayBuffer":return n(new Uint8Array(u).buffer,u);case"DataView":{const{buffer:f}=new Uint8Array(u);return n(new DataView(f),u)}}return n(u5(s,u),l)};return i},c5=e=>sC(new Map,e)(0),Fl="",{toString:uC}={},{keys:cC}=Object,ms=e=>{const t=typeof e;if(t!=="object"||!e)return[Lc,t];const n=uC.call(e).slice(8,-1);switch(n){case"Array":return[ks,Fl];case"Object":return[ic,Fl];case"Date":return[Em,Fl];case"RegExp":return[Am,Fl];case"Map":return[Cm,Fl];case"Set":return[Tm,Fl];case"DataView":return[ks,n]}return n.includes("Array")?[ks,n]:n.includes("Error")?[Cy,n]:[ic,n]},D0=([e,t])=>e===Lc&&(t==="function"||t==="symbol"),fC=(e,t,n,i)=>{const l=(u,f)=>{const h=i.push(u)-1;return n.set(f,h),h},s=u=>{if(n.has(u))return n.get(u);let[f,h]=ms(u);switch(f){case Lc:{let p=u;switch(h){case"bigint":f=Ty,p=u.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+h);p=null;break;case"undefined":return l([Ay],u)}return l([f,p],u)}case ks:{if(h){let v=u;return h==="DataView"?v=new Uint8Array(u.buffer):h==="ArrayBuffer"&&(v=new Uint8Array(u)),l([h,[...v]],u)}const p=[],m=l([f,p],u);for(const v of u)p.push(s(v));return m}case ic:{if(h)switch(h){case"BigInt":return l([h,u.toString()],u);case"Boolean":case"Number":case"String":return l([h,u.valueOf()],u)}if(t&&"toJSON"in u)return s(u.toJSON());const p=[],m=l([f,p],u);for(const v of cC(u))(e||!D0(ms(u[v])))&&p.push([s(v),s(u[v])]);return m}case Em:return l([f,u.toISOString()],u);case Am:{const{source:p,flags:m}=u;return l([f,{source:p,flags:m}],u)}case Cm:{const p=[],m=l([f,p],u);for(const[v,x]of u)(e||!(D0(ms(v))||D0(ms(x))))&&p.push([s(v),s(x)]);return m}case Tm:{const p=[],m=l([f,p],u);for(const v of u)(e||!D0(ms(v)))&&p.push(s(v));return m}}const{message:d}=u;return l([f,{name:h,message:d}],u)};return s},f5=(e,{json:t,lossy:n}={})=>{const i=[];return fC(!(t||n),!!t,new Map,i)(e),i},ac=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?c5(f5(e,t)):structuredClone(e):(e,t)=>c5(f5(e,t));function hC(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function dC(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function mC(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||hC,i=e.options.footnoteBackLabel||dC,l=e.options.footnoteLabel||"Footnotes",s=e.options.footnoteLabelTagName||"h2",u=e.options.footnoteLabelProperties||{className:["sr-only"]},f=[];let h=-1;for(;++h<e.footnoteOrder.length;){const d=e.footnoteById.get(e.footnoteOrder[h]);if(!d)continue;const p=e.all(d),m=String(d.identifier).toUpperCase(),v=mo(m.toLowerCase());let x=0;const w=[],A=e.footnoteCounts.get(m);for(;A!==void 0&&++x<=A;){w.length>0&&w.push({type:"text",value:" "});let N=typeof n=="string"?n:n(h,x);typeof N=="string"&&(N={type:"text",value:N}),w.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+v+(x>1?"-"+x:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(h,x),className:["data-footnote-backref"]},children:Array.isArray(N)?N:[N]})}const C=p[p.length-1];if(C&&C.type==="element"&&C.tagName==="p"){const N=C.children[C.children.length-1];N&&N.type==="text"?N.value+=" ":C.children.push({type:"text",value:" "}),C.children.push(...w)}else p.push(...w);const E={type:"element",tagName:"li",properties:{id:t+"fn-"+v},children:e.wrap(p,!0)};e.patch(d,E),f.push(E)}if(f.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...ac(u),id:"footnote-label"},children:[{type:"text",value:l}]},{type:"text",value:`
|
|
275
|
+
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(f,!0)},{type:"text",value:`
|
|
276
|
+
`}]}}function Mm(e,t,n,i){let l,s,u;typeof t=="function"&&typeof n!="function"?(s=void 0,u=t,l=n):(s=t,u=n,l=i),gm(e,s,f,l);function f(h,d){const p=d[d.length-1],m=p?p.children.indexOf(h):void 0;return u(h,m,p)}}const _1={}.hasOwnProperty,pC={};function gC(e,t){const n=t||pC,i=new Map,l=new Map,s=new Map,u={...lC,...n.handlers},f={all:d,applyData:vC,definitionById:i,footnoteById:l,footnoteCounts:s,footnoteOrder:[],handlers:u,one:h,options:n,patch:yC,wrap:bC};return Mm(e,function(p){if(p.type==="definition"||p.type==="footnoteDefinition"){const m=p.type==="definition"?i:l,v=String(p.identifier).toUpperCase();m.has(v)||m.set(v,p)}}),f;function h(p,m){const v=p.type,x=f.handlers[v];if(_1.call(f.handlers,v)&&x)return x(f,p,m);if(f.options.passThrough&&f.options.passThrough.includes(v)){if("children"in p){const{children:A,...C}=p,E=ac(C);return E.children=f.all(p),E}return ac(p)}return(f.options.unknownHandler||xC)(f,p,m)}function d(p){const m=[];if("children"in p){const v=p.children;let x=-1;for(;++x<v.length;){const w=f.one(v[x],p);if(w){if(x&&v[x-1].type==="break"&&(!Array.isArray(w)&&w.type==="text"&&(w.value=h5(w.value)),!Array.isArray(w)&&w.type==="element")){const A=w.children[0];A&&A.type==="text"&&(A.value=h5(A.value))}Array.isArray(w)?m.push(...w):m.push(w)}}}return m}}function yC(e,t){e.position&&(t.position=hk(e))}function vC(e,t){let n=t;if(e&&e.data){const i=e.data.hName,l=e.data.hChildren,s=e.data.hProperties;if(typeof i=="string")if(n.type==="element")n.tagName=i;else{const u="children"in n?n.children:[n];n={type:"element",tagName:i,properties:{},children:u}}n.type==="element"&&s&&Object.assign(n.properties,ac(s)),"children"in n&&n.children&&l!==null&&l!==void 0&&(n.children=l)}return n}function xC(e,t){const n=t.data||{},i="value"in t&&!(_1.call(n,"hProperties")||_1.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function bC(e,t){const n=[];let i=-1;for(t&&n.push({type:"text",value:`
|
|
277
|
+
`});++i<e.length;)i&&n.push({type:"text",value:`
|
|
278
|
+
`}),n.push(e[i]);return t&&e.length>0&&n.push({type:"text",value:`
|
|
279
|
+
`}),n}function h5(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function d5(e,t){const n=gC(e,t),i=n.one(e,void 0),l=mC(n),s=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return l&&s.children.push({type:"text",value:`
|
|
280
|
+
`},l),s}function wC(e,t){return e&&"run"in e?async function(n,i){const l=d5(n,{file:i,...t});await e.run(l,i)}:function(n,i){return d5(n,{file:i,...e||t})}}function m5(e){if(e)throw e}var Rd,p5;function SC(){if(p5)return Rd;p5=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,l=function(d){return typeof Array.isArray=="function"?Array.isArray(d):t.call(d)==="[object Array]"},s=function(d){if(!d||t.call(d)!=="[object Object]")return!1;var p=e.call(d,"constructor"),m=d.constructor&&d.constructor.prototype&&e.call(d.constructor.prototype,"isPrototypeOf");if(d.constructor&&!p&&!m)return!1;var v;for(v in d);return typeof v>"u"||e.call(d,v)},u=function(d,p){n&&p.name==="__proto__"?n(d,p.name,{enumerable:!0,configurable:!0,value:p.newValue,writable:!0}):d[p.name]=p.newValue},f=function(d,p){if(p==="__proto__")if(e.call(d,p)){if(i)return i(d,p).value}else return;return d[p]};return Rd=function h(){var d,p,m,v,x,w,A=arguments[0],C=1,E=arguments.length,N=!1;for(typeof A=="boolean"&&(N=A,A=arguments[1]||{},C=2),(A==null||typeof A!="object"&&typeof A!="function")&&(A={});C<E;++C)if(d=arguments[C],d!=null)for(p in d)m=f(A,p),v=f(d,p),A!==v&&(N&&v&&(s(v)||(x=l(v)))?(x?(x=!1,w=m&&l(m)?m:[]):w=m&&s(m)?m:{},u(A,{name:p,newValue:h(N,w,v)})):typeof v<"u"&&u(A,{name:p,newValue:v}));return A},Rd}var kC=SC();const Bd=vc(kC);function O1(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function EC(){const e=[],t={run:n,use:i};return t;function n(...l){let s=-1;const u=l.pop();if(typeof u!="function")throw new TypeError("Expected function as last argument, not "+u);f(null,...l);function f(h,...d){const p=e[++s];let m=-1;if(h){u(h);return}for(;++m<l.length;)(d[m]===null||d[m]===void 0)&&(d[m]=l[m]);l=d,p?AC(p,f)(...d):u(null,...d)}}function i(l){if(typeof l!="function")throw new TypeError("Expected `middelware` to be a function, not "+l);return e.push(l),t}}function AC(e,t){let n;return i;function i(...u){const f=e.length>u.length;let h;f&&u.push(l);try{h=e.apply(this,u)}catch(d){const p=d;if(f&&n)throw p;return l(p)}f||(h&&h.then&&typeof h.then=="function"?h.then(s,l):h instanceof Error?l(h):s(h))}function l(u,...f){n||(n=!0,t(u,...f))}function s(u){l(null,u)}}const Hr={basename:CC,dirname:TC,extname:MC,join:zC,sep:"/"};function CC(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Ps(e);let n=0,i=-1,l=e.length,s;if(t===void 0||t.length===0||t.length>e.length){for(;l--;)if(e.codePointAt(l)===47){if(s){n=l+1;break}}else i<0&&(s=!0,i=l+1);return i<0?"":e.slice(n,i)}if(t===e)return"";let u=-1,f=t.length-1;for(;l--;)if(e.codePointAt(l)===47){if(s){n=l+1;break}}else u<0&&(s=!0,u=l+1),f>-1&&(e.codePointAt(l)===t.codePointAt(f--)?f<0&&(i=l):(f=-1,i=u));return n===i?i=u:i<0&&(i=e.length),e.slice(n,i)}function TC(e){if(Ps(e),e.length===0)return".";let t=-1,n=e.length,i;for(;--n;)if(e.codePointAt(n)===47){if(i){t=n;break}}else i||(i=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function MC(e){Ps(e);let t=e.length,n=-1,i=0,l=-1,s=0,u;for(;t--;){const f=e.codePointAt(t);if(f===47){if(u){i=t+1;break}continue}n<0&&(u=!0,n=t+1),f===46?l<0?l=t:s!==1&&(s=1):l>-1&&(s=-1)}return l<0||n<0||s===0||s===1&&l===n-1&&l===i+1?"":e.slice(l,n)}function zC(...e){let t=-1,n;for(;++t<e.length;)Ps(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":NC(n)}function NC(e){Ps(e);const t=e.codePointAt(0)===47;let n=DC(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function DC(e,t){let n="",i=0,l=-1,s=0,u=-1,f,h;for(;++u<=e.length;){if(u<e.length)f=e.codePointAt(u);else{if(f===47)break;f=47}if(f===47){if(!(l===u-1||s===1))if(l!==u-1&&s===2){if(n.length<2||i!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(h=n.lastIndexOf("/"),h!==n.length-1){h<0?(n="",i=0):(n=n.slice(0,h),i=n.length-1-n.lastIndexOf("/")),l=u,s=0;continue}}else if(n.length>0){n="",i=0,l=u,s=0;continue}}t&&(n=n.length>0?n+"/..":"..",i=2)}else n.length>0?n+="/"+e.slice(l+1,u):n=e.slice(l+1,u),i=u-l-1;l=u,s=0}else f===46&&s>-1?s++:s=-1}return n}function Ps(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const _C={cwd:OC};function OC(){return"/"}function R1(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function RC(e){if(typeof e=="string")e=new URL(e);else if(!R1(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return BC(e)}function BC(e){if(e.hostname!==""){const i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const i=t.codePointAt(n+2);if(i===70||i===102){const l=new TypeError("File URL path must not include encoded / characters");throw l.code="ERR_INVALID_FILE_URL_PATH",l}}return decodeURIComponent(t)}const Ld=["history","path","basename","stem","extname","dirname"];class My{constructor(t){let n;t?R1(t)?n={path:t}:typeof t=="string"||LC(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":_C.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<Ld.length;){const s=Ld[i];s in n&&n[s]!==void 0&&n[s]!==null&&(this[s]=s==="history"?[...n[s]]:n[s])}let l;for(l in n)Ld.includes(l)||(this[l]=n[l])}get basename(){return typeof this.path=="string"?Hr.basename(this.path):void 0}set basename(t){jd(t,"basename"),Hd(t,"basename"),this.path=Hr.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Hr.dirname(this.path):void 0}set dirname(t){g5(this.basename,"dirname"),this.path=Hr.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Hr.extname(this.path):void 0}set extname(t){if(Hd(t,"extname"),g5(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Hr.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){R1(t)&&(t=RC(t)),jd(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Hr.basename(this.path,this.extname):void 0}set stem(t){jd(t,"stem"),Hd(t,"stem"),this.path=Hr.join(this.dirname||"",t+(this.extname||""))}fail(t,n,i){const l=this.message(t,n,i);throw l.fatal=!0,l}info(t,n,i){const l=this.message(t,n,i);return l.fatal=void 0,l}message(t,n,i){const l=new kn(t,n,i);return this.path&&(l.name=this.path+":"+l.name,l.file=this.path),l.fatal=!1,this.messages.push(l),l}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Hd(e,t){if(e&&e.includes(Hr.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Hr.sep+"`")}function jd(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function g5(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function LC(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const HC=(function(e){const i=this.constructor.prototype,l=i[e],s=function(){return l.apply(s,arguments)};return Object.setPrototypeOf(s,i),s}),jC={}.hasOwnProperty;class zm extends HC{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=EC()}copy(){const t=new zm;let n=-1;for(;++n<this.attachers.length;){const i=this.attachers[n];t.use(...i)}return t.data(Bd(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Ud("data",this.frozen),this.namespace[t]=n,this):jC.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Ud("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...i]=this.attachers[this.freezeIndex];if(i[0]===!1)continue;i[0]===!0&&(i[0]=void 0);const l=n.call(t,...i);typeof l=="function"&&this.transformers.use(l)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=_0(t),i=this.parser||this.Parser;return qd("parse",i),i(String(n),n)}process(t,n){const i=this;return this.freeze(),qd("process",this.parser||this.Parser),Id("process",this.compiler||this.Compiler),n?l(void 0,n):new Promise(l);function l(s,u){const f=_0(t),h=i.parse(f);i.run(h,f,function(p,m,v){if(p||!m||!v)return d(p);const x=m,w=i.stringify(x,v);UC(w)?v.value=w:v.result=w,d(p,v)});function d(p,m){p||!m?u(p):s?s(m):n(void 0,m)}}}processSync(t){let n=!1,i;return this.freeze(),qd("processSync",this.parser||this.Parser),Id("processSync",this.compiler||this.Compiler),this.process(t,l),v5("processSync","process",n),i;function l(s,u){n=!0,m5(s),i=u}}run(t,n,i){y5(t),this.freeze();const l=this.transformers;return!i&&typeof n=="function"&&(i=n,n=void 0),i?s(void 0,i):new Promise(s);function s(u,f){const h=_0(n);l.run(t,h,d);function d(p,m,v){const x=m||t;p?f(p):u?u(x):i(void 0,x,v)}}}runSync(t,n){let i=!1,l;return this.run(t,n,s),v5("runSync","run",i),l;function s(u,f){m5(u),l=f,i=!0}}stringify(t,n){this.freeze();const i=_0(n),l=this.compiler||this.Compiler;return Id("stringify",l),y5(t),l(t,i)}use(t,...n){const i=this.attachers,l=this.namespace;if(Ud("use",this.frozen),t!=null)if(typeof t=="function")h(t,n);else if(typeof t=="object")Array.isArray(t)?f(t):u(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function s(d){if(typeof d=="function")h(d,[]);else if(typeof d=="object")if(Array.isArray(d)){const[p,...m]=d;h(p,m)}else u(d);else throw new TypeError("Expected usable value, not `"+d+"`")}function u(d){if(!("plugins"in d)&&!("settings"in d))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");f(d.plugins),d.settings&&(l.settings=Bd(!0,l.settings,d.settings))}function f(d){let p=-1;if(d!=null)if(Array.isArray(d))for(;++p<d.length;){const m=d[p];s(m)}else throw new TypeError("Expected a list of plugins, not `"+d+"`")}function h(d,p){let m=-1,v=-1;for(;++m<i.length;)if(i[m][0]===d){v=m;break}if(v===-1)i.push([d,...p]);else if(p.length>0){let[x,...w]=p;const A=i[v][1];O1(A)&&O1(x)&&(x=Bd(!0,A,x)),i[v]=[d,x,...w]}}}}const qC=new zm().freeze();function qd(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Id(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Ud(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function y5(e){if(!O1(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function v5(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function _0(e){return IC(e)?e:new My(e)}function IC(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function UC(e){return typeof e=="string"||FC(e)}function FC(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const VC="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",x5=[],b5={allowDangerousHtml:!0},YC=/^(https?|ircs?|mailto|xmpp)$/i,GC=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function $C(e){const t=XC(e),n=PC(e);return ZC(t.runSync(t.parse(n),n),e)}function XC(e){const t=e.rehypePlugins||x5,n=e.remarkPlugins||x5,i=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...b5}:b5;return qC().use(RA).use(n).use(wC,i).use(t)}function PC(e){const t=e.children||"",n=new My;return typeof t=="string"&&(n.value=t),n}function ZC(e,t){const n=t.allowedElements,i=t.allowElement,l=t.components,s=t.disallowedElements,u=t.skipHtml,f=t.unwrapDisallowed,h=t.urlTransform||QC;for(const p of GC)Object.hasOwn(t,p.from)&&(""+p.from+(p.to?"use `"+p.to+"` instead":"remove it")+VC+p.id,void 0);return Mm(e,d),yk(e,{Fragment:z.Fragment,components:l,ignoreInvalidStyle:!0,jsx:z.jsx,jsxs:z.jsxs,passKeys:!0,passNode:!0});function d(p,m,v){if(p.type==="raw"&&v&&typeof m=="number")return u?v.children.splice(m,1):v.children[m]={type:"text",value:p.value},m;if(p.type==="element"){let x;for(x in Dd)if(Object.hasOwn(Dd,x)&&Object.hasOwn(p.properties,x)){const w=p.properties[x],A=Dd[x];(A===null||A.includes(p.tagName))&&(p.properties[x]=h(String(w||""),x,p))}}if(p.type==="element"){let x=n?!n.includes(p.tagName):s?s.includes(p.tagName):!1;if(!x&&i&&typeof m=="number"&&(x=!i(p,m,v)),x&&v&&typeof m=="number")return f&&p.children?v.children.splice(m,1,...p.children):v.children.splice(m,1),m}}}function QC(e){const t=e.indexOf(":"),n=e.indexOf("?"),i=e.indexOf("#"),l=e.indexOf("/");return t===-1||l!==-1&&t>l||n!==-1&&t>n||i!==-1&&t>i||YC.test(e.slice(0,t))?e:""}function w5(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let i=0,l=n.indexOf(t);for(;l!==-1;)i++,l=n.indexOf(t,l+t.length);return i}function KC(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function JC(e,t,n){const l=Ys((n||{}).ignore||[]),s=WC(t);let u=-1;for(;++u<s.length;)gm(e,"text",f);function f(d,p){let m=-1,v;for(;++m<p.length;){const x=p[m],w=v?v.children:void 0;if(l(x,w?w.indexOf(x):void 0,v))return;v=x}if(v)return h(d,p)}function h(d,p){const m=p[p.length-1],v=s[u][0],x=s[u][1];let w=0;const C=m.children.indexOf(d);let E=!1,N=[];v.lastIndex=0;let T=v.exec(d.value);for(;T;){const B=T.index,I={index:T.index,input:T.input,stack:[...p,d]};let D=x(...T,I);if(typeof D=="string"&&(D=D.length>0?{type:"text",value:D}:void 0),D===!1?v.lastIndex=B+1:(w!==B&&N.push({type:"text",value:d.value.slice(w,B)}),Array.isArray(D)?N.push(...D):D&&N.push(D),w=B+T[0].length,E=!0),!v.global)break;T=v.exec(d.value)}return E?(w<d.value.length&&N.push({type:"text",value:d.value.slice(w)}),m.children.splice(C,1,...N)):N=[d],C+N.length}}function WC(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let i=-1;for(;++i<n.length;){const l=n[i];t.push([eT(l[0]),tT(l[1])])}return t}function eT(e){return typeof e=="string"?new RegExp(KC(e),"g"):e}function tT(e){return typeof e=="function"?e:function(){return e}}const Fd="phrasing",Vd=["autolink","link","image","label"];function nT(){return{transforms:[uT],enter:{literalAutolink:iT,literalAutolinkEmail:Yd,literalAutolinkHttp:Yd,literalAutolinkWww:Yd},exit:{literalAutolink:sT,literalAutolinkEmail:oT,literalAutolinkHttp:aT,literalAutolinkWww:lT}}}function rT(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Fd,notInConstruct:Vd},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Fd,notInConstruct:Vd},{character:":",before:"[ps]",after:"\\/",inConstruct:Fd,notInConstruct:Vd}]}}function iT(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Yd(e){this.config.enter.autolinkProtocol.call(this,e)}function aT(e){this.config.exit.autolinkProtocol.call(this,e)}function lT(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function oT(e){this.config.exit.autolinkEmail.call(this,e)}function sT(e){this.exit(e)}function uT(e){JC(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,cT],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),fT]],{ignore:["link","linkReference"]})}function cT(e,t,n,i,l){let s="";if(!zy(l)||(/^w/i.test(t)&&(n=t+n,t="",s="http://"),!hT(n)))return!1;const u=dT(n+i);if(!u[0])return!1;const f={type:"link",title:null,url:s+t+u[0],children:[{type:"text",value:t+u[0]}]};return u[1]?[f,{type:"text",value:u[1]}]:f}function fT(e,t,n,i){return!zy(i,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function hT(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function dT(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],i=n.indexOf(")");const l=w5(e,"(");let s=w5(e,")");for(;i!==-1&&l>s;)e+=n.slice(0,i+1),n=n.slice(i+1),i=n.indexOf(")"),s++;return[e,n]}function zy(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Xa(n)||Rc(n))&&(!t||n!==47)}Ny.peek=ST;function mT(){this.buffer()}function pT(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function gT(){this.buffer()}function yT(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function vT(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Cr(this.sliceSerialize(e)).toLowerCase(),n.label=t}function xT(e){this.exit(e)}function bT(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Cr(this.sliceSerialize(e)).toLowerCase(),n.label=t}function wT(e){this.exit(e)}function ST(){return"["}function Ny(e,t,n,i){const l=n.createTracker(i);let s=l.move("[^");const u=n.enter("footnoteReference"),f=n.enter("reference");return s+=l.move(n.safe(n.associationId(e),{after:"]",before:s})),f(),u(),s+=l.move("]"),s}function kT(){return{enter:{gfmFootnoteCallString:mT,gfmFootnoteCall:pT,gfmFootnoteDefinitionLabelString:gT,gfmFootnoteDefinition:yT},exit:{gfmFootnoteCallString:vT,gfmFootnoteCall:xT,gfmFootnoteDefinitionLabelString:bT,gfmFootnoteDefinition:wT}}}function ET(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:Ny},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(i,l,s,u){const f=s.createTracker(u);let h=f.move("[^");const d=s.enter("footnoteDefinition"),p=s.enter("label");return h+=f.move(s.safe(s.associationId(i),{before:h,after:"]"})),p(),h+=f.move("]:"),i.children&&i.children.length>0&&(f.shift(4),h+=f.move((t?`
|
|
281
|
+
`:" ")+s.indentLines(s.containerFlow(i,f.current()),t?Dy:AT))),d(),h}}function AT(e,t,n){return t===0?e:Dy(e,t,n)}function Dy(e,t,n){return(n?"":" ")+e}const CT=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];_y.peek=DT;function TT(){return{canContainEols:["delete"],enter:{strikethrough:zT},exit:{strikethrough:NT}}}function MT(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:CT}],handlers:{delete:_y}}}function zT(e){this.enter({type:"delete",children:[]},e)}function NT(e){this.exit(e)}function _y(e,t,n,i){const l=n.createTracker(i),s=n.enter("strikethrough");let u=l.move("~~");return u+=n.containerPhrasing(e,{...l.current(),before:u,after:"~"}),u+=l.move("~~"),s(),u}function DT(){return"~"}function _T(e){return e.length}function OT(e,t){const n=t||{},i=(n.align||[]).concat(),l=n.stringLength||_T,s=[],u=[],f=[],h=[];let d=0,p=-1;for(;++p<e.length;){const A=[],C=[];let E=-1;for(e[p].length>d&&(d=e[p].length);++E<e[p].length;){const N=RT(e[p][E]);if(n.alignDelimiters!==!1){const T=l(N);C[E]=T,(h[E]===void 0||T>h[E])&&(h[E]=T)}A.push(N)}u[p]=A,f[p]=C}let m=-1;if(typeof i=="object"&&"length"in i)for(;++m<d;)s[m]=S5(i[m]);else{const A=S5(i);for(;++m<d;)s[m]=A}m=-1;const v=[],x=[];for(;++m<d;){const A=s[m];let C="",E="";A===99?(C=":",E=":"):A===108?C=":":A===114&&(E=":");let N=n.alignDelimiters===!1?1:Math.max(1,h[m]-C.length-E.length);const T=C+"-".repeat(N)+E;n.alignDelimiters!==!1&&(N=C.length+N+E.length,N>h[m]&&(h[m]=N),x[m]=N),v[m]=T}u.splice(1,0,v),f.splice(1,0,x),p=-1;const w=[];for(;++p<u.length;){const A=u[p],C=f[p];m=-1;const E=[];for(;++m<d;){const N=A[m]||"";let T="",B="";if(n.alignDelimiters!==!1){const I=h[m]-(C[m]||0),D=s[m];D===114?T=" ".repeat(I):D===99?I%2?(T=" ".repeat(I/2+.5),B=" ".repeat(I/2-.5)):(T=" ".repeat(I/2),B=T):B=" ".repeat(I)}n.delimiterStart!==!1&&!m&&E.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&N==="")&&(n.delimiterStart!==!1||m)&&E.push(" "),n.alignDelimiters!==!1&&E.push(T),E.push(N),n.alignDelimiters!==!1&&E.push(B),n.padding!==!1&&E.push(" "),(n.delimiterEnd!==!1||m!==d-1)&&E.push("|")}w.push(n.delimiterEnd===!1?E.join("").replace(/ +$/,""):E.join(""))}return w.join(`
|
|
282
|
+
`)}function RT(e){return e==null?"":String(e)}function S5(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function BT(e,t,n,i){const l=n.enter("blockquote"),s=n.createTracker(i);s.move("> "),s.shift(2);const u=n.indentLines(n.containerFlow(e,s.current()),LT);return l(),u}function LT(e,t,n){return">"+(n?"":" ")+e}function HT(e,t){return k5(e,t.inConstruct,!0)&&!k5(e,t.notInConstruct,!1)}function k5(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let i=-1;for(;++i<t.length;)if(e.includes(t[i]))return!0;return!1}function E5(e,t,n,i){let l=-1;for(;++l<n.unsafe.length;)if(n.unsafe[l].character===`
|
|
283
|
+
`&&HT(n.stack,n.unsafe[l]))return/[ \t]/.test(i.before)?"":" ";return`\\
|
|
284
|
+
`}function Oy(e,t){const n=String(e);let i=n.indexOf(t),l=i,s=0,u=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;i!==-1;)i===l?++s>u&&(u=s):s=1,l=i+t.length,i=n.indexOf(t,l);return u}function jT(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function qT(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function IT(e,t,n,i){const l=qT(n),s=e.value||"",u=l==="`"?"GraveAccent":"Tilde";if(jT(e,n)){const m=n.enter("codeIndented"),v=n.indentLines(s,UT);return m(),v}const f=n.createTracker(i),h=l.repeat(Math.max(Oy(s,l)+1,3)),d=n.enter("codeFenced");let p=f.move(h);if(e.lang){const m=n.enter(`codeFencedLang${u}`);p+=f.move(n.safe(e.lang,{before:p,after:" ",encode:["`"],...f.current()})),m()}if(e.lang&&e.meta){const m=n.enter(`codeFencedMeta${u}`);p+=f.move(" "),p+=f.move(n.safe(e.meta,{before:p,after:`
|
|
285
|
+
`,encode:["`"],...f.current()})),m()}return p+=f.move(`
|
|
286
|
+
`),s&&(p+=f.move(s+`
|
|
287
|
+
`)),p+=f.move(h),d(),p}function UT(e,t,n){return(n?"":" ")+e}function Nm(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function FT(e,t,n,i){const l=Nm(n),s=l==='"'?"Quote":"Apostrophe",u=n.enter("definition");let f=n.enter("label");const h=n.createTracker(i);let d=h.move("[");return d+=h.move(n.safe(n.associationId(e),{before:d,after:"]",...h.current()})),d+=h.move("]: "),f(),!e.url||/[\0- \u007F]/.test(e.url)?(f=n.enter("destinationLiteral"),d+=h.move("<"),d+=h.move(n.safe(e.url,{before:d,after:">",...h.current()})),d+=h.move(">")):(f=n.enter("destinationRaw"),d+=h.move(n.safe(e.url,{before:d,after:e.title?" ":`
|
|
288
|
+
`,...h.current()}))),f(),e.title&&(f=n.enter(`title${s}`),d+=h.move(" "+l),d+=h.move(n.safe(e.title,{before:d,after:l,...h.current()})),d+=h.move(l),f()),u(),d}function VT(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function Ns(e){return"&#x"+e.toString(16).toUpperCase()+";"}function lc(e,t,n){const i=eo(e),l=eo(t);return i===void 0?l===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:l===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:i===1?l===void 0?{inside:!1,outside:!1}:l===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:l===void 0?{inside:!1,outside:!1}:l===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Ry.peek=YT;function Ry(e,t,n,i){const l=VT(n),s=n.enter("emphasis"),u=n.createTracker(i),f=u.move(l);let h=u.move(n.containerPhrasing(e,{after:l,before:f,...u.current()}));const d=h.charCodeAt(0),p=lc(i.before.charCodeAt(i.before.length-1),d,l);p.inside&&(h=Ns(d)+h.slice(1));const m=h.charCodeAt(h.length-1),v=lc(i.after.charCodeAt(0),m,l);v.inside&&(h=h.slice(0,-1)+Ns(m));const x=u.move(l);return s(),n.attentionEncodeSurroundingInfo={after:v.outside,before:p.outside},f+h+x}function YT(e,t,n){return n.options.emphasis||"*"}function GT(e,t){let n=!1;return Mm(e,function(i){if("value"in i&&/\r?\n|\r/.test(i.value)||i.type==="break")return n=!0,M1}),!!((!e.depth||e.depth<3)&&wm(e)&&(t.options.setext||n))}function $T(e,t,n,i){const l=Math.max(Math.min(6,e.depth||1),1),s=n.createTracker(i);if(GT(e,n)){const p=n.enter("headingSetext"),m=n.enter("phrasing"),v=n.containerPhrasing(e,{...s.current(),before:`
|
|
289
|
+
`,after:`
|
|
290
|
+
`});return m(),p(),v+`
|
|
291
|
+
`+(l===1?"=":"-").repeat(v.length-(Math.max(v.lastIndexOf("\r"),v.lastIndexOf(`
|
|
292
|
+
`))+1))}const u="#".repeat(l),f=n.enter("headingAtx"),h=n.enter("phrasing");s.move(u+" ");let d=n.containerPhrasing(e,{before:"# ",after:`
|
|
293
|
+
`,...s.current()});return/^[\t ]/.test(d)&&(d=Ns(d.charCodeAt(0))+d.slice(1)),d=d?u+" "+d:u,n.options.closeAtx&&(d+=" "+u),h(),f(),d}By.peek=XT;function By(e){return e.value||""}function XT(){return"<"}Ly.peek=PT;function Ly(e,t,n,i){const l=Nm(n),s=l==='"'?"Quote":"Apostrophe",u=n.enter("image");let f=n.enter("label");const h=n.createTracker(i);let d=h.move("![");return d+=h.move(n.safe(e.alt,{before:d,after:"]",...h.current()})),d+=h.move("]("),f(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(f=n.enter("destinationLiteral"),d+=h.move("<"),d+=h.move(n.safe(e.url,{before:d,after:">",...h.current()})),d+=h.move(">")):(f=n.enter("destinationRaw"),d+=h.move(n.safe(e.url,{before:d,after:e.title?" ":")",...h.current()}))),f(),e.title&&(f=n.enter(`title${s}`),d+=h.move(" "+l),d+=h.move(n.safe(e.title,{before:d,after:l,...h.current()})),d+=h.move(l),f()),d+=h.move(")"),u(),d}function PT(){return"!"}Hy.peek=ZT;function Hy(e,t,n,i){const l=e.referenceType,s=n.enter("imageReference");let u=n.enter("label");const f=n.createTracker(i);let h=f.move("![");const d=n.safe(e.alt,{before:h,after:"]",...f.current()});h+=f.move(d+"]["),u();const p=n.stack;n.stack=[],u=n.enter("reference");const m=n.safe(n.associationId(e),{before:h,after:"]",...f.current()});return u(),n.stack=p,s(),l==="full"||!d||d!==m?h+=f.move(m+"]"):l==="shortcut"?h=h.slice(0,-1):h+=f.move("]"),h}function ZT(){return"!"}jy.peek=QT;function jy(e,t,n){let i=e.value||"",l="`",s=-1;for(;new RegExp("(^|[^`])"+l+"([^`]|$)").test(i);)l+="`";for(/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^`|`$/.test(i))&&(i=" "+i+" ");++s<n.unsafe.length;){const u=n.unsafe[s],f=n.compilePattern(u);let h;if(u.atBreak)for(;h=f.exec(i);){let d=h.index;i.charCodeAt(d)===10&&i.charCodeAt(d-1)===13&&d--,i=i.slice(0,d)+" "+i.slice(h.index+1)}}return l+i+l}function QT(){return"`"}function qy(e,t){const n=wm(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}Iy.peek=KT;function Iy(e,t,n,i){const l=Nm(n),s=l==='"'?"Quote":"Apostrophe",u=n.createTracker(i);let f,h;if(qy(e,n)){const p=n.stack;n.stack=[],f=n.enter("autolink");let m=u.move("<");return m+=u.move(n.containerPhrasing(e,{before:m,after:">",...u.current()})),m+=u.move(">"),f(),n.stack=p,m}f=n.enter("link"),h=n.enter("label");let d=u.move("[");return d+=u.move(n.containerPhrasing(e,{before:d,after:"](",...u.current()})),d+=u.move("]("),h(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(h=n.enter("destinationLiteral"),d+=u.move("<"),d+=u.move(n.safe(e.url,{before:d,after:">",...u.current()})),d+=u.move(">")):(h=n.enter("destinationRaw"),d+=u.move(n.safe(e.url,{before:d,after:e.title?" ":")",...u.current()}))),h(),e.title&&(h=n.enter(`title${s}`),d+=u.move(" "+l),d+=u.move(n.safe(e.title,{before:d,after:l,...u.current()})),d+=u.move(l),h()),d+=u.move(")"),f(),d}function KT(e,t,n){return qy(e,n)?"<":"["}Uy.peek=JT;function Uy(e,t,n,i){const l=e.referenceType,s=n.enter("linkReference");let u=n.enter("label");const f=n.createTracker(i);let h=f.move("[");const d=n.containerPhrasing(e,{before:h,after:"]",...f.current()});h+=f.move(d+"]["),u();const p=n.stack;n.stack=[],u=n.enter("reference");const m=n.safe(n.associationId(e),{before:h,after:"]",...f.current()});return u(),n.stack=p,s(),l==="full"||!d||d!==m?h+=f.move(m+"]"):l==="shortcut"?h=h.slice(0,-1):h+=f.move("]"),h}function JT(){return"["}function Dm(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function WT(e){const t=Dm(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function eM(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function Fy(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function tM(e,t,n,i){const l=n.enter("list"),s=n.bulletCurrent;let u=e.ordered?eM(n):Dm(n);const f=e.ordered?u==="."?")":".":WT(n);let h=t&&n.bulletLastUsed?u===n.bulletLastUsed:!1;if(!e.ordered){const p=e.children?e.children[0]:void 0;if((u==="*"||u==="-")&&p&&(!p.children||!p.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(h=!0),Fy(n)===u&&p){let m=-1;for(;++m<e.children.length;){const v=e.children[m];if(v&&v.type==="listItem"&&v.children&&v.children[0]&&v.children[0].type==="thematicBreak"){h=!0;break}}}}h&&(u=f),n.bulletCurrent=u;const d=n.containerFlow(e,i);return n.bulletLastUsed=u,n.bulletCurrent=s,l(),d}function nM(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function rM(e,t,n,i){const l=nM(n);let s=n.bulletCurrent||Dm(n);t&&t.type==="list"&&t.ordered&&(s=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+s);let u=s.length+1;(l==="tab"||l==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(u=Math.ceil(u/4)*4);const f=n.createTracker(i);f.move(s+" ".repeat(u-s.length)),f.shift(u);const h=n.enter("listItem"),d=n.indentLines(n.containerFlow(e,f.current()),p);return h(),d;function p(m,v,x){return v?(x?"":" ".repeat(u))+m:(x?s:s+" ".repeat(u-s.length))+m}}function iM(e,t,n,i){const l=n.enter("paragraph"),s=n.enter("phrasing"),u=n.containerPhrasing(e,i);return s(),l(),u}const aM=Ys(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function lM(e,t,n,i){return(e.children.some(function(u){return aM(u)})?n.containerPhrasing:n.containerFlow).call(n,e,i)}function oM(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Vy.peek=sM;function Vy(e,t,n,i){const l=oM(n),s=n.enter("strong"),u=n.createTracker(i),f=u.move(l+l);let h=u.move(n.containerPhrasing(e,{after:l,before:f,...u.current()}));const d=h.charCodeAt(0),p=lc(i.before.charCodeAt(i.before.length-1),d,l);p.inside&&(h=Ns(d)+h.slice(1));const m=h.charCodeAt(h.length-1),v=lc(i.after.charCodeAt(0),m,l);v.inside&&(h=h.slice(0,-1)+Ns(m));const x=u.move(l+l);return s(),n.attentionEncodeSurroundingInfo={after:v.outside,before:p.outside},f+h+x}function sM(e,t,n){return n.options.strong||"*"}function uM(e,t,n,i){return n.safe(e.value,i)}function cM(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function fM(e,t,n){const i=(Fy(n)+(n.options.ruleSpaces?" ":"")).repeat(cM(n));return n.options.ruleSpaces?i.slice(0,-1):i}const Yy={blockquote:BT,break:E5,code:IT,definition:FT,emphasis:Ry,hardBreak:E5,heading:$T,html:By,image:Ly,imageReference:Hy,inlineCode:jy,link:Iy,linkReference:Uy,list:tM,listItem:rM,paragraph:iM,root:lM,strong:Vy,text:uM,thematicBreak:fM};function hM(){return{enter:{table:dM,tableData:A5,tableHeader:A5,tableRow:pM},exit:{codeText:gM,table:mM,tableData:Gd,tableHeader:Gd,tableRow:Gd}}}function dM(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function mM(e){this.exit(e),this.data.inTable=void 0}function pM(e){this.enter({type:"tableRow",children:[]},e)}function Gd(e){this.exit(e)}function A5(e){this.enter({type:"tableCell",children:[]},e)}function gM(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,yM));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function yM(e,t){return t==="|"?t:e}function vM(e){const t=e||{},n=t.tableCellPadding,i=t.tablePipeAlign,l=t.stringLength,s=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
294
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:v,table:u,tableCell:h,tableRow:f}};function u(x,w,A,C){return d(p(x,A,C),x.align)}function f(x,w,A,C){const E=m(x,A,C),N=d([E]);return N.slice(0,N.indexOf(`
|
|
295
|
+
`))}function h(x,w,A,C){const E=A.enter("tableCell"),N=A.enter("phrasing"),T=A.containerPhrasing(x,{...C,before:s,after:s});return N(),E(),T}function d(x,w){return OT(x,{align:w,alignDelimiters:i,padding:n,stringLength:l})}function p(x,w,A){const C=x.children;let E=-1;const N=[],T=w.enter("table");for(;++E<C.length;)N[E]=m(C[E],w,A);return T(),N}function m(x,w,A){const C=x.children;let E=-1;const N=[],T=w.enter("tableRow");for(;++E<C.length;)N[E]=h(C[E],x,w,A);return T(),N}function v(x,w,A){let C=Yy.inlineCode(x,w,A);return A.stack.includes("tableCell")&&(C=C.replace(/\|/g,"\\$&")),C}}function xM(){return{exit:{taskListCheckValueChecked:C5,taskListCheckValueUnchecked:C5,paragraph:wM}}}function bM(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:SM}}}function C5(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function wM(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const i=n.children[0];if(i&&i.type==="text"){const l=t.children;let s=-1,u;for(;++s<l.length;){const f=l[s];if(f.type==="paragraph"){u=f;break}}u===n&&(i.value=i.value.slice(1),i.value.length===0?n.children.shift():n.position&&i.position&&typeof i.position.start.offset=="number"&&(i.position.start.column++,i.position.start.offset++,n.position.start=Object.assign({},i.position.start)))}}this.exit(e)}function SM(e,t,n,i){const l=e.children[0],s=typeof e.checked=="boolean"&&l&&l.type==="paragraph",u="["+(e.checked?"x":" ")+"] ",f=n.createTracker(i);s&&f.move(u);let h=Yy.listItem(e,t,n,{...i,...f.current()});return s&&(h=h.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,d)),h;function d(p){return p+u}}function kM(){return[nT(),kT(),TT(),hM(),xM()]}function EM(e){return{extensions:[rT(),ET(e),MT(),vM(e),bM()]}}const AM={tokenize:DM,partial:!0},Gy={tokenize:_M,partial:!0},$y={tokenize:OM,partial:!0},Xy={tokenize:RM,partial:!0},CM={tokenize:BM,partial:!0},Py={name:"wwwAutolink",tokenize:zM,previous:Qy},Zy={name:"protocolAutolink",tokenize:NM,previous:Ky},Ci={name:"emailAutolink",tokenize:MM,previous:Jy},$r={};function TM(){return{text:$r}}let Ia=48;for(;Ia<123;)$r[Ia]=Ci,Ia++,Ia===58?Ia=65:Ia===91&&(Ia=97);$r[43]=Ci;$r[45]=Ci;$r[46]=Ci;$r[95]=Ci;$r[72]=[Ci,Zy];$r[104]=[Ci,Zy];$r[87]=[Ci,Py];$r[119]=[Ci,Py];function MM(e,t,n){const i=this;let l,s;return u;function u(m){return!B1(m)||!Jy.call(i,i.previous)||_m(i.events)?n(m):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),f(m))}function f(m){return B1(m)?(e.consume(m),f):m===64?(e.consume(m),h):n(m)}function h(m){return m===46?e.check(CM,p,d)(m):m===45||m===95||wn(m)?(s=!0,e.consume(m),h):p(m)}function d(m){return e.consume(m),l=!0,h}function p(m){return s&&l&&Tn(i.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(m)):n(m)}}function zM(e,t,n){const i=this;return l;function l(u){return u!==87&&u!==119||!Qy.call(i,i.previous)||_m(i.events)?n(u):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(AM,e.attempt(Gy,e.attempt($y,s),n),n)(u))}function s(u){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(u)}}function NM(e,t,n){const i=this;let l="",s=!1;return u;function u(m){return(m===72||m===104)&&Ky.call(i,i.previous)&&!_m(i.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),l+=String.fromCodePoint(m),e.consume(m),f):n(m)}function f(m){if(Tn(m)&&l.length<5)return l+=String.fromCodePoint(m),e.consume(m),f;if(m===58){const v=l.toLowerCase();if(v==="http"||v==="https")return e.consume(m),h}return n(m)}function h(m){return m===47?(e.consume(m),s?d:(s=!0,h)):n(m)}function d(m){return m===null||rc(m)||Mt(m)||Xa(m)||Rc(m)?n(m):e.attempt(Gy,e.attempt($y,p),n)(m)}function p(m){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(m)}}function DM(e,t,n){let i=0;return l;function l(u){return(u===87||u===119)&&i<3?(i++,e.consume(u),l):u===46&&i===3?(e.consume(u),s):n(u)}function s(u){return u===null?n(u):t(u)}}function _M(e,t,n){let i,l,s;return u;function u(d){return d===46||d===95?e.check(Xy,h,f)(d):d===null||Mt(d)||Xa(d)||d!==45&&Rc(d)?h(d):(s=!0,e.consume(d),u)}function f(d){return d===95?i=!0:(l=i,i=void 0),e.consume(d),u}function h(d){return l||i||!s?n(d):t(d)}}function OM(e,t){let n=0,i=0;return l;function l(u){return u===40?(n++,e.consume(u),l):u===41&&i<n?s(u):u===33||u===34||u===38||u===39||u===41||u===42||u===44||u===46||u===58||u===59||u===60||u===63||u===93||u===95||u===126?e.check(Xy,t,s)(u):u===null||Mt(u)||Xa(u)?t(u):(e.consume(u),l)}function s(u){return u===41&&i++,e.consume(u),l}}function RM(e,t,n){return i;function i(f){return f===33||f===34||f===39||f===41||f===42||f===44||f===46||f===58||f===59||f===63||f===95||f===126?(e.consume(f),i):f===38?(e.consume(f),s):f===93?(e.consume(f),l):f===60||f===null||Mt(f)||Xa(f)?t(f):n(f)}function l(f){return f===null||f===40||f===91||Mt(f)||Xa(f)?t(f):i(f)}function s(f){return Tn(f)?u(f):n(f)}function u(f){return f===59?(e.consume(f),i):Tn(f)?(e.consume(f),u):n(f)}}function BM(e,t,n){return i;function i(s){return e.consume(s),l}function l(s){return wn(s)?n(s):t(s)}}function Qy(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Mt(e)}function Ky(e){return!Tn(e)}function Jy(e){return!(e===47||B1(e))}function B1(e){return e===43||e===45||e===46||e===95||wn(e)}function _m(e){let t=e.length,n=!1;for(;t--;){const i=e[t][1];if((i.type==="labelLink"||i.type==="labelImage")&&!i._balanced){n=!0;break}if(i._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const LM={tokenize:YM,partial:!0};function HM(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:UM,continuation:{tokenize:FM},exit:VM}},text:{91:{name:"gfmFootnoteCall",tokenize:IM},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:jM,resolveTo:qM}}}}function jM(e,t,n){const i=this;let l=i.events.length;const s=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let u;for(;l--;){const h=i.events[l][1];if(h.type==="labelImage"){u=h;break}if(h.type==="gfmFootnoteCall"||h.type==="labelLink"||h.type==="label"||h.type==="image"||h.type==="link")break}return f;function f(h){if(!u||!u._balanced)return n(h);const d=Cr(i.sliceSerialize({start:u.end,end:i.now()}));return d.codePointAt(0)!==94||!s.includes(d.slice(1))?n(h):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),t(h))}}function qM(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const i={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},l={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};l.end.column++,l.end.offset++,l.end._bufferIndex++;const s={type:"gfmFootnoteCallString",start:Object.assign({},l.end),end:Object.assign({},e[e.length-1][1].start)},u={type:"chunkString",contentType:"string",start:Object.assign({},s.start),end:Object.assign({},s.end)},f=[e[n+1],e[n+2],["enter",i,t],e[n+3],e[n+4],["enter",l,t],["exit",l,t],["enter",s,t],["enter",u,t],["exit",u,t],["exit",s,t],e[e.length-2],e[e.length-1],["exit",i,t]];return e.splice(n,e.length-n+1,...f),e}function IM(e,t,n){const i=this,l=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let s=0,u;return f;function f(m){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(m),e.exit("gfmFootnoteCallLabelMarker"),h}function h(m){return m!==94?n(m):(e.enter("gfmFootnoteCallMarker"),e.consume(m),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",d)}function d(m){if(s>999||m===93&&!u||m===null||m===91||Mt(m))return n(m);if(m===93){e.exit("chunkString");const v=e.exit("gfmFootnoteCallString");return l.includes(Cr(i.sliceSerialize(v)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(m),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(m)}return Mt(m)||(u=!0),s++,e.consume(m),m===92?p:d}function p(m){return m===91||m===92||m===93?(e.consume(m),s++,d):d(m)}}function UM(e,t,n){const i=this,l=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let s,u=0,f;return h;function h(w){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(w),e.exit("gfmFootnoteDefinitionLabelMarker"),d}function d(w){return w===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(w),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",p):n(w)}function p(w){if(u>999||w===93&&!f||w===null||w===91||Mt(w))return n(w);if(w===93){e.exit("chunkString");const A=e.exit("gfmFootnoteDefinitionLabelString");return s=Cr(i.sliceSerialize(A)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(w),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),v}return Mt(w)||(f=!0),u++,e.consume(w),w===92?m:p}function m(w){return w===91||w===92||w===93?(e.consume(w),u++,p):p(w)}function v(w){return w===58?(e.enter("definitionMarker"),e.consume(w),e.exit("definitionMarker"),l.includes(s)||l.push(s),nt(e,x,"gfmFootnoteDefinitionWhitespace")):n(w)}function x(w){return t(w)}}function FM(e,t,n){return e.check(Xs,t,e.attempt(LM,t,n))}function VM(e){e.exit("gfmFootnoteDefinition")}function YM(e,t,n){const i=this;return nt(e,l,"gfmFootnoteDefinitionIndent",5);function l(s){const u=i.events[i.events.length-1];return u&&u[1].type==="gfmFootnoteDefinitionIndent"&&u[2].sliceSerialize(u[1],!0).length===4?t(s):n(s)}}function GM(e){let n=(e||{}).singleTilde;const i={name:"strikethrough",tokenize:s,resolveAll:l};return n==null&&(n=!0),{text:{126:i},insideSpan:{null:[i]},attentionMarkers:{null:[126]}};function l(u,f){let h=-1;for(;++h<u.length;)if(u[h][0]==="enter"&&u[h][1].type==="strikethroughSequenceTemporary"&&u[h][1]._close){let d=h;for(;d--;)if(u[d][0]==="exit"&&u[d][1].type==="strikethroughSequenceTemporary"&&u[d][1]._open&&u[h][1].end.offset-u[h][1].start.offset===u[d][1].end.offset-u[d][1].start.offset){u[h][1].type="strikethroughSequence",u[d][1].type="strikethroughSequence";const p={type:"strikethrough",start:Object.assign({},u[d][1].start),end:Object.assign({},u[h][1].end)},m={type:"strikethroughText",start:Object.assign({},u[d][1].end),end:Object.assign({},u[h][1].start)},v=[["enter",p,f],["enter",u[d][1],f],["exit",u[d][1],f],["enter",m,f]],x=f.parser.constructs.insideSpan.null;x&&tr(v,v.length,0,Bc(x,u.slice(d+1,h),f)),tr(v,v.length,0,[["exit",m,f],["enter",u[h][1],f],["exit",u[h][1],f],["exit",p,f]]),tr(u,d-1,h-d+3,v),h=d+v.length-2;break}}for(h=-1;++h<u.length;)u[h][1].type==="strikethroughSequenceTemporary"&&(u[h][1].type="data");return u}function s(u,f,h){const d=this.previous,p=this.events;let m=0;return v;function v(w){return d===126&&p[p.length-1][1].type!=="characterEscape"?h(w):(u.enter("strikethroughSequenceTemporary"),x(w))}function x(w){const A=eo(d);if(w===126)return m>1?h(w):(u.consume(w),m++,x);if(m<2&&!n)return h(w);const C=u.exit("strikethroughSequenceTemporary"),E=eo(w);return C._open=!E||E===2&&!!A,C._close=!A||A===2&&!!E,f(w)}}}class $M{constructor(){this.map=[]}add(t,n,i){XM(this,t,n,i)}consume(t){if(this.map.sort(function(s,u){return s[0]-u[0]}),this.map.length===0)return;let n=this.map.length;const i=[];for(;n>0;)n-=1,i.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];i.push(t.slice()),t.length=0;let l=i.pop();for(;l;){for(const s of l)t.push(s);l=i.pop()}this.map.length=0}}function XM(e,t,n,i){let l=0;if(!(n===0&&i.length===0)){for(;l<e.map.length;){if(e.map[l][0]===t){e.map[l][1]+=n,e.map[l][2].push(...i);return}l+=1}e.map.push([t,n,i])}}function PM(e,t){let n=!1;const i=[];for(;t<e.length;){const l=e[t];if(n){if(l[0]==="enter")l[1].type==="tableContent"&&i.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(l[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const s=i.length-1;i[s]=i[s]==="left"?"center":"right"}}else if(l[1].type==="tableDelimiterRow")break}else l[0]==="enter"&&l[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return i}function ZM(){return{flow:{null:{name:"table",tokenize:QM,resolveAll:KM}}}}function QM(e,t,n){const i=this;let l=0,s=0,u;return f;function f(V){let X=i.events.length-1;for(;X>-1;){const q=i.events[X][1].type;if(q==="lineEnding"||q==="linePrefix")X--;else break}const W=X>-1?i.events[X][1].type:null,ce=W==="tableHead"||W==="tableRow"?D:h;return ce===D&&i.parser.lazy[i.now().line]?n(V):ce(V)}function h(V){return e.enter("tableHead"),e.enter("tableRow"),d(V)}function d(V){return V===124||(u=!0,s+=1),p(V)}function p(V){return V===null?n(V):je(V)?s>1?(s=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(V),e.exit("lineEnding"),x):n(V):lt(V)?nt(e,p,"whitespace")(V):(s+=1,u&&(u=!1,l+=1),V===124?(e.enter("tableCellDivider"),e.consume(V),e.exit("tableCellDivider"),u=!0,p):(e.enter("data"),m(V)))}function m(V){return V===null||V===124||Mt(V)?(e.exit("data"),p(V)):(e.consume(V),V===92?v:m)}function v(V){return V===92||V===124?(e.consume(V),m):m(V)}function x(V){return i.interrupt=!1,i.parser.lazy[i.now().line]?n(V):(e.enter("tableDelimiterRow"),u=!1,lt(V)?nt(e,w,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(V):w(V))}function w(V){return V===45||V===58?C(V):V===124?(u=!0,e.enter("tableCellDivider"),e.consume(V),e.exit("tableCellDivider"),A):I(V)}function A(V){return lt(V)?nt(e,C,"whitespace")(V):C(V)}function C(V){return V===58?(s+=1,u=!0,e.enter("tableDelimiterMarker"),e.consume(V),e.exit("tableDelimiterMarker"),E):V===45?(s+=1,E(V)):V===null||je(V)?B(V):I(V)}function E(V){return V===45?(e.enter("tableDelimiterFiller"),N(V)):I(V)}function N(V){return V===45?(e.consume(V),N):V===58?(u=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(V),e.exit("tableDelimiterMarker"),T):(e.exit("tableDelimiterFiller"),T(V))}function T(V){return lt(V)?nt(e,B,"whitespace")(V):B(V)}function B(V){return V===124?w(V):V===null||je(V)?!u||l!==s?I(V):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(V)):I(V)}function I(V){return n(V)}function D(V){return e.enter("tableRow"),U(V)}function U(V){return V===124?(e.enter("tableCellDivider"),e.consume(V),e.exit("tableCellDivider"),U):V===null||je(V)?(e.exit("tableRow"),t(V)):lt(V)?nt(e,U,"whitespace")(V):(e.enter("data"),J(V))}function J(V){return V===null||V===124||Mt(V)?(e.exit("data"),U(V)):(e.consume(V),V===92?P:J)}function P(V){return V===92||V===124?(e.consume(V),J):J(V)}}function KM(e,t){let n=-1,i=!0,l=0,s=[0,0,0,0],u=[0,0,0,0],f=!1,h=0,d,p,m;const v=new $M;for(;++n<e.length;){const x=e[n],w=x[1];x[0]==="enter"?w.type==="tableHead"?(f=!1,h!==0&&(T5(v,t,h,d,p),p=void 0,h=0),d={type:"table",start:Object.assign({},w.start),end:Object.assign({},w.end)},v.add(n,0,[["enter",d,t]])):w.type==="tableRow"||w.type==="tableDelimiterRow"?(i=!0,m=void 0,s=[0,0,0,0],u=[0,n+1,0,0],f&&(f=!1,p={type:"tableBody",start:Object.assign({},w.start),end:Object.assign({},w.end)},v.add(n,0,[["enter",p,t]])),l=w.type==="tableDelimiterRow"?2:p?3:1):l&&(w.type==="data"||w.type==="tableDelimiterMarker"||w.type==="tableDelimiterFiller")?(i=!1,u[2]===0&&(s[1]!==0&&(u[0]=u[1],m=O0(v,t,s,l,void 0,m),s=[0,0,0,0]),u[2]=n)):w.type==="tableCellDivider"&&(i?i=!1:(s[1]!==0&&(u[0]=u[1],m=O0(v,t,s,l,void 0,m)),s=u,u=[s[1],n,0,0])):w.type==="tableHead"?(f=!0,h=n):w.type==="tableRow"||w.type==="tableDelimiterRow"?(h=n,s[1]!==0?(u[0]=u[1],m=O0(v,t,s,l,n,m)):u[1]!==0&&(m=O0(v,t,u,l,n,m)),l=0):l&&(w.type==="data"||w.type==="tableDelimiterMarker"||w.type==="tableDelimiterFiller")&&(u[3]=n)}for(h!==0&&T5(v,t,h,d,p),v.consume(t.events),n=-1;++n<t.events.length;){const x=t.events[n];x[0]==="enter"&&x[1].type==="table"&&(x[1]._align=PM(t.events,n))}return e}function O0(e,t,n,i,l,s){const u=i===1?"tableHeader":i===2?"tableDelimiter":"tableData",f="tableContent";n[0]!==0&&(s.end=Object.assign({},Yl(t.events,n[0])),e.add(n[0],0,[["exit",s,t]]));const h=Yl(t.events,n[1]);if(s={type:u,start:Object.assign({},h),end:Object.assign({},h)},e.add(n[1],0,[["enter",s,t]]),n[2]!==0){const d=Yl(t.events,n[2]),p=Yl(t.events,n[3]),m={type:f,start:Object.assign({},d),end:Object.assign({},p)};if(e.add(n[2],0,[["enter",m,t]]),i!==2){const v=t.events[n[2]],x=t.events[n[3]];if(v[1].end=Object.assign({},x[1].end),v[1].type="chunkText",v[1].contentType="text",n[3]>n[2]+1){const w=n[2]+1,A=n[3]-n[2]-1;e.add(w,A,[])}}e.add(n[3]+1,0,[["exit",m,t]])}return l!==void 0&&(s.end=Object.assign({},Yl(t.events,l)),e.add(l,0,[["exit",s,t]]),s=void 0),s}function T5(e,t,n,i,l){const s=[],u=Yl(t.events,n);l&&(l.end=Object.assign({},u),s.push(["exit",l,t])),i.end=Object.assign({},u),s.push(["exit",i,t]),e.add(n+1,0,s)}function Yl(e,t){const n=e[t],i=n[0]==="enter"?"start":"end";return n[1][i]}const JM={name:"tasklistCheck",tokenize:ez};function WM(){return{text:{91:JM}}}function ez(e,t,n){const i=this;return l;function l(h){return i.previous!==null||!i._gfmTasklistFirstContentOfListItem?n(h):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(h),e.exit("taskListCheckMarker"),s)}function s(h){return Mt(h)?(e.enter("taskListCheckValueUnchecked"),e.consume(h),e.exit("taskListCheckValueUnchecked"),u):h===88||h===120?(e.enter("taskListCheckValueChecked"),e.consume(h),e.exit("taskListCheckValueChecked"),u):n(h)}function u(h){return h===93?(e.enter("taskListCheckMarker"),e.consume(h),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),f):n(h)}function f(h){return je(h)?t(h):lt(h)?e.check({tokenize:tz},t,n)(h):n(h)}}function tz(e,t,n){return nt(e,i,"whitespace");function i(l){return l===null?n(l):t(l)}}function nz(e){return cy([TM(),HM(),GM(e),ZM(),WM()])}const rz={};function iz(e){const t=this,n=e||rz,i=t.data(),l=i.micromarkExtensions||(i.micromarkExtensions=[]),s=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),u=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);l.push(nz(n)),s.push(kM()),u.push(EM(n))}function az(){return{enter:{mathFlow:e,mathFlowFenceMeta:t,mathText:s},exit:{mathFlow:l,mathFlowFence:i,mathFlowFenceMeta:n,mathFlowValue:f,mathText:u,mathTextData:f}};function e(h){const d={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[d]}},h)}function t(){this.buffer()}function n(){const h=this.resume(),d=this.stack[this.stack.length-1];d.type,d.meta=h}function i(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function l(h){const d=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),p=this.stack[this.stack.length-1];p.type,this.exit(h),p.value=d;const m=p.data.hChildren[0];m.type,m.tagName,m.children.push({type:"text",value:d}),this.data.mathFlowInside=void 0}function s(h){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},h),this.buffer()}function u(h){const d=this.resume(),p=this.stack[this.stack.length-1];p.type,this.exit(h),p.value=d,p.data.hChildren.push({type:"text",value:d})}function f(h){this.config.enter.data.call(this,h),this.config.exit.data.call(this,h)}}function lz(e){let t=(e||{}).singleDollarTextMath;return t==null&&(t=!0),i.peek=l,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:`
|
|
296
|
+
`,inConstruct:"mathFlowMeta"},{character:"$",after:t?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:n,inlineMath:i}};function n(s,u,f,h){const d=s.value||"",p=f.createTracker(h),m="$".repeat(Math.max(Oy(d,"$")+1,2)),v=f.enter("mathFlow");let x=p.move(m);if(s.meta){const w=f.enter("mathFlowMeta");x+=p.move(f.safe(s.meta,{after:`
|
|
297
|
+
`,before:x,encode:["$"],...p.current()})),w()}return x+=p.move(`
|
|
298
|
+
`),d&&(x+=p.move(d+`
|
|
299
|
+
`)),x+=p.move(m),v(),x}function i(s,u,f){let h=s.value||"",d=1;for(t||d++;new RegExp("(^|[^$])"+"\\$".repeat(d)+"([^$]|$)").test(h);)d++;const p="$".repeat(d);/[^ \r\n]/.test(h)&&(/^[ \r\n]/.test(h)&&/[ \r\n]$/.test(h)||/^\$|\$$/.test(h))&&(h=" "+h+" ");let m=-1;for(;++m<f.unsafe.length;){const v=f.unsafe[m];if(!v.atBreak)continue;const x=f.compilePattern(v);let w;for(;w=x.exec(h);){let A=w.index;h.codePointAt(A)===10&&h.codePointAt(A-1)===13&&A--,h=h.slice(0,A)+" "+h.slice(w.index+1)}}return p+h+p}function l(){return"$"}}const oz={tokenize:sz,concrete:!0,name:"mathFlow"},M5={tokenize:uz,partial:!0};function sz(e,t,n){const i=this,l=i.events[i.events.length-1],s=l&&l[1].type==="linePrefix"?l[2].sliceSerialize(l[1],!0).length:0;let u=0;return f;function f(N){return e.enter("mathFlow"),e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),h(N)}function h(N){return N===36?(e.consume(N),u++,h):u<2?n(N):(e.exit("mathFlowFenceSequence"),nt(e,d,"whitespace")(N))}function d(N){return N===null||je(N)?m(N):(e.enter("mathFlowFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(N))}function p(N){return N===null||je(N)?(e.exit("chunkString"),e.exit("mathFlowFenceMeta"),m(N)):N===36?n(N):(e.consume(N),p)}function m(N){return e.exit("mathFlowFence"),i.interrupt?t(N):e.attempt(M5,v,C)(N)}function v(N){return e.attempt({tokenize:E,partial:!0},C,x)(N)}function x(N){return(s?nt(e,w,"linePrefix",s+1):w)(N)}function w(N){return N===null?C(N):je(N)?e.attempt(M5,v,C)(N):(e.enter("mathFlowValue"),A(N))}function A(N){return N===null||je(N)?(e.exit("mathFlowValue"),w(N)):(e.consume(N),A)}function C(N){return e.exit("mathFlow"),t(N)}function E(N,T,B){let I=0;return nt(N,D,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function D(P){return N.enter("mathFlowFence"),N.enter("mathFlowFenceSequence"),U(P)}function U(P){return P===36?(I++,N.consume(P),U):I<u?B(P):(N.exit("mathFlowFenceSequence"),nt(N,J,"whitespace")(P))}function J(P){return P===null||je(P)?(N.exit("mathFlowFence"),T(P)):B(P)}}}function uz(e,t,n){const i=this;return l;function l(u){return u===null?t(u):(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),s)}function s(u){return i.parser.lazy[i.now().line]?n(u):t(u)}}function cz(e){let n=(e||{}).singleDollarTextMath;return n==null&&(n=!0),{tokenize:i,resolve:fz,previous:hz,name:"mathText"};function i(l,s,u){let f=0,h,d;return p;function p(A){return l.enter("mathText"),l.enter("mathTextSequence"),m(A)}function m(A){return A===36?(l.consume(A),f++,m):f<2&&!n?u(A):(l.exit("mathTextSequence"),v(A))}function v(A){return A===null?u(A):A===36?(d=l.enter("mathTextSequence"),h=0,w(A)):A===32?(l.enter("space"),l.consume(A),l.exit("space"),v):je(A)?(l.enter("lineEnding"),l.consume(A),l.exit("lineEnding"),v):(l.enter("mathTextData"),x(A))}function x(A){return A===null||A===32||A===36||je(A)?(l.exit("mathTextData"),v(A)):(l.consume(A),x)}function w(A){return A===36?(l.consume(A),h++,w):h===f?(l.exit("mathTextSequence"),l.exit("mathText"),s(A)):(d.type="mathTextData",x(A))}}}function fz(e){let t=e.length-4,n=3,i,l;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(i=n;++i<t;)if(e[i][1].type==="mathTextData"){e[t][1].type="mathTextPadding",e[n][1].type="mathTextPadding",n+=2,t-=2;break}}for(i=n-1,t++;++i<=t;)l===void 0?i!==t&&e[i][1].type!=="lineEnding"&&(l=i):(i===t||e[i][1].type==="lineEnding")&&(e[l][1].type="mathTextData",i!==l+2&&(e[l][1].end=e[i-1][1].end,e.splice(l+2,i-l-2),t-=i-l-2,i=l+2),l=void 0);return e}function hz(e){return e!==36||this.events[this.events.length-1][1].type==="characterEscape"}function dz(e){return{flow:{36:oz},text:{36:cz(e)}}}const mz={};function pz(e){const t=this,n=e||mz,i=t.data(),l=i.micromarkExtensions||(i.micromarkExtensions=[]),s=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),u=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);l.push(dz(n)),s.push(az()),u.push(lz(n))}function Ds({basePath:e,className:t="",content:n}){return z.jsx("div",{className:t?`markdown-body ${t}`:"markdown-body",children:z.jsx($C,{components:{a({href:i,children:l,node:s,...u}){const f=i&&e?gz(z5(e,i)):null;return z.jsx("a",{href:f||i,...u,children:l})},img({src:i,node:l,...s}){const u=i&&e?yz(z5(e,i)):null;return z.jsx("img",{src:u||i,...s})}},rehypePlugins:[ek],remarkPlugins:[iz,pz],children:n})})}function z5(e,t){const n=t.trim();if(!n||n.startsWith("#")||/^[a-z][a-z0-9+.-]*:/i.test(n)||n.startsWith("//"))return null;const i=Wy(n),l=i>=0?n.slice(0,i):n,s=i>=0?n.slice(i):"";if(!l)return null;const f=[...e.split("/").slice(0,-1),...l.split("/")],h=[];for(const d of f)if(!(!d||d===".")){if(d===".."){if(!h.length)return null;h.pop();continue}h.push(d)}return h.length?`${h.join("/")}${s}`:null}function gz(e){if(!e)return null;const[t,n]=e8(e);return`/viewer?path=${encodeURIComponent(t)}${n}`}function yz(e){if(!e)return null;const[t,n]=e8(e),i=n.startsWith("?")?`&${n.slice(1)}`:n;return`/api/workspace/raw?path=${encodeURIComponent(t)}${i}`}function Wy(e){const t=e.indexOf("#"),n=e.indexOf("?"),i=[t,n].filter(l=>l>=0);return i.length?Math.min(...i):-1}function e8(e){const t=Wy(e);return t<0?[e,""]:[e.slice(0,t),e.slice(t)]}function vz(e){return e.role==="assistant"?"Sidecar":e.role==="tool"?e.toolName?`Tool · ${e.toolName}`:"Tool":e.role==="system"?"System":"You"}function xz({run:e}){const t=e.exchanges.filter(n=>n.result).length;return z.jsx("article",{className:"message tool",children:z.jsxs("details",{className:"tool-run-card",children:[z.jsxs("summary",{children:[z.jsxs("span",{className:"tool-summary-main",children:[z.jsx("span",{className:"tool-chip result",children:"Tools"}),z.jsx("strong",{children:"Workspace tools"}),z.jsxs("small",{children:[e.exchanges.length," call",e.exchanges.length===1?"":"s",t>0?` · ${t} result${t===1?"":"s"}`:""]})]}),z.jsx("span",{className:"tool-summary-action",children:"Details"})]}),z.jsx("div",{className:"tool-run-details",children:e.exchanges.map(n=>z.jsx(wz,{exchange:n},n.id))})]})})}function bz(e){if(e.triggers?.length){const t=new Set((e.loadedSkills||[]).map(n=>n.path));return`Workspace skill routing:
|
|
300
|
+
|
|
301
|
+
${e.triggers.map(n=>{const i=t.has(n.skill.path)?"loaded":n.disclosure;return`- \`${n.skill.name}\` — ${n.confidence}; ${i}; ${n.reason}`}).join(`
|
|
302
|
+
`)}`}return`Triggered workspace skills:
|
|
303
|
+
|
|
304
|
+
${(e.skills||[]).map(t=>`- \`${t.name}\` — ${t.description||t.path}`).join(`
|
|
305
|
+
`)}`}function wz({exchange:e}){return z.jsxs("details",{className:"tool-card",children:[z.jsxs("summary",{children:[z.jsxs("span",{className:"tool-summary-main",children:[z.jsx("span",{className:e.result?"tool-chip result":"tool-chip",children:e.result?"Done":"Call"}),z.jsx("strong",{children:e.name})]}),z.jsx("span",{className:"tool-summary-action",children:"Details"})]}),z.jsxs("div",{className:"message-body tool-details",children:[e.call&&z.jsxs("section",{className:"tool-detail-section",children:[z.jsx("h3",{children:"Call"}),z.jsx(Ds,{content:e.call.content})]}),e.result&&z.jsxs("section",{className:"tool-detail-section",children:[z.jsx("h3",{children:"Result"}),z.jsx(Ds,{content:e.result.content})]})]})]})}function N5(e){const t=[];let n=[];for(const i of e){if(i.role==="tool"){n.push(i);continue}D5(t,n),n=[],t.push({kind:"message",message:i})}return D5(t,n),t}function D5(e,t){if(!t.length)return;const n=t[0],i=t[t.length-1];e.push({kind:"tool-run",run:{id:`tool-run-${n.id}-${i.id}`,exchanges:Sz(t)}})}function Sz(e){const t=[];for(const n of e){const i=kz(n),l=n.toolName||n.content.match(/`([^`]+)`/)?.[1]||"workspace tool",s=t[t.length-1];if(i==="result"&&s&&s.name===l&&!s.result){s.result=n;continue}t.push({id:n.id,name:l,...i==="result"?{result:n}:{call:n}})}return t}function kz(e){return e.content.startsWith("Result from")?"result":"call"}function Ez({candidates:e,config:t,graphSaving:n,installWorkspaceSkills:i,loadGraphCandidates:l,notice:s,saveGraphSelection:u,selectedCandidate:f,selectedGraphPath:h,setSelectedGraphPath:d,setSidebarCollapsed:p,sidebarCollapsed:m,skillsInstalling:v,viewTabs:x}){return z.jsxs("div",{className:"workspace-sidebar-header",children:[x,z.jsxs("div",{className:"brand-row",children:[z.jsxs("div",{className:"workspace-sidebar-title",children:[z.jsx("h1",{children:"Research Graph"}),!m&&z.jsx("p",{children:t?.workspaceRoot||"Loading workspace..."})]}),z.jsx("div",{className:"brand-actions",children:z.jsx("button",{className:"icon-button",onClick:()=>p(!m),title:"Toggle sidebar",children:m?"›":"‹"})})]}),!m&&z.jsxs("div",{className:"graph-config",children:[z.jsxs("label",{children:["Graph",z.jsx("select",{value:h,onChange:w=>d(w.target.value),disabled:!e.length,children:e.length?e.map(w=>z.jsx("option",{value:w.path,children:w.title?`${w.title} · ${w.path}`:w.path},w.path)):z.jsx("option",{value:"",children:"No graph found"})})]}),f?.error&&z.jsx("small",{className:"graph-config-error",children:f.error}),f&&!f.error&&z.jsxs("small",{children:[f.nodeCount??0," nodes · ",f.edgeCount??0," edges"]}),z.jsxs("div",{className:"graph-config-actions",children:[z.jsx("button",{className:"secondary-button compact",onClick:l,children:"Refresh"}),z.jsx("button",{className:"secondary-button compact",onClick:i,disabled:v,children:v?"Installing":"Install skills"}),z.jsx("button",{className:"secondary-button compact primary",onClick:u,disabled:!h||h===t?.graphManifestPath||n,children:n?"Saving":"Save graph"})]}),s&&z.jsx("small",{className:"graph-config-notice",children:s})]})]})}function nn(e){if(typeof e=="string"||typeof e=="number")return""+e;let t="";if(Array.isArray(e))for(let n=0,i;n<e.length;n++)(i=nn(e[n]))!==""&&(t+=(t&&" ")+i);else for(let n in e)e[n]&&(t+=(t&&" ")+n);return t}var Az={value:()=>{}};function Hc(){for(var e=0,t=arguments.length,n={},i;e<t;++e){if(!(i=arguments[e]+"")||i in n||/[\s.]/.test(i))throw new Error("illegal type: "+i);n[i]=[]}return new $0(n)}function $0(e){this._=e}function Cz(e,t){return e.trim().split(/^|\s+/).map(function(n){var i="",l=n.indexOf(".");if(l>=0&&(i=n.slice(l+1),n=n.slice(0,l)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:i}})}$0.prototype=Hc.prototype={constructor:$0,on:function(e,t){var n=this._,i=Cz(e+"",n),l,s=-1,u=i.length;if(arguments.length<2){for(;++s<u;)if((l=(e=i[s]).type)&&(l=Tz(n[l],e.name)))return l;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++s<u;)if(l=(e=i[s]).type)n[l]=_5(n[l],e.name,t);else if(t==null)for(l in n)n[l]=_5(n[l],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new $0(e)},call:function(e,t){if((l=arguments.length-2)>0)for(var n=new Array(l),i=0,l,s;i<l;++i)n[i]=arguments[i+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(s=this._[e],i=0,l=s.length;i<l;++i)s[i].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var i=this._[e],l=0,s=i.length;l<s;++l)i[l].value.apply(t,n)}};function Tz(e,t){for(var n=0,i=e.length,l;n<i;++n)if((l=e[n]).name===t)return l.value}function _5(e,t,n){for(var i=0,l=e.length;i<l;++i)if(e[i].name===t){e[i]=Az,e=e.slice(0,i).concat(e.slice(i+1));break}return n!=null&&e.push({name:t,value:n}),e}var L1="http://www.w3.org/1999/xhtml";const O5={svg:"http://www.w3.org/2000/svg",xhtml:L1,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function jc(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),O5.hasOwnProperty(t)?{space:O5[t],local:e}:e}function Mz(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===L1&&t.documentElement.namespaceURI===L1?t.createElement(e):t.createElementNS(n,e)}}function zz(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function t8(e){var t=jc(e);return(t.local?zz:Mz)(t)}function Nz(){}function Om(e){return e==null?Nz:function(){return this.querySelector(e)}}function Dz(e){typeof e!="function"&&(e=Om(e));for(var t=this._groups,n=t.length,i=new Array(n),l=0;l<n;++l)for(var s=t[l],u=s.length,f=i[l]=new Array(u),h,d,p=0;p<u;++p)(h=s[p])&&(d=e.call(h,h.__data__,p,s))&&("__data__"in h&&(d.__data__=h.__data__),f[p]=d);return new rr(i,this._parents)}function _z(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function Oz(){return[]}function n8(e){return e==null?Oz:function(){return this.querySelectorAll(e)}}function Rz(e){return function(){return _z(e.apply(this,arguments))}}function Bz(e){typeof e=="function"?e=Rz(e):e=n8(e);for(var t=this._groups,n=t.length,i=[],l=[],s=0;s<n;++s)for(var u=t[s],f=u.length,h,d=0;d<f;++d)(h=u[d])&&(i.push(e.call(h,h.__data__,d,u)),l.push(h));return new rr(i,l)}function r8(e){return function(){return this.matches(e)}}function i8(e){return function(t){return t.matches(e)}}var Lz=Array.prototype.find;function Hz(e){return function(){return Lz.call(this.children,e)}}function jz(){return this.firstElementChild}function qz(e){return this.select(e==null?jz:Hz(typeof e=="function"?e:i8(e)))}var Iz=Array.prototype.filter;function Uz(){return Array.from(this.children)}function Fz(e){return function(){return Iz.call(this.children,e)}}function Vz(e){return this.selectAll(e==null?Uz:Fz(typeof e=="function"?e:i8(e)))}function Yz(e){typeof e!="function"&&(e=r8(e));for(var t=this._groups,n=t.length,i=new Array(n),l=0;l<n;++l)for(var s=t[l],u=s.length,f=i[l]=[],h,d=0;d<u;++d)(h=s[d])&&e.call(h,h.__data__,d,s)&&f.push(h);return new rr(i,this._parents)}function a8(e){return new Array(e.length)}function Gz(){return new rr(this._enter||this._groups.map(a8),this._parents)}function oc(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}oc.prototype={constructor:oc,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function $z(e){return function(){return e}}function Xz(e,t,n,i,l,s){for(var u=0,f,h=t.length,d=s.length;u<d;++u)(f=t[u])?(f.__data__=s[u],i[u]=f):n[u]=new oc(e,s[u]);for(;u<h;++u)(f=t[u])&&(l[u]=f)}function Pz(e,t,n,i,l,s,u){var f,h,d=new Map,p=t.length,m=s.length,v=new Array(p),x;for(f=0;f<p;++f)(h=t[f])&&(v[f]=x=u.call(h,h.__data__,f,t)+"",d.has(x)?l[f]=h:d.set(x,h));for(f=0;f<m;++f)x=u.call(e,s[f],f,s)+"",(h=d.get(x))?(i[f]=h,h.__data__=s[f],d.delete(x)):n[f]=new oc(e,s[f]);for(f=0;f<p;++f)(h=t[f])&&d.get(v[f])===h&&(l[f]=h)}function Zz(e){return e.__data__}function Qz(e,t){if(!arguments.length)return Array.from(this,Zz);var n=t?Pz:Xz,i=this._parents,l=this._groups;typeof e!="function"&&(e=$z(e));for(var s=l.length,u=new Array(s),f=new Array(s),h=new Array(s),d=0;d<s;++d){var p=i[d],m=l[d],v=m.length,x=Kz(e.call(p,p&&p.__data__,d,i)),w=x.length,A=f[d]=new Array(w),C=u[d]=new Array(w),E=h[d]=new Array(v);n(p,m,A,C,E,x,t);for(var N=0,T=0,B,I;N<w;++N)if(B=A[N]){for(N>=T&&(T=N+1);!(I=C[T])&&++T<w;);B._next=I||null}}return u=new rr(u,i),u._enter=f,u._exit=h,u}function Kz(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Jz(){return new rr(this._exit||this._groups.map(a8),this._parents)}function Wz(e,t,n){var i=this.enter(),l=this,s=this.exit();return typeof e=="function"?(i=e(i),i&&(i=i.selection())):i=i.append(e+""),t!=null&&(l=t(l),l&&(l=l.selection())),n==null?s.remove():n(s),i&&l?i.merge(l).order():l}function eN(e){for(var t=e.selection?e.selection():e,n=this._groups,i=t._groups,l=n.length,s=i.length,u=Math.min(l,s),f=new Array(l),h=0;h<u;++h)for(var d=n[h],p=i[h],m=d.length,v=f[h]=new Array(m),x,w=0;w<m;++w)(x=d[w]||p[w])&&(v[w]=x);for(;h<l;++h)f[h]=n[h];return new rr(f,this._parents)}function tN(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var i=e[t],l=i.length-1,s=i[l],u;--l>=0;)(u=i[l])&&(s&&u.compareDocumentPosition(s)^4&&s.parentNode.insertBefore(u,s),s=u);return this}function nN(e){e||(e=rN);function t(m,v){return m&&v?e(m.__data__,v.__data__):!m-!v}for(var n=this._groups,i=n.length,l=new Array(i),s=0;s<i;++s){for(var u=n[s],f=u.length,h=l[s]=new Array(f),d,p=0;p<f;++p)(d=u[p])&&(h[p]=d);h.sort(t)}return new rr(l,this._parents).order()}function rN(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function iN(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function aN(){return Array.from(this)}function lN(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var i=e[t],l=0,s=i.length;l<s;++l){var u=i[l];if(u)return u}return null}function oN(){let e=0;for(const t of this)++e;return e}function sN(){return!this.node()}function uN(e){for(var t=this._groups,n=0,i=t.length;n<i;++n)for(var l=t[n],s=0,u=l.length,f;s<u;++s)(f=l[s])&&e.call(f,f.__data__,s,l);return this}function cN(e){return function(){this.removeAttribute(e)}}function fN(e){return function(){this.removeAttributeNS(e.space,e.local)}}function hN(e,t){return function(){this.setAttribute(e,t)}}function dN(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function mN(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function pN(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function gN(e,t){var n=jc(e);if(arguments.length<2){var i=this.node();return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((t==null?n.local?fN:cN:typeof t=="function"?n.local?pN:mN:n.local?dN:hN)(n,t))}function l8(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function yN(e){return function(){this.style.removeProperty(e)}}function vN(e,t,n){return function(){this.style.setProperty(e,t,n)}}function xN(e,t,n){return function(){var i=t.apply(this,arguments);i==null?this.style.removeProperty(e):this.style.setProperty(e,i,n)}}function bN(e,t,n){return arguments.length>1?this.each((t==null?yN:typeof t=="function"?xN:vN)(e,t,n??"")):to(this.node(),e)}function to(e,t){return e.style.getPropertyValue(t)||l8(e).getComputedStyle(e,null).getPropertyValue(t)}function wN(e){return function(){delete this[e]}}function SN(e,t){return function(){this[e]=t}}function kN(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function EN(e,t){return arguments.length>1?this.each((t==null?wN:typeof t=="function"?kN:SN)(e,t)):this.node()[e]}function o8(e){return e.trim().split(/^|\s+/)}function Rm(e){return e.classList||new s8(e)}function s8(e){this._node=e,this._names=o8(e.getAttribute("class")||"")}s8.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function u8(e,t){for(var n=Rm(e),i=-1,l=t.length;++i<l;)n.add(t[i])}function c8(e,t){for(var n=Rm(e),i=-1,l=t.length;++i<l;)n.remove(t[i])}function AN(e){return function(){u8(this,e)}}function CN(e){return function(){c8(this,e)}}function TN(e,t){return function(){(t.apply(this,arguments)?u8:c8)(this,e)}}function MN(e,t){var n=o8(e+"");if(arguments.length<2){for(var i=Rm(this.node()),l=-1,s=n.length;++l<s;)if(!i.contains(n[l]))return!1;return!0}return this.each((typeof t=="function"?TN:t?AN:CN)(n,t))}function zN(){this.textContent=""}function NN(e){return function(){this.textContent=e}}function DN(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function _N(e){return arguments.length?this.each(e==null?zN:(typeof e=="function"?DN:NN)(e)):this.node().textContent}function ON(){this.innerHTML=""}function RN(e){return function(){this.innerHTML=e}}function BN(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function LN(e){return arguments.length?this.each(e==null?ON:(typeof e=="function"?BN:RN)(e)):this.node().innerHTML}function HN(){this.nextSibling&&this.parentNode.appendChild(this)}function jN(){return this.each(HN)}function qN(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function IN(){return this.each(qN)}function UN(e){var t=typeof e=="function"?e:t8(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function FN(){return null}function VN(e,t){var n=typeof e=="function"?e:t8(e),i=t==null?FN:typeof t=="function"?t:Om(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)})}function YN(){var e=this.parentNode;e&&e.removeChild(this)}function GN(){return this.each(YN)}function $N(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function XN(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function PN(e){return this.select(e?XN:$N)}function ZN(e){return arguments.length?this.property("__data__",e):this.node().__data__}function QN(e){return function(t){e.call(this,t,this.__data__)}}function KN(e){return e.trim().split(/^|\s+/).map(function(t){var n="",i=t.indexOf(".");return i>=0&&(n=t.slice(i+1),t=t.slice(0,i)),{type:t,name:n}})}function JN(e){return function(){var t=this.__on;if(t){for(var n=0,i=-1,l=t.length,s;n<l;++n)s=t[n],(!e.type||s.type===e.type)&&s.name===e.name?this.removeEventListener(s.type,s.listener,s.options):t[++i]=s;++i?t.length=i:delete this.__on}}}function WN(e,t,n){return function(){var i=this.__on,l,s=QN(t);if(i){for(var u=0,f=i.length;u<f;++u)if((l=i[u]).type===e.type&&l.name===e.name){this.removeEventListener(l.type,l.listener,l.options),this.addEventListener(l.type,l.listener=s,l.options=n),l.value=t;return}}this.addEventListener(e.type,s,n),l={type:e.type,name:e.name,value:t,listener:s,options:n},i?i.push(l):this.__on=[l]}}function eD(e,t,n){var i=KN(e+""),l,s=i.length,u;if(arguments.length<2){var f=this.node().__on;if(f){for(var h=0,d=f.length,p;h<d;++h)for(l=0,p=f[h];l<s;++l)if((u=i[l]).type===p.type&&u.name===p.name)return p.value}return}for(f=t?WN:JN,l=0;l<s;++l)this.each(f(i[l],t,n));return this}function f8(e,t,n){var i=l8(e),l=i.CustomEvent;typeof l=="function"?l=new l(t,n):(l=i.document.createEvent("Event"),n?(l.initEvent(t,n.bubbles,n.cancelable),l.detail=n.detail):l.initEvent(t,!1,!1)),e.dispatchEvent(l)}function tD(e,t){return function(){return f8(this,e,t)}}function nD(e,t){return function(){return f8(this,e,t.apply(this,arguments))}}function rD(e,t){return this.each((typeof t=="function"?nD:tD)(e,t))}function*iD(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var i=e[t],l=0,s=i.length,u;l<s;++l)(u=i[l])&&(yield u)}var h8=[null];function rr(e,t){this._groups=e,this._parents=t}function Zs(){return new rr([[document.documentElement]],h8)}function aD(){return this}rr.prototype=Zs.prototype={constructor:rr,select:Dz,selectAll:Bz,selectChild:qz,selectChildren:Vz,filter:Yz,data:Qz,enter:Gz,exit:Jz,join:Wz,merge:eN,selection:aD,order:tN,sort:nN,call:iN,nodes:aN,node:lN,size:oN,empty:sN,each:uN,attr:gN,style:bN,property:EN,classed:MN,text:_N,html:LN,raise:jN,lower:IN,append:UN,insert:VN,remove:GN,clone:PN,datum:ZN,on:eD,dispatch:rD,[Symbol.iterator]:iD};function Wn(e){return typeof e=="string"?new rr([[document.querySelector(e)]],[document.documentElement]):new rr([[e]],h8)}function lD(e){let t;for(;t=e.sourceEvent;)e=t;return e}function Sr(e,t){if(e=lD(e),t===void 0&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var i=n.createSVGPoint();return i.x=e.clientX,i.y=e.clientY,i=i.matrixTransform(t.getScreenCTM().inverse()),[i.x,i.y]}if(t.getBoundingClientRect){var l=t.getBoundingClientRect();return[e.clientX-l.left-t.clientLeft,e.clientY-l.top-t.clientTop]}}return[e.pageX,e.pageY]}const oD={passive:!1},_s={capture:!0,passive:!1};function $d(e){e.stopImmediatePropagation()}function Zl(e){e.preventDefault(),e.stopImmediatePropagation()}function d8(e){var t=e.document.documentElement,n=Wn(e).on("dragstart.drag",Zl,_s);"onselectstart"in t?n.on("selectstart.drag",Zl,_s):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function m8(e,t){var n=e.document.documentElement,i=Wn(e).on("dragstart.drag",null);t&&(i.on("click.drag",Zl,_s),setTimeout(function(){i.on("click.drag",null)},0)),"onselectstart"in n?i.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}const R0=e=>()=>e;function H1(e,{sourceEvent:t,subject:n,target:i,identifier:l,active:s,x:u,y:f,dx:h,dy:d,dispatch:p}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:i,enumerable:!0,configurable:!0},identifier:{value:l,enumerable:!0,configurable:!0},active:{value:s,enumerable:!0,configurable:!0},x:{value:u,enumerable:!0,configurable:!0},y:{value:f,enumerable:!0,configurable:!0},dx:{value:h,enumerable:!0,configurable:!0},dy:{value:d,enumerable:!0,configurable:!0},_:{value:p}})}H1.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function sD(e){return!e.ctrlKey&&!e.button}function uD(){return this.parentNode}function cD(e,t){return t??{x:e.x,y:e.y}}function fD(){return navigator.maxTouchPoints||"ontouchstart"in this}function p8(){var e=sD,t=uD,n=cD,i=fD,l={},s=Hc("start","drag","end"),u=0,f,h,d,p,m=0;function v(B){B.on("mousedown.drag",x).filter(i).on("touchstart.drag",C).on("touchmove.drag",E,oD).on("touchend.drag touchcancel.drag",N).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function x(B,I){if(!(p||!e.call(this,B,I))){var D=T(this,t.call(this,B,I),B,I,"mouse");D&&(Wn(B.view).on("mousemove.drag",w,_s).on("mouseup.drag",A,_s),d8(B.view),$d(B),d=!1,f=B.clientX,h=B.clientY,D("start",B))}}function w(B){if(Zl(B),!d){var I=B.clientX-f,D=B.clientY-h;d=I*I+D*D>m}l.mouse("drag",B)}function A(B){Wn(B.view).on("mousemove.drag mouseup.drag",null),m8(B.view,d),Zl(B),l.mouse("end",B)}function C(B,I){if(e.call(this,B,I)){var D=B.changedTouches,U=t.call(this,B,I),J=D.length,P,V;for(P=0;P<J;++P)(V=T(this,U,B,I,D[P].identifier,D[P]))&&($d(B),V("start",B,D[P]))}}function E(B){var I=B.changedTouches,D=I.length,U,J;for(U=0;U<D;++U)(J=l[I[U].identifier])&&(Zl(B),J("drag",B,I[U]))}function N(B){var I=B.changedTouches,D=I.length,U,J;for(p&&clearTimeout(p),p=setTimeout(function(){p=null},500),U=0;U<D;++U)(J=l[I[U].identifier])&&($d(B),J("end",B,I[U]))}function T(B,I,D,U,J,P){var V=s.copy(),X=Sr(P||D,I),W,ce,q;if((q=n.call(B,new H1("beforestart",{sourceEvent:D,target:v,identifier:J,active:u,x:X[0],y:X[1],dx:0,dy:0,dispatch:V}),U))!=null)return W=q.x-X[0]||0,ce=q.y-X[1]||0,function F(L,Y,K){var ne=X,R;switch(L){case"start":l[J]=F,R=u++;break;case"end":delete l[J],--u;case"drag":X=Sr(K||Y,I),R=u;break}V.call(L,B,new H1(L,{sourceEvent:Y,subject:q,target:v,identifier:J,active:R,x:X[0]+W,y:X[1]+ce,dx:X[0]-ne[0],dy:X[1]-ne[1],dispatch:V}),U)}}return v.filter=function(B){return arguments.length?(e=typeof B=="function"?B:R0(!!B),v):e},v.container=function(B){return arguments.length?(t=typeof B=="function"?B:R0(B),v):t},v.subject=function(B){return arguments.length?(n=typeof B=="function"?B:R0(B),v):n},v.touchable=function(B){return arguments.length?(i=typeof B=="function"?B:R0(!!B),v):i},v.on=function(){var B=s.on.apply(s,arguments);return B===s?v:B},v.clickDistance=function(B){return arguments.length?(m=(B=+B)*B,v):Math.sqrt(m)},v}function Bm(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function g8(e,t){var n=Object.create(e.prototype);for(var i in t)n[i]=t[i];return n}function Qs(){}var Os=.7,sc=1/Os,Ql="\\s*([+-]?\\d+)\\s*",Rs="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ur="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",hD=/^#([0-9a-f]{3,8})$/,dD=new RegExp(`^rgb\\(${Ql},${Ql},${Ql}\\)$`),mD=new RegExp(`^rgb\\(${Ur},${Ur},${Ur}\\)$`),pD=new RegExp(`^rgba\\(${Ql},${Ql},${Ql},${Rs}\\)$`),gD=new RegExp(`^rgba\\(${Ur},${Ur},${Ur},${Rs}\\)$`),yD=new RegExp(`^hsl\\(${Rs},${Ur},${Ur}\\)$`),vD=new RegExp(`^hsla\\(${Rs},${Ur},${Ur},${Rs}\\)$`),R5={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Bm(Qs,Pa,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:B5,formatHex:B5,formatHex8:xD,formatHsl:bD,formatRgb:L5,toString:L5});function B5(){return this.rgb().formatHex()}function xD(){return this.rgb().formatHex8()}function bD(){return y8(this).formatHsl()}function L5(){return this.rgb().formatRgb()}function Pa(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=hD.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?H5(t):n===3?new Un(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?B0(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?B0(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=dD.exec(e))?new Un(t[1],t[2],t[3],1):(t=mD.exec(e))?new Un(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=pD.exec(e))?B0(t[1],t[2],t[3],t[4]):(t=gD.exec(e))?B0(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=yD.exec(e))?I5(t[1],t[2]/100,t[3]/100,1):(t=vD.exec(e))?I5(t[1],t[2]/100,t[3]/100,t[4]):R5.hasOwnProperty(e)?H5(R5[e]):e==="transparent"?new Un(NaN,NaN,NaN,0):null}function H5(e){return new Un(e>>16&255,e>>8&255,e&255,1)}function B0(e,t,n,i){return i<=0&&(e=t=n=NaN),new Un(e,t,n,i)}function wD(e){return e instanceof Qs||(e=Pa(e)),e?(e=e.rgb(),new Un(e.r,e.g,e.b,e.opacity)):new Un}function j1(e,t,n,i){return arguments.length===1?wD(e):new Un(e,t,n,i??1)}function Un(e,t,n,i){this.r=+e,this.g=+t,this.b=+n,this.opacity=+i}Bm(Un,j1,g8(Qs,{brighter(e){return e=e==null?sc:Math.pow(sc,e),new Un(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Os:Math.pow(Os,e),new Un(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Un(Ga(this.r),Ga(this.g),Ga(this.b),uc(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:j5,formatHex:j5,formatHex8:SD,formatRgb:q5,toString:q5}));function j5(){return`#${Ya(this.r)}${Ya(this.g)}${Ya(this.b)}`}function SD(){return`#${Ya(this.r)}${Ya(this.g)}${Ya(this.b)}${Ya((isNaN(this.opacity)?1:this.opacity)*255)}`}function q5(){const e=uc(this.opacity);return`${e===1?"rgb(":"rgba("}${Ga(this.r)}, ${Ga(this.g)}, ${Ga(this.b)}${e===1?")":`, ${e})`}`}function uc(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ga(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ya(e){return e=Ga(e),(e<16?"0":"")+e.toString(16)}function I5(e,t,n,i){return i<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new kr(e,t,n,i)}function y8(e){if(e instanceof kr)return new kr(e.h,e.s,e.l,e.opacity);if(e instanceof Qs||(e=Pa(e)),!e)return new kr;if(e instanceof kr)return e;e=e.rgb();var t=e.r/255,n=e.g/255,i=e.b/255,l=Math.min(t,n,i),s=Math.max(t,n,i),u=NaN,f=s-l,h=(s+l)/2;return f?(t===s?u=(n-i)/f+(n<i)*6:n===s?u=(i-t)/f+2:u=(t-n)/f+4,f/=h<.5?s+l:2-s-l,u*=60):f=h>0&&h<1?0:u,new kr(u,f,h,e.opacity)}function kD(e,t,n,i){return arguments.length===1?y8(e):new kr(e,t,n,i??1)}function kr(e,t,n,i){this.h=+e,this.s=+t,this.l=+n,this.opacity=+i}Bm(kr,kD,g8(Qs,{brighter(e){return e=e==null?sc:Math.pow(sc,e),new kr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Os:Math.pow(Os,e),new kr(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*t,l=2*n-i;return new Un(Xd(e>=240?e-240:e+120,l,i),Xd(e,l,i),Xd(e<120?e+240:e-120,l,i),this.opacity)},clamp(){return new kr(U5(this.h),L0(this.s),L0(this.l),uc(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=uc(this.opacity);return`${e===1?"hsl(":"hsla("}${U5(this.h)}, ${L0(this.s)*100}%, ${L0(this.l)*100}%${e===1?")":`, ${e})`}`}}));function U5(e){return e=(e||0)%360,e<0?e+360:e}function L0(e){return Math.max(0,Math.min(1,e||0))}function Xd(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const Lm=e=>()=>e;function ED(e,t){return function(n){return e+n*t}}function AD(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(i){return Math.pow(e+i*t,n)}}function CD(e){return(e=+e)==1?v8:function(t,n){return n-t?AD(t,n,e):Lm(isNaN(t)?n:t)}}function v8(e,t){var n=t-e;return n?ED(e,n):Lm(isNaN(e)?t:e)}const cc=(function e(t){var n=CD(t);function i(l,s){var u=n((l=j1(l)).r,(s=j1(s)).r),f=n(l.g,s.g),h=n(l.b,s.b),d=v8(l.opacity,s.opacity);return function(p){return l.r=u(p),l.g=f(p),l.b=h(p),l.opacity=d(p),l+""}}return i.gamma=e,i})(1);function TD(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,i=t.slice(),l;return function(s){for(l=0;l<n;++l)i[l]=e[l]*(1-s)+t[l]*s;return i}}function MD(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function zD(e,t){var n=t?t.length:0,i=e?Math.min(n,e.length):0,l=new Array(i),s=new Array(n),u;for(u=0;u<i;++u)l[u]=Es(e[u],t[u]);for(;u<n;++u)s[u]=t[u];return function(f){for(u=0;u<i;++u)s[u]=l[u](f);return s}}function ND(e,t){var n=new Date;return e=+e,t=+t,function(i){return n.setTime(e*(1-i)+t*i),n}}function qr(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function DD(e,t){var n={},i={},l;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(l in t)l in e?n[l]=Es(e[l],t[l]):i[l]=t[l];return function(s){for(l in n)i[l]=n[l](s);return i}}var q1=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Pd=new RegExp(q1.source,"g");function _D(e){return function(){return e}}function OD(e){return function(t){return e(t)+""}}function x8(e,t){var n=q1.lastIndex=Pd.lastIndex=0,i,l,s,u=-1,f=[],h=[];for(e=e+"",t=t+"";(i=q1.exec(e))&&(l=Pd.exec(t));)(s=l.index)>n&&(s=t.slice(n,s),f[u]?f[u]+=s:f[++u]=s),(i=i[0])===(l=l[0])?f[u]?f[u]+=l:f[++u]=l:(f[++u]=null,h.push({i:u,x:qr(i,l)})),n=Pd.lastIndex;return n<t.length&&(s=t.slice(n),f[u]?f[u]+=s:f[++u]=s),f.length<2?h[0]?OD(h[0].x):_D(t):(t=h.length,function(d){for(var p=0,m;p<t;++p)f[(m=h[p]).i]=m.x(d);return f.join("")})}function Es(e,t){var n=typeof t,i;return t==null||n==="boolean"?Lm(t):(n==="number"?qr:n==="string"?(i=Pa(t))?(t=i,cc):x8:t instanceof Pa?cc:t instanceof Date?ND:MD(t)?TD:Array.isArray(t)?zD:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?DD:qr)(e,t)}var F5=180/Math.PI,I1={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function b8(e,t,n,i,l,s){var u,f,h;return(u=Math.sqrt(e*e+t*t))&&(e/=u,t/=u),(h=e*n+t*i)&&(n-=e*h,i-=t*h),(f=Math.sqrt(n*n+i*i))&&(n/=f,i/=f,h/=f),e*i<t*n&&(e=-e,t=-t,h=-h,u=-u),{translateX:l,translateY:s,rotate:Math.atan2(t,e)*F5,skewX:Math.atan(h)*F5,scaleX:u,scaleY:f}}var H0;function RD(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?I1:b8(t.a,t.b,t.c,t.d,t.e,t.f)}function BD(e){return e==null||(H0||(H0=document.createElementNS("http://www.w3.org/2000/svg","g")),H0.setAttribute("transform",e),!(e=H0.transform.baseVal.consolidate()))?I1:(e=e.matrix,b8(e.a,e.b,e.c,e.d,e.e,e.f))}function w8(e,t,n,i){function l(d){return d.length?d.pop()+" ":""}function s(d,p,m,v,x,w){if(d!==m||p!==v){var A=x.push("translate(",null,t,null,n);w.push({i:A-4,x:qr(d,m)},{i:A-2,x:qr(p,v)})}else(m||v)&&x.push("translate("+m+t+v+n)}function u(d,p,m,v){d!==p?(d-p>180?p+=360:p-d>180&&(d+=360),v.push({i:m.push(l(m)+"rotate(",null,i)-2,x:qr(d,p)})):p&&m.push(l(m)+"rotate("+p+i)}function f(d,p,m,v){d!==p?v.push({i:m.push(l(m)+"skewX(",null,i)-2,x:qr(d,p)}):p&&m.push(l(m)+"skewX("+p+i)}function h(d,p,m,v,x,w){if(d!==m||p!==v){var A=x.push(l(x)+"scale(",null,",",null,")");w.push({i:A-4,x:qr(d,m)},{i:A-2,x:qr(p,v)})}else(m!==1||v!==1)&&x.push(l(x)+"scale("+m+","+v+")")}return function(d,p){var m=[],v=[];return d=e(d),p=e(p),s(d.translateX,d.translateY,p.translateX,p.translateY,m,v),u(d.rotate,p.rotate,m,v),f(d.skewX,p.skewX,m,v),h(d.scaleX,d.scaleY,p.scaleX,p.scaleY,m,v),d=p=null,function(x){for(var w=-1,A=v.length,C;++w<A;)m[(C=v[w]).i]=C.x(x);return m.join("")}}}var LD=w8(RD,"px, ","px)","deg)"),HD=w8(BD,", ",")",")"),jD=1e-12;function V5(e){return((e=Math.exp(e))+1/e)/2}function qD(e){return((e=Math.exp(e))-1/e)/2}function ID(e){return((e=Math.exp(2*e))-1)/(e+1)}const X0=(function e(t,n,i){function l(s,u){var f=s[0],h=s[1],d=s[2],p=u[0],m=u[1],v=u[2],x=p-f,w=m-h,A=x*x+w*w,C,E;if(A<jD)E=Math.log(v/d)/t,C=function(U){return[f+U*x,h+U*w,d*Math.exp(t*U*E)]};else{var N=Math.sqrt(A),T=(v*v-d*d+i*A)/(2*d*n*N),B=(v*v-d*d-i*A)/(2*v*n*N),I=Math.log(Math.sqrt(T*T+1)-T),D=Math.log(Math.sqrt(B*B+1)-B);E=(D-I)/t,C=function(U){var J=U*E,P=V5(I),V=d/(n*N)*(P*ID(t*J+I)-qD(I));return[f+V*x,h+V*w,d*P/V5(t*J+I)]}}return C.duration=E*1e3*t/Math.SQRT2,C}return l.rho=function(s){var u=Math.max(.001,+s),f=u*u,h=f*f;return e(u,f,h)},l})(Math.SQRT2,2,4);var no=0,vs=0,ps=0,S8=1e3,fc,xs,hc=0,Za=0,qc=0,Bs=typeof performance=="object"&&performance.now?performance:Date,k8=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Hm(){return Za||(k8(UD),Za=Bs.now()+qc)}function UD(){Za=0}function dc(){this._call=this._time=this._next=null}dc.prototype=E8.prototype={constructor:dc,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?Hm():+n)+(t==null?0:+t),!this._next&&xs!==this&&(xs?xs._next=this:fc=this,xs=this),this._call=e,this._time=n,U1()},stop:function(){this._call&&(this._call=null,this._time=1/0,U1())}};function E8(e,t,n){var i=new dc;return i.restart(e,t,n),i}function FD(){Hm(),++no;for(var e=fc,t;e;)(t=Za-e._time)>=0&&e._call.call(void 0,t),e=e._next;--no}function Y5(){Za=(hc=Bs.now())+qc,no=vs=0;try{FD()}finally{no=0,YD(),Za=0}}function VD(){var e=Bs.now(),t=e-hc;t>S8&&(qc-=t,hc=e)}function YD(){for(var e,t=fc,n,i=1/0;t;)t._call?(i>t._time&&(i=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:fc=n);xs=e,U1(i)}function U1(e){if(!no){vs&&(vs=clearTimeout(vs));var t=e-Za;t>24?(e<1/0&&(vs=setTimeout(Y5,e-Bs.now()-qc)),ps&&(ps=clearInterval(ps))):(ps||(hc=Bs.now(),ps=setInterval(VD,S8)),no=1,k8(Y5))}}function G5(e,t,n){var i=new dc;return t=t==null?0:+t,i.restart(l=>{i.stop(),e(l+t)},t,n),i}var GD=Hc("start","end","cancel","interrupt"),$D=[],A8=0,$5=1,F1=2,P0=3,X5=4,V1=5,Z0=6;function Ic(e,t,n,i,l,s){var u=e.__transition;if(!u)e.__transition={};else if(n in u)return;XD(e,n,{name:t,index:i,group:l,on:GD,tween:$D,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:A8})}function jm(e,t){var n=Tr(e,t);if(n.state>A8)throw new Error("too late; already scheduled");return n}function Xr(e,t){var n=Tr(e,t);if(n.state>P0)throw new Error("too late; already running");return n}function Tr(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function XD(e,t,n){var i=e.__transition,l;i[t]=n,n.timer=E8(s,0,n.time);function s(d){n.state=$5,n.timer.restart(u,n.delay,n.time),n.delay<=d&&u(d-n.delay)}function u(d){var p,m,v,x;if(n.state!==$5)return h();for(p in i)if(x=i[p],x.name===n.name){if(x.state===P0)return G5(u);x.state===X5?(x.state=Z0,x.timer.stop(),x.on.call("interrupt",e,e.__data__,x.index,x.group),delete i[p]):+p<t&&(x.state=Z0,x.timer.stop(),x.on.call("cancel",e,e.__data__,x.index,x.group),delete i[p])}if(G5(function(){n.state===P0&&(n.state=X5,n.timer.restart(f,n.delay,n.time),f(d))}),n.state=F1,n.on.call("start",e,e.__data__,n.index,n.group),n.state===F1){for(n.state=P0,l=new Array(v=n.tween.length),p=0,m=-1;p<v;++p)(x=n.tween[p].value.call(e,e.__data__,n.index,n.group))&&(l[++m]=x);l.length=m+1}}function f(d){for(var p=d<n.duration?n.ease.call(null,d/n.duration):(n.timer.restart(h),n.state=V1,1),m=-1,v=l.length;++m<v;)l[m].call(e,p);n.state===V1&&(n.on.call("end",e,e.__data__,n.index,n.group),h())}function h(){n.state=Z0,n.timer.stop(),delete i[t];for(var d in i)return;delete e.__transition}}function Q0(e,t){var n=e.__transition,i,l,s=!0,u;if(n){t=t==null?null:t+"";for(u in n){if((i=n[u]).name!==t){s=!1;continue}l=i.state>F1&&i.state<V1,i.state=Z0,i.timer.stop(),i.on.call(l?"interrupt":"cancel",e,e.__data__,i.index,i.group),delete n[u]}s&&delete e.__transition}}function PD(e){return this.each(function(){Q0(this,e)})}function ZD(e,t){var n,i;return function(){var l=Xr(this,e),s=l.tween;if(s!==n){i=n=s;for(var u=0,f=i.length;u<f;++u)if(i[u].name===t){i=i.slice(),i.splice(u,1);break}}l.tween=i}}function QD(e,t,n){var i,l;if(typeof n!="function")throw new Error;return function(){var s=Xr(this,e),u=s.tween;if(u!==i){l=(i=u).slice();for(var f={name:t,value:n},h=0,d=l.length;h<d;++h)if(l[h].name===t){l[h]=f;break}h===d&&l.push(f)}s.tween=l}}function KD(e,t){var n=this._id;if(e+="",arguments.length<2){for(var i=Tr(this.node(),n).tween,l=0,s=i.length,u;l<s;++l)if((u=i[l]).name===e)return u.value;return null}return this.each((t==null?ZD:QD)(n,e,t))}function qm(e,t,n){var i=e._id;return e.each(function(){var l=Xr(this,i);(l.value||(l.value={}))[t]=n.apply(this,arguments)}),function(l){return Tr(l,i).value[t]}}function C8(e,t){var n;return(typeof t=="number"?qr:t instanceof Pa?cc:(n=Pa(t))?(t=n,cc):x8)(e,t)}function JD(e){return function(){this.removeAttribute(e)}}function WD(e){return function(){this.removeAttributeNS(e.space,e.local)}}function e_(e,t,n){var i,l=n+"",s;return function(){var u=this.getAttribute(e);return u===l?null:u===i?s:s=t(i=u,n)}}function t_(e,t,n){var i,l=n+"",s;return function(){var u=this.getAttributeNS(e.space,e.local);return u===l?null:u===i?s:s=t(i=u,n)}}function n_(e,t,n){var i,l,s;return function(){var u,f=n(this),h;return f==null?void this.removeAttribute(e):(u=this.getAttribute(e),h=f+"",u===h?null:u===i&&h===l?s:(l=h,s=t(i=u,f)))}}function r_(e,t,n){var i,l,s;return function(){var u,f=n(this),h;return f==null?void this.removeAttributeNS(e.space,e.local):(u=this.getAttributeNS(e.space,e.local),h=f+"",u===h?null:u===i&&h===l?s:(l=h,s=t(i=u,f)))}}function i_(e,t){var n=jc(e),i=n==="transform"?HD:C8;return this.attrTween(e,typeof t=="function"?(n.local?r_:n_)(n,i,qm(this,"attr."+e,t)):t==null?(n.local?WD:JD)(n):(n.local?t_:e_)(n,i,t))}function a_(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function l_(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function o_(e,t){var n,i;function l(){var s=t.apply(this,arguments);return s!==i&&(n=(i=s)&&l_(e,s)),n}return l._value=t,l}function s_(e,t){var n,i;function l(){var s=t.apply(this,arguments);return s!==i&&(n=(i=s)&&a_(e,s)),n}return l._value=t,l}function u_(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;var i=jc(e);return this.tween(n,(i.local?o_:s_)(i,t))}function c_(e,t){return function(){jm(this,e).delay=+t.apply(this,arguments)}}function f_(e,t){return t=+t,function(){jm(this,e).delay=t}}function h_(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?c_:f_)(t,e)):Tr(this.node(),t).delay}function d_(e,t){return function(){Xr(this,e).duration=+t.apply(this,arguments)}}function m_(e,t){return t=+t,function(){Xr(this,e).duration=t}}function p_(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?d_:m_)(t,e)):Tr(this.node(),t).duration}function g_(e,t){if(typeof t!="function")throw new Error;return function(){Xr(this,e).ease=t}}function y_(e){var t=this._id;return arguments.length?this.each(g_(t,e)):Tr(this.node(),t).ease}function v_(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;Xr(this,e).ease=n}}function x_(e){if(typeof e!="function")throw new Error;return this.each(v_(this._id,e))}function b_(e){typeof e!="function"&&(e=r8(e));for(var t=this._groups,n=t.length,i=new Array(n),l=0;l<n;++l)for(var s=t[l],u=s.length,f=i[l]=[],h,d=0;d<u;++d)(h=s[d])&&e.call(h,h.__data__,d,s)&&f.push(h);return new wi(i,this._parents,this._name,this._id)}function w_(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,i=t.length,l=n.length,s=Math.min(i,l),u=new Array(i),f=0;f<s;++f)for(var h=t[f],d=n[f],p=h.length,m=u[f]=new Array(p),v,x=0;x<p;++x)(v=h[x]||d[x])&&(m[x]=v);for(;f<i;++f)u[f]=t[f];return new wi(u,this._parents,this._name,this._id)}function S_(e){return(e+"").trim().split(/^|\s+/).every(function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||t==="start"})}function k_(e,t,n){var i,l,s=S_(t)?jm:Xr;return function(){var u=s(this,e),f=u.on;f!==i&&(l=(i=f).copy()).on(t,n),u.on=l}}function E_(e,t){var n=this._id;return arguments.length<2?Tr(this.node(),n).on.on(e):this.each(k_(n,e,t))}function A_(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function C_(){return this.on("end.remove",A_(this._id))}function T_(e){var t=this._name,n=this._id;typeof e!="function"&&(e=Om(e));for(var i=this._groups,l=i.length,s=new Array(l),u=0;u<l;++u)for(var f=i[u],h=f.length,d=s[u]=new Array(h),p,m,v=0;v<h;++v)(p=f[v])&&(m=e.call(p,p.__data__,v,f))&&("__data__"in p&&(m.__data__=p.__data__),d[v]=m,Ic(d[v],t,n,v,d,Tr(p,n)));return new wi(s,this._parents,t,n)}function M_(e){var t=this._name,n=this._id;typeof e!="function"&&(e=n8(e));for(var i=this._groups,l=i.length,s=[],u=[],f=0;f<l;++f)for(var h=i[f],d=h.length,p,m=0;m<d;++m)if(p=h[m]){for(var v=e.call(p,p.__data__,m,h),x,w=Tr(p,n),A=0,C=v.length;A<C;++A)(x=v[A])&&Ic(x,t,n,A,v,w);s.push(v),u.push(p)}return new wi(s,u,t,n)}var z_=Zs.prototype.constructor;function N_(){return new z_(this._groups,this._parents)}function D_(e,t){var n,i,l;return function(){var s=to(this,e),u=(this.style.removeProperty(e),to(this,e));return s===u?null:s===n&&u===i?l:l=t(n=s,i=u)}}function T8(e){return function(){this.style.removeProperty(e)}}function __(e,t,n){var i,l=n+"",s;return function(){var u=to(this,e);return u===l?null:u===i?s:s=t(i=u,n)}}function O_(e,t,n){var i,l,s;return function(){var u=to(this,e),f=n(this),h=f+"";return f==null&&(h=f=(this.style.removeProperty(e),to(this,e))),u===h?null:u===i&&h===l?s:(l=h,s=t(i=u,f))}}function R_(e,t){var n,i,l,s="style."+t,u="end."+s,f;return function(){var h=Xr(this,e),d=h.on,p=h.value[s]==null?f||(f=T8(t)):void 0;(d!==n||l!==p)&&(i=(n=d).copy()).on(u,l=p),h.on=i}}function B_(e,t,n){var i=(e+="")=="transform"?LD:C8;return t==null?this.styleTween(e,D_(e,i)).on("end.style."+e,T8(e)):typeof t=="function"?this.styleTween(e,O_(e,i,qm(this,"style."+e,t))).each(R_(this._id,e)):this.styleTween(e,__(e,i,t),n).on("end.style."+e,null)}function L_(e,t,n){return function(i){this.style.setProperty(e,t.call(this,i),n)}}function H_(e,t,n){var i,l;function s(){var u=t.apply(this,arguments);return u!==l&&(i=(l=u)&&L_(e,u,n)),i}return s._value=t,s}function j_(e,t,n){var i="style."+(e+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(t==null)return this.tween(i,null);if(typeof t!="function")throw new Error;return this.tween(i,H_(e,t,n??""))}function q_(e){return function(){this.textContent=e}}function I_(e){return function(){var t=e(this);this.textContent=t??""}}function U_(e){return this.tween("text",typeof e=="function"?I_(qm(this,"text",e)):q_(e==null?"":e+""))}function F_(e){return function(t){this.textContent=e.call(this,t)}}function V_(e){var t,n;function i(){var l=e.apply(this,arguments);return l!==n&&(t=(n=l)&&F_(l)),t}return i._value=e,i}function Y_(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,V_(e))}function G_(){for(var e=this._name,t=this._id,n=M8(),i=this._groups,l=i.length,s=0;s<l;++s)for(var u=i[s],f=u.length,h,d=0;d<f;++d)if(h=u[d]){var p=Tr(h,t);Ic(h,e,n,d,u,{time:p.time+p.delay+p.duration,delay:0,duration:p.duration,ease:p.ease})}return new wi(i,this._parents,e,n)}function $_(){var e,t,n=this,i=n._id,l=n.size();return new Promise(function(s,u){var f={value:u},h={value:function(){--l===0&&s()}};n.each(function(){var d=Xr(this,i),p=d.on;p!==e&&(t=(e=p).copy(),t._.cancel.push(f),t._.interrupt.push(f),t._.end.push(h)),d.on=t}),l===0&&s()})}var X_=0;function wi(e,t,n,i){this._groups=e,this._parents=t,this._name=n,this._id=i}function M8(){return++X_}var gi=Zs.prototype;wi.prototype={constructor:wi,select:T_,selectAll:M_,selectChild:gi.selectChild,selectChildren:gi.selectChildren,filter:b_,merge:w_,selection:N_,transition:G_,call:gi.call,nodes:gi.nodes,node:gi.node,size:gi.size,empty:gi.empty,each:gi.each,on:E_,attr:i_,attrTween:u_,style:B_,styleTween:j_,text:U_,textTween:Y_,remove:C_,tween:KD,delay:h_,duration:p_,ease:y_,easeVarying:x_,end:$_,[Symbol.iterator]:gi[Symbol.iterator]};function P_(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Z_={time:null,delay:0,duration:250,ease:P_};function Q_(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}function K_(e){var t,n;e instanceof wi?(t=e._id,e=e._name):(t=M8(),(n=Z_).time=Hm(),e=e==null?null:e+"");for(var i=this._groups,l=i.length,s=0;s<l;++s)for(var u=i[s],f=u.length,h,d=0;d<f;++d)(h=u[d])&&Ic(h,e,t,d,u,n||Q_(h,t));return new wi(i,this._parents,e,t)}Zs.prototype.interrupt=PD;Zs.prototype.transition=K_;const j0=e=>()=>e;function J_(e,{sourceEvent:t,target:n,transform:i,dispatch:l}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:i,enumerable:!0,configurable:!0},_:{value:l}})}function vi(e,t,n){this.k=e,this.x=t,this.y=n}vi.prototype={constructor:vi,scale:function(e){return e===1?this:new vi(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new vi(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Uc=new vi(1,0,0);z8.prototype=vi.prototype;function z8(e){for(;!e.__zoom;)if(!(e=e.parentNode))return Uc;return e.__zoom}function Zd(e){e.stopImmediatePropagation()}function gs(e){e.preventDefault(),e.stopImmediatePropagation()}function W_(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function eO(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function P5(){return this.__zoom||Uc}function tO(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function nO(){return navigator.maxTouchPoints||"ontouchstart"in this}function rO(e,t,n){var i=e.invertX(t[0][0])-n[0][0],l=e.invertX(t[1][0])-n[1][0],s=e.invertY(t[0][1])-n[0][1],u=e.invertY(t[1][1])-n[1][1];return e.translate(l>i?(i+l)/2:Math.min(0,i)||Math.max(0,l),u>s?(s+u)/2:Math.min(0,s)||Math.max(0,u))}function N8(){var e=W_,t=eO,n=rO,i=tO,l=nO,s=[0,1/0],u=[[-1/0,-1/0],[1/0,1/0]],f=250,h=X0,d=Hc("start","zoom","end"),p,m,v,x=500,w=150,A=0,C=10;function E(q){q.property("__zoom",P5).on("wheel.zoom",J,{passive:!1}).on("mousedown.zoom",P).on("dblclick.zoom",V).filter(l).on("touchstart.zoom",X).on("touchmove.zoom",W).on("touchend.zoom touchcancel.zoom",ce).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}E.transform=function(q,F,L,Y){var K=q.selection?q.selection():q;K.property("__zoom",P5),q!==K?I(q,F,L,Y):K.interrupt().each(function(){D(this,arguments).event(Y).start().zoom(null,typeof F=="function"?F.apply(this,arguments):F).end()})},E.scaleBy=function(q,F,L,Y){E.scaleTo(q,function(){var K=this.__zoom.k,ne=typeof F=="function"?F.apply(this,arguments):F;return K*ne},L,Y)},E.scaleTo=function(q,F,L,Y){E.transform(q,function(){var K=t.apply(this,arguments),ne=this.__zoom,R=L==null?B(K):typeof L=="function"?L.apply(this,arguments):L,j=ne.invert(R),Z=typeof F=="function"?F.apply(this,arguments):F;return n(T(N(ne,Z),R,j),K,u)},L,Y)},E.translateBy=function(q,F,L,Y){E.transform(q,function(){return n(this.__zoom.translate(typeof F=="function"?F.apply(this,arguments):F,typeof L=="function"?L.apply(this,arguments):L),t.apply(this,arguments),u)},null,Y)},E.translateTo=function(q,F,L,Y,K){E.transform(q,function(){var ne=t.apply(this,arguments),R=this.__zoom,j=Y==null?B(ne):typeof Y=="function"?Y.apply(this,arguments):Y;return n(Uc.translate(j[0],j[1]).scale(R.k).translate(typeof F=="function"?-F.apply(this,arguments):-F,typeof L=="function"?-L.apply(this,arguments):-L),ne,u)},Y,K)};function N(q,F){return F=Math.max(s[0],Math.min(s[1],F)),F===q.k?q:new vi(F,q.x,q.y)}function T(q,F,L){var Y=F[0]-L[0]*q.k,K=F[1]-L[1]*q.k;return Y===q.x&&K===q.y?q:new vi(q.k,Y,K)}function B(q){return[(+q[0][0]+ +q[1][0])/2,(+q[0][1]+ +q[1][1])/2]}function I(q,F,L,Y){q.on("start.zoom",function(){D(this,arguments).event(Y).start()}).on("interrupt.zoom end.zoom",function(){D(this,arguments).event(Y).end()}).tween("zoom",function(){var K=this,ne=arguments,R=D(K,ne).event(Y),j=t.apply(K,ne),Z=L==null?B(j):typeof L=="function"?L.apply(K,ne):L,_=Math.max(j[1][0]-j[0][0],j[1][1]-j[0][1]),se=K.__zoom,ve=typeof F=="function"?F.apply(K,ne):F,xe=h(se.invert(Z).concat(_/se.k),ve.invert(Z).concat(_/ve.k));return function(we){if(we===1)we=ve;else{var ye=xe(we),ke=_/ye[2];we=new vi(ke,Z[0]-ye[0]*ke,Z[1]-ye[1]*ke)}R.zoom(null,we)}})}function D(q,F,L){return!L&&q.__zooming||new U(q,F)}function U(q,F){this.that=q,this.args=F,this.active=0,this.sourceEvent=null,this.extent=t.apply(q,F),this.taps=0}U.prototype={event:function(q){return q&&(this.sourceEvent=q),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(q,F){return this.mouse&&q!=="mouse"&&(this.mouse[1]=F.invert(this.mouse[0])),this.touch0&&q!=="touch"&&(this.touch0[1]=F.invert(this.touch0[0])),this.touch1&&q!=="touch"&&(this.touch1[1]=F.invert(this.touch1[0])),this.that.__zoom=F,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(q){var F=Wn(this.that).datum();d.call(q,this.that,new J_(q,{sourceEvent:this.sourceEvent,target:E,transform:this.that.__zoom,dispatch:d}),F)}};function J(q,...F){if(!e.apply(this,arguments))return;var L=D(this,F).event(q),Y=this.__zoom,K=Math.max(s[0],Math.min(s[1],Y.k*Math.pow(2,i.apply(this,arguments)))),ne=Sr(q);if(L.wheel)(L.mouse[0][0]!==ne[0]||L.mouse[0][1]!==ne[1])&&(L.mouse[1]=Y.invert(L.mouse[0]=ne)),clearTimeout(L.wheel);else{if(Y.k===K)return;L.mouse=[ne,Y.invert(ne)],Q0(this),L.start()}gs(q),L.wheel=setTimeout(R,w),L.zoom("mouse",n(T(N(Y,K),L.mouse[0],L.mouse[1]),L.extent,u));function R(){L.wheel=null,L.end()}}function P(q,...F){if(v||!e.apply(this,arguments))return;var L=q.currentTarget,Y=D(this,F,!0).event(q),K=Wn(q.view).on("mousemove.zoom",Z,!0).on("mouseup.zoom",_,!0),ne=Sr(q,L),R=q.clientX,j=q.clientY;d8(q.view),Zd(q),Y.mouse=[ne,this.__zoom.invert(ne)],Q0(this),Y.start();function Z(se){if(gs(se),!Y.moved){var ve=se.clientX-R,xe=se.clientY-j;Y.moved=ve*ve+xe*xe>A}Y.event(se).zoom("mouse",n(T(Y.that.__zoom,Y.mouse[0]=Sr(se,L),Y.mouse[1]),Y.extent,u))}function _(se){K.on("mousemove.zoom mouseup.zoom",null),m8(se.view,Y.moved),gs(se),Y.event(se).end()}}function V(q,...F){if(e.apply(this,arguments)){var L=this.__zoom,Y=Sr(q.changedTouches?q.changedTouches[0]:q,this),K=L.invert(Y),ne=L.k*(q.shiftKey?.5:2),R=n(T(N(L,ne),Y,K),t.apply(this,F),u);gs(q),f>0?Wn(this).transition().duration(f).call(I,R,Y,q):Wn(this).call(E.transform,R,Y,q)}}function X(q,...F){if(e.apply(this,arguments)){var L=q.touches,Y=L.length,K=D(this,F,q.changedTouches.length===Y).event(q),ne,R,j,Z;for(Zd(q),R=0;R<Y;++R)j=L[R],Z=Sr(j,this),Z=[Z,this.__zoom.invert(Z),j.identifier],K.touch0?!K.touch1&&K.touch0[2]!==Z[2]&&(K.touch1=Z,K.taps=0):(K.touch0=Z,ne=!0,K.taps=1+!!p);p&&(p=clearTimeout(p)),ne&&(K.taps<2&&(m=Z[0],p=setTimeout(function(){p=null},x)),Q0(this),K.start())}}function W(q,...F){if(this.__zooming){var L=D(this,F).event(q),Y=q.changedTouches,K=Y.length,ne,R,j,Z;for(gs(q),ne=0;ne<K;++ne)R=Y[ne],j=Sr(R,this),L.touch0&&L.touch0[2]===R.identifier?L.touch0[0]=j:L.touch1&&L.touch1[2]===R.identifier&&(L.touch1[0]=j);if(R=L.that.__zoom,L.touch1){var _=L.touch0[0],se=L.touch0[1],ve=L.touch1[0],xe=L.touch1[1],we=(we=ve[0]-_[0])*we+(we=ve[1]-_[1])*we,ye=(ye=xe[0]-se[0])*ye+(ye=xe[1]-se[1])*ye;R=N(R,Math.sqrt(we/ye)),j=[(_[0]+ve[0])/2,(_[1]+ve[1])/2],Z=[(se[0]+xe[0])/2,(se[1]+xe[1])/2]}else if(L.touch0)j=L.touch0[0],Z=L.touch0[1];else return;L.zoom("touch",n(T(R,j,Z),L.extent,u))}}function ce(q,...F){if(this.__zooming){var L=D(this,F).event(q),Y=q.changedTouches,K=Y.length,ne,R;for(Zd(q),v&&clearTimeout(v),v=setTimeout(function(){v=null},x),ne=0;ne<K;++ne)R=Y[ne],L.touch0&&L.touch0[2]===R.identifier?delete L.touch0:L.touch1&&L.touch1[2]===R.identifier&&delete L.touch1;if(L.touch1&&!L.touch0&&(L.touch0=L.touch1,delete L.touch1),L.touch0)L.touch0[1]=this.__zoom.invert(L.touch0[0]);else if(L.end(),L.taps===2&&(R=Sr(R,this),Math.hypot(m[0]-R[0],m[1]-R[1])<C)){var j=Wn(this).on("dblclick.zoom");j&&j.apply(this,arguments)}}}return E.wheelDelta=function(q){return arguments.length?(i=typeof q=="function"?q:j0(+q),E):i},E.filter=function(q){return arguments.length?(e=typeof q=="function"?q:j0(!!q),E):e},E.touchable=function(q){return arguments.length?(l=typeof q=="function"?q:j0(!!q),E):l},E.extent=function(q){return arguments.length?(t=typeof q=="function"?q:j0([[+q[0][0],+q[0][1]],[+q[1][0],+q[1][1]]]),E):t},E.scaleExtent=function(q){return arguments.length?(s[0]=+q[0],s[1]=+q[1],E):[s[0],s[1]]},E.translateExtent=function(q){return arguments.length?(u[0][0]=+q[0][0],u[1][0]=+q[1][0],u[0][1]=+q[0][1],u[1][1]=+q[1][1],E):[[u[0][0],u[0][1]],[u[1][0],u[1][1]]]},E.constrain=function(q){return arguments.length?(n=q,E):n},E.duration=function(q){return arguments.length?(f=+q,E):f},E.interpolate=function(q){return arguments.length?(h=q,E):h},E.on=function(){var q=d.on.apply(d,arguments);return q===d?E:q},E.clickDistance=function(q){return arguments.length?(A=(q=+q)*q,E):Math.sqrt(A)},E.tapDistance=function(q){return arguments.length?(C=+q,E):C},E}const Fr={error001:()=>"[React Flow]: Seems like you have not used zustand provider as an ancestor. Help: https://reactflow.dev/error#001",error002:()=>"It looks like you've created a new nodeTypes or edgeTypes object. If this wasn't on purpose please define the nodeTypes/edgeTypes outside of the component or memoize them.",error003:e=>`Node type "${e}" not found. Using fallback type "default".`,error004:()=>"The React Flow parent container needs a width and a height to render the graph.",error005:()=>"Only child nodes can use a parent extent.",error006:()=>"Can't create edge. An edge needs a source and a target.",error007:e=>`The old edge with id=${e} does not exist.`,error009:e=>`Marker type "${e}" doesn't exist.`,error008:(e,{id:t,sourceHandle:n,targetHandle:i})=>`Couldn't create edge for ${e} handle id: "${e==="source"?n:i}", edge id: ${t}.`,error010:()=>"Handle: No node id found. Make sure to only use a Handle inside a custom Node.",error011:e=>`Edge type "${e}" not found. Using fallback type "default".`,error012:e=>`Node with id "${e}" does not exist, it may have been removed. This can happen when a node is deleted before the "onNodeClick" handler is called.`,error013:(e="react")=>`It seems that you haven't loaded the styles. Please import '@xyflow/${e}/dist/style.css' or base.css to make sure everything is working properly.`,error014:()=>"useNodeConnections: No node ID found. Call useNodeConnections inside a custom Node or provide a node ID.",error015:()=>"It seems that you are trying to drag a node that is not initialized. Please use onNodesChange as explained in the docs."},Ls=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],D8=["Enter"," ","Escape"],_8={"node.a11yDescription.default":"Press enter or space to select a node. Press delete to remove it and escape to cancel.","node.a11yDescription.keyboardDisabled":"Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.","node.a11yDescription.ariaLiveMessage":({direction:e,x:t,y:n})=>`Moved selected node ${e}. New position, x: ${t}, y: ${n}`,"edge.a11yDescription.default":"Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.","controls.ariaLabel":"Control Panel","controls.zoomIn.ariaLabel":"Zoom In","controls.zoomOut.ariaLabel":"Zoom Out","controls.fitView.ariaLabel":"Fit View","controls.interactive.ariaLabel":"Toggle Interactivity","minimap.ariaLabel":"Mini Map","handle.ariaLabel":"Handle"};var ro;(function(e){e.Strict="strict",e.Loose="loose"})(ro||(ro={}));var $a;(function(e){e.Free="free",e.Vertical="vertical",e.Horizontal="horizontal"})($a||($a={}));var Hs;(function(e){e.Partial="partial",e.Full="full"})(Hs||(Hs={}));const O8={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null,pointer:null};var oa;(function(e){e.Bezier="default",e.Straight="straight",e.Step="step",e.SmoothStep="smoothstep",e.SimpleBezier="simplebezier"})(oa||(oa={}));var js;(function(e){e.Arrow="arrow",e.ArrowClosed="arrowclosed"})(js||(js={}));var He;(function(e){e.Left="left",e.Top="top",e.Right="right",e.Bottom="bottom"})(He||(He={}));const Z5={[He.Left]:He.Right,[He.Right]:He.Left,[He.Top]:He.Bottom,[He.Bottom]:He.Top};function R8(e){return e===null?null:e?"valid":"invalid"}const B8=e=>"id"in e&&"source"in e&&"target"in e,iO=e=>"id"in e&&"position"in e&&!("source"in e)&&!("target"in e),Im=e=>"id"in e&&"internals"in e&&!("source"in e)&&!("target"in e),Ks=(e,t=[0,0])=>{const{width:n,height:i}=Ti(e),l=e.origin??t,s=n*l[0],u=i*l[1];return{x:e.position.x-s,y:e.position.y-u}},aO=(e,t={nodeOrigin:[0,0]})=>{if(e.length===0)return{x:0,y:0,width:0,height:0};const n=e.reduce((i,l)=>{const s=typeof l=="string";let u=!t.nodeLookup&&!s?l:void 0;t.nodeLookup&&(u=s?t.nodeLookup.get(l):Im(l)?l:t.nodeLookup.get(l.id));const f=u?mc(u,t.nodeOrigin):{x:0,y:0,x2:0,y2:0};return Fc(i,f)},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return Vc(n)},Js=(e,t={})=>{let n={x:1/0,y:1/0,x2:-1/0,y2:-1/0},i=!1;return e.forEach(l=>{(t.filter===void 0||t.filter(l))&&(n=Fc(n,mc(l)),i=!0)}),i?Vc(n):{x:0,y:0,width:0,height:0}},Um=(e,t,[n,i,l]=[0,0,1],s=!1,u=!1)=>{const f={...eu(t,[n,i,l]),width:t.width/l,height:t.height/l},h=[];for(const d of e.values()){const{measured:p,selectable:m=!0,hidden:v=!1}=d;if(u&&!m||v)continue;const x=p.width??d.width??d.initialWidth??null,w=p.height??d.height??d.initialHeight??null,A=qs(f,ao(d)),C=(x??0)*(w??0),E=s&&A>0;(!d.internals.handleBounds||E||A>=C||d.dragging)&&h.push(d)}return h},lO=(e,t)=>{const n=new Set;return e.forEach(i=>{n.add(i.id)}),t.filter(i=>n.has(i.source)||n.has(i.target))};function oO(e,t){const n=new Map,i=t?.nodes?new Set(t.nodes.map(l=>l.id)):null;return e.forEach(l=>{l.measured.width&&l.measured.height&&(t?.includeHiddenNodes||!l.hidden)&&(!i||i.has(l.id))&&n.set(l.id,l)}),n}async function sO({nodes:e,width:t,height:n,panZoom:i,minZoom:l,maxZoom:s},u){if(e.size===0)return Promise.resolve(!0);const f=oO(e,u),h=Js(f),d=Fm(h,t,n,u?.minZoom??l,u?.maxZoom??s,u?.padding??.1);return await i.setViewport(d,{duration:u?.duration,ease:u?.ease,interpolate:u?.interpolate}),Promise.resolve(!0)}function L8({nodeId:e,nextPosition:t,nodeLookup:n,nodeOrigin:i=[0,0],nodeExtent:l,onError:s}){const u=n.get(e),f=u.parentId?n.get(u.parentId):void 0,{x:h,y:d}=f?f.internals.positionAbsolute:{x:0,y:0},p=u.origin??i;let m=u.extent||l;if(u.extent==="parent"&&!u.expandParent)if(!f)s?.("005",Fr.error005());else{const x=f.measured.width,w=f.measured.height;x&&w&&(m=[[h,d],[h+x,d+w]])}else f&&lo(u.extent)&&(m=[[u.extent[0][0]+h,u.extent[0][1]+d],[u.extent[1][0]+h,u.extent[1][1]+d]]);const v=lo(m)?Qa(t,m,u.measured):t;return(u.measured.width===void 0||u.measured.height===void 0)&&s?.("015",Fr.error015()),{position:{x:v.x-h+(u.measured.width??0)*p[0],y:v.y-d+(u.measured.height??0)*p[1]},positionAbsolute:v}}async function uO({nodesToRemove:e=[],edgesToRemove:t=[],nodes:n,edges:i,onBeforeDelete:l}){const s=new Set(e.map(v=>v.id)),u=[];for(const v of n){if(v.deletable===!1)continue;const x=s.has(v.id),w=!x&&v.parentId&&u.find(A=>A.id===v.parentId);(x||w)&&u.push(v)}const f=new Set(t.map(v=>v.id)),h=i.filter(v=>v.deletable!==!1),p=lO(u,h);for(const v of h)f.has(v.id)&&!p.find(w=>w.id===v.id)&&p.push(v);if(!l)return{edges:p,nodes:u};const m=await l({nodes:u,edges:p});return typeof m=="boolean"?m?{edges:p,nodes:u}:{edges:[],nodes:[]}:m}const io=(e,t=0,n=1)=>Math.min(Math.max(e,t),n),Qa=(e={x:0,y:0},t,n)=>({x:io(e.x,t[0][0],t[1][0]-(n?.width??0)),y:io(e.y,t[0][1],t[1][1]-(n?.height??0))});function H8(e,t,n){const{width:i,height:l}=Ti(n),{x:s,y:u}=n.internals.positionAbsolute;return Qa(e,[[s,u],[s+i,u+l]],t)}const Q5=(e,t,n)=>e<t?io(Math.abs(e-t),1,t)/t:e>n?-io(Math.abs(e-n),1,t)/t:0,j8=(e,t,n=15,i=40)=>{const l=Q5(e.x,i,t.width-i)*n,s=Q5(e.y,i,t.height-i)*n;return[l,s]},Fc=(e,t)=>({x:Math.min(e.x,t.x),y:Math.min(e.y,t.y),x2:Math.max(e.x2,t.x2),y2:Math.max(e.y2,t.y2)}),Y1=({x:e,y:t,width:n,height:i})=>({x:e,y:t,x2:e+n,y2:t+i}),Vc=({x:e,y:t,x2:n,y2:i})=>({x:e,y:t,width:n-e,height:i-t}),ao=(e,t=[0,0])=>{const{x:n,y:i}=Im(e)?e.internals.positionAbsolute:Ks(e,t);return{x:n,y:i,width:e.measured?.width??e.width??e.initialWidth??0,height:e.measured?.height??e.height??e.initialHeight??0}},mc=(e,t=[0,0])=>{const{x:n,y:i}=Im(e)?e.internals.positionAbsolute:Ks(e,t);return{x:n,y:i,x2:n+(e.measured?.width??e.width??e.initialWidth??0),y2:i+(e.measured?.height??e.height??e.initialHeight??0)}},q8=(e,t)=>Vc(Fc(Y1(e),Y1(t))),qs=(e,t)=>{const n=Math.max(0,Math.min(e.x+e.width,t.x+t.width)-Math.max(e.x,t.x)),i=Math.max(0,Math.min(e.y+e.height,t.y+t.height)-Math.max(e.y,t.y));return Math.ceil(n*i)},K5=e=>Er(e.width)&&Er(e.height)&&Er(e.x)&&Er(e.y),Er=e=>!isNaN(e)&&isFinite(e),cO=(e,t)=>{},Ws=(e,t=[1,1])=>({x:t[0]*Math.round(e.x/t[0]),y:t[1]*Math.round(e.y/t[1])}),eu=({x:e,y:t},[n,i,l],s=!1,u=[1,1])=>{const f={x:(e-n)/l,y:(t-i)/l};return s?Ws(f,u):f},pc=({x:e,y:t},[n,i,l])=>({x:e*l+n,y:t*l+i});function Vl(e,t){if(typeof e=="number")return Math.floor((t-t/(1+e))*.5);if(typeof e=="string"&&e.endsWith("px")){const n=parseFloat(e);if(!Number.isNaN(n))return Math.floor(n)}if(typeof e=="string"&&e.endsWith("%")){const n=parseFloat(e);if(!Number.isNaN(n))return Math.floor(t*n*.01)}return console.error(`[React Flow] The padding value "${e}" is invalid. Please provide a number or a string with a valid unit (px or %).`),0}function fO(e,t,n){if(typeof e=="string"||typeof e=="number"){const i=Vl(e,n),l=Vl(e,t);return{top:i,right:l,bottom:i,left:l,x:l*2,y:i*2}}if(typeof e=="object"){const i=Vl(e.top??e.y??0,n),l=Vl(e.bottom??e.y??0,n),s=Vl(e.left??e.x??0,t),u=Vl(e.right??e.x??0,t);return{top:i,right:u,bottom:l,left:s,x:s+u,y:i+l}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}function hO(e,t,n,i,l,s){const{x:u,y:f}=pc(e,[t,n,i]),{x:h,y:d}=pc({x:e.x+e.width,y:e.y+e.height},[t,n,i]),p=l-h,m=s-d;return{left:Math.floor(u),top:Math.floor(f),right:Math.floor(p),bottom:Math.floor(m)}}const Fm=(e,t,n,i,l,s)=>{const u=fO(s,t,n),f=(t-u.x)/e.width,h=(n-u.y)/e.height,d=Math.min(f,h),p=io(d,i,l),m=e.x+e.width/2,v=e.y+e.height/2,x=t/2-m*p,w=n/2-v*p,A=hO(e,x,w,p,t,n),C={left:Math.min(A.left-u.left,0),top:Math.min(A.top-u.top,0),right:Math.min(A.right-u.right,0),bottom:Math.min(A.bottom-u.bottom,0)};return{x:x-C.left+C.right,y:w-C.top+C.bottom,zoom:p}},Is=()=>typeof navigator<"u"&&navigator?.userAgent?.indexOf("Mac")>=0;function lo(e){return e!=null&&e!=="parent"}function Ti(e){return{width:e.measured?.width??e.width??e.initialWidth??0,height:e.measured?.height??e.height??e.initialHeight??0}}function I8(e){return(e.measured?.width??e.width??e.initialWidth)!==void 0&&(e.measured?.height??e.height??e.initialHeight)!==void 0}function U8(e,t={width:0,height:0},n,i,l){const s={...e},u=i.get(n);if(u){const f=u.origin||l;s.x+=u.internals.positionAbsolute.x-(t.width??0)*f[0],s.y+=u.internals.positionAbsolute.y-(t.height??0)*f[1]}return s}function J5(e,t){if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}function dO(){let e,t;return{promise:new Promise((i,l)=>{e=i,t=l}),resolve:e,reject:t}}function mO(e){return{..._8,...e||{}}}function As(e,{snapGrid:t=[0,0],snapToGrid:n=!1,transform:i,containerBounds:l}){const{x:s,y:u}=Ar(e),f=eu({x:s-(l?.left??0),y:u-(l?.top??0)},i),{x:h,y:d}=n?Ws(f,t):f;return{xSnapped:h,ySnapped:d,...f}}const Vm=e=>({width:e.offsetWidth,height:e.offsetHeight}),F8=e=>e?.getRootNode?.()||window?.document,pO=["INPUT","SELECT","TEXTAREA"];function V8(e){const t=e.composedPath?.()?.[0]||e.target;return t?.nodeType!==1?!1:pO.includes(t.nodeName)||t.hasAttribute("contenteditable")||!!t.closest(".nokey")}const Y8=e=>"clientX"in e,Ar=(e,t)=>{const n=Y8(e),i=n?e.clientX:e.touches?.[0].clientX,l=n?e.clientY:e.touches?.[0].clientY;return{x:i-(t?.left??0),y:l-(t?.top??0)}},W5=(e,t,n,i,l)=>{const s=t.querySelectorAll(`.${e}`);return!s||!s.length?null:Array.from(s).map(u=>{const f=u.getBoundingClientRect();return{id:u.getAttribute("data-handleid"),type:e,nodeId:l,position:u.getAttribute("data-handlepos"),x:(f.left-n.left)/i,y:(f.top-n.top)/i,...Vm(u)}})};function G8({sourceX:e,sourceY:t,targetX:n,targetY:i,sourceControlX:l,sourceControlY:s,targetControlX:u,targetControlY:f}){const h=e*.125+l*.375+u*.375+n*.125,d=t*.125+s*.375+f*.375+i*.125,p=Math.abs(h-e),m=Math.abs(d-t);return[h,d,p,m]}function q0(e,t){return e>=0?.5*e:t*25*Math.sqrt(-e)}function e6({pos:e,x1:t,y1:n,x2:i,y2:l,c:s}){switch(e){case He.Left:return[t-q0(t-i,s),n];case He.Right:return[t+q0(i-t,s),n];case He.Top:return[t,n-q0(n-l,s)];case He.Bottom:return[t,n+q0(l-n,s)]}}function $8({sourceX:e,sourceY:t,sourcePosition:n=He.Bottom,targetX:i,targetY:l,targetPosition:s=He.Top,curvature:u=.25}){const[f,h]=e6({pos:n,x1:e,y1:t,x2:i,y2:l,c:u}),[d,p]=e6({pos:s,x1:i,y1:l,x2:e,y2:t,c:u}),[m,v,x,w]=G8({sourceX:e,sourceY:t,targetX:i,targetY:l,sourceControlX:f,sourceControlY:h,targetControlX:d,targetControlY:p});return[`M${e},${t} C${f},${h} ${d},${p} ${i},${l}`,m,v,x,w]}function X8({sourceX:e,sourceY:t,targetX:n,targetY:i}){const l=Math.abs(n-e)/2,s=n<e?n+l:n-l,u=Math.abs(i-t)/2,f=i<t?i+u:i-u;return[s,f,l,u]}function gO({sourceNode:e,targetNode:t,selected:n=!1,zIndex:i=0,elevateOnSelect:l=!1,zIndexMode:s="basic"}){if(s==="manual")return i;const u=l&&n?i+1e3:i,f=Math.max(e.parentId||l&&e.selected?e.internals.z:0,t.parentId||l&&t.selected?t.internals.z:0);return u+f}function yO({sourceNode:e,targetNode:t,width:n,height:i,transform:l}){const s=Fc(mc(e),mc(t));s.x===s.x2&&(s.x2+=1),s.y===s.y2&&(s.y2+=1);const u={x:-l[0]/l[2],y:-l[1]/l[2],width:n/l[2],height:i/l[2]};return qs(u,Vc(s))>0}const vO=({source:e,sourceHandle:t,target:n,targetHandle:i})=>`xy-edge__${e}${t||""}-${n}${i||""}`,xO=(e,t)=>t.some(n=>n.source===e.source&&n.target===e.target&&(n.sourceHandle===e.sourceHandle||!n.sourceHandle&&!e.sourceHandle)&&(n.targetHandle===e.targetHandle||!n.targetHandle&&!e.targetHandle)),bO=(e,t,n={})=>{if(!e.source||!e.target)return t;const i=n.getEdgeId||vO;let l;return B8(e)?l={...e}:l={...e,id:i(e)},xO(l,t)?t:(l.sourceHandle===null&&delete l.sourceHandle,l.targetHandle===null&&delete l.targetHandle,t.concat(l))};function P8({sourceX:e,sourceY:t,targetX:n,targetY:i}){const[l,s,u,f]=X8({sourceX:e,sourceY:t,targetX:n,targetY:i});return[`M ${e},${t}L ${n},${i}`,l,s,u,f]}const t6={[He.Left]:{x:-1,y:0},[He.Right]:{x:1,y:0},[He.Top]:{x:0,y:-1},[He.Bottom]:{x:0,y:1}},wO=({source:e,sourcePosition:t=He.Bottom,target:n})=>t===He.Left||t===He.Right?e.x<n.x?{x:1,y:0}:{x:-1,y:0}:e.y<n.y?{x:0,y:1}:{x:0,y:-1},n6=(e,t)=>Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2));function SO({source:e,sourcePosition:t=He.Bottom,target:n,targetPosition:i=He.Top,center:l,offset:s,stepPosition:u}){const f=t6[t],h=t6[i],d={x:e.x+f.x*s,y:e.y+f.y*s},p={x:n.x+h.x*s,y:n.y+h.y*s},m=wO({source:d,sourcePosition:t,target:p}),v=m.x!==0?"x":"y",x=m[v];let w=[],A,C;const E={x:0,y:0},N={x:0,y:0},[,,T,B]=X8({sourceX:e.x,sourceY:e.y,targetX:n.x,targetY:n.y});if(f[v]*h[v]===-1){v==="x"?(A=l.x??d.x+(p.x-d.x)*u,C=l.y??(d.y+p.y)/2):(A=l.x??(d.x+p.x)/2,C=l.y??d.y+(p.y-d.y)*u);const J=[{x:A,y:d.y},{x:A,y:p.y}],P=[{x:d.x,y:C},{x:p.x,y:C}];f[v]===x?w=v==="x"?J:P:w=v==="x"?P:J}else{const J=[{x:d.x,y:p.y}],P=[{x:p.x,y:d.y}];if(v==="x"?w=f.x===x?P:J:w=f.y===x?J:P,t===i){const q=Math.abs(e[v]-n[v]);if(q<=s){const F=Math.min(s-1,s-q);f[v]===x?E[v]=(d[v]>e[v]?-1:1)*F:N[v]=(p[v]>n[v]?-1:1)*F}}if(t!==i){const q=v==="x"?"y":"x",F=f[v]===h[q],L=d[q]>p[q],Y=d[q]<p[q];(f[v]===1&&(!F&&L||F&&Y)||f[v]!==1&&(!F&&Y||F&&L))&&(w=v==="x"?J:P)}const V={x:d.x+E.x,y:d.y+E.y},X={x:p.x+N.x,y:p.y+N.y},W=Math.max(Math.abs(V.x-w[0].x),Math.abs(X.x-w[0].x)),ce=Math.max(Math.abs(V.y-w[0].y),Math.abs(X.y-w[0].y));W>=ce?(A=(V.x+X.x)/2,C=w[0].y):(A=w[0].x,C=(V.y+X.y)/2)}const I={x:d.x+E.x,y:d.y+E.y},D={x:p.x+N.x,y:p.y+N.y};return[[e,...I.x!==w[0].x||I.y!==w[0].y?[I]:[],...w,...D.x!==w[w.length-1].x||D.y!==w[w.length-1].y?[D]:[],n],A,C,T,B]}function kO(e,t,n,i){const l=Math.min(n6(e,t)/2,n6(t,n)/2,i),{x:s,y:u}=t;if(e.x===s&&s===n.x||e.y===u&&u===n.y)return`L${s} ${u}`;if(e.y===u){const d=e.x<n.x?-1:1,p=e.y<n.y?1:-1;return`L ${s+l*d},${u}Q ${s},${u} ${s},${u+l*p}`}const f=e.x<n.x?1:-1,h=e.y<n.y?-1:1;return`L ${s},${u+l*h}Q ${s},${u} ${s+l*f},${u}`}function G1({sourceX:e,sourceY:t,sourcePosition:n=He.Bottom,targetX:i,targetY:l,targetPosition:s=He.Top,borderRadius:u=5,centerX:f,centerY:h,offset:d=20,stepPosition:p=.5}){const[m,v,x,w,A]=SO({source:{x:e,y:t},sourcePosition:n,target:{x:i,y:l},targetPosition:s,center:{x:f,y:h},offset:d,stepPosition:p});let C=`M${m[0].x} ${m[0].y}`;for(let E=1;E<m.length-1;E++)C+=kO(m[E-1],m[E],m[E+1],u);return C+=`L${m[m.length-1].x} ${m[m.length-1].y}`,[C,v,x,w,A]}function r6(e){return e&&!!(e.internals.handleBounds||e.handles?.length)&&!!(e.measured.width||e.width||e.initialWidth)}function EO(e){const{sourceNode:t,targetNode:n}=e;if(!r6(t)||!r6(n))return null;const i=t.internals.handleBounds||i6(t.handles),l=n.internals.handleBounds||i6(n.handles),s=a6(i?.source??[],e.sourceHandle),u=a6(e.connectionMode===ro.Strict?l?.target??[]:(l?.target??[]).concat(l?.source??[]),e.targetHandle);if(!s||!u)return e.onError?.("008",Fr.error008(s?"target":"source",{id:e.id,sourceHandle:e.sourceHandle,targetHandle:e.targetHandle})),null;const f=s?.position||He.Bottom,h=u?.position||He.Top,d=Ka(t,s,f),p=Ka(n,u,h);return{sourceX:d.x,sourceY:d.y,targetX:p.x,targetY:p.y,sourcePosition:f,targetPosition:h}}function i6(e){if(!e)return null;const t=[],n=[];for(const i of e)i.width=i.width??1,i.height=i.height??1,i.type==="source"?t.push(i):i.type==="target"&&n.push(i);return{source:t,target:n}}function Ka(e,t,n=He.Left,i=!1){const l=(t?.x??0)+e.internals.positionAbsolute.x,s=(t?.y??0)+e.internals.positionAbsolute.y,{width:u,height:f}=t??Ti(e);if(i)return{x:l+u/2,y:s+f/2};switch(t?.position??n){case He.Top:return{x:l+u/2,y:s};case He.Right:return{x:l+u,y:s+f/2};case He.Bottom:return{x:l+u/2,y:s+f};case He.Left:return{x:l,y:s+f/2}}}function a6(e,t){return e&&(t?e.find(n=>n.id===t):e[0])||null}function $1(e,t){return e?typeof e=="string"?e:`${t?`${t}__`:""}${Object.keys(e).sort().map(i=>`${i}=${e[i]}`).join("&")}`:""}function AO(e,{id:t,defaultColor:n,defaultMarkerStart:i,defaultMarkerEnd:l}){const s=new Set;return e.reduce((u,f)=>([f.markerStart||i,f.markerEnd||l].forEach(h=>{if(h&&typeof h=="object"){const d=$1(h,t);s.has(d)||(u.push({id:d,color:h.color||n,...h}),s.add(d))}}),u),[]).sort((u,f)=>u.id.localeCompare(f.id))}const Z8=1e3,CO=10,Ym={nodeOrigin:[0,0],nodeExtent:Ls,elevateNodesOnSelect:!0,zIndexMode:"basic",defaults:{}},TO={...Ym,checkEquality:!0};function Gm(e,t){const n={...e};for(const i in t)t[i]!==void 0&&(n[i]=t[i]);return n}function MO(e,t,n){const i=Gm(Ym,n);for(const l of e.values())if(l.parentId)Xm(l,e,t,i);else{const s=Ks(l,i.nodeOrigin),u=lo(l.extent)?l.extent:i.nodeExtent,f=Qa(s,u,Ti(l));l.internals.positionAbsolute=f}}function zO(e,t){if(!e.handles)return e.measured?t?.internals.handleBounds:void 0;const n=[],i=[];for(const l of e.handles){const s={id:l.id,width:l.width??1,height:l.height??1,nodeId:e.id,x:l.x,y:l.y,position:l.position,type:l.type};l.type==="source"?n.push(s):l.type==="target"&&i.push(s)}return{source:n,target:i}}function $m(e){return e==="manual"}function X1(e,t,n,i={}){const l=Gm(TO,i),s={i:0},u=new Map(t),f=l?.elevateNodesOnSelect&&!$m(l.zIndexMode)?Z8:0;let h=e.length>0,d=!1;t.clear(),n.clear();for(const p of e){let m=u.get(p.id);if(l.checkEquality&&p===m?.internals.userNode)t.set(p.id,m);else{const v=Ks(p,l.nodeOrigin),x=lo(p.extent)?p.extent:l.nodeExtent,w=Qa(v,x,Ti(p));m={...l.defaults,...p,measured:{width:p.measured?.width,height:p.measured?.height},internals:{positionAbsolute:w,handleBounds:zO(p,m),z:Q8(p,f,l.zIndexMode),userNode:p}},t.set(p.id,m)}(m.measured===void 0||m.measured.width===void 0||m.measured.height===void 0)&&!m.hidden&&(h=!1),p.parentId&&Xm(m,t,n,i,s),d||=p.selected??!1}return{nodesInitialized:h,hasSelectedNodes:d}}function NO(e,t){if(!e.parentId)return;const n=t.get(e.parentId);n?n.set(e.id,e):t.set(e.parentId,new Map([[e.id,e]]))}function Xm(e,t,n,i,l){const{elevateNodesOnSelect:s,nodeOrigin:u,nodeExtent:f,zIndexMode:h}=Gm(Ym,i),d=e.parentId,p=t.get(d);if(!p){console.warn(`Parent node ${d} not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.`);return}NO(e,n),l&&!p.parentId&&p.internals.rootParentIndex===void 0&&h==="auto"&&(p.internals.rootParentIndex=++l.i,p.internals.z=p.internals.z+l.i*CO),l&&p.internals.rootParentIndex!==void 0&&(l.i=p.internals.rootParentIndex);const m=s&&!$m(h)?Z8:0,{x:v,y:x,z:w}=DO(e,p,u,f,m,h),{positionAbsolute:A}=e.internals,C=v!==A.x||x!==A.y;(C||w!==e.internals.z)&&t.set(e.id,{...e,internals:{...e.internals,positionAbsolute:C?{x:v,y:x}:A,z:w}})}function Q8(e,t,n){const i=Er(e.zIndex)?e.zIndex:0;return $m(n)?i:i+(e.selected?t:0)}function DO(e,t,n,i,l,s){const{x:u,y:f}=t.internals.positionAbsolute,h=Ti(e),d=Ks(e,n),p=lo(e.extent)?Qa(d,e.extent,h):d;let m=Qa({x:u+p.x,y:f+p.y},i,h);e.extent==="parent"&&(m=H8(m,h,t));const v=Q8(e,l,s),x=t.internals.z??0;return{x:m.x,y:m.y,z:x>=v?x+1:v}}function Pm(e,t,n,i=[0,0]){const l=[],s=new Map;for(const u of e){const f=t.get(u.parentId);if(!f)continue;const h=s.get(u.parentId)?.expandedRect??ao(f),d=q8(h,u.rect);s.set(u.parentId,{expandedRect:d,parent:f})}return s.size>0&&s.forEach(({expandedRect:u,parent:f},h)=>{const d=f.internals.positionAbsolute,p=Ti(f),m=f.origin??i,v=u.x<d.x?Math.round(Math.abs(d.x-u.x)):0,x=u.y<d.y?Math.round(Math.abs(d.y-u.y)):0,w=Math.max(p.width,Math.round(u.width)),A=Math.max(p.height,Math.round(u.height)),C=(w-p.width)*m[0],E=(A-p.height)*m[1];(v>0||x>0||C||E)&&(l.push({id:h,type:"position",position:{x:f.position.x-v+C,y:f.position.y-x+E}}),n.get(h)?.forEach(N=>{e.some(T=>T.id===N.id)||l.push({id:N.id,type:"position",position:{x:N.position.x+v,y:N.position.y+x}})})),(p.width<u.width||p.height<u.height||v||x)&&l.push({id:h,type:"dimensions",setAttributes:!0,dimensions:{width:w+(v?m[0]*v-C:0),height:A+(x?m[1]*x-E:0)}})}),l}function _O(e,t,n,i,l,s,u){const f=i?.querySelector(".xyflow__viewport");let h=!1;if(!f)return{changes:[],updatedInternals:h};const d=[],p=window.getComputedStyle(f),{m22:m}=new window.DOMMatrixReadOnly(p.transform),v=[];for(const x of e.values()){const w=t.get(x.id);if(!w)continue;if(w.hidden){t.set(w.id,{...w,internals:{...w.internals,handleBounds:void 0}}),h=!0;continue}const A=Vm(x.nodeElement),C=w.measured.width!==A.width||w.measured.height!==A.height;if(!!(A.width&&A.height&&(C||!w.internals.handleBounds||x.force))){const N=x.nodeElement.getBoundingClientRect(),T=lo(w.extent)?w.extent:s;let{positionAbsolute:B}=w.internals;w.parentId&&w.extent==="parent"?B=H8(B,A,t.get(w.parentId)):T&&(B=Qa(B,T,A));const I={...w,measured:A,internals:{...w.internals,positionAbsolute:B,handleBounds:{source:W5("source",x.nodeElement,N,m,w.id),target:W5("target",x.nodeElement,N,m,w.id)}}};t.set(w.id,I),w.parentId&&Xm(I,t,n,{nodeOrigin:l,zIndexMode:u}),h=!0,C&&(d.push({id:w.id,type:"dimensions",dimensions:A}),w.expandParent&&w.parentId&&v.push({id:w.id,parentId:w.parentId,rect:ao(I,l)}))}}if(v.length>0){const x=Pm(v,t,n,l);d.push(...x)}return{changes:d,updatedInternals:h}}async function OO({delta:e,panZoom:t,transform:n,translateExtent:i,width:l,height:s}){if(!t||!e.x&&!e.y)return Promise.resolve(!1);const u=await t.setViewportConstrained({x:n[0]+e.x,y:n[1]+e.y,zoom:n[2]},[[0,0],[l,s]],i),f=!!u&&(u.x!==n[0]||u.y!==n[1]||u.k!==n[2]);return Promise.resolve(f)}function l6(e,t,n,i,l,s){let u=l;const f=i.get(u)||new Map;i.set(u,f.set(n,t)),u=`${l}-${e}`;const h=i.get(u)||new Map;if(i.set(u,h.set(n,t)),s){u=`${l}-${e}-${s}`;const d=i.get(u)||new Map;i.set(u,d.set(n,t))}}function K8(e,t,n){e.clear(),t.clear();for(const i of n){const{source:l,target:s,sourceHandle:u=null,targetHandle:f=null}=i,h={edgeId:i.id,source:l,target:s,sourceHandle:u,targetHandle:f},d=`${l}-${u}--${s}-${f}`,p=`${s}-${f}--${l}-${u}`;l6("source",h,p,e,l,u),l6("target",h,d,e,s,f),t.set(i.id,i)}}function J8(e,t){if(!e.parentId)return!1;const n=t.get(e.parentId);return n?n.selected?!0:J8(n,t):!1}function o6(e,t,n){let i=e;do{if(i?.matches?.(t))return!0;if(i===n)return!1;i=i?.parentElement}while(i);return!1}function RO(e,t,n,i){const l=new Map;for(const[s,u]of e)if((u.selected||u.id===i)&&(!u.parentId||!J8(u,e))&&(u.draggable||t&&typeof u.draggable>"u")){const f=e.get(s);f&&l.set(s,{id:s,position:f.position||{x:0,y:0},distance:{x:n.x-f.internals.positionAbsolute.x,y:n.y-f.internals.positionAbsolute.y},extent:f.extent,parentId:f.parentId,origin:f.origin,expandParent:f.expandParent,internals:{positionAbsolute:f.internals.positionAbsolute||{x:0,y:0}},measured:{width:f.measured.width??0,height:f.measured.height??0}})}return l}function Qd({nodeId:e,dragItems:t,nodeLookup:n,dragging:i=!0}){const l=[];for(const[u,f]of t){const h=n.get(u)?.internals.userNode;h&&l.push({...h,position:f.position,dragging:i})}if(!e)return[l[0],l];const s=n.get(e)?.internals.userNode;return[s?{...s,position:t.get(e)?.position||s.position,dragging:i}:l[0],l]}function BO({dragItems:e,snapGrid:t,x:n,y:i}){const l=e.values().next().value;if(!l)return null;const s={x:n-l.distance.x,y:i-l.distance.y},u=Ws(s,t);return{x:u.x-s.x,y:u.y-s.y}}function LO({onNodeMouseDown:e,getStoreItems:t,onDragStart:n,onDrag:i,onDragStop:l}){let s={x:null,y:null},u=0,f=new Map,h=!1,d={x:0,y:0},p=null,m=!1,v=null,x=!1,w=!1,A=null;function C({noDragClassName:N,handleSelector:T,domNode:B,isSelectable:I,nodeId:D,nodeClickDistance:U=0}){v=Wn(B);function J({x:W,y:ce}){const{nodeLookup:q,nodeExtent:F,snapGrid:L,snapToGrid:Y,nodeOrigin:K,onNodeDrag:ne,onSelectionDrag:R,onError:j,updateNodePositions:Z}=t();s={x:W,y:ce};let _=!1;const se=f.size>1,ve=se&&F?Y1(Js(f)):null,xe=se&&Y?BO({dragItems:f,snapGrid:L,x:W,y:ce}):null;for(const[we,ye]of f){if(!q.has(we))continue;let ke={x:W-ye.distance.x,y:ce-ye.distance.y};Y&&(ke=xe?{x:Math.round(ke.x+xe.x),y:Math.round(ke.y+xe.y)}:Ws(ke,L));let Be=null;if(se&&F&&!ye.extent&&ve){const{positionAbsolute:_e}=ye.internals,Ge=_e.x-ve.x+F[0][0],tt=_e.x+ye.measured.width-ve.x2+F[1][0],Qe=_e.y-ve.y+F[0][1],yt=_e.y+ye.measured.height-ve.y2+F[1][1];Be=[[Ge,Qe],[tt,yt]]}const{position:Ue,positionAbsolute:Oe}=L8({nodeId:we,nextPosition:ke,nodeLookup:q,nodeExtent:Be||F,nodeOrigin:K,onError:j});_=_||ye.position.x!==Ue.x||ye.position.y!==Ue.y,ye.position=Ue,ye.internals.positionAbsolute=Oe}if(w=w||_,!!_&&(Z(f,!0),A&&(i||ne||!D&&R))){const[we,ye]=Qd({nodeId:D,dragItems:f,nodeLookup:q});i?.(A,f,we,ye),ne?.(A,we,ye),D||R?.(A,ye)}}async function P(){if(!p)return;const{transform:W,panBy:ce,autoPanSpeed:q,autoPanOnNodeDrag:F}=t();if(!F){h=!1,cancelAnimationFrame(u);return}const[L,Y]=j8(d,p,q);(L!==0||Y!==0)&&(s.x=(s.x??0)-L/W[2],s.y=(s.y??0)-Y/W[2],await ce({x:L,y:Y})&&J(s)),u=requestAnimationFrame(P)}function V(W){const{nodeLookup:ce,multiSelectionActive:q,nodesDraggable:F,transform:L,snapGrid:Y,snapToGrid:K,selectNodesOnDrag:ne,onNodeDragStart:R,onSelectionDragStart:j,unselectNodesAndEdges:Z}=t();m=!0,(!ne||!I)&&!q&&D&&(ce.get(D)?.selected||Z()),I&&ne&&D&&e?.(D);const _=As(W.sourceEvent,{transform:L,snapGrid:Y,snapToGrid:K,containerBounds:p});if(s=_,f=RO(ce,F,_,D),f.size>0&&(n||R||!D&&j)){const[se,ve]=Qd({nodeId:D,dragItems:f,nodeLookup:ce});n?.(W.sourceEvent,f,se,ve),R?.(W.sourceEvent,se,ve),D||j?.(W.sourceEvent,ve)}}const X=p8().clickDistance(U).on("start",W=>{const{domNode:ce,nodeDragThreshold:q,transform:F,snapGrid:L,snapToGrid:Y}=t();p=ce?.getBoundingClientRect()||null,x=!1,w=!1,A=W.sourceEvent,q===0&&V(W),s=As(W.sourceEvent,{transform:F,snapGrid:L,snapToGrid:Y,containerBounds:p}),d=Ar(W.sourceEvent,p)}).on("drag",W=>{const{autoPanOnNodeDrag:ce,transform:q,snapGrid:F,snapToGrid:L,nodeDragThreshold:Y,nodeLookup:K}=t(),ne=As(W.sourceEvent,{transform:q,snapGrid:F,snapToGrid:L,containerBounds:p});if(A=W.sourceEvent,(W.sourceEvent.type==="touchmove"&&W.sourceEvent.touches.length>1||D&&!K.has(D))&&(x=!0),!x){if(!h&&ce&&m&&(h=!0,P()),!m){const R=Ar(W.sourceEvent,p),j=R.x-d.x,Z=R.y-d.y;Math.sqrt(j*j+Z*Z)>Y&&V(W)}(s.x!==ne.xSnapped||s.y!==ne.ySnapped)&&f&&m&&(d=Ar(W.sourceEvent,p),J(ne))}}).on("end",W=>{if(!(!m||x)&&(h=!1,m=!1,cancelAnimationFrame(u),f.size>0)){const{nodeLookup:ce,updateNodePositions:q,onNodeDragStop:F,onSelectionDragStop:L}=t();if(w&&(q(f,!1),w=!1),l||F||!D&&L){const[Y,K]=Qd({nodeId:D,dragItems:f,nodeLookup:ce,dragging:!1});l?.(W.sourceEvent,f,Y,K),F?.(W.sourceEvent,Y,K),D||L?.(W.sourceEvent,K)}}}).filter(W=>{const ce=W.target;return!W.button&&(!N||!o6(ce,`.${N}`,B))&&(!T||o6(ce,T,B))});v.call(X)}function E(){v?.on(".drag",null)}return{update:C,destroy:E}}function HO(e,t,n){const i=[],l={x:e.x-n,y:e.y-n,width:n*2,height:n*2};for(const s of t.values())qs(l,ao(s))>0&&i.push(s);return i}const jO=250;function qO(e,t,n,i){let l=[],s=1/0;const u=HO(e,n,t+jO);for(const f of u){const h=[...f.internals.handleBounds?.source??[],...f.internals.handleBounds?.target??[]];for(const d of h){if(i.nodeId===d.nodeId&&i.type===d.type&&i.id===d.id)continue;const{x:p,y:m}=Ka(f,d,d.position,!0),v=Math.sqrt(Math.pow(p-e.x,2)+Math.pow(m-e.y,2));v>t||(v<s?(l=[{...d,x:p,y:m}],s=v):v===s&&l.push({...d,x:p,y:m}))}}if(!l.length)return null;if(l.length>1){const f=i.type==="source"?"target":"source";return l.find(h=>h.type===f)??l[0]}return l[0]}function W8(e,t,n,i,l,s=!1){const u=i.get(e);if(!u)return null;const f=l==="strict"?u.internals.handleBounds?.[t]:[...u.internals.handleBounds?.source??[],...u.internals.handleBounds?.target??[]],h=(n?f?.find(d=>d.id===n):f?.[0])??null;return h&&s?{...h,...Ka(u,h,h.position,!0)}:h}function ev(e,t){return e||(t?.classList.contains("target")?"target":t?.classList.contains("source")?"source":null)}function IO(e,t){let n=null;return t?n=!0:e&&!t&&(n=!1),n}const tv=()=>!0;function UO(e,{connectionMode:t,connectionRadius:n,handleId:i,nodeId:l,edgeUpdaterType:s,isTarget:u,domNode:f,nodeLookup:h,lib:d,autoPanOnConnect:p,flowId:m,panBy:v,cancelConnection:x,onConnectStart:w,onConnect:A,onConnectEnd:C,isValidConnection:E=tv,onReconnectEnd:N,updateConnection:T,getTransform:B,getFromHandle:I,autoPanSpeed:D,dragThreshold:U=1,handleDomNode:J}){const P=F8(e.target);let V=0,X;const{x:W,y:ce}=Ar(e),q=ev(s,J),F=f?.getBoundingClientRect();let L=!1;if(!F||!q)return;const Y=W8(l,q,i,h,t);if(!Y)return;let K=Ar(e,F),ne=!1,R=null,j=!1,Z=null;function _(){if(!p||!F)return;const[Ue,Oe]=j8(K,F,D);v({x:Ue,y:Oe}),V=requestAnimationFrame(_)}const se={...Y,nodeId:l,type:q,position:Y.position},ve=h.get(l);let we={inProgress:!0,isValid:null,from:Ka(ve,se,He.Left,!0),fromHandle:se,fromPosition:se.position,fromNode:ve,to:K,toHandle:null,toPosition:Z5[se.position],toNode:null,pointer:K};function ye(){L=!0,T(we),w?.(e,{nodeId:l,handleId:i,handleType:q})}U===0&&ye();function ke(Ue){if(!L){const{x:yt,y:pe}=Ar(Ue),Ve=yt-W,ut=pe-ce;if(!(Ve*Ve+ut*ut>U*U))return;ye()}if(!I()||!se){Be(Ue);return}const Oe=B();K=Ar(Ue,F),X=qO(eu(K,Oe,!1,[1,1]),n,h,se),ne||(_(),ne=!0);const _e=nv(Ue,{handle:X,connectionMode:t,fromNodeId:l,fromHandleId:i,fromType:u?"target":"source",isValidConnection:E,doc:P,lib:d,flowId:m,nodeLookup:h});Z=_e.handleDomNode,R=_e.connection,j=IO(!!X,_e.isValid);const Ge=h.get(l),tt=Ge?Ka(Ge,se,He.Left,!0):we.from,Qe={...we,from:tt,isValid:j,to:_e.toHandle&&j?pc({x:_e.toHandle.x,y:_e.toHandle.y},Oe):K,toHandle:_e.toHandle,toPosition:j&&_e.toHandle?_e.toHandle.position:Z5[se.position],toNode:_e.toHandle?h.get(_e.toHandle.nodeId):null,pointer:K};T(Qe),we=Qe}function Be(Ue){if(!("touches"in Ue&&Ue.touches.length>0)){if(L){(X||Z)&&R&&j&&A?.(R);const{inProgress:Oe,..._e}=we,Ge={..._e,toPosition:we.toHandle?we.toPosition:null};C?.(Ue,Ge),s&&N?.(Ue,Ge)}x(),cancelAnimationFrame(V),ne=!1,j=!1,R=null,Z=null,P.removeEventListener("mousemove",ke),P.removeEventListener("mouseup",Be),P.removeEventListener("touchmove",ke),P.removeEventListener("touchend",Be)}}P.addEventListener("mousemove",ke),P.addEventListener("mouseup",Be),P.addEventListener("touchmove",ke),P.addEventListener("touchend",Be)}function nv(e,{handle:t,connectionMode:n,fromNodeId:i,fromHandleId:l,fromType:s,doc:u,lib:f,flowId:h,isValidConnection:d=tv,nodeLookup:p}){const m=s==="target",v=t?u.querySelector(`.${f}-flow__handle[data-id="${h}-${t?.nodeId}-${t?.id}-${t?.type}"]`):null,{x,y:w}=Ar(e),A=u.elementFromPoint(x,w),C=A?.classList.contains(`${f}-flow__handle`)?A:v,E={handleDomNode:C,isValid:!1,connection:null,toHandle:null};if(C){const N=ev(void 0,C),T=C.getAttribute("data-nodeid"),B=C.getAttribute("data-handleid"),I=C.classList.contains("connectable"),D=C.classList.contains("connectableend");if(!T||!N)return E;const U={source:m?T:i,sourceHandle:m?B:l,target:m?i:T,targetHandle:m?l:B};E.connection=U;const P=I&&D&&(n===ro.Strict?m&&N==="source"||!m&&N==="target":T!==i||B!==l);E.isValid=P&&d(U),E.toHandle=W8(T,N,B,p,n,!0)}return E}const P1={onPointerDown:UO,isValid:nv};function FO({domNode:e,panZoom:t,getTransform:n,getViewScale:i}){const l=Wn(e);function s({translateExtent:f,width:h,height:d,zoomStep:p=1,pannable:m=!0,zoomable:v=!0,inversePan:x=!1}){const w=T=>{if(T.sourceEvent.type!=="wheel"||!t)return;const B=n(),I=T.sourceEvent.ctrlKey&&Is()?10:1,D=-T.sourceEvent.deltaY*(T.sourceEvent.deltaMode===1?.05:T.sourceEvent.deltaMode?1:.002)*p,U=B[2]*Math.pow(2,D*I);t.scaleTo(U)};let A=[0,0];const C=T=>{(T.sourceEvent.type==="mousedown"||T.sourceEvent.type==="touchstart")&&(A=[T.sourceEvent.clientX??T.sourceEvent.touches[0].clientX,T.sourceEvent.clientY??T.sourceEvent.touches[0].clientY])},E=T=>{const B=n();if(T.sourceEvent.type!=="mousemove"&&T.sourceEvent.type!=="touchmove"||!t)return;const I=[T.sourceEvent.clientX??T.sourceEvent.touches[0].clientX,T.sourceEvent.clientY??T.sourceEvent.touches[0].clientY],D=[I[0]-A[0],I[1]-A[1]];A=I;const U=i()*Math.max(B[2],Math.log(B[2]))*(x?-1:1),J={x:B[0]-D[0]*U,y:B[1]-D[1]*U},P=[[0,0],[h,d]];t.setViewportConstrained({x:J.x,y:J.y,zoom:B[2]},P,f)},N=N8().on("start",C).on("zoom",m?E:null).on("zoom.wheel",v?w:null);l.call(N,{})}function u(){l.on("zoom",null)}return{update:s,destroy:u,pointer:Sr}}const Yc=e=>({x:e.x,y:e.y,zoom:e.k}),Kd=({x:e,y:t,zoom:n})=>Uc.translate(e,t).scale(n),Gl=(e,t)=>e.target.closest(`.${t}`),rv=(e,t)=>t===2&&Array.isArray(e)&&e.includes(2),VO=e=>((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2,Jd=(e,t=0,n=VO,i=()=>{})=>{const l=typeof t=="number"&&t>0;return l||i(),l?e.transition().duration(t).ease(n).on("end",i):e},iv=e=>{const t=e.ctrlKey&&Is()?10:1;return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*t};function YO({zoomPanValues:e,noWheelClassName:t,d3Selection:n,d3Zoom:i,panOnScrollMode:l,panOnScrollSpeed:s,zoomOnPinch:u,onPanZoomStart:f,onPanZoom:h,onPanZoomEnd:d}){return p=>{if(Gl(p,t))return p.ctrlKey&&p.preventDefault(),!1;p.preventDefault(),p.stopImmediatePropagation();const m=n.property("__zoom").k||1;if(p.ctrlKey&&u){const C=Sr(p),E=iv(p),N=m*Math.pow(2,E);i.scaleTo(n,N,C,p);return}const v=p.deltaMode===1?20:1;let x=l===$a.Vertical?0:p.deltaX*v,w=l===$a.Horizontal?0:p.deltaY*v;!Is()&&p.shiftKey&&l!==$a.Vertical&&(x=p.deltaY*v,w=0),i.translateBy(n,-(x/m)*s,-(w/m)*s,{internal:!0});const A=Yc(n.property("__zoom"));clearTimeout(e.panScrollTimeout),e.isPanScrolling?(h?.(p,A),e.panScrollTimeout=setTimeout(()=>{d?.(p,A),e.isPanScrolling=!1},150)):(e.isPanScrolling=!0,f?.(p,A))}}function GO({noWheelClassName:e,preventScrolling:t,d3ZoomHandler:n}){return function(i,l){const s=i.type==="wheel",u=!t&&s&&!i.ctrlKey,f=Gl(i,e);if(i.ctrlKey&&s&&f&&i.preventDefault(),u||f)return null;i.preventDefault(),n.call(this,i,l)}}function $O({zoomPanValues:e,onDraggingChange:t,onPanZoomStart:n}){return i=>{if(i.sourceEvent?.internal)return;const l=Yc(i.transform);e.mouseButton=i.sourceEvent?.button||0,e.isZoomingOrPanning=!0,e.prevViewport=l,i.sourceEvent?.type==="mousedown"&&t(!0),n&&n?.(i.sourceEvent,l)}}function XO({zoomPanValues:e,panOnDrag:t,onPaneContextMenu:n,onTransformChange:i,onPanZoom:l}){return s=>{e.usedRightMouseButton=!!(n&&rv(t,e.mouseButton??0)),s.sourceEvent?.sync||i([s.transform.x,s.transform.y,s.transform.k]),l&&!s.sourceEvent?.internal&&l?.(s.sourceEvent,Yc(s.transform))}}function PO({zoomPanValues:e,panOnDrag:t,panOnScroll:n,onDraggingChange:i,onPanZoomEnd:l,onPaneContextMenu:s}){return u=>{if(!u.sourceEvent?.internal&&(e.isZoomingOrPanning=!1,s&&rv(t,e.mouseButton??0)&&!e.usedRightMouseButton&&u.sourceEvent&&s(u.sourceEvent),e.usedRightMouseButton=!1,i(!1),l)){const f=Yc(u.transform);e.prevViewport=f,clearTimeout(e.timerId),e.timerId=setTimeout(()=>{l?.(u.sourceEvent,f)},n?150:0)}}}function ZO({zoomActivationKeyPressed:e,zoomOnScroll:t,zoomOnPinch:n,panOnDrag:i,panOnScroll:l,zoomOnDoubleClick:s,userSelectionActive:u,noWheelClassName:f,noPanClassName:h,lib:d,connectionInProgress:p}){return m=>{const v=e||t,x=n&&m.ctrlKey,w=m.type==="wheel";if(m.button===1&&m.type==="mousedown"&&(Gl(m,`${d}-flow__node`)||Gl(m,`${d}-flow__edge`)))return!0;if(!i&&!v&&!l&&!s&&!n||u||p&&!w||Gl(m,f)&&w||Gl(m,h)&&(!w||l&&w&&!e)||!n&&m.ctrlKey&&w)return!1;if(!n&&m.type==="touchstart"&&m.touches?.length>1)return m.preventDefault(),!1;if(!v&&!l&&!x&&w||!i&&(m.type==="mousedown"||m.type==="touchstart")||Array.isArray(i)&&!i.includes(m.button)&&m.type==="mousedown")return!1;const A=Array.isArray(i)&&i.includes(m.button)||!m.button||m.button<=1;return(!m.ctrlKey||w)&&A}}function QO({domNode:e,minZoom:t,maxZoom:n,translateExtent:i,viewport:l,onPanZoom:s,onPanZoomStart:u,onPanZoomEnd:f,onDraggingChange:h}){const d={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},p=e.getBoundingClientRect(),m=N8().scaleExtent([t,n]).translateExtent(i),v=Wn(e).call(m);N({x:l.x,y:l.y,zoom:io(l.zoom,t,n)},[[0,0],[p.width,p.height]],i);const x=v.on("wheel.zoom"),w=v.on("dblclick.zoom");m.wheelDelta(iv);function A(X,W){return v?new Promise(ce=>{m?.interpolate(W?.interpolate==="linear"?Es:X0).transform(Jd(v,W?.duration,W?.ease,()=>ce(!0)),X)}):Promise.resolve(!1)}function C({noWheelClassName:X,noPanClassName:W,onPaneContextMenu:ce,userSelectionActive:q,panOnScroll:F,panOnDrag:L,panOnScrollMode:Y,panOnScrollSpeed:K,preventScrolling:ne,zoomOnPinch:R,zoomOnScroll:j,zoomOnDoubleClick:Z,zoomActivationKeyPressed:_,lib:se,onTransformChange:ve,connectionInProgress:xe,paneClickDistance:we,selectionOnDrag:ye}){q&&!d.isZoomingOrPanning&&E();const ke=F&&!_&&!q;m.clickDistance(ye?1/0:!Er(we)||we<0?0:we);const Be=ke?YO({zoomPanValues:d,noWheelClassName:X,d3Selection:v,d3Zoom:m,panOnScrollMode:Y,panOnScrollSpeed:K,zoomOnPinch:R,onPanZoomStart:u,onPanZoom:s,onPanZoomEnd:f}):GO({noWheelClassName:X,preventScrolling:ne,d3ZoomHandler:x});if(v.on("wheel.zoom",Be,{passive:!1}),!q){const Oe=$O({zoomPanValues:d,onDraggingChange:h,onPanZoomStart:u});m.on("start",Oe);const _e=XO({zoomPanValues:d,panOnDrag:L,onPaneContextMenu:!!ce,onPanZoom:s,onTransformChange:ve});m.on("zoom",_e);const Ge=PO({zoomPanValues:d,panOnDrag:L,panOnScroll:F,onPaneContextMenu:ce,onPanZoomEnd:f,onDraggingChange:h});m.on("end",Ge)}const Ue=ZO({zoomActivationKeyPressed:_,panOnDrag:L,zoomOnScroll:j,panOnScroll:F,zoomOnDoubleClick:Z,zoomOnPinch:R,userSelectionActive:q,noPanClassName:W,noWheelClassName:X,lib:se,connectionInProgress:xe});m.filter(Ue),Z?v.on("dblclick.zoom",w):v.on("dblclick.zoom",null)}function E(){m.on("zoom",null)}async function N(X,W,ce){const q=Kd(X),F=m?.constrain()(q,W,ce);return F&&await A(F),new Promise(L=>L(F))}async function T(X,W){const ce=Kd(X);return await A(ce,W),new Promise(q=>q(ce))}function B(X){if(v){const W=Kd(X),ce=v.property("__zoom");(ce.k!==X.zoom||ce.x!==X.x||ce.y!==X.y)&&m?.transform(v,W,null,{sync:!0})}}function I(){const X=v?z8(v.node()):{x:0,y:0,k:1};return{x:X.x,y:X.y,zoom:X.k}}function D(X,W){return v?new Promise(ce=>{m?.interpolate(W?.interpolate==="linear"?Es:X0).scaleTo(Jd(v,W?.duration,W?.ease,()=>ce(!0)),X)}):Promise.resolve(!1)}function U(X,W){return v?new Promise(ce=>{m?.interpolate(W?.interpolate==="linear"?Es:X0).scaleBy(Jd(v,W?.duration,W?.ease,()=>ce(!0)),X)}):Promise.resolve(!1)}function J(X){m?.scaleExtent(X)}function P(X){m?.translateExtent(X)}function V(X){const W=!Er(X)||X<0?0:X;m?.clickDistance(W)}return{update:C,destroy:E,setViewport:T,setViewportConstrained:N,getViewport:I,scaleTo:D,scaleBy:U,setScaleExtent:J,setTranslateExtent:P,syncViewport:B,setClickDistance:V}}var oo;(function(e){e.Line="line",e.Handle="handle"})(oo||(oo={}));function KO({width:e,prevWidth:t,height:n,prevHeight:i,affectsX:l,affectsY:s}){const u=e-t,f=n-i,h=[u>0?1:u<0?-1:0,f>0?1:f<0?-1:0];return u&&l&&(h[0]=h[0]*-1),f&&s&&(h[1]=h[1]*-1),h}function s6(e){const t=e.includes("right")||e.includes("left"),n=e.includes("bottom")||e.includes("top"),i=e.includes("left"),l=e.includes("top");return{isHorizontal:t,isVertical:n,affectsX:i,affectsY:l}}function aa(e,t){return Math.max(0,t-e)}function la(e,t){return Math.max(0,e-t)}function I0(e,t,n){return Math.max(0,t-e,e-n)}function u6(e,t){return e?!t:t}function JO(e,t,n,i,l,s,u,f){let{affectsX:h,affectsY:d}=t;const{isHorizontal:p,isVertical:m}=t,v=p&&m,{xSnapped:x,ySnapped:w}=n,{minWidth:A,maxWidth:C,minHeight:E,maxHeight:N}=i,{x:T,y:B,width:I,height:D,aspectRatio:U}=e;let J=Math.floor(p?x-e.pointerX:0),P=Math.floor(m?w-e.pointerY:0);const V=I+(h?-J:J),X=D+(d?-P:P),W=-s[0]*I,ce=-s[1]*D;let q=I0(V,A,C),F=I0(X,E,N);if(u){let K=0,ne=0;h&&J<0?K=aa(T+J+W,u[0][0]):!h&&J>0&&(K=la(T+V+W,u[1][0])),d&&P<0?ne=aa(B+P+ce,u[0][1]):!d&&P>0&&(ne=la(B+X+ce,u[1][1])),q=Math.max(q,K),F=Math.max(F,ne)}if(f){let K=0,ne=0;h&&J>0?K=la(T+J,f[0][0]):!h&&J<0&&(K=aa(T+V,f[1][0])),d&&P>0?ne=la(B+P,f[0][1]):!d&&P<0&&(ne=aa(B+X,f[1][1])),q=Math.max(q,K),F=Math.max(F,ne)}if(l){if(p){const K=I0(V/U,E,N)*U;if(q=Math.max(q,K),u){let ne=0;!h&&!d||h&&!d&&v?ne=la(B+ce+V/U,u[1][1])*U:ne=aa(B+ce+(h?J:-J)/U,u[0][1])*U,q=Math.max(q,ne)}if(f){let ne=0;!h&&!d||h&&!d&&v?ne=aa(B+V/U,f[1][1])*U:ne=la(B+(h?J:-J)/U,f[0][1])*U,q=Math.max(q,ne)}}if(m){const K=I0(X*U,A,C)/U;if(F=Math.max(F,K),u){let ne=0;!h&&!d||d&&!h&&v?ne=la(T+X*U+W,u[1][0])/U:ne=aa(T+(d?P:-P)*U+W,u[0][0])/U,F=Math.max(F,ne)}if(f){let ne=0;!h&&!d||d&&!h&&v?ne=aa(T+X*U,f[1][0])/U:ne=la(T+(d?P:-P)*U,f[0][0])/U,F=Math.max(F,ne)}}}P=P+(P<0?F:-F),J=J+(J<0?q:-q),l&&(v?V>X*U?P=(u6(h,d)?-J:J)/U:J=(u6(h,d)?-P:P)*U:p?(P=J/U,d=h):(J=P*U,h=d));const L=h?T+J:T,Y=d?B+P:B;return{width:I+(h?-J:J),height:D+(d?-P:P),x:s[0]*J*(h?-1:1)+L,y:s[1]*P*(d?-1:1)+Y}}const av={width:0,height:0,x:0,y:0},WO={...av,pointerX:0,pointerY:0,aspectRatio:1};function eR(e){return[[0,0],[e.measured.width,e.measured.height]]}function tR(e,t,n){const i=t.position.x+e.position.x,l=t.position.y+e.position.y,s=e.measured.width??0,u=e.measured.height??0,f=n[0]*s,h=n[1]*u;return[[i-f,l-h],[i+s-f,l+u-h]]}function nR({domNode:e,nodeId:t,getStoreItems:n,onChange:i,onEnd:l}){const s=Wn(e);let u={controlDirection:s6("bottom-right"),boundaries:{minWidth:0,minHeight:0,maxWidth:Number.MAX_VALUE,maxHeight:Number.MAX_VALUE},resizeDirection:void 0,keepAspectRatio:!1};function f({controlPosition:d,boundaries:p,keepAspectRatio:m,resizeDirection:v,onResizeStart:x,onResize:w,onResizeEnd:A,shouldResize:C}){let E={...av},N={...WO};u={boundaries:p,resizeDirection:v,keepAspectRatio:m,controlDirection:s6(d)};let T,B=null,I=[],D,U,J,P=!1;const V=p8().on("start",X=>{const{nodeLookup:W,transform:ce,snapGrid:q,snapToGrid:F,nodeOrigin:L,paneDomNode:Y}=n();if(T=W.get(t),!T)return;B=Y?.getBoundingClientRect()??null;const{xSnapped:K,ySnapped:ne}=As(X.sourceEvent,{transform:ce,snapGrid:q,snapToGrid:F,containerBounds:B});E={width:T.measured.width??0,height:T.measured.height??0,x:T.position.x??0,y:T.position.y??0},N={...E,pointerX:K,pointerY:ne,aspectRatio:E.width/E.height},D=void 0,T.parentId&&(T.extent==="parent"||T.expandParent)&&(D=W.get(T.parentId),U=D&&T.extent==="parent"?eR(D):void 0),I=[],J=void 0;for(const[R,j]of W)if(j.parentId===t&&(I.push({id:R,position:{...j.position},extent:j.extent}),j.extent==="parent"||j.expandParent)){const Z=tR(j,T,j.origin??L);J?J=[[Math.min(Z[0][0],J[0][0]),Math.min(Z[0][1],J[0][1])],[Math.max(Z[1][0],J[1][0]),Math.max(Z[1][1],J[1][1])]]:J=Z}x?.(X,{...E})}).on("drag",X=>{const{transform:W,snapGrid:ce,snapToGrid:q,nodeOrigin:F}=n(),L=As(X.sourceEvent,{transform:W,snapGrid:ce,snapToGrid:q,containerBounds:B}),Y=[];if(!T)return;const{x:K,y:ne,width:R,height:j}=E,Z={},_=T.origin??F,{width:se,height:ve,x:xe,y:we}=JO(N,u.controlDirection,L,u.boundaries,u.keepAspectRatio,_,U,J),ye=se!==R,ke=ve!==j,Be=xe!==K&&ye,Ue=we!==ne&&ke;if(!Be&&!Ue&&!ye&&!ke)return;if((Be||Ue||_[0]===1||_[1]===1)&&(Z.x=Be?xe:E.x,Z.y=Ue?we:E.y,E.x=Z.x,E.y=Z.y,I.length>0)){const tt=xe-K,Qe=we-ne;for(const yt of I)yt.position={x:yt.position.x-tt+_[0]*(se-R),y:yt.position.y-Qe+_[1]*(ve-j)},Y.push(yt)}if((ye||ke)&&(Z.width=ye&&(!u.resizeDirection||u.resizeDirection==="horizontal")?se:E.width,Z.height=ke&&(!u.resizeDirection||u.resizeDirection==="vertical")?ve:E.height,E.width=Z.width,E.height=Z.height),D&&T.expandParent){const tt=_[0]*(Z.width??0);Z.x&&Z.x<tt&&(E.x=tt,N.x=N.x-(Z.x-tt));const Qe=_[1]*(Z.height??0);Z.y&&Z.y<Qe&&(E.y=Qe,N.y=N.y-(Z.y-Qe))}const Oe=KO({width:E.width,prevWidth:R,height:E.height,prevHeight:j,affectsX:u.controlDirection.affectsX,affectsY:u.controlDirection.affectsY}),_e={...E,direction:Oe};C?.(X,_e)!==!1&&(P=!0,w?.(X,_e),i(Z,Y))}).on("end",X=>{P&&(A?.(X,{...E}),l?.({...E}),P=!1)});s.call(V)}function h(){s.on(".drag",null)}return{update:f,destroy:h}}var Wd={exports:{}},e1={},t1={exports:{}},n1={};var c6;function rR(){if(c6)return n1;c6=1;var e=Fs();function t(m,v){return m===v&&(m!==0||1/m===1/v)||m!==m&&v!==v}var n=typeof Object.is=="function"?Object.is:t,i=e.useState,l=e.useEffect,s=e.useLayoutEffect,u=e.useDebugValue;function f(m,v){var x=v(),w=i({inst:{value:x,getSnapshot:v}}),A=w[0].inst,C=w[1];return s(function(){A.value=x,A.getSnapshot=v,h(A)&&C({inst:A})},[m,x,v]),l(function(){return h(A)&&C({inst:A}),m(function(){h(A)&&C({inst:A})})},[m]),u(x),x}function h(m){var v=m.getSnapshot;m=m.value;try{var x=v();return!n(m,x)}catch{return!0}}function d(m,v){return v()}var p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:f;return n1.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:p,n1}var f6;function iR(){return f6||(f6=1,t1.exports=rR()),t1.exports}var h6;function aR(){if(h6)return e1;h6=1;var e=Fs(),t=iR();function n(d,p){return d===p&&(d!==0||1/d===1/p)||d!==d&&p!==p}var i=typeof Object.is=="function"?Object.is:n,l=t.useSyncExternalStore,s=e.useRef,u=e.useEffect,f=e.useMemo,h=e.useDebugValue;return e1.useSyncExternalStoreWithSelector=function(d,p,m,v,x){var w=s(null);if(w.current===null){var A={hasValue:!1,value:null};w.current=A}else A=w.current;w=f(function(){function E(D){if(!N){if(N=!0,T=D,D=v(D),x!==void 0&&A.hasValue){var U=A.value;if(x(U,D))return B=U}return B=D}if(U=B,i(T,D))return U;var J=v(D);return x!==void 0&&x(U,J)?(T=D,U):(T=D,B=J)}var N=!1,T,B,I=m===void 0?null:m;return[function(){return E(p())},I===null?void 0:function(){return E(I())}]},[p,m,v,x]);var C=l(d,w[0],w[1]);return u(function(){A.hasValue=!0,A.value=C},[C]),h(C),C},e1}var d6;function lR(){return d6||(d6=1,Wd.exports=aR()),Wd.exports}var oR=lR();const sR=vc(oR),uR={},m6=e=>{let t;const n=new Set,i=(p,m)=>{const v=typeof p=="function"?p(t):p;if(!Object.is(v,t)){const x=t;t=m??(typeof v!="object"||v===null)?v:Object.assign({},t,v),n.forEach(w=>w(t,x))}},l=()=>t,h={setState:i,getState:l,getInitialState:()=>d,subscribe:p=>(n.add(p),()=>n.delete(p)),destroy:()=>{(uR?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},d=t=e(i,l,h);return h},cR=e=>e?m6(e):m6,{useDebugValue:fR}=nb,{useSyncExternalStoreWithSelector:hR}=sR,dR=e=>e;function lv(e,t=dR,n){const i=hR(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return fR(i),i}const p6=(e,t)=>{const n=cR(e),i=(l,s=t)=>lv(n,l,s);return Object.assign(i,n),i},mR=(e,t)=>e?p6(e,t):p6;function Bt(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[i,l]of e)if(!Object.is(l,t.get(i)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const i of e)if(!t.has(i))return!1;return!0}const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(const i of n)if(!Object.prototype.hasOwnProperty.call(t,i)||!Object.is(e[i],t[i]))return!1;return!0}F6();const Gc=ie.createContext(null),pR=Gc.Provider,ov=Fr.error001();function ft(e,t){const n=ie.useContext(Gc);if(n===null)throw new Error(ov);return lv(n,e,t)}function Ht(){const e=ie.useContext(Gc);if(e===null)throw new Error(ov);return ie.useMemo(()=>({getState:e.getState,setState:e.setState,subscribe:e.subscribe}),[e])}const g6={display:"none"},gR={position:"absolute",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"},sv="react-flow__node-desc",uv="react-flow__edge-desc",yR="react-flow__aria-live",vR=e=>e.ariaLiveMessage,xR=e=>e.ariaLabelConfig;function bR({rfId:e}){const t=ft(vR);return z.jsx("div",{id:`${yR}-${e}`,"aria-live":"assertive","aria-atomic":"true",style:gR,children:t})}function wR({rfId:e,disableKeyboardA11y:t}){const n=ft(xR);return z.jsxs(z.Fragment,{children:[z.jsx("div",{id:`${sv}-${e}`,style:g6,children:t?n["node.a11yDescription.default"]:n["node.a11yDescription.keyboardDisabled"]}),z.jsx("div",{id:`${uv}-${e}`,style:g6,children:n["edge.a11yDescription.default"]}),!t&&z.jsx(bR,{rfId:e})]})}const $c=ie.forwardRef(({position:e="top-left",children:t,className:n,style:i,...l},s)=>{const u=`${e}`.split("-");return z.jsx("div",{className:nn(["react-flow__panel",n,...u]),style:i,ref:s,...l,children:t})});$c.displayName="Panel";function SR({proOptions:e,position:t="bottom-right"}){return e?.hideAttribution?null:z.jsx($c,{position:t,className:"react-flow__attribution","data-message":"Please only hide this attribution when you are subscribed to React Flow Pro: https://pro.reactflow.dev",children:z.jsx("a",{href:"https://reactflow.dev",target:"_blank",rel:"noopener noreferrer","aria-label":"React Flow attribution",children:"React Flow"})})}const kR=e=>{const t=[],n=[];for(const[,i]of e.nodeLookup)i.selected&&t.push(i.internals.userNode);for(const[,i]of e.edgeLookup)i.selected&&n.push(i);return{selectedNodes:t,selectedEdges:n}},U0=e=>e.id;function ER(e,t){return Bt(e.selectedNodes.map(U0),t.selectedNodes.map(U0))&&Bt(e.selectedEdges.map(U0),t.selectedEdges.map(U0))}function AR({onSelectionChange:e}){const t=Ht(),{selectedNodes:n,selectedEdges:i}=ft(kR,ER);return ie.useEffect(()=>{const l={nodes:n,edges:i};e?.(l),t.getState().onSelectionChangeHandlers.forEach(s=>s(l))},[n,i,e]),null}const CR=e=>!!e.onSelectionChangeHandlers;function TR({onSelectionChange:e}){const t=ft(CR);return e||t?z.jsx(AR,{onSelectionChange:e}):null}const Z1=typeof window<"u"?ie.useLayoutEffect:ie.useEffect,cv=[0,0],MR={x:0,y:0,zoom:1},zR=["nodes","edges","defaultNodes","defaultEdges","onConnect","onConnectStart","onConnectEnd","onClickConnectStart","onClickConnectEnd","nodesDraggable","autoPanOnNodeFocus","nodesConnectable","nodesFocusable","edgesFocusable","edgesReconnectable","elevateNodesOnSelect","elevateEdgesOnSelect","minZoom","maxZoom","nodeExtent","onNodesChange","onEdgesChange","elementsSelectable","connectionMode","snapGrid","snapToGrid","translateExtent","connectOnClick","defaultEdgeOptions","fitView","fitViewOptions","onNodesDelete","onEdgesDelete","onDelete","onNodeDrag","onNodeDragStart","onNodeDragStop","onSelectionDrag","onSelectionDragStart","onSelectionDragStop","onMoveStart","onMove","onMoveEnd","noPanClassName","nodeOrigin","autoPanOnConnect","autoPanOnNodeDrag","onError","connectionRadius","isValidConnection","selectNodesOnDrag","nodeDragThreshold","connectionDragThreshold","onBeforeDelete","debug","autoPanSpeed","ariaLabelConfig","zIndexMode"],y6=[...zR,"rfId"],NR=e=>({setNodes:e.setNodes,setEdges:e.setEdges,setMinZoom:e.setMinZoom,setMaxZoom:e.setMaxZoom,setTranslateExtent:e.setTranslateExtent,setNodeExtent:e.setNodeExtent,reset:e.reset,setDefaultNodesAndEdges:e.setDefaultNodesAndEdges}),v6={translateExtent:Ls,nodeOrigin:cv,minZoom:.5,maxZoom:2,elementsSelectable:!0,noPanClassName:"nopan",rfId:"1"};function DR(e){const{setNodes:t,setEdges:n,setMinZoom:i,setMaxZoom:l,setTranslateExtent:s,setNodeExtent:u,reset:f,setDefaultNodesAndEdges:h}=ft(NR,Bt),d=Ht();Z1(()=>(h(e.defaultNodes,e.defaultEdges),()=>{p.current=v6,f()}),[]);const p=ie.useRef(v6);return Z1(()=>{for(const m of y6){const v=e[m],x=p.current[m];v!==x&&(typeof e[m]>"u"||(m==="nodes"?t(v):m==="edges"?n(v):m==="minZoom"?i(v):m==="maxZoom"?l(v):m==="translateExtent"?s(v):m==="nodeExtent"?u(v):m==="ariaLabelConfig"?d.setState({ariaLabelConfig:mO(v)}):m==="fitView"?d.setState({fitViewQueued:v}):m==="fitViewOptions"?d.setState({fitViewOptions:v}):d.setState({[m]:v})))}p.current=e},y6.map(m=>e[m])),null}function x6(){return typeof window>"u"||!window.matchMedia?null:window.matchMedia("(prefers-color-scheme: dark)")}function _R(e){const[t,n]=ie.useState(e==="system"?null:e);return ie.useEffect(()=>{if(e!=="system"){n(e);return}const i=x6(),l=()=>n(i?.matches?"dark":"light");return l(),i?.addEventListener("change",l),()=>{i?.removeEventListener("change",l)}},[e]),t!==null?t:x6()?.matches?"dark":"light"}const b6=typeof document<"u"?document:null;function Us(e=null,t={target:b6,actInsideInputWithModifier:!0}){const[n,i]=ie.useState(!1),l=ie.useRef(!1),s=ie.useRef(new Set([])),[u,f]=ie.useMemo(()=>{if(e!==null){const d=(Array.isArray(e)?e:[e]).filter(m=>typeof m=="string").map(m=>m.replace("+",`
|
|
306
|
+
`).replace(`
|
|
307
|
+
|
|
308
|
+
`,`
|
|
309
|
+
+`).split(`
|
|
310
|
+
`)),p=d.reduce((m,v)=>m.concat(...v),[]);return[d,p]}return[[],[]]},[e]);return ie.useEffect(()=>{const h=t?.target??b6,d=t?.actInsideInputWithModifier??!0;if(e!==null){const p=x=>{if(l.current=x.ctrlKey||x.metaKey||x.shiftKey||x.altKey,(!l.current||l.current&&!d)&&V8(x))return!1;const A=S6(x.code,f);if(s.current.add(x[A]),w6(u,s.current,!1)){const C=x.composedPath?.()?.[0]||x.target,E=C?.nodeName==="BUTTON"||C?.nodeName==="A";t.preventDefault!==!1&&(l.current||!E)&&x.preventDefault(),i(!0)}},m=x=>{const w=S6(x.code,f);w6(u,s.current,!0)?(i(!1),s.current.clear()):s.current.delete(x[w]),x.key==="Meta"&&s.current.clear(),l.current=!1},v=()=>{s.current.clear(),i(!1)};return h?.addEventListener("keydown",p),h?.addEventListener("keyup",m),window.addEventListener("blur",v),window.addEventListener("contextmenu",v),()=>{h?.removeEventListener("keydown",p),h?.removeEventListener("keyup",m),window.removeEventListener("blur",v),window.removeEventListener("contextmenu",v)}}},[e,i]),n}function w6(e,t,n){return e.filter(i=>n||i.length===t.size).some(i=>i.every(l=>t.has(l)))}function S6(e,t){return t.includes(e)?"code":"key"}const OR=()=>{const e=Ht();return ie.useMemo(()=>({zoomIn:t=>{const{panZoom:n}=e.getState();return n?n.scaleBy(1.2,t):Promise.resolve(!1)},zoomOut:t=>{const{panZoom:n}=e.getState();return n?n.scaleBy(1/1.2,t):Promise.resolve(!1)},zoomTo:(t,n)=>{const{panZoom:i}=e.getState();return i?i.scaleTo(t,n):Promise.resolve(!1)},getZoom:()=>e.getState().transform[2],setViewport:async(t,n)=>{const{transform:[i,l,s],panZoom:u}=e.getState();return u?(await u.setViewport({x:t.x??i,y:t.y??l,zoom:t.zoom??s},n),Promise.resolve(!0)):Promise.resolve(!1)},getViewport:()=>{const[t,n,i]=e.getState().transform;return{x:t,y:n,zoom:i}},setCenter:async(t,n,i)=>e.getState().setCenter(t,n,i),fitBounds:async(t,n)=>{const{width:i,height:l,minZoom:s,maxZoom:u,panZoom:f}=e.getState(),h=Fm(t,i,l,s,u,n?.padding??.1);return f?(await f.setViewport(h,{duration:n?.duration,ease:n?.ease,interpolate:n?.interpolate}),Promise.resolve(!0)):Promise.resolve(!1)},screenToFlowPosition:(t,n={})=>{const{transform:i,snapGrid:l,snapToGrid:s,domNode:u}=e.getState();if(!u)return t;const{x:f,y:h}=u.getBoundingClientRect(),d={x:t.x-f,y:t.y-h},p=n.snapGrid??l,m=n.snapToGrid??s;return eu(d,i,m,p)},flowToScreenPosition:t=>{const{transform:n,domNode:i}=e.getState();if(!i)return t;const{x:l,y:s}=i.getBoundingClientRect(),u=pc(t,n);return{x:u.x+l,y:u.y+s}}}),[])};function fv(e,t){const n=[],i=new Map,l=[];for(const s of e)if(s.type==="add"){l.push(s);continue}else if(s.type==="remove"||s.type==="replace")i.set(s.id,[s]);else{const u=i.get(s.id);u?u.push(s):i.set(s.id,[s])}for(const s of t){const u=i.get(s.id);if(!u){n.push(s);continue}if(u[0].type==="remove")continue;if(u[0].type==="replace"){n.push({...u[0].item});continue}const f={...s};for(const h of u)RR(h,f);n.push(f)}return l.length&&l.forEach(s=>{s.index!==void 0?n.splice(s.index,0,{...s.item}):n.push({...s.item})}),n}function RR(e,t){switch(e.type){case"select":{t.selected=e.selected;break}case"position":{typeof e.position<"u"&&(t.position=e.position),typeof e.dragging<"u"&&(t.dragging=e.dragging);break}case"dimensions":{typeof e.dimensions<"u"&&(t.measured={...e.dimensions},e.setAttributes&&((e.setAttributes===!0||e.setAttributes==="width")&&(t.width=e.dimensions.width),(e.setAttributes===!0||e.setAttributes==="height")&&(t.height=e.dimensions.height))),typeof e.resizing=="boolean"&&(t.resizing=e.resizing);break}}}function BR(e,t){return fv(e,t)}function LR(e,t){return fv(e,t)}function Ua(e,t){return{id:e,type:"select",selected:t}}function $l(e,t=new Set,n=!1){const i=[];for(const[l,s]of e){const u=t.has(l);!(s.selected===void 0&&!u)&&s.selected!==u&&(n&&(s.selected=u),i.push(Ua(s.id,u)))}return i}function k6({items:e=[],lookup:t}){const n=[],i=new Map(e.map(l=>[l.id,l]));for(const[l,s]of e.entries()){const u=t.get(s.id),f=u?.internals?.userNode??u;f!==void 0&&f!==s&&n.push({id:s.id,item:s,type:"replace"}),f===void 0&&n.push({item:s,type:"add",index:l})}for(const[l]of t)i.get(l)===void 0&&n.push({id:l,type:"remove"});return n}function E6(e){return{id:e.id,type:"remove"}}const A6=e=>iO(e),HR=e=>B8(e);function hv(e){return ie.forwardRef(e)}function C6(e){const[t,n]=ie.useState(BigInt(0)),[i]=ie.useState(()=>jR(()=>n(l=>l+BigInt(1))));return Z1(()=>{const l=i.get();l.length&&(e(l),i.reset())},[t]),i}function jR(e){let t=[];return{get:()=>t,reset:()=>{t=[]},push:n=>{t.push(n),e()}}}const dv=ie.createContext(null);function qR({children:e}){const t=Ht(),n=ie.useCallback(f=>{const{nodes:h=[],setNodes:d,hasDefaultNodes:p,onNodesChange:m,nodeLookup:v,fitViewQueued:x,onNodesChangeMiddlewareMap:w}=t.getState();let A=h;for(const E of f)A=typeof E=="function"?E(A):E;let C=k6({items:A,lookup:v});for(const E of w.values())C=E(C);p&&d(A),C.length>0?m?.(C):x&&window.requestAnimationFrame(()=>{const{fitViewQueued:E,nodes:N,setNodes:T}=t.getState();E&&T(N)})},[]),i=C6(n),l=ie.useCallback(f=>{const{edges:h=[],setEdges:d,hasDefaultEdges:p,onEdgesChange:m,edgeLookup:v}=t.getState();let x=h;for(const w of f)x=typeof w=="function"?w(x):w;p?d(x):m&&m(k6({items:x,lookup:v}))},[]),s=C6(l),u=ie.useMemo(()=>({nodeQueue:i,edgeQueue:s}),[]);return z.jsx(dv.Provider,{value:u,children:e})}function IR(){const e=ie.useContext(dv);if(!e)throw new Error("useBatchContext must be used within a BatchProvider");return e}const UR=e=>!!e.panZoom;function Xc(){const e=OR(),t=Ht(),n=IR(),i=ft(UR),l=ie.useMemo(()=>{const s=m=>t.getState().nodeLookup.get(m),u=m=>{n.nodeQueue.push(m)},f=m=>{n.edgeQueue.push(m)},h=m=>{const{nodeLookup:v,nodeOrigin:x}=t.getState(),w=A6(m)?m:v.get(m.id),A=w.parentId?U8(w.position,w.measured,w.parentId,v,x):w.position,C={...w,position:A,width:w.measured?.width??w.width,height:w.measured?.height??w.height};return ao(C)},d=(m,v,x={replace:!1})=>{u(w=>w.map(A=>{if(A.id===m){const C=typeof v=="function"?v(A):v;return x.replace&&A6(C)?C:{...A,...C}}return A}))},p=(m,v,x={replace:!1})=>{f(w=>w.map(A=>{if(A.id===m){const C=typeof v=="function"?v(A):v;return x.replace&&HR(C)?C:{...A,...C}}return A}))};return{getNodes:()=>t.getState().nodes.map(m=>({...m})),getNode:m=>s(m)?.internals.userNode,getInternalNode:s,getEdges:()=>{const{edges:m=[]}=t.getState();return m.map(v=>({...v}))},getEdge:m=>t.getState().edgeLookup.get(m),setNodes:u,setEdges:f,addNodes:m=>{const v=Array.isArray(m)?m:[m];n.nodeQueue.push(x=>[...x,...v])},addEdges:m=>{const v=Array.isArray(m)?m:[m];n.edgeQueue.push(x=>[...x,...v])},toObject:()=>{const{nodes:m=[],edges:v=[],transform:x}=t.getState(),[w,A,C]=x;return{nodes:m.map(E=>({...E})),edges:v.map(E=>({...E})),viewport:{x:w,y:A,zoom:C}}},deleteElements:async({nodes:m=[],edges:v=[]})=>{const{nodes:x,edges:w,onNodesDelete:A,onEdgesDelete:C,triggerNodeChanges:E,triggerEdgeChanges:N,onDelete:T,onBeforeDelete:B}=t.getState(),{nodes:I,edges:D}=await uO({nodesToRemove:m,edgesToRemove:v,nodes:x,edges:w,onBeforeDelete:B}),U=D.length>0,J=I.length>0;if(U){const P=D.map(E6);C?.(D),N(P)}if(J){const P=I.map(E6);A?.(I),E(P)}return(J||U)&&T?.({nodes:I,edges:D}),{deletedNodes:I,deletedEdges:D}},getIntersectingNodes:(m,v=!0,x)=>{const w=K5(m),A=w?m:h(m),C=x!==void 0;return A?(x||t.getState().nodes).filter(E=>{const N=t.getState().nodeLookup.get(E.id);if(N&&!w&&(E.id===m.id||!N.internals.positionAbsolute))return!1;const T=ao(C?E:N),B=qs(T,A);return v&&B>0||B>=T.width*T.height||B>=A.width*A.height}):[]},isNodeIntersecting:(m,v,x=!0)=>{const A=K5(m)?m:h(m);if(!A)return!1;const C=qs(A,v);return x&&C>0||C>=v.width*v.height||C>=A.width*A.height},updateNode:d,updateNodeData:(m,v,x={replace:!1})=>{d(m,w=>{const A=typeof v=="function"?v(w):v;return x.replace?{...w,data:A}:{...w,data:{...w.data,...A}}},x)},updateEdge:p,updateEdgeData:(m,v,x={replace:!1})=>{p(m,w=>{const A=typeof v=="function"?v(w):v;return x.replace?{...w,data:A}:{...w,data:{...w.data,...A}}},x)},getNodesBounds:m=>{const{nodeLookup:v,nodeOrigin:x}=t.getState();return aO(m,{nodeLookup:v,nodeOrigin:x})},getHandleConnections:({type:m,id:v,nodeId:x})=>Array.from(t.getState().connectionLookup.get(`${x}-${m}${v?`-${v}`:""}`)?.values()??[]),getNodeConnections:({type:m,handleId:v,nodeId:x})=>Array.from(t.getState().connectionLookup.get(`${x}${m?v?`-${m}-${v}`:`-${m}`:""}`)?.values()??[]),fitView:async m=>{const v=t.getState().fitViewResolver??dO();return t.setState({fitViewQueued:!0,fitViewOptions:m,fitViewResolver:v}),n.nodeQueue.push(x=>[...x]),v.promise}}},[]);return ie.useMemo(()=>({...l,...e,viewportInitialized:i}),[i])}const T6=e=>e.selected,FR=typeof window<"u"?window:void 0;function VR({deleteKeyCode:e,multiSelectionKeyCode:t}){const n=Ht(),{deleteElements:i}=Xc(),l=Us(e,{actInsideInputWithModifier:!1}),s=Us(t,{target:FR});ie.useEffect(()=>{if(l){const{edges:u,nodes:f}=n.getState();i({nodes:f.filter(T6),edges:u.filter(T6)}),n.setState({nodesSelectionActive:!1})}},[l]),ie.useEffect(()=>{n.setState({multiSelectionActive:s})},[s])}function YR(e){const t=Ht();ie.useEffect(()=>{const n=()=>{if(!e.current||!(e.current.checkVisibility?.()??!0))return!1;const i=Vm(e.current);(i.height===0||i.width===0)&&t.getState().onError?.("004",Fr.error004()),t.setState({width:i.width||500,height:i.height||500})};if(e.current){n(),window.addEventListener("resize",n);const i=new ResizeObserver(()=>n());return i.observe(e.current),()=>{window.removeEventListener("resize",n),i&&e.current&&i.unobserve(e.current)}}},[])}const Pc={position:"absolute",width:"100%",height:"100%",top:0,left:0},GR=e=>({userSelectionActive:e.userSelectionActive,lib:e.lib,connectionInProgress:e.connection.inProgress});function $R({onPaneContextMenu:e,zoomOnScroll:t=!0,zoomOnPinch:n=!0,panOnScroll:i=!1,panOnScrollSpeed:l=.5,panOnScrollMode:s=$a.Free,zoomOnDoubleClick:u=!0,panOnDrag:f=!0,defaultViewport:h,translateExtent:d,minZoom:p,maxZoom:m,zoomActivationKeyCode:v,preventScrolling:x=!0,children:w,noWheelClassName:A,noPanClassName:C,onViewportChange:E,isControlledViewport:N,paneClickDistance:T,selectionOnDrag:B}){const I=Ht(),D=ie.useRef(null),{userSelectionActive:U,lib:J,connectionInProgress:P}=ft(GR,Bt),V=Us(v),X=ie.useRef();YR(D);const W=ie.useCallback(ce=>{E?.({x:ce[0],y:ce[1],zoom:ce[2]}),N||I.setState({transform:ce})},[E,N]);return ie.useEffect(()=>{if(D.current){X.current=QO({domNode:D.current,minZoom:p,maxZoom:m,translateExtent:d,viewport:h,onDraggingChange:L=>I.setState(Y=>Y.paneDragging===L?Y:{paneDragging:L}),onPanZoomStart:(L,Y)=>{const{onViewportChangeStart:K,onMoveStart:ne}=I.getState();ne?.(L,Y),K?.(Y)},onPanZoom:(L,Y)=>{const{onViewportChange:K,onMove:ne}=I.getState();ne?.(L,Y),K?.(Y)},onPanZoomEnd:(L,Y)=>{const{onViewportChangeEnd:K,onMoveEnd:ne}=I.getState();ne?.(L,Y),K?.(Y)}});const{x:ce,y:q,zoom:F}=X.current.getViewport();return I.setState({panZoom:X.current,transform:[ce,q,F],domNode:D.current.closest(".react-flow")}),()=>{X.current?.destroy()}}},[]),ie.useEffect(()=>{X.current?.update({onPaneContextMenu:e,zoomOnScroll:t,zoomOnPinch:n,panOnScroll:i,panOnScrollSpeed:l,panOnScrollMode:s,zoomOnDoubleClick:u,panOnDrag:f,zoomActivationKeyPressed:V,preventScrolling:x,noPanClassName:C,userSelectionActive:U,noWheelClassName:A,lib:J,onTransformChange:W,connectionInProgress:P,selectionOnDrag:B,paneClickDistance:T})},[e,t,n,i,l,s,u,f,V,x,C,U,A,J,W,P,B,T]),z.jsx("div",{className:"react-flow__renderer",ref:D,style:Pc,children:w})}const XR=e=>({userSelectionActive:e.userSelectionActive,userSelectionRect:e.userSelectionRect});function PR(){const{userSelectionActive:e,userSelectionRect:t}=ft(XR,Bt);return e&&t?z.jsx("div",{className:"react-flow__selection react-flow__container",style:{width:t.width,height:t.height,transform:`translate(${t.x}px, ${t.y}px)`}}):null}const r1=(e,t)=>n=>{n.target===t.current&&e?.(n)},ZR=e=>({userSelectionActive:e.userSelectionActive,elementsSelectable:e.elementsSelectable,connectionInProgress:e.connection.inProgress,dragging:e.paneDragging});function QR({isSelecting:e,selectionKeyPressed:t,selectionMode:n=Hs.Full,panOnDrag:i,paneClickDistance:l,selectionOnDrag:s,onSelectionStart:u,onSelectionEnd:f,onPaneClick:h,onPaneContextMenu:d,onPaneScroll:p,onPaneMouseEnter:m,onPaneMouseMove:v,onPaneMouseLeave:x,children:w}){const A=Ht(),{userSelectionActive:C,elementsSelectable:E,dragging:N,connectionInProgress:T}=ft(ZR,Bt),B=E&&(e||C),I=ie.useRef(null),D=ie.useRef(),U=ie.useRef(new Set),J=ie.useRef(new Set),P=ie.useRef(!1),V=K=>{if(P.current||T){P.current=!1;return}h?.(K),A.getState().resetSelectedElements(),A.setState({nodesSelectionActive:!1})},X=K=>{if(Array.isArray(i)&&i?.includes(2)){K.preventDefault();return}d?.(K)},W=p?K=>p(K):void 0,ce=K=>{P.current&&(K.stopPropagation(),P.current=!1)},q=K=>{const{domNode:ne}=A.getState();if(D.current=ne?.getBoundingClientRect(),!D.current)return;const R=K.target===I.current;if(!R&&!!K.target.closest(".nokey")||!e||!(s&&R||t)||K.button!==0||!K.isPrimary)return;K.target?.setPointerCapture?.(K.pointerId),P.current=!1;const{x:_,y:se}=Ar(K.nativeEvent,D.current);A.setState({userSelectionRect:{width:0,height:0,startX:_,startY:se,x:_,y:se}}),R||(K.stopPropagation(),K.preventDefault())},F=K=>{const{userSelectionRect:ne,transform:R,nodeLookup:j,edgeLookup:Z,connectionLookup:_,triggerNodeChanges:se,triggerEdgeChanges:ve,defaultEdgeOptions:xe,resetSelectedElements:we}=A.getState();if(!D.current||!ne)return;const{x:ye,y:ke}=Ar(K.nativeEvent,D.current),{startX:Be,startY:Ue}=ne;if(!P.current){const Qe=t?0:l;if(Math.hypot(ye-Be,ke-Ue)<=Qe)return;we(),u?.(K)}P.current=!0;const Oe={startX:Be,startY:Ue,x:ye<Be?ye:Be,y:ke<Ue?ke:Ue,width:Math.abs(ye-Be),height:Math.abs(ke-Ue)},_e=U.current,Ge=J.current;U.current=new Set(Um(j,Oe,R,n===Hs.Partial,!0).map(Qe=>Qe.id)),J.current=new Set;const tt=xe?.selectable??!0;for(const Qe of U.current){const yt=_.get(Qe);if(yt)for(const{edgeId:pe}of yt.values()){const Ve=Z.get(pe);Ve&&(Ve.selectable??tt)&&J.current.add(pe)}}if(!J5(_e,U.current)){const Qe=$l(j,U.current,!0);se(Qe)}if(!J5(Ge,J.current)){const Qe=$l(Z,J.current);ve(Qe)}A.setState({userSelectionRect:Oe,userSelectionActive:!0,nodesSelectionActive:!1})},L=K=>{K.button===0&&(K.target?.releasePointerCapture?.(K.pointerId),!C&&K.target===I.current&&A.getState().userSelectionRect&&V?.(K),A.setState({userSelectionActive:!1,userSelectionRect:null}),P.current&&(f?.(K),A.setState({nodesSelectionActive:U.current.size>0})))},Y=i===!0||Array.isArray(i)&&i.includes(0);return z.jsxs("div",{className:nn(["react-flow__pane",{draggable:Y,dragging:N,selection:e}]),onClick:B?void 0:r1(V,I),onContextMenu:r1(X,I),onWheel:r1(W,I),onPointerEnter:B?void 0:m,onPointerMove:B?F:v,onPointerUp:B?L:void 0,onPointerDownCapture:B?q:void 0,onClickCapture:B?ce:void 0,onPointerLeave:x,ref:I,style:Pc,children:[w,z.jsx(PR,{})]})}function Q1({id:e,store:t,unselect:n=!1,nodeRef:i}){const{addSelectedNodes:l,unselectNodesAndEdges:s,multiSelectionActive:u,nodeLookup:f,onError:h}=t.getState(),d=f.get(e);if(!d){h?.("012",Fr.error012(e));return}t.setState({nodesSelectionActive:!1}),d.selected?(n||d.selected&&u)&&(s({nodes:[d],edges:[]}),requestAnimationFrame(()=>i?.current?.blur())):l([e])}function mv({nodeRef:e,disabled:t=!1,noDragClassName:n,handleSelector:i,nodeId:l,isSelectable:s,nodeClickDistance:u}){const f=Ht(),[h,d]=ie.useState(!1),p=ie.useRef();return ie.useEffect(()=>{p.current=LO({getStoreItems:()=>f.getState(),onNodeMouseDown:m=>{Q1({id:m,store:f,nodeRef:e})},onDragStart:()=>{d(!0)},onDragStop:()=>{d(!1)}})},[]),ie.useEffect(()=>{if(!(t||!e.current||!p.current))return p.current.update({noDragClassName:n,handleSelector:i,domNode:e.current,isSelectable:s,nodeId:l,nodeClickDistance:u}),()=>{p.current?.destroy()}},[n,i,t,s,e,l,u]),h}const KR=e=>t=>t.selected&&(t.draggable||e&&typeof t.draggable>"u");function pv(){const e=Ht();return ie.useCallback(n=>{const{nodeExtent:i,snapToGrid:l,snapGrid:s,nodesDraggable:u,onError:f,updateNodePositions:h,nodeLookup:d,nodeOrigin:p}=e.getState(),m=new Map,v=KR(u),x=l?s[0]:5,w=l?s[1]:5,A=n.direction.x*x*n.factor,C=n.direction.y*w*n.factor;for(const[,E]of d){if(!v(E))continue;let N={x:E.internals.positionAbsolute.x+A,y:E.internals.positionAbsolute.y+C};l&&(N=Ws(N,s));const{position:T,positionAbsolute:B}=L8({nodeId:E.id,nextPosition:N,nodeLookup:d,nodeExtent:i,nodeOrigin:p,onError:f});E.position=T,E.internals.positionAbsolute=B,m.set(E.id,E)}h(m)},[])}const Zm=ie.createContext(null),JR=Zm.Provider;Zm.Consumer;const gv=()=>ie.useContext(Zm),WR=e=>({connectOnClick:e.connectOnClick,noPanClassName:e.noPanClassName,rfId:e.rfId}),eB=(e,t,n)=>i=>{const{connectionClickStartHandle:l,connectionMode:s,connection:u}=i,{fromHandle:f,toHandle:h,isValid:d}=u,p=h?.nodeId===e&&h?.id===t&&h?.type===n;return{connectingFrom:f?.nodeId===e&&f?.id===t&&f?.type===n,connectingTo:p,clickConnecting:l?.nodeId===e&&l?.id===t&&l?.type===n,isPossibleEndHandle:s===ro.Strict?f?.type!==n:e!==f?.nodeId||t!==f?.id,connectionInProcess:!!f,clickConnectionInProcess:!!l,valid:p&&d}};function tB({type:e="source",position:t=He.Top,isValidConnection:n,isConnectable:i=!0,isConnectableStart:l=!0,isConnectableEnd:s=!0,id:u,onConnect:f,children:h,className:d,onMouseDown:p,onTouchStart:m,...v},x){const w=u||null,A=e==="target",C=Ht(),E=gv(),{connectOnClick:N,noPanClassName:T,rfId:B}=ft(WR,Bt),{connectingFrom:I,connectingTo:D,clickConnecting:U,isPossibleEndHandle:J,connectionInProcess:P,clickConnectionInProcess:V,valid:X}=ft(eB(E,w,e),Bt);E||C.getState().onError?.("010",Fr.error010());const W=F=>{const{defaultEdgeOptions:L,onConnect:Y,hasDefaultEdges:K}=C.getState(),ne={...L,...F};if(K){const{edges:R,setEdges:j}=C.getState();j(bO(ne,R))}Y?.(ne),f?.(ne)},ce=F=>{if(!E)return;const L=Y8(F.nativeEvent);if(l&&(L&&F.button===0||!L)){const Y=C.getState();P1.onPointerDown(F.nativeEvent,{handleDomNode:F.currentTarget,autoPanOnConnect:Y.autoPanOnConnect,connectionMode:Y.connectionMode,connectionRadius:Y.connectionRadius,domNode:Y.domNode,nodeLookup:Y.nodeLookup,lib:Y.lib,isTarget:A,handleId:w,nodeId:E,flowId:Y.rfId,panBy:Y.panBy,cancelConnection:Y.cancelConnection,onConnectStart:Y.onConnectStart,onConnectEnd:(...K)=>C.getState().onConnectEnd?.(...K),updateConnection:Y.updateConnection,onConnect:W,isValidConnection:n||((...K)=>C.getState().isValidConnection?.(...K)??!0),getTransform:()=>C.getState().transform,getFromHandle:()=>C.getState().connection.fromHandle,autoPanSpeed:Y.autoPanSpeed,dragThreshold:Y.connectionDragThreshold})}L?p?.(F):m?.(F)},q=F=>{const{onClickConnectStart:L,onClickConnectEnd:Y,connectionClickStartHandle:K,connectionMode:ne,isValidConnection:R,lib:j,rfId:Z,nodeLookup:_,connection:se}=C.getState();if(!E||!K&&!l)return;if(!K){L?.(F.nativeEvent,{nodeId:E,handleId:w,handleType:e}),C.setState({connectionClickStartHandle:{nodeId:E,type:e,id:w}});return}const ve=F8(F.target),xe=n||R,{connection:we,isValid:ye}=P1.isValid(F.nativeEvent,{handle:{nodeId:E,id:w,type:e},connectionMode:ne,fromNodeId:K.nodeId,fromHandleId:K.id||null,fromType:K.type,isValidConnection:xe,flowId:Z,doc:ve,lib:j,nodeLookup:_});ye&&we&&W(we);const ke=structuredClone(se);delete ke.inProgress,ke.toPosition=ke.toHandle?ke.toHandle.position:null,Y?.(F,ke),C.setState({connectionClickStartHandle:null})};return z.jsx("div",{"data-handleid":w,"data-nodeid":E,"data-handlepos":t,"data-id":`${B}-${E}-${w}-${e}`,className:nn(["react-flow__handle",`react-flow__handle-${t}`,"nodrag",T,d,{source:!A,target:A,connectable:i,connectablestart:l,connectableend:s,clickconnecting:U,connectingfrom:I,connectingto:D,valid:X,connectionindicator:i&&(!P||J)&&(P||V?s:l)}]),onMouseDown:ce,onTouchStart:ce,onClick:N?q:void 0,ref:x,...v,children:h})}const ua=ie.memo(hv(tB));function nB({data:e,isConnectable:t,sourcePosition:n=He.Bottom}){return z.jsxs(z.Fragment,{children:[e?.label,z.jsx(ua,{type:"source",position:n,isConnectable:t})]})}function rB({data:e,isConnectable:t,targetPosition:n=He.Top,sourcePosition:i=He.Bottom}){return z.jsxs(z.Fragment,{children:[z.jsx(ua,{type:"target",position:n,isConnectable:t}),e?.label,z.jsx(ua,{type:"source",position:i,isConnectable:t})]})}function iB(){return null}function aB({data:e,isConnectable:t,targetPosition:n=He.Top}){return z.jsxs(z.Fragment,{children:[z.jsx(ua,{type:"target",position:n,isConnectable:t}),e?.label]})}const gc={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}},M6={input:nB,default:rB,output:aB,group:iB};function lB(e){return e.internals.handleBounds===void 0?{width:e.width??e.initialWidth??e.style?.width,height:e.height??e.initialHeight??e.style?.height}:{width:e.width??e.style?.width,height:e.height??e.style?.height}}const oB=e=>{const{width:t,height:n,x:i,y:l}=Js(e.nodeLookup,{filter:s=>!!s.selected});return{width:Er(t)?t:null,height:Er(n)?n:null,userSelectionActive:e.userSelectionActive,transformString:`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]}) translate(${i}px,${l}px)`}};function sB({onSelectionContextMenu:e,noPanClassName:t,disableKeyboardA11y:n}){const i=Ht(),{width:l,height:s,transformString:u,userSelectionActive:f}=ft(oB,Bt),h=pv(),d=ie.useRef(null);ie.useEffect(()=>{n||d.current?.focus({preventScroll:!0})},[n]);const p=!f&&l!==null&&s!==null;if(mv({nodeRef:d,disabled:!p}),!p)return null;const m=e?x=>{const w=i.getState().nodes.filter(A=>A.selected);e(x,w)}:void 0,v=x=>{Object.prototype.hasOwnProperty.call(gc,x.key)&&(x.preventDefault(),h({direction:gc[x.key],factor:x.shiftKey?4:1}))};return z.jsx("div",{className:nn(["react-flow__nodesselection","react-flow__container",t]),style:{transform:u},children:z.jsx("div",{ref:d,className:"react-flow__nodesselection-rect",onContextMenu:m,tabIndex:n?void 0:-1,onKeyDown:n?void 0:v,style:{width:l,height:s}})})}const z6=typeof window<"u"?window:void 0,uB=e=>({nodesSelectionActive:e.nodesSelectionActive,userSelectionActive:e.userSelectionActive});function yv({children:e,onPaneClick:t,onPaneMouseEnter:n,onPaneMouseMove:i,onPaneMouseLeave:l,onPaneContextMenu:s,onPaneScroll:u,paneClickDistance:f,deleteKeyCode:h,selectionKeyCode:d,selectionOnDrag:p,selectionMode:m,onSelectionStart:v,onSelectionEnd:x,multiSelectionKeyCode:w,panActivationKeyCode:A,zoomActivationKeyCode:C,elementsSelectable:E,zoomOnScroll:N,zoomOnPinch:T,panOnScroll:B,panOnScrollSpeed:I,panOnScrollMode:D,zoomOnDoubleClick:U,panOnDrag:J,defaultViewport:P,translateExtent:V,minZoom:X,maxZoom:W,preventScrolling:ce,onSelectionContextMenu:q,noWheelClassName:F,noPanClassName:L,disableKeyboardA11y:Y,onViewportChange:K,isControlledViewport:ne}){const{nodesSelectionActive:R,userSelectionActive:j}=ft(uB,Bt),Z=Us(d,{target:z6}),_=Us(A,{target:z6}),se=_||J,ve=_||B,xe=p&&se!==!0,we=Z||j||xe;return VR({deleteKeyCode:h,multiSelectionKeyCode:w}),z.jsx($R,{onPaneContextMenu:s,elementsSelectable:E,zoomOnScroll:N,zoomOnPinch:T,panOnScroll:ve,panOnScrollSpeed:I,panOnScrollMode:D,zoomOnDoubleClick:U,panOnDrag:!Z&&se,defaultViewport:P,translateExtent:V,minZoom:X,maxZoom:W,zoomActivationKeyCode:C,preventScrolling:ce,noWheelClassName:F,noPanClassName:L,onViewportChange:K,isControlledViewport:ne,paneClickDistance:f,selectionOnDrag:xe,children:z.jsxs(QR,{onSelectionStart:v,onSelectionEnd:x,onPaneClick:t,onPaneMouseEnter:n,onPaneMouseMove:i,onPaneMouseLeave:l,onPaneContextMenu:s,onPaneScroll:u,panOnDrag:se,isSelecting:!!we,selectionMode:m,selectionKeyPressed:Z,paneClickDistance:f,selectionOnDrag:xe,children:[e,R&&z.jsx(sB,{onSelectionContextMenu:q,noPanClassName:L,disableKeyboardA11y:Y})]})})}yv.displayName="FlowRenderer";const cB=ie.memo(yv),fB=e=>t=>e?Um(t.nodeLookup,{x:0,y:0,width:t.width,height:t.height},t.transform,!0).map(n=>n.id):Array.from(t.nodeLookup.keys());function hB(e){return ft(ie.useCallback(fB(e),[e]),Bt)}const dB=e=>e.updateNodeInternals;function mB(){const e=ft(dB),[t]=ie.useState(()=>typeof ResizeObserver>"u"?null:new ResizeObserver(n=>{const i=new Map;n.forEach(l=>{const s=l.target.getAttribute("data-id");i.set(s,{id:s,nodeElement:l.target,force:!0})}),e(i)}));return ie.useEffect(()=>()=>{t?.disconnect()},[t]),t}function pB({node:e,nodeType:t,hasDimensions:n,resizeObserver:i}){const l=Ht(),s=ie.useRef(null),u=ie.useRef(null),f=ie.useRef(e.sourcePosition),h=ie.useRef(e.targetPosition),d=ie.useRef(t),p=n&&!!e.internals.handleBounds;return ie.useEffect(()=>{s.current&&!e.hidden&&(!p||u.current!==s.current)&&(u.current&&i?.unobserve(u.current),i?.observe(s.current),u.current=s.current)},[p,e.hidden]),ie.useEffect(()=>()=>{u.current&&(i?.unobserve(u.current),u.current=null)},[]),ie.useEffect(()=>{if(s.current){const m=d.current!==t,v=f.current!==e.sourcePosition,x=h.current!==e.targetPosition;(m||v||x)&&(d.current=t,f.current=e.sourcePosition,h.current=e.targetPosition,l.getState().updateNodeInternals(new Map([[e.id,{id:e.id,nodeElement:s.current,force:!0}]])))}},[e.id,t,e.sourcePosition,e.targetPosition]),s}function gB({id:e,onClick:t,onMouseEnter:n,onMouseMove:i,onMouseLeave:l,onContextMenu:s,onDoubleClick:u,nodesDraggable:f,elementsSelectable:h,nodesConnectable:d,nodesFocusable:p,resizeObserver:m,noDragClassName:v,noPanClassName:x,disableKeyboardA11y:w,rfId:A,nodeTypes:C,nodeClickDistance:E,onError:N}){const{node:T,internals:B,isParent:I}=ft(ye=>{const ke=ye.nodeLookup.get(e),Be=ye.parentLookup.has(e);return{node:ke,internals:ke.internals,isParent:Be}},Bt);let D=T.type||"default",U=C?.[D]||M6[D];U===void 0&&(N?.("003",Fr.error003(D)),D="default",U=C?.default||M6.default);const J=!!(T.draggable||f&&typeof T.draggable>"u"),P=!!(T.selectable||h&&typeof T.selectable>"u"),V=!!(T.connectable||d&&typeof T.connectable>"u"),X=!!(T.focusable||p&&typeof T.focusable>"u"),W=Ht(),ce=I8(T),q=pB({node:T,nodeType:D,hasDimensions:ce,resizeObserver:m}),F=mv({nodeRef:q,disabled:T.hidden||!J,noDragClassName:v,handleSelector:T.dragHandle,nodeId:e,isSelectable:P,nodeClickDistance:E}),L=pv();if(T.hidden)return null;const Y=Ti(T),K=lB(T),ne=P||J||t||n||i||l,R=n?ye=>n(ye,{...B.userNode}):void 0,j=i?ye=>i(ye,{...B.userNode}):void 0,Z=l?ye=>l(ye,{...B.userNode}):void 0,_=s?ye=>s(ye,{...B.userNode}):void 0,se=u?ye=>u(ye,{...B.userNode}):void 0,ve=ye=>{const{selectNodesOnDrag:ke,nodeDragThreshold:Be}=W.getState();P&&(!ke||!J||Be>0)&&Q1({id:e,store:W,nodeRef:q}),t&&t(ye,{...B.userNode})},xe=ye=>{if(!(V8(ye.nativeEvent)||w)){if(D8.includes(ye.key)&&P){const ke=ye.key==="Escape";Q1({id:e,store:W,unselect:ke,nodeRef:q})}else if(J&&T.selected&&Object.prototype.hasOwnProperty.call(gc,ye.key)){ye.preventDefault();const{ariaLabelConfig:ke}=W.getState();W.setState({ariaLiveMessage:ke["node.a11yDescription.ariaLiveMessage"]({direction:ye.key.replace("Arrow","").toLowerCase(),x:~~B.positionAbsolute.x,y:~~B.positionAbsolute.y})}),L({direction:gc[ye.key],factor:ye.shiftKey?4:1})}}},we=()=>{if(w||!q.current?.matches(":focus-visible"))return;const{transform:ye,width:ke,height:Be,autoPanOnNodeFocus:Ue,setCenter:Oe}=W.getState();if(!Ue)return;Um(new Map([[e,T]]),{x:0,y:0,width:ke,height:Be},ye,!0).length>0||Oe(T.position.x+Y.width/2,T.position.y+Y.height/2,{zoom:ye[2]})};return z.jsx("div",{className:nn(["react-flow__node",`react-flow__node-${D}`,{[x]:J},T.className,{selected:T.selected,selectable:P,parent:I,draggable:J,dragging:F}]),ref:q,style:{zIndex:B.z,transform:`translate(${B.positionAbsolute.x}px,${B.positionAbsolute.y}px)`,pointerEvents:ne?"all":"none",visibility:ce?"visible":"hidden",...T.style,...K},"data-id":e,"data-testid":`rf__node-${e}`,onMouseEnter:R,onMouseMove:j,onMouseLeave:Z,onContextMenu:_,onClick:ve,onDoubleClick:se,onKeyDown:X?xe:void 0,tabIndex:X?0:void 0,onFocus:X?we:void 0,role:T.ariaRole??(X?"group":void 0),"aria-roledescription":"node","aria-describedby":w?void 0:`${sv}-${A}`,"aria-label":T.ariaLabel,...T.domAttributes,children:z.jsx(JR,{value:e,children:z.jsx(U,{id:e,data:T.data,type:D,positionAbsoluteX:B.positionAbsolute.x,positionAbsoluteY:B.positionAbsolute.y,selected:T.selected??!1,selectable:P,draggable:J,deletable:T.deletable??!0,isConnectable:V,sourcePosition:T.sourcePosition,targetPosition:T.targetPosition,dragging:F,dragHandle:T.dragHandle,zIndex:B.z,parentId:T.parentId,...Y})})})}var yB=ie.memo(gB);const vB=e=>({nodesDraggable:e.nodesDraggable,nodesConnectable:e.nodesConnectable,nodesFocusable:e.nodesFocusable,elementsSelectable:e.elementsSelectable,onError:e.onError});function vv(e){const{nodesDraggable:t,nodesConnectable:n,nodesFocusable:i,elementsSelectable:l,onError:s}=ft(vB,Bt),u=hB(e.onlyRenderVisibleElements),f=mB();return z.jsx("div",{className:"react-flow__nodes",style:Pc,children:u.map(h=>z.jsx(yB,{id:h,nodeTypes:e.nodeTypes,nodeExtent:e.nodeExtent,onClick:e.onNodeClick,onMouseEnter:e.onNodeMouseEnter,onMouseMove:e.onNodeMouseMove,onMouseLeave:e.onNodeMouseLeave,onContextMenu:e.onNodeContextMenu,onDoubleClick:e.onNodeDoubleClick,noDragClassName:e.noDragClassName,noPanClassName:e.noPanClassName,rfId:e.rfId,disableKeyboardA11y:e.disableKeyboardA11y,resizeObserver:f,nodesDraggable:t,nodesConnectable:n,nodesFocusable:i,elementsSelectable:l,nodeClickDistance:e.nodeClickDistance,onError:s},h))})}vv.displayName="NodeRenderer";const xB=ie.memo(vv);function bB(e){return ft(ie.useCallback(n=>{if(!e)return n.edges.map(l=>l.id);const i=[];if(n.width&&n.height)for(const l of n.edges){const s=n.nodeLookup.get(l.source),u=n.nodeLookup.get(l.target);s&&u&&yO({sourceNode:s,targetNode:u,width:n.width,height:n.height,transform:n.transform})&&i.push(l.id)}return i},[e]),Bt)}const wB=({color:e="none",strokeWidth:t=1})=>{const n={strokeWidth:t,...e&&{stroke:e}};return z.jsx("polyline",{className:"arrow",style:n,strokeLinecap:"round",fill:"none",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4"})},SB=({color:e="none",strokeWidth:t=1})=>{const n={strokeWidth:t,...e&&{stroke:e,fill:e}};return z.jsx("polyline",{className:"arrowclosed",style:n,strokeLinecap:"round",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4 -5,-4"})},N6={[js.Arrow]:wB,[js.ArrowClosed]:SB};function kB(e){const t=Ht();return ie.useMemo(()=>Object.prototype.hasOwnProperty.call(N6,e)?N6[e]:(t.getState().onError?.("009",Fr.error009(e)),null),[e])}const EB=({id:e,type:t,color:n,width:i=12.5,height:l=12.5,markerUnits:s="strokeWidth",strokeWidth:u,orient:f="auto-start-reverse"})=>{const h=kB(t);return h?z.jsx("marker",{className:"react-flow__arrowhead",id:e,markerWidth:`${i}`,markerHeight:`${l}`,viewBox:"-10 -10 20 20",markerUnits:s,orient:f,refX:"0",refY:"0",children:z.jsx(h,{color:n,strokeWidth:u})}):null},xv=({defaultColor:e,rfId:t})=>{const n=ft(s=>s.edges),i=ft(s=>s.defaultEdgeOptions),l=ie.useMemo(()=>AO(n,{id:t,defaultColor:e,defaultMarkerStart:i?.markerStart,defaultMarkerEnd:i?.markerEnd}),[n,i,t,e]);return l.length?z.jsx("svg",{className:"react-flow__marker","aria-hidden":"true",children:z.jsx("defs",{children:l.map(s=>z.jsx(EB,{id:s.id,type:s.type,color:s.color,width:s.width,height:s.height,markerUnits:s.markerUnits,strokeWidth:s.strokeWidth,orient:s.orient},s.id))})}):null};xv.displayName="MarkerDefinitions";var AB=ie.memo(xv);function bv({x:e,y:t,label:n,labelStyle:i,labelShowBg:l=!0,labelBgStyle:s,labelBgPadding:u=[2,4],labelBgBorderRadius:f=2,children:h,className:d,...p}){const[m,v]=ie.useState({x:1,y:0,width:0,height:0}),x=nn(["react-flow__edge-textwrapper",d]),w=ie.useRef(null);return ie.useEffect(()=>{if(w.current){const A=w.current.getBBox();v({x:A.x,y:A.y,width:A.width,height:A.height})}},[n]),n?z.jsxs("g",{transform:`translate(${e-m.width/2} ${t-m.height/2})`,className:x,visibility:m.width?"visible":"hidden",...p,children:[l&&z.jsx("rect",{width:m.width+2*u[0],x:-u[0],y:-u[1],height:m.height+2*u[1],className:"react-flow__edge-textbg",style:s,rx:f,ry:f}),z.jsx("text",{className:"react-flow__edge-text",y:m.height/2,dy:"0.3em",ref:w,style:i,children:n}),h]}):null}bv.displayName="EdgeText";const CB=ie.memo(bv);function Zc({path:e,labelX:t,labelY:n,label:i,labelStyle:l,labelShowBg:s,labelBgStyle:u,labelBgPadding:f,labelBgBorderRadius:h,interactionWidth:d=20,...p}){return z.jsxs(z.Fragment,{children:[z.jsx("path",{...p,d:e,fill:"none",className:nn(["react-flow__edge-path",p.className])}),d?z.jsx("path",{d:e,fill:"none",strokeOpacity:0,strokeWidth:d,className:"react-flow__edge-interaction"}):null,i&&Er(t)&&Er(n)?z.jsx(CB,{x:t,y:n,label:i,labelStyle:l,labelShowBg:s,labelBgStyle:u,labelBgPadding:f,labelBgBorderRadius:h}):null]})}function D6({pos:e,x1:t,y1:n,x2:i,y2:l}){return e===He.Left||e===He.Right?[.5*(t+i),n]:[t,.5*(n+l)]}function wv({sourceX:e,sourceY:t,sourcePosition:n=He.Bottom,targetX:i,targetY:l,targetPosition:s=He.Top}){const[u,f]=D6({pos:n,x1:e,y1:t,x2:i,y2:l}),[h,d]=D6({pos:s,x1:i,y1:l,x2:e,y2:t}),[p,m,v,x]=G8({sourceX:e,sourceY:t,targetX:i,targetY:l,sourceControlX:u,sourceControlY:f,targetControlX:h,targetControlY:d});return[`M${e},${t} C${u},${f} ${h},${d} ${i},${l}`,p,m,v,x]}function Sv(e){return ie.memo(({id:t,sourceX:n,sourceY:i,targetX:l,targetY:s,sourcePosition:u,targetPosition:f,label:h,labelStyle:d,labelShowBg:p,labelBgStyle:m,labelBgPadding:v,labelBgBorderRadius:x,style:w,markerEnd:A,markerStart:C,interactionWidth:E})=>{const[N,T,B]=wv({sourceX:n,sourceY:i,sourcePosition:u,targetX:l,targetY:s,targetPosition:f}),I=e.isInternal?void 0:t;return z.jsx(Zc,{id:I,path:N,labelX:T,labelY:B,label:h,labelStyle:d,labelShowBg:p,labelBgStyle:m,labelBgPadding:v,labelBgBorderRadius:x,style:w,markerEnd:A,markerStart:C,interactionWidth:E})})}const TB=Sv({isInternal:!1}),kv=Sv({isInternal:!0});TB.displayName="SimpleBezierEdge";kv.displayName="SimpleBezierEdgeInternal";function Ev(e){return ie.memo(({id:t,sourceX:n,sourceY:i,targetX:l,targetY:s,label:u,labelStyle:f,labelShowBg:h,labelBgStyle:d,labelBgPadding:p,labelBgBorderRadius:m,style:v,sourcePosition:x=He.Bottom,targetPosition:w=He.Top,markerEnd:A,markerStart:C,pathOptions:E,interactionWidth:N})=>{const[T,B,I]=G1({sourceX:n,sourceY:i,sourcePosition:x,targetX:l,targetY:s,targetPosition:w,borderRadius:E?.borderRadius,offset:E?.offset,stepPosition:E?.stepPosition}),D=e.isInternal?void 0:t;return z.jsx(Zc,{id:D,path:T,labelX:B,labelY:I,label:u,labelStyle:f,labelShowBg:h,labelBgStyle:d,labelBgPadding:p,labelBgBorderRadius:m,style:v,markerEnd:A,markerStart:C,interactionWidth:N})})}const Av=Ev({isInternal:!1}),Cv=Ev({isInternal:!0});Av.displayName="SmoothStepEdge";Cv.displayName="SmoothStepEdgeInternal";function Tv(e){return ie.memo(({id:t,...n})=>{const i=e.isInternal?void 0:t;return z.jsx(Av,{...n,id:i,pathOptions:ie.useMemo(()=>({borderRadius:0,offset:n.pathOptions?.offset}),[n.pathOptions?.offset])})})}const MB=Tv({isInternal:!1}),Mv=Tv({isInternal:!0});MB.displayName="StepEdge";Mv.displayName="StepEdgeInternal";function zv(e){return ie.memo(({id:t,sourceX:n,sourceY:i,targetX:l,targetY:s,label:u,labelStyle:f,labelShowBg:h,labelBgStyle:d,labelBgPadding:p,labelBgBorderRadius:m,style:v,markerEnd:x,markerStart:w,interactionWidth:A})=>{const[C,E,N]=P8({sourceX:n,sourceY:i,targetX:l,targetY:s}),T=e.isInternal?void 0:t;return z.jsx(Zc,{id:T,path:C,labelX:E,labelY:N,label:u,labelStyle:f,labelShowBg:h,labelBgStyle:d,labelBgPadding:p,labelBgBorderRadius:m,style:v,markerEnd:x,markerStart:w,interactionWidth:A})})}const zB=zv({isInternal:!1}),Nv=zv({isInternal:!0});zB.displayName="StraightEdge";Nv.displayName="StraightEdgeInternal";function Dv(e){return ie.memo(({id:t,sourceX:n,sourceY:i,targetX:l,targetY:s,sourcePosition:u=He.Bottom,targetPosition:f=He.Top,label:h,labelStyle:d,labelShowBg:p,labelBgStyle:m,labelBgPadding:v,labelBgBorderRadius:x,style:w,markerEnd:A,markerStart:C,pathOptions:E,interactionWidth:N})=>{const[T,B,I]=$8({sourceX:n,sourceY:i,sourcePosition:u,targetX:l,targetY:s,targetPosition:f,curvature:E?.curvature}),D=e.isInternal?void 0:t;return z.jsx(Zc,{id:D,path:T,labelX:B,labelY:I,label:h,labelStyle:d,labelShowBg:p,labelBgStyle:m,labelBgPadding:v,labelBgBorderRadius:x,style:w,markerEnd:A,markerStart:C,interactionWidth:N})})}const NB=Dv({isInternal:!1}),_v=Dv({isInternal:!0});NB.displayName="BezierEdge";_v.displayName="BezierEdgeInternal";const _6={default:_v,straight:Nv,step:Mv,smoothstep:Cv,simplebezier:kv},O6={sourceX:null,sourceY:null,targetX:null,targetY:null,sourcePosition:null,targetPosition:null},DB=(e,t,n)=>n===He.Left?e-t:n===He.Right?e+t:e,_B=(e,t,n)=>n===He.Top?e-t:n===He.Bottom?e+t:e,R6="react-flow__edgeupdater";function B6({position:e,centerX:t,centerY:n,radius:i=10,onMouseDown:l,onMouseEnter:s,onMouseOut:u,type:f}){return z.jsx("circle",{onMouseDown:l,onMouseEnter:s,onMouseOut:u,className:nn([R6,`${R6}-${f}`]),cx:DB(t,i,e),cy:_B(n,i,e),r:i,stroke:"transparent",fill:"transparent"})}function OB({isReconnectable:e,reconnectRadius:t,edge:n,sourceX:i,sourceY:l,targetX:s,targetY:u,sourcePosition:f,targetPosition:h,onReconnect:d,onReconnectStart:p,onReconnectEnd:m,setReconnecting:v,setUpdateHover:x}){const w=Ht(),A=(B,I)=>{if(B.button!==0)return;const{autoPanOnConnect:D,domNode:U,connectionMode:J,connectionRadius:P,lib:V,onConnectStart:X,cancelConnection:W,nodeLookup:ce,rfId:q,panBy:F,updateConnection:L}=w.getState(),Y=I.type==="target",K=(j,Z)=>{v(!1),m?.(j,n,I.type,Z)},ne=j=>d?.(n,j),R=(j,Z)=>{v(!0),p?.(B,n,I.type),X?.(j,Z)};P1.onPointerDown(B.nativeEvent,{autoPanOnConnect:D,connectionMode:J,connectionRadius:P,domNode:U,handleId:I.id,nodeId:I.nodeId,nodeLookup:ce,isTarget:Y,edgeUpdaterType:I.type,lib:V,flowId:q,cancelConnection:W,panBy:F,isValidConnection:(...j)=>w.getState().isValidConnection?.(...j)??!0,onConnect:ne,onConnectStart:R,onConnectEnd:(...j)=>w.getState().onConnectEnd?.(...j),onReconnectEnd:K,updateConnection:L,getTransform:()=>w.getState().transform,getFromHandle:()=>w.getState().connection.fromHandle,dragThreshold:w.getState().connectionDragThreshold,handleDomNode:B.currentTarget})},C=B=>A(B,{nodeId:n.target,id:n.targetHandle??null,type:"target"}),E=B=>A(B,{nodeId:n.source,id:n.sourceHandle??null,type:"source"}),N=()=>x(!0),T=()=>x(!1);return z.jsxs(z.Fragment,{children:[(e===!0||e==="source")&&z.jsx(B6,{position:f,centerX:i,centerY:l,radius:t,onMouseDown:C,onMouseEnter:N,onMouseOut:T,type:"source"}),(e===!0||e==="target")&&z.jsx(B6,{position:h,centerX:s,centerY:u,radius:t,onMouseDown:E,onMouseEnter:N,onMouseOut:T,type:"target"})]})}function RB({id:e,edgesFocusable:t,edgesReconnectable:n,elementsSelectable:i,onClick:l,onDoubleClick:s,onContextMenu:u,onMouseEnter:f,onMouseMove:h,onMouseLeave:d,reconnectRadius:p,onReconnect:m,onReconnectStart:v,onReconnectEnd:x,rfId:w,edgeTypes:A,noPanClassName:C,onError:E,disableKeyboardA11y:N}){let T=ft(Oe=>Oe.edgeLookup.get(e));const B=ft(Oe=>Oe.defaultEdgeOptions);T=B?{...B,...T}:T;let I=T.type||"default",D=A?.[I]||_6[I];D===void 0&&(E?.("011",Fr.error011(I)),I="default",D=A?.default||_6.default);const U=!!(T.focusable||t&&typeof T.focusable>"u"),J=typeof m<"u"&&(T.reconnectable||n&&typeof T.reconnectable>"u"),P=!!(T.selectable||i&&typeof T.selectable>"u"),V=ie.useRef(null),[X,W]=ie.useState(!1),[ce,q]=ie.useState(!1),F=Ht(),{zIndex:L,sourceX:Y,sourceY:K,targetX:ne,targetY:R,sourcePosition:j,targetPosition:Z}=ft(ie.useCallback(Oe=>{const _e=Oe.nodeLookup.get(T.source),Ge=Oe.nodeLookup.get(T.target);if(!_e||!Ge)return{zIndex:T.zIndex,...O6};const tt=EO({id:e,sourceNode:_e,targetNode:Ge,sourceHandle:T.sourceHandle||null,targetHandle:T.targetHandle||null,connectionMode:Oe.connectionMode,onError:E});return{zIndex:gO({selected:T.selected,zIndex:T.zIndex,sourceNode:_e,targetNode:Ge,elevateOnSelect:Oe.elevateEdgesOnSelect,zIndexMode:Oe.zIndexMode}),...tt||O6}},[T.source,T.target,T.sourceHandle,T.targetHandle,T.selected,T.zIndex]),Bt),_=ie.useMemo(()=>T.markerStart?`url('#${$1(T.markerStart,w)}')`:void 0,[T.markerStart,w]),se=ie.useMemo(()=>T.markerEnd?`url('#${$1(T.markerEnd,w)}')`:void 0,[T.markerEnd,w]);if(T.hidden||Y===null||K===null||ne===null||R===null)return null;const ve=Oe=>{const{addSelectedEdges:_e,unselectNodesAndEdges:Ge,multiSelectionActive:tt}=F.getState();P&&(F.setState({nodesSelectionActive:!1}),T.selected&&tt?(Ge({nodes:[],edges:[T]}),V.current?.blur()):_e([e])),l&&l(Oe,T)},xe=s?Oe=>{s(Oe,{...T})}:void 0,we=u?Oe=>{u(Oe,{...T})}:void 0,ye=f?Oe=>{f(Oe,{...T})}:void 0,ke=h?Oe=>{h(Oe,{...T})}:void 0,Be=d?Oe=>{d(Oe,{...T})}:void 0,Ue=Oe=>{if(!N&&D8.includes(Oe.key)&&P){const{unselectNodesAndEdges:_e,addSelectedEdges:Ge}=F.getState();Oe.key==="Escape"?(V.current?.blur(),_e({edges:[T]})):Ge([e])}};return z.jsx("svg",{style:{zIndex:L},children:z.jsxs("g",{className:nn(["react-flow__edge",`react-flow__edge-${I}`,T.className,C,{selected:T.selected,animated:T.animated,inactive:!P&&!l,updating:X,selectable:P}]),onClick:ve,onDoubleClick:xe,onContextMenu:we,onMouseEnter:ye,onMouseMove:ke,onMouseLeave:Be,onKeyDown:U?Ue:void 0,tabIndex:U?0:void 0,role:T.ariaRole??(U?"group":"img"),"aria-roledescription":"edge","data-id":e,"data-testid":`rf__edge-${e}`,"aria-label":T.ariaLabel===null?void 0:T.ariaLabel||`Edge from ${T.source} to ${T.target}`,"aria-describedby":U?`${uv}-${w}`:void 0,ref:V,...T.domAttributes,children:[!ce&&z.jsx(D,{id:e,source:T.source,target:T.target,type:T.type,selected:T.selected,animated:T.animated,selectable:P,deletable:T.deletable??!0,label:T.label,labelStyle:T.labelStyle,labelShowBg:T.labelShowBg,labelBgStyle:T.labelBgStyle,labelBgPadding:T.labelBgPadding,labelBgBorderRadius:T.labelBgBorderRadius,sourceX:Y,sourceY:K,targetX:ne,targetY:R,sourcePosition:j,targetPosition:Z,data:T.data,style:T.style,sourceHandleId:T.sourceHandle,targetHandleId:T.targetHandle,markerStart:_,markerEnd:se,pathOptions:"pathOptions"in T?T.pathOptions:void 0,interactionWidth:T.interactionWidth}),J&&z.jsx(OB,{edge:T,isReconnectable:J,reconnectRadius:p,onReconnect:m,onReconnectStart:v,onReconnectEnd:x,sourceX:Y,sourceY:K,targetX:ne,targetY:R,sourcePosition:j,targetPosition:Z,setUpdateHover:W,setReconnecting:q})]})})}var BB=ie.memo(RB);const LB=e=>({edgesFocusable:e.edgesFocusable,edgesReconnectable:e.edgesReconnectable,elementsSelectable:e.elementsSelectable,connectionMode:e.connectionMode,onError:e.onError});function Ov({defaultMarkerColor:e,onlyRenderVisibleElements:t,rfId:n,edgeTypes:i,noPanClassName:l,onReconnect:s,onEdgeContextMenu:u,onEdgeMouseEnter:f,onEdgeMouseMove:h,onEdgeMouseLeave:d,onEdgeClick:p,reconnectRadius:m,onEdgeDoubleClick:v,onReconnectStart:x,onReconnectEnd:w,disableKeyboardA11y:A}){const{edgesFocusable:C,edgesReconnectable:E,elementsSelectable:N,onError:T}=ft(LB,Bt),B=bB(t);return z.jsxs("div",{className:"react-flow__edges",children:[z.jsx(AB,{defaultColor:e,rfId:n}),B.map(I=>z.jsx(BB,{id:I,edgesFocusable:C,edgesReconnectable:E,elementsSelectable:N,noPanClassName:l,onReconnect:s,onContextMenu:u,onMouseEnter:f,onMouseMove:h,onMouseLeave:d,onClick:p,reconnectRadius:m,onDoubleClick:v,onReconnectStart:x,onReconnectEnd:w,rfId:n,onError:T,edgeTypes:i,disableKeyboardA11y:A},I))]})}Ov.displayName="EdgeRenderer";const HB=ie.memo(Ov),jB=e=>`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]})`;function qB({children:e}){const t=ft(jB);return z.jsx("div",{className:"react-flow__viewport xyflow__viewport react-flow__container",style:{transform:t},children:e})}function IB(e){const t=Xc(),n=ie.useRef(!1);ie.useEffect(()=>{!n.current&&t.viewportInitialized&&e&&(setTimeout(()=>e(t),1),n.current=!0)},[e,t.viewportInitialized])}const UB=e=>e.panZoom?.syncViewport;function FB(e){const t=ft(UB),n=Ht();return ie.useEffect(()=>{e&&(t?.(e),n.setState({transform:[e.x,e.y,e.zoom]}))},[e,t]),null}function VB(e){return e.connection.inProgress?{...e.connection,to:eu(e.connection.to,e.transform)}:{...e.connection}}function YB(e){return VB}function GB(e){const t=YB();return ft(t,Bt)}const $B=e=>({nodesConnectable:e.nodesConnectable,isValid:e.connection.isValid,inProgress:e.connection.inProgress,width:e.width,height:e.height});function XB({containerStyle:e,style:t,type:n,component:i}){const{nodesConnectable:l,width:s,height:u,isValid:f,inProgress:h}=ft($B,Bt);return!(s&&l&&h)?null:z.jsx("svg",{style:e,width:s,height:u,className:"react-flow__connectionline react-flow__container",children:z.jsx("g",{className:nn(["react-flow__connection",R8(f)]),children:z.jsx(Rv,{style:t,type:n,CustomComponent:i,isValid:f})})})}const Rv=({style:e,type:t=oa.Bezier,CustomComponent:n,isValid:i})=>{const{inProgress:l,from:s,fromNode:u,fromHandle:f,fromPosition:h,to:d,toNode:p,toHandle:m,toPosition:v,pointer:x}=GB();if(!l)return;if(n)return z.jsx(n,{connectionLineType:t,connectionLineStyle:e,fromNode:u,fromHandle:f,fromX:s.x,fromY:s.y,toX:d.x,toY:d.y,fromPosition:h,toPosition:v,connectionStatus:R8(i),toNode:p,toHandle:m,pointer:x});let w="";const A={sourceX:s.x,sourceY:s.y,sourcePosition:h,targetX:d.x,targetY:d.y,targetPosition:v};switch(t){case oa.Bezier:[w]=$8(A);break;case oa.SimpleBezier:[w]=wv(A);break;case oa.Step:[w]=G1({...A,borderRadius:0});break;case oa.SmoothStep:[w]=G1(A);break;default:[w]=P8(A)}return z.jsx("path",{d:w,fill:"none",className:"react-flow__connection-path",style:e})};Rv.displayName="ConnectionLine";const PB={};function L6(e=PB){ie.useRef(e),Ht(),ie.useEffect(()=>{},[e])}function ZB(){Ht(),ie.useRef(!1),ie.useEffect(()=>{},[])}function Bv({nodeTypes:e,edgeTypes:t,onInit:n,onNodeClick:i,onEdgeClick:l,onNodeDoubleClick:s,onEdgeDoubleClick:u,onNodeMouseEnter:f,onNodeMouseMove:h,onNodeMouseLeave:d,onNodeContextMenu:p,onSelectionContextMenu:m,onSelectionStart:v,onSelectionEnd:x,connectionLineType:w,connectionLineStyle:A,connectionLineComponent:C,connectionLineContainerStyle:E,selectionKeyCode:N,selectionOnDrag:T,selectionMode:B,multiSelectionKeyCode:I,panActivationKeyCode:D,zoomActivationKeyCode:U,deleteKeyCode:J,onlyRenderVisibleElements:P,elementsSelectable:V,defaultViewport:X,translateExtent:W,minZoom:ce,maxZoom:q,preventScrolling:F,defaultMarkerColor:L,zoomOnScroll:Y,zoomOnPinch:K,panOnScroll:ne,panOnScrollSpeed:R,panOnScrollMode:j,zoomOnDoubleClick:Z,panOnDrag:_,onPaneClick:se,onPaneMouseEnter:ve,onPaneMouseMove:xe,onPaneMouseLeave:we,onPaneScroll:ye,onPaneContextMenu:ke,paneClickDistance:Be,nodeClickDistance:Ue,onEdgeContextMenu:Oe,onEdgeMouseEnter:_e,onEdgeMouseMove:Ge,onEdgeMouseLeave:tt,reconnectRadius:Qe,onReconnect:yt,onReconnectStart:pe,onReconnectEnd:Ve,noDragClassName:ut,noWheelClassName:bt,noPanClassName:wt,disableKeyboardA11y:vn,nodeExtent:zt,rfId:Vn,viewport:fe,onViewportChange:Ee}){return L6(e),L6(t),ZB(),IB(n),FB(fe),z.jsx(cB,{onPaneClick:se,onPaneMouseEnter:ve,onPaneMouseMove:xe,onPaneMouseLeave:we,onPaneContextMenu:ke,onPaneScroll:ye,paneClickDistance:Be,deleteKeyCode:J,selectionKeyCode:N,selectionOnDrag:T,selectionMode:B,onSelectionStart:v,onSelectionEnd:x,multiSelectionKeyCode:I,panActivationKeyCode:D,zoomActivationKeyCode:U,elementsSelectable:V,zoomOnScroll:Y,zoomOnPinch:K,zoomOnDoubleClick:Z,panOnScroll:ne,panOnScrollSpeed:R,panOnScrollMode:j,panOnDrag:_,defaultViewport:X,translateExtent:W,minZoom:ce,maxZoom:q,onSelectionContextMenu:m,preventScrolling:F,noDragClassName:ut,noWheelClassName:bt,noPanClassName:wt,disableKeyboardA11y:vn,onViewportChange:Ee,isControlledViewport:!!fe,children:z.jsxs(qB,{children:[z.jsx(HB,{edgeTypes:t,onEdgeClick:l,onEdgeDoubleClick:u,onReconnect:yt,onReconnectStart:pe,onReconnectEnd:Ve,onlyRenderVisibleElements:P,onEdgeContextMenu:Oe,onEdgeMouseEnter:_e,onEdgeMouseMove:Ge,onEdgeMouseLeave:tt,reconnectRadius:Qe,defaultMarkerColor:L,noPanClassName:wt,disableKeyboardA11y:vn,rfId:Vn}),z.jsx(XB,{style:A,type:w,component:C,containerStyle:E}),z.jsx("div",{className:"react-flow__edgelabel-renderer"}),z.jsx(xB,{nodeTypes:e,onNodeClick:i,onNodeDoubleClick:s,onNodeMouseEnter:f,onNodeMouseMove:h,onNodeMouseLeave:d,onNodeContextMenu:p,nodeClickDistance:Ue,onlyRenderVisibleElements:P,noPanClassName:wt,noDragClassName:ut,disableKeyboardA11y:vn,nodeExtent:zt,rfId:Vn}),z.jsx("div",{className:"react-flow__viewport-portal"})]})})}Bv.displayName="GraphView";const QB=ie.memo(Bv),H6=({nodes:e,edges:t,defaultNodes:n,defaultEdges:i,width:l,height:s,fitView:u,fitViewOptions:f,minZoom:h=.5,maxZoom:d=2,nodeOrigin:p,nodeExtent:m,zIndexMode:v="basic"}={})=>{const x=new Map,w=new Map,A=new Map,C=new Map,E=i??t??[],N=n??e??[],T=p??[0,0],B=m??Ls;K8(A,C,E);const{nodesInitialized:I}=X1(N,x,w,{nodeOrigin:T,nodeExtent:B,zIndexMode:v});let D=[0,0,1];if(u&&l&&s){const U=Js(x,{filter:X=>!!((X.width||X.initialWidth)&&(X.height||X.initialHeight))}),{x:J,y:P,zoom:V}=Fm(U,l,s,h,d,f?.padding??.1);D=[J,P,V]}return{rfId:"1",width:l??0,height:s??0,transform:D,nodes:N,nodesInitialized:I,nodeLookup:x,parentLookup:w,edges:E,edgeLookup:C,connectionLookup:A,onNodesChange:null,onEdgesChange:null,hasDefaultNodes:n!==void 0,hasDefaultEdges:i!==void 0,panZoom:null,minZoom:h,maxZoom:d,translateExtent:Ls,nodeExtent:B,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionMode:ro.Strict,domNode:null,paneDragging:!1,noPanClassName:"nopan",nodeOrigin:T,nodeDragThreshold:1,connectionDragThreshold:1,snapGrid:[15,15],snapToGrid:!1,nodesDraggable:!0,nodesConnectable:!0,nodesFocusable:!0,edgesFocusable:!0,edgesReconnectable:!0,elementsSelectable:!0,elevateNodesOnSelect:!0,elevateEdgesOnSelect:!0,selectNodesOnDrag:!0,multiSelectionActive:!1,fitViewQueued:u??!1,fitViewOptions:f,fitViewResolver:null,connection:{...O8},connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:"",autoPanOnConnect:!0,autoPanOnNodeDrag:!0,autoPanOnNodeFocus:!0,autoPanSpeed:15,connectionRadius:20,onError:cO,isValidConnection:void 0,onSelectionChangeHandlers:[],lib:"react",debug:!1,ariaLabelConfig:_8,zIndexMode:v,onNodesChangeMiddlewareMap:new Map,onEdgesChangeMiddlewareMap:new Map}},KB=({nodes:e,edges:t,defaultNodes:n,defaultEdges:i,width:l,height:s,fitView:u,fitViewOptions:f,minZoom:h,maxZoom:d,nodeOrigin:p,nodeExtent:m,zIndexMode:v})=>mR((x,w)=>{async function A(){const{nodeLookup:C,panZoom:E,fitViewOptions:N,fitViewResolver:T,width:B,height:I,minZoom:D,maxZoom:U}=w();E&&(await sO({nodes:C,width:B,height:I,panZoom:E,minZoom:D,maxZoom:U},N),T?.resolve(!0),x({fitViewResolver:null}))}return{...H6({nodes:e,edges:t,width:l,height:s,fitView:u,fitViewOptions:f,minZoom:h,maxZoom:d,nodeOrigin:p,nodeExtent:m,defaultNodes:n,defaultEdges:i,zIndexMode:v}),setNodes:C=>{const{nodeLookup:E,parentLookup:N,nodeOrigin:T,elevateNodesOnSelect:B,fitViewQueued:I,zIndexMode:D,nodesSelectionActive:U}=w(),{nodesInitialized:J,hasSelectedNodes:P}=X1(C,E,N,{nodeOrigin:T,nodeExtent:m,elevateNodesOnSelect:B,checkEquality:!0,zIndexMode:D}),V=U&&P;I&&J?(A(),x({nodes:C,nodesInitialized:J,fitViewQueued:!1,fitViewOptions:void 0,nodesSelectionActive:V})):x({nodes:C,nodesInitialized:J,nodesSelectionActive:V})},setEdges:C=>{const{connectionLookup:E,edgeLookup:N}=w();K8(E,N,C),x({edges:C})},setDefaultNodesAndEdges:(C,E)=>{if(C){const{setNodes:N}=w();N(C),x({hasDefaultNodes:!0})}if(E){const{setEdges:N}=w();N(E),x({hasDefaultEdges:!0})}},updateNodeInternals:C=>{const{triggerNodeChanges:E,nodeLookup:N,parentLookup:T,domNode:B,nodeOrigin:I,nodeExtent:D,debug:U,fitViewQueued:J,zIndexMode:P}=w(),{changes:V,updatedInternals:X}=_O(C,N,T,B,I,D,P);X&&(MO(N,T,{nodeOrigin:I,nodeExtent:D,zIndexMode:P}),J?(A(),x({fitViewQueued:!1,fitViewOptions:void 0})):x({}),V?.length>0&&(U&&console.log("React Flow: trigger node changes",V),E?.(V)))},updateNodePositions:(C,E=!1)=>{const N=[];let T=[];const{nodeLookup:B,triggerNodeChanges:I,connection:D,updateConnection:U,onNodesChangeMiddlewareMap:J}=w();for(const[P,V]of C){const X=B.get(P),W=!!(X?.expandParent&&X?.parentId&&V?.position),ce={id:P,type:"position",position:W?{x:Math.max(0,V.position.x),y:Math.max(0,V.position.y)}:V.position,dragging:E};if(X&&D.inProgress&&D.fromNode.id===X.id){const q=Ka(X,D.fromHandle,He.Left,!0);U({...D,from:q})}W&&X.parentId&&N.push({id:P,parentId:X.parentId,rect:{...V.internals.positionAbsolute,width:V.measured.width??0,height:V.measured.height??0}}),T.push(ce)}if(N.length>0){const{parentLookup:P,nodeOrigin:V}=w(),X=Pm(N,B,P,V);T.push(...X)}for(const P of J.values())T=P(T);I(T)},triggerNodeChanges:C=>{const{onNodesChange:E,setNodes:N,nodes:T,hasDefaultNodes:B,debug:I}=w();if(C?.length){if(B){const D=BR(C,T);N(D)}I&&console.log("React Flow: trigger node changes",C),E?.(C)}},triggerEdgeChanges:C=>{const{onEdgesChange:E,setEdges:N,edges:T,hasDefaultEdges:B,debug:I}=w();if(C?.length){if(B){const D=LR(C,T);N(D)}I&&console.log("React Flow: trigger edge changes",C),E?.(C)}},addSelectedNodes:C=>{const{multiSelectionActive:E,edgeLookup:N,nodeLookup:T,triggerNodeChanges:B,triggerEdgeChanges:I}=w();if(E){const D=C.map(U=>Ua(U,!0));B(D);return}B($l(T,new Set([...C]),!0)),I($l(N))},addSelectedEdges:C=>{const{multiSelectionActive:E,edgeLookup:N,nodeLookup:T,triggerNodeChanges:B,triggerEdgeChanges:I}=w();if(E){const D=C.map(U=>Ua(U,!0));I(D);return}I($l(N,new Set([...C]))),B($l(T,new Set,!0))},unselectNodesAndEdges:({nodes:C,edges:E}={})=>{const{edges:N,nodes:T,nodeLookup:B,triggerNodeChanges:I,triggerEdgeChanges:D}=w(),U=C||T,J=E||N,P=[];for(const X of U){if(!X.selected)continue;const W=B.get(X.id);W&&(W.selected=!1),P.push(Ua(X.id,!1))}const V=[];for(const X of J)X.selected&&V.push(Ua(X.id,!1));I(P),D(V)},setMinZoom:C=>{const{panZoom:E,maxZoom:N}=w();E?.setScaleExtent([C,N]),x({minZoom:C})},setMaxZoom:C=>{const{panZoom:E,minZoom:N}=w();E?.setScaleExtent([N,C]),x({maxZoom:C})},setTranslateExtent:C=>{w().panZoom?.setTranslateExtent(C),x({translateExtent:C})},resetSelectedElements:()=>{const{edges:C,nodes:E,triggerNodeChanges:N,triggerEdgeChanges:T,elementsSelectable:B}=w();if(!B)return;const I=E.reduce((U,J)=>J.selected?[...U,Ua(J.id,!1)]:U,[]),D=C.reduce((U,J)=>J.selected?[...U,Ua(J.id,!1)]:U,[]);N(I),T(D)},setNodeExtent:C=>{const{nodes:E,nodeLookup:N,parentLookup:T,nodeOrigin:B,elevateNodesOnSelect:I,nodeExtent:D,zIndexMode:U}=w();C[0][0]===D[0][0]&&C[0][1]===D[0][1]&&C[1][0]===D[1][0]&&C[1][1]===D[1][1]||(X1(E,N,T,{nodeOrigin:B,nodeExtent:C,elevateNodesOnSelect:I,checkEquality:!1,zIndexMode:U}),x({nodeExtent:C}))},panBy:C=>{const{transform:E,width:N,height:T,panZoom:B,translateExtent:I}=w();return OO({delta:C,panZoom:B,transform:E,translateExtent:I,width:N,height:T})},setCenter:async(C,E,N)=>{const{width:T,height:B,maxZoom:I,panZoom:D}=w();if(!D)return Promise.resolve(!1);const U=typeof N?.zoom<"u"?N.zoom:I;return await D.setViewport({x:T/2-C*U,y:B/2-E*U,zoom:U},{duration:N?.duration,ease:N?.ease,interpolate:N?.interpolate}),Promise.resolve(!0)},cancelConnection:()=>{x({connection:{...O8}})},updateConnection:C=>{x({connection:C})},reset:()=>x({...H6()})}},Object.is);function Lv({initialNodes:e,initialEdges:t,defaultNodes:n,defaultEdges:i,initialWidth:l,initialHeight:s,initialMinZoom:u,initialMaxZoom:f,initialFitViewOptions:h,fitView:d,nodeOrigin:p,nodeExtent:m,zIndexMode:v,children:x}){const[w]=ie.useState(()=>KB({nodes:e,edges:t,defaultNodes:n,defaultEdges:i,width:l,height:s,fitView:d,minZoom:u,maxZoom:f,fitViewOptions:h,nodeOrigin:p,nodeExtent:m,zIndexMode:v}));return z.jsx(pR,{value:w,children:z.jsx(qR,{children:x})})}function JB({children:e,nodes:t,edges:n,defaultNodes:i,defaultEdges:l,width:s,height:u,fitView:f,fitViewOptions:h,minZoom:d,maxZoom:p,nodeOrigin:m,nodeExtent:v,zIndexMode:x}){return ie.useContext(Gc)?z.jsx(z.Fragment,{children:e}):z.jsx(Lv,{initialNodes:t,initialEdges:n,defaultNodes:i,defaultEdges:l,initialWidth:s,initialHeight:u,fitView:f,initialFitViewOptions:h,initialMinZoom:d,initialMaxZoom:p,nodeOrigin:m,nodeExtent:v,zIndexMode:x,children:e})}const WB={width:"100%",height:"100%",overflow:"hidden",position:"relative",zIndex:0};function eL({nodes:e,edges:t,defaultNodes:n,defaultEdges:i,className:l,nodeTypes:s,edgeTypes:u,onNodeClick:f,onEdgeClick:h,onInit:d,onMove:p,onMoveStart:m,onMoveEnd:v,onConnect:x,onConnectStart:w,onConnectEnd:A,onClickConnectStart:C,onClickConnectEnd:E,onNodeMouseEnter:N,onNodeMouseMove:T,onNodeMouseLeave:B,onNodeContextMenu:I,onNodeDoubleClick:D,onNodeDragStart:U,onNodeDrag:J,onNodeDragStop:P,onNodesDelete:V,onEdgesDelete:X,onDelete:W,onSelectionChange:ce,onSelectionDragStart:q,onSelectionDrag:F,onSelectionDragStop:L,onSelectionContextMenu:Y,onSelectionStart:K,onSelectionEnd:ne,onBeforeDelete:R,connectionMode:j,connectionLineType:Z=oa.Bezier,connectionLineStyle:_,connectionLineComponent:se,connectionLineContainerStyle:ve,deleteKeyCode:xe="Backspace",selectionKeyCode:we="Shift",selectionOnDrag:ye=!1,selectionMode:ke=Hs.Full,panActivationKeyCode:Be="Space",multiSelectionKeyCode:Ue=Is()?"Meta":"Control",zoomActivationKeyCode:Oe=Is()?"Meta":"Control",snapToGrid:_e,snapGrid:Ge,onlyRenderVisibleElements:tt=!1,selectNodesOnDrag:Qe,nodesDraggable:yt,autoPanOnNodeFocus:pe,nodesConnectable:Ve,nodesFocusable:ut,nodeOrigin:bt=cv,edgesFocusable:wt,edgesReconnectable:vn,elementsSelectable:zt=!0,defaultViewport:Vn=MR,minZoom:fe=.5,maxZoom:Ee=2,translateExtent:qe=Ls,preventScrolling:Xe=!0,nodeExtent:rt,defaultMarkerColor:fn="#b1b1b7",zoomOnScroll:Nn=!0,zoomOnPinch:rn=!0,panOnScroll:jt=!1,panOnScrollSpeed:me=.5,panOnScrollMode:Le=$a.Free,zoomOnDoubleClick:qt=!0,panOnDrag:St=!0,onPaneClick:tl,onPaneMouseEnter:Pr,onPaneMouseMove:an,onPaneMouseLeave:Mr,onPaneScroll:yr,onPaneContextMenu:zr,paneClickDistance:Nr=1,nodeClickDistance:go=0,children:Yn,onReconnect:va,onReconnectStart:Dr,onReconnectEnd:nl,onEdgeContextMenu:ln,onEdgeDoubleClick:rl,onEdgeMouseEnter:nu,onEdgeMouseMove:yo,onEdgeMouseLeave:vo,reconnectRadius:ru=10,onNodesChange:iu,onEdgesChange:_r,noDragClassName:on="nodrag",noWheelClassName:xn="nowheel",noPanClassName:Zr="nopan",fitView:il,fitViewOptions:au,connectOnClick:Qc,attributionPosition:lu,proOptions:xa,defaultEdgeOptions:xo,elevateNodesOnSelect:Mi=!0,elevateEdgesOnSelect:zi=!1,disableKeyboardA11y:Ni=!1,autoPanOnConnect:Di,autoPanOnNodeDrag:Xt,autoPanSpeed:ou,connectionRadius:su,isValidConnection:Qr,onError:_i,style:Kc,id:bo,nodeDragThreshold:uu,connectionDragThreshold:Jc,viewport:al,onViewportChange:ll,width:vr,height:Dn,colorMode:cu="light",debug:Wc,onScroll:ol,ariaLabelConfig:fu,zIndexMode:ba="basic",...ef},_n){const wa=bo||"1",hu=_R(cu),wo=ie.useCallback(Kr=>{Kr.currentTarget.scrollTo({top:0,left:0,behavior:"instant"}),ol?.(Kr)},[ol]);return z.jsx("div",{"data-testid":"rf__wrapper",...ef,onScroll:wo,style:{...Kc,...WB},ref:_n,className:nn(["react-flow",l,hu]),id:bo,role:"application",children:z.jsxs(JB,{nodes:e,edges:t,width:vr,height:Dn,fitView:il,fitViewOptions:au,minZoom:fe,maxZoom:Ee,nodeOrigin:bt,nodeExtent:rt,zIndexMode:ba,children:[z.jsx(DR,{nodes:e,edges:t,defaultNodes:n,defaultEdges:i,onConnect:x,onConnectStart:w,onConnectEnd:A,onClickConnectStart:C,onClickConnectEnd:E,nodesDraggable:yt,autoPanOnNodeFocus:pe,nodesConnectable:Ve,nodesFocusable:ut,edgesFocusable:wt,edgesReconnectable:vn,elementsSelectable:zt,elevateNodesOnSelect:Mi,elevateEdgesOnSelect:zi,minZoom:fe,maxZoom:Ee,nodeExtent:rt,onNodesChange:iu,onEdgesChange:_r,snapToGrid:_e,snapGrid:Ge,connectionMode:j,translateExtent:qe,connectOnClick:Qc,defaultEdgeOptions:xo,fitView:il,fitViewOptions:au,onNodesDelete:V,onEdgesDelete:X,onDelete:W,onNodeDragStart:U,onNodeDrag:J,onNodeDragStop:P,onSelectionDrag:F,onSelectionDragStart:q,onSelectionDragStop:L,onMove:p,onMoveStart:m,onMoveEnd:v,noPanClassName:Zr,nodeOrigin:bt,rfId:wa,autoPanOnConnect:Di,autoPanOnNodeDrag:Xt,autoPanSpeed:ou,onError:_i,connectionRadius:su,isValidConnection:Qr,selectNodesOnDrag:Qe,nodeDragThreshold:uu,connectionDragThreshold:Jc,onBeforeDelete:R,debug:Wc,ariaLabelConfig:fu,zIndexMode:ba}),z.jsx(QB,{onInit:d,onNodeClick:f,onEdgeClick:h,onNodeMouseEnter:N,onNodeMouseMove:T,onNodeMouseLeave:B,onNodeContextMenu:I,onNodeDoubleClick:D,nodeTypes:s,edgeTypes:u,connectionLineType:Z,connectionLineStyle:_,connectionLineComponent:se,connectionLineContainerStyle:ve,selectionKeyCode:we,selectionOnDrag:ye,selectionMode:ke,deleteKeyCode:xe,multiSelectionKeyCode:Ue,panActivationKeyCode:Be,zoomActivationKeyCode:Oe,onlyRenderVisibleElements:tt,defaultViewport:Vn,translateExtent:qe,minZoom:fe,maxZoom:Ee,preventScrolling:Xe,zoomOnScroll:Nn,zoomOnPinch:rn,zoomOnDoubleClick:qt,panOnScroll:jt,panOnScrollSpeed:me,panOnScrollMode:Le,panOnDrag:St,onPaneClick:tl,onPaneMouseEnter:Pr,onPaneMouseMove:an,onPaneMouseLeave:Mr,onPaneScroll:yr,onPaneContextMenu:zr,paneClickDistance:Nr,nodeClickDistance:go,onSelectionContextMenu:Y,onSelectionStart:K,onSelectionEnd:ne,onReconnect:va,onReconnectStart:Dr,onReconnectEnd:nl,onEdgeContextMenu:ln,onEdgeDoubleClick:rl,onEdgeMouseEnter:nu,onEdgeMouseMove:yo,onEdgeMouseLeave:vo,reconnectRadius:ru,defaultMarkerColor:fn,noDragClassName:on,noWheelClassName:xn,noPanClassName:Zr,rfId:wa,disableKeyboardA11y:Ni,nodeExtent:rt,viewport:al,onViewportChange:ll}),z.jsx(TR,{onSelectionChange:ce}),Yn,z.jsx(SR,{proOptions:xa,position:lu}),z.jsx(wR,{rfId:wa,disableKeyboardA11y:Ni})]})})}var tL=hv(eL);function nL({dimensions:e,lineWidth:t,variant:n,className:i}){return z.jsx("path",{strokeWidth:t,d:`M${e[0]/2} 0 V${e[1]} M0 ${e[1]/2} H${e[0]}`,className:nn(["react-flow__background-pattern",n,i])})}function rL({radius:e,className:t}){return z.jsx("circle",{cx:e,cy:e,r:e,className:nn(["react-flow__background-pattern","dots",t])})}var ca;(function(e){e.Lines="lines",e.Dots="dots",e.Cross="cross"})(ca||(ca={}));const iL={[ca.Dots]:1,[ca.Lines]:1,[ca.Cross]:6},aL=e=>({transform:e.transform,patternId:`pattern-${e.rfId}`});function Hv({id:e,variant:t=ca.Dots,gap:n=20,size:i,lineWidth:l=1,offset:s=0,color:u,bgColor:f,style:h,className:d,patternClassName:p}){const m=ie.useRef(null),{transform:v,patternId:x}=ft(aL,Bt),w=i||iL[t],A=t===ca.Dots,C=t===ca.Cross,E=Array.isArray(n)?n:[n,n],N=[E[0]*v[2]||1,E[1]*v[2]||1],T=w*v[2],B=Array.isArray(s)?s:[s,s],I=C?[T,T]:N,D=[B[0]*v[2]||1+I[0]/2,B[1]*v[2]||1+I[1]/2],U=`${x}${e||""}`;return z.jsxs("svg",{className:nn(["react-flow__background",d]),style:{...h,...Pc,"--xy-background-color-props":f,"--xy-background-pattern-color-props":u},ref:m,"data-testid":"rf__background",children:[z.jsx("pattern",{id:U,x:v[0]%N[0],y:v[1]%N[1],width:N[0],height:N[1],patternUnits:"userSpaceOnUse",patternTransform:`translate(-${D[0]},-${D[1]})`,children:A?z.jsx(rL,{radius:T/2,className:p}):z.jsx(nL,{dimensions:I,lineWidth:l,variant:t,className:p})}),z.jsx("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${U})`})]})}Hv.displayName="Background";const lL=ie.memo(Hv);function oL(){return z.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",children:z.jsx("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"})})}function sL(){return z.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5",children:z.jsx("path",{d:"M0 0h32v4.2H0z"})})}function uL(){return z.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30",children:z.jsx("path",{d:"M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0027.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94c-.531 0-.939-.4-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z"})})}function cL(){return z.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:z.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z"})})}function fL(){return z.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:z.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047z"})})}function F0({children:e,className:t,...n}){return z.jsx("button",{type:"button",className:nn(["react-flow__controls-button",t]),...n,children:e})}const hL=e=>({isInteractive:e.nodesDraggable||e.nodesConnectable||e.elementsSelectable,minZoomReached:e.transform[2]<=e.minZoom,maxZoomReached:e.transform[2]>=e.maxZoom,ariaLabelConfig:e.ariaLabelConfig});function jv({style:e,showZoom:t=!0,showFitView:n=!0,showInteractive:i=!0,fitViewOptions:l,onZoomIn:s,onZoomOut:u,onFitView:f,onInteractiveChange:h,className:d,children:p,position:m="bottom-left",orientation:v="vertical","aria-label":x}){const w=Ht(),{isInteractive:A,minZoomReached:C,maxZoomReached:E,ariaLabelConfig:N}=ft(hL,Bt),{zoomIn:T,zoomOut:B,fitView:I}=Xc(),D=()=>{T(),s?.()},U=()=>{B(),u?.()},J=()=>{I(l),f?.()},P=()=>{w.setState({nodesDraggable:!A,nodesConnectable:!A,elementsSelectable:!A}),h?.(!A)},V=v==="horizontal"?"horizontal":"vertical";return z.jsxs($c,{className:nn(["react-flow__controls",V,d]),position:m,style:e,"data-testid":"rf__controls","aria-label":x??N["controls.ariaLabel"],children:[t&&z.jsxs(z.Fragment,{children:[z.jsx(F0,{onClick:D,className:"react-flow__controls-zoomin",title:N["controls.zoomIn.ariaLabel"],"aria-label":N["controls.zoomIn.ariaLabel"],disabled:E,children:z.jsx(oL,{})}),z.jsx(F0,{onClick:U,className:"react-flow__controls-zoomout",title:N["controls.zoomOut.ariaLabel"],"aria-label":N["controls.zoomOut.ariaLabel"],disabled:C,children:z.jsx(sL,{})})]}),n&&z.jsx(F0,{className:"react-flow__controls-fitview",onClick:J,title:N["controls.fitView.ariaLabel"],"aria-label":N["controls.fitView.ariaLabel"],children:z.jsx(uL,{})}),i&&z.jsx(F0,{className:"react-flow__controls-interactive",onClick:P,title:N["controls.interactive.ariaLabel"],"aria-label":N["controls.interactive.ariaLabel"],children:A?z.jsx(fL,{}):z.jsx(cL,{})}),p]})}jv.displayName="Controls";const dL=ie.memo(jv);function mL({id:e,x:t,y:n,width:i,height:l,style:s,color:u,strokeColor:f,strokeWidth:h,className:d,borderRadius:p,shapeRendering:m,selected:v,onClick:x}){const{background:w,backgroundColor:A}=s||{},C=u||w||A;return z.jsx("rect",{className:nn(["react-flow__minimap-node",{selected:v},d]),x:t,y:n,rx:p,ry:p,width:i,height:l,style:{fill:C,stroke:f,strokeWidth:h},shapeRendering:m,onClick:x?E=>x(E,e):void 0})}const pL=ie.memo(mL),gL=e=>e.nodes.map(t=>t.id),i1=e=>e instanceof Function?e:()=>e;function yL({nodeStrokeColor:e,nodeColor:t,nodeClassName:n="",nodeBorderRadius:i=5,nodeStrokeWidth:l,nodeComponent:s=pL,onClick:u}){const f=ft(gL,Bt),h=i1(t),d=i1(e),p=i1(n),m=typeof window>"u"||window.chrome?"crispEdges":"geometricPrecision";return z.jsx(z.Fragment,{children:f.map(v=>z.jsx(xL,{id:v,nodeColorFunc:h,nodeStrokeColorFunc:d,nodeClassNameFunc:p,nodeBorderRadius:i,nodeStrokeWidth:l,NodeComponent:s,onClick:u,shapeRendering:m},v))})}function vL({id:e,nodeColorFunc:t,nodeStrokeColorFunc:n,nodeClassNameFunc:i,nodeBorderRadius:l,nodeStrokeWidth:s,shapeRendering:u,NodeComponent:f,onClick:h}){const{node:d,x:p,y:m,width:v,height:x}=ft(w=>{const A=w.nodeLookup.get(e);if(!A)return{node:void 0,x:0,y:0,width:0,height:0};const C=A.internals.userNode,{x:E,y:N}=A.internals.positionAbsolute,{width:T,height:B}=Ti(C);return{node:C,x:E,y:N,width:T,height:B}},Bt);return!d||d.hidden||!I8(d)?null:z.jsx(f,{x:p,y:m,width:v,height:x,style:d.style,selected:!!d.selected,className:i(d),color:t(d),borderRadius:l,strokeColor:n(d),strokeWidth:s,shapeRendering:u,onClick:h,id:d.id})}const xL=ie.memo(vL);var bL=ie.memo(yL);const wL=200,SL=150,kL=e=>!e.hidden,EL=e=>{const t={x:-e.transform[0]/e.transform[2],y:-e.transform[1]/e.transform[2],width:e.width/e.transform[2],height:e.height/e.transform[2]};return{viewBB:t,boundingRect:e.nodeLookup.size>0?q8(Js(e.nodeLookup,{filter:kL}),t):t,rfId:e.rfId,panZoom:e.panZoom,translateExtent:e.translateExtent,flowWidth:e.width,flowHeight:e.height,ariaLabelConfig:e.ariaLabelConfig}},AL="react-flow__minimap-desc";function qv({style:e,className:t,nodeStrokeColor:n,nodeColor:i,nodeClassName:l="",nodeBorderRadius:s=5,nodeStrokeWidth:u,nodeComponent:f,bgColor:h,maskColor:d,maskStrokeColor:p,maskStrokeWidth:m,position:v="bottom-right",onClick:x,onNodeClick:w,pannable:A=!1,zoomable:C=!1,ariaLabel:E,inversePan:N,zoomStep:T=1,offsetScale:B=5}){const I=Ht(),D=ie.useRef(null),{boundingRect:U,viewBB:J,rfId:P,panZoom:V,translateExtent:X,flowWidth:W,flowHeight:ce,ariaLabelConfig:q}=ft(EL,Bt),F=e?.width??wL,L=e?.height??SL,Y=U.width/F,K=U.height/L,ne=Math.max(Y,K),R=ne*F,j=ne*L,Z=B*ne,_=U.x-(R-U.width)/2-Z,se=U.y-(j-U.height)/2-Z,ve=R+Z*2,xe=j+Z*2,we=`${AL}-${P}`,ye=ie.useRef(0),ke=ie.useRef();ye.current=ne,ie.useEffect(()=>{if(D.current&&V)return ke.current=FO({domNode:D.current,panZoom:V,getTransform:()=>I.getState().transform,getViewScale:()=>ye.current}),()=>{ke.current?.destroy()}},[V]),ie.useEffect(()=>{ke.current?.update({translateExtent:X,width:W,height:ce,inversePan:N,pannable:A,zoomStep:T,zoomable:C})},[A,C,N,T,X,W,ce]);const Be=x?_e=>{const[Ge,tt]=ke.current?.pointer(_e)||[0,0];x(_e,{x:Ge,y:tt})}:void 0,Ue=w?ie.useCallback((_e,Ge)=>{const tt=I.getState().nodeLookup.get(Ge).internals.userNode;w(_e,tt)},[]):void 0,Oe=E??q["minimap.ariaLabel"];return z.jsx($c,{position:v,style:{...e,"--xy-minimap-background-color-props":typeof h=="string"?h:void 0,"--xy-minimap-mask-background-color-props":typeof d=="string"?d:void 0,"--xy-minimap-mask-stroke-color-props":typeof p=="string"?p:void 0,"--xy-minimap-mask-stroke-width-props":typeof m=="number"?m*ne:void 0,"--xy-minimap-node-background-color-props":typeof i=="string"?i:void 0,"--xy-minimap-node-stroke-color-props":typeof n=="string"?n:void 0,"--xy-minimap-node-stroke-width-props":typeof u=="number"?u:void 0},className:nn(["react-flow__minimap",t]),"data-testid":"rf__minimap",children:z.jsxs("svg",{width:F,height:L,viewBox:`${_} ${se} ${ve} ${xe}`,className:"react-flow__minimap-svg",role:"img","aria-labelledby":we,ref:D,onClick:Be,children:[Oe&&z.jsx("title",{id:we,children:Oe}),z.jsx(bL,{onClick:Ue,nodeColor:i,nodeStrokeColor:n,nodeBorderRadius:s,nodeClassName:l,nodeStrokeWidth:u,nodeComponent:f}),z.jsx("path",{className:"react-flow__minimap-mask",d:`M${_-Z},${se-Z}h${ve+Z*2}v${xe+Z*2}h${-ve-Z*2}z
|
|
311
|
+
M${J.x},${J.y}h${J.width}v${J.height}h${-J.width}z`,fillRule:"evenodd",pointerEvents:"none"})]})})}qv.displayName="MiniMap";ie.memo(qv);const CL=e=>t=>e?`${Math.max(1/t.transform[2],1)}`:void 0,TL={[oo.Line]:"right",[oo.Handle]:"bottom-right"};function ML({nodeId:e,position:t,variant:n=oo.Handle,className:i,style:l=void 0,children:s,color:u,minWidth:f=10,minHeight:h=10,maxWidth:d=Number.MAX_VALUE,maxHeight:p=Number.MAX_VALUE,keepAspectRatio:m=!1,resizeDirection:v,autoScale:x=!0,shouldResize:w,onResizeStart:A,onResize:C,onResizeEnd:E}){const N=gv(),T=typeof e=="string"?e:N,B=Ht(),I=ie.useRef(null),D=n===oo.Handle,U=ft(ie.useCallback(CL(D&&x),[D,x]),Bt),J=ie.useRef(null),P=t??TL[n];ie.useEffect(()=>{if(!(!I.current||!T))return J.current||(J.current=nR({domNode:I.current,nodeId:T,getStoreItems:()=>{const{nodeLookup:X,transform:W,snapGrid:ce,snapToGrid:q,nodeOrigin:F,domNode:L}=B.getState();return{nodeLookup:X,transform:W,snapGrid:ce,snapToGrid:q,nodeOrigin:F,paneDomNode:L}},onChange:(X,W)=>{const{triggerNodeChanges:ce,nodeLookup:q,parentLookup:F,nodeOrigin:L}=B.getState(),Y=[],K={x:X.x,y:X.y},ne=q.get(T);if(ne&&ne.expandParent&&ne.parentId){const R=ne.origin??L,j=X.width??ne.measured.width??0,Z=X.height??ne.measured.height??0,_={id:ne.id,parentId:ne.parentId,rect:{width:j,height:Z,...U8({x:X.x??ne.position.x,y:X.y??ne.position.y},{width:j,height:Z},ne.parentId,q,R)}},se=Pm([_],q,F,L);Y.push(...se),K.x=X.x?Math.max(R[0]*j,X.x):void 0,K.y=X.y?Math.max(R[1]*Z,X.y):void 0}if(K.x!==void 0&&K.y!==void 0){const R={id:T,type:"position",position:{...K}};Y.push(R)}if(X.width!==void 0&&X.height!==void 0){const j={id:T,type:"dimensions",resizing:!0,setAttributes:v?v==="horizontal"?"width":"height":!0,dimensions:{width:X.width,height:X.height}};Y.push(j)}for(const R of W){const j={...R,type:"position"};Y.push(j)}ce(Y)},onEnd:({width:X,height:W})=>{const ce={id:T,type:"dimensions",resizing:!1,dimensions:{width:X,height:W}};B.getState().triggerNodeChanges([ce])}})),J.current.update({controlPosition:P,boundaries:{minWidth:f,minHeight:h,maxWidth:d,maxHeight:p},keepAspectRatio:m,resizeDirection:v,onResizeStart:A,onResize:C,onResizeEnd:E,shouldResize:w}),()=>{J.current?.destroy()}},[P,f,h,d,p,m,A,C,E,w]);const V=P.split("-");return z.jsx("div",{className:nn(["react-flow__resize-control","nodrag",...V,n,i]),ref:I,style:{...l,scale:U,...u&&{[D?"backgroundColor":"borderColor"]:u}},children:s})}ie.memo(ML);const po=new Set(["decomposes","answers","operationalizes","leads_to"]);function zL(e){const t=new Map(e.nodes.map(n=>[n.id,n]));return{nodes:e.nodes,byId:t,search(n){const i=Qm(n);return i?e.nodes.filter(l=>Vv(l).includes(i)):e.nodes}}}function NL(e,t){new Map(e.nodes.map(p=>[p.id,p]));const n=e.edges.filter(p=>po.has(p.kind)),i=pa(n,"from"),l=pa(n,"to"),s=Object.fromEntries(e.nodes.map(p=>[p.id,i.get(p.id)?.length||0])),u=new Set,f=Qm(t.query||"");if(f){for(const p of e.nodes)if(Vv(p).includes(f)){u.add(p.id);for(const m of Fv(p.id,l))u.add(m)}}else Uv(e.rootId,i,t.expandedIds,u);const h=e.nodes.filter(p=>u.has(p.id)),d=e.edges.filter(p=>u.has(p.from)&&u.has(p.to));return{rootId:e.rootId,nodes:h,edges:d,childCounts:s}}function Iv(e){const t=e.edges.filter(i=>po.has(i.kind)),n=new Set(t.map(i=>i.from));return e.nodes.map(i=>i.id).filter(i=>n.has(i))}function DL(e,t){const n=e.edges.filter(h=>po.has(h.kind)),i=pa(n,"from"),l=new Set(Iv(e)),s=[],u=[t],f=new Set;for(let h=0;h<u.length;h+=1){const d=u[h];if(!f.has(d)){f.add(d),l.has(d)&&s.push(d);for(const p of i.get(d)||[])u.push(p.to)}}return s}function _L(e,t,n){const i=new Set(t),l=BL(e,n);if(i.has(n)){i.delete(n);for(const s of l)i.delete(s);return i}i.add(n);for(const s of l)i.delete(s);return i}function OL(e,t){const i=new Map(e.nodes.map(m=>[m.id,m])).get(t.focusId);if(!i)return{rootId:e.rootId,nodes:[],edges:[],childCounts:{}};const l=e.edges.filter(m=>po.has(m.kind)),s=pa(l,"from"),u=pa(l,"to"),f=Object.fromEntries(e.nodes.map(m=>[m.id,s.get(m.id)?.length||0])),h=new Set([t.focusId]);for(const m of e.edges)m.from===t.focusId&&h.add(m.to),m.to===t.focusId&&h.add(m.from);if(t.includeAntecedents)for(const m of Fv(t.focusId,u))h.add(m);const d=e.nodes.filter(m=>h.has(m.id)),p=e.edges.filter(m=>h.has(m.from)&&h.has(m.to));return{rootId:i.id,nodes:d,edges:p,childCounts:f}}function RL(e,t){const n=e.edges.filter(m=>po.has(m.kind)),i=pa(n,"from"),l=pa(n,"to"),s=new Map([[e.rootId,0]]),u=[e.rootId];for(let m=0;m<u.length;m+=1){const v=u[m],x=s.get(v)||0;for(const w of i.get(v)||[])s.has(w.to)||(s.set(w.to,x+1),u.push(w.to))}const f=[e.rootId];for(let m=0;m<f.length;m+=1){const v=f[m],x=s.get(v)||0;for(const w of l.get(v)||[])s.has(w.from)||(s.set(w.from,x-1),f.push(w.from))}const h=new Map;for(const m of e.nodes){const v=s.get(m.id)??0;h.set(v,[...h.get(v)||[],m])}const d=new Map;for(const[m,v]of h)v.forEach((x,w)=>d.set(x.id,w-(v.length-1)/2)),h.set(m,v);const p=e.nodes.map(m=>{const v=s.get(m.id)??0,x=d.get(m.id)||0,w=t.mode==="full"?{depth:610,cross:320}:{depth:300,cross:160},A={x:v*w.depth,y:x*w.cross};return{...m,position:A}});return{rootId:e.rootId,nodes:p,edges:e.edges,childCounts:e.childCounts}}function Uv(e,t,n,i){if(i.add(e),!!n.has(e))for(const l of t.get(e)||[])Uv(l.to,t,n,i)}function BL(e,t){const n=e.edges.filter(f=>po.has(f.kind)),i=pa(n,"from"),l=[],s=[t],u=new Set([t]);for(let f=0;f<s.length;f+=1)for(const h of i.get(s[f])||[])u.has(h.to)||(u.add(h.to),l.push(h.to),s.push(h.to));return l}function Fv(e,t){const n=[],i=new Set,l=[e];for(let s=0;s<l.length;s+=1)for(const u of t.get(l[s])||[])i.has(u.from)||(i.add(u.from),n.push(u.from),l.push(u.from));return n.reverse()}function pa(e,t){const n=new Map;for(const i of e)n.set(i[t],[...n.get(i[t])||[],i]);return n}function Vv(e){return Qm([e.title,e.id,e.type,e.file,...(e.files||[]).map(t=>t.path),e.summary,...e.tags||[]].filter(Boolean).join(" "))}function Qm(e){return e.trim().toLowerCase()}function LL(e){return e.label||""}function j6(e){return new Set(e.ui?.expanded?.length?e.ui.expanded:[e.rootId])}function HL(){return{right:500,bottom:340}}function jL(e,t,n){if(e!=="idle")return t==="right"?{gridTemplateColumns:`minmax(0, 1fr) minmax(300px, ${n.right}px)`}:{gridTemplateRows:`minmax(0, 1fr) minmax(220px, ${n.bottom}px)`}}function q6(e,t,n){return Math.min(n,Math.max(t,e))}function I6(e,t,n=""){return["research-node",t,`type-${e.type}`,tu(e)?"missing-file":"",n].filter(Boolean).join(" ")}function qL(e){const t=Si(e);return t.length?tu(e)?"All linked files are referenced by graph.yaml but do not exist yet":t.length>1?"Preview linked documents":"Preview file":"Show graph.yaml summary"}function IL(e){const t=Si(e);return t.length?tu(e)?"Missing":t.length>1?"Docs":"Open":"Note"}function Si(e){return e.files?.length?e.files:e.file?[{path:e.file,fileExists:e.fileExists}]:[]}function yc(e){return Si(e).find(t=>t.fileExists!==!1)}function tu(e){const t=Si(e);return t.length>0&&t.every(n=>n.fileExists===!1)}function Km(e){const t=Si(e);return t.length?t.length===1?t[0].path:`${t.filter(i=>i.fileExists!==!1).length}/${t.length} linked docs`:e.id}function UL(e){return e.split("/").pop()||e}function FL(e,t){const n=e.split("/").slice(0,-1).map(encodeURIComponent).join("/"),i=`<base href="/api/workspace/raw-path/${n?`${n}/`:""}">`;return/<head[\s>]/i.test(t)?t.replace(/<head([^>]*)>/i,`<head$1>${i}`):`${i}${t}`}function VL(e){return e==="claim"?"#7c3aed":e==="evidence"?"#0f766e":e==="method"?"#b45309":e==="source"?"#2563eb":e==="task"?"#be123c":e==="concept"?"#475569":"#111827"}function U6(e){return e==="supports"?"#27847b":e==="cites"?"#3b73c8":e==="contradicts"?"#c9352b":e==="leads_to"?"#8a6a15":"#9aa3ad"}function YL({dock:e,onClose:t,onDockChange:n,onOpenFile:i,onOpenPath:l,onResize:s,size:u,preview:f}){return f.status==="idle"?null:z.jsxs("aside",{className:"file-preview-panel",children:[z.jsx("button",{className:`preview-resize-handle ${e}`,onDoubleClick:()=>s(HL()),onPointerDown:h=>$L(h,e,u,s),title:e==="right"?"Drag to resize preview width":"Drag to resize preview height"}),z.jsxs("header",{children:[z.jsxs("div",{children:[z.jsx("strong",{children:f.title}),z.jsx("span",{children:f.path})]}),z.jsxs("div",{className:"file-preview-actions",children:[z.jsx("button",{className:e==="right"?"active":"",onClick:()=>n("right"),title:"Dock right",children:"Right"}),z.jsx("button",{className:e==="bottom"?"active":"",onClick:()=>n("bottom"),title:"Dock bottom",children:"Bottom"}),(f.status==="ready"||f.status==="loading")&&z.jsx("button",{onClick:()=>i(f.path),children:"Open file"}),z.jsx("button",{onClick:t,title:"Close preview",children:"×"})]})]}),f.status==="loading"&&z.jsx("div",{className:"file-preview-state",children:"Loading file..."}),f.status==="note"&&z.jsx("div",{className:"file-preview-state",children:f.summary||"This node is currently represented only in graph.yaml. Add file or files later when it needs longer notes."}),f.status==="error"&&z.jsx("div",{className:"file-preview-state error",children:f.message}),f.status==="ready"&&z.jsxs(z.Fragment,{children:[z.jsxs("div",{className:"file-preview-meta",children:[f.bytes.toLocaleString()," bytes · ",f.mimeType]}),f.links.length>1&&z.jsx("div",{className:"file-preview-links","aria-label":"Linked documents",children:f.links.map(h=>z.jsx("button",{className:h.path===f.path?"active":"",disabled:h.fileExists===!1,onClick:()=>l(h.path),title:h.path,children:h.title||UL(h.path)},h.path))}),z.jsx(GL,{preview:f})]})]})}function GL({preview:e}){return e.format==="markdown"?z.jsx(Ds,{basePath:e.path,className:"file-preview-markdown",content:e.content}):e.format==="html"?z.jsx("iframe",{className:"file-preview-html",sandbox:"allow-same-origin",srcDoc:FL(e.path,e.content),title:e.title}):z.jsx("pre",{children:e.content})}function $L(e,t,n,i){e.preventDefault(),e.stopPropagation(),e.currentTarget.setPointerCapture(e.pointerId);const l=e.clientX,s=e.clientY,u={...n};function f(d){if(t==="right"){const p=q6(u.right-(d.clientX-l),300,Math.max(360,window.innerWidth-520));i({...u,right:p})}else{const p=q6(u.bottom-(d.clientY-s),220,Math.max(260,window.innerHeight-240));i({...u,bottom:p})}}function h(){window.removeEventListener("pointermove",f),window.removeEventListener("pointerup",h)}window.addEventListener("pointermove",f),window.addEventListener("pointerup",h,{once:!0})}function XL({layout:e,mode:t}){const n=t==="full"?{width:310,height:136,radius:54}:{width:18,height:18,radius:9},i=e.nodes.map(m=>({...m,cx:m.position.x+n.width/2,cy:m.position.y+n.height/2}));if(!i.length)return null;const l=new Map(i.map(m=>[m.id,m])),s=Math.min(...i.map(m=>m.cx)),u=Math.max(...i.map(m=>m.cx)),f=Math.min(...i.map(m=>m.cy)),h=Math.max(...i.map(m=>m.cy)),d=Math.max(42,n.radius*1.6),p=`${s-d} ${f-d} ${Math.max(u-s+d*2,1)} ${Math.max(h-f+d*2,1)}`;return z.jsxs("svg",{className:"graph-overview",viewBox:p,"aria-hidden":"true",children:[e.edges.map(m=>{const v=l.get(m.from),x=l.get(m.to);return!v||!x?null:z.jsx("line",{x1:v.cx,y1:v.cy,x2:x.cx,y2:x.cy,className:`overview-edge kind-${m.kind}`},m.id)}),i.map(m=>z.jsx("circle",{cx:m.cx,cy:m.cy,r:n.radius,fill:VL(m.type),className:"overview-node"},m.id))]})}function PL({data:e,selected:t}){const n=e.item;return z.jsxs("article",{className:t?I6(n,e.mode,"selected"):I6(n,e.mode),children:[z.jsx(ua,{type:"target",position:He.Left,className:"node-handle node-handle-left"}),z.jsx(ua,{type:"source",position:He.Right,className:"node-handle node-handle-right"}),z.jsx(ua,{type:"target",position:He.Top,className:"node-handle node-handle-top"}),z.jsx(ua,{type:"source",position:He.Bottom,className:"node-handle node-handle-bottom"}),e.mode==="full"?z.jsx(WL,{item:n,highlighted:e.highlighted}):z.jsx(JL,{item:n}),e.highlighted&&z.jsx("span",{className:"node-match"})]})}function ZL({expanded:e,isRoot:t,node:n,canBranch:i,onExpandBranch:l,onFocusSubgraph:s,onMouseEnter:u,onMouseLeave:f,onOpenBrowser:h,onOpenPreview:d,onToggle:p,position:m,style:v}){return z.jsxs("div",{className:"node-hover-card",style:v,onMouseEnter:u,onMouseLeave:f,role:"dialog","aria-label":n.title,children:[z.jsxs("div",{className:"node-hover-copy",children:[z.jsx("strong",{children:n.title}),z.jsxs("span",{children:[n.type,n.status?` · ${n.status}`:""]}),n.summary&&z.jsx("p",{children:n.summary}),z.jsx("small",{children:Km(n)})]}),z.jsx(KL,{canBranch:i,canOpen:!!yc(n),expanded:e,isRoot:t,node:n,onExpandBranch:l,onFocusSubgraph:s,onOpenBrowser:h,onOpenPreview:d,onToggle:p})]})}function QL({node:e,onClose:t,onExpandBranch:n,onFocusSubgraph:i,onOpenBrowser:l,onOpenPreview:s,onToggle:u,position:f}){const h=!!yc(e),d=!!e;function p(m){m(),t()}return z.jsxs("div",{className:"node-context-menu",style:{left:f.x,top:f.y},onClick:m=>m.stopPropagation(),children:[z.jsx("button",{onClick:()=>p(()=>s(e)),disabled:!h&&!e.summary,children:"Preview"}),z.jsx("button",{onClick:()=>p(()=>l(e)),disabled:!h,children:"Open file"}),z.jsx("button",{onClick:()=>p(()=>u(e.id)),disabled:!d,children:"Expand / collapse"}),z.jsx("button",{onClick:()=>p(()=>n(e.id)),disabled:!d,children:"Expand branch"}),z.jsx("button",{onClick:()=>p(()=>i(e.id)),children:"Focus subgraph"})]})}function KL({canBranch:e,canOpen:t,expanded:n,isRoot:i,node:l,onExpandBranch:s,onFocusSubgraph:u,onOpenBrowser:f,onOpenPreview:h,onToggle:d}){return z.jsxs("div",{className:"node-action-bar",children:[z.jsx("button",{onClick:()=>h(l),disabled:!t&&!l.summary,children:"Preview"}),z.jsx("button",{onClick:()=>f(l),disabled:!t,children:"Open file"}),z.jsx("button",{onClick:()=>d(l.id),disabled:!e,children:n?"Collapse":"Expand"}),z.jsx("button",{onClick:()=>s(l.id),disabled:!e,children:"Expand branch"}),z.jsx("button",{onClick:()=>u(l.id),children:"Focus subgraph"})]})}function JL({item:e}){return z.jsxs(z.Fragment,{children:[z.jsx("span",{className:"node-dot"}),z.jsx("span",{className:"node-caption",children:e.title})]})}function WL({item:e,highlighted:t}){return z.jsxs(z.Fragment,{children:[z.jsxs("header",{children:[z.jsx("span",{className:`node-type type-${e.type}`,children:e.type}),e.status&&z.jsx("span",{className:`node-status status-${e.status}`,children:e.status})]}),z.jsx("h3",{children:e.title}),e.summary&&z.jsx("p",{children:e.summary}),z.jsxs("footer",{children:[z.jsx("span",{children:Km(e)}),tu(e)&&z.jsx("strong",{children:"missing files"}),Si(e).length>1&&z.jsxs("strong",{children:[Si(e).length," docs"]}),t&&z.jsx("strong",{children:"match"})]})]})}const eH={rootId:"rq.main",nodes:[{id:"rq.main",title:"Core research question",type:"question",summary:"What exactly has to be explained, bounded, and tested?",status:"active",tags:["framing"]},{id:"rq.theory",title:"Theoretical mechanism",type:"question",summary:"Which mechanism makes the expected effect plausible?",status:"active",tags:["theory","mechanism"]},{id:"rq.method",title:"Method and identification",type:"method",summary:"How can the mechanism be observed without overclaiming?",status:"draft",tags:["method"]},{id:"rq.evidence",title:"Evidence map",type:"evidence",summary:"Which sources support, weaken, or falsify the argument?",status:"active",tags:["evidence"]},{id:"concept.001",title:"Boundary condition",type:"concept",summary:"Where the mechanism should stop applying.",status:"draft",tags:["scope"]},{id:"claim.001",title:"Mechanism claim",type:"claim",summary:"A precise, falsifiable version of the central claim.",status:"active",tags:["claim"]},{id:"source.001",title:"Anchor paper",type:"source",summary:"Closest prior work and vocabulary.",status:"done",tags:["literature"]},{id:"source.html-demo",title:"External artifact",type:"source",summary:"A placeholder for a source document or rendered artifact.",status:"draft",tags:["source"]},{id:"evidence.001",title:"Observed pattern",type:"evidence",summary:"A repeated observation that should be explained by the claim.",status:"draft",tags:["observation"]},{id:"task.001",title:"Next reading pass",type:"task",summary:"Collect rival explanations before drafting.",status:"active",tags:["next"]}],edges:[{id:"edge.main.theory",from:"rq.main",to:"rq.theory",kind:"decomposes"},{id:"edge.main.method",from:"rq.main",to:"rq.method",kind:"decomposes"},{id:"edge.main.evidence",from:"rq.main",to:"rq.evidence",kind:"decomposes"},{id:"edge.theory.boundary",from:"rq.theory",to:"concept.001",kind:"decomposes"},{id:"edge.theory.claim",from:"rq.theory",to:"claim.001",kind:"answers"},{id:"edge.theory.source",from:"rq.theory",to:"source.001",kind:"cites"},{id:"edge.method.task",from:"rq.method",to:"task.001",kind:"leads_to"},{id:"edge.source.claim",from:"source.001",to:"claim.001",kind:"supports"},{id:"edge.evidence.html",from:"rq.evidence",to:"source.html-demo",kind:"cites"},{id:"edge.evidence.claim",from:"evidence.001",to:"claim.001",kind:"supports"},{id:"edge.evidence.pattern",from:"rq.evidence",to:"evidence.001",kind:"decomposes"},{id:"edge.source.theory",from:"source.001",to:"rq.theory",kind:"cites"}]},tH={research:PL};function nH({error:e,graph:t=eH,header:n,sidebarCollapsed:i=!1,sidebarHeader:l,sidebarResizeHandle:s,sidebarWidth:u}){return z.jsx(Lv,{children:z.jsx(rH,{error:e,graph:t,header:n,sidebarCollapsed:i,sidebarHeader:l,sidebarResizeHandle:s,sidebarWidth:u})})}function rH({error:e,graph:t,header:n,sidebarCollapsed:i,sidebarHeader:l,sidebarResizeHandle:s,sidebarWidth:u}){const[f,h]=ie.useState(()=>j6(t)),[d,p]=ie.useState(""),[m,v]=ie.useState("compact"),[x,w]=ie.useState({status:"idle"}),[A,C]=ie.useState("right"),[E,N]=ie.useState({right:500,bottom:340}),[T,B]=ie.useState(null),[I,D]=ie.useState(null),[U,J]=ie.useState(null),P=ie.useRef(null),{fitView:V,setCenter:X}=Xc(),W=ie.useMemo(()=>zL(t),[t]),ce=ie.useMemo(()=>W.search(d),[W,d]),q=ie.useMemo(()=>T?OL(t,{focusId:T.nodeId,includeAntecedents:T.includeAntecedents}):NL(t,{expandedIds:f,query:d}),[f,T,t,d]),F=ie.useMemo(()=>RL(q,{mode:m}),[m,q]),L=ie.useMemo(()=>new Set(ce.map(pe=>pe.id)),[ce]),Y=ie.useMemo(()=>Iv(t),[t]),K=I?F.nodes.find(pe=>pe.id===I.nodeId):void 0,ne=U?F.nodes.find(pe=>pe.id===U.nodeId):void 0,R=T?W.byId.get(T.nodeId)?.title||T.nodeId:"";ie.useEffect(()=>{h(j6(t)),B(null),D(null),J(null)},[t]);const j=ie.useMemo(()=>F.nodes.map(pe=>({id:pe.id,type:"research",position:pe.position,sourcePosition:He.Right,targetPosition:He.Left,data:{item:pe,childCount:F.childCounts[pe.id]||0,expanded:f.has(pe.id),highlighted:!!d.trim()&&L.has(pe.id),isRoot:pe.id===t.rootId,mode:m}})),[f,t.rootId,F.childCounts,F.nodes,L,m,d]),Z=ie.useMemo(()=>F.edges.map(pe=>({id:pe.id,source:pe.from,target:pe.to,label:LL(pe),type:m==="compact"?"bezier":"smoothstep",className:`research-edge kind-${pe.kind}`,interactionWidth:16,style:{stroke:U6(pe.kind),strokeWidth:m==="compact"?1.45:1.7},markerEnd:{type:js.ArrowClosed,width:m==="compact"?11:15,height:m==="compact"?11:15,color:U6(pe.kind)}})),[F.edges,m]);ie.useEffect(()=>{const pe=window.setTimeout(()=>V({padding:.16,maxZoom:m==="compact"?1.15:.9,duration:260}),80);return()=>window.clearTimeout(pe)},[V,j.length,m,d]);function _(pe){h(Ve=>_L(t,Ve,pe))}function se(){h(new Set(Y))}function ve(){h(new Set)}function xe(pe){h(Ve=>{const ut=new Set(Ve);for(const bt of DL(t,pe))ut.add(bt);return ut})}function we(pe){B({nodeId:pe,includeAntecedents:!1}),D(null),window.setTimeout(()=>V({padding:.22,maxZoom:m==="compact"?1.2:.92,duration:260}),80)}function ye(){B(pe=>pe&&{...pe,includeAntecedents:!pe.includeAntecedents}),window.setTimeout(()=>V({padding:.22,maxZoom:m==="compact"?1.2:.92,duration:260}),80)}function ke(pe){const Ve=m==="compact"?9:130;X(pe.position.x+Ve,pe.position.y+Ve,{zoom:m==="compact"?1.55:1.08,duration:280})}async function Be(pe,Ve){const ut=Si(pe);if(!ut.length){w({status:"note",path:pe.id,title:pe.title,summary:pe.summary});return}const bt=(Ve?ut.find(wt=>wt.path===Ve&&wt.fileExists!==!1):void 0)||ut.find(wt=>wt.fileExists!==!1);if(!bt){w({status:"error",path:pe.id,title:pe.title,message:"This graph node only links to missing files."});return}w({status:"loading",path:bt.path,title:bt.title||pe.title});try{const wt=await dn(`/api/workspace/file?path=${encodeURIComponent(bt.path)}`);w({status:"ready",path:wt.path,title:bt.title||pe.title,content:wt.content,bytes:wt.bytes,format:wt.format,mimeType:wt.mimeType,links:ut})}catch(wt){w({status:"error",path:bt.path,title:bt.title||pe.title,message:Va(wt)})}}function Ue(pe){const Ve=t.nodes.find(ut=>Si(ut).some(bt=>bt.path===pe));if(Ve)return Be(Ve,pe)}async function Oe(pe){await dn("/api/workspace/open",{method:"POST",body:JSON.stringify({path:pe})})}async function _e(pe,Ve=pe){try{await Oe(pe)}catch(ut){w({status:"error",path:pe,title:Ve,message:Va(ut)})}}async function Ge(pe){const Ve=yc(pe);Ve&&await _e(Ve.path,Ve.title||Ve.path)}function tt(pe,Ve,ut){yt(),J({nodeId:pe,x:Ve,y:ut})}function Qe(){yt(),P.current=window.setTimeout(()=>J(null),140)}function yt(){P.current!==null&&(window.clearTimeout(P.current),P.current=null)}return z.jsxs("main",{className:i?"app-shell graph-view sidebar-collapsed":"app-shell graph-view",style:u?{"--workspace-sidebar-width":`${u}px`}:void 0,children:[z.jsxs("aside",{className:"graph-index-panel",children:[l,s,!i&&z.jsxs(z.Fragment,{children:[z.jsxs("div",{className:"graph-panel-header",children:[z.jsxs("div",{children:[z.jsx("strong",{children:"Overview"}),z.jsxs("span",{children:[q.nodes.length,"/",t.nodes.length," nodes · ",q.edges.length," edges"]})]}),z.jsx("button",{className:"secondary-button compact",onClick:()=>V({padding:.16,maxZoom:m==="compact"?1.15:.9,duration:260}),children:"Fit"})]}),z.jsxs("label",{className:"graph-search",children:["Search",z.jsx("input",{value:d,onChange:pe=>p(pe.target.value),placeholder:"Search title, id, path, tag..."})]}),z.jsxs("div",{className:"graph-layout-toggle","aria-label":"Graph display mode",children:[z.jsx("button",{className:m==="compact"?"active":"",onClick:()=>v("compact"),children:"Compact"}),z.jsx("button",{className:m==="full"?"active":"",onClick:()=>v("full"),children:"Full"})]}),z.jsxs("div",{className:"graph-actions","aria-label":"Graph expansion controls",children:[z.jsx("button",{onClick:se,children:"Expand all"}),z.jsx("button",{onClick:ve,children:"Collapse all"})]}),z.jsx("div",{className:"graph-index-list",children:F.nodes.map(pe=>z.jsxs("div",{className:L.has(pe.id)&&d.trim()?"graph-index-item match":"graph-index-item",children:[z.jsxs("button",{className:"graph-index-focus",onClick:()=>ke(pe),children:[z.jsx("span",{className:`node-type type-${pe.type}`,children:pe.type}),z.jsx("strong",{children:pe.title}),z.jsx("small",{children:Km(pe)})]}),z.jsx("button",{className:"graph-index-open",onClick:()=>{Be(pe)},disabled:tu(pe),"aria-label":qL(pe),children:IL(pe)}),z.jsx("button",{className:"graph-index-browser",onClick:()=>{Ge(pe)},disabled:!yc(pe),"aria-label":"Open linked document with the system default app",children:"File"})]},pe.id))})]})]}),z.jsxs("section",{className:"chat-pane graph-active",children:[n,e&&z.jsx("div",{className:"error-banner",children:e}),z.jsxs("div",{className:x.status==="idle"?"graph-workspace":`graph-workspace preview-${A}`,style:jL(x.status,A,E),children:[z.jsxs("div",{className:"graph-canvas",children:[T&&z.jsxs("div",{className:"subgraph-toolbar",children:[z.jsxs("div",{children:[z.jsxs("strong",{children:["Focus: ",R]}),z.jsxs("span",{children:[q.nodes.length," nodes · ",T.includeAntecedents?"with antecedents":"nearby"]})]}),z.jsx("button",{onClick:ye,children:T.includeAntecedents?"Hide antecedents":"Show antecedents"}),z.jsx("button",{onClick:()=>B(null),children:"Back to full graph"})]}),z.jsxs(tL,{nodes:j,edges:Z,nodeTypes:tH,minZoom:.25,maxZoom:1.7,fitView:!0,fitViewOptions:{padding:.16,maxZoom:m==="compact"?1.15:.9},onNodeClick:(pe,Ve)=>{_(Ve.id),D(null)},onNodeContextMenu:(pe,Ve)=>{pe.preventDefault(),D({nodeId:Ve.id,x:pe.clientX,y:pe.clientY})},onNodeMouseEnter:(pe,Ve)=>tt(Ve.id,pe.clientX,pe.clientY),onNodeMouseMove:(pe,Ve)=>tt(Ve.id,pe.clientX,pe.clientY),onNodeMouseLeave:Qe,onPaneClick:()=>{D(null)},proOptions:{hideAttribution:!0},children:[z.jsx(lL,{gap:28,size:1,color:"#dce3ea"}),z.jsx(dL,{position:"bottom-right"})]}),U&&ne&&z.jsx(ZL,{canBranch:(F.childCounts[ne.id]||0)>0,expanded:f.has(ne.id),isRoot:ne.id===t.rootId,node:ne,onExpandBranch:xe,onFocusSubgraph:we,onMouseEnter:yt,onMouseLeave:Qe,onOpenBrowser:Ge,onOpenPreview:pe=>{Be(pe)},onToggle:_,position:U,style:iH(U)}),I&&K&&z.jsx(QL,{node:K,onClose:()=>D(null),onExpandBranch:xe,onFocusSubgraph:we,onOpenBrowser:Ge,onOpenPreview:pe=>{Be(pe)},onToggle:_,position:I}),z.jsx(XL,{layout:F,mode:m})]}),z.jsx(YL,{dock:A,onClose:()=>w({status:"idle"}),onDockChange:C,onOpenFile:pe=>{_e(pe,pe)},onOpenPath:pe=>{Ue(pe)},onResize:N,preview:x,size:E})]})]})]})}function iH(e){const l=Math.min(e.x+18,Math.max(14,window.innerWidth-400-14)),s=Math.min(e.y+18,Math.max(14,window.innerHeight-260-14));return{left:l,top:s,width:400}}const aH=328,K1=248,Yv=560,lH=50,oH=24,sH=76;function Gv(e,t){if(!Number.isFinite(e))return aH;const n=Math.max(K1,Math.floor(t*.48));return Math.min(Math.max(e,K1),Math.min(Yv,n))}function K0(e){return Number.isFinite(e)?Math.min(Math.max(e,oH),sH):lH}const $v="thinking-sidecar-sidebar-width",Xv="thinking-sidecar-sidebar-split-v2";function uH({collapsed:e,onResize:t,value:n}){if(e)return null;function i(u){t(Gv(u,window.innerWidth))}function l(u){u.preventDefault(),u.currentTarget.setPointerCapture(u.pointerId),document.body.classList.add("sidebar-resizing");function h(p){i(p.clientX)}function d(){document.body.classList.remove("sidebar-resizing"),window.removeEventListener("pointermove",h),window.removeEventListener("pointerup",d)}window.addEventListener("pointermove",h),window.addEventListener("pointerup",d,{once:!0})}function s(u){u.key==="ArrowLeft"&&(u.preventDefault(),i(n-(u.shiftKey?40:12))),u.key==="ArrowRight"&&(u.preventDefault(),i(n+(u.shiftKey?40:12)))}return z.jsx("div",{"aria-label":"Resize sidebar","aria-orientation":"vertical","aria-valuemax":Yv,"aria-valuemin":K1,"aria-valuenow":n,className:"sidebar-resize-handle",onKeyDown:s,onPointerDown:l,role:"separator",tabIndex:0,title:"Resize sidebar"})}function cH({containerRef:e,onResize:t,value:n}){function i(u){const f=e.current;if(!f)return;const h=f.getBoundingClientRect();h.height<=0||t(K0((u-h.top)/h.height*100))}function l(u){u.preventDefault(),u.currentTarget.setPointerCapture(u.pointerId),document.body.classList.add("sidebar-split-resizing");function h(p){i(p.clientY)}function d(){document.body.classList.remove("sidebar-split-resizing"),window.removeEventListener("pointermove",h),window.removeEventListener("pointerup",d)}window.addEventListener("pointermove",h),window.addEventListener("pointerup",d,{once:!0})}function s(u){u.key==="ArrowUp"&&(u.preventDefault(),t(K0(n-(u.shiftKey?10:4)))),u.key==="ArrowDown"&&(u.preventDefault(),t(K0(n+(u.shiftKey?10:4))))}return z.jsx("div",{"aria-label":"Resize session and settings areas","aria-orientation":"horizontal","aria-valuemax":76,"aria-valuemin":24,"aria-valuenow":n,className:"sidebar-section-resize-handle",onKeyDown:s,onPointerDown:l,role:"separator",tabIndex:0,title:"Resize session and settings areas"})}function fH(){const e=localStorage.getItem($v);return Gv(e===null?void 0:Number(e),window.innerWidth)}function hH(){const e=localStorage.getItem(Xv);return K0(e===null?void 0:Number(e))}function dH(){const[e,t]=ie.useState(null),[n,i]=ie.useState(""),l=new URLSearchParams(window.location.search).get("path")||"";return ie.useEffect(()=>{if(!l){i("Missing workspace file path.");return}dn(`/api/workspace/file?path=${encodeURIComponent(l)}`).then(s=>{document.title=s.path,t(s)}).catch(s=>i(Va(s)))},[l]),z.jsxs("main",{className:"standalone-viewer",children:[z.jsxs("header",{children:[z.jsxs("div",{children:[z.jsx("strong",{children:e?.path||l||"Workspace document"}),e&&z.jsxs("span",{children:[e.bytes.toLocaleString()," bytes · ",e.mimeType]})]}),e&&z.jsx("a",{href:`/api/workspace/raw?path=${encodeURIComponent(e.path)}`,target:"_blank",rel:"noreferrer",children:"Raw"})]}),n&&z.jsx("div",{className:"standalone-state error",children:n}),!n&&!e&&z.jsx("div",{className:"standalone-state",children:"Loading file..."}),e?.format==="markdown"&&z.jsx(Ds,{basePath:e.path,className:"standalone-markdown",content:e.content}),e?.format==="html"&&z.jsx("iframe",{className:"standalone-html",sandbox:"allow-same-origin",src:`/api/workspace/raw?path=${encodeURIComponent(e.path)}`,title:e.path}),e?.format==="text"&&z.jsx("pre",{className:"standalone-text",children:e.content})]})}function mH(){const[e,t]=ie.useState("graph"),[n,i]=ie.useState(null),[l,s]=ie.useState({instructionFiles:[],skills:[]}),[u,f]=ie.useState([]),[h,d]=ie.useState(""),[p,m]=ie.useState(null),[v,x]=ie.useState(""),[w,A]=ie.useState([]),[C,E]=ie.useState(null),[N,T]=ie.useState(""),[B,I]=ie.useState({}),[D,U]=ie.useState(!0),[J,P]=ie.useState(!1),[V,X]=ie.useState(!1),[W,ce]=ie.useState(()=>fH()),[q,F]=ie.useState(()=>hH()),[L,Y]=ie.useState(null),[K,ne]=ie.useState(""),[R,j]=ie.useState(""),[Z,_]=ie.useState(!1),[se,ve]=ie.useState(!1),xe=ie.useRef({}),we=ie.useRef(null);ie.useEffect(()=>{ye()},[]),ie.useEffect(()=>{localStorage.setItem($v,String(W))},[W]),ie.useEffect(()=>{localStorage.setItem(Xv,String(q))},[q]);async function ye(){const me=await dn("/api/config");i(me),d(me.graphManifestPath),await Be(),s(await dn("/api/workspace")),await ke();const Le=await dn("/api/sessions");A(Le),Le[0]?await tt(Le[0].id):await Ge()}async function ke(){try{x(""),m(await dn("/api/research-graph"))}catch(me){x(`Graph manifest: ${Va(me)}`)}}async function Be(){const me=await dn("/api/graphs");f(me.candidates),d(Le=>Le||me.current)}async function Ue(){if(!(!h.trim()||Z)){_(!0),j("");try{const me=await dn("/api/config",{method:"PATCH",body:JSON.stringify({graphManifestPath:h})});i(me),d(me.graphManifestPath),await Be(),await ke(),j(`Graph saved: ${me.graphManifestPath}`)}catch(me){ne(Va(me))}finally{_(!1)}}}async function Oe(){if(!se){ve(!0),j("");try{const me=await dn("/api/workspace/skills/install",{method:"POST",body:JSON.stringify({})});s(await dn("/api/workspace"));const Le=me.installed.length?`${me.installed.length} installed`:"no new skills",qt=me.skipped.length?`, ${me.skipped.length} already present`:"";j(`Workspace skills: ${Le}${qt}`)}catch(me){ne(Va(me))}finally{ve(!1)}}}async function _e(){A(await dn("/api/sessions"))}async function Ge(){ne("");const me=await dn("/api/sessions",{method:"POST",body:JSON.stringify({title:"New review",model:n?.defaultModel||"gpt-5.5"})});E(me),await _e()}async function tt(me){ne(""),E(await dn(`/api/sessions/${me}`))}async function Qe(me){if(!C)return;const Le=await dn(`/api/sessions/${C.id}`,{method:"PATCH",body:JSON.stringify(me)});E(Le),await _e()}async function yt(me){me.preventDefault(),N.trim()&&C&&await pe(C,N.trim(),{appendUser:!0})}async function pe(me,Le,qt){if(!Le||B[me.id]?.busy)return;ne("");const St=me.id;T(""),I(an=>({...an,[St]:{text:"",busy:!0}})),qt.appendUser?E({...me,messages:[...me.messages,{id:`local-${Date.now()}`,role:"user",content:Le,createdAt:new Date().toISOString(),source:"manual"}]}):E(me);const tl=new AbortController;xe.current[St]=tl;let Pr=!1;try{const an=await fetch(`/api/sessions/${St}/stream`,{method:"POST",signal:tl.signal,headers:{"Content-Type":"application/json"},body:JSON.stringify({message:Le,model:me.model,manualContext:me.manualContext,reviewPrompt:me.reviewPrompt,enableTools:D,includeInstructionFiles:J,existingMessageId:qt.existingMessageId})});if(!an.ok||!an.body){const Yn=await an.json().catch(()=>({}));throw new Error(Yn.error||"Request failed.")}const Mr=an.body.getReader(),yr=new TextDecoder;let zr="",Nr="";for(;;){const{value:Yn,done:va}=await Mr.read();if(va)break;zr+=yr.decode(Yn,{stream:!0});const Dr=zr.split(`
|
|
312
|
+
|
|
313
|
+
`);zr=Dr.pop()||"";for(const nl of Dr){if(!nl.startsWith("data: "))continue;const ln=JSON.parse(nl.slice(6));if(ln.type==="delta"&&(Nr+=ln.delta,I(rl=>({...rl,[St]:{text:Nr,busy:!0}}))),ln.type==="tool_call"&&wt(St,{role:"tool",content:`Calling \`${ln.name}\` with:
|
|
314
|
+
|
|
315
|
+
\`\`\`json
|
|
316
|
+
${ln.args}
|
|
317
|
+
\`\`\``,toolName:ln.name}),ln.type==="skills"&&wt(St,{role:"system",content:bz(ln)}),ln.type==="tool_result"&&wt(St,{role:"tool",content:`Result from \`${ln.name}\`:
|
|
318
|
+
|
|
319
|
+
\`\`\`
|
|
320
|
+
${String(ln.result).slice(0,4e3)}
|
|
321
|
+
\`\`\``,toolName:ln.name}),ln.type==="error")throw new Error(ln.error)}}I(Yn=>({...Yn,[St]:{text:"",busy:!1}}));const go=await dn(`/api/sessions/${St}`);E(Yn=>Yn?.id===St?go:Yn),await _e()}catch(an){an.name!=="AbortError"?ne(Va(an)):(Pr=!0,I(Mr=>({...Mr,[St]:{text:"",busy:!1}})))}finally{delete xe.current[St],Pr||I(an=>({...an,[St]:{text:an[St]?.text||"",busy:!1}}))}}async function Ve(){if(!C)return;xe.current[C.id]?.abort(),I(Le=>({...Le,[C.id]:{text:"",busy:!1}}));const me=await dn(`/api/sessions/${C.id}`).catch(()=>null);me&&(E(me),await _e())}async function ut(){if(!C||B[C.id]?.busy)return;const me=[...C.messages].reverse().find(Le=>Le.role==="user");me&&await bt(me.id,me.content)}async function bt(me,Le){if(!C||B[C.id]?.busy||!Le.trim())return;const qt=await dn(`/api/sessions/${C.id}/messages/${me}/edit`,{method:"POST",body:JSON.stringify({content:Le.trim()})});E(qt),Y(null),await _e(),await pe(qt,Le.trim(),{appendUser:!1,existingMessageId:me})}function wt(me,Le){E(qt=>qt?.id!==me?qt:{...qt,messages:[...qt.messages,{id:`local-tool-${Date.now()}-${Math.random()}`,createdAt:new Date().toISOString(),source:"model",...Le}]})}const vn=ie.useMemo(()=>{if(!C)return[];const me=C.messages,Le=B[C.id];return Le?.text?N5([...me,{id:"streaming",role:"assistant",content:Le.text,createdAt:new Date().toISOString(),source:"model",model:C.model,apiMode:C.apiMode}]):N5(me)},[C,B]),zt=!!(C&&B[C.id]?.busy),Vn=V?"app-shell sidebar-collapsed":"app-shell",fe={"--workspace-sidebar-width":`${W}px`},Ee={"--session-list-percent":`${q}%`},qe=e==="graph"?"Research Graph":C?.title||"No session",Xe=e==="graph"?`${n?.workspaceRoot||"Workspace"} · ${n?.graphManifestPath||"graph"}`:`${C?.model||n?.defaultModel} · ${n?.apiMode||"auto"} · ${D&&n?.apiMode==="chat"?"tools on":"tools off"}`,rt=z.jsxs("div",{className:"view-tabs sidebar-view-tabs","aria-label":"Workspace view",children:[z.jsx("button",{className:e==="chat"?"active":"",onClick:()=>t("chat"),children:"Chat"}),z.jsx("button",{className:e==="graph"?"active":"",onClick:()=>t("graph"),children:"Graph"})]}),fn=z.jsxs("header",{className:"topbar",children:[z.jsxs("div",{children:[z.jsx("strong",{children:qe}),z.jsx("span",{children:Xe})]}),z.jsx("div",{className:"topbar-actions",children:z.jsx("div",{className:n?.hasOpenAIKey?"status ok":"status error",children:n?.hasOpenAIKey?"API OK":"API ERROR"})})]}),Nn=z.jsx(uH,{collapsed:V,onResize:ce,value:W}),rn=u.find(me=>me.path===h),jt=z.jsx(Ez,{candidates:u,config:n,graphSaving:Z,installWorkspaceSkills:()=>{Oe()},loadGraphCandidates:()=>{Be()},notice:R,saveGraphSelection:()=>{Ue()},selectedCandidate:rn,selectedGraphPath:h,setSelectedGraphPath:d,setSidebarCollapsed:X,sidebarCollapsed:V,skillsInstalling:se,viewTabs:rt});return e==="graph"?z.jsx(nH,{error:K||v,graph:p||void 0,header:fn,sidebarCollapsed:V,sidebarHeader:jt,sidebarResizeHandle:Nn,sidebarWidth:W}):z.jsxs("main",{className:Vn,style:fe,children:[z.jsxs("aside",{className:"sidebar",children:[z.jsxs("div",{className:"workspace-sidebar-header",children:[rt,z.jsxs("div",{className:"brand-row",children:[z.jsxs("div",{className:"workspace-sidebar-title",children:[z.jsx("h1",{children:"Research Sidecar"}),!V&&z.jsxs(z.Fragment,{children:[z.jsx("p",{children:n?.workspaceRoot||"Loading workspace..."}),n?.openaiBaseURL&&z.jsx("p",{children:n.openaiBaseURL})]})]}),z.jsxs("div",{className:"brand-actions",children:[z.jsx("button",{className:"icon-button",onClick:()=>X(!V),title:"Toggle sidebar",children:V?"›":"‹"}),z.jsx("button",{className:"icon-button primary",onClick:Ge,title:"New session",children:"+"})]})]})]}),Nn,!V&&z.jsxs("div",{className:"sidebar-body",ref:we,style:Ee,children:[z.jsx("div",{className:"session-list",children:w.map(me=>z.jsxs("button",{className:me.id===C?.id?"session active":"session",onClick:()=>tt(me.id),children:[z.jsx("span",{children:me.title}),z.jsxs("small",{children:[me.messageCount," messages · ",B[me.id]?.busy?"thinking":"idle"]})]},me.id))}),z.jsx(cH,{containerRef:we,onResize:F,value:q}),C&&z.jsxs("section",{className:"context-panel",children:[z.jsxs("label",{children:["Session title",z.jsx("input",{value:C.title,onChange:me=>E({...C,title:me.target.value}),onBlur:()=>Qe({title:C.title})})]}),z.jsxs("div",{className:"model-row",children:[z.jsxs("label",{children:["Model",z.jsx("input",{value:C.model,onChange:me=>E({...C,model:me.target.value}),onBlur:()=>Qe({model:C.model})})]}),z.jsxs("div",{className:"mode-pill",children:["auto · ",n?.apiMode||C.apiMode]})]}),z.jsxs("label",{className:"checkbox-label",children:[z.jsx("input",{type:"checkbox",checked:D,onChange:me=>U(me.target.checked),disabled:n?.apiMode!=="chat"}),"Enable workspace tools"]}),z.jsxs("label",{className:"checkbox-label",children:[z.jsx("input",{type:"checkbox",checked:J,onChange:me=>P(me.target.checked)}),"Include CLAUDE.md / AGENTS.md"]}),z.jsxs("label",{children:["Codex/context packet notes",z.jsx("textarea",{value:C.manualContext,onChange:me=>E({...C,manualContext:me.target.value}),onBlur:()=>Qe({manualContext:C.manualContext}),placeholder:"Paste Codex's summary, current plan, diffs, or experiment notes here."})]}),z.jsxs("details",{children:[z.jsx("summary",{children:"Review prompt"}),z.jsx("textarea",{className:"prompt-box",value:C.reviewPrompt,onChange:me=>E({...C,reviewPrompt:me.target.value}),onBlur:()=>Qe({reviewPrompt:C.reviewPrompt})})]}),z.jsxs("details",{className:"workspace-skills",open:!0,children:[z.jsxs("summary",{children:["Workspace skills (",l.skills.length,")"]}),l.instructionFiles.length>0&&z.jsx("div",{className:"meta-list",children:l.instructionFiles.map(me=>z.jsx("span",{children:me.path},me.path))}),z.jsx("div",{className:"skill-list",children:l.skills.map(me=>z.jsxs("div",{className:"skill-row",children:[z.jsx("strong",{children:me.name}),z.jsx("span",{children:me.description||me.path})]},`${me.path}-${me.name}`))})]})]})]})]}),z.jsxs("section",{className:"chat-pane",children:[fn,K&&z.jsx("div",{className:"error-banner",children:K}),z.jsxs(z.Fragment,{children:[z.jsxs("div",{className:"messages",children:[vn.length===0&&z.jsxs("div",{className:"empty-state",children:[z.jsx("h2",{children:"Start with a claim, plan, or uncertainty."}),z.jsx("p",{children:"Add explicit context on the left, then ask the sidecar to challenge the reasoning."})]}),vn.map(me=>me.kind==="tool-run"?z.jsx(xz,{run:me.run},me.run.id):z.jsx("article",{className:`message ${me.message.role}`,children:z.jsxs(z.Fragment,{children:[z.jsxs("div",{className:"message-meta",children:[z.jsx("span",{children:vz(me.message)}),me.message.model&&z.jsx("small",{children:me.message.model}),me.message.role==="user"&&!zt&&z.jsx("button",{className:"text-button",onClick:()=>Y({id:me.message.id,content:me.message.content}),children:"Edit"})]}),L?.id===me.message.id?z.jsxs("form",{className:"edit-form",onSubmit:Le=>{Le.preventDefault(),bt(me.message.id,L.content)},children:[z.jsx("textarea",{value:L.content,onChange:Le=>Y({id:L.id,content:Le.target.value})}),z.jsxs("div",{className:"composer-actions",children:[z.jsx("button",{type:"button",className:"secondary-button",onClick:()=>Y(null),children:"Cancel"}),z.jsx("button",{children:"Save & rerun"})]})]}):z.jsx(Ds,{className:"message-body",content:me.message.content})]})},me.message.id))]}),z.jsxs("form",{className:"composer",onSubmit:yt,children:[z.jsx("textarea",{value:N,onChange:me=>T(me.target.value),placeholder:"Ask for an independent review, rival hypotheses, weak links, or the next evidence to gather."}),z.jsxs("div",{className:"composer-actions",children:[z.jsx("button",{type:"button",className:"secondary-button",disabled:!C?.messages.some(me=>me.role==="user")||zt,onClick:ut,children:"Rerun"}),zt?z.jsx("button",{type:"button",className:"stop-button",onClick:Ve,children:"Stop"}):z.jsx("button",{disabled:!N.trim(),children:"Send"})]})]})]})]})]})}function pH(){return window.location.pathname==="/viewer"?z.jsx(dH,{}):z.jsx(mH,{})}sb.createRoot(document.getElementById("root")).render(z.jsx(pH,{}));
|