@binarycheater/research-sidecar 0.1.1 → 0.1.3
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/README.md +20 -1
- package/README.zh.md +20 -1
- package/dist/client/assets/{index-BpVgCKdz.css → index-BErjWgQz.css} +1 -1
- package/dist/client/assets/index-kXy-k1Bp.js +321 -0
- package/dist/client/index.html +2 -2
- package/dist-server/lib/files.js +71 -0
- package/dist-server/lib/researchGraph.js +148 -15
- package/dist-server/lib/researchGraphManifest.js +89 -3
- package/dist-server/server/index.js +26 -4
- package/package.json +1 -1
- package/skills/research-graph-sop/SKILL.md +52 -1
- package/skills/scholar-mode/SKILL.md +22 -1
- package/dist/client/assets/index-D7VDrQ1Q.js +0 -324
|
@@ -1,324 +0,0 @@
|
|
|
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 gc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var a1={exports:{}},ls={};var Og;function Qx(){if(Og)return ls;Og=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 ls.Fragment=t,ls.jsx=n,ls.jsxs=n,ls}var Rg;function Kx(){return Rg||(Rg=1,a1.exports=Qx()),a1.exports}var D=Kx(),l1={exports:{}},Xe={};var Bg;function Jx(){if(Bg)return Xe;Bg=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(q){return q===null||typeof q!="object"?null:(q=v&&q[v]||q["@@iterator"],typeof q=="function"?q:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},A=Object.assign,T={};function E(q,$,_){this.props=q,this.context=$,this.refs=T,this.updater=_||w}E.prototype.isReactComponent={},E.prototype.setState=function(q,$){if(typeof q!="object"&&typeof q!="function"&&q!=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,q,$,"setState")},E.prototype.forceUpdate=function(q){this.updater.enqueueForceUpdate(this,q,"forceUpdate")};function N(){}N.prototype=E.prototype;function z(q,$,_){this.props=q,this.context=$,this.refs=T,this.updater=_||w}var H=z.prototype=new N;H.constructor=z,A(H,E.prototype),H.isPureReactComponent=!0;var I=Array.isArray;function O(){}var U={H:null,A:null,T:null,S:null},Q=Object.prototype.hasOwnProperty;function Z(q,$,_){var ie=_.ref;return{$$typeof:e,type:q,key:$,ref:ie!==void 0?ie:null,props:_}}function V(q,$){return Z(q.type,$,q.props)}function P(q){return typeof q=="object"&&q!==null&&q.$$typeof===e}function W(q){var $={"=":"=0",":":"=2"};return"$"+q.replace(/[=:]/g,function(_){return $[_]})}var ce=/\/+/g;function j(q,$){return typeof q=="object"&&q!==null&&q.key!=null?W(""+q.key):$.toString(36)}function F(q){switch(q.status){case"fulfilled":return q.value;case"rejected":throw q.reason;default:switch(typeof q.status=="string"?q.then(O,O):(q.status="pending",q.then(function($){q.status==="pending"&&(q.status="fulfilled",q.value=$)},function($){q.status==="pending"&&(q.status="rejected",q.reason=$)})),q.status){case"fulfilled":return q.value;case"rejected":throw q.reason}}throw q}function L(q,$,_,ie,ye){var xe=typeof q;(xe==="undefined"||xe==="boolean")&&(q=null);var be=!1;if(q===null)be=!0;else switch(xe){case"bigint":case"string":case"number":be=!0;break;case"object":switch(q.$$typeof){case e:case t:be=!0;break;case p:return be=q._init,L(be(q._payload),$,_,ie,ye)}}if(be)return ye=ye(q),be=ie===""?"."+j(q,0):ie,I(ye)?(_="",be!=null&&(_=be.replace(ce,"$&/")+"/"),L(ye,$,_,"",function(qe){return qe})):ye!=null&&(P(ye)&&(ye=V(ye,_+(ye.key==null||q&&q.key===ye.key?"":(""+ye.key).replace(ce,"$&/")+"/")+be)),$.push(ye)),1;be=0;var ge=ie===""?".":ie+":";if(I(q))for(var Se=0;Se<q.length;Se++)ie=q[Se],xe=ge+j(ie,Se),be+=L(ie,$,_,xe,ye);else if(Se=x(q),typeof Se=="function")for(q=Se.call(q),Se=0;!(ie=q.next()).done;)ie=ie.value,xe=ge+j(ie,Se++),be+=L(ie,$,_,xe,ye);else if(xe==="object"){if(typeof q.then=="function")return L(F(q),$,_,ie,ye);throw $=String(q),Error("Objects are not valid as a React child (found: "+($==="[object Object]"?"object with keys {"+Object.keys(q).join(", ")+"}":$)+"). If you meant to render a collection of children, use an array instead.")}return be}function Y(q,$,_){if(q==null)return q;var ie=[],ye=0;return L(q,ie,"","",function(xe){return $.call(_,xe,ye++)}),ie}function J(q){if(q._status===-1){var $=q._result;$=$(),$.then(function(_){(q._status===0||q._status===-1)&&(q._status=1,q._result=_)},function(_){(q._status===0||q._status===-1)&&(q._status=2,q._result=_)}),q._status===-1&&(q._status=0,q._result=$)}if(q._status===1)return q._result.default;throw q._result}var ne=typeof reportError=="function"?reportError:function(q){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var $=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof q=="object"&&q!==null&&typeof q.message=="string"?String(q.message):String(q),error:q});if(!window.dispatchEvent($))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",q);return}console.error(q)},C={map:Y,forEach:function(q,$,_){Y(q,function(){$.apply(this,arguments)},_)},count:function(q){var $=0;return Y(q,function(){$++}),$},toArray:function(q){return Y(q,function($){return $})||[]},only:function(q){if(!P(q))throw Error("React.Children.only expected to receive a single React element child.");return q}};return Xe.Activity=m,Xe.Children=C,Xe.Component=E,Xe.Fragment=n,Xe.Profiler=l,Xe.PureComponent=z,Xe.StrictMode=i,Xe.Suspense=h,Xe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=U,Xe.__COMPILER_RUNTIME={__proto__:null,c:function(q){return U.H.useMemoCache(q)}},Xe.cache=function(q){return function(){return q.apply(null,arguments)}},Xe.cacheSignal=function(){return null},Xe.cloneElement=function(q,$,_){if(q==null)throw Error("The argument must be a React element, but you passed "+q+".");var ie=A({},q.props),ye=q.key;if($!=null)for(xe in $.key!==void 0&&(ye=""+$.key),$)!Q.call($,xe)||xe==="key"||xe==="__self"||xe==="__source"||xe==="ref"&&$.ref===void 0||(ie[xe]=$[xe]);var xe=arguments.length-2;if(xe===1)ie.children=_;else if(1<xe){for(var be=Array(xe),ge=0;ge<xe;ge++)be[ge]=arguments[ge+2];ie.children=be}return Z(q.type,ye,ie)},Xe.createContext=function(q){return q={$$typeof:u,_currentValue:q,_currentValue2:q,_threadCount:0,Provider:null,Consumer:null},q.Provider=q,q.Consumer={$$typeof:s,_context:q},q},Xe.createElement=function(q,$,_){var ie,ye={},xe=null;if($!=null)for(ie in $.key!==void 0&&(xe=""+$.key),$)Q.call($,ie)&&ie!=="key"&&ie!=="__self"&&ie!=="__source"&&(ye[ie]=$[ie]);var be=arguments.length-2;if(be===1)ye.children=_;else if(1<be){for(var ge=Array(be),Se=0;Se<be;Se++)ge[Se]=arguments[Se+2];ye.children=ge}if(q&&q.defaultProps)for(ie in be=q.defaultProps,be)ye[ie]===void 0&&(ye[ie]=be[ie]);return Z(q,xe,ye)},Xe.createRef=function(){return{current:null}},Xe.forwardRef=function(q){return{$$typeof:f,render:q}},Xe.isValidElement=P,Xe.lazy=function(q){return{$$typeof:p,_payload:{_status:-1,_result:q},_init:J}},Xe.memo=function(q,$){return{$$typeof:d,type:q,compare:$===void 0?null:$}},Xe.startTransition=function(q){var $=U.T,_={};U.T=_;try{var ie=q(),ye=U.S;ye!==null&&ye(_,ie),typeof ie=="object"&&ie!==null&&typeof ie.then=="function"&&ie.then(O,ne)}catch(xe){ne(xe)}finally{$!==null&&_.types!==null&&($.types=_.types),U.T=$}},Xe.unstable_useCacheRefresh=function(){return U.H.useCacheRefresh()},Xe.use=function(q){return U.H.use(q)},Xe.useActionState=function(q,$,_){return U.H.useActionState(q,$,_)},Xe.useCallback=function(q,$){return U.H.useCallback(q,$)},Xe.useContext=function(q){return U.H.useContext(q)},Xe.useDebugValue=function(){},Xe.useDeferredValue=function(q,$){return U.H.useDeferredValue(q,$)},Xe.useEffect=function(q,$){return U.H.useEffect(q,$)},Xe.useEffectEvent=function(q){return U.H.useEffectEvent(q)},Xe.useId=function(){return U.H.useId()},Xe.useImperativeHandle=function(q,$,_){return U.H.useImperativeHandle(q,$,_)},Xe.useInsertionEffect=function(q,$){return U.H.useInsertionEffect(q,$)},Xe.useLayoutEffect=function(q,$){return U.H.useLayoutEffect(q,$)},Xe.useMemo=function(q,$){return U.H.useMemo(q,$)},Xe.useOptimistic=function(q,$){return U.H.useOptimistic(q,$)},Xe.useReducer=function(q,$,_){return U.H.useReducer(q,$,_)},Xe.useRef=function(q){return U.H.useRef(q)},Xe.useState=function(q){return U.H.useState(q)},Xe.useSyncExternalStore=function(q,$,_){return U.H.useSyncExternalStore(q,$,_)},Xe.useTransition=function(){return U.H.useTransition()},Xe.version="19.2.6",Xe}var Lg;function qs(){return Lg||(Lg=1,l1.exports=Jx()),l1.exports}var le=qs();const Wx=gc(le);var o1={exports:{}},os={},s1={exports:{}},u1={};var Hg;function eb(){return Hg||(Hg=1,(function(e){function t(L,Y){var J=L.length;L.push(Y);e:for(;0<J;){var ne=J-1>>>1,C=L[ne];if(0<l(C,Y))L[ne]=Y,L[J]=C,J=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],J=L.pop();if(J!==Y){L[0]=J;e:for(var ne=0,C=L.length,q=C>>>1;ne<q;){var $=2*(ne+1)-1,_=L[$],ie=$+1,ye=L[ie];if(0>l(_,J))ie<C&&0>l(ye,_)?(L[ne]=ye,L[ie]=J,ne=ie):(L[ne]=_,L[$]=J,ne=$);else if(ie<C&&0>l(ye,J))L[ne]=ye,L[ie]=J,ne=ie;else break e}}return Y}function l(L,Y){var J=L.sortIndex-Y.sortIndex;return J!==0?J: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,T=!1,E=typeof setTimeout=="function"?setTimeout:null,N=typeof clearTimeout=="function"?clearTimeout:null,z=typeof setImmediate<"u"?setImmediate:null;function H(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,H(L),!w)if(n(h)!==null)w=!0,O||(O=!0,W());else{var Y=n(d);Y!==null&&F(I,Y.startTime-L)}}var O=!1,U=-1,Q=5,Z=-1;function V(){return T?!0:!(e.unstable_now()-Z<Q)}function P(){if(T=!1,O){var L=e.unstable_now();Z=L;var Y=!0;try{e:{w=!1,A&&(A=!1,N(U),U=-1),x=!0;var J=v;try{t:{for(H(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 C=ne(m.expirationTime<=L);if(L=e.unstable_now(),typeof C=="function"){m.callback=C,H(L),Y=!0;break t}m===n(h)&&i(h),H(L)}else i(h);m=n(h)}if(m!==null)Y=!0;else{var q=n(d);q!==null&&F(I,q.startTime-L),Y=!1}}break e}finally{m=null,v=J,x=!1}Y=void 0}}finally{Y?W():O=!1}}}var W;if(typeof z=="function")W=function(){z(P)};else if(typeof MessageChannel<"u"){var ce=new MessageChannel,j=ce.port2;ce.port1.onmessage=P,W=function(){j.postMessage(null)}}else W=function(){E(P,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"):Q=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 J=v;v=Y;try{return L()}finally{v=J}},e.unstable_requestPaint=function(){T=!0},e.unstable_runWithPriority=function(L,Y){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var J=v;v=L;try{return Y()}finally{v=J}},e.unstable_scheduleCallback=function(L,Y,J){var ne=e.unstable_now();switch(typeof J=="object"&&J!==null?(J=J.delay,J=typeof J=="number"&&0<J?ne+J:ne):J=ne,L){case 1:var C=-1;break;case 2:C=250;break;case 5:C=1073741823;break;case 4:C=1e4;break;default:C=5e3}return C=J+C,L={id:p++,callback:Y,priorityLevel:L,startTime:J,expirationTime:C,sortIndex:-1},J>ne?(L.sortIndex=J,t(d,L),n(h)===null&&L===n(d)&&(A?(N(U),U=-1):A=!0,F(I,J-ne))):(L.sortIndex=C,t(h,L),w||x||(w=!0,O||(O=!0,W()))),L},e.unstable_shouldYield=V,e.unstable_wrapCallback=function(L){var Y=v;return function(){var J=v;v=Y;try{return L.apply(this,arguments)}finally{v=J}}}})(u1)),u1}var qg;function tb(){return qg||(qg=1,s1.exports=eb()),s1.exports}var c1={exports:{}},vn={};var jg;function nb(){if(jg)return vn;jg=1;var e=qs();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 vn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,vn.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)},vn.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()}},vn.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))},vn.prefetchDNS=function(h){typeof h=="string"&&i.d.D(h)},vn.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})}},vn.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)},vn.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})}},vn.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)},vn.requestFormReset=function(h){i.d.r(h)},vn.unstable_batchedUpdates=function(h,d){return h(d)},vn.useFormState=function(h,d,p){return u.H.useFormState(h,d,p)},vn.useFormStatus=function(){return u.H.useHostTransitionStatus()},vn.version="19.2.6",vn}var Ig;function F6(){if(Ig)return c1.exports;Ig=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(),c1.exports=nb(),c1.exports}var Ug;function rb(){if(Ug)return os;Ug=1;var e=tb(),t=qs(),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,R=g.child;R;){if(R===o){k=!0,o=g,c=y;break}if(R===c){k=!0,c=g,o=y;break}R=R.sibling}if(!k){for(R=y.child;R;){if(R===o){k=!0,o=y,c=g;break}if(R===c){k=!0,c=y,o=g;break}R=R.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"),T=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),N=Symbol.for("react.consumer"),z=Symbol.for("react.context"),H=Symbol.for("react.forward_ref"),I=Symbol.for("react.suspense"),O=Symbol.for("react.suspense_list"),U=Symbol.for("react.memo"),Q=Symbol.for("react.lazy"),Z=Symbol.for("react.activity"),V=Symbol.for("react.memo_cache_sentinel"),P=Symbol.iterator;function W(r){return r===null||typeof r!="object"?null:(r=P&&r[P]||r["@@iterator"],typeof r=="function"?r:null)}var ce=Symbol.for("react.client.reference");function j(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 T:return"StrictMode";case I:return"Suspense";case O:return"SuspenseList";case Z:return"Activity"}if(typeof r=="object")switch(r.$$typeof){case w:return"Portal";case z:return r.displayName||"Context";case N:return(r._context.displayName||"Context")+".Consumer";case H: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:j(r.type)||"Memo";case Q:a=r._payload,r=r._init;try{return j(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,J={pending:!1,data:null,method:null,action:null},ne=[],C=-1;function q(r){return{current:r}}function $(r){0>C||(r.current=ne[C],ne[C]=null,C--)}function _(r,a){C++,ne[C]=r.current,r.current=a}var ie=q(null),ye=q(null),xe=q(null),be=q(null);function ge(r,a){switch(_(xe,a),_(ye,r),_(ie,null),a.nodeType){case 9:case 11:r=(r=a.documentElement)&&(r=r.namespaceURI)?ng(r):0;break;default:if(r=a.tagName,a=a.namespaceURI)a=ng(a),r=rg(a,r);else switch(r){case"svg":r=1;break;case"math":r=2;break;default:r=0}}$(ie),_(ie,r)}function Se(){$(ie),$(ye),$(xe)}function qe(r){r.memoizedState!==null&&_(be,r);var a=ie.current,o=rg(a,r.type);a!==o&&(_(ye,r),_(ie,o))}function Ie(r){ye.current===r&&($(ie),$(ye)),be.current===r&&($(be),ns._currentValue=J)}var Re,Be;function Ye(r){if(Re===void 0)try{throw Error()}catch(o){var a=o.stack.trim().match(/\n( *(at )?)/);Re=a&&a[1]||"",Be=-1<o.stack.indexOf(`
|
|
2
|
-
at`)?" (<anonymous>)":-1<o.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
-
`+Re+r+Be}var it=!1;function Je(r,a){if(!r||it)return"";it=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var c={DetermineComponentFrameRoot:function(){try{if(a){var pe=function(){throw Error()};if(Object.defineProperty(pe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(pe,[])}catch(ue){var se=ue}Reflect.construct(r,[],pe)}else{try{pe.call()}catch(ue){se=ue}r.call(pe.prototype)}}else{try{throw Error()}catch(ue){se=ue}(pe=r())&&typeof pe.catch=="function"&&pe.catch(function(){})}}catch(ue){if(ue&&se&&typeof ue.stack=="string")return[ue.stack,se.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],R=y[1];if(k&&R){var K=k.split(`
|
|
4
|
-
`),oe=R.split(`
|
|
5
|
-
`);for(g=c=0;c<K.length&&!K[c].includes("DetermineComponentFrameRoot");)c++;for(;g<oe.length&&!oe[g].includes("DetermineComponentFrameRoot");)g++;if(c===K.length||g===oe.length)for(c=K.length-1,g=oe.length-1;1<=c&&0<=g&&K[c]!==oe[g];)g--;for(;1<=c&&0<=g;c--,g--)if(K[c]!==oe[g]){if(c!==1||g!==1)do if(c--,g--,0>g||K[c]!==oe[g]){var de=`
|
|
6
|
-
`+K[c].replace(" at new "," at ");return r.displayName&&de.includes("<anonymous>")&&(de=de.replace("<anonymous>",r.displayName)),de}while(1<=c&&0<=g);break}}}finally{it=!1,Error.prepareStackTrace=o}return(o=r?r.displayName||r.name:"")?Ye(o):""}function At(r,a){switch(r.tag){case 26:case 27:case 5:return Ye(r.type);case 16:return Ye("Lazy");case 13:return r.child!==a&&a!==null?Ye("Suspense Fallback"):Ye("Suspense");case 19:return Ye("SuspenseList");case 0:case 15:return Je(r.type,!1);case 11:return Je(r.type.render,!1);case 1:return Je(r.type,!0);case 31:return Ye("Activity");default:return""}}function tn(r){try{var a="",o=null;do a+=At(r,o),o=r,r=r.return;while(r);return a}catch(c){return`
|
|
7
|
-
Error generating stack: `+c.message+`
|
|
8
|
-
`+c.stack}}var Ut=Object.prototype.hasOwnProperty,Ft=e.unstable_scheduleCallback,pn=e.unstable_cancelCallback,Sn=e.unstable_shouldYield,gn=e.unstable_requestPaint,kt=e.unstable_now,Vn=e.unstable_getCurrentPriorityLevel,fe=e.unstable_ImmediatePriority,ke=e.unstable_UserBlockingPriority,He=e.unstable_NormalPriority,Ge=e.unstable_LowPriority,et=e.unstable_IdlePriority,un=e.log,Nn=e.unstable_setDisableYieldValue,Ct=null,Rt=null;function he(r){if(typeof un=="function"&&Nn(r),Rt&&typeof Rt.setStrictMode=="function")try{Rt.setStrictMode(Ct,r)}catch{}}var _e=Math.clz32?Math.clz32:Wa,Bt=Math.log,gt=Math.LN2;function Wa(r){return r>>>=0,r===0?32:31-(Bt(r)/gt|0)|0}var Pr=256,nn=262144,Cr=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 Mr(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 R=c&134217727;return R!==0?(c=R&~y,c!==0?g=yr(c):(k&=R,k!==0?g=yr(k):o||(o=R&~r,o!==0&&(g=yr(o))))):(R=c&~y,R!==0?g=yr(R):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 ho(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=Cr;return Cr<<=1,(Cr&62914560)===0&&(Cr=4194304),r}function ya(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 el(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 R=r.entanglements,K=r.expirationTimes,oe=r.hiddenUpdates;for(o=k&~o;0<o;){var de=31-_e(o),pe=1<<de;R[de]=0,K[de]=-1;var se=oe[de];if(se!==null)for(oe[de]=null,de=0;de<se.length;de++){var ue=se[de];ue!==null&&(ue.lane&=-536870913)}o&=~pe}c!==0&&rn(r,c,0),y!==0&&g===0&&r.tag!==0&&(r.suspendedLanes|=y&~(k&~a))}function rn(r,a,o){r.pendingLanes|=a,r.suspendedLanes&=~a;var c=31-_e(a);r.entangledLanes|=a,r.entanglements[c]=r.entanglements[c]|1073741824|o&261930}function tl(r,a){var o=r.entangledLanes|=a;for(r=r.entanglements;o;){var c=31-_e(o),g=1<<c;g&a|r[c]&a&&(r[c]|=a),o&=~g}}function Js(r,a){var o=a&-a;return o=(o&42)!==0?1:mo(o),(o&(r.suspendedLanes|a))!==0?0:o}function mo(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 po(r){return r&=-r,2<r?8<r?(r&134217727)!==0?32:268435456:8:2}function Ws(){var r=Y.p;return r!==0?r:(r=window.event,r===void 0?32:Tg(r.type))}function eu(r,a){var o=Y.p;try{return Y.p=r,a()}finally{Y.p=o}}var _r=Math.random().toString(36).slice(2),an="__reactFiber$"+_r,yn="__reactProps$"+_r,Zr="__reactContainer$"+_r,nl="__reactEvents$"+_r,tu="__reactListeners$"+_r,Zc="__reactHandles$"+_r,nu="__reactResources$"+_r,va="__reactMarker$"+_r;function go(r){delete r[an],delete r[yn],delete r[nl],delete r[tu],delete r[Zc]}function zi(r){var a=r[an];if(a)return a;for(var o=r.parentNode;o;){if(a=o[Zr]||o[an]){if(o=a.alternate,a.child!==null||o!==null&&o.child!==null)for(r=cg(r);r!==null;){if(o=r[an])return o;r=cg(r)}return a}r=o,o=r.parentNode}return null}function Ci(r){if(r=r[an]||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 Mi(r){var a=r.tag;if(a===5||a===26||a===27||a===6)return r.stateNode;throw Error(i(33))}function Ni(r){var a=r[nu];return a||(a=r[nu]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function Gt(r){r[va]=!0}var ru=new Set,iu={};function Qr(r,a){Di(r,a),Di(r+"Capture",a)}function Di(r,a){for(iu[r]=a,r=0;r<a.length;r++)ru.add(a[r])}var Qc=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]*$"),yo={},au={};function Kc(r){return Ut.call(au,r)?!0:Ut.call(yo,r)?!1:Qc.test(r)?au[r]=!0:(yo[r]=!0,!1)}function rl(r,a,o){if(Kc(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 il(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 lu(r){var a=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function Jc(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 al(r){if(!r._valueTracker){var a=lu(r)?"checked":"value";r._valueTracker=Jc(r,a,""+r[a])}}function ou(r){if(!r)return!1;var a=r._valueTracker;if(!a)return!0;var o=a.getValue(),c="";return r&&(c=lu(r)?r.checked?"true":"false":r.value),r=c,r!==o?(a.setValue(r),!0):!1}function xa(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 Wc=/[\n"\\]/g;function _n(r){return r.replace(Wc,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function ba(r,a,o,c,g,y,k,R){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?vo(r,k,Dn(a)):o!=null?vo(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"),R!=null&&typeof R!="function"&&typeof R!="symbol"&&typeof R!="boolean"?r.name=""+Dn(R):r.removeAttribute("name")}function su(r,a,o,c,g,y,k,R){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)){al(r);return}o=o!=null?""+Dn(o):"",a=a!=null?""+Dn(a):o,R||a===r.value||(r.value=a),r.defaultValue=a}c=c??g,c=typeof c!="function"&&typeof c!="symbol"&&!!c,r.checked=R?r.checked:!!c,r.defaultChecked=!!c,k!=null&&typeof k!="function"&&typeof k!="symbol"&&typeof k!="boolean"&&(r.name=k),al(r)}function vo(r,a,o){a==="number"&&xa(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 Km(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 Jm(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),al(r)}function ll(r,a){if(a){var o=r.firstChild;if(o&&o===r.lastChild&&o.nodeType===3){o.nodeValue=a;return}}r.textContent=a}var Gv=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 Wm(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||Gv.has(a)?a==="float"?r.cssFloat=o:r[a]=(""+o).trim():r[a]=o+"px"}function ep(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&&Wm(r,g,c)}else for(var y in a)a.hasOwnProperty(y)&&Wm(r,y,a[y])}function ef(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 $v=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"]]),Xv=/^[\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 uu(r){return Xv.test(""+r)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":r}function Jr(){}var tf=null;function nf(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var ol=null,sl=null;function tp(r){var a=Ci(r);if(a&&(r=a.stateNode)){var o=r[yn]||null;e:switch(r=a.stateNode,a.type){case"input":if(ba(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[yn]||null;if(!g)throw Error(i(90));ba(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&&ou(c)}break e;case"textarea":Km(r,o.value,o.defaultValue);break e;case"select":a=o.value,a!=null&&Kr(r,!!o.multiple,a,!1)}}}var rf=!1;function np(r,a,o){if(rf)return r(a,o);rf=!0;try{var c=r(a);return c}finally{if(rf=!1,(ol!==null||sl!==null)&&(Qu(),ol&&(a=ol,r=sl,sl=ol=null,tp(a),r)))for(a=0;a<r.length;a++)tp(r[a])}}function xo(r,a){var o=r.stateNode;if(o===null)return null;var c=o[yn]||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"),af=!1;if(Wr)try{var bo={};Object.defineProperty(bo,"passive",{get:function(){af=!0}}),window.addEventListener("test",bo,bo),window.removeEventListener("test",bo,bo)}catch{af=!1}var _i=null,lf=null,cu=null;function rp(){if(cu)return cu;var r,a=lf,o=a.length,c,g="value"in _i?_i.value:_i.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 cu=g.slice(r,1<c?1-c:void 0)}function fu(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 hu(){return!0}function ip(){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 R in r)r.hasOwnProperty(R)&&(o=r[R],this[R]=o?o(y):y[R]);return this.isDefaultPrevented=(y.defaultPrevented!=null?y.defaultPrevented:y.returnValue===!1)?hu:ip,this.isPropagationStopped=ip,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=hu)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=hu)},persist:function(){},isPersistent:hu}),a}var wa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},du=On(wa),wo=m({},wa,{view:0,detail:0}),Pv=On(wo),of,sf,So,mu=m({},wo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:cf,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!==So&&(So&&r.type==="mousemove"?(of=r.screenX-So.screenX,sf=r.screenY-So.screenY):sf=of=0,So=r),of)},movementY:function(r){return"movementY"in r?r.movementY:sf}}),ap=On(mu),Zv=m({},mu,{dataTransfer:0}),Qv=On(Zv),Kv=m({},wo,{relatedTarget:0}),uf=On(Kv),Jv=m({},wa,{animationName:0,elapsedTime:0,pseudoElement:0}),Wv=On(Jv),e9=m({},wa,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),t9=On(e9),n9=m({},wa,{data:0}),lp=On(n9),r9={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},i9={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"},a9={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function l9(r){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(r):(r=a9[r])?!!a[r]:!1}function cf(){return l9}var o9=m({},wo,{key:function(r){if(r.key){var a=r9[r.key]||r.key;if(a!=="Unidentified")return a}return r.type==="keypress"?(r=fu(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?i9[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:cf,charCode:function(r){return r.type==="keypress"?fu(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?fu(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),s9=On(o9),u9=m({},mu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),op=On(u9),c9=m({},wo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:cf}),f9=On(c9),h9=m({},wa,{propertyName:0,elapsedTime:0,pseudoElement:0}),d9=On(h9),m9=m({},mu,{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}),p9=On(m9),g9=m({},wa,{newState:0,oldState:0}),y9=On(g9),v9=[9,13,27,32],ff=Wr&&"CompositionEvent"in window,ko=null;Wr&&"documentMode"in document&&(ko=document.documentMode);var x9=Wr&&"TextEvent"in window&&!ko,sp=Wr&&(!ff||ko&&8<ko&&11>=ko),up=" ",cp=!1;function fp(r,a){switch(r){case"keyup":return v9.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function hp(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var ul=!1;function b9(r,a){switch(r){case"compositionend":return hp(a);case"keypress":return a.which!==32?null:(cp=!0,up);case"textInput":return r=a.data,r===up&&cp?null:r;default:return null}}function w9(r,a){if(ul)return r==="compositionend"||!ff&&fp(r,a)?(r=rp(),cu=lf=_i=null,ul=!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 sp&&a.locale!=="ko"?null:a.data;default:return null}}var S9={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 dp(r){var a=r&&r.nodeName&&r.nodeName.toLowerCase();return a==="input"?!!S9[r.type]:a==="textarea"}function mp(r,a,o,c){ol?sl?sl.push(c):sl=[c]:ol=c,a=r0(a,"onChange"),0<a.length&&(o=new du("onChange","change",null,o,c),r.push({event:o,listeners:a}))}var Eo=null,Ao=null;function k9(r){Q2(r,0)}function pu(r){var a=Mi(r);if(ou(a))return r}function pp(r,a){if(r==="change")return a}var gp=!1;if(Wr){var hf;if(Wr){var df="oninput"in document;if(!df){var yp=document.createElement("div");yp.setAttribute("oninput","return;"),df=typeof yp.oninput=="function"}hf=df}else hf=!1;gp=hf&&(!document.documentMode||9<document.documentMode)}function vp(){Eo&&(Eo.detachEvent("onpropertychange",xp),Ao=Eo=null)}function xp(r){if(r.propertyName==="value"&&pu(Ao)){var a=[];mp(a,Ao,r,nf(r)),np(k9,a)}}function E9(r,a,o){r==="focusin"?(vp(),Eo=a,Ao=o,Eo.attachEvent("onpropertychange",xp)):r==="focusout"&&vp()}function A9(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return pu(Ao)}function T9(r,a){if(r==="click")return pu(a)}function z9(r,a){if(r==="input"||r==="change")return pu(a)}function C9(r,a){return r===a&&(r!==0||1/r===1/a)||r!==r&&a!==a}var Gn=typeof Object.is=="function"?Object.is:C9;function To(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(!Ut.call(a,g)||!Gn(r[g],a[g]))return!1}return!0}function bp(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function wp(r,a){var o=bp(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=bp(o)}}function Sp(r,a){return r&&a?r===a?!0:r&&r.nodeType===3?!1:a&&a.nodeType===3?Sp(r,a.parentNode):"contains"in r?r.contains(a):r.compareDocumentPosition?!!(r.compareDocumentPosition(a)&16):!1:!1}function kp(r){r=r!=null&&r.ownerDocument!=null&&r.ownerDocument.defaultView!=null?r.ownerDocument.defaultView:window;for(var a=xa(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=xa(r.document)}return a}function mf(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 M9=Wr&&"documentMode"in document&&11>=document.documentMode,cl=null,pf=null,zo=null,gf=!1;function Ep(r,a,o){var c=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;gf||cl==null||cl!==xa(c)||(c=cl,"selectionStart"in c&&mf(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}),zo&&To(zo,c)||(zo=c,c=r0(pf,"onSelect"),0<c.length&&(a=new du("onSelect","select",null,a,o),r.push({event:a,listeners:c}),a.target=cl)))}function Sa(r,a){var o={};return o[r.toLowerCase()]=a.toLowerCase(),o["Webkit"+r]="webkit"+a,o["Moz"+r]="moz"+a,o}var fl={animationend:Sa("Animation","AnimationEnd"),animationiteration:Sa("Animation","AnimationIteration"),animationstart:Sa("Animation","AnimationStart"),transitionrun:Sa("Transition","TransitionRun"),transitionstart:Sa("Transition","TransitionStart"),transitioncancel:Sa("Transition","TransitionCancel"),transitionend:Sa("Transition","TransitionEnd")},yf={},Ap={};Wr&&(Ap=document.createElement("div").style,"AnimationEvent"in window||(delete fl.animationend.animation,delete fl.animationiteration.animation,delete fl.animationstart.animation),"TransitionEvent"in window||delete fl.transitionend.transition);function ka(r){if(yf[r])return yf[r];if(!fl[r])return r;var a=fl[r],o;for(o in a)if(a.hasOwnProperty(o)&&o in Ap)return yf[r]=a[o];return r}var Tp=ka("animationend"),zp=ka("animationiteration"),Cp=ka("animationstart"),N9=ka("transitionrun"),D9=ka("transitionstart"),_9=ka("transitioncancel"),Mp=ka("transitionend"),Np=new Map,vf="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(" ");vf.push("scrollEnd");function xr(r,a){Np.set(r,a),Qr(a,[r])}var gu=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=[],hl=0,xf=0;function yu(){for(var r=hl,a=xf=hl=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&&Dp(o,g,y)}}function vu(r,a,o,c){lr[hl++]=r,lr[hl++]=a,lr[hl++]=o,lr[hl++]=c,xf|=c,r.lanes|=c,r=r.alternate,r!==null&&(r.lanes|=c)}function bf(r,a,o,c){return vu(r,a,o,c),xu(r)}function Ea(r,a){return vu(r,null,null,a),xu(r)}function Dp(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-_e(o),r=y.hiddenUpdates,c=r[g],c===null?r[g]=[a]:c.push(a),a.lane=o|536870912),y):null}function xu(r){if(50<Zo)throw Zo=0,Mh=null,Error(i(185));for(var a=r.return;a!==null;)r=a,a=r.return;return r.tag===3?r.stateNode:null}var dl={};function O9(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 O9(r,a,o,c)}function wf(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 _p(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 bu(r,a,o,c,g,y){var k=0;if(c=r,typeof r=="function")wf(r)&&(k=1);else if(typeof r=="string")k=qx(r,o,ie.current)?26:r==="html"||r==="head"||r==="body"?27:5;else e:switch(r){case Z:return r=$n(31,o,a,g),r.elementType=Z,r.lanes=y,r;case A:return Aa(o.children,g,y,a);case T: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 O:return r=$n(19,o,a,g),r.elementType=O,r.lanes=y,r;default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case z:k=10;break e;case N:k=9;break e;case H:k=11;break e;case U:k=14;break e;case Q: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 Aa(r,a,o,c){return r=$n(7,r,c,a),r.lanes=o,r}function Sf(r,a,o){return r=$n(6,r,null,a),r.lanes=o,r}function Op(r){var a=$n(18,null,null,0);return a.stateNode=r,a}function kf(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 Rp=new WeakMap;function or(r,a){if(typeof r=="object"&&r!==null){var o=Rp.get(r);return o!==void 0?o:(a={value:r,source:a,stack:tn(a)},Rp.set(r,a),a)}return{value:r,source:a,stack:tn(a)}}var ml=[],pl=0,wu=null,Co=0,sr=[],ur=0,Oi=null,Or=1,Rr="";function ti(r,a){ml[pl++]=Co,ml[pl++]=wu,wu=r,Co=a}function Bp(r,a,o){sr[ur++]=Or,sr[ur++]=Rr,sr[ur++]=Oi,Oi=r;var c=Or;r=Rr;var g=32-_e(c)-1;c&=~(1<<g),o+=1;var y=32-_e(a)+g;if(30<y){var k=g-g%5;y=(c&(1<<k)-1).toString(32),c>>=k,g-=k,Or=1<<32-_e(a)+g|o<<g|c,Rr=y+r}else Or=1<<y|o<<g|c,Rr=r}function Ef(r){r.return!==null&&(ti(r,1),Bp(r,1,0))}function Af(r){for(;r===wu;)wu=ml[--pl],ml[pl]=null,Co=ml[--pl],ml[pl]=null;for(;r===Oi;)Oi=sr[--ur],sr[ur]=null,Rr=sr[--ur],sr[ur]=null,Or=sr[--ur],sr[ur]=null}function Lp(r,a){sr[ur++]=Or,sr[ur++]=Rr,sr[ur++]=Oi,Or=a.id,Rr=a.overflow,Oi=r}var fn=null,Tt=null,ot=!1,Ri=null,cr=!1,Tf=Error(i(519));function Bi(r){var a=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Mo(or(a,r)),Tf}function Hp(r){var a=r.stateNode,o=r.type,c=r.memoizedProps;switch(a[an]=r,a[yn]=c,o){case"dialog":nt("cancel",a),nt("close",a);break;case"iframe":case"object":case"embed":nt("load",a);break;case"video":case"audio":for(o=0;o<Ko.length;o++)nt(Ko[o],a);break;case"source":nt("error",a);break;case"img":case"image":case"link":nt("error",a),nt("load",a);break;case"details":nt("toggle",a);break;case"input":nt("invalid",a),su(a,c.value,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name,!0);break;case"select":nt("invalid",a);break;case"textarea":nt("invalid",a),Jm(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||eg(a.textContent,o)?(c.popover!=null&&(nt("beforetoggle",a),nt("toggle",a)),c.onScroll!=null&&nt("scroll",a),c.onScrollEnd!=null&&nt("scrollend",a),c.onClick!=null&&(a.onclick=Jr),a=!0):a=!1,a||Bi(r,!0)}function qp(r){for(fn=r.return;fn;)switch(fn.tag){case 5:case 31:case 13:cr=!1;return;case 27:case 3:cr=!0;return;default:fn=fn.return}}function gl(r){if(r!==fn)return!1;if(!ot)return qp(r),ot=!0,!1;var a=r.tag,o;if((o=a!==3&&a!==27)&&((o=a===5)&&(o=r.type,o=!(o!=="form"&&o!=="button")||Yh(r.type,r.memoizedProps)),o=!o),o&&Tt&&Bi(r),qp(r),a===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(i(317));Tt=ug(r)}else if(a===31){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(i(317));Tt=ug(r)}else a===27?(a=Tt,Zi(r.type)?(r=Zh,Zh=null,Tt=r):Tt=a):Tt=fn?hr(r.stateNode.nextSibling):null;return!0}function Ta(){Tt=fn=null,ot=!1}function zf(){var r=Ri;return r!==null&&(Hn===null?Hn=r:Hn.push.apply(Hn,r),Ri=null),r}function Mo(r){Ri===null?Ri=[r]:Ri.push(r)}var Cf=q(null),za=null,ni=null;function Li(r,a,o){_(Cf,a._currentValue),a._currentValue=o}function ri(r){r._currentValue=Cf.current,$(Cf)}function Mf(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 Nf(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 R=y;y=g;for(var K=0;K<a.length;K++)if(R.context===a[K]){y.lanes|=o,R=y.alternate,R!==null&&(R.lanes|=o),Mf(y.return,o,r),c||(k=null);break e}y=R.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),Mf(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 yl(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 R=g.type;Gn(g.pendingProps.value,k.value)||(r!==null?r.push(R):r=[R])}}else if(g===be.current){if(k=g.alternate,k===null)throw Error(i(387));k.memoizedState.memoizedState!==g.memoizedState.memoizedState&&(r!==null?r.push(ns):r=[ns])}g=g.return}r!==null&&Nf(a,r,o,c),a.flags|=262144}function Su(r){for(r=r.firstContext;r!==null;){if(!Gn(r.context._currentValue,r.memoizedValue))return!0;r=r.next}return!1}function Ca(r){za=r,ni=null,r=r.dependencies,r!==null&&(r.firstContext=null)}function hn(r){return jp(za,r)}function ku(r,a){return za===null&&Ca(r),jp(r,a)}function jp(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 R9=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()})}},B9=e.unstable_scheduleCallback,L9=e.unstable_NormalPriority,$t={$$typeof:z,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Df(){return{controller:new R9,data:new Map,refCount:0}}function No(r){r.refCount--,r.refCount===0&&B9(L9,function(){r.controller.abort()})}var Do=null,_f=0,vl=0,xl=null;function H9(r,a){if(Do===null){var o=Do=[];_f=0,vl=Bh(),xl={status:"pending",value:void 0,then:function(c){o.push(c)}}}return _f++,a.then(Ip,Ip),a}function Ip(){if(--_f===0&&Do!==null){xl!==null&&(xl.status="fulfilled");var r=Do;Do=null,vl=0,xl=null;for(var a=0;a<r.length;a++)(0,r[a])()}}function q9(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 Up=L.S;L.S=function(r,a){E2=kt(),typeof a=="object"&&a!==null&&typeof a.then=="function"&&H9(r,a),Up!==null&&Up(r,a)};var Ma=q(null);function Of(){var r=Ma.current;return r!==null?r:bt.pooledCache}function Eu(r,a){a===null?_(Ma,Ma.current):_(Ma,a.pool)}function Fp(){var r=Of();return r===null?null:{parent:$t._currentValue,pool:r}}var bl=Error(i(460)),Rf=Error(i(474)),Au=Error(i(542)),Tu={then:function(){}};function Vp(r){return r=r.status,r==="fulfilled"||r==="rejected"}function Yp(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,$p(r),r;default:if(typeof a.status=="string")a.then(Jr,Jr);else{if(r=bt,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,$p(r),r}throw Da=a,bl}}function Na(r){try{var a=r._init;return a(r._payload)}catch(o){throw o!==null&&typeof o=="object"&&typeof o.then=="function"?(Da=o,bl):o}}var Da=null;function Gp(){if(Da===null)throw Error(i(459));var r=Da;return Da=null,r}function $p(r){if(r===bl||r===Au)throw Error(i(483))}var wl=null,_o=0;function zu(r){var a=_o;return _o+=1,wl===null&&(wl=[]),Yp(wl,r,a)}function Oo(r,a){a=a.props.ref,r.ref=a!==void 0?a:null}function Cu(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 Xp(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 R(re,ee,ae,me){return ee===null||ee.tag!==6?(ee=Sf(ae,re.mode,me),ee.return=re,ee):(ee=g(ee,ae),ee.return=re,ee)}function K(re,ee,ae,me){var je=ae.type;return je===A?de(re,ee,ae.props.children,me,ae.key):ee!==null&&(ee.elementType===je||typeof je=="object"&&je!==null&&je.$$typeof===Q&&Na(je)===ee.type)?(ee=g(ee,ae.props),Oo(ee,ae),ee.return=re,ee):(ee=bu(ae.type,ae.key,ae.props,null,re.mode,me),Oo(ee,ae),ee.return=re,ee)}function oe(re,ee,ae,me){return ee===null||ee.tag!==4||ee.stateNode.containerInfo!==ae.containerInfo||ee.stateNode.implementation!==ae.implementation?(ee=kf(ae,re.mode,me),ee.return=re,ee):(ee=g(ee,ae.children||[]),ee.return=re,ee)}function de(re,ee,ae,me,je){return ee===null||ee.tag!==7?(ee=Aa(ae,re.mode,me,je),ee.return=re,ee):(ee=g(ee,ae),ee.return=re,ee)}function pe(re,ee,ae){if(typeof ee=="string"&&ee!==""||typeof ee=="number"||typeof ee=="bigint")return ee=Sf(""+ee,re.mode,ae),ee.return=re,ee;if(typeof ee=="object"&&ee!==null){switch(ee.$$typeof){case x:return ae=bu(ee.type,ee.key,ee.props,null,re.mode,ae),Oo(ae,ee),ae.return=re,ae;case w:return ee=kf(ee,re.mode,ae),ee.return=re,ee;case Q:return ee=Na(ee),pe(re,ee,ae)}if(F(ee)||W(ee))return ee=Aa(ee,re.mode,ae,null),ee.return=re,ee;if(typeof ee.then=="function")return pe(re,zu(ee),ae);if(ee.$$typeof===z)return pe(re,ku(re,ee),ae);Cu(re,ee)}return null}function se(re,ee,ae,me){var je=ee!==null?ee.key:null;if(typeof ae=="string"&&ae!==""||typeof ae=="number"||typeof ae=="bigint")return je!==null?null:R(re,ee,""+ae,me);if(typeof ae=="object"&&ae!==null){switch(ae.$$typeof){case x:return ae.key===je?K(re,ee,ae,me):null;case w:return ae.key===je?oe(re,ee,ae,me):null;case Q:return ae=Na(ae),se(re,ee,ae,me)}if(F(ae)||W(ae))return je!==null?null:de(re,ee,ae,me,null);if(typeof ae.then=="function")return se(re,ee,zu(ae),me);if(ae.$$typeof===z)return se(re,ee,ku(re,ae),me);Cu(re,ae)}return null}function ue(re,ee,ae,me,je){if(typeof me=="string"&&me!==""||typeof me=="number"||typeof me=="bigint")return re=re.get(ae)||null,R(ee,re,""+me,je);if(typeof me=="object"&&me!==null){switch(me.$$typeof){case x:return re=re.get(me.key===null?ae:me.key)||null,K(ee,re,me,je);case w:return re=re.get(me.key===null?ae:me.key)||null,oe(ee,re,me,je);case Q:return me=Na(me),ue(re,ee,ae,me,je)}if(F(me)||W(me))return re=re.get(ae)||null,de(ee,re,me,je,null);if(typeof me.then=="function")return ue(re,ee,ae,zu(me),je);if(me.$$typeof===z)return ue(re,ee,ae,ku(ee,me),je);Cu(ee,me)}return null}function Ne(re,ee,ae,me){for(var je=null,ut=null,De=ee,Ze=ee=0,lt=null;De!==null&&Ze<ae.length;Ze++){De.index>Ze?(lt=De,De=null):lt=De.sibling;var ct=se(re,De,ae[Ze],me);if(ct===null){De===null&&(De=lt);break}r&&De&&ct.alternate===null&&a(re,De),ee=y(ct,ee,Ze),ut===null?je=ct:ut.sibling=ct,ut=ct,De=lt}if(Ze===ae.length)return o(re,De),ot&&ti(re,Ze),je;if(De===null){for(;Ze<ae.length;Ze++)De=pe(re,ae[Ze],me),De!==null&&(ee=y(De,ee,Ze),ut===null?je=De:ut.sibling=De,ut=De);return ot&&ti(re,Ze),je}for(De=c(De);Ze<ae.length;Ze++)lt=ue(De,re,Ze,ae[Ze],me),lt!==null&&(r&<.alternate!==null&&De.delete(lt.key===null?Ze:lt.key),ee=y(lt,ee,Ze),ut===null?je=lt:ut.sibling=lt,ut=lt);return r&&De.forEach(function(ea){return a(re,ea)}),ot&&ti(re,Ze),je}function Fe(re,ee,ae,me){if(ae==null)throw Error(i(151));for(var je=null,ut=null,De=ee,Ze=ee=0,lt=null,ct=ae.next();De!==null&&!ct.done;Ze++,ct=ae.next()){De.index>Ze?(lt=De,De=null):lt=De.sibling;var ea=se(re,De,ct.value,me);if(ea===null){De===null&&(De=lt);break}r&&De&&ea.alternate===null&&a(re,De),ee=y(ea,ee,Ze),ut===null?je=ea:ut.sibling=ea,ut=ea,De=lt}if(ct.done)return o(re,De),ot&&ti(re,Ze),je;if(De===null){for(;!ct.done;Ze++,ct=ae.next())ct=pe(re,ct.value,me),ct!==null&&(ee=y(ct,ee,Ze),ut===null?je=ct:ut.sibling=ct,ut=ct);return ot&&ti(re,Ze),je}for(De=c(De);!ct.done;Ze++,ct=ae.next())ct=ue(De,re,Ze,ct.value,me),ct!==null&&(r&&ct.alternate!==null&&De.delete(ct.key===null?Ze:ct.key),ee=y(ct,ee,Ze),ut===null?je=ct:ut.sibling=ct,ut=ct);return r&&De.forEach(function(Zx){return a(re,Zx)}),ot&&ti(re,Ze),je}function xt(re,ee,ae,me){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 je=ae.key;ee!==null;){if(ee.key===je){if(je=ae.type,je===A){if(ee.tag===7){o(re,ee.sibling),me=g(ee,ae.props.children),me.return=re,re=me;break e}}else if(ee.elementType===je||typeof je=="object"&&je!==null&&je.$$typeof===Q&&Na(je)===ee.type){o(re,ee.sibling),me=g(ee,ae.props),Oo(me,ae),me.return=re,re=me;break e}o(re,ee);break}else a(re,ee);ee=ee.sibling}ae.type===A?(me=Aa(ae.props.children,re.mode,me,ae.key),me.return=re,re=me):(me=bu(ae.type,ae.key,ae.props,null,re.mode,me),Oo(me,ae),me.return=re,re=me)}return k(re);case w:e:{for(je=ae.key;ee!==null;){if(ee.key===je)if(ee.tag===4&&ee.stateNode.containerInfo===ae.containerInfo&&ee.stateNode.implementation===ae.implementation){o(re,ee.sibling),me=g(ee,ae.children||[]),me.return=re,re=me;break e}else{o(re,ee);break}else a(re,ee);ee=ee.sibling}me=kf(ae,re.mode,me),me.return=re,re=me}return k(re);case Q:return ae=Na(ae),xt(re,ee,ae,me)}if(F(ae))return Ne(re,ee,ae,me);if(W(ae)){if(je=W(ae),typeof je!="function")throw Error(i(150));return ae=je.call(ae),Fe(re,ee,ae,me)}if(typeof ae.then=="function")return xt(re,ee,zu(ae),me);if(ae.$$typeof===z)return xt(re,ee,ku(re,ae),me);Cu(re,ae)}return typeof ae=="string"&&ae!==""||typeof ae=="number"||typeof ae=="bigint"?(ae=""+ae,ee!==null&&ee.tag===6?(o(re,ee.sibling),me=g(ee,ae),me.return=re,re=me):(o(re,ee),me=Sf(ae,re.mode,me),me.return=re,re=me),k(re)):o(re,ee)}return function(re,ee,ae,me){try{_o=0;var je=xt(re,ee,ae,me);return wl=null,je}catch(De){if(De===bl||De===Au)throw De;var ut=$n(29,De,null,re.mode);return ut.lanes=me,ut.return=re,ut}}}var _a=Xp(!0),Pp=Xp(!1),Hi=!1;function Bf(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Lf(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 ji(r,a,o){var c=r.updateQueue;if(c===null)return null;if(c=c.shared,(ft&2)!==0){var g=c.pending;return g===null?a.next=a:(a.next=g.next,g.next=a),c.pending=a,a=xu(r),Dp(r,null,o),a}return vu(r,c,a,o),xu(r)}function Ro(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,tl(r,o)}}function Hf(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 Bo(){if(qf){var r=xl;if(r!==null)throw r}}function Lo(r,a,o,c){qf=!1;var g=r.updateQueue;Hi=!1;var y=g.firstBaseUpdate,k=g.lastBaseUpdate,R=g.shared.pending;if(R!==null){g.shared.pending=null;var K=R,oe=K.next;K.next=null,k===null?y=oe:k.next=oe,k=K;var de=r.alternate;de!==null&&(de=de.updateQueue,R=de.lastBaseUpdate,R!==k&&(R===null?de.firstBaseUpdate=oe:R.next=oe,de.lastBaseUpdate=K))}if(y!==null){var pe=g.baseState;k=0,de=oe=K=null,R=y;do{var se=R.lane&-536870913,ue=se!==R.lane;if(ue?(at&se)===se:(c&se)===se){se!==0&&se===vl&&(qf=!0),de!==null&&(de=de.next={lane:0,tag:R.tag,payload:R.payload,callback:null,next:null});e:{var Ne=r,Fe=R;se=a;var xt=o;switch(Fe.tag){case 1:if(Ne=Fe.payload,typeof Ne=="function"){pe=Ne.call(xt,pe,se);break e}pe=Ne;break e;case 3:Ne.flags=Ne.flags&-65537|128;case 0:if(Ne=Fe.payload,se=typeof Ne=="function"?Ne.call(xt,pe,se):Ne,se==null)break e;pe=m({},pe,se);break e;case 2:Hi=!0}}se=R.callback,se!==null&&(r.flags|=64,ue&&(r.flags|=8192),ue=g.callbacks,ue===null?g.callbacks=[se]:ue.push(se))}else ue={lane:se,tag:R.tag,payload:R.payload,callback:R.callback,next:null},de===null?(oe=de=ue,K=pe):de=de.next=ue,k|=se;if(R=R.next,R===null){if(R=g.shared.pending,R===null)break;ue=R,R=ue.next,ue.next=null,g.lastBaseUpdate=ue,g.shared.pending=null}}while(!0);de===null&&(K=pe),g.baseState=K,g.firstBaseUpdate=oe,g.lastBaseUpdate=de,y===null&&(g.shared.lanes=0),Yi|=k,r.lanes=k,r.memoizedState=pe}}function Zp(r,a){if(typeof r!="function")throw Error(i(191,r));r.call(a)}function Qp(r,a){var o=r.callbacks;if(o!==null)for(r.callbacks=null,r=0;r<o.length;r++)Zp(o[r],a)}var Sl=q(null),Mu=q(0);function Kp(r,a){r=hi,_(Mu,r),_(Sl,a),hi=r|a.baseLanes}function jf(){_(Mu,hi),_(Sl,Sl.current)}function If(){hi=Mu.current,$(Sl),$(Mu)}var Xn=q(null),fr=null;function Ii(r){var a=r.alternate;_(Vt,Vt.current&1),_(Xn,r),fr===null&&(a===null||Sl.current!==null||a.memoizedState!==null)&&(fr=r)}function Uf(r){_(Vt,Vt.current),_(Xn,r),fr===null&&(fr=r)}function Jp(r){r.tag===22?(_(Vt,Vt.current),_(Xn,r),fr===null&&(fr=r)):Ui()}function Ui(){_(Vt,Vt.current),_(Xn,Xn.current)}function Pn(r){$(Xn),fr===r&&(fr=null),$(Vt)}var Vt=q(0);function Nu(r){for(var a=r;a!==null;){if(a.tag===13){var o=a.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||Xh(o)||Ph(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,Pe=null,yt=null,Xt=null,Du=!1,kl=!1,Oa=!1,_u=0,Ho=0,El=null,j9=0;function qt(){throw Error(i(321))}function Ff(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 Vf(r,a,o,c,g,y){return ii=y,Pe=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,L.H=r===null||r.memoizedState===null?B4:ih,Oa=!1,y=o(c,g),Oa=!1,kl&&(y=e4(a,o,c,g)),Wp(r),y}function Wp(r){L.H=Io;var a=yt!==null&&yt.next!==null;if(ii=0,Xt=yt=Pe=null,Du=!1,Ho=0,El=null,a)throw Error(i(300));r===null||Pt||(r=r.dependencies,r!==null&&Su(r)&&(Pt=!0))}function e4(r,a,o,c){Pe=r;var g=0;do{if(kl&&(El=null),Ho=0,kl=!1,25<=g)throw Error(i(301));if(g+=1,Xt=yt=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=L4,y=a(o,c)}while(kl);return y}function I9(){var r=L.H,a=r.useState()[0];return a=typeof a.then=="function"?qo(a):a,r=r.useState()[0],(yt!==null?yt.memoizedState:null)!==r&&(Pe.flags|=1024),a}function Yf(){var r=_u!==0;return _u=0,r}function Gf(r,a,o){a.updateQueue=r.updateQueue,a.flags&=-2053,r.lanes&=~o}function $f(r){if(Du){for(r=r.memoizedState;r!==null;){var a=r.queue;a!==null&&(a.pending=null),r=r.next}Du=!1}ii=0,Xt=yt=Pe=null,kl=!1,Ho=_u=0,El=null}function kn(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Xt===null?Pe.memoizedState=Xt=r:Xt=Xt.next=r,Xt}function Yt(){if(yt===null){var r=Pe.alternate;r=r!==null?r.memoizedState:null}else r=yt.next;var a=Xt===null?Pe.memoizedState:Xt.next;if(a!==null)Xt=a,yt=r;else{if(r===null)throw Pe.alternate===null?Error(i(467)):Error(i(310));yt=r,r={memoizedState:yt.memoizedState,baseState:yt.baseState,baseQueue:yt.baseQueue,queue:yt.queue,next:null},Xt===null?Pe.memoizedState=Xt=r:Xt=Xt.next=r}return Xt}function Ou(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function qo(r){var a=Ho;return Ho+=1,El===null&&(El=[]),r=Yp(El,r,a),a=Pe,(Xt===null?a.memoizedState:Xt.next)===null&&(a=a.alternate,L.H=a===null||a.memoizedState===null?B4:ih),r}function Ru(r){if(r!==null&&typeof r=="object"){if(typeof r.then=="function")return qo(r);if(r.$$typeof===z)return hn(r)}throw Error(i(438,String(r)))}function Xf(r){var a=null,o=Pe.updateQueue;if(o!==null&&(a=o.memoCache),a==null){var c=Pe.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=Ou(),Pe.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 Bu(r){var a=Yt();return Pf(a,yt,r)}function Pf(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 R=k=null,K=null,oe=a,de=!1;do{var pe=oe.lane&-536870913;if(pe!==oe.lane?(at&pe)===pe:(ii&pe)===pe){var se=oe.revertLane;if(se===0)K!==null&&(K=K.next={lane:0,revertLane:0,gesture:null,action:oe.action,hasEagerState:oe.hasEagerState,eagerState:oe.eagerState,next:null}),pe===vl&&(de=!0);else if((ii&se)===se){oe=oe.next,se===vl&&(de=!0);continue}else pe={lane:0,revertLane:oe.revertLane,gesture:null,action:oe.action,hasEagerState:oe.hasEagerState,eagerState:oe.eagerState,next:null},K===null?(R=K=pe,k=y):K=K.next=pe,Pe.lanes|=se,Yi|=se;pe=oe.action,Oa&&o(y,pe),y=oe.hasEagerState?oe.eagerState:o(y,pe)}else se={lane:pe,revertLane:oe.revertLane,gesture:oe.gesture,action:oe.action,hasEagerState:oe.hasEagerState,eagerState:oe.eagerState,next:null},K===null?(R=K=se,k=y):K=K.next=se,Pe.lanes|=pe,Yi|=pe;oe=oe.next}while(oe!==null&&oe!==a);if(K===null?k=y:K.next=R,!Gn(y,r.memoizedState)&&(Pt=!0,de&&(o=xl,o!==null)))throw o;r.memoizedState=y,r.baseState=k,r.baseQueue=K,c.lastRenderedState=y}return g===null&&(c.lanes=0),[r.memoizedState,c.dispatch]}function Zf(r){var a=Yt(),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)||(Pt=!0),a.memoizedState=y,a.baseQueue===null&&(a.baseState=y),o.lastRenderedState=y}return[y,c]}function t4(r,a,o){var c=Pe,g=Yt(),y=ot;if(y){if(o===void 0)throw Error(i(407));o=o()}else o=a();var k=!Gn((yt||g).memoizedState,o);if(k&&(g.memoizedState=o,Pt=!0),g=g.queue,Jf(i4.bind(null,c,g,r),[r]),g.getSnapshot!==a||k||Xt!==null&&Xt.memoizedState.tag&1){if(c.flags|=2048,Al(9,{destroy:void 0},r4.bind(null,c,g,o,a),null),bt===null)throw Error(i(349));y||(ii&127)!==0||n4(c,a,o)}return o}function n4(r,a,o){r.flags|=16384,r={getSnapshot:a,value:o},a=Pe.updateQueue,a===null?(a=Ou(),Pe.updateQueue=a,a.stores=[r]):(o=a.stores,o===null?a.stores=[r]:o.push(r))}function r4(r,a,o,c){a.value=o,a.getSnapshot=c,a4(a)&&l4(r)}function i4(r,a,o){return o(function(){a4(a)&&l4(r)})}function a4(r){var a=r.getSnapshot;r=r.value;try{var o=a();return!Gn(r,o)}catch{return!0}}function l4(r){var a=Ea(r,2);a!==null&&qn(a,r,2)}function Qf(r){var a=kn();if(typeof r=="function"){var o=r;if(r=o(),Oa){he(!0);try{o()}finally{he(!1)}}}return a.memoizedState=a.baseState=r,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ai,lastRenderedState:r},a}function o4(r,a,o,c){return r.baseState=o,Pf(r,yt,typeof c=="function"?c:ai)}function U9(r,a,o,c,g){if(qu(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,s4(a,y)):(y.next=o.next,a.pending=o.next=y)}}function s4(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 R=o(g,c),K=L.S;K!==null&&K(k,R),u4(r,a,R)}catch(oe){Kf(r,a,oe)}finally{y!==null&&k.types!==null&&(y.types=k.types),L.T=y}}else try{y=o(g,c),u4(r,a,y)}catch(oe){Kf(r,a,oe)}}function u4(r,a,o){o!==null&&typeof o=="object"&&typeof o.then=="function"?o.then(function(c){c4(r,a,c)},function(c){return Kf(r,a,c)}):c4(r,a,o)}function c4(r,a,o){a.status="fulfilled",a.value=o,f4(a),r.state=o,a=r.pending,a!==null&&(o=a.next,o===a?r.pending=null:(o=o.next,a.next=o,s4(r,o)))}function Kf(r,a,o){var c=r.pending;if(r.pending=null,c!==null){c=c.next;do a.status="rejected",a.reason=o,f4(a),a=a.next;while(a!==c)}r.action=null}function f4(r){r=r.listeners;for(var a=0;a<r.length;a++)(0,r[a])()}function h4(r,a){return a}function d4(r,a){if(ot){var o=bt.formState;if(o!==null){e:{var c=Pe;if(ot){if(Tt){t:{for(var g=Tt,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){Tt=hr(g.nextSibling),c=g.data==="F!";break e}}Bi(c)}c=!1}c&&(a=o[0])}}return o=kn(),o.memoizedState=o.baseState=a,c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:h4,lastRenderedState:a},o.queue=c,o=_4.bind(null,Pe,c),c.dispatch=o,c=Qf(!1),y=rh.bind(null,Pe,!1,c.queue),c=kn(),g={state:a,dispatch:null,action:r,pending:null},c.queue=g,o=U9.bind(null,Pe,g,y,o),g.dispatch=o,c.memoizedState=r,[a,o,!1]}function m4(r){var a=Yt();return p4(a,yt,r)}function p4(r,a,o){if(a=Pf(r,a,h4)[0],r=Bu(ai)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var c=qo(a)}catch(k){throw k===bl?Au:k}else c=a;a=Yt();var g=a.queue,y=g.dispatch;return o!==a.memoizedState&&(Pe.flags|=2048,Al(9,{destroy:void 0},F9.bind(null,g,o),null)),[c,y,r]}function F9(r,a){r.action=a}function g4(r){var a=Yt(),o=yt;if(o!==null)return p4(a,o,r);Yt(),a=a.memoizedState,o=Yt();var c=o.queue.dispatch;return o.memoizedState=r,[a,c,!1]}function Al(r,a,o,c){return r={tag:r,create:o,deps:c,inst:a,next:null},a=Pe.updateQueue,a===null&&(a=Ou(),Pe.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 y4(){return Yt().memoizedState}function Lu(r,a,o,c){var g=kn();Pe.flags|=r,g.memoizedState=Al(1|a,{destroy:void 0},o,c===void 0?null:c)}function Hu(r,a,o,c){var g=Yt();c=c===void 0?null:c;var y=g.memoizedState.inst;yt!==null&&c!==null&&Ff(c,yt.memoizedState.deps)?g.memoizedState=Al(a,y,o,c):(Pe.flags|=r,g.memoizedState=Al(1|a,y,o,c))}function v4(r,a){Lu(8390656,8,r,a)}function Jf(r,a){Hu(2048,8,r,a)}function V9(r){Pe.flags|=4;var a=Pe.updateQueue;if(a===null)a=Ou(),Pe.updateQueue=a,a.events=[r];else{var o=a.events;o===null?a.events=[r]:o.push(r)}}function x4(r){var a=Yt().memoizedState;return V9({ref:a,nextImpl:r}),function(){if((ft&2)!==0)throw Error(i(440));return a.impl.apply(void 0,arguments)}}function b4(r,a){return Hu(4,2,r,a)}function w4(r,a){return Hu(4,4,r,a)}function S4(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 k4(r,a,o){o=o!=null?o.concat([r]):null,Hu(4,4,S4.bind(null,a,r),o)}function Wf(){}function E4(r,a){var o=Yt();a=a===void 0?null:a;var c=o.memoizedState;return a!==null&&Ff(a,c[1])?c[0]:(o.memoizedState=[r,a],r)}function A4(r,a){var o=Yt();a=a===void 0?null:a;var c=o.memoizedState;if(a!==null&&Ff(a,c[1]))return c[0];if(c=r(),Oa){he(!0);try{r()}finally{he(!1)}}return o.memoizedState=[c,a],c}function eh(r,a,o){return o===void 0||(ii&1073741824)!==0&&(at&261930)===0?r.memoizedState=a:(r.memoizedState=o,r=T2(),Pe.lanes|=r,Yi|=r,o)}function T4(r,a,o,c){return Gn(o,a)?o:Sl.current!==null?(r=eh(r,o,c),Gn(r,a)||(Pt=!0),r):(ii&42)===0||(ii&1073741824)!==0&&(at&261930)===0?(Pt=!0,r.memoizedState=o):(r=T2(),Pe.lanes|=r,Yi|=r,a)}function z4(r,a,o,c,g){var y=Y.p;Y.p=y!==0&&8>y?y:8;var k=L.T,R={};L.T=R,rh(r,!1,a,o);try{var K=g(),oe=L.S;if(oe!==null&&oe(R,K),K!==null&&typeof K=="object"&&typeof K.then=="function"){var de=q9(K,c);jo(r,a,de,Kn(r))}else jo(r,a,c,Kn(r))}catch(pe){jo(r,a,{then:function(){},status:"rejected",reason:pe},Kn())}finally{Y.p=y,k!==null&&R.types!==null&&(k.types=R.types),L.T=k}}function Y9(){}function th(r,a,o,c){if(r.tag!==5)throw Error(i(476));var g=C4(r).queue;z4(r,g,a,J,o===null?Y9:function(){return M4(r),o(c)})}function C4(r){var a=r.memoizedState;if(a!==null)return a;a={memoizedState:J,baseState:J,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ai,lastRenderedState:J},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 M4(r){var a=C4(r);a.next===null&&(a=r.alternate.memoizedState),jo(r,a.next.queue,{},Kn())}function nh(){return hn(ns)}function N4(){return Yt().memoizedState}function D4(){return Yt().memoizedState}function G9(r){for(var a=r.return;a!==null;){switch(a.tag){case 24:case 3:var o=Kn();r=qi(o);var c=ji(a,r,o);c!==null&&(qn(c,a,o),Ro(c,a,o)),a={cache:Df()},r.payload=a;return}a=a.return}}function $9(r,a,o){var c=Kn();o={lane:c,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},qu(r)?O4(a,o):(o=bf(r,a,o,c),o!==null&&(qn(o,r,c),R4(o,a,c)))}function _4(r,a,o){var c=Kn();jo(r,a,o,c)}function jo(r,a,o,c){var g={lane:c,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null};if(qu(r))O4(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,R=y(k,o);if(g.hasEagerState=!0,g.eagerState=R,Gn(R,k))return vu(r,a,g,0),bt===null&&yu(),!1}catch{}if(o=bf(r,a,g,c),o!==null)return qn(o,r,c),R4(o,a,c),!0}return!1}function rh(r,a,o,c){if(c={lane:2,revertLane:Bh(),gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null},qu(r)){if(a)throw Error(i(479))}else a=bf(r,o,c,2),a!==null&&qn(a,r,2)}function qu(r){var a=r.alternate;return r===Pe||a!==null&&a===Pe}function O4(r,a){kl=Du=!0;var o=r.pending;o===null?a.next=a:(a.next=o.next,o.next=a),r.pending=a}function R4(r,a,o){if((o&4194048)!==0){var c=a.lanes;c&=r.pendingLanes,o|=c,a.lanes=o,tl(r,o)}}var Io={readContext:hn,use:Ru,useCallback:qt,useContext:qt,useEffect:qt,useImperativeHandle:qt,useLayoutEffect:qt,useInsertionEffect:qt,useMemo:qt,useReducer:qt,useRef:qt,useState:qt,useDebugValue:qt,useDeferredValue:qt,useTransition:qt,useSyncExternalStore:qt,useId:qt,useHostTransitionStatus:qt,useFormState:qt,useActionState:qt,useOptimistic:qt,useMemoCache:qt,useCacheRefresh:qt};Io.useEffectEvent=qt;var B4={readContext:hn,use:Ru,useCallback:function(r,a){return kn().memoizedState=[r,a===void 0?null:a],r},useContext:hn,useEffect:v4,useImperativeHandle:function(r,a,o){o=o!=null?o.concat([r]):null,Lu(4194308,4,S4.bind(null,a,r),o)},useLayoutEffect:function(r,a){return Lu(4194308,4,r,a)},useInsertionEffect:function(r,a){Lu(4,2,r,a)},useMemo:function(r,a){var o=kn();a=a===void 0?null:a;var c=r();if(Oa){he(!0);try{r()}finally{he(!1)}}return o.memoizedState=[c,a],c},useReducer:function(r,a,o){var c=kn();if(o!==void 0){var g=o(a);if(Oa){he(!0);try{o(a)}finally{he(!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=$9.bind(null,Pe,r),[c.memoizedState,r]},useRef:function(r){var a=kn();return r={current:r},a.memoizedState=r},useState:function(r){r=Qf(r);var a=r.queue,o=_4.bind(null,Pe,a);return a.dispatch=o,[r.memoizedState,o]},useDebugValue:Wf,useDeferredValue:function(r,a){var o=kn();return eh(o,r,a)},useTransition:function(){var r=Qf(!1);return r=z4.bind(null,Pe,r.queue,!0,!1),kn().memoizedState=r,[!1,r]},useSyncExternalStore:function(r,a,o){var c=Pe,g=kn();if(ot){if(o===void 0)throw Error(i(407));o=o()}else{if(o=a(),bt===null)throw Error(i(349));(at&127)!==0||n4(c,a,o)}g.memoizedState=o;var y={value:o,getSnapshot:a};return g.queue=y,v4(i4.bind(null,c,y,r),[r]),c.flags|=2048,Al(9,{destroy:void 0},r4.bind(null,c,y,o,a),null),o},useId:function(){var r=kn(),a=bt.identifierPrefix;if(ot){var o=Rr,c=Or;o=(c&~(1<<32-_e(c)-1)).toString(32)+o,a="_"+a+"R_"+o,o=_u++,0<o&&(a+="H"+o.toString(32)),a+="_"}else o=j9++,a="_"+a+"r_"+o.toString(32)+"_";return r.memoizedState=a},useHostTransitionStatus:nh,useFormState:d4,useActionState:d4,useOptimistic:function(r){var a=kn();a.memoizedState=a.baseState=r;var o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=o,a=rh.bind(null,Pe,!0,o),o.dispatch=a,[r,a]},useMemoCache:Xf,useCacheRefresh:function(){return kn().memoizedState=G9.bind(null,Pe)},useEffectEvent:function(r){var a=kn(),o={impl:r};return a.memoizedState=o,function(){if((ft&2)!==0)throw Error(i(440));return o.impl.apply(void 0,arguments)}}},ih={readContext:hn,use:Ru,useCallback:E4,useContext:hn,useEffect:Jf,useImperativeHandle:k4,useInsertionEffect:b4,useLayoutEffect:w4,useMemo:A4,useReducer:Bu,useRef:y4,useState:function(){return Bu(ai)},useDebugValue:Wf,useDeferredValue:function(r,a){var o=Yt();return T4(o,yt.memoizedState,r,a)},useTransition:function(){var r=Bu(ai)[0],a=Yt().memoizedState;return[typeof r=="boolean"?r:qo(r),a]},useSyncExternalStore:t4,useId:N4,useHostTransitionStatus:nh,useFormState:m4,useActionState:m4,useOptimistic:function(r,a){var o=Yt();return o4(o,yt,r,a)},useMemoCache:Xf,useCacheRefresh:D4};ih.useEffectEvent=x4;var L4={readContext:hn,use:Ru,useCallback:E4,useContext:hn,useEffect:Jf,useImperativeHandle:k4,useInsertionEffect:b4,useLayoutEffect:w4,useMemo:A4,useReducer:Zf,useRef:y4,useState:function(){return Zf(ai)},useDebugValue:Wf,useDeferredValue:function(r,a){var o=Yt();return yt===null?eh(o,r,a):T4(o,yt.memoizedState,r,a)},useTransition:function(){var r=Zf(ai)[0],a=Yt().memoizedState;return[typeof r=="boolean"?r:qo(r),a]},useSyncExternalStore:t4,useId:N4,useHostTransitionStatus:nh,useFormState:g4,useActionState:g4,useOptimistic:function(r,a){var o=Yt();return yt!==null?o4(o,yt,r,a):(o.baseState=r,[r,o.queue.dispatch])},useMemoCache:Xf,useCacheRefresh:D4};L4.useEffectEvent=x4;function ah(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 lh={enqueueSetState:function(r,a,o){r=r._reactInternals;var c=Kn(),g=qi(c);g.payload=a,o!=null&&(g.callback=o),a=ji(r,g,c),a!==null&&(qn(a,r,c),Ro(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=ji(r,g,c),a!==null&&(qn(a,r,c),Ro(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=ji(r,c,o),a!==null&&(qn(a,r,o),Ro(a,r,o))}};function H4(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?!To(o,c)||!To(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&&lh.enqueueReplaceState(a,a.state,null)}function Ra(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 j4(r){gu(r)}function I4(r){console.error(r)}function U4(r){gu(r)}function ju(r,a){try{var o=r.onUncaughtError;o(a.value,{componentStack:a.stack})}catch(c){setTimeout(function(){throw c})}}function F4(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 oh(r,a,o){return o=qi(o),o.tag=3,o.payload={element:null},o.callback=function(){ju(r,a)},o}function V4(r){return r=qi(r),r.tag=3,r}function Y4(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(){F4(a,o,c)}}var k=o.stateNode;k!==null&&typeof k.componentDidCatch=="function"&&(r.callback=function(){F4(a,o,c),typeof g!="function"&&(Gi===null?Gi=new Set([this]):Gi.add(this));var R=c.stack;this.componentDidCatch(c.value,{componentStack:R!==null?R:""})})}function X9(r,a,o,c,g){if(o.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){if(a=o.alternate,a!==null&&yl(a,o,g,!0),o=Xn.current,o!==null){switch(o.tag){case 31:case 13:return fr===null?Ku():o.alternate===null&&jt===0&&(jt=3),o.flags&=-257,o.flags|=65536,o.lanes=g,c===Tu?o.flags|=16384:(a=o.updateQueue,a===null?o.updateQueue=new Set([c]):a.add(c),_h(r,c,g)),!1;case 22:return o.flags|=65536,c===Tu?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)),_h(r,c,g)),!1}throw Error(i(435,o.tag))}return _h(r,c,g),Ku(),!1}if(ot)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}),Mo(or(r,o)))):(c!==Tf&&(a=Error(i(423),{cause:c}),Mo(or(a,o))),r=r.current.alternate,r.flags|=65536,g&=-g,r.lanes|=g,c=or(c,o),g=oh(r.stateNode,c,g),Hf(r,g),jt!==4&&(jt=2)),!1;var y=Error(i(520),{cause:c});if(y=or(y,o),Po===null?Po=[y]:Po.push(y),jt!==4&&(jt=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=oh(o.stateNode,c,r),Hf(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"&&(Gi===null||!Gi.has(y))))return o.flags|=65536,g&=-g,o.lanes|=g,g=V4(g),Y4(g,r,o,c),Hf(o,g),!1}o=o.return}while(o!==null);return!1}var sh=Error(i(461)),Pt=!1;function dn(r,a,o,c){a.child=r===null?Pp(a,null,o,c):_a(a,r.child,o,c)}function G4(r,a,o,c,g){o=o.render;var y=a.ref;if("ref"in c){var k={};for(var R in c)R!=="ref"&&(k[R]=c[R])}else k=c;return Ca(a),c=Vf(r,a,o,k,y,g),R=Yf(),r!==null&&!Pt?(Gf(r,a,g),li(r,a,g)):(ot&&R&&Ef(a),a.flags|=1,dn(r,a,c,g),a.child)}function $4(r,a,o,c,g){if(r===null){var y=o.type;return typeof y=="function"&&!wf(y)&&y.defaultProps===void 0&&o.compare===null?(a.tag=15,a.type=y,X4(r,a,y,c,g)):(r=bu(o.type,null,c,a,a.mode,g),r.ref=a.ref,r.return=a,a.child=r)}if(y=r.child,!gh(r,g)){var k=y.memoizedProps;if(o=o.compare,o=o!==null?o:To,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 X4(r,a,o,c,g){if(r!==null){var y=r.memoizedProps;if(To(y,c)&&r.ref===a.ref)if(Pt=!1,a.pendingProps=c=y,gh(r,g))(r.flags&131072)!==0&&(Pt=!0);else return a.lanes=r.lanes,li(r,a,g)}return uh(r,a,o,c,g)}function P4(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 Z4(r,a,y,o,c)}if((o&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},r!==null&&Eu(a,y!==null?y.cachePool:null),y!==null?Kp(a,y):jf(),Jp(a);else return c=a.lanes=536870912,Z4(r,a,y!==null?y.baseLanes|o:o,o,c)}else y!==null?(Eu(a,y.cachePool),Kp(a,y),Ui(),a.memoizedState=null):(r!==null&&Eu(a,null),jf(),Ui());return dn(r,a,g,o),a.child}function Uo(r,a){return r!==null&&r.tag===22||a.stateNode!==null||(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.sibling}function Z4(r,a,o,c,g){var y=Of();return y=y===null?null:{parent:$t._currentValue,pool:y},a.memoizedState={baseLanes:o,cachePool:y},r!==null&&Eu(a,null),jf(),Jp(a),r!==null&&yl(r,a,c,!0),a.childLanes=g,null}function Iu(r,a){return a=Fu({mode:a.mode,children:a.children},r.mode),a.ref=r.ref,r.child=a,a.return=r,a}function Q4(r,a,o){return _a(a,r.child,null,o),r=Iu(a,a.pendingProps),r.flags|=2,Pn(a),a.memoizedState=null,r}function P9(r,a,o){var c=a.pendingProps,g=(a.flags&128)!==0;if(a.flags&=-129,r===null){if(ot){if(c.mode==="hidden")return r=Iu(a,c),a.lanes=536870912,Uo(null,r);if(Uf(a),(r=Tt)?(r=sg(r,cr),r=r!==null&&r.data==="&"?r:null,r!==null&&(a.memoizedState={dehydrated:r,treeContext:Oi!==null?{id:Or,overflow:Rr}:null,retryLane:536870912,hydrationErrors:null},o=Op(r),o.return=a,a.child=o,fn=a,Tt=null)):r=null,r===null)throw Bi(a);return a.lanes=536870912,null}return Iu(a,c)}var y=r.memoizedState;if(y!==null){var k=y.dehydrated;if(Uf(a),g)if(a.flags&256)a.flags&=-257,a=Q4(r,a,o);else if(a.memoizedState!==null)a.child=r.child,a.flags|=128,a=null;else throw Error(i(558));else if(Pt||yl(r,a,o,!1),g=(o&r.childLanes)!==0,Pt||g){if(c=bt,c!==null&&(k=Js(c,o),k!==0&&k!==y.retryLane))throw y.retryLane=k,Ea(r,k),qn(c,r,k),sh;Ku(),a=Q4(r,a,o)}else r=y.treeContext,Tt=hr(k.nextSibling),fn=a,ot=!0,Ri=null,cr=!1,r!==null&&Lp(a,r),a=Iu(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 Uu(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 uh(r,a,o,c,g){return Ca(a),o=Vf(r,a,o,c,void 0,g),c=Yf(),r!==null&&!Pt?(Gf(r,a,g),li(r,a,g)):(ot&&c&&Ef(a),a.flags|=1,dn(r,a,o,g),a.child)}function K4(r,a,o,c,g,y){return Ca(a),a.updateQueue=null,o=e4(a,c,o,g),Wp(r),c=Yf(),r!==null&&!Pt?(Gf(r,a,y),li(r,a,y)):(ot&&c&&Ef(a),a.flags|=1,dn(r,a,o,y),a.child)}function J4(r,a,o,c,g){if(Ca(a),a.stateNode===null){var y=dl,k=o.contextType;typeof k=="object"&&k!==null&&(y=hn(k)),y=new o(c,y),a.memoizedState=y.state!==null&&y.state!==void 0?y.state:null,y.updater=lh,a.stateNode=y,y._reactInternals=a,y=a.stateNode,y.props=c,y.state=a.memoizedState,y.refs={},Bf(a),k=o.contextType,y.context=typeof k=="object"&&k!==null?hn(k):dl,y.state=a.memoizedState,k=o.getDerivedStateFromProps,typeof k=="function"&&(ah(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&&lh.enqueueReplaceState(y,y.state,null),Lo(a,c,y,g),Bo(),y.state=a.memoizedState),typeof y.componentDidMount=="function"&&(a.flags|=4194308),c=!0}else if(r===null){y=a.stateNode;var R=a.memoizedProps,K=Ra(o,R);y.props=K;var oe=y.context,de=o.contextType;k=dl,typeof de=="object"&&de!==null&&(k=hn(de));var pe=o.getDerivedStateFromProps;de=typeof pe=="function"||typeof y.getSnapshotBeforeUpdate=="function",R=a.pendingProps!==R,de||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(R||oe!==k)&&q4(a,y,c,k),Hi=!1;var se=a.memoizedState;y.state=se,Lo(a,c,y,g),Bo(),oe=a.memoizedState,R||se!==oe||Hi?(typeof pe=="function"&&(ah(a,o,pe,c),oe=a.memoizedState),(K=Hi||H4(a,o,K,c,se,oe,k))?(de||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=oe),y.props=c,y.state=oe,y.context=k,c=K):(typeof y.componentDidMount=="function"&&(a.flags|=4194308),c=!1)}else{y=a.stateNode,Lf(r,a),k=a.memoizedProps,de=Ra(o,k),y.props=de,pe=a.pendingProps,se=y.context,oe=o.contextType,K=dl,typeof oe=="object"&&oe!==null&&(K=hn(oe)),R=o.getDerivedStateFromProps,(oe=typeof R=="function"||typeof y.getSnapshotBeforeUpdate=="function")||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(k!==pe||se!==K)&&q4(a,y,c,K),Hi=!1,se=a.memoizedState,y.state=se,Lo(a,c,y,g),Bo();var ue=a.memoizedState;k!==pe||se!==ue||Hi||r!==null&&r.dependencies!==null&&Su(r.dependencies)?(typeof R=="function"&&(ah(a,o,R,c),ue=a.memoizedState),(de=Hi||H4(a,o,de,c,se,ue,K)||r!==null&&r.dependencies!==null&&Su(r.dependencies))?(oe||typeof y.UNSAFE_componentWillUpdate!="function"&&typeof y.componentWillUpdate!="function"||(typeof y.componentWillUpdate=="function"&&y.componentWillUpdate(c,ue,K),typeof y.UNSAFE_componentWillUpdate=="function"&&y.UNSAFE_componentWillUpdate(c,ue,K)),typeof y.componentDidUpdate=="function"&&(a.flags|=4),typeof y.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof y.componentDidUpdate!="function"||k===r.memoizedProps&&se===r.memoizedState||(a.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||k===r.memoizedProps&&se===r.memoizedState||(a.flags|=1024),a.memoizedProps=c,a.memoizedState=ue),y.props=c,y.state=ue,y.context=K,c=de):(typeof y.componentDidUpdate!="function"||k===r.memoizedProps&&se===r.memoizedState||(a.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||k===r.memoizedProps&&se===r.memoizedState||(a.flags|=1024),c=!1)}return y=c,Uu(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=_a(a,r.child,null,g),a.child=_a(a,null,o,g)):dn(r,a,o,g),a.memoizedState=y.state,r=a.child):r=li(r,a,g),r}function W4(r,a,o,c){return Ta(),a.flags|=256,dn(r,a,o,c),a.child}var ch={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function fh(r){return{baseLanes:r,cachePool:Fp()}}function hh(r,a,o){return r=r!==null?r.childLanes&~o:0,a&&(r|=Qn),r}function e2(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:(Vt.current&2)!==0),k&&(g=!0,a.flags&=-129),k=(a.flags&32)!==0,a.flags&=-33,r===null){if(ot){if(g?Ii(a):Ui(),(r=Tt)?(r=sg(r,cr),r=r!==null&&r.data!=="&"?r:null,r!==null&&(a.memoizedState={dehydrated:r,treeContext:Oi!==null?{id:Or,overflow:Rr}:null,retryLane:536870912,hydrationErrors:null},o=Op(r),o.return=a,a.child=o,fn=a,Tt=null)):r=null,r===null)throw Bi(a);return Ph(r)?a.lanes=32:a.lanes=536870912,null}var R=c.children;return c=c.fallback,g?(Ui(),g=a.mode,R=Fu({mode:"hidden",children:R},g),c=Aa(c,g,o,null),R.return=a,c.return=a,R.sibling=c,a.child=R,c=a.child,c.memoizedState=fh(o),c.childLanes=hh(r,k,o),a.memoizedState=ch,Uo(null,c)):(Ii(a),dh(a,R))}var K=r.memoizedState;if(K!==null&&(R=K.dehydrated,R!==null)){if(y)a.flags&256?(Ii(a),a.flags&=-257,a=mh(r,a,o)):a.memoizedState!==null?(Ui(),a.child=r.child,a.flags|=128,a=null):(Ui(),R=c.fallback,g=a.mode,c=Fu({mode:"visible",children:c.children},g),R=Aa(R,g,o,null),R.flags|=2,c.return=a,R.return=a,c.sibling=R,a.child=c,_a(a,r.child,null,o),c=a.child,c.memoizedState=fh(o),c.childLanes=hh(r,k,o),a.memoizedState=ch,a=Uo(null,c));else if(Ii(a),Ph(R)){if(k=R.nextSibling&&R.nextSibling.dataset,k)var oe=k.dgst;k=oe,c=Error(i(419)),c.stack="",c.digest=k,Mo({value:c,source:null,stack:null}),a=mh(r,a,o)}else if(Pt||yl(r,a,o,!1),k=(o&r.childLanes)!==0,Pt||k){if(k=bt,k!==null&&(c=Js(k,o),c!==0&&c!==K.retryLane))throw K.retryLane=c,Ea(r,c),qn(k,r,c),sh;Xh(R)||Ku(),a=mh(r,a,o)}else Xh(R)?(a.flags|=192,a.child=r.child,a=null):(r=K.treeContext,Tt=hr(R.nextSibling),fn=a,ot=!0,Ri=null,cr=!1,r!==null&&Lp(a,r),a=dh(a,c.children),a.flags|=4096);return a}return g?(Ui(),R=c.fallback,g=a.mode,K=r.child,oe=K.sibling,c=ei(K,{mode:"hidden",children:c.children}),c.subtreeFlags=K.subtreeFlags&65011712,oe!==null?R=ei(oe,R):(R=Aa(R,g,o,null),R.flags|=2),R.return=a,c.return=a,c.sibling=R,a.child=c,Uo(null,c),c=a.child,R=r.child.memoizedState,R===null?R=fh(o):(g=R.cachePool,g!==null?(K=$t._currentValue,g=g.parent!==K?{parent:K,pool:K}:g):g=Fp(),R={baseLanes:R.baseLanes|o,cachePool:g}),c.memoizedState=R,c.childLanes=hh(r,k,o),a.memoizedState=ch,Uo(r.child,c)):(Ii(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 dh(r,a){return a=Fu({mode:"visible",children:a},r.mode),a.return=r,r.child=a}function Fu(r,a){return r=$n(22,r,null,a),r.lanes=0,r}function mh(r,a,o){return _a(a,r.child,null,o),r=dh(a,a.pendingProps.children),r.flags|=2,a.memoizedState=null,r}function t2(r,a,o){r.lanes|=a;var c=r.alternate;c!==null&&(c.lanes|=a),Mf(r.return,a,o)}function ph(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 n2(r,a,o){var c=a.pendingProps,g=c.revealOrder,y=c.tail;c=c.children;var k=Vt.current,R=(k&2)!==0;if(R?(k=k&1|2,a.flags|=128):k&=1,_(Vt,k),dn(r,a,c,o),c=ot?Co:0,!R&&r!==null&&(r.flags&128)!==0)e:for(r=a.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&t2(r,o,a);else if(r.tag===19)t2(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&&Nu(r)===null&&(g=o),o=o.sibling;o=g,o===null?(g=a.child,a.child=null):(g=o.sibling,o.sibling=null),ph(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&&Nu(r)===null){a.child=g;break}r=g.sibling,g.sibling=o,o=g,g=r}ph(a,!0,o,null,y,c);break;case"together":ph(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),Yi|=a.lanes,(o&a.childLanes)===0)if(r!==null){if(yl(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 gh(r,a){return(r.lanes&a)!==0?!0:(r=r.dependencies,!!(r!==null&&Su(r)))}function Z9(r,a,o){switch(a.tag){case 3:ge(a,a.stateNode.containerInfo),Li(a,$t,r.memoizedState.cache),Ta();break;case 27:case 5:qe(a);break;case 4:ge(a,a.stateNode.containerInfo);break;case 10:Li(a,a.type,a.memoizedProps.value);break;case 31:if(a.memoizedState!==null)return a.flags|=128,Uf(a),null;break;case 13:var c=a.memoizedState;if(c!==null)return c.dehydrated!==null?(Ii(a),a.flags|=128,null):(o&a.child.childLanes)!==0?e2(r,a,o):(Ii(a),r=li(r,a,o),r!==null?r.sibling:null);Ii(a);break;case 19:var g=(r.flags&128)!==0;if(c=(o&a.childLanes)!==0,c||(yl(r,a,o,!1),c=(o&a.childLanes)!==0),g){if(c)return n2(r,a,o);a.flags|=128}if(g=a.memoizedState,g!==null&&(g.rendering=null,g.tail=null,g.lastEffect=null),_(Vt,Vt.current),c)break;return null;case 22:return a.lanes=0,P4(r,a,o,a.pendingProps);case 24:Li(a,$t,r.memoizedState.cache)}return li(r,a,o)}function r2(r,a,o){if(r!==null)if(r.memoizedProps!==a.pendingProps)Pt=!0;else{if(!gh(r,o)&&(a.flags&128)===0)return Pt=!1,Z9(r,a,o);Pt=(r.flags&131072)!==0}else Pt=!1,ot&&(a.flags&1048576)!==0&&Bp(a,Co,a.index);switch(a.lanes=0,a.tag){case 16:e:{var c=a.pendingProps;if(r=Na(a.elementType),a.type=r,typeof r=="function")wf(r)?(c=Ra(r,c),a.tag=1,a=J4(null,a,r,c,o)):(a.tag=0,a=uh(null,a,r,c,o));else{if(r!=null){var g=r.$$typeof;if(g===H){a.tag=11,a=G4(null,a,r,c,o);break e}else if(g===U){a.tag=14,a=$4(null,a,r,c,o);break e}}throw a=j(r)||r,Error(i(306,a,""))}}return a;case 0:return uh(r,a,a.type,a.pendingProps,o);case 1:return c=a.type,g=Ra(c,a.pendingProps),J4(r,a,c,g,o);case 3:e:{if(ge(a,a.stateNode.containerInfo),r===null)throw Error(i(387));c=a.pendingProps;var y=a.memoizedState;g=y.element,Lf(r,a),Lo(a,c,null,o);var k=a.memoizedState;if(c=k.cache,Li(a,$t,c),c!==y.cache&&Nf(a,[$t],o,!0),Bo(),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=W4(r,a,c,o);break e}else if(c!==g){g=or(Error(i(424)),a),Mo(g),a=W4(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,Tt=hr(r.firstChild),fn=a,ot=!0,Ri=null,cr=!0,o=Pp(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}dn(r,a,c,o)}a=a.child}return a;case 26:return Uu(r,a),r===null?(o=mg(a.type,null,a.pendingProps,null))?a.memoizedState=o:ot||(o=a.type,r=a.pendingProps,c=i0(xe.current).createElement(o),c[an]=a,c[yn]=r,mn(c,o,r),Gt(c),a.stateNode=c):a.memoizedState=mg(a.type,r.memoizedProps,a.pendingProps,r.memoizedState),null;case 27:return qe(a),r===null&&ot&&(c=a.stateNode=fg(a.type,a.pendingProps,xe.current),fn=a,cr=!0,g=Tt,Zi(a.type)?(Zh=g,Tt=hr(c.firstChild)):Tt=g),dn(r,a,a.pendingProps.children,o),Uu(r,a),r===null&&(a.flags|=4194304),a.child;case 5:return r===null&&ot&&((g=c=Tt)&&(c=Ax(c,a.type,a.pendingProps,cr),c!==null?(a.stateNode=c,fn=a,Tt=hr(c.firstChild),cr=!1,g=!0):g=!1),g||Bi(a)),qe(a),g=a.type,y=a.pendingProps,k=r!==null?r.memoizedProps:null,c=y.children,Yh(g,y)?c=null:k!==null&&Yh(g,k)&&(a.flags|=32),a.memoizedState!==null&&(g=Vf(r,a,I9,null,null,o),ns._currentValue=g),Uu(r,a),dn(r,a,c,o),a.child;case 6:return r===null&&ot&&((r=o=Tt)&&(o=Tx(o,a.pendingProps,cr),o!==null?(a.stateNode=o,fn=a,Tt=null,r=!0):r=!1),r||Bi(a)),null;case 13:return e2(r,a,o);case 4:return ge(a,a.stateNode.containerInfo),c=a.pendingProps,r===null?a.child=_a(a,null,c,o):dn(r,a,c,o),a.child;case 11:return G4(r,a,a.type,a.pendingProps,o);case 7:return dn(r,a,a.pendingProps,o),a.child;case 8:return dn(r,a,a.pendingProps.children,o),a.child;case 12:return dn(r,a,a.pendingProps.children,o),a.child;case 10:return c=a.pendingProps,Li(a,a.type,c.value),dn(r,a,c.children,o),a.child;case 9:return g=a.type._context,c=a.pendingProps.children,Ca(a),g=hn(g),c=c(g),a.flags|=1,dn(r,a,c,o),a.child;case 14:return $4(r,a,a.type,a.pendingProps,o);case 15:return X4(r,a,a.type,a.pendingProps,o);case 19:return n2(r,a,o);case 31:return P9(r,a,o);case 22:return P4(r,a,o,a.pendingProps);case 24:return Ca(a),c=hn($t),r===null?(g=Of(),g===null&&(g=bt,y=Df(),g.pooledCache=y,y.refCount++,y!==null&&(g.pooledCacheLanes|=o),g=y),a.memoizedState={parent:c,cache:g},Bf(a),Li(a,$t,g)):((r.lanes&o)!==0&&(Lf(r,a),Lo(a,null,null,o),Bo()),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),Li(a,$t,c)):(c=y.cache,Li(a,$t,c),c!==g.cache&&Nf(a,[$t],o,!0))),dn(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 yh(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(N2())r.flags|=8192;else throw Da=Tu,Rf}else r.flags&=-16777217}function i2(r,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)r.flags&=-16777217;else if(r.flags|=16777216,!xg(a))if(N2())r.flags|=8192;else throw Da=Tu,Rf}function Vu(r,a){a!==null&&(r.flags|=4),r.flags&16384&&(a=r.tag!==22?Yn():536870912,r.lanes|=a,Ml|=a)}function Fo(r,a){if(!ot)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 zt(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 Q9(r,a,o){var c=a.pendingProps;switch(Af(a),a.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return zt(a),null;case 1:return zt(a),null;case 3:return o=a.stateNode,c=null,r!==null&&(c=r.memoizedState.cache),a.memoizedState.cache!==c&&(a.flags|=2048),ri($t),Se(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(r===null||r.child===null)&&(gl(a)?oi(a):r===null||r.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,zf())),zt(a),null;case 26:var g=a.type,y=a.memoizedState;return r===null?(oi(a),y!==null?(zt(a),i2(a,y)):(zt(a),yh(a,g,null,c,o))):y?y!==r.memoizedState?(oi(a),zt(a),i2(a,y)):(zt(a),a.flags&=-16777217):(r=r.memoizedProps,r!==c&&oi(a),zt(a),yh(a,g,r,c,o)),null;case 27:if(Ie(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 zt(a),null}r=ie.current,gl(a)?Hp(a):(r=fg(g,c,o),a.stateNode=r,oi(a))}return zt(a),null;case 5:if(Ie(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 zt(a),null}if(y=ie.current,gl(a))Hp(a);else{var k=i0(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[an]=a,y[yn]=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(mn(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 zt(a),yh(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,gl(a)){if(r=a.stateNode,o=a.memoizedProps,c=null,g=fn,g!==null)switch(g.tag){case 27:case 5:c=g.memoizedProps}r[an]=a,r=!!(r.nodeValue===o||c!==null&&c.suppressHydrationWarning===!0||eg(r.nodeValue,o)),r||Bi(a,!0)}else r=i0(r).createTextNode(c),r[an]=a,a.stateNode=r}return zt(a),null;case 31:if(o=a.memoizedState,r===null||r.memoizedState!==null){if(c=gl(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[an]=a}else Ta(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;zt(a),r=!1}else o=zf(),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 zt(a),null;case 13:if(c=a.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(g=gl(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[an]=a}else Ta(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;zt(a),g=!1}else g=zf(),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),Vu(a,a.updateQueue),zt(a),null);case 4:return Se(),r===null&&jh(a.stateNode.containerInfo),zt(a),null;case 10:return ri(a.type),zt(a),null;case 19:if($(Vt),c=a.memoizedState,c===null)return zt(a),null;if(g=(a.flags&128)!==0,y=c.rendering,y===null)if(g)Fo(c,!1);else{if(jt!==0||r!==null&&(r.flags&128)!==0)for(r=a.child;r!==null;){if(y=Nu(r),y!==null){for(a.flags|=128,Fo(c,!1),r=y.updateQueue,a.updateQueue=r,Vu(a,r),a.subtreeFlags=0,r=o,o=a.child;o!==null;)_p(o,r),o=o.sibling;return _(Vt,Vt.current&1|2),ot&&ti(a,c.treeForkCount),a.child}r=r.sibling}c.tail!==null&&kt()>Pu&&(a.flags|=128,g=!0,Fo(c,!1),a.lanes=4194304)}else{if(!g)if(r=Nu(y),r!==null){if(a.flags|=128,g=!0,r=r.updateQueue,a.updateQueue=r,Vu(a,r),Fo(c,!0),c.tail===null&&c.tailMode==="hidden"&&!y.alternate&&!ot)return zt(a),null}else 2*kt()-c.renderingStartTime>Pu&&o!==536870912&&(a.flags|=128,g=!0,Fo(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=kt(),r.sibling=null,o=Vt.current,_(Vt,g?o&1|2:o&1),ot&&ti(a,c.treeForkCount),r):(zt(a),null);case 22:case 23:return Pn(a),If(),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&&(zt(a),a.subtreeFlags&6&&(a.flags|=8192)):zt(a),o=a.updateQueue,o!==null&&Vu(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&&$(Ma),null;case 24:return o=null,r!==null&&(o=r.memoizedState.cache),a.memoizedState.cache!==o&&(a.flags|=2048),ri($t),zt(a),null;case 25:return null;case 30:return null}throw Error(i(156,a.tag))}function K9(r,a){switch(Af(a),a.tag){case 1:return r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 3:return ri($t),Se(),r=a.flags,(r&65536)!==0&&(r&128)===0?(a.flags=r&-65537|128,a):null;case 26:case 27:case 5:return Ie(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 $(Vt),null;case 4:return Se(),null;case 10:return ri(a.type),null;case 22:case 23:return Pn(a),If(),r!==null&&$(Ma),r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 24:return ri($t),null;case 25:return null;default:return null}}function a2(r,a){switch(Af(a),a.tag){case 3:ri($t),Se();break;case 26:case 27:case 5:Ie(a);break;case 4:Se();break;case 31:a.memoizedState!==null&&Pn(a);break;case 13:Pn(a);break;case 19:$(Vt);break;case 10:ri(a.type);break;case 22:case 23:Pn(a),If(),r!==null&&$(Ma);break;case 24:ri($t)}}function Vo(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(R){pt(a,a.return,R)}}function Fi(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,R=k.destroy;if(R!==void 0){k.destroy=void 0,g=a;var K=o,oe=R;try{oe()}catch(de){pt(g,K,de)}}}c=c.next}while(c!==y)}}catch(de){pt(a,a.return,de)}}function l2(r){var a=r.updateQueue;if(a!==null){var o=r.stateNode;try{Qp(a,o)}catch(c){pt(r,r.return,c)}}}function o2(r,a,o){o.props=Ra(r.type,r.memoizedProps),o.state=r.memoizedState;try{o.componentWillUnmount()}catch(c){pt(r,a,c)}}function Yo(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){pt(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){pt(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){pt(r,a,g)}else o.current=null}function s2(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){pt(r,r.return,g)}}function vh(r,a,o){try{var c=r.stateNode;xx(c,r.type,o,a),c[yn]=a}catch(g){pt(r,r.return,g)}}function u2(r){return r.tag===5||r.tag===3||r.tag===26||r.tag===27&&Zi(r.type)||r.tag===4}function xh(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||u2(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&&Zi(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 bh(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&&Zi(r.type)&&(o=r.stateNode,a=null),r=r.child,r!==null))for(bh(r,a,o),r=r.sibling;r!==null;)bh(r,a,o),r=r.sibling}function Yu(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&&Zi(r.type)&&(o=r.stateNode),r=r.child,r!==null))for(Yu(r,a,o),r=r.sibling;r!==null;)Yu(r,a,o),r=r.sibling}function c2(r){var a=r.stateNode,o=r.memoizedProps;try{for(var c=r.type,g=a.attributes;g.length;)a.removeAttributeNode(g[0]);mn(a,c,o),a[an]=r,a[yn]=o}catch(y){pt(r,r.return,y)}}var si=!1,Zt=!1,wh=!1,f2=typeof WeakSet=="function"?WeakSet:Set,cn=null;function J9(r,a){if(r=r.containerInfo,Fh=f0,r=kp(r),mf(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,R=-1,K=-1,oe=0,de=0,pe=r,se=null;t:for(;;){for(var ue;pe!==o||g!==0&&pe.nodeType!==3||(R=k+g),pe!==y||c!==0&&pe.nodeType!==3||(K=k+c),pe.nodeType===3&&(k+=pe.nodeValue.length),(ue=pe.firstChild)!==null;)se=pe,pe=ue;for(;;){if(pe===r)break t;if(se===o&&++oe===g&&(R=k),se===y&&++de===c&&(K=k),(ue=pe.nextSibling)!==null)break;pe=se,se=pe.parentNode}pe=ue}o=R===-1||K===-1?null:{start:R,end:K}}else o=null}o=o||{start:0,end:0}}else o=null;for(Vh={focusedElem:r,selectionRange:o},f0=!1,cn=a;cn!==null;)if(a=cn,r=a.child,(a.subtreeFlags&1028)!==0&&r!==null)r.return=a,cn=r;else for(;cn!==null;){switch(a=cn,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 Ne=Ra(o.type,g);r=c.getSnapshotBeforeUpdate(Ne,y),c.__reactInternalSnapshotBeforeUpdate=r}catch(Fe){pt(o,o.return,Fe)}}break;case 3:if((r&1024)!==0){if(r=a.stateNode.containerInfo,o=r.nodeType,o===9)$h(r);else if(o===1)switch(r.nodeName){case"HEAD":case"HTML":case"BODY":$h(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,cn=r;break}cn=a.return}}function h2(r,a,o){var c=o.flags;switch(o.tag){case 0:case 11:case 15:ci(r,o),c&4&&Vo(5,o);break;case 1:if(ci(r,o),c&4)if(r=o.stateNode,a===null)try{r.componentDidMount()}catch(k){pt(o,o.return,k)}else{var g=Ra(o.type,a.memoizedProps);a=a.memoizedState;try{r.componentDidUpdate(g,a,r.__reactInternalSnapshotBeforeUpdate)}catch(k){pt(o,o.return,k)}}c&64&&l2(o),c&512&&Yo(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{Qp(r,a)}catch(k){pt(o,o.return,k)}}break;case 27:a===null&&c&4&&c2(o);case 26:case 5:ci(r,o),a===null&&c&4&&s2(o),c&512&&Yo(o,o.return);break;case 12:ci(r,o);break;case 31:ci(r,o),c&4&&p2(r,o);break;case 13:ci(r,o),c&4&&g2(r,o),c&64&&(r=o.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&(o=ox.bind(null,o),zx(r,o))));break;case 22:if(c=o.memoizedState!==null||si,!c){a=a!==null&&a.memoizedState!==null||Zt,g=si;var y=Zt;si=c,(Zt=a)&&!y?fi(r,o,(o.subtreeFlags&8772)!==0):ci(r,o),si=g,Zt=y}break;case 30:break;default:ci(r,o)}}function d2(r){var a=r.alternate;a!==null&&(r.alternate=null,d2(a)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(a=r.stateNode,a!==null&&go(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 Mt=null,Rn=!1;function ui(r,a,o){for(o=o.child;o!==null;)m2(r,a,o),o=o.sibling}function m2(r,a,o){if(Rt&&typeof Rt.onCommitFiberUnmount=="function")try{Rt.onCommitFiberUnmount(Ct,o)}catch{}switch(o.tag){case 26:Zt||Br(o,a),ui(r,a,o),o.memoizedState?o.memoizedState.count--:o.stateNode&&(o=o.stateNode,o.parentNode.removeChild(o));break;case 27:Zt||Br(o,a);var c=Mt,g=Rn;Zi(o.type)&&(Mt=o.stateNode,Rn=!1),ui(r,a,o),Wo(o.stateNode),Mt=c,Rn=g;break;case 5:Zt||Br(o,a);case 6:if(c=Mt,g=Rn,Mt=null,ui(r,a,o),Mt=c,Rn=g,Mt!==null)if(Rn)try{(Mt.nodeType===9?Mt.body:Mt.nodeName==="HTML"?Mt.ownerDocument.body:Mt).removeChild(o.stateNode)}catch(y){pt(o,a,y)}else try{Mt.removeChild(o.stateNode)}catch(y){pt(o,a,y)}break;case 18:Mt!==null&&(Rn?(r=Mt,lg(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,o.stateNode),Hl(r)):lg(Mt,o.stateNode));break;case 4:c=Mt,g=Rn,Mt=o.stateNode.containerInfo,Rn=!0,ui(r,a,o),Mt=c,Rn=g;break;case 0:case 11:case 14:case 15:Fi(2,o,a),Zt||Fi(4,o,a),ui(r,a,o);break;case 1:Zt||(Br(o,a),c=o.stateNode,typeof c.componentWillUnmount=="function"&&o2(o,a,c)),ui(r,a,o);break;case 21:ui(r,a,o);break;case 22:Zt=(c=Zt)||o.memoizedState!==null,ui(r,a,o),Zt=c;break;default:ui(r,a,o)}}function p2(r,a){if(a.memoizedState===null&&(r=a.alternate,r!==null&&(r=r.memoizedState,r!==null))){r=r.dehydrated;try{Hl(r)}catch(o){pt(a,a.return,o)}}}function g2(r,a){if(a.memoizedState===null&&(r=a.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null))))try{Hl(r)}catch(o){pt(a,a.return,o)}}function W9(r){switch(r.tag){case 31:case 13:case 19:var a=r.stateNode;return a===null&&(a=r.stateNode=new f2),a;case 22:return r=r.stateNode,a=r._retryCache,a===null&&(a=r._retryCache=new f2),a;default:throw Error(i(435,r.tag))}}function Gu(r,a){var o=W9(r);a.forEach(function(c){if(!o.has(c)){o.add(c);var g=sx.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,R=k;e:for(;R!==null;){switch(R.tag){case 27:if(Zi(R.type)){Mt=R.stateNode,Rn=!1;break e}break;case 5:Mt=R.stateNode,Rn=!1;break e;case 3:case 4:Mt=R.stateNode.containerInfo,Rn=!0;break e}R=R.return}if(Mt===null)throw Error(i(160));m2(y,k,g),Mt=null,Rn=!1,y=g.alternate,y!==null&&(y.return=null),g.return=null}if(a.subtreeFlags&13886)for(a=a.child;a!==null;)y2(a,r),a=a.sibling}var br=null;function y2(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&&(Fi(3,r,r.return),Vo(3,r),Fi(5,r,r.return));break;case 1:Bn(a,r),Ln(r),c&512&&(Zt||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&&(Zt||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[va]||y[an]||y.namespaceURI==="http://www.w3.org/2000/svg"||y.hasAttribute("itemprop"))&&(y=g.createElement(c),g.head.insertBefore(y,g.querySelector("head > title"))),mn(y,c,o),y[an]=r,Gt(y),c=y;break e;case"link":var k=yg("link","href",g).get(c+(o.href||""));if(k){for(var R=0;R<k.length;R++)if(y=k[R],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(R,1);break t}}y=g.createElement(c),mn(y,c,o),g.head.appendChild(y);break;case"meta":if(k=yg("meta","content",g).get(c+(o.content||""))){for(R=0;R<k.length;R++)if(y=k[R],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(R,1);break t}}y=g.createElement(c),mn(y,c,o),g.head.appendChild(y);break;default:throw Error(i(468,c))}y[an]=r,Gt(y),c=y}r.stateNode=c}else vg(g,r.type,r.stateNode);else r.stateNode=gg(g,c,r.memoizedProps);else y!==c?(y===null?o.stateNode!==null&&(o=o.stateNode,o.parentNode.removeChild(o)):y.count--,c===null?vg(g,r.type,r.stateNode):gg(g,c,r.memoizedProps)):c===null&&r.stateNode!==null&&vh(r,r.memoizedProps,o.memoizedProps)}break;case 27:Bn(a,r),Ln(r),c&512&&(Zt||o===null||Br(o,o.return)),o!==null&&c&4&&vh(r,r.memoizedProps,o.memoizedProps);break;case 5:if(Bn(a,r),Ln(r),c&512&&(Zt||o===null||Br(o,o.return)),r.flags&32){g=r.stateNode;try{ll(g,"")}catch(Ne){pt(r,r.return,Ne)}}c&4&&r.stateNode!=null&&(g=r.memoizedProps,vh(r,g,o!==null?o.memoizedProps:g)),c&1024&&(wh=!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(Ne){pt(r,r.return,Ne)}}break;case 3:if(o0=null,g=br,br=a0(a.containerInfo),Bn(a,r),br=g,Ln(r),c&4&&o!==null&&o.memoizedState.isDehydrated)try{Hl(a.containerInfo)}catch(Ne){pt(r,r.return,Ne)}wh&&(wh=!1,v2(r));break;case 4:c=br,br=a0(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,Gu(r,c)));break;case 13:Bn(a,r),Ln(r),r.child.flags&8192&&r.memoizedState!==null!=(o!==null&&o.memoizedState!==null)&&(Xu=kt()),c&4&&(c=r.updateQueue,c!==null&&(r.updateQueue=null,Gu(r,c)));break;case 22:g=r.memoizedState!==null;var K=o!==null&&o.memoizedState!==null,oe=si,de=Zt;if(si=oe||g,Zt=de||K,Bn(a,r),Zt=de,si=oe,Ln(r),c&8192)e:for(a=r.stateNode,a._visibility=g?a._visibility&-2:a._visibility|1,g&&(o===null||K||si||Zt||Ba(r)),o=null,a=r;;){if(a.tag===5||a.tag===26){if(o===null){K=o=a;try{if(y=K.stateNode,g)k=y.style,typeof k.setProperty=="function"?k.setProperty("display","none","important"):k.display="none";else{R=K.stateNode;var pe=K.memoizedProps.style,se=pe!=null&&pe.hasOwnProperty("display")?pe.display:null;R.style.display=se==null||typeof se=="boolean"?"":(""+se).trim()}}catch(Ne){pt(K,K.return,Ne)}}}else if(a.tag===6){if(o===null){K=a;try{K.stateNode.nodeValue=g?"":K.memoizedProps}catch(Ne){pt(K,K.return,Ne)}}}else if(a.tag===18){if(o===null){K=a;try{var ue=K.stateNode;g?og(ue,!0):og(K.stateNode,!1)}catch(Ne){pt(K,K.return,Ne)}}}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,Gu(r,o))));break;case 19:Bn(a,r),Ln(r),c&4&&(c=r.updateQueue,c!==null&&(r.updateQueue=null,Gu(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(u2(c)){o=c;break}c=c.return}if(o==null)throw Error(i(160));switch(o.tag){case 27:var g=o.stateNode,y=xh(r);Yu(r,y,g);break;case 5:var k=o.stateNode;o.flags&32&&(ll(k,""),o.flags&=-33);var R=xh(r);Yu(r,R,k);break;case 3:case 4:var K=o.stateNode.containerInfo,oe=xh(r);bh(r,oe,K);break;default:throw Error(i(161))}}catch(de){pt(r,r.return,de)}r.flags&=-3}a&4096&&(r.flags&=-4097)}function v2(r){if(r.subtreeFlags&1024)for(r=r.child;r!==null;){var a=r;v2(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;)h2(r,a.alternate,a),a=a.sibling}function Ba(r){for(r=r.child;r!==null;){var a=r;switch(a.tag){case 0:case 11:case 14:case 15:Fi(4,a,a.return),Ba(a);break;case 1:Br(a,a.return);var o=a.stateNode;typeof o.componentWillUnmount=="function"&&o2(a,a.return,o),Ba(a);break;case 27:Wo(a.stateNode);case 26:case 5:Br(a,a.return),Ba(a);break;case 22:a.memoizedState===null&&Ba(a);break;case 30:Ba(a);break;default:Ba(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),Vo(4,y);break;case 1:if(fi(g,y,o),c=y,g=c.stateNode,typeof g.componentDidMount=="function")try{g.componentDidMount()}catch(oe){pt(c,c.return,oe)}if(c=y,g=c.updateQueue,g!==null){var R=c.stateNode;try{var K=g.shared.hiddenCallbacks;if(K!==null)for(g.shared.hiddenCallbacks=null,g=0;g<K.length;g++)Zp(K[g],R)}catch(oe){pt(c,c.return,oe)}}o&&k&64&&l2(y),Yo(y,y.return);break;case 27:c2(y);case 26:case 5:fi(g,y,o),o&&c===null&&k&4&&s2(y),Yo(y,y.return);break;case 12:fi(g,y,o);break;case 31:fi(g,y,o),o&&k&4&&p2(g,y);break;case 13:fi(g,y,o),o&&k&4&&g2(g,y);break;case 22:y.memoizedState===null&&fi(g,y,o),Yo(y,y.return);break;case 30:break;default:fi(g,y,o)}a=a.sibling}}function Sh(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&&No(o))}function kh(r,a){r=null,a.alternate!==null&&(r=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==r&&(a.refCount++,r!=null&&No(r))}function wr(r,a,o,c){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)x2(r,a,o,c),a=a.sibling}function x2(r,a,o,c){var g=a.flags;switch(a.tag){case 0:case 11:case 15:wr(r,a,o,c),g&2048&&Vo(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&&No(r)));break;case 12:if(g&2048){wr(r,a,o,c),r=a.stateNode;try{var y=a.memoizedProps,k=y.id,R=y.onPostCommit;typeof R=="function"&&R(k,a.alternate===null?"mount":"update",r.passiveEffectDuration,-0)}catch(K){pt(a,a.return,K)}}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):Go(r,a):y._visibility&2?wr(r,a,o,c):(y._visibility|=2,Tl(r,a,o,c,(a.subtreeFlags&10256)!==0||!1)),g&2048&&Sh(k,a);break;case 24:wr(r,a,o,c),g&2048&&kh(a.alternate,a);break;default:wr(r,a,o,c)}}function Tl(r,a,o,c,g){for(g=g&&((a.subtreeFlags&10256)!==0||!1),a=a.child;a!==null;){var y=r,k=a,R=o,K=c,oe=k.flags;switch(k.tag){case 0:case 11:case 15:Tl(y,k,R,K,g),Vo(8,k);break;case 23:break;case 22:var de=k.stateNode;k.memoizedState!==null?de._visibility&2?Tl(y,k,R,K,g):Go(y,k):(de._visibility|=2,Tl(y,k,R,K,g)),g&&oe&2048&&Sh(k.alternate,k);break;case 24:Tl(y,k,R,K,g),g&&oe&2048&&kh(k.alternate,k);break;default:Tl(y,k,R,K,g)}a=a.sibling}}function Go(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:Go(o,c),g&2048&&Sh(c.alternate,c);break;case 24:Go(o,c),g&2048&&kh(c.alternate,c);break;default:Go(o,c)}a=a.sibling}}var $o=8192;function zl(r,a,o){if(r.subtreeFlags&$o)for(r=r.child;r!==null;)b2(r,a,o),r=r.sibling}function b2(r,a,o){switch(r.tag){case 26:zl(r,a,o),r.flags&$o&&r.memoizedState!==null&&jx(o,br,r.memoizedState,r.memoizedProps);break;case 5:zl(r,a,o);break;case 3:case 4:var c=br;br=a0(r.stateNode.containerInfo),zl(r,a,o),br=c;break;case 22:r.memoizedState===null&&(c=r.alternate,c!==null&&c.memoizedState!==null?(c=$o,$o=16777216,zl(r,a,o),$o=c):zl(r,a,o));break;default:zl(r,a,o)}}function w2(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 Xo(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];cn=c,k2(c,r)}w2(r)}if(r.subtreeFlags&10256)for(r=r.child;r!==null;)S2(r),r=r.sibling}function S2(r){switch(r.tag){case 0:case 11:case 15:Xo(r),r.flags&2048&&Fi(9,r,r.return);break;case 3:Xo(r);break;case 12:Xo(r);break;case 22:var a=r.stateNode;r.memoizedState!==null&&a._visibility&2&&(r.return===null||r.return.tag!==13)?(a._visibility&=-3,$u(r)):Xo(r);break;default:Xo(r)}}function $u(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];cn=c,k2(c,r)}w2(r)}for(r=r.child;r!==null;){switch(a=r,a.tag){case 0:case 11:case 15:Fi(8,a,a.return),$u(a);break;case 22:o=a.stateNode,o._visibility&2&&(o._visibility&=-3,$u(a));break;default:$u(a)}r=r.sibling}}function k2(r,a){for(;cn!==null;){var o=cn;switch(o.tag){case 0:case 11:case 15:Fi(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:No(o.memoizedState.cache)}if(c=o.child,c!==null)c.return=o,cn=c;else e:for(o=r;cn!==null;){c=cn;var g=c.sibling,y=c.return;if(d2(c),c===o){cn=null;break e}if(g!==null){g.return=y,cn=g;break e}cn=y}}}var ex={getCacheForType:function(r){var a=hn($t),o=a.data.get(r);return o===void 0&&(o=r(),a.data.set(r,o)),o},cacheSignal:function(){return hn($t).controller.signal}},tx=typeof WeakMap=="function"?WeakMap:Map,ft=0,bt=null,tt=null,at=0,mt=0,Zn=null,Vi=!1,Cl=!1,Eh=!1,hi=0,jt=0,Yi=0,La=0,Ah=0,Qn=0,Ml=0,Po=null,Hn=null,Th=!1,Xu=0,E2=0,Pu=1/0,Zu=null,Gi=null,ln=0,$i=null,Nl=null,di=0,zh=0,Ch=null,A2=null,Zo=0,Mh=null;function Kn(){return(ft&2)!==0&&at!==0?at&-at:L.T!==null?Bh():Ws()}function T2(){if(Qn===0)if((at&536870912)===0||ot){var r=nn;nn<<=1,(nn&3932160)===0&&(nn=262144),Qn=r}else Qn=536870912;return r=Xn.current,r!==null&&(r.flags|=32),Qn}function qn(r,a,o){(r===bt&&(mt===2||mt===9)||r.cancelPendingCommit!==null)&&(Dl(r,0),Xi(r,at,Qn,!1)),Dr(r,o),((ft&2)===0||r!==bt)&&(r===bt&&((ft&2)===0&&(La|=o),jt===4&&Xi(r,at,Qn,!1)),Lr(r))}function z2(r,a,o){if((ft&6)!==0)throw Error(i(327));var c=!o&&(a&127)===0&&(a&r.expiredLanes)===0||Nr(r,a),g=c?ix(r,a):Dh(r,a,!0),y=c;do{if(g===0){Cl&&!c&&Xi(r,a,0,!1);break}else{if(o=r.current.alternate,y&&!nx(o)){g=Dh(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 R=r;g=Po;var K=R.current.memoizedState.isDehydrated;if(K&&(Dl(R,k).flags|=256),k=Dh(R,k,!1),k!==2){if(Eh&&!K){R.errorRecoveryDisabledLanes|=y,La|=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){Dl(r,0),Xi(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:Xi(c,a,Qn,!Vi);break e;case 2:Hn=null;break;case 3:case 5:break;default:throw Error(i(329))}if((a&62914560)===a&&(g=Xu+300-kt(),10<g)){if(Xi(c,a,Qn,!Vi),Mr(c,0,!0)!==0)break e;di=a,c.timeoutHandle=ig(C2.bind(null,c,o,Hn,Zu,Th,a,Qn,La,Ml,Vi,y,"Throttled",-0,0),g);break e}C2(c,o,Hn,Zu,Th,a,Qn,La,Ml,Vi,y,null,-0,0)}}break}while(!0);Lr(r)}function C2(r,a,o,c,g,y,k,R,K,oe,de,pe,se,ue){if(r.timeoutHandle=-1,pe=a.subtreeFlags,pe&8192||(pe&16785408)===16785408){pe={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Jr},b2(a,y,pe);var Ne=(y&62914560)===y?Xu-kt():(y&4194048)===y?E2-kt():0;if(Ne=Ix(pe,Ne),Ne!==null){di=y,r.cancelPendingCommit=Ne(L2.bind(null,r,a,y,o,c,g,k,R,K,de,pe,null,se,ue)),Xi(r,y,k,!oe);return}}L2(r,a,y,o,c,g,k,R,K)}function nx(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 Xi(r,a,o,c){a&=~Ah,a&=~La,r.suspendedLanes|=a,r.pingedLanes&=~a,c&&(r.warmLanes|=a),c=r.expirationTimes;for(var g=a;0<g;){var y=31-_e(g),k=1<<y;c[y]=-1,g&=~k}o!==0&&rn(r,o,a)}function Qu(){return(ft&6)===0?(Qo(0),!1):!0}function Nh(){if(tt!==null){if(mt===0)var r=tt.return;else r=tt,ni=za=null,$f(r),wl=null,_o=0,r=tt;for(;r!==null;)a2(r.alternate,r),r=r.return;tt=null}}function Dl(r,a){var o=r.timeoutHandle;o!==-1&&(r.timeoutHandle=-1,Sx(o)),o=r.cancelPendingCommit,o!==null&&(r.cancelPendingCommit=null,o()),di=0,Nh(),bt=r,tt=o=ei(r.current,null),at=a,mt=0,Zn=null,Vi=!1,Cl=Nr(r,a),Eh=!1,Ml=Qn=Ah=La=Yi=jt=0,Hn=Po=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-_e(c),y=1<<g;a|=r[g],c&=~y}return hi=a,yu(),o}function M2(r,a){Pe=null,L.H=Io,a===bl||a===Au?(a=Gp(),mt=3):a===Rf?(a=Gp(),mt=4):mt=a===sh?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,Zn=a,tt===null&&(jt=1,ju(r,or(a,r.current)))}function N2(){var r=Xn.current;return r===null?!0:(at&4194048)===at?fr===null:(at&62914560)===at||(at&536870912)!==0?r===fr:!1}function D2(){var r=L.H;return L.H=Io,r===null?Io:r}function _2(){var r=L.A;return L.A=ex,r}function Ku(){jt=4,Vi||(at&4194048)!==at&&Xn.current!==null||(Cl=!0),(Yi&134217727)===0&&(La&134217727)===0||bt===null||Xi(bt,at,Qn,!1)}function Dh(r,a,o){var c=ft;ft|=2;var g=D2(),y=_2();(bt!==r||at!==a)&&(Zu=null,Dl(r,a)),a=!1;var k=jt;e:do try{if(mt!==0&&tt!==null){var R=tt,K=Zn;switch(mt){case 8:Nh(),k=6;break e;case 3:case 2:case 9:case 6:Xn.current===null&&(a=!0);var oe=mt;if(mt=0,Zn=null,_l(r,R,K,oe),o&&Cl){k=0;break e}break;default:oe=mt,mt=0,Zn=null,_l(r,R,K,oe)}}rx(),k=jt;break}catch(de){M2(r,de)}while(!0);return a&&r.shellSuspendCounter++,ni=za=null,ft=c,L.H=g,L.A=y,tt===null&&(bt=null,at=0,yu()),k}function rx(){for(;tt!==null;)O2(tt)}function ix(r,a){var o=ft;ft|=2;var c=D2(),g=_2();bt!==r||at!==a?(Zu=null,Pu=kt()+500,Dl(r,a)):Cl=Nr(r,a);e:do try{if(mt!==0&&tt!==null){a=tt;var y=Zn;t:switch(mt){case 1:mt=0,Zn=null,_l(r,a,y,1);break;case 2:case 9:if(Vp(y)){mt=0,Zn=null,R2(a);break}a=function(){mt!==2&&mt!==9||bt!==r||(mt=7),Lr(r)},y.then(a,a);break e;case 3:mt=7;break e;case 4:mt=5;break e;case 7:Vp(y)?(mt=0,Zn=null,R2(a)):(mt=0,Zn=null,_l(r,a,y,7));break;case 5:var k=null;switch(tt.tag){case 26:k=tt.memoizedState;case 5:case 27:var R=tt;if(k?xg(k):R.stateNode.complete){mt=0,Zn=null;var K=R.sibling;if(K!==null)tt=K;else{var oe=R.return;oe!==null?(tt=oe,Ju(oe)):tt=null}break t}}mt=0,Zn=null,_l(r,a,y,5);break;case 6:mt=0,Zn=null,_l(r,a,y,6);break;case 8:Nh(),jt=6;break e;default:throw Error(i(462))}}ax();break}catch(de){M2(r,de)}while(!0);return ni=za=null,L.H=c,L.A=g,ft=o,tt!==null?0:(bt=null,at=0,yu(),jt)}function ax(){for(;tt!==null&&!Sn();)O2(tt)}function O2(r){var a=r2(r.alternate,r,hi);r.memoizedProps=r.pendingProps,a===null?Ju(r):tt=a}function R2(r){var a=r,o=a.alternate;switch(a.tag){case 15:case 0:a=K4(o,a,a.pendingProps,a.type,void 0,at);break;case 11:a=K4(o,a,a.pendingProps,a.type.render,a.ref,at);break;case 5:$f(a);default:a2(o,a),a=tt=_p(a,hi),a=r2(o,a,hi)}r.memoizedProps=r.pendingProps,a===null?Ju(r):tt=a}function _l(r,a,o,c){ni=za=null,$f(a),wl=null,_o=0;var g=a.return;try{if(X9(r,g,a,o,at)){jt=1,ju(r,or(o,r.current)),tt=null;return}}catch(y){if(g!==null)throw tt=g,y;jt=1,ju(r,or(o,r.current)),tt=null;return}a.flags&32768?(ot||c===1?r=!0:Cl||(at&536870912)!==0?r=!1:(Vi=r=!0,(c===2||c===9||c===3||c===6)&&(c=Xn.current,c!==null&&c.tag===13&&(c.flags|=16384))),B2(a,r)):Ju(a)}function Ju(r){var a=r;do{if((a.flags&32768)!==0){B2(a,Vi);return}r=a.return;var o=Q9(a.alternate,a,hi);if(o!==null){tt=o;return}if(a=a.sibling,a!==null){tt=a;return}tt=a=r}while(a!==null);jt===0&&(jt=5)}function B2(r,a){do{var o=K9(r.alternate,r);if(o!==null){o.flags&=32767,tt=o;return}if(o=r.return,o!==null&&(o.flags|=32768,o.subtreeFlags=0,o.deletions=null),!a&&(r=r.sibling,r!==null)){tt=r;return}tt=r=o}while(r!==null);jt=6,tt=null}function L2(r,a,o,c,g,y,k,R,K){r.cancelPendingCommit=null;do Wu();while(ln!==0);if((ft&6)!==0)throw Error(i(327));if(a!==null){if(a===r.current)throw Error(i(177));if(y=a.lanes|a.childLanes,y|=xf,el(r,o,y,k,R,K),r===bt&&(tt=bt=null,at=0),Nl=a,$i=r,di=o,zh=y,Ch=g,A2=c,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(r.callbackNode=null,r.callbackPriority=0,ux(He,function(){return U2(),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=ft,ft|=4;try{J9(r,a,o)}finally{ft=k,Y.p=g,L.T=c}}ln=1,H2(),q2(),j2()}}function H2(){if(ln===1){ln=0;var r=$i,a=Nl,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=ft;ft|=4;try{y2(a,r);var y=Vh,k=kp(r.containerInfo),R=y.focusedElem,K=y.selectionRange;if(k!==R&&R&&R.ownerDocument&&Sp(R.ownerDocument.documentElement,R)){if(K!==null&&mf(R)){var oe=K.start,de=K.end;if(de===void 0&&(de=oe),"selectionStart"in R)R.selectionStart=oe,R.selectionEnd=Math.min(de,R.value.length);else{var pe=R.ownerDocument||document,se=pe&&pe.defaultView||window;if(se.getSelection){var ue=se.getSelection(),Ne=R.textContent.length,Fe=Math.min(K.start,Ne),xt=K.end===void 0?Fe:Math.min(K.end,Ne);!ue.extend&&Fe>xt&&(k=xt,xt=Fe,Fe=k);var re=wp(R,Fe),ee=wp(R,xt);if(re&&ee&&(ue.rangeCount!==1||ue.anchorNode!==re.node||ue.anchorOffset!==re.offset||ue.focusNode!==ee.node||ue.focusOffset!==ee.offset)){var ae=pe.createRange();ae.setStart(re.node,re.offset),ue.removeAllRanges(),Fe>xt?(ue.addRange(ae),ue.extend(ee.node,ee.offset)):(ae.setEnd(ee.node,ee.offset),ue.addRange(ae))}}}}for(pe=[],ue=R;ue=ue.parentNode;)ue.nodeType===1&&pe.push({element:ue,left:ue.scrollLeft,top:ue.scrollTop});for(typeof R.focus=="function"&&R.focus(),R=0;R<pe.length;R++){var me=pe[R];me.element.scrollLeft=me.left,me.element.scrollTop=me.top}}f0=!!Fh,Vh=Fh=null}finally{ft=g,Y.p=c,L.T=o}}r.current=a,ln=2}}function q2(){if(ln===2){ln=0;var r=$i,a=Nl,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=ft;ft|=4;try{h2(r,a.alternate,a)}finally{ft=g,Y.p=c,L.T=o}}ln=3}}function j2(){if(ln===4||ln===3){ln=0,gn();var r=$i,a=Nl,o=di,c=A2;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?ln=5:(ln=0,Nl=$i=null,I2(r,r.pendingLanes));var g=r.pendingLanes;if(g===0&&(Gi=null),po(o),a=a.stateNode,Rt&&typeof Rt.onCommitFiberRoot=="function")try{Rt.onCommitFiberRoot(Ct,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 R=c[k];y(R.value,{componentStack:R.stack})}}finally{L.T=a,Y.p=g}}(di&3)!==0&&Wu(),Lr(r),g=r.pendingLanes,(o&261930)!==0&&(g&42)!==0?r===Mh?Zo++:(Zo=0,Mh=r):Zo=0,Qo(0)}}function I2(r,a){(r.pooledCacheLanes&=a)===0&&(a=r.pooledCache,a!=null&&(r.pooledCache=null,No(a)))}function Wu(){return H2(),q2(),j2(),U2()}function U2(){if(ln!==5)return!1;var r=$i,a=zh;zh=0;var o=po(di),c=L.T,g=Y.p;try{Y.p=32>o?32:o,L.T=null,o=Ch,Ch=null;var y=$i,k=di;if(ln=0,Nl=$i=null,di=0,(ft&6)!==0)throw Error(i(331));var R=ft;if(ft|=4,S2(y.current),x2(y,y.current,k,o),ft=R,Qo(0,!1),Rt&&typeof Rt.onPostCommitFiberRoot=="function")try{Rt.onPostCommitFiberRoot(Ct,y)}catch{}return!0}finally{Y.p=g,L.T=c,I2(r,a)}}function F2(r,a,o){a=or(o,a),a=oh(r.stateNode,a,2),r=ji(r,a,2),r!==null&&(Dr(r,2),Lr(r))}function pt(r,a,o){if(r.tag===3)F2(r,r,o);else for(;a!==null;){if(a.tag===3){F2(a,r,o);break}else if(a.tag===1){var c=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(Gi===null||!Gi.has(c))){r=or(o,r),o=V4(2),c=ji(a,o,2),c!==null&&(Y4(o,c,a,r),Dr(c,2),Lr(c));break}}a=a.return}}function _h(r,a,o){var c=r.pingCache;if(c===null){c=r.pingCache=new tx;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)||(Eh=!0,g.add(o),r=lx.bind(null,r,a,o),a.then(r,r))}function lx(r,a,o){var c=r.pingCache;c!==null&&c.delete(a),r.pingedLanes|=r.suspendedLanes&o,r.warmLanes&=~o,bt===r&&(at&o)===o&&(jt===4||jt===3&&(at&62914560)===at&&300>kt()-Xu?(ft&2)===0&&Dl(r,0):Ah|=o,Ml===at&&(Ml=0)),Lr(r)}function V2(r,a){a===0&&(a=Yn()),r=Ea(r,a),r!==null&&(Dr(r,a),Lr(r))}function ox(r){var a=r.memoizedState,o=0;a!==null&&(o=a.retryLane),V2(r,o)}function sx(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),V2(r,o)}function ux(r,a){return Ft(r,a)}var e0=null,Ol=null,Oh=!1,t0=!1,Rh=!1,Pi=0;function Lr(r){r!==Ol&&r.next===null&&(Ol===null?e0=Ol=r:Ol=Ol.next=r),t0=!0,Oh||(Oh=!0,fx())}function Qo(r,a){if(!Rh&&t0){Rh=!0;do for(var o=!1,c=e0;c!==null;){if(r!==0){var g=c.pendingLanes;if(g===0)var y=0;else{var k=c.suspendedLanes,R=c.pingedLanes;y=(1<<31-_e(42|r)+1)-1,y&=g&~(k&~R),y=y&201326741?y&201326741|1:y?y|2:0}y!==0&&(o=!0,X2(c,y))}else y=at,y=Mr(c,c===bt?y:0,c.cancelPendingCommit!==null||c.timeoutHandle!==-1),(y&3)===0||Nr(c,y)||(o=!0,X2(c,y));c=c.next}while(o);Rh=!1}}function cx(){Y2()}function Y2(){t0=Oh=!1;var r=0;Pi!==0&&wx()&&(r=Pi);for(var a=kt(),o=null,c=e0;c!==null;){var g=c.next,y=G2(c,a);y===0?(c.next=null,o===null?e0=g:o.next=g,g===null&&(Ol=o)):(o=c,(r!==0||(y&3)!==0)&&(t0=!0)),c=g}ln!==0&&ln!==5||Qo(r),Pi!==0&&(Pi=0)}function G2(r,a){for(var o=r.suspendedLanes,c=r.pingedLanes,g=r.expirationTimes,y=r.pendingLanes&-62914561;0<y;){var k=31-_e(y),R=1<<k,K=g[k];K===-1?((R&o)===0||(R&c)!==0)&&(g[k]=ho(R,a)):K<=a&&(r.expiredLanes|=R),y&=~R}if(a=bt,o=at,o=Mr(r,r===a?o:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),c=r.callbackNode,o===0||r===a&&(mt===2||mt===9)||r.cancelPendingCommit!==null)return c!==null&&c!==null&&pn(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&&pn(c),po(o)){case 2:case 8:o=ke;break;case 32:o=He;break;case 268435456:o=et;break;default:o=He}return c=$2.bind(null,r),o=Ft(o,c),r.callbackPriority=a,r.callbackNode=o,a}return c!==null&&c!==null&&pn(c),r.callbackPriority=2,r.callbackNode=null,2}function $2(r,a){if(ln!==0&&ln!==5)return r.callbackNode=null,r.callbackPriority=0,null;var o=r.callbackNode;if(Wu()&&r.callbackNode!==o)return null;var c=at;return c=Mr(r,r===bt?c:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),c===0?null:(z2(r,c,a),G2(r,kt()),r.callbackNode!=null&&r.callbackNode===o?$2.bind(null,r):null)}function X2(r,a){if(Wu())return null;z2(r,a,!0)}function fx(){kx(function(){(ft&6)!==0?Ft(fe,cx):Y2()})}function Bh(){if(Pi===0){var r=vl;r===0&&(r=Pr,Pr<<=1,(Pr&261888)===0&&(Pr=256)),Pi=r}return Pi}function P2(r){return r==null||typeof r=="symbol"||typeof r=="boolean"?null:typeof r=="function"?r:uu(""+r)}function Z2(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 hx(r,a,o,c,g){if(a==="submit"&&o&&o.stateNode===g){var y=P2((g[yn]||null).action),k=c.submitter;k&&(a=(a=k[yn]||null)?P2(a.formAction):k.getAttribute("formAction"),a!==null&&(y=a,k=null));var R=new du("action","action",null,c,g);r.push({event:R,listeners:[{instance:null,listener:function(){if(c.defaultPrevented){if(Pi!==0){var K=k?Z2(g,k):new FormData(g);th(o,{pending:!0,data:K,method:g.method,action:y},null,K)}}else typeof y=="function"&&(R.preventDefault(),K=k?Z2(g,k):new FormData(g),th(o,{pending:!0,data:K,method:g.method,action:y},y,K))},currentTarget:g}]})}}for(var Lh=0;Lh<vf.length;Lh++){var Hh=vf[Lh],dx=Hh.toLowerCase(),mx=Hh[0].toUpperCase()+Hh.slice(1);xr(dx,"on"+mx)}xr(Tp,"onAnimationEnd"),xr(zp,"onAnimationIteration"),xr(Cp,"onAnimationStart"),xr("dblclick","onDoubleClick"),xr("focusin","onFocus"),xr("focusout","onBlur"),xr(N9,"onTransitionRun"),xr(D9,"onTransitionStart"),xr(_9,"onTransitionCancel"),xr(Mp,"onTransitionEnd"),Di("onMouseEnter",["mouseout","mouseover"]),Di("onMouseLeave",["mouseout","mouseover"]),Di("onPointerEnter",["pointerout","pointerover"]),Di("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 Ko="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(" "),px=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ko));function Q2(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 R=c[k],K=R.instance,oe=R.currentTarget;if(R=R.listener,K!==y&&g.isPropagationStopped())break e;y=R,g.currentTarget=oe;try{y(g)}catch(de){gu(de)}g.currentTarget=null,y=K}else for(k=0;k<c.length;k++){if(R=c[k],K=R.instance,oe=R.currentTarget,R=R.listener,K!==y&&g.isPropagationStopped())break e;y=R,g.currentTarget=oe;try{y(g)}catch(de){gu(de)}g.currentTarget=null,y=K}}}}function nt(r,a){var o=a[nl];o===void 0&&(o=a[nl]=new Set);var c=r+"__bubble";o.has(c)||(K2(a,r,2,!1),o.add(c))}function qh(r,a,o){var c=0;a&&(c|=4),K2(o,r,c,a)}var n0="_reactListening"+Math.random().toString(36).slice(2);function jh(r){if(!r[n0]){r[n0]=!0,ru.forEach(function(o){o!=="selectionchange"&&(px.has(o)||qh(o,!1,r),qh(o,!0,r))});var a=r.nodeType===9?r:r.ownerDocument;a===null||a[n0]||(a[n0]=!0,qh("selectionchange",!1,a))}}function K2(r,a,o,c){switch(Tg(a)){case 2:var g=Vx;break;case 8:g=Yx;break;default:g=e1}o=g.bind(null,a,o,r),g=void 0,!af||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 Ih(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 R=c.stateNode.containerInfo;if(R===g)break;if(k===4)for(k=c.return;k!==null;){var K=k.tag;if((K===3||K===4)&&k.stateNode.containerInfo===g)return;k=k.return}for(;R!==null;){if(k=zi(R),k===null)return;if(K=k.tag,K===5||K===6||K===26||K===27){c=y=k;continue e}R=R.parentNode}}c=c.return}np(function(){var oe=y,de=nf(o),pe=[];e:{var se=Np.get(r);if(se!==void 0){var ue=du,Ne=r;switch(r){case"keypress":if(fu(o)===0)break e;case"keydown":case"keyup":ue=s9;break;case"focusin":Ne="focus",ue=uf;break;case"focusout":Ne="blur",ue=uf;break;case"beforeblur":case"afterblur":ue=uf;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=ap;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ue=Qv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ue=f9;break;case Tp:case zp:case Cp:ue=Wv;break;case Mp:ue=d9;break;case"scroll":case"scrollend":ue=Pv;break;case"wheel":ue=p9;break;case"copy":case"cut":case"paste":ue=t9;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ue=op;break;case"toggle":case"beforetoggle":ue=y9}var Fe=(a&4)!==0,xt=!Fe&&(r==="scroll"||r==="scrollend"),re=Fe?se!==null?se+"Capture":null:se;Fe=[];for(var ee=oe,ae;ee!==null;){var me=ee;if(ae=me.stateNode,me=me.tag,me!==5&&me!==26&&me!==27||ae===null||re===null||(me=xo(ee,re),me!=null&&Fe.push(Jo(ee,me,ae))),xt)break;ee=ee.return}0<Fe.length&&(se=new ue(se,Ne,null,o,de),pe.push({event:se,listeners:Fe}))}}if((a&7)===0){e:{if(se=r==="mouseover"||r==="pointerover",ue=r==="mouseout"||r==="pointerout",se&&o!==tf&&(Ne=o.relatedTarget||o.fromElement)&&(zi(Ne)||Ne[Zr]))break e;if((ue||se)&&(se=de.window===de?de:(se=de.ownerDocument)?se.defaultView||se.parentWindow:window,ue?(Ne=o.relatedTarget||o.toElement,ue=oe,Ne=Ne?zi(Ne):null,Ne!==null&&(xt=s(Ne),Fe=Ne.tag,Ne!==xt||Fe!==5&&Fe!==27&&Fe!==6)&&(Ne=null)):(ue=null,Ne=oe),ue!==Ne)){if(Fe=ap,me="onMouseLeave",re="onMouseEnter",ee="mouse",(r==="pointerout"||r==="pointerover")&&(Fe=op,me="onPointerLeave",re="onPointerEnter",ee="pointer"),xt=ue==null?se:Mi(ue),ae=Ne==null?se:Mi(Ne),se=new Fe(me,ee+"leave",ue,o,de),se.target=xt,se.relatedTarget=ae,me=null,zi(de)===oe&&(Fe=new Fe(re,ee+"enter",Ne,o,de),Fe.target=ae,Fe.relatedTarget=xt,me=Fe),xt=me,ue&&Ne)t:{for(Fe=gx,re=ue,ee=Ne,ae=0,me=re;me;me=Fe(me))ae++;me=0;for(var je=ee;je;je=Fe(je))me++;for(;0<ae-me;)re=Fe(re),ae--;for(;0<me-ae;)ee=Fe(ee),me--;for(;ae--;){if(re===ee||ee!==null&&re===ee.alternate){Fe=re;break t}re=Fe(re),ee=Fe(ee)}Fe=null}else Fe=null;ue!==null&&J2(pe,se,ue,Fe,!1),Ne!==null&&xt!==null&&J2(pe,xt,Ne,Fe,!0)}}e:{if(se=oe?Mi(oe):window,ue=se.nodeName&&se.nodeName.toLowerCase(),ue==="select"||ue==="input"&&se.type==="file")var ut=pp;else if(dp(se))if(gp)ut=z9;else{ut=A9;var De=E9}else ue=se.nodeName,!ue||ue.toLowerCase()!=="input"||se.type!=="checkbox"&&se.type!=="radio"?oe&&ef(oe.elementType)&&(ut=pp):ut=T9;if(ut&&(ut=ut(r,oe))){mp(pe,ut,o,de);break e}De&&De(r,se,oe),r==="focusout"&&oe&&se.type==="number"&&oe.memoizedProps.value!=null&&vo(se,"number",se.value)}switch(De=oe?Mi(oe):window,r){case"focusin":(dp(De)||De.contentEditable==="true")&&(cl=De,pf=oe,zo=null);break;case"focusout":zo=pf=cl=null;break;case"mousedown":gf=!0;break;case"contextmenu":case"mouseup":case"dragend":gf=!1,Ep(pe,o,de);break;case"selectionchange":if(M9)break;case"keydown":case"keyup":Ep(pe,o,de)}var Ze;if(ff)e:{switch(r){case"compositionstart":var lt="onCompositionStart";break e;case"compositionend":lt="onCompositionEnd";break e;case"compositionupdate":lt="onCompositionUpdate";break e}lt=void 0}else ul?fp(r,o)&&(lt="onCompositionEnd"):r==="keydown"&&o.keyCode===229&&(lt="onCompositionStart");lt&&(sp&&o.locale!=="ko"&&(ul||lt!=="onCompositionStart"?lt==="onCompositionEnd"&&ul&&(Ze=rp()):(_i=de,lf="value"in _i?_i.value:_i.textContent,ul=!0)),De=r0(oe,lt),0<De.length&&(lt=new lp(lt,r,null,o,de),pe.push({event:lt,listeners:De}),Ze?lt.data=Ze:(Ze=hp(o),Ze!==null&&(lt.data=Ze)))),(Ze=x9?b9(r,o):w9(r,o))&&(lt=r0(oe,"onBeforeInput"),0<lt.length&&(De=new lp("onBeforeInput","beforeinput",null,o,de),pe.push({event:De,listeners:lt}),De.data=Ze)),hx(pe,r,oe,o,de)}Q2(pe,a)})}function Jo(r,a,o){return{instance:r,listener:a,currentTarget:o}}function r0(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=xo(r,o),g!=null&&c.unshift(Jo(r,g,y)),g=xo(r,a),g!=null&&c.push(Jo(r,g,y))),r.tag===3)return c;r=r.return}return[]}function gx(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5&&r.tag!==27);return r||null}function J2(r,a,o,c,g){for(var y=a._reactName,k=[];o!==null&&o!==c;){var R=o,K=R.alternate,oe=R.stateNode;if(R=R.tag,K!==null&&K===c)break;R!==5&&R!==26&&R!==27||oe===null||(K=oe,g?(oe=xo(o,y),oe!=null&&k.unshift(Jo(o,oe,K))):g||(oe=xo(o,y),oe!=null&&k.push(Jo(o,oe,K)))),o=o.return}k.length!==0&&r.push({event:a,listeners:k})}var yx=/\r\n?/g,vx=/\u0000|\uFFFD/g;function W2(r){return(typeof r=="string"?r:""+r).replace(yx,`
|
|
9
|
-
`).replace(vx,"")}function eg(r,a){return a=W2(a),W2(r)===a}function vt(r,a,o,c,g,y){switch(o){case"children":typeof c=="string"?a==="body"||a==="textarea"&&c===""||ll(r,c):(typeof c=="number"||typeof c=="bigint")&&a!=="body"&&ll(r,""+c);break;case"className":il(r,"class",c);break;case"tabIndex":il(r,"tabindex",c);break;case"dir":case"role":case"viewBox":case"width":case"height":il(r,o,c);break;case"style":ep(r,c,y);break;case"data":if(a!=="object"){il(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=uu(""+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"&&vt(r,a,"name",g.name,g,null),vt(r,a,"formEncType",g.formEncType,g,null),vt(r,a,"formMethod",g.formMethod,g,null),vt(r,a,"formTarget",g.formTarget,g,null)):(vt(r,a,"encType",g.encType,g,null),vt(r,a,"method",g.method,g,null),vt(r,a,"target",g.target,g,null)));if(c==null||typeof c=="symbol"||typeof c=="boolean"){r.removeAttribute(o);break}c=uu(""+c),r.setAttribute(o,c);break;case"onClick":c!=null&&(r.onclick=Jr);break;case"onScroll":c!=null&&nt("scroll",r);break;case"onScrollEnd":c!=null&&nt("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=uu(""+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":nt("beforetoggle",r),nt("toggle",r),rl(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":rl(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=$v.get(o)||o,rl(r,o,c))}}function Uh(r,a,o,c,g,y){switch(o){case"style":ep(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"?ll(r,c):(typeof c=="number"||typeof c=="bigint")&&ll(r,""+c);break;case"onScroll":c!=null&&nt("scroll",r);break;case"onScrollEnd":c!=null&&nt("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(!iu.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[yn]||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,""):rl(r,o,c)}}}function mn(r,a,o){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":nt("error",r),nt("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:vt(r,a,y,k,o,null)}}g&&vt(r,a,"srcSet",o.srcSet,o,null),c&&vt(r,a,"src",o.src,o,null);return;case"input":nt("invalid",r);var R=y=k=g=null,K=null,oe=null;for(c in o)if(o.hasOwnProperty(c)){var de=o[c];if(de!=null)switch(c){case"name":g=de;break;case"type":k=de;break;case"checked":K=de;break;case"defaultChecked":oe=de;break;case"value":y=de;break;case"defaultValue":R=de;break;case"children":case"dangerouslySetInnerHTML":if(de!=null)throw Error(i(137,a));break;default:vt(r,a,c,de,o,null)}}su(r,y,R,K,oe,k,g,!1);return;case"select":nt("invalid",r),c=k=y=null;for(g in o)if(o.hasOwnProperty(g)&&(R=o[g],R!=null))switch(g){case"value":y=R;break;case"defaultValue":k=R;break;case"multiple":c=R;default:vt(r,a,g,R,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":nt("invalid",r),y=g=c=null;for(k in o)if(o.hasOwnProperty(k)&&(R=o[k],R!=null))switch(k){case"value":c=R;break;case"defaultValue":g=R;break;case"children":y=R;break;case"dangerouslySetInnerHTML":if(R!=null)throw Error(i(91));break;default:vt(r,a,k,R,o,null)}Jm(r,c,g,y);return;case"option":for(K in o)o.hasOwnProperty(K)&&(c=o[K],c!=null)&&(K==="selected"?r.selected=c&&typeof c!="function"&&typeof c!="symbol":vt(r,a,K,c,o,null));return;case"dialog":nt("beforetoggle",r),nt("toggle",r),nt("cancel",r),nt("close",r);break;case"iframe":case"object":nt("load",r);break;case"video":case"audio":for(c=0;c<Ko.length;c++)nt(Ko[c],r);break;case"image":nt("error",r),nt("load",r);break;case"details":nt("toggle",r);break;case"embed":case"source":case"link":nt("error",r),nt("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(oe in o)if(o.hasOwnProperty(oe)&&(c=o[oe],c!=null))switch(oe){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,a));default:vt(r,a,oe,c,o,null)}return;default:if(ef(a)){for(de in o)o.hasOwnProperty(de)&&(c=o[de],c!==void 0&&Uh(r,a,de,c,o,void 0));return}}for(R in o)o.hasOwnProperty(R)&&(c=o[R],c!=null&&vt(r,a,R,c,o,null))}function xx(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,R=null,K=null,oe=null,de=null;for(ue in o){var pe=o[ue];if(o.hasOwnProperty(ue)&&pe!=null)switch(ue){case"checked":break;case"value":break;case"defaultValue":K=pe;default:c.hasOwnProperty(ue)||vt(r,a,ue,null,c,pe)}}for(var se in c){var ue=c[se];if(pe=o[se],c.hasOwnProperty(se)&&(ue!=null||pe!=null))switch(se){case"type":y=ue;break;case"name":g=ue;break;case"checked":oe=ue;break;case"defaultChecked":de=ue;break;case"value":k=ue;break;case"defaultValue":R=ue;break;case"children":case"dangerouslySetInnerHTML":if(ue!=null)throw Error(i(137,a));break;default:ue!==pe&&vt(r,a,se,ue,c,pe)}}ba(r,k,R,K,oe,de,y,g);return;case"select":ue=k=R=se=null;for(y in o)if(K=o[y],o.hasOwnProperty(y)&&K!=null)switch(y){case"value":break;case"multiple":ue=K;default:c.hasOwnProperty(y)||vt(r,a,y,null,c,K)}for(g in c)if(y=c[g],K=o[g],c.hasOwnProperty(g)&&(y!=null||K!=null))switch(g){case"value":se=y;break;case"defaultValue":R=y;break;case"multiple":k=y;default:y!==K&&vt(r,a,g,y,c,K)}a=R,o=k,c=ue,se!=null?Kr(r,!!o,se,!1):!!c!=!!o&&(a!=null?Kr(r,!!o,a,!0):Kr(r,!!o,o?[]:"",!1));return;case"textarea":ue=se=null;for(R in o)if(g=o[R],o.hasOwnProperty(R)&&g!=null&&!c.hasOwnProperty(R))switch(R){case"value":break;case"children":break;default:vt(r,a,R,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":se=g;break;case"defaultValue":ue=g;break;case"children":break;case"dangerouslySetInnerHTML":if(g!=null)throw Error(i(91));break;default:g!==y&&vt(r,a,k,g,c,y)}Km(r,se,ue);return;case"option":for(var Ne in o)se=o[Ne],o.hasOwnProperty(Ne)&&se!=null&&!c.hasOwnProperty(Ne)&&(Ne==="selected"?r.selected=!1:vt(r,a,Ne,null,c,se));for(K in c)se=c[K],ue=o[K],c.hasOwnProperty(K)&&se!==ue&&(se!=null||ue!=null)&&(K==="selected"?r.selected=se&&typeof se!="function"&&typeof se!="symbol":vt(r,a,K,se,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 Fe in o)se=o[Fe],o.hasOwnProperty(Fe)&&se!=null&&!c.hasOwnProperty(Fe)&&vt(r,a,Fe,null,c,se);for(oe in c)if(se=c[oe],ue=o[oe],c.hasOwnProperty(oe)&&se!==ue&&(se!=null||ue!=null))switch(oe){case"children":case"dangerouslySetInnerHTML":if(se!=null)throw Error(i(137,a));break;default:vt(r,a,oe,se,c,ue)}return;default:if(ef(a)){for(var xt in o)se=o[xt],o.hasOwnProperty(xt)&&se!==void 0&&!c.hasOwnProperty(xt)&&Uh(r,a,xt,void 0,c,se);for(de in c)se=c[de],ue=o[de],!c.hasOwnProperty(de)||se===ue||se===void 0&&ue===void 0||Uh(r,a,de,se,c,ue);return}}for(var re in o)se=o[re],o.hasOwnProperty(re)&&se!=null&&!c.hasOwnProperty(re)&&vt(r,a,re,null,c,se);for(pe in c)se=c[pe],ue=o[pe],!c.hasOwnProperty(pe)||se===ue||se==null&&ue==null||vt(r,a,pe,se,c,ue)}function tg(r){switch(r){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function bx(){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,R=g.duration;if(y&&R&&tg(k)){for(k=0,R=g.responseEnd,c+=1;c<o.length;c++){var K=o[c],oe=K.startTime;if(oe>R)break;var de=K.transferSize,pe=K.initiatorType;de&&tg(pe)&&(K=K.responseEnd,k+=de*(K<R?1:(R-oe)/(K-oe)))}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 Fh=null,Vh=null;function i0(r){return r.nodeType===9?r:r.ownerDocument}function ng(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 rg(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 Yh(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 Gh=null;function wx(){var r=window.event;return r&&r.type==="popstate"?r===Gh?!1:(Gh=r,!0):(Gh=null,!1)}var ig=typeof setTimeout=="function"?setTimeout:void 0,Sx=typeof clearTimeout=="function"?clearTimeout:void 0,ag=typeof Promise=="function"?Promise:void 0,kx=typeof queueMicrotask=="function"?queueMicrotask:typeof ag<"u"?function(r){return ag.resolve(null).then(r).catch(Ex)}:ig;function Ex(r){setTimeout(function(){throw r})}function Zi(r){return r==="head"}function lg(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),Hl(a);return}c--}else if(o==="$"||o==="$?"||o==="$~"||o==="$!"||o==="&")c++;else if(o==="html")Wo(r.ownerDocument.documentElement);else if(o==="head"){o=r.ownerDocument.head,Wo(o);for(var y=o.firstChild;y;){var k=y.nextSibling,R=y.nodeName;y[va]||R==="SCRIPT"||R==="STYLE"||R==="LINK"&&y.rel.toLowerCase()==="stylesheet"||o.removeChild(y),y=k}}else o==="body"&&Wo(r.ownerDocument.body);o=g}while(o);Hl(a)}function og(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 $h(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":$h(o),go(o);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(o.rel.toLowerCase()==="stylesheet")continue}r.removeChild(o)}}function Ax(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[va])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 Tx(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 sg(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 Xh(r){return r.data==="$?"||r.data==="$~"}function Ph(r){return r.data==="$!"||r.data==="$?"&&r.ownerDocument.readyState!=="loading"}function zx(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 Zh=null;function ug(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 cg(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 fg(r,a,o){switch(a=i0(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 Wo(r){for(var a=r.attributes;a.length;)r.removeAttributeNode(a[0]);go(r)}var dr=new Map,hg=new Set;function a0(r){return typeof r.getRootNode=="function"?r.getRootNode():r.nodeType===9?r:r.ownerDocument}var mi=Y.d;Y.d={f:Cx,r:Mx,D:Nx,C:Dx,L:_x,m:Ox,X:Bx,S:Rx,M:Lx};function Cx(){var r=mi.f(),a=Qu();return r||a}function Mx(r){var a=Ci(r);a!==null&&a.tag===5&&a.type==="form"?M4(a):mi.r(r)}var Rl=typeof document>"u"?null:document;function dg(r,a,o){var c=Rl;if(c&&typeof a=="string"&&a){var g=_n(a);g='link[rel="'+r+'"][href="'+g+'"]',typeof o=="string"&&(g+='[crossorigin="'+o+'"]'),hg.has(g)||(hg.add(g),r={rel:r,crossOrigin:o,href:a},c.querySelector(g)===null&&(a=c.createElement("link"),mn(a,"link",r),Gt(a),c.head.appendChild(a)))}}function Nx(r){mi.D(r),dg("dns-prefetch",r,null)}function Dx(r,a){mi.C(r,a),dg("preconnect",r,a)}function _x(r,a,o){mi.L(r,a,o);var c=Rl;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=Bl(r);break;case"script":y=Ll(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(es(y))||a==="script"&&c.querySelector(ts(y))||(a=c.createElement("link"),mn(a,"link",r),Gt(a),c.head.appendChild(a)))}}function Ox(r,a){mi.m(r,a);var o=Rl;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=Ll(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(ts(y)))return}c=o.createElement("link"),mn(c,"link",r),Gt(c),o.head.appendChild(c)}}}function Rx(r,a,o){mi.S(r,a,o);var c=Rl;if(c&&r){var g=Ni(c).hoistableStyles,y=Bl(r);a=a||"default";var k=g.get(y);if(!k){var R={loading:0,preload:null};if(k=c.querySelector(es(y)))R.loading=5;else{r=m({rel:"stylesheet",href:r,"data-precedence":a},o),(o=dr.get(y))&&Qh(r,o);var K=k=c.createElement("link");Gt(K),mn(K,"link",r),K._p=new Promise(function(oe,de){K.onload=oe,K.onerror=de}),K.addEventListener("load",function(){R.loading|=1}),K.addEventListener("error",function(){R.loading|=2}),R.loading|=4,l0(k,a,c)}k={type:"stylesheet",instance:k,count:1,state:R},g.set(y,k)}}}function Bx(r,a){mi.X(r,a);var o=Rl;if(o&&r){var c=Ni(o).hoistableScripts,g=Ll(r),y=c.get(g);y||(y=o.querySelector(ts(g)),y||(r=m({src:r,async:!0},a),(a=dr.get(g))&&Kh(r,a),y=o.createElement("script"),Gt(y),mn(y,"link",r),o.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},c.set(g,y))}}function Lx(r,a){mi.M(r,a);var o=Rl;if(o&&r){var c=Ni(o).hoistableScripts,g=Ll(r),y=c.get(g);y||(y=o.querySelector(ts(g)),y||(r=m({src:r,async:!0,type:"module"},a),(a=dr.get(g))&&Kh(r,a),y=o.createElement("script"),Gt(y),mn(y,"link",r),o.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},c.set(g,y))}}function mg(r,a,o,c){var g=(g=xe.current)?a0(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=Bl(o.href),o=Ni(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=Bl(o.href);var y=Ni(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(es(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||Hx(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=Ll(o),o=Ni(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 Bl(r){return'href="'+_n(r)+'"'}function es(r){return'link[rel="stylesheet"]['+r+"]"}function pg(r){return m({},r,{"data-precedence":r.precedence,precedence:null})}function Hx(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}),mn(a,"link",o),Gt(a),r.head.appendChild(a))}function Ll(r){return'[src="'+_n(r)+'"]'}function ts(r){return"script[async]"+r}function gg(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,Gt(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"),Gt(c),mn(c,"style",g),l0(c,o.precedence,r),a.instance=c;case"stylesheet":g=Bl(o.href);var y=r.querySelector(es(g));if(y)return a.state.loading|=4,a.instance=y,Gt(y),y;c=pg(o),(g=dr.get(g))&&Qh(c,g),y=(r.ownerDocument||r).createElement("link"),Gt(y);var k=y;return k._p=new Promise(function(R,K){k.onload=R,k.onerror=K}),mn(y,"link",c),a.state.loading|=4,l0(y,o.precedence,r),a.instance=y;case"script":return y=Ll(o.src),(g=r.querySelector(ts(y)))?(a.instance=g,Gt(g),g):(c=o,(g=dr.get(y))&&(c=m({},o),Kh(c,g)),r=r.ownerDocument||r,g=r.createElement("script"),Gt(g),mn(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,l0(c,o.precedence,r));return a.instance}function l0(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 R=c[k];if(R.dataset.precedence===a)y=R;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 Qh(r,a){r.crossOrigin==null&&(r.crossOrigin=a.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=a.referrerPolicy),r.title==null&&(r.title=a.title)}function Kh(r,a){r.crossOrigin==null&&(r.crossOrigin=a.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=a.referrerPolicy),r.integrity==null&&(r.integrity=a.integrity)}var o0=null;function yg(r,a,o){if(o0===null){var c=new Map,g=o0=new Map;g.set(o,c)}else g=o0,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[va]||y[an]||r==="link"&&y.getAttribute("rel")==="stylesheet")&&y.namespaceURI!=="http://www.w3.org/2000/svg"){var k=y.getAttribute(a)||"";k=r+k;var R=c.get(k);R?R.push(y):c.set(k,[y])}}return c}function vg(r,a,o){r=r.ownerDocument||r,r.head.insertBefore(o,a==="title"?r.querySelector("head > title"):null)}function qx(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 xg(r){return!(r.type==="stylesheet"&&(r.state.loading&3)===0)}function jx(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=Bl(c.href),y=a.querySelector(es(g));if(y){a=y._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(r.count++,r=s0.bind(r),a.then(r,r)),o.state.loading|=4,o.instance=y,Gt(y);return}y=a.ownerDocument||a,c=pg(c),(g=dr.get(g))&&Qh(c,g),y=y.createElement("link"),Gt(y);var k=y;k._p=new Promise(function(R,K){k.onload=R,k.onerror=K}),mn(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=s0.bind(r),a.addEventListener("load",o),a.addEventListener("error",o))}}var Jh=0;function Ix(r,a){return r.stylesheets&&r.count===0&&c0(r,r.stylesheets),0<r.count||0<r.imgCount?function(o){var c=setTimeout(function(){if(r.stylesheets&&c0(r,r.stylesheets),r.unsuspend){var y=r.unsuspend;r.unsuspend=null,y()}},6e4+a);0<r.imgBytes&&Jh===0&&(Jh=62500*bx());var g=setTimeout(function(){if(r.waitingForImages=!1,r.count===0&&(r.stylesheets&&c0(r,r.stylesheets),r.unsuspend)){var y=r.unsuspend;r.unsuspend=null,y()}},(r.imgBytes>Jh?50:800)+a);return r.unsuspend=o,function(){r.unsuspend=null,clearTimeout(c),clearTimeout(g)}}:null}function s0(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)c0(this,this.stylesheets);else if(this.unsuspend){var r=this.unsuspend;this.unsuspend=null,r()}}}var u0=null;function c0(r,a){r.stylesheets=null,r.unsuspend!==null&&(r.count++,u0=new Map,a.forEach(Ux,r),u0=null,s0.call(r))}function Ux(r,a){if(!(a.state.loading&4)){var o=u0.get(r);if(o)var c=o.get(null);else{o=new Map,u0.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=s0.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 ns={$$typeof:z,Provider:null,Consumer:null,_currentValue:J,_currentValue2:J,_threadCount:0};function Fx(r,a,o,c,g,y,k,R,K){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=ya(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ya(0),this.hiddenUpdates=ya(null),this.identifierPrefix=c,this.onUncaughtError=g,this.onCaughtError=y,this.onRecoverableError=k,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=K,this.incompleteTransitions=new Map}function bg(r,a,o,c,g,y,k,R,K,oe,de,pe){return r=new Fx(r,a,o,k,K,oe,de,pe,R),a=1,y===!0&&(a|=24),y=$n(3,null,null,a),r.current=y,y.stateNode=r,a=Df(),a.refCount++,r.pooledCache=a,a.refCount++,y.memoizedState={element:c,isDehydrated:o,cache:a},Bf(y),r}function wg(r){return r?(r=dl,r):dl}function Sg(r,a,o,c,g,y){g=wg(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=ji(r,c,a),o!==null&&(qn(o,r,a),Ro(o,r,a))}function kg(r,a){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var o=r.retryLane;r.retryLane=o!==0&&o<a?o:a}}function Wh(r,a){kg(r,a),(r=r.alternate)&&kg(r,a)}function Eg(r){if(r.tag===13||r.tag===31){var a=Ea(r,67108864);a!==null&&qn(a,r,67108864),Wh(r,67108864)}}function Ag(r){if(r.tag===13||r.tag===31){var a=Kn();a=mo(a);var o=Ea(r,a);o!==null&&qn(o,r,a),Wh(r,a)}}var f0=!0;function Vx(r,a,o,c){var g=L.T;L.T=null;var y=Y.p;try{Y.p=2,e1(r,a,o,c)}finally{Y.p=y,L.T=g}}function Yx(r,a,o,c){var g=L.T;L.T=null;var y=Y.p;try{Y.p=8,e1(r,a,o,c)}finally{Y.p=y,L.T=g}}function e1(r,a,o,c){if(f0){var g=t1(c);if(g===null)Ih(r,a,c,h0,o),zg(r,c);else if($x(g,r,a,o,c))c.stopPropagation();else if(zg(r,c),a&4&&-1<Gx.indexOf(r)){for(;g!==null;){var y=Ci(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 R=y;for(R.pendingLanes|=2,R.entangledLanes|=2;k;){var K=1<<31-_e(k);R.entanglements[1]|=K,k&=~K}Lr(y),(ft&6)===0&&(Pu=kt()+500,Qo(0))}}break;case 31:case 13:R=Ea(y,2),R!==null&&qn(R,y,2),Qu(),Wh(y,2)}if(y=t1(c),y===null&&Ih(r,a,c,h0,o),y===g)break;g=y}g!==null&&c.stopPropagation()}else Ih(r,a,c,null,o)}}function t1(r){return r=nf(r),n1(r)}var h0=null;function n1(r){if(h0=null,r=zi(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 h0=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 ke:return 8;case He:case Ge:return 32;case et:return 268435456;default:return 32}default:return 32}}var r1=!1,Qi=null,Ki=null,Ji=null,rs=new Map,is=new Map,Wi=[],Gx="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 zg(r,a){switch(r){case"focusin":case"focusout":Qi=null;break;case"dragenter":case"dragleave":Ki=null;break;case"mouseover":case"mouseout":Ji=null;break;case"pointerover":case"pointerout":rs.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":is.delete(a.pointerId)}}function as(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=Ci(a),a!==null&&Eg(a)),r):(r.eventSystemFlags|=c,a=r.targetContainers,g!==null&&a.indexOf(g)===-1&&a.push(g),r)}function $x(r,a,o,c,g){switch(a){case"focusin":return Qi=as(Qi,r,a,o,c,g),!0;case"dragenter":return Ki=as(Ki,r,a,o,c,g),!0;case"mouseover":return Ji=as(Ji,r,a,o,c,g),!0;case"pointerover":var y=g.pointerId;return rs.set(y,as(rs.get(y)||null,r,a,o,c,g)),!0;case"gotpointercapture":return y=g.pointerId,is.set(y,as(is.get(y)||null,r,a,o,c,g)),!0}return!1}function Cg(r){var a=zi(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,eu(r.priority,function(){Ag(o)});return}}else if(a===31){if(a=f(o),a!==null){r.blockedOn=a,eu(r.priority,function(){Ag(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 d0(r){if(r.blockedOn!==null)return!1;for(var a=r.targetContainers;0<a.length;){var o=t1(r.nativeEvent);if(o===null){o=r.nativeEvent;var c=new o.constructor(o.type,o);tf=c,o.target.dispatchEvent(c),tf=null}else return a=Ci(o),a!==null&&Eg(a),r.blockedOn=o,!1;a.shift()}return!0}function Mg(r,a,o){d0(r)&&o.delete(a)}function Xx(){r1=!1,Qi!==null&&d0(Qi)&&(Qi=null),Ki!==null&&d0(Ki)&&(Ki=null),Ji!==null&&d0(Ji)&&(Ji=null),rs.forEach(Mg),is.forEach(Mg)}function m0(r,a){r.blockedOn===a&&(r.blockedOn=null,r1||(r1=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Xx)))}var p0=null;function Ng(r){p0!==r&&(p0=r,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){p0===r&&(p0=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(n1(c||o)===null)continue;break}var y=Ci(o);y!==null&&(r.splice(a,3),a-=3,th(y,{pending:!0,data:g,method:o.method,action:c},c,g))}}))}function Hl(r){function a(K){return m0(K,r)}Qi!==null&&m0(Qi,r),Ki!==null&&m0(Ki,r),Ji!==null&&m0(Ji,r),rs.forEach(a),is.forEach(a);for(var o=0;o<Wi.length;o++){var c=Wi[o];c.blockedOn===r&&(c.blockedOn=null)}for(;0<Wi.length&&(o=Wi[0],o.blockedOn===null);)Cg(o),o.blockedOn===null&&Wi.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[yn]||null;if(typeof y=="function")k||Ng(o);else if(k){var R=null;if(y&&y.hasAttribute("formAction")){if(g=y,k=y[yn]||null)R=k.formAction;else if(n1(g)!==null)continue}else R=k.action;typeof R=="function"?o[c+1]=R:(o.splice(c,3),c-=3),Ng(o)}}}function Dg(){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 i1(r){this._internalRoot=r}g0.prototype.render=i1.prototype.render=function(r){var a=this._internalRoot;if(a===null)throw Error(i(409));var o=a.current,c=Kn();Sg(o,c,r,a,null,null)},g0.prototype.unmount=i1.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var a=r.containerInfo;Sg(r.current,2,null,r,null,null),Qu(),a[Zr]=null}};function g0(r){this._internalRoot=r}g0.prototype.unstable_scheduleHydration=function(r){if(r){var a=Ws();r={blockedOn:null,target:r,priority:a};for(var o=0;o<Wi.length&&a!==0&&a<Wi[o].priority;o++);Wi.splice(o,0,r),o===0&&Cg(r)}};var _g=t.version;if(_g!=="19.2.6")throw Error(i(527,_g,"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 Px={bundleType:0,version:"19.2.6",rendererPackageName:"react-dom",currentDispatcherRef:L,reconcilerVersion:"19.2.6"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var y0=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!y0.isDisabled&&y0.supportsFiber)try{Ct=y0.inject(Px),Rt=y0}catch{}}return os.createRoot=function(r,a){if(!l(r))throw Error(i(299));var o=!1,c="",g=j4,y=I4,k=U4;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=bg(r,1,!1,null,null,o,c,null,g,y,k,Dg),r[Zr]=a.current,jh(r),new i1(a)},os.hydrateRoot=function(r,a,o){if(!l(r))throw Error(i(299));var c=!1,g="",y=j4,k=I4,R=U4,K=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&&(R=o.onRecoverableError),o.formState!==void 0&&(K=o.formState)),a=bg(r,1,!0,a,o??null,c,g,K,y,k,R,Dg),a.context=wg(null),o=a.current,c=Kn(),c=mo(c),g=qi(c),g.callback=null,ji(o,g,c),o=c,a.current.lanes=o,Dr(a,o),Lr(a),r[Zr]=a.current,jh(r),new g0(a)},os.version="19.2.6",os}var Fg;function ib(){if(Fg)return o1.exports;Fg=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(),o1.exports=rb(),o1.exports}var ab=ib();function Vg(e){const t=[];let n=[];for(const i of e){if(i.role==="tool"){n.push(i);continue}Yg(t,n),n=[],t.push({kind:"message",message:i})}return Yg(t,n),t}function Yg(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:lb(t)}})}function lb(e){const t=[];for(const n of e){const i=ob(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 ob(e){return e.content.startsWith("Result from")?"result":"call"}class js{constructor(t,n,i){this.normal=n,this.property=t,i&&(this.space=i)}}js.prototype.normal={};js.prototype.property={};js.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 js(n,i,t)}function ks(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 sb=0;const Qe=Qa(),Qt=Qa(),id=Qa(),Te=Qa(),Et=Qa(),Gl=Qa(),Jn=Qa();function Qa(){return 2**++sb}const ad=Object.freeze(Object.defineProperty({__proto__:null,boolean:Qe,booleanish:Qt,commaOrSpaceSeparated:Jn,commaSeparated:Gl,number:Te,overloadedBoolean:id,spaceSeparated:Et},Symbol.toStringTag,{value:"Module"})),f1=Object.keys(ad);class Kd extends Fn{constructor(t,n,i,l){let s=-1;if(super(t,n),Gg(this,"space",l),typeof i=="number")for(;++s<f1.length;){const u=f1[s];Gg(this,f1[s],(i&ad[u])===ad[u])}}}Kd.prototype.defined=!0;function Gg(e,t,n){n&&(e[t]=n)}function lo(e){const t={},n={};for(const[i,l]of Object.entries(e.properties)){const s=new Kd(i,e.transform(e.attributes||{},i),l,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(s.mustUseProperty=!0),t[i]=s,n[ks(i)]=i,n[ks(s.attribute)]=i}return new js(t,n,e.space)}const Y6=lo({properties:{ariaActiveDescendant:null,ariaAtomic:Qt,ariaAutoComplete:null,ariaBusy:Qt,ariaChecked:Qt,ariaColCount:Te,ariaColIndex:Te,ariaColSpan:Te,ariaControls:Et,ariaCurrent:null,ariaDescribedBy:Et,ariaDetails:null,ariaDisabled:Qt,ariaDropEffect:Et,ariaErrorMessage:null,ariaExpanded:Qt,ariaFlowTo:Et,ariaGrabbed:Qt,ariaHasPopup:null,ariaHidden:Qt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Et,ariaLevel:Te,ariaLive:null,ariaModal:Qt,ariaMultiLine:Qt,ariaMultiSelectable:Qt,ariaOrientation:null,ariaOwns:Et,ariaPlaceholder:null,ariaPosInSet:Te,ariaPressed:Qt,ariaReadOnly:Qt,ariaRelevant:null,ariaRequired:Qt,ariaRoleDescription:Et,ariaRowCount:Te,ariaRowIndex:Te,ariaRowSpan:Te,ariaSelected:Qt,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 ub=lo({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Gl,acceptCharset:Et,accessKey:Et,action:null,allow:null,allowFullScreen:Qe,allowPaymentRequest:Qe,allowUserMedia:Qe,alt:null,as:null,async:Qe,autoCapitalize:null,autoComplete:Et,autoFocus:Qe,autoPlay:Qe,blocking:Et,capture:null,charSet:null,checked:Qe,cite:null,className:Et,cols:Te,colSpan:null,content:null,contentEditable:Qt,controls:Qe,controlsList:Et,coords:Te|Gl,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Qe,defer:Qe,dir:null,dirName:null,disabled:Qe,download:id,draggable:Qt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Qe,formTarget:null,headers:Et,height:Te,hidden:id,high:Te,href:null,hrefLang:null,htmlFor:Et,httpEquiv:Et,id:null,imageSizes:null,imageSrcSet:null,inert:Qe,inputMode:null,integrity:null,is:null,isMap:Qe,itemId:null,itemProp:Et,itemRef:Et,itemScope:Qe,itemType:Et,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Qe,low:Te,manifest:null,max:null,maxLength:Te,media:null,method:null,min:null,minLength:Te,multiple:Qe,muted:Qe,name:null,nonce:null,noModule:Qe,noValidate:Qe,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:Qe,optimum:Te,pattern:null,ping:Et,placeholder:null,playsInline:Qe,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Qe,referrerPolicy:null,rel:Et,required:Qe,reversed:Qe,rows:Te,rowSpan:Te,sandbox:Et,scope:null,scoped:Qe,seamless:Qe,selected:Qe,shadowRootClonable:Qe,shadowRootDelegatesFocus:Qe,shadowRootMode:null,shape:null,size:Te,sizes:null,slot:null,span:Te,spellCheck:Qt,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:Qe,useMap:null,value:Qt,width:Te,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Et,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:Qe,declare:Qe,event:null,face:null,frame:null,frameBorder:null,hSpace:Te,leftMargin:Te,link:null,longDesc:null,lowSrc:null,marginHeight:Te,marginWidth:Te,noResize:Qe,noHref:Qe,noShade:Qe,noWrap:Qe,object:null,profile:null,prompt:null,rev:null,rightMargin:Te,rules:null,scheme:null,scrolling:Qt,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:Qe,disableRemotePlayback:Qe,prefix:null,property:null,results:Te,security:null,unselectable:null},space:"html",transform:$6}),cb=lo({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:Et,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:Qe,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:Gl,g2:Gl,glyphName:Gl,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:Et,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=lo({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=lo({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:$6}),Z6=lo({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),fb={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"},hb=/[A-Z]/g,$g=/-[a-z]/g,db=/^data[-\w.:]+$/i;function Q6(e,t){const n=ks(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"&&db.test(t)){if(t.charAt(4)==="-"){const s=t.slice(5).replace($g,pb);i="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=t.slice(4);if(!$g.test(s)){let u=s.replace(hb,mb);u.charAt(0)!=="-"&&(u="-"+u),t="data"+u}}l=Kd}return new l(i,t)}function mb(e){return"-"+e.toLowerCase()}function pb(e){return e.charAt(1).toUpperCase()}const K6=V6([Y6,ub,X6,P6,Z6],"html"),yc=V6([Y6,cb,X6,P6,Z6],"svg");function Xg(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 gb(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Pg=/[#.]/g;function yb(e,t){const n=e||"",i={};let l=0,s,u;for(;l<n.length;){Pg.lastIndex=l;const f=Pg.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 Zg(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function vb(e){return e.join(" ").trim()}function J6(e,t,n){const i=n?Sb(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=yb(s,t);const d=h.tagName.toLowerCase(),p=i?i.get(d):void 0;if(h.tagName=p||d,xb(u))f.unshift(u);else for(const[m,v]of Object.entries(u))bb(e,h.properties,m,v)}for(const d of f)ld(h.children,d);return h.type==="element"&&h.tagName==="template"&&(h.content={type:"root",children:h.children},h.children=[]),h}return l}function xb(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 bb(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=Zg(i):l.commaSeparated?s=Xg(i):l.commaOrSpaceSeparated?s=Zg(Xg(i).join(" ")):s=Qg(l,l.property,i):Array.isArray(i)?s=[...i]:s=l.property==="style"?wb(i):String(i);if(Array.isArray(s)){const u=[];for(const f of s)u.push(Qg(l,l.property,f));s=u}l.property==="className"&&Array.isArray(t.className)&&(s=t.className.concat(s)),t[l.property]=s}}function ld(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)ld(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?ld(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function Qg(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||ks(n)===ks(t)))return!0}return n}function wb(e){const t=[];for(const[n,i]of Object.entries(e))t.push([n,i].join(": "));return t.join("; ")}function Sb(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const kb=["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"],Eb=J6(K6,"div"),Ab=J6(yc,"g",kb),h1={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=zb(e,t);return n&&t.afterTransform&&t.afterTransform(e,n),n}function zb(e,t){switch(e.nodeType){case 1:return Db(e,t);case 3:return Mb(e);case 8:return Nb(e);case 9:return Kg(e,t);case 10:return Cb();case 11:return Kg(e,t);default:return}}function Kg(e,t){return{type:"root",children:e7(e,t)}}function Cb(){return{type:"doctype"}}function Mb(e){return{type:"text",value:e.nodeValue||""}}function Nb(e){return{type:"comment",value:e.nodeValue||""}}function Db(e,t){const n=e.namespaceURI,i=n===h1.svg?Ab:Eb,l=n===h1.html?e.tagName.toLowerCase():e.tagName,s=n===h1.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 _b(e,t){const n=Ob(e);return Tb(n)}function Ob(e){const t=document.createElement("template");return t.innerHTML=e,t.content}const Is=(function(e){if(e==null)return Hb;if(typeof e=="function")return vc(e);if(typeof e=="object")return Array.isArray(e)?Rb(e):Bb(e);if(typeof e=="string")return Lb(e);throw new Error("Expected function, string, or object as test")});function Rb(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Is(e[n]);return vc(i);function i(...l){let s=-1;for(;++s<t.length;)if(t[s].apply(this,l))return!0;return!1}}function Bb(e){const t=e;return vc(n);function n(i){const l=i;let s;for(s in e)if(l[s]!==t[s])return!1;return!0}}function Lb(e){return vc(t);function t(n){return n&&n.type===e}}function vc(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 Hb(){return!0}function qb(e){return e!==null&&typeof e=="object"&&"type"in e}const Jg=(function(e,t,n){const i=Is(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]}),Ka=(function(e){if(e==null)return Ub;if(typeof e=="string")return Ib(e);if(typeof e=="object")return jb(e);if(typeof e=="function")return Jd(e);throw new Error("Expected function, string, or array as `test`")});function jb(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Ka(e[n]);return Jd(i);function i(...l){let s=-1;for(;++s<t.length;)if(t[s].apply(this,l))return!0;return!1}}function Ib(e){return Jd(t);function t(n){return n.tagName===e}}function Jd(e){return t;function t(n,i,l){return!!(Fb(n)&&e.call(this,n,typeof i=="number"?i:void 0,l||void 0))}}function Ub(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function Fb(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}const Wg=/\n/g,e3=/[\t ]+/g,od=Ka("br"),t3=Ka(Qb),Vb=Ka("p"),n3=Ka("tr"),Yb=Ka(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",Zb,Kb]),t7=Ka(["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 Gb(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?od(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"?$b(e,t,n):e.type==="text"?n.whitespace==="normal"?r7(e,n):Xb(e):[]}function $b(e,t,n){const i=i7(e,n),l=e.children||[];let s=-1,u=[];if(Yb(e))return u;let f,h;for(od(e)||n3(e)&&Jg(t,e,n3)?h=`
|
|
11
|
-
`:Vb(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?od(l[s+1]):h}));return t3(e)&&Jg(t,e,t3)&&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;){Wg.lastIndex=s;const h=Wg.exec(n),d=h&&"index"in h?h.index:n.length;i.push(Pb(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 Xb(e){return[String(e.value)]}function Pb(e,t,n){const i=[];let l=0,s;for(;l<e.length;){e3.lastIndex=l;const u=e3.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 Zb(e){return!!(e.properties||{}).hidden}function Qb(e){return e.tagName==="td"||e.tagName==="th"}function Kb(e){return e.tagName==="dialog"&&!(e.properties||{}).open}class Ee 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,Ee.prototype),this.position=l,l!=null&&s!=null&&(this.length=s-l),this.rawMessage=t}}var Jb=/([A-Z])/g,Wb=e=>e.replace(Jb,"-$1").toLowerCase(),ew={"&":"&",">":">","<":"<",'"':""","'":"'"},tw=/[&><"']/g,bn=e=>String(e).replace(tw,t=>ew[t]),I0=e=>e.type==="ordgroup"||e.type==="color"?e.body.length===1?I0(e.body[0]):e:e.type==="font"?I0(e.body):e,nw=new Set(["mathord","textord","atom"]),Si=e=>nw.has(I0(e).type),rw=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"},sd={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 iw(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 aw(e){if(e.default!==void 0)return e.default;var t=Array.isArray(e.type)?e.type[0]:e.type;return iw(t)}function lw(e,t,n,i){var l=n[t];e[t]=l!==void 0?i.processor?i.processor(l):l:aw(i)}class Wd{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(sd)){var i=sd[n];i&&lw(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 Ee("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=rw(t.url);if(n==null)return!1;t.protocol=n}var i=typeof this.trust=="function"?this.trust(t):this.trust;return!!i}}class ta{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 qr[ow[this.id]]}sub(){return qr[sw[this.id]]}fracNum(){return qr[uw[this.id]]}fracDen(){return qr[cw[this.id]]}cramp(){return qr[fw[this.id]]}text(){return qr[hw[this.id]]}isTight(){return this.size>=2}}var em=0,Z0=1,$l=2,xi=3,Es=4,pr=5,Zl=6,Cn=7,qr=[new ta(em,0,!1),new ta(Z0,0,!0),new ta($l,1,!1),new ta(xi,1,!0),new ta(Es,2,!1),new ta(pr,2,!0),new ta(Zl,3,!1),new ta(Cn,3,!0)],ow=[Es,pr,Es,pr,Zl,Cn,Zl,Cn],sw=[pr,pr,pr,pr,Cn,Cn,Cn,Cn],uw=[$l,xi,Es,pr,Zl,Cn,Zl,Cn],cw=[xi,xi,pr,pr,Cn,Cn,Cn,Cn],fw=[Z0,Z0,xi,xi,pr,pr,Cn,Cn],hw=[em,Z0,$l,xi,$l,xi,$l,xi],$e={DISPLAY:qr[em],TEXT:qr[$l],SCRIPT:qr[Es],SCRIPTSCRIPT:qr[Zl]},ud=[{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 dw(e){for(var t=0;t<ud.length;t++)for(var n=ud[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 U0=[];ud.forEach(e=>e.blocks.forEach(t=>U0.push(...t)));function a7(e){for(var t=0;t<U0.length;t+=2)if(e>=U0[t]&&e<=U0[t+1])return!0;return!1}var on=e=>e+" "+e,ql=80,mw=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"},pw=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"},gw=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"},yw=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"},vw=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"},xw=function(t){var n=t/2;return"M400000 "+t+" H0 L"+n+" 0 l65 45 L145 "+(t-80)+" H400000z"},bw=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"},ww=function(t,n,i){n=1e3*n;var l="";switch(t){case"sqrtMain":l=mw(n,ql);break;case"sqrtSize1":l=pw(n,ql);break;case"sqrtSize2":l=gw(n,ql);break;case"sqrtSize3":l=yw(n,ql);break;case"sqrtSize4":l=vw(n,ql);break;case"sqrtTall":l=bw(n,ql,i)}return l},Sw=function(t,n){switch(t){case"⎜":return on("M291 0 H417 V"+n+" H291z");case"∣":return on("M145 0 H188 V"+n+" H145z");case"∥":return on("M145 0 H188 V"+n+" H145z")+on("M367 0 H410 V"+n+" H367z");case"⎟":return on("M457 0 H583 V"+n+" H457z");case"⎢":return on("M319 0 H403 V"+n+" H319z");case"⎥":return on("M263 0 H347 V"+n+" H263z");case"⎪":return on("M384 0 H504 V"+n+" H384z");case"⏐":return on("M312 0 H355 V"+n+" H312z");case"‖":return on("M257 0 H300 V"+n+" H257z")+on("M478 0 H521 V"+n+" H478z");default:return""}},r3={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:on("M40 281 V428 H0 V94 H40 V241 H400000 v40z"),leftbracketunder:on("M0 0 h120 V290 H399995 v120 H0z"),leftbracketover:on("M0 440 h120 V150 H399995 v-120 H0z"),leftmapsto:on("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:on("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:on("M399960 241 V94 h40 V428 h-40 V281 H0 v-40z"),rightbracketunder:on("M399995 0 h-120 V290 H0 v120 H400000z"),rightbracketover:on("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`},kw=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 Ew(e){return"toText"in e}class oo{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(Ew(t))return t.toText();throw new Error("Expected MathDomNode with toText, got "+t.constructor.name)}).join("")}}var cd={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},Aw={ex:!0,em:!0,mu:!0},l7=function(t){return typeof t!="string"&&(t=t.unit),t in cd||t in Aw||t==="ex"},Ht=function(t,n){var i;if(t.unit in cd)i=cd[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 Ee("Invalid unit: '"+t.unit+"'");l!==n&&(i*=l.sizeMultiplier/n.sizeMultiplier)}return Math.min(t.number*i,n.maxSize)},ze=function(t){return+t.toFixed(4)+"em"},ca=function(t){return t.filter(n=>n).join(" ")},tm=function(t){var n="";for(var i of Object.keys(t)){var l=t[i];l!==void 0&&(n+=Wb(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=ca(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="'+bn(ca(this.classes))+'"');var i=tm(this.style);i&&(n+=' style="'+bn(i)+'"');for(var l of Object.keys(this.attributes)){if(Tw.test(l))throw new Ee("Invalid attribute name '"+l+"'");n+=" "+l+'="'+bn(this.attributes[l])+'"'}n+=">";for(var s=0;s<this.children.length;s++)n+=this.children[s].toMarkup();return n+="</"+t+">",n};class so{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 xc{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 zw{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="'+bn(this.src)+'"'+(' alt="'+bn(this.alt)+'"'),n=tm(this.style);return n&&(t+=' style="'+bn(n)+'"'),t+="'/>",t}}var Cw={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};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=dw(this.text.charCodeAt(0));d&&this.classes.push(d+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=Cw[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=ze(this.italic)),this.classes.length>0&&(n=n||document.createElement("span"),n.className=ca(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+=bn(ca(this.classes)),n+='"');var i="";this.italic>0&&(i+="margin-right:"+ze(this.italic)+";"),i+=tm(this.style),i&&(t=!0,n+=' style="'+bn(i)+'"');var l=bn(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+'="'+bn(this.attributes[n])+'"';t+=">";for(var i=0;i<this.children.length;i++)t+=this.children[i].toMarkup();return t+="</svg>",t}}class fa{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",r3[this.pathName]),n}toMarkup(){return this.alternate?'<path d="'+bn(this.alternate)+'"/>':'<path d="'+bn(r3[this.pathName])+'"/>'}}class fd{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+'="'+bn(this.attributes[n])+'"';return t+="/>",t}}function Mw(e){if(e instanceof nr)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}function Nw(e){if(e instanceof so)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}var Dw=e=>e instanceof so||e instanceof xc||e instanceof oo,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]}},v0={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]},i3={Å:"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 _w(e,t){Ir[e]=t}function nm(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 i3&&(i=i3[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 d1={};function Ow(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!d1[t]){var n=d1[t]={cssEmPerMu:v0.quad[t]/18};for(var i in v0)v0.hasOwnProperty(i)&&(n[i]=v0[i][t])}return d1[t]}var Nt={math:{},text:{}};function b(e,t,n,i,l,s){Nt[e][l]={font:t,group:n,replace:i},s&&i&&(Nt[e][i]=Nt[e][l])}var S="math",ve="text",M="main",G="ams",_t="accent-token",Me="bin",Mn="close",uo="inner",Ue="mathord",Wt="op-token",ir="open",Us="punct",X="rel",ki="spacing",te="textord";b(S,M,X,"≡","\\equiv",!0);b(S,M,X,"≺","\\prec",!0);b(S,M,X,"≻","\\succ",!0);b(S,M,X,"∼","\\sim",!0);b(S,M,X,"⊥","\\perp");b(S,M,X,"⪯","\\preceq",!0);b(S,M,X,"⪰","\\succeq",!0);b(S,M,X,"≃","\\simeq",!0);b(S,M,X,"∣","\\mid",!0);b(S,M,X,"≪","\\ll",!0);b(S,M,X,"≫","\\gg",!0);b(S,M,X,"≍","\\asymp",!0);b(S,M,X,"∥","\\parallel");b(S,M,X,"⋈","\\bowtie",!0);b(S,M,X,"⌣","\\smile",!0);b(S,M,X,"⊑","\\sqsubseteq",!0);b(S,M,X,"⊒","\\sqsupseteq",!0);b(S,M,X,"≐","\\doteq",!0);b(S,M,X,"⌢","\\frown",!0);b(S,M,X,"∋","\\ni",!0);b(S,M,X,"∝","\\propto",!0);b(S,M,X,"⊢","\\vdash",!0);b(S,M,X,"⊣","\\dashv",!0);b(S,M,X,"∋","\\owns");b(S,M,Us,".","\\ldotp");b(S,M,Us,"⋅","\\cdotp");b(S,M,Us,"⋅","·");b(ve,M,te,"⋅","·");b(S,M,te,"#","\\#");b(ve,M,te,"#","\\#");b(S,M,te,"&","\\&");b(ve,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(ve,M,te,"§","\\S");b(S,M,te,"¶","\\P",!0);b(ve,M,te,"¶","\\P");b(S,M,te,"†","\\dag");b(ve,M,te,"†","\\dag");b(ve,M,te,"†","\\textdagger");b(S,M,te,"‡","\\ddag");b(ve,M,te,"‡","\\ddag");b(ve,M,te,"‡","\\textdaggerdbl");b(S,M,Mn,"⎱","\\rmoustache",!0);b(S,M,ir,"⎰","\\lmoustache",!0);b(S,M,Mn,"⟯","\\rgroup",!0);b(S,M,ir,"⟮","\\lgroup",!0);b(S,M,Me,"∓","\\mp",!0);b(S,M,Me,"⊖","\\ominus",!0);b(S,M,Me,"⊎","\\uplus",!0);b(S,M,Me,"⊓","\\sqcap",!0);b(S,M,Me,"∗","\\ast");b(S,M,Me,"⊔","\\sqcup",!0);b(S,M,Me,"◯","\\bigcirc",!0);b(S,M,Me,"∙","\\bullet",!0);b(S,M,Me,"‡","\\ddagger");b(S,M,Me,"≀","\\wr",!0);b(S,M,Me,"⨿","\\amalg");b(S,M,Me,"&","\\And");b(S,M,X,"⟵","\\longleftarrow",!0);b(S,M,X,"⇐","\\Leftarrow",!0);b(S,M,X,"⟸","\\Longleftarrow",!0);b(S,M,X,"⟶","\\longrightarrow",!0);b(S,M,X,"⇒","\\Rightarrow",!0);b(S,M,X,"⟹","\\Longrightarrow",!0);b(S,M,X,"↔","\\leftrightarrow",!0);b(S,M,X,"⟷","\\longleftrightarrow",!0);b(S,M,X,"⇔","\\Leftrightarrow",!0);b(S,M,X,"⟺","\\Longleftrightarrow",!0);b(S,M,X,"↦","\\mapsto",!0);b(S,M,X,"⟼","\\longmapsto",!0);b(S,M,X,"↗","\\nearrow",!0);b(S,M,X,"↩","\\hookleftarrow",!0);b(S,M,X,"↪","\\hookrightarrow",!0);b(S,M,X,"↘","\\searrow",!0);b(S,M,X,"↼","\\leftharpoonup",!0);b(S,M,X,"⇀","\\rightharpoonup",!0);b(S,M,X,"↙","\\swarrow",!0);b(S,M,X,"↽","\\leftharpoondown",!0);b(S,M,X,"⇁","\\rightharpoondown",!0);b(S,M,X,"↖","\\nwarrow",!0);b(S,M,X,"⇌","\\rightleftharpoons",!0);b(S,G,X,"≮","\\nless",!0);b(S,G,X,"","\\@nleqslant");b(S,G,X,"","\\@nleqq");b(S,G,X,"⪇","\\lneq",!0);b(S,G,X,"≨","\\lneqq",!0);b(S,G,X,"","\\@lvertneqq");b(S,G,X,"⋦","\\lnsim",!0);b(S,G,X,"⪉","\\lnapprox",!0);b(S,G,X,"⊀","\\nprec",!0);b(S,G,X,"⋠","\\npreceq",!0);b(S,G,X,"⋨","\\precnsim",!0);b(S,G,X,"⪹","\\precnapprox",!0);b(S,G,X,"≁","\\nsim",!0);b(S,G,X,"","\\@nshortmid");b(S,G,X,"∤","\\nmid",!0);b(S,G,X,"⊬","\\nvdash",!0);b(S,G,X,"⊭","\\nvDash",!0);b(S,G,X,"⋪","\\ntriangleleft");b(S,G,X,"⋬","\\ntrianglelefteq",!0);b(S,G,X,"⊊","\\subsetneq",!0);b(S,G,X,"","\\@varsubsetneq");b(S,G,X,"⫋","\\subsetneqq",!0);b(S,G,X,"","\\@varsubsetneqq");b(S,G,X,"≯","\\ngtr",!0);b(S,G,X,"","\\@ngeqslant");b(S,G,X,"","\\@ngeqq");b(S,G,X,"⪈","\\gneq",!0);b(S,G,X,"≩","\\gneqq",!0);b(S,G,X,"","\\@gvertneqq");b(S,G,X,"⋧","\\gnsim",!0);b(S,G,X,"⪊","\\gnapprox",!0);b(S,G,X,"⊁","\\nsucc",!0);b(S,G,X,"⋡","\\nsucceq",!0);b(S,G,X,"⋩","\\succnsim",!0);b(S,G,X,"⪺","\\succnapprox",!0);b(S,G,X,"≆","\\ncong",!0);b(S,G,X,"","\\@nshortparallel");b(S,G,X,"∦","\\nparallel",!0);b(S,G,X,"⊯","\\nVDash",!0);b(S,G,X,"⋫","\\ntriangleright");b(S,G,X,"⋭","\\ntrianglerighteq",!0);b(S,G,X,"","\\@nsupseteqq");b(S,G,X,"⊋","\\supsetneq",!0);b(S,G,X,"","\\@varsupsetneq");b(S,G,X,"⫌","\\supsetneqq",!0);b(S,G,X,"","\\@varsupsetneqq");b(S,G,X,"⊮","\\nVdash",!0);b(S,G,X,"⪵","\\precneqq",!0);b(S,G,X,"⪶","\\succneqq",!0);b(S,G,X,"","\\@nsubseteqq");b(S,G,Me,"⊴","\\unlhd");b(S,G,Me,"⊵","\\unrhd");b(S,G,X,"↚","\\nleftarrow",!0);b(S,G,X,"↛","\\nrightarrow",!0);b(S,G,X,"⇍","\\nLeftarrow",!0);b(S,G,X,"⇏","\\nRightarrow",!0);b(S,G,X,"↮","\\nleftrightarrow",!0);b(S,G,X,"⇎","\\nLeftrightarrow",!0);b(S,G,X,"△","\\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(ve,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(ve,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(ve,G,te,"¥","\\yen",!0);b(S,G,te,"✓","\\checkmark",!0);b(ve,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,Mn,"┐","\\@urcorner",!0);b(S,G,ir,"└","\\@llcorner",!0);b(S,G,Mn,"┘","\\@lrcorner",!0);b(S,G,X,"≦","\\leqq",!0);b(S,G,X,"⩽","\\leqslant",!0);b(S,G,X,"⪕","\\eqslantless",!0);b(S,G,X,"≲","\\lesssim",!0);b(S,G,X,"⪅","\\lessapprox",!0);b(S,G,X,"≊","\\approxeq",!0);b(S,G,Me,"⋖","\\lessdot");b(S,G,X,"⋘","\\lll",!0);b(S,G,X,"≶","\\lessgtr",!0);b(S,G,X,"⋚","\\lesseqgtr",!0);b(S,G,X,"⪋","\\lesseqqgtr",!0);b(S,G,X,"≑","\\doteqdot");b(S,G,X,"≓","\\risingdotseq",!0);b(S,G,X,"≒","\\fallingdotseq",!0);b(S,G,X,"∽","\\backsim",!0);b(S,G,X,"⋍","\\backsimeq",!0);b(S,G,X,"⫅","\\subseteqq",!0);b(S,G,X,"⋐","\\Subset",!0);b(S,G,X,"⊏","\\sqsubset",!0);b(S,G,X,"≼","\\preccurlyeq",!0);b(S,G,X,"⋞","\\curlyeqprec",!0);b(S,G,X,"≾","\\precsim",!0);b(S,G,X,"⪷","\\precapprox",!0);b(S,G,X,"⊲","\\vartriangleleft");b(S,G,X,"⊴","\\trianglelefteq");b(S,G,X,"⊨","\\vDash",!0);b(S,G,X,"⊪","\\Vvdash",!0);b(S,G,X,"⌣","\\smallsmile");b(S,G,X,"⌢","\\smallfrown");b(S,G,X,"≏","\\bumpeq",!0);b(S,G,X,"≎","\\Bumpeq",!0);b(S,G,X,"≧","\\geqq",!0);b(S,G,X,"⩾","\\geqslant",!0);b(S,G,X,"⪖","\\eqslantgtr",!0);b(S,G,X,"≳","\\gtrsim",!0);b(S,G,X,"⪆","\\gtrapprox",!0);b(S,G,Me,"⋗","\\gtrdot");b(S,G,X,"⋙","\\ggg",!0);b(S,G,X,"≷","\\gtrless",!0);b(S,G,X,"⋛","\\gtreqless",!0);b(S,G,X,"⪌","\\gtreqqless",!0);b(S,G,X,"≖","\\eqcirc",!0);b(S,G,X,"≗","\\circeq",!0);b(S,G,X,"≜","\\triangleq",!0);b(S,G,X,"∼","\\thicksim");b(S,G,X,"≈","\\thickapprox");b(S,G,X,"⫆","\\supseteqq",!0);b(S,G,X,"⋑","\\Supset",!0);b(S,G,X,"⊐","\\sqsupset",!0);b(S,G,X,"≽","\\succcurlyeq",!0);b(S,G,X,"⋟","\\curlyeqsucc",!0);b(S,G,X,"≿","\\succsim",!0);b(S,G,X,"⪸","\\succapprox",!0);b(S,G,X,"⊳","\\vartriangleright");b(S,G,X,"⊵","\\trianglerighteq");b(S,G,X,"⊩","\\Vdash",!0);b(S,G,X,"∣","\\shortmid");b(S,G,X,"∥","\\shortparallel");b(S,G,X,"≬","\\between",!0);b(S,G,X,"⋔","\\pitchfork",!0);b(S,G,X,"∝","\\varpropto");b(S,G,X,"◀","\\blacktriangleleft");b(S,G,X,"∴","\\therefore",!0);b(S,G,X,"∍","\\backepsilon");b(S,G,X,"▶","\\blacktriangleright");b(S,G,X,"∵","\\because",!0);b(S,G,X,"⋘","\\llless");b(S,G,X,"⋙","\\gggtr");b(S,G,Me,"⊲","\\lhd");b(S,G,Me,"⊳","\\rhd");b(S,G,X,"≂","\\eqsim",!0);b(S,M,X,"⋈","\\Join");b(S,G,X,"≑","\\Doteq",!0);b(S,G,Me,"∔","\\dotplus",!0);b(S,G,Me,"∖","\\smallsetminus");b(S,G,Me,"⋒","\\Cap",!0);b(S,G,Me,"⋓","\\Cup",!0);b(S,G,Me,"⩞","\\doublebarwedge",!0);b(S,G,Me,"⊟","\\boxminus",!0);b(S,G,Me,"⊞","\\boxplus",!0);b(S,G,Me,"⋇","\\divideontimes",!0);b(S,G,Me,"⋉","\\ltimes",!0);b(S,G,Me,"⋊","\\rtimes",!0);b(S,G,Me,"⋋","\\leftthreetimes",!0);b(S,G,Me,"⋌","\\rightthreetimes",!0);b(S,G,Me,"⋏","\\curlywedge",!0);b(S,G,Me,"⋎","\\curlyvee",!0);b(S,G,Me,"⊝","\\circleddash",!0);b(S,G,Me,"⊛","\\circledast",!0);b(S,G,Me,"⋅","\\centerdot");b(S,G,Me,"⊺","\\intercal",!0);b(S,G,Me,"⋒","\\doublecap");b(S,G,Me,"⋓","\\doublecup");b(S,G,Me,"⊠","\\boxtimes",!0);b(S,G,X,"⇢","\\dashrightarrow",!0);b(S,G,X,"⇠","\\dashleftarrow",!0);b(S,G,X,"⇇","\\leftleftarrows",!0);b(S,G,X,"⇆","\\leftrightarrows",!0);b(S,G,X,"⇚","\\Lleftarrow",!0);b(S,G,X,"↞","\\twoheadleftarrow",!0);b(S,G,X,"↢","\\leftarrowtail",!0);b(S,G,X,"↫","\\looparrowleft",!0);b(S,G,X,"⇋","\\leftrightharpoons",!0);b(S,G,X,"↶","\\curvearrowleft",!0);b(S,G,X,"↺","\\circlearrowleft",!0);b(S,G,X,"↰","\\Lsh",!0);b(S,G,X,"⇈","\\upuparrows",!0);b(S,G,X,"↿","\\upharpoonleft",!0);b(S,G,X,"⇃","\\downharpoonleft",!0);b(S,M,X,"⊶","\\origof",!0);b(S,M,X,"⊷","\\imageof",!0);b(S,G,X,"⊸","\\multimap",!0);b(S,G,X,"↭","\\leftrightsquigarrow",!0);b(S,G,X,"⇉","\\rightrightarrows",!0);b(S,G,X,"⇄","\\rightleftarrows",!0);b(S,G,X,"↠","\\twoheadrightarrow",!0);b(S,G,X,"↣","\\rightarrowtail",!0);b(S,G,X,"↬","\\looparrowright",!0);b(S,G,X,"↷","\\curvearrowright",!0);b(S,G,X,"↻","\\circlearrowright",!0);b(S,G,X,"↱","\\Rsh",!0);b(S,G,X,"⇊","\\downdownarrows",!0);b(S,G,X,"↾","\\upharpoonright",!0);b(S,G,X,"⇂","\\downharpoonright",!0);b(S,G,X,"⇝","\\rightsquigarrow",!0);b(S,G,X,"⇝","\\leadsto");b(S,G,X,"⇛","\\Rrightarrow",!0);b(S,G,X,"↾","\\restriction");b(S,M,te,"‘","`");b(S,M,te,"$","\\$");b(ve,M,te,"$","\\$");b(ve,M,te,"$","\\textdollar");b(S,M,te,"%","\\%");b(ve,M,te,"%","\\%");b(S,M,te,"_","\\_");b(ve,M,te,"_","\\_");b(ve,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,Ue,"α","\\alpha",!0);b(S,M,Ue,"β","\\beta",!0);b(S,M,Ue,"γ","\\gamma",!0);b(S,M,Ue,"δ","\\delta",!0);b(S,M,Ue,"ϵ","\\epsilon",!0);b(S,M,Ue,"ζ","\\zeta",!0);b(S,M,Ue,"η","\\eta",!0);b(S,M,Ue,"θ","\\theta",!0);b(S,M,Ue,"ι","\\iota",!0);b(S,M,Ue,"κ","\\kappa",!0);b(S,M,Ue,"λ","\\lambda",!0);b(S,M,Ue,"μ","\\mu",!0);b(S,M,Ue,"ν","\\nu",!0);b(S,M,Ue,"ξ","\\xi",!0);b(S,M,Ue,"ο","\\omicron",!0);b(S,M,Ue,"π","\\pi",!0);b(S,M,Ue,"ρ","\\rho",!0);b(S,M,Ue,"σ","\\sigma",!0);b(S,M,Ue,"τ","\\tau",!0);b(S,M,Ue,"υ","\\upsilon",!0);b(S,M,Ue,"ϕ","\\phi",!0);b(S,M,Ue,"χ","\\chi",!0);b(S,M,Ue,"ψ","\\psi",!0);b(S,M,Ue,"ω","\\omega",!0);b(S,M,Ue,"ε","\\varepsilon",!0);b(S,M,Ue,"ϑ","\\vartheta",!0);b(S,M,Ue,"ϖ","\\varpi",!0);b(S,M,Ue,"ϱ","\\varrho",!0);b(S,M,Ue,"ς","\\varsigma",!0);b(S,M,Ue,"φ","\\varphi",!0);b(S,M,Me,"∗","*",!0);b(S,M,Me,"+","+");b(S,M,Me,"−","-",!0);b(S,M,Me,"⋅","\\cdot",!0);b(S,M,Me,"∘","\\circ",!0);b(S,M,Me,"÷","\\div",!0);b(S,M,Me,"±","\\pm",!0);b(S,M,Me,"×","\\times",!0);b(S,M,Me,"∩","\\cap",!0);b(S,M,Me,"∪","\\cup",!0);b(S,M,Me,"∖","\\setminus",!0);b(S,M,Me,"∧","\\land");b(S,M,Me,"∨","\\lor");b(S,M,Me,"∧","\\wedge",!0);b(S,M,Me,"∨","\\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,Mn,"?","?");b(S,M,Mn,"!","!");b(S,M,Mn,"⟩","\\rangle",!0);b(S,M,Mn,"∣","\\rvert");b(S,M,Mn,"∥","\\rVert");b(S,M,X,"=","=");b(S,M,X,":",":");b(S,M,X,"≈","\\approx",!0);b(S,M,X,"≅","\\cong",!0);b(S,M,X,"≥","\\ge");b(S,M,X,"≥","\\geq",!0);b(S,M,X,"←","\\gets");b(S,M,X,">","\\gt",!0);b(S,M,X,"∈","\\in",!0);b(S,M,X,"","\\@not");b(S,M,X,"⊂","\\subset",!0);b(S,M,X,"⊃","\\supset",!0);b(S,M,X,"⊆","\\subseteq",!0);b(S,M,X,"⊇","\\supseteq",!0);b(S,G,X,"⊈","\\nsubseteq",!0);b(S,G,X,"⊉","\\nsupseteq",!0);b(S,M,X,"⊨","\\models");b(S,M,X,"←","\\leftarrow",!0);b(S,M,X,"≤","\\le");b(S,M,X,"≤","\\leq",!0);b(S,M,X,"<","\\lt",!0);b(S,M,X,"→","\\rightarrow",!0);b(S,M,X,"→","\\to");b(S,G,X,"≱","\\ngeq",!0);b(S,G,X,"≰","\\nleq",!0);b(S,M,ki," ","\\ ");b(S,M,ki," ","\\space");b(S,M,ki," ","\\nobreakspace");b(ve,M,ki," ","\\ ");b(ve,M,ki," "," ");b(ve,M,ki," ","\\space");b(ve,M,ki," ","\\nobreakspace");b(S,M,ki,"","\\nobreak");b(S,M,ki,"","\\allowbreak");b(S,M,Us,",",",");b(S,M,Us,";",";");b(S,G,Me,"⊼","\\barwedge",!0);b(S,G,Me,"⊻","\\veebar",!0);b(S,M,Me,"⊙","\\odot",!0);b(S,M,Me,"⊕","\\oplus",!0);b(S,M,Me,"⊗","\\otimes",!0);b(S,M,te,"∂","\\partial",!0);b(S,M,Me,"⊘","\\oslash",!0);b(S,G,Me,"⊚","\\circledcirc",!0);b(S,G,Me,"⊡","\\boxdot",!0);b(S,M,Me,"△","\\bigtriangleup");b(S,M,Me,"▽","\\bigtriangledown");b(S,M,Me,"†","\\dagger");b(S,M,Me,"⋄","\\diamond");b(S,M,Me,"⋆","\\star");b(S,M,Me,"◃","\\triangleleft");b(S,M,Me,"▹","\\triangleright");b(S,M,ir,"{","\\{");b(ve,M,te,"{","\\{");b(ve,M,te,"{","\\textbraceleft");b(S,M,Mn,"}","\\}");b(ve,M,te,"}","\\}");b(ve,M,te,"}","\\textbraceright");b(S,M,ir,"{","\\lbrace");b(S,M,Mn,"}","\\rbrace");b(S,M,ir,"[","\\lbrack",!0);b(ve,M,te,"[","\\lbrack",!0);b(S,M,Mn,"]","\\rbrack",!0);b(ve,M,te,"]","\\rbrack",!0);b(S,M,ir,"(","\\lparen",!0);b(S,M,Mn,")","\\rparen",!0);b(ve,M,te,"<","\\textless",!0);b(ve,M,te,">","\\textgreater",!0);b(S,M,ir,"⌊","\\lfloor",!0);b(S,M,Mn,"⌋","\\rfloor",!0);b(S,M,ir,"⌈","\\lceil",!0);b(S,M,Mn,"⌉","\\rceil",!0);b(S,M,te,"\\","\\backslash");b(S,M,te,"∣","|");b(S,M,te,"∣","\\vert");b(ve,M,te,"|","\\textbar",!0);b(S,M,te,"∥","\\|");b(S,M,te,"∥","\\Vert");b(ve,M,te,"∥","\\textbardbl");b(ve,M,te,"~","\\textasciitilde");b(ve,M,te,"\\","\\textbackslash");b(ve,M,te,"^","\\textasciicircum");b(S,M,X,"↑","\\uparrow",!0);b(S,M,X,"⇑","\\Uparrow",!0);b(S,M,X,"↓","\\downarrow",!0);b(S,M,X,"⇓","\\Downarrow",!0);b(S,M,X,"↕","\\updownarrow",!0);b(S,M,X,"⇕","\\Updownarrow",!0);b(S,M,Wt,"∐","\\coprod");b(S,M,Wt,"⋁","\\bigvee");b(S,M,Wt,"⋀","\\bigwedge");b(S,M,Wt,"⨄","\\biguplus");b(S,M,Wt,"⋂","\\bigcap");b(S,M,Wt,"⋃","\\bigcup");b(S,M,Wt,"∫","\\int");b(S,M,Wt,"∫","\\intop");b(S,M,Wt,"∬","\\iint");b(S,M,Wt,"∭","\\iiint");b(S,M,Wt,"∏","\\prod");b(S,M,Wt,"∑","\\sum");b(S,M,Wt,"⨂","\\bigotimes");b(S,M,Wt,"⨁","\\bigoplus");b(S,M,Wt,"⨀","\\bigodot");b(S,M,Wt,"∮","\\oint");b(S,M,Wt,"∯","\\oiint");b(S,M,Wt,"∰","\\oiiint");b(S,M,Wt,"⨆","\\bigsqcup");b(S,M,Wt,"∫","\\smallint");b(ve,M,uo,"…","\\textellipsis");b(S,M,uo,"…","\\mathellipsis");b(ve,M,uo,"…","\\ldots",!0);b(S,M,uo,"…","\\ldots",!0);b(S,M,uo,"⋯","\\@cdots",!0);b(S,M,uo,"⋱","\\ddots",!0);b(S,M,te,"⋮","\\varvdots");b(ve,M,te,"⋮","\\varvdots");b(S,M,_t,"ˊ","\\acute");b(S,M,_t,"ˋ","\\grave");b(S,M,_t,"¨","\\ddot");b(S,M,_t,"~","\\tilde");b(S,M,_t,"ˉ","\\bar");b(S,M,_t,"˘","\\breve");b(S,M,_t,"ˇ","\\check");b(S,M,_t,"^","\\hat");b(S,M,_t,"⃗","\\vec");b(S,M,_t,"˙","\\dot");b(S,M,_t,"˚","\\mathring");b(S,M,Ue,"","\\@imath");b(S,M,Ue,"","\\@jmath");b(S,M,te,"ı","ı");b(S,M,te,"ȷ","ȷ");b(ve,M,te,"ı","\\i",!0);b(ve,M,te,"ȷ","\\j",!0);b(ve,M,te,"ß","\\ss",!0);b(ve,M,te,"æ","\\ae",!0);b(ve,M,te,"œ","\\oe",!0);b(ve,M,te,"ø","\\o",!0);b(ve,M,te,"Æ","\\AE",!0);b(ve,M,te,"Œ","\\OE",!0);b(ve,M,te,"Ø","\\O",!0);b(ve,M,_t,"ˊ","\\'");b(ve,M,_t,"ˋ","\\`");b(ve,M,_t,"ˆ","\\^");b(ve,M,_t,"˜","\\~");b(ve,M,_t,"ˉ","\\=");b(ve,M,_t,"˘","\\u");b(ve,M,_t,"˙","\\.");b(ve,M,_t,"¸","\\c");b(ve,M,_t,"˚","\\r");b(ve,M,_t,"ˇ","\\v");b(ve,M,_t,"¨",'\\"');b(ve,M,_t,"˝","\\H");b(ve,M,_t,"◯","\\textcircled");var c7={"--":!0,"---":!0,"``":!0,"''":!0};b(ve,M,te,"–","--",!0);b(ve,M,te,"–","\\textendash");b(ve,M,te,"—","---",!0);b(ve,M,te,"—","\\textemdash");b(ve,M,te,"‘","`",!0);b(ve,M,te,"‘","\\textquoteleft");b(ve,M,te,"’","'",!0);b(ve,M,te,"’","\\textquoteright");b(ve,M,te,"“","``",!0);b(ve,M,te,"“","\\textquotedblleft");b(ve,M,te,"”","''",!0);b(ve,M,te,"”","\\textquotedblright");b(S,M,te,"°","\\degree",!0);b(ve,M,te,"°","\\degree");b(ve,M,te,"°","\\textdegree",!0);b(S,M,te,"£","\\pounds");b(S,M,te,"£","\\mathsterling",!0);b(ve,M,te,"£","\\pounds");b(ve,M,te,"£","\\textsterling",!0);b(S,G,te,"✠","\\maltese");b(ve,G,te,"✠","\\maltese");var a3='0123456789/@."';for(var m1=0;m1<a3.length;m1++){var l3=a3.charAt(m1);b(S,M,te,l3,l3)}var o3='0123456789!@*()-=+";:?/.,';for(var p1=0;p1<o3.length;p1++){var s3=o3.charAt(p1);b(ve,M,te,s3,s3)}var Q0="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(var g1=0;g1<Q0.length;g1++){var x0=Q0.charAt(g1);b(S,M,Ue,x0,x0),b(ve,M,te,x0,x0)}b(S,G,te,"C","ℂ");b(ve,G,te,"C","ℂ");b(S,G,te,"H","ℍ");b(ve,G,te,"H","ℍ");b(S,G,te,"N","ℕ");b(ve,G,te,"N","ℕ");b(S,G,te,"P","ℙ");b(ve,G,te,"P","ℙ");b(S,G,te,"Q","ℚ");b(ve,G,te,"Q","ℚ");b(S,G,te,"R","ℝ");b(ve,G,te,"R","ℝ");b(S,G,te,"Z","ℤ");b(ve,G,te,"Z","ℤ");b(S,M,Ue,"h","ℎ");b(ve,M,Ue,"h","ℎ");var Ve;for(var En=0;En<Q0.length;En++){var It=Q0.charAt(En);Ve=String.fromCharCode(55349,56320+En),b(S,M,Ue,It,Ve),b(ve,M,te,It,Ve),Ve=String.fromCharCode(55349,56372+En),b(S,M,Ue,It,Ve),b(ve,M,te,It,Ve),Ve=String.fromCharCode(55349,56424+En),b(S,M,Ue,It,Ve),b(ve,M,te,It,Ve),Ve=String.fromCharCode(55349,56580+En),b(S,M,Ue,It,Ve),b(ve,M,te,It,Ve),Ve=String.fromCharCode(55349,56684+En),b(S,M,Ue,It,Ve),b(ve,M,te,It,Ve),Ve=String.fromCharCode(55349,56736+En),b(S,M,Ue,It,Ve),b(ve,M,te,It,Ve),Ve=String.fromCharCode(55349,56788+En),b(S,M,Ue,It,Ve),b(ve,M,te,It,Ve),Ve=String.fromCharCode(55349,56840+En),b(S,M,Ue,It,Ve),b(ve,M,te,It,Ve),Ve=String.fromCharCode(55349,56944+En),b(S,M,Ue,It,Ve),b(ve,M,te,It,Ve),En<26&&(Ve=String.fromCharCode(55349,56632+En),b(S,M,Ue,It,Ve),b(ve,M,te,It,Ve),Ve=String.fromCharCode(55349,56476+En),b(S,M,Ue,It,Ve),b(ve,M,te,It,Ve))}Ve="𝕜";b(S,M,Ue,"k",Ve);b(ve,M,te,"k",Ve);for(var Ha=0;Ha<10;Ha++){var na=Ha.toString();Ve=String.fromCharCode(55349,57294+Ha),b(S,M,Ue,na,Ve),b(ve,M,te,na,Ve),Ve=String.fromCharCode(55349,57314+Ha),b(S,M,Ue,na,Ve),b(ve,M,te,na,Ve),Ve=String.fromCharCode(55349,57324+Ha),b(S,M,Ue,na,Ve),b(ve,M,te,na,Ve),Ve=String.fromCharCode(55349,57334+Ha),b(S,M,Ue,na,Ve),b(ve,M,te,na,Ve)}var hd="ÐÞþ";for(var y1=0;y1<hd.length;y1++){var b0=hd.charAt(y1);b(S,M,Ue,b0,b0),b(ve,M,te,b0,b0)}var dd={mathClass:"mathbf",textClass:"textbf",font:"Main-Bold"},u3={mathClass:"mathnormal",textClass:"textit",font:"Math-Italic"},c3={mathClass:"boldsymbol",textClass:"boldsymbol",font:"Main-BoldItalic"},Rw={mathClass:"mathscr",textClass:"textscr",font:"Script-Regular"},Ua={mathClass:"",textClass:"",font:""},f3={mathClass:"mathfrak",textClass:"textfrak",font:"Fraktur-Regular"},h3={mathClass:"mathbb",textClass:"textbb",font:"AMS-Regular"},d3={mathClass:"mathboldfrak",textClass:"textboldfrak",font:"Fraktur-Regular"},md={mathClass:"mathsf",textClass:"textsf",font:"SansSerif-Regular"},pd={mathClass:"mathboldsf",textClass:"textboldsf",font:"SansSerif-Bold"},m3={mathClass:"mathitsf",textClass:"textitsf",font:"SansSerif-Italic"},gd={mathClass:"mathtt",textClass:"texttt",font:"Typewriter-Regular"},p3=[dd,dd,u3,u3,c3,c3,Rw,Ua,Ua,Ua,f3,f3,h3,h3,d3,d3,md,md,pd,pd,m3,m3,Ua,Ua,gd,gd],Bw=[dd,Ua,md,pd,gd],Lw=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 p3[l]}else if(120782<=i&&i<=120831){var s=Math.floor((i-120782)/10);return Bw[s]}else{if(i===120485||i===120486)return p3[0];if(120486<i&&i<120782)return Ua;throw new Ee("Unsupported character: "+e)}},bc=function(t,n,i){if(Nt[i][t]){var l=Nt[i][t].replace;l&&(t=l)}return{value:t,metrics:nm(t,n,i)}},Tn=function(t,n,i,l,s){var u=bc(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},rm=function(t,n,i,l){return l===void 0&&(l=[]),i.font==="boldsymbol"&&bc(t,"Main-Bold",n).metrics?Tn(t,"Main-Bold",n,i,l.concat(["mathbf"])):t==="\\"||Nt[n][t].font==="main"?Tn(t,"Main-Regular",n,i,l):Tn(t,"AMS-Regular",n,i,l.concat(["amsrm"]))},Hw=function(t,n,i){return i!=="textord"&&bc(t,"Math-BoldItalic",n).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},wc=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=Lw(s);x=A.font,w=A[l+"Class"]}if(x)return Tn(s,x,l,n,u.concat(w));if(v){var T,E;if(v==="boldsymbol"){var N=Hw(s,l,i);T=N.fontName,E=[N.fontClass]}else m?(T=yd[f].fontName,E=[f]):(T=w0(h,d,p),E=[h,d,p]);if(bc(s,T,l).metrics)return Tn(s,T,l,n,u.concat(E));if(c7.hasOwnProperty(s)&&T.slice(0,10)==="Typewriter"){for(var z=[],H=0;H<s.length;H++)z.push(Tn(s[H],T,l,n,u.concat(E)));return Ei(z)}}if(i==="mathord")return Tn(s,"Math-Italic",l,n,u.concat(["mathnormal"]));if(i==="textord"){var I=Nt[l][s]&&Nt[l][s].font;if(I==="ams"){var O=w0("amsrm",d,p);return Tn(s,O,l,n,u.concat("amsrm",d,p))}else if(I==="main"||!I){var U=w0("textrm",d,p);return Tn(s,U,l,n,u.concat(d,p))}else{var Q=w0(I,d,p);return Tn(s,Q,l,n,u.concat(Q,d,p))}}else throw new Error("unexpected type: "+i+" in makeOrd")},qw=(e,t)=>{if(ca(e.classes)!==ca(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},im=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},we=function(t,n,i,l){var s=new so(t,n,i,l);return im(s),s},ha=(e,t,n,i)=>new so(e,t,n,i),Ql=function(t,n,i){var l=we([t],[],n);return l.height=Math.max(i||n.fontMetrics().defaultRuleThickness,n.minRuleThickness),l.style.borderBottomWidth=ze(l.height),l.maxFontSize=1,l},jw=function(t,n,i,l){var s=new xc(t,n,i,l);return im(s),s},Ei=function(t){var n=new oo(t);return im(n),n},Kl=function(t,n){return t instanceof oo?we([],[t],n):t},Iw=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}},ht=function(t,n){for(var{children:i,depth:l}=Iw(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=we(["pstrut"],[]);d.style.height=ze(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 T=A.elem,E=A.wrapperClasses||[],N=A.wrapperStyle||{},z=we(E,[d,T],void 0,N);z.style.top=ze(-s-x-T.depth),A.marginLeft&&(z.style.marginLeft=A.marginLeft),A.marginRight&&(z.style.marginRight=A.marginRight),p.push(z),x+=T.height+T.depth}m=Math.min(m,x),v=Math.max(v,x)}var H=we(["vlist"],p);H.style.height=ze(v);var I;if(m<0){var O=we([],[]),U=we(["vlist"],[O]);U.style.height=ze(-m);var Q=we(["vlist-s"],[new nr("")]);I=[we(["vlist-r"],[H,Q]),we(["vlist-r"],[U])]}else I=[we(["vlist-r"],[H])];var Z=we(["vlist-t"],I);return I.length===2&&Z.classes.push("vlist-t2"),Z.height=v,Z.depth=-m,Z},h7=(e,t)=>{var n=we(["mspace"],[],t),i=Ht(e,t);return n.style.marginRight=ze(i),n},w0=(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},yd={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 fa(i),f=new bi([u],{width:ze(l),height:ze(s),style:"width:"+ze(l),viewBox:"0 0 "+1e3*l+" "+1e3*s,preserveAspectRatio:"xMinYMin"}),h=ha(["overlay"],[f],n);return h.height=s,h.style.height=ze(s),h.style.width=ze(l),h},Lt={number:3,unit:"mu"},qa={number:4,unit:"mu"},pi={number:5,unit:"mu"},Uw={mord:{mop:Lt,mbin:qa,mrel:pi,minner:Lt},mop:{mord:Lt,mop:Lt,mrel:pi,minner:Lt},mbin:{mord:qa,mop:qa,mopen:qa,minner:qa},mrel:{mord:pi,mop:pi,mopen:pi,minner:pi},mopen:{},mclose:{mop:Lt,mbin:qa,mrel:pi,minner:Lt},mpunct:{mord:Lt,mop:Lt,mrel:pi,mopen:Lt,mclose:Lt,mpunct:Lt,minner:Lt},minner:{mord:Lt,mop:Lt,mbin:qa,mrel:pi,mopen:Lt,mpunct:Lt,minner:Lt}},Fw={mord:{mop:Lt},mop:{mord:Lt,mop:Lt},mbin:{},mrel:{},mopen:{},mclose:{mop:Lt},mpunct:{},minner:{mop:Lt}},p7={},K0={},J0={};function Ce(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&&(K0[t]=s),u&&(J0[t]=u))}function Ja(e){var{type:t,htmlBuilder:n,mathmlBuilder:i}=e;Ce({type:t,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:n,mathmlBuilder:i})}var W0=function(t){return t.type==="ordgroup"&&t.body.length===1?t.body[0]:t},Kt=function(t){return t.type==="ordgroup"?t.body:[t]},Vw=new Set(["leftmost","mbin","mopen","mrel","mop","mpunct"]),Yw=new Set(["rightmost","mrel","mclose","mpunct"]),Gw={display:$e.DISPLAY,text:$e.TEXT,script:$e.SCRIPT,scriptscript:$e.SCRIPTSCRIPT},$w={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},sn=function(t,n,i,l){l===void 0&&(l=[null,null]);for(var s=[],u=0;u<t.length;u++){var f=dt(t[u],n);if(f instanceof oo){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(Gw[p.style]))}var m=we([l[0]||"leftmost"],[],n),v=we([l[1]||"rightmost"],[],n),x=i==="root";return vd(s,(w,A)=>{var T=A.classes[0],E=w.classes[0];T==="mbin"&&Yw.has(E)?A.classes[0]="mord":E==="mbin"&&Vw.has(T)&&(w.classes[0]="mord")},{node:m},v,x),vd(s,(w,A)=>{var T,E,N=bd(A),z=bd(w),H=N&&z?w.hasClass("mtight")?(T=Fw[N])==null?void 0:T[z]:(E=Uw[N])==null?void 0:E[z]:null;if(H)return h7(H,d)},{node:m},v,x),s},vd=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){vd(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=we(["leftmost"])),i.insertAfter=(m=>v=>{t.splice(m+1,0,v),u++})(u)}l&&t.pop()},g7=function(t){return t instanceof oo||t instanceof xc||t instanceof so&&t.hasClass("enclosing")?t:null},xd=function(t,n){var i=g7(t);if(i){var l=i.children;if(l.length){if(n==="right")return xd(l[l.length-1],"right");if(n==="left")return xd(l[0],"left")}}return t},bd=function(t,n){if(!t)return null;n&&(t=xd(t,n));var i=t.classes[0];return $w[i]||null},As=function(t,n){var i=["nulldelimiter"].concat(t.baseSizingClasses());return we(n.concat(i))},dt=function(t,n,i){if(!t)return we();if(K0[t.type]){var l=K0[t.type](t,n);if(i&&n.size!==i.size){l=we(n.sizingClasses(i),[l],n);var s=n.sizeMultiplier/i.sizeMultiplier;l.height*=s,l.depth*=s}return l}else throw new Ee("Got group of unknown type: '"+t.type+"'")};function S0(e,t){var n=we(["base"],e,t),i=we(["strut"]);return i.style.height=ze(n.height+n.depth),n.depth&&(i.style.verticalAlign=ze(-n.depth)),n.children.unshift(i),n}function wd(e,t){var n=null;e.length===1&&e[0].type==="tag"&&(n=e[0].tag,e=e[0].body);var i=sn(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(S0(u,t)),u=[])}else i[f].hasClass("newline")&&(u.pop(),u.length>0&&(s.push(S0(u,t)),u=[]),s.push(i[f]));u.length>0&&s.push(S0(u,t));var d;n?(d=S0(sn(n,t,!0),t),d.classes=["tag"],s.push(d)):l&&s.push(l);var p=we(["katex-html"],s);if(p.setAttribute("aria-hidden","true"),d){var m=d.children[0];m.style.height=ze(p.height+p.depth),p.depth&&(m.style.verticalAlign=ze(-p.depth))}return p}function y7(e){return new oo(e)}class Ae{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=ca(this.classes));for(var i=0;i<this.children.length;i++)if(this.children[i]instanceof Jt&&this.children[i+1]instanceof Jt){for(var l=this.children[i].toText()+this.children[++i].toText();this.children[i+1]instanceof Jt;)l+=this.children[++i].toText();t.appendChild(new Jt(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+=bn(this.attributes[n]),t+='"');this.classes.length>0&&(t+=' class ="'+bn(ca(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 Jt{constructor(t){this.text=void 0,this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return bn(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",ze(this.width)),t}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+ze(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var Xw=new Set(["\\imath","\\jmath"]),Pw=new Set(["mrow","mtable"]),gr=function(t,n,i){return Nt[n][t]&&Nt[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=Nt[n][t].replace),new Jt(t)},am=function(t){return t.length===1?t[0]:new Ae("mrow",t)},Zw={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"},lm=(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=Zw[n];if(l)return typeof l=="function"?l(e):l;var s=e.text;if(Xw.has(s))return null;if(Nt[i][s]){var u=Nt[i][s].replace;u&&(s=u)}var f=yd[n].fontName;return nm(s,f,i)?yd[n].variant:null};function v1(e){if(!e)return!1;if(e.type==="mi"&&e.children.length===1){var t=e.children[0];return t instanceof Jt&&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 Jt&&n.text===","}else return!1}var ar=function(t,n,i){if(t.length===1){var l=wt(t[0],n);return i&&l instanceof Ae&&l.type==="mo"&&(l.setAttribute("lspace","0em"),l.setAttribute("rspace","0em")),[l]}for(var s=[],u,f=0;f<t.length;f++){var h=wt(t[f],n);if(h instanceof Ae&&u instanceof Ae){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(v1(h)&&u.type==="mn"){u.children.push(...h.children);continue}else if(h.type==="mn"&&v1(u))h.children=[...u.children,...h.children],s.pop();else if((h.type==="msup"||h.type==="msub")&&h.children.length>=1&&(u.type==="mn"||v1(u))){var d=h.children[0];d instanceof Ae&&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 Jt&&p.text==="̸"&&(h.type==="mo"||h.type==="mi"||h.type==="mn")){var m=h.children[0];m instanceof Jt&&m.text.length>0&&(m.text=m.text.slice(0,1)+"̸"+m.text.slice(1),s.pop())}}}s.push(h),u=h}return s},da=function(t,n,i){return am(ar(t,n,i))},wt=function(t,n){if(!t)return new Ae("mrow");if(J0[t.type])return J0[t.type](t,n);throw new Ee("Got group of unknown type: '"+t.type+"'")};function g3(e,t,n,i,l){var s=ar(e,n),u;s.length===1&&s[0]instanceof Ae&&Pw.has(s[0].type)?u=s[0]:u=new Ae("mrow",s);var f=new Ae("annotation",[new Jt(t)]);f.setAttribute("encoding","application/x-tex");var h=new Ae("semantics",[u,f]),d=new Ae("math",[h]);d.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),i&&d.setAttribute("display","block");var p=l?"katex":"katex-mathml";return we([p],[d])}var Qw=[[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]],y3=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],v3=function(t,n){return n.size<2?t:Qw[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=y3[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:v3(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:y3[t-1]})}havingBaseStyle(t){t=t||this.style.text();var n=v3(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=Ow(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}yi.BASESIZE=6;var x7=function(t){return new yi({style:t.displayMode?$e.DISPLAY:$e.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=we(i,[t])}return t},Kw=function(t,n,i){var l=x7(i),s;if(i.output==="mathml")return g3(t,n,l,i.displayMode,!0);if(i.output==="html"){var u=wd(t,l);s=we(["katex"],[u])}else{var f=g3(t,n,l,i.displayMode,!1),h=wd(t,l);s=we(["katex"],[f,h])}return b7(s,i)},Jw=function(t,n,i){var l=x7(i),s=wd(t,l),u=we(["katex"],[s]);return b7(u,i)},Ww={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":"="},Sc=function(t){var n=new Ae("mo",[new Jt(Ww[t.replace(/^\\/,"")])]);return n.setAttribute("stretchy","true"),n},eS={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]},tS=new Set(["widehat","widecheck","widetilde","utilde"]),kc=function(t,n){function i(){var f=4e5,h=t.label.slice(1);if(tS.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 fa(m),A=new bi([w],{width:"100%",height:ze(v),viewBox:"0 0 "+f+" "+p,preserveAspectRatio:"none"});return{span:ha([],[A],n),minWidth:0,height:v}}else{var T=[],E=eS[h];if(!E)throw new Error('No SVG data for "'+h+'".');var[N,z,H]=E,I=H/1e3,O=N.length,U,Q;if(O===1){if(E.length!==4)throw new Error('Expected 4-tuple for single-path SVG data "'+h+'".');U=["hide-tail"],Q=[E[3]]}else if(O===2)U=["halfarrow-left","halfarrow-right"],Q=["xMinYMin","xMaxYMin"];else if(O===3)U=["brace-left","brace-center","brace-right"],Q=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
|
|
262
|
-
`+O+" children.");for(var Z=0;Z<O;Z++){var V=new fa(N[Z]),P=new bi([V],{width:"400em",height:ze(I),viewBox:"0 0 "+f+" "+H,preserveAspectRatio:Q[Z]+" slice"}),W=ha([U[Z]],[P],n);if(O===1)return{span:W,minWidth:z,height:I};W.style.height=ze(I),T.push(W)}return{span:we(["stretchy"],T,n),minWidth:z,height:I}}}var{span:l,minWidth:s,height:u}=i();return l.height=u,l.style.height=ze(u),s>0&&(l.style.minWidth=ze(s)),l},nS=function(t,n,i,l,s){var u,f=t.height+t.depth+i+l;if(/fbox|color|angl/.test(n)){if(u=we(["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 fd({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(n)&&d.push(new fd({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var p=new bi(d,{width:"100%",height:ze(f)});u=ha([],[p],s)}return u.height=f,u.style.height=ze(f),u},rS={bin:1,close:1,inner:1,open:1,punct:1,rel:1},iS={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1};function aS(e){return e in rS}function Ke(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 Ec(e){var t=Ac(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 Ac(e){return e&&(e.type==="atom"||iS.hasOwnProperty(e.type))?e:null}var w7=e=>{if(e instanceof nr)return e;if(Dw(e)&&e.children.length===1)return w7(e.children[0])},om=(e,t)=>{var n,i,l;e&&e.type==="supsub"?(i=Ke(e.base,"accent"),n=i.base,e.base=n,l=Nw(dt(e,t)),e.base=i):(i=Ke(e,"accent"),n=i.base);var s=dt(n,t.havingCrampedStyle()),u=i.isShifty&&Si(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=kc(i,t),v=ht({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"elem",elem:v,wrapperClasses:["svg-align"],wrapperStyle:f>0?{width:"calc(100% - "+ze(2*f)+")",marginLeft:ze(2*f)}:void 0}]});else{var x,w;i.label==="\\vec"?(x=m7("vec",t),w=d7.vec[1]):(x=wc({mode:i.mode,text:i.label},t,"textord"),x=Mw(x),x.italic=0,w=x.width,p&&(m+=x.depth)),v=we(["accent-body"],[x]);var A=i.label==="\\textcircled";A&&(v.classes.push("accent-full"),m=s.height);var T=f;A||(T-=w/2),v.style.left=ze(T),i.label==="\\textcircled"&&(v.style.top=".2em"),v=ht({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:-m},{type:"elem",elem:v}]})}var E=we(["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?Sc(e.label):new Ae("mo",[gr(e.label,e.mode)]),i=new Ae("mover",[wt(e.base,t),n]);return i.setAttribute("accent","true"),i},lS=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));Ce({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=W0(t[0]),i=!lS.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:om,mathmlBuilder:S7});Ce({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:om,mathmlBuilder:S7});Ce({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=dt(e.base,t),i=kc(e,t),l=e.label==="\\utilde"?.12:0,s=ht({positionType:"top",positionData:n.height,children:[{type:"elem",elem:i,wrapperClasses:["svg-align"]},{type:"kern",size:l},{type:"elem",elem:n}]});return we(["mord","accentunder"],[s],t)},mathmlBuilder:(e,t)=>{var n=Sc(e.label),i=new Ae("munder",[wt(e.base,t),n]);return i.setAttribute("accentunder","true"),i}});var k0=e=>{var t=new Ae("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};Ce({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=Kl(dt(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=Kl(dt(e.below,i,t),t),u.classes.push(s+"-arrow-pad"));var f=kc(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=ht({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=ht({positionType:"individualShift",children:[{type:"elem",elem:l,shift:d},{type:"elem",elem:f,shift:h,wrapperClasses:["svg-align"]}]});return we(["mrel","x-arrow"],[p],t)},mathmlBuilder(e,t){var n=Sc(e.label);n.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var i;if(e.body){var l=k0(wt(e.body,t));if(e.below){var s=k0(wt(e.below,t));i=new Ae("munderover",[n,s,l])}else i=new Ae("mover",[n,l])}else if(e.below){var u=k0(wt(e.below,t));i=new Ae("munder",[n,u])}else i=k0(),i=new Ae("mover",[n,i]);return i}});function k7(e,t){var n=sn(e.body,t,!0);return we([e.mclass],n,t)}function E7(e,t){var n,i=ar(e.body,t);return e.mclass==="minner"?n=new Ae("mpadded",i):e.mclass==="mord"?e.isCharacterBox?(n=i[0],n.type="mi"):n=new Ae("mi",i):(e.isCharacterBox?(n=i[0],n.type="mo"):n=new Ae("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}Ce({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:Kt(l),isCharacterBox:Si(l)}},htmlBuilder:k7,mathmlBuilder:E7});var Tc=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"};Ce({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:n}=e;return{type:"mclass",mode:n.mode,mclass:Tc(t[0]),body:Kt(t[1]),isCharacterBox:Si(t[1])}}});Ce({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=Tc(l):u="mrel";var f={type:"op",mode:l.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:i!=="\\stackrel",body:Kt(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:Si(h)}},htmlBuilder:k7,mathmlBuilder:E7});Ce({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"pmb",mode:n.mode,mclass:Tc(t[0]),body:Kt(t[0])}},htmlBuilder(e,t){var n=sn(e.body,t,!0),i=we([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 Ae("mstyle",n);return i.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),i}});var oS={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},x3=()=>({type:"styling",body:[],mode:"math",style:"display",resetFont:!0}),b3=e=>e.type==="textord"&&e.text==="@",sS=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function uS(e,t,n){var i=oS[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 cS(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 Ee("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var i=[],l=[i],s=0;s<t.length;s++){for(var u=t[s],f=x3(),h=0;h<u.length;h++)if(!b3(u[h]))f.body.push(u[h]);else{i.push(f),h+=1;var d=Ec(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(sS(u[x],d)){v=!1,h=x;break}if(b3(u[x]))throw new Ee("Missing a "+d+" character to complete a CD arrow.",u[x]);p[m].body.push(u[x])}if(v)throw new Ee("Missing a "+d+" character to complete a CD arrow.",u[h])}else throw new Ee('Expected one of "<>AV=|." after @',u[h]);var w=uS(d,p,e),A={type:"styling",body:[w],mode:"math",style:"display",resetFont:!0};i.push(A),f=x3()}s%2===0?i.push(f):i.shift(),i=[],l.push(i)}e.gullet.endGroup(),e.gullet.endGroup();var T=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:T,colSeparationType:"CD",hLinesBeforeRow:new Array(l.length+1).fill([])}}Ce({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=Kl(dt(e.label,n,t),t);return i.classes.push("cd-label-"+e.side),i.style.bottom=ze(.8-i.depth),i.height=0,i.depth=0,i},mathmlBuilder(e,t){var n=new Ae("mrow",[wt(e.label,t)]);return n=new Ae("mpadded",[n]),n.setAttribute("width","0"),e.side==="left"&&n.setAttribute("lspace","-1width"),n.setAttribute("voffset","0.7em"),n=new Ae("mstyle",[n]),n.setAttribute("displaystyle","false"),n.setAttribute("scriptlevel","1"),n}});Ce({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=Kl(dt(e.fragment,t),t);return n.classes.push("cd-vert-arrow"),n},mathmlBuilder(e,t){return new Ae("mrow",[wt(e.fragment,t)])}});Ce({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:n}=e,i=Ke(t[0],"ordgroup"),l=i.body,s="",u=0;u<l.length;u++){var f=Ke(l[u],"textord");s+=f.text}var h=parseInt(s),d;if(isNaN(h))throw new Ee("\\@char has non-numeric argument "+s);if(h<0||h>=1114111)throw new Ee("\\@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=sn(e.body,t.withColor(e.color),!1);return Ei(n)},T7=(e,t)=>{var n=ar(e.body,t.withColor(e.color)),i=new Ae("mstyle",n);return i.setAttribute("mathcolor",e.color),i};Ce({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:n}=e,i=Ke(t[0],"color-token").color,l=t[1];return{type:"color",mode:n.mode,color:i,body:Kt(l)}},htmlBuilder:A7,mathmlBuilder:T7});Ce({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:n,breakOnTokenText:i}=e,l=Ke(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:T7});Ce({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&&Ke(l,"size").value}},htmlBuilder(e,t){var n=we(["mspace"],[],t);return e.newLine&&(n.classes.push("newline"),e.size&&(n.style.marginTop=ze(Ht(e.size,t)))),n},mathmlBuilder(e,t){var n=new Ae("mspace");return e.newLine&&(n.setAttribute("linebreak","newline"),e.size&&n.setAttribute("height",ze(Ht(e.size,t)))),n}});var Sd={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},z7=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new Ee("Expected a control sequence",e);return t},fS=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},C7=(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)};Ce({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(Sd[i.text])return(n==="\\global"||n==="\\\\globallong")&&(i.text=Sd[i.text]),Ke(t.parseFunction(),"internal");throw new Ee("Invalid token after macro prefix",i)}});Ce({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 Ee("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 Ee('Invalid argument number "'+i.text+'"');if(parseInt(i.text)!==s+1)throw new Ee('Argument number "'+i.text+'" out of order');s++,f.push([])}else{if(i.text==="EOF")throw new Ee("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===Sd[n]),{type:"internal",mode:t.mode}}});Ce({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,i=z7(t.gullet.popToken());t.gullet.consumeSpaces();var l=fS(t);return C7(t,i,l,n==="\\\\globallet"),{type:"internal",mode:t.mode}}});Ce({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,i=z7(t.gullet.popToken()),l=t.gullet.popToken(),s=t.gullet.popToken();return C7(t,i,s,n==="\\\\globalfuture"),t.gullet.pushToken(s),t.gullet.pushToken(l),{type:"internal",mode:t.mode}}});var ms=function(t,n,i){var l=Nt.math[t]&&Nt.math[t].replace,s=nm(l||t,n,i);if(!s)throw new Error("Unsupported symbol "+t+" and font size "+n+".");return s},sm=function(t,n,i,l){var s=i.havingBaseStyle(n),u=we(l.concat(s.sizingClasses(i)),[t],i),f=s.sizeMultiplier/i.sizeMultiplier;return u.height*=f,u.depth*=f,u.maxFontSize=s.sizeMultiplier,u},M7=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=ze(s),t.height-=s,t.depth+=s},hS=function(t,n,i,l,s,u){var f=Tn(t,"Main-Regular",s,l),h=sm(f,n,l,u);return M7(h,l,n),h},dS=function(t,n,i,l){return Tn(t,"Size"+n+"-Regular",i,l)},N7=function(t,n,i,l,s,u){var f=dS(t,n,s,l),h=sm(we(["delimsizing","size"+n],[f],l),$e.TEXT,l,u);return i&&M7(h,l,$e.TEXT),h},x1=function(t,n,i){var l;n==="Size1-Regular"?l="delim-size1":l="delim-size4";var s=we(["delimsizinginner",l],[we([],[Tn(t,n,i)])]);return{type:"elem",elem:s}},b1=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 fa("inner",Sw(t,Math.round(1e3*n))),u=new bi([s],{width:ze(l),height:ze(n),style:"width:"+ze(l),viewBox:"0 0 "+1e3*l+" "+Math.round(1e3*n),preserveAspectRatio:"xMinYMin"}),f=ha([],[u],i);return f.height=n,f.style.height=ze(n),f.style.width=ze(l),{type:"elem",elem:f}},kd=.008,E0={type:"kern",size:-1*kd},mS=new Set(["|","\\lvert","\\rvert","\\vert"]),pS=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"):mS.has(t)?(d="∣",m="vert",v=333):pS.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=ms(f,x,s),A=w.height+w.depth,T=ms(d,x,s),E=T.height+T.depth,N=ms(p,x,s),z=N.height+N.depth,H=0,I=1;if(h!==null){var O=ms(h,x,s);H=O.height+O.depth,I=2}var U=A+z+H,Q=Math.max(0,Math.ceil((n-U)/(I*E))),Z=U+Q*I*E,V=l.fontMetrics().axisHeight;i&&(V*=l.sizeMultiplier);var P=Z/2-V,W=[];if(m.length>0){var ce=Z-A-z,j=Math.round(Z*1e3),F=kw(m,Math.round(ce*1e3)),L=new fa(m,F),Y=ze(v/1e3),J=ze(j/1e3),ne=new bi([L],{width:Y,height:J,viewBox:"0 0 "+v+" "+j}),C=ha([],[ne],l);C.height=j/1e3,C.style.width=Y,C.style.height=J,W.push({type:"elem",elem:C})}else{if(W.push(x1(p,x,s)),W.push(E0),h===null){var q=Z-A-z+2*kd;W.push(b1(d,q,l))}else{var $=(Z-A-z-H)/2+2*kd;W.push(b1(d,$,l)),W.push(E0),W.push(x1(h,x,s)),W.push(E0),W.push(b1(d,$,l))}W.push(E0),W.push(x1(f,x,s))}var _=l.havingBaseStyle($e.TEXT),ie=ht({positionType:"bottom",positionData:P,children:W});return sm(we(["delimsizing","mult"],[ie],_),$e.TEXT,l,u)},w1=80,S1=.08,k1=function(t,n,i,l,s){var u=ww(t,l,i),f=new fa(t,u),h=new bi([f],{width:"400em",height:ze(n),viewBox:"0 0 400000 "+i,preserveAspectRatio:"xMinYMin slice"});return ha(["hide-tail"],[h],s)},gS=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+w1,t<1?s=1:t<1.4&&(s=.7),h=(1+u+S1)/s,d=(1+u)/s,f=k1("sqrtMain",h,p,u,n),f.style.minWidth="0.853em",m=.833/s):l.type==="large"?(p=(1e3+w1)*ys[l.size],d=(ys[l.size]+u)/s,h=(ys[l.size]+u+S1)/s,f=k1("sqrtSize"+l.size,h,p,u,n),f.style.minWidth="1.02em",m=1/s):(h=t+u+S1,d=t+u,p=Math.floor(1e3*t+u)+w1,f=k1("sqrtTall",h,p,u,n),f.style.minWidth="0.742em",m=1.056),f.height=d,f.style.height=ze(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"]),yS=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"]),ys=[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(yS.has(t))return D7(t,ys[n],!1,i,l,s);throw new Ee("Illegal delimiter: '"+t+"'")},vS=[{type:"small",style:$e.SCRIPTSCRIPT},{type:"small",style:$e.SCRIPT},{type:"small",style:$e.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],xS=[{type:"small",style:$e.SCRIPTSCRIPT},{type:"small",style:$e.SCRIPT},{type:"small",style:$e.TEXT},{type:"stack"}],B7=[{type:"small",style:$e.SCRIPTSCRIPT},{type:"small",style:$e.SCRIPT},{type:"small",style:$e.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],bS=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=ms(t,bS(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]},Ed=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=vS:_7.has(t)?f=B7:f=xS;var h=L7(t,n,f,l);return h.type==="small"?hS(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)},E1=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 Ed(t,m,!0,l,s,u)},w3={"\\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}},wS=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 S3(e){return"isMiddle"in e}function zc(e,t){var n=Ac(e);if(n&&wS.has(n.text))return n;throw n?new Ee("Invalid delimiter '"+n.text+"' after '"+t.funcName+"'",e):new Ee("Invalid delimiter type '"+e.type+"'",e)}Ce({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:w3[e.funcName].size,mclass:w3[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>e.delim==="."?we([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 Ae("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n.setAttribute("stretchy","true");var i=ze(ys[e.size]);return n.setAttribute("minsize",i),n.setAttribute("maxsize",i),n}});function k3(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}Ce({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 Ee("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:zc(t[0],e).text,color:n}}});Ce({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=Ke(i.parseFunction(),"leftright-right");return{type:"leftright",mode:i.mode,body:l,left:n.text,right:s.delim,rightColor:s.color}},htmlBuilder:(e,t)=>{k3(e);for(var n=sn(e.body,t,!0,["mopen","mclose"]),i=0,l=0,s=!1,u=0;u<n.length;u++){var f=n[u];S3(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=As(t,["mopen"]):h=E1(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(S3(p)){var m=p.isMiddle;n[d]=E1(m.delim,i,l,m.options,e.mode,[])}}var v;if(e.right===".")v=As(t,["mclose"]);else{var x=e.rightColor?t.withColor(e.rightColor):t;v=E1(e.right,i,l,x,e.mode,["mclose"])}return n.push(v),we(["minner"],n,t)},mathmlBuilder:(e,t)=>{k3(e);var n=ar(e.body,t);if(e.left!=="."){var i=new Ae("mo",[gr(e.left,e.mode)]);i.setAttribute("fence","true"),n.unshift(i)}if(e.right!=="."){var l=new Ae("mo",[gr(e.right,e.mode)]);l.setAttribute("fence","true"),e.rightColor&&l.setAttribute("mathcolor",e.rightColor),n.push(l)}return am(n)}});Ce({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=zc(t[0],e);if(!e.parser.leftrightDepth)throw new Ee("\\middle without preceding \\left",n);return{type:"middle",mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{var n;return e.delim==="."?n=As(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 Ae("mo",[n]);return i.setAttribute("fence","true"),i.setAttribute("lspace","0.05em"),i.setAttribute("rspace","0.05em"),i}});var Cc=(e,t)=>{var n=Kl(dt(e.body,t),t),i=e.label.slice(1),l=t.sizeMultiplier,s,u,f=Si(e.body);if(i==="sout")s=we(["stretchy","sout"]),s.height=t.fontMetrics().defaultRuleThickness/l,u=-.5*t.fontMetrics().xHeight;else if(i==="phase"){var h=Ht({number:.6,unit:"pt"},t),d=Ht({number:.35,unit:"ex"},t),p=t.havingBaseSizing();l=l/p.sizeMultiplier;var m=n.height+n.depth+h+d;n.style.paddingLeft=ze(m/2+h);var v=Math.floor(1e3*m*l),x=xw(v),w=new bi([new fa("phase",x)],{width:"400em",height:ze(v/1e3),viewBox:"0 0 400000 "+v,preserveAspectRatio:"xMinYMin slice"});s=ha(["hide-tail"],[w],t),s.style.height=ze(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,T,E=0;/box/.test(i)?(E=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),A=t.fontMetrics().fboxsep+(i==="colorbox"?0:E),T=A):i==="angl"?(E=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),A=4*E,T=Math.max(0,.25-n.depth)):(A=f?.2:0,T=A),s=nS(n,i,A,T,t),/fbox|boxed|fcolorbox/.test(i)?(s.style.borderStyle="solid",s.style.borderWidth=ze(E)):i==="angl"&&E!==.049&&(s.style.borderTopWidth=ze(E),s.style.borderRightWidth=ze(E)),u=n.depth+T,e.backgroundColor&&(s.style.backgroundColor=e.backgroundColor,e.borderColor&&(s.style.borderColor=e.borderColor))}var N;if(e.backgroundColor)N=ht({positionType:"individualShift",children:[{type:"elem",elem:s,shift:u},{type:"elem",elem:n,shift:0}]});else{var z=/cancel|phase/.test(i)?["svg-align"]:[];N=ht({positionType:"individualShift",children:[{type:"elem",elem:n,shift:0},{type:"elem",elem:s,shift:u,wrapperClasses:z}]})}return/cancel/.test(i)&&(N.height=n.height,N.depth=n.depth),/cancel/.test(i)&&!f?we(["mord","cancel-lap"],[N],t):we(["mord"],[N],t)},Mc=(e,t)=>{var n,i=new Ae(e.label.includes("colorbox")?"mpadded":"menclose",[wt(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: "+ze(l)+" solid "+e.borderColor)}break;case"\\xcancel":i.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&i.setAttribute("mathbackground",e.backgroundColor),i};Ce({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","hbox"]},handler(e,t,n){var{parser:i,funcName:l}=e,s=Ke(t[0],"color-token").color,u=t[1];return{type:"enclose",mode:i.mode,label:l,backgroundColor:s,body:u}},htmlBuilder:Cc,mathmlBuilder:Mc});Ce({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","hbox"]},handler(e,t,n){var{parser:i,funcName:l}=e,s=Ke(t[0],"color-token").color,u=Ke(t[1],"color-token").color,f=t[2];return{type:"enclose",mode:i.mode,label:l,backgroundColor:u,borderColor:s,body:f}},htmlBuilder:Cc,mathmlBuilder:Mc});Ce({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]}}});Ce({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:Cc,mathmlBuilder:Mc});Ce({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:Cc,mathmlBuilder:Mc});Ce({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&&(K0[t]=s),u&&(J0[t]=u)}var q7={};function B(e,t){q7[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 E3(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 Nc=e=>{var t=e.parser.settings;if(!t.displayMode)throw new Ee("{"+e.envName+"} can be used only in display mode.")},SS=new Set(["gather","gather*"]);function um(e){if(!e.includes("ed"))return!e.includes("*")}function pa(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 Ee("Invalid \\arraystretch: "+x)}e.gullet.beginGroup();var w=[],A=[w],T=[],E=[],N=h!=null?[]:void 0;function z(){h&&e.gullet.macros.set("\\@eqnsw","1",!0)}function H(){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(z(),E.push(E3(e));;){var I=e.parseExpression(!1,d?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup();var O={type:"ordgroup",mode:e.mode,body:I};n&&(O={type:"styling",mode:e.mode,style:n,resetFont:!0,body:[O]}),w.push(O);var U=e.fetch().text;if(U==="&"){if(m&&w.length===m){if(d||f)throw new Ee("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"){H(),w.length===1&&O.type==="styling"&&O.body.length===1&&O.body[0].type==="ordgroup"&&O.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 Q=void 0;e.gullet.future().text!==" "&&(Q=e.parseSizeGroup(!0)),T.push(Q?Q.value:null),H(),E.push(E3(e)),w=[],A.push(w),z()}else throw new Ee("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:T,hskipBeforeAndAfter:i,hLinesBeforeRow:E,colSeparationType:f,tags:N,leqno:v}}function cm(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($e.SCRIPT).sizeMultiplier;v=.2778*(x/n.sizeMultiplier)}var w=t.colSeparationType==="CD"?Ht({number:3,unit:"ex"},n):12*m,A=3*m,T=t.arraystretch*w,E=.7*T,N=.3*T,z=0;function H(He){for(var Ge=0;Ge<He.length;++Ge)Ge>0&&(z+=.25),d.push({pos:z,isDashed:He[Ge]})}for(H(u[0]),i=0;i<t.body.length;++i){var I=t.body[i],O=E,U=N;f<I.length&&(f=I.length);var Q={cells:new Array(I.length),height:0,depth:0,pos:0};for(l=0;l<I.length;++l){var Z=dt(I[l],n);U<Z.depth&&(U=Z.depth),O<Z.height&&(O=Z.height),Q.cells[l]=Z}var V=t.rowGaps[i],P=0;V&&(P=Ht(V,n),P>0&&(P+=N,U<P&&(U=P),P=0)),t.addJot&&i<t.body.length-1&&(U+=A),Q.height=O,Q.depth=U,z+=O,Q.pos=z,z+=U+P,h[i]=Q,H(u[i+1])}var W=z/2+n.fontMetrics().axisHeight,ce=t.cols||[],j=[],F,L,Y=[];if(t.tags&&t.tags.some(He=>He))for(i=0;i<s;++i){var J=h[i],ne=J.pos-W,C=t.tags[i],q=void 0;C===!0?q=we(["eqn-num"],[],n):C===!1?q=we([],[],n):q=we([],sn(C,n,!0),n),q.depth=J.depth,q.height=J.height,Y.push({type:"elem",elem:q,shift:ne})}for(l=0,L=0;l<f||L<ce.length;++l,++L){for(var $,_=ce[L],ie=!0;((ye=_)==null?void 0:ye.type)==="separator";){var ye;if(ie||(F=we(["arraycolsep"],[]),F.style.width=ze(n.fontMetrics().doubleRuleSep),j.push(F)),_.separator==="|"||_.separator===":"){var xe=_.separator==="|"?"solid":"dashed",be=we(["vertical-separator"],[],n);be.style.height=ze(z),be.style.borderRightWidth=ze(p),be.style.borderRightStyle=xe,be.style.margin="0 "+ze(-p/2);var ge=z-W;ge&&(be.style.verticalAlign=ze(-ge)),j.push(be)}else throw new Ee("Invalid separator type: "+_.separator);L++,_=ce[L],ie=!1}if(!(l>=f)){var Se=void 0;if(l>0||t.hskipBeforeAndAfter){var qe,Ie;Se=(qe=(Ie=_)==null?void 0:Ie.pregap)!=null?qe:v,Se!==0&&(F=we(["arraycolsep"],[]),F.style.width=ze(Se),j.push(F))}var Re=[];for(i=0;i<s;++i){var Be=h[i],Ye=Be.cells[l];if(Ye){var it=Be.pos-W;Ye.depth=Be.depth,Ye.height=Be.height,Re.push({type:"elem",elem:Ye,shift:it})}}var Je=ht({positionType:"individualShift",children:Re}),At=we(["col-align-"+((($=_)==null?void 0:$.align)||"c")],[Je]);if(j.push(At),l<f-1||t.hskipBeforeAndAfter){var tn,Ut;Se=(tn=(Ut=_)==null?void 0:Ut.postgap)!=null?tn:v,Se!==0&&(F=we(["arraycolsep"],[]),F.style.width=ze(Se),j.push(F))}}}var Ft=we(["mtable"],j);if(d.length>0){for(var pn=Ql("hline",n,p),Sn=Ql("hdashline",n,p),gn=[{type:"elem",elem:Ft,shift:0}];d.length>0;){var kt=d.pop(),Vn=kt.pos-W;kt.isDashed?gn.push({type:"elem",elem:Sn,shift:Vn}):gn.push({type:"elem",elem:pn,shift:Vn})}Ft=ht({positionType:"individualShift",children:gn})}if(Y.length===0)return we(["mord"],[Ft],n);var fe=ht({positionType:"individualShift",children:Y}),ke=we(["tag"],[fe],n);return Ei([Ft,ke])},kS={c:"center ",l:"left ",r:"right "},Gr=function(t,n){for(var i=[],l=new Ae("mtd",[],["mtr-glue"]),s=new Ae("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 Ae("mtd",[wt(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 Ae("mtr",h))}var p=new Ae("mtable",i),m=t.arraystretch===.5?.1:.16+t.arraystretch-1+(t.addJot?.09:0);p.setAttribute("rowspacing",ze(m));var v="",x="";if(t.cols&&t.cols.length>0){var w=t.cols,A="",T=!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 z=E;z<N;z++){var H=w[z];H.type==="align"?(x+=kS[H.align],T&&(A+="none "),T=!0):H.type==="separator"&&T&&(A+=H.separator==="|"?"solid ":"dashed ",T=!1)}p.setAttribute("columnalign",x.trim()),/[sd]/.test(A)&&p.setAttribute("columnlines",A.trim())}if(t.colSeparationType==="align"){for(var I=t.cols||[],O="",U=1;U<I.length;U++)O+=U%2?"0em ":"1em ";p.setAttribute("columnspacing",O.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 Q="",Z=t.hLinesBeforeRow;v+=Z[0].length>0?"left ":"",v+=Z[Z.length-1].length>0?"right ":"";for(var V=1;V<Z.length-1;V++)Q+=Z[V].length===0?"none ":Z[V][0]?"dashed ":"solid ";return/[sd]/.test(Q)&&p.setAttribute("rowlines",Q.trim()),v!==""&&(p=new Ae("menclose",[p]),p.setAttribute("notation",v.trim())),t.arraystretch&&t.arraystretch<1&&(p=new Ae("mstyle",[p]),p.setAttribute("scriptlevel","1")),p},j7=function(t,n){t.envName.includes("ed")||Nc(t);var i=[],l=t.envName.includes("at")?"alignat":"align",s=t.envName==="split",u=pa(t.parser,{cols:i,addJot:!0,autoTag:s?void 0:um(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=Ke(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 z=Ke(E[N],"styling"),H=Ke(z.body[0],"ordgroup");H.body.unshift(d)}if(x)h<E.length&&(h=E.length);else{var I=E.length/2;if(f<I)throw new Ee("Too many math in a row: "+("expected "+f+", but got "+I),E[0])}});for(var w=0;w<h;++w){var A="r",T=0;w%2===1?A="l":w>0&&x&&(T=1),i[w]={type:"align",align:A,pregap:T,postgap:0}}return u.colSeparationType=x?"align":"alignat",u};Vr({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var n=Ac(t[0]),i=n?[t[0]]:Ke(t[0],"ordgroup").body,l=i.map(function(u){var f=Ec(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 Ee("Unknown column alignment: "+h,u)}),s={cols:l,hskipBeforeAndAfter:!0,maxNumCols:l.length};return pa(e.parser,s,cm(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 Ee("Expected l or c or r",l.nextToken);l.consume(),l.consumeSpaces(),l.expect("]"),l.consume(),i.cols=[{type:"align",align:n}]}}var s=pa(e.parser,i,cm(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=pa(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=Ac(t[0]),i=n?[t[0]]:Ke(t[0],"ordgroup").body,l=i.map(function(f){var h=Ec(f),d=h.text;if("lc".includes(d))return{type:"align",align:d};throw new Ee("Unknown column alignment: "+d,f)});if(l.length>1)throw new Ee("{subarray} can contain only one column");var s={cols:l,hskipBeforeAndAfter:!1,arraystretch:.5},u=pa(e.parser,s,"script");if(u.body.length>0&&u.body[0].length>1)throw new Ee("{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=pa(e.parser,t,cm(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:j7,htmlBuilder:Yr,mathmlBuilder:Gr});Vr({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){SS.has(e.envName)&&Nc(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:um(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return pa(e.parser,t,"display")},htmlBuilder:Yr,mathmlBuilder:Gr});Vr({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:j7,htmlBuilder:Yr,mathmlBuilder:Gr});Vr({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){Nc(e);var t={autoTag:um(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return pa(e.parser,t,"display")},htmlBuilder:Yr,mathmlBuilder:Gr});Vr({type:"array",names:["CD"],props:{numArgs:0},handler(e){return Nc(e),cS(e.parser)},htmlBuilder:Yr,mathmlBuilder:Gr});B("\\nonumber","\\gdef\\@eqnsw{0}");B("\\notag","\\nonumber");Ce({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new Ee(e.funcName+" valid only within array environment")}});var A3=H7;Ce({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 Ee("Invalid environment name",l);for(var s="",u=0;u<l.body.length;++u)s+=Ke(l.body[u],"textord").text;if(i==="\\begin"){if(!A3.hasOwnProperty(s))throw new Ee("No such environment: "+s,l);var f=A3[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=Ke(n.parseFunction(),"environment");if(x.name!==s)throw new Ee("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 dt(e.body,i)},U7=(e,t)=>{var n=e.font,i=t.withFont(n);return wt(e.body,i)},T3={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak"};Ce({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=W0(t[0]),s=i;return s in T3&&(s=T3[s]),{type:"font",mode:n.mode,font:s.slice(1),body:l}},htmlBuilder:I7,mathmlBuilder:U7});Ce({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:Tc(i),body:[{type:"font",mode:n.mode,font:"boldsymbol",body:i}],isCharacterBox:Si(i)}}});Ce({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 ES=(e,t)=>{var n=t.style,i=n.fracNum(),l=n.fracDen(),s;s=t.havingStyle(i);var u=dt(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=dt(e.denom,s,t),p,m,v;e.hasBarLine?(e.barSize?(m=Ht(e.barSize,t),p=Ql("frac-line",t,m)):p=Ql("frac-line",t),m=p.height,v=p.height):(p=null,m=0,v=t.fontMetrics().defaultRuleThickness);var x,w,A;n.size===$e.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 T;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 z=-(N-.5*m);T=ht({positionType:"individualShift",children:[{type:"elem",elem:d,shift:A},{type:"elem",elem:p,shift:z},{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)),T=ht({positionType:"individualShift",children:[{type:"elem",elem:d,shift:A},{type:"elem",elem:u,shift:-x}]})}s=t.havingStyle(n),T.height*=s.sizeMultiplier/t.sizeMultiplier,T.depth*=s.sizeMultiplier/t.sizeMultiplier;var H;n.size===$e.DISPLAY.size?H=t.fontMetrics().delim1:n.size===$e.SCRIPTSCRIPT.size?H=t.havingStyle($e.SCRIPT).fontMetrics().delim2:H=t.fontMetrics().delim2;var I,O;return e.leftDelim==null?I=As(t,["mopen"]):I=Ed(e.leftDelim,H,!0,t.havingStyle(n),e.mode,["mopen"]),e.continued?O=we([]):e.rightDelim==null?O=As(t,["mclose"]):O=Ed(e.rightDelim,H,!0,t.havingStyle(n),e.mode,["mclose"]),we(["mord"].concat(s.sizingClasses(t)),[I,we(["mfrac"],[T]),O],t)},AS=(e,t)=>{var n=new Ae("mfrac",[wt(e.numer,t),wt(e.denom,t)]);if(!e.hasBarLine)n.setAttribute("linethickness","0px");else if(e.barSize){var i=Ht(e.barSize,t);n.setAttribute("linethickness",ze(i))}if(e.leftDelim!=null||e.rightDelim!=null){var l=[];if(e.leftDelim!=null){var s=new Ae("mo",[new Jt(e.leftDelim.replace("\\",""))]);s.setAttribute("fence","true"),l.push(s)}if(l.push(n),e.rightDelim!=null){var u=new Ae("mo",[new Jt(e.rightDelim.replace("\\",""))]);u.setAttribute("fence","true"),l.push(u)}return am(l)}return n},F7=(e,t)=>{if(!t)return e;var n={type:"styling",mode:e.mode,style:t,body:[e]};return n};Ce({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:ES,mathmlBuilder:AS});Ce({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 z3=["display","text","script","scriptscript"],C3=function(t){var n=null;return t.length>0&&(n=t,n=n==="."?null:n),n};Ce({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=W0(t[0]),u=s.type==="atom"&&s.family==="open"?C3(s.text):null,f=W0(t[1]),h=f.type==="atom"&&f.family==="close"?C3(f.text):null,d=Ke(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=Ke(x.body[0],"textord");v=z3[Number(w.text)]}}else x=Ke(x,"textord"),v=z3[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)}});Ce({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:Ke(t[0],"size").value,token:l}}});Ce({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:n,funcName:i}=e,l=t[0],s=Ke(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?dt(e.sup,t.havingStyle(n.sup()),t):dt(e.sub,t.havingStyle(n.sub()),t),l=Ke(e.base,"horizBrace")):l=Ke(e,"horizBrace");var s=dt(l.base,t.havingBaseStyle($e.DISPLAY)),u=kc(l,t),f;if(l.isOver?f=ht({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:u,wrapperClasses:["svg-align"]}]}):f=ht({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=we(["minner",l.isOver?"mover":"munder"],[f],t);l.isOver?f=ht({positionType:"firstBaseline",children:[{type:"elem",elem:h},{type:"kern",size:.2},{type:"elem",elem:i}]}):f=ht({positionType:"bottom",positionData:h.depth+.2+i.height+i.depth,children:[{type:"elem",elem:i},{type:"kern",size:.2},{type:"elem",elem:h}]})}return we(["minner",l.isOver?"mover":"munder"],[f],t)},TS=(e,t)=>{var n=Sc(e.label);return new Ae(e.isOver?"mover":"munder",[wt(e.base,t),n])};Ce({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});Ce({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,i=t[1],l=Ke(t[0],"url").url;return n.settings.isTrusted({command:"\\href",url:l})?{type:"href",mode:n.mode,href:l,body:Kt(i)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var n=sn(e.body,t,!1);return jw(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=da(e.body,t);return n instanceof Ae||(n=new Ae("mrow",[n])),n.setAttribute("href",e.href),n}});Ce({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,i=Ke(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:Kt(f)}}});Ce({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:Kt(t[0])}},htmlBuilder(e,t){var n=sn(e.body,t.withFont(""),!1);return Ei(n)},mathmlBuilder(e,t){return new Ae("mrow",ar(e.body,t.withFont("")))}});Ce({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=Ke(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 Ee("\\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:Kt(u)}:n.formatUnsupportedCmd(i)},htmlBuilder:(e,t)=>{var n=sn(e.body,t,!1),i=["enclosing"];e.attributes.class&&i.push(...e.attributes.class.trim().split(/\s+/));var l=we(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)=>da(e.body,t)});Ce({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:Kt(t[0]),mathml:Kt(t[1])}},htmlBuilder:(e,t)=>{var n=sn(e.html,t,!1);return Ei(n)},mathmlBuilder:(e,t)=>da(e.mathml,t)});var A1=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 Ee("Invalid size: '"+t+"' in \\includegraphics");var i={number:+(n[1]+n[2]),unit:n[3]};if(!l7(i))throw new Ee("Invalid unit: '"+i.unit+"' in \\includegraphics.");return i};Ce({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=Ke(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=A1(v);break;case"height":s=A1(v);break;case"totalheight":u=A1(v);break;default:throw new Ee("Invalid key: '"+m[0]+"' in \\includegraphics.")}}}var x=Ke(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=Ht(e.height,t),i=0;e.totalheight.number>0&&(i=Ht(e.totalheight,t)-n);var l=0;e.width.number>0&&(l=Ht(e.width,t));var s={height:ze(n+i)};l>0&&(s.width=ze(l)),i>0&&(s.verticalAlign=ze(-i));var u=new zw(e.src,e.alt,s);return u.height=n,u.depth=i,u},mathmlBuilder:(e,t)=>{var n=new Ae("mglyph",[]);n.setAttribute("alt",e.alt);var i=Ht(e.height,t),l=0;if(e.totalheight.number>0&&(l=Ht(e.totalheight,t)-i,n.setAttribute("valign",ze(-l))),n.setAttribute("height",ze(i+l)),e.width.number>0){var s=Ht(e.width,t);n.setAttribute("width",ze(s))}return n.setAttribute("src",e.src),n}});Ce({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=Ke(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=Ht(e.dimension,t);return new v7(n)}});Ce({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=we([],[dt(e.body,t)]),n=we(["inner"],[n],t)):n=we(["inner"],[dt(e.body,t)]);var i=we(["fix"],[]),l=we([e.alignment],[n,i],t),s=we(["strut"]);return s.style.height=ze(l.height+l.depth),l.depth&&(s.style.verticalAlign=ze(-l.depth)),l.children.unshift(s),l=we(["thinbox"],[l],t),we(["mord","vbox"],[l],t)},mathmlBuilder:(e,t)=>{var n=new Ae("mpadded",[wt(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}});Ce({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}}});Ce({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new Ee("Mismatched "+e.funcName)}});var M3=(e,t)=>{switch(t.style.size){case $e.DISPLAY.size:return e.display;case $e.TEXT.size:return e.text;case $e.SCRIPT.size:return e.script;case $e.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};Ce({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"mathchoice",mode:n.mode,display:Kt(t[0]),text:Kt(t[1]),script:Kt(t[2]),scriptscript:Kt(t[3])}},htmlBuilder:(e,t)=>{var n=M3(e,t),i=sn(n,t,!1);return Ei(i)},mathmlBuilder:(e,t)=>{var n=M3(e,t);return da(n,t)}});var Y7=(e,t,n,i,l,s,u)=>{e=we([],[e]);var f=n&&Si(n),h,d;if(t){var p=dt(t,i.havingStyle(l.sup()),i);d={elem:p,kern:Math.max(i.fontMetrics().bigOpSpacing1,i.fontMetrics().bigOpSpacing3-p.depth)}}if(n){var m=dt(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=ht({positionType:"bottom",positionData:x,children:[{type:"kern",size:i.fontMetrics().bigOpSpacing5},{type:"elem",elem:h.elem,marginLeft:ze(-s)},{type:"kern",size:h.kern},{type:"elem",elem:e},{type:"kern",size:d.kern},{type:"elem",elem:d.elem,marginLeft:ze(s)},{type:"kern",size:i.fontMetrics().bigOpSpacing5}]})}else if(h){var w=e.height-u;v=ht({positionType:"top",positionData:w,children:[{type:"kern",size:i.fontMetrics().bigOpSpacing5},{type:"elem",elem:h.elem,marginLeft:ze(-s)},{type:"kern",size:h.kern},{type:"elem",elem:e}]})}else if(d){var A=e.depth+u;v=ht({positionType:"bottom",positionData:A,children:[{type:"elem",elem:e},{type:"kern",size:d.kern},{type:"elem",elem:d.elem,marginLeft:ze(s)},{type:"kern",size:i.fontMetrics().bigOpSpacing5}]})}else return e;var T=[v];if(h&&s!==0&&!f){var E=we(["mspace"],[],i);E.style.marginRight=ze(s),T.unshift(E)}return we(["mop","op-limits"],T,i)},G7=new Set(["\\smallint"]),co=(e,t)=>{var n,i,l=!1,s;e.type==="supsub"?(n=e.sup,i=e.sub,s=Ke(e.base,"op"),l=!0):s=Ke(e,"op");var u=t.style,f=!1;u.size===$e.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=Tn(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=ht({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=sn(s.body,t,!0);x.length===1&&x[0]instanceof nr?(h=x[0],h.classes[0]="mop"):h=we(["mop"],x,t)}else{for(var w=[],A=1;A<s.name.length;A++)w.push(rm(s.name[A],s.mode,t));h=we(["mop"],w,t)}var T=0,E=0;if((h instanceof nr||s.name==="\\oiint"||s.name==="\\oiiint")&&!s.suppressBaseShift){var N;T=(h.height-h.depth)/2-t.fontMetrics().axisHeight,E=(N=h.italic)!=null?N:0}return l?Y7(h,n,i,t,u,E,T):(T&&(h.style.position="relative",h.style.top=ze(T)),h)},Fs=(e,t)=>{var n;if(e.symbol)n=new Ae("mo",[gr(e.name,e.mode)]),G7.has(e.name)&&n.setAttribute("largeop","false");else if(e.body)n=new Ae("mo",ar(e.body,t));else{n=new Ae("mi",[new Jt(e.name.slice(1))]);var i=new Ae("mo",[gr("","text")]);e.parentIsSupSub?n=new Ae("mrow",[n,i]):n=y7([n,i])}return n},zS={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};Ce({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=zS[l]),{type:"op",mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:l}},htmlBuilder:co,mathmlBuilder:Fs});Ce({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:Kt(i)}},htmlBuilder:co,mathmlBuilder:Fs});var CS={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};Ce({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:co,mathmlBuilder:Fs});Ce({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:co,mathmlBuilder:Fs});Ce({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=CS[i]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:co,mathmlBuilder:Fs});var $7=(e,t)=>{var n,i,l=!1,s;e.type==="supsub"?(n=e.sup,i=e.sub,s=Ke(e.base,"operatorname"),l=!0):s=Ke(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=sn(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=we(["mop"],h,t)}else u=we(["mop"],[],t);return l?Y7(u,n,i,t,t.style,0,0):u},MS=(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 Ae)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 Jt?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 Jt(f)]}var h=new Ae("mi",n);h.setAttribute("mathvariant","normal");var d=new Ae("mo",[gr("","text")]);return e.parentIsSupSub?new Ae("mrow",[h,d]):y7([h,d])};Ce({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:Kt(l),alwaysHandleSupSub:i==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:$7,mathmlBuilder:MS});B("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");Ja({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?Ei(sn(e.body,t,!1)):we(["mord"],sn(e.body,t,!0),t)},mathmlBuilder(e,t){return da(e.body,t,!0)}});Ce({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=dt(e.body,t.havingCrampedStyle()),i=Ql("overline-line",t),l=t.fontMetrics().defaultRuleThickness,s=ht({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"kern",size:3*l},{type:"elem",elem:i},{type:"kern",size:l}]});return we(["mord","overline"],[s],t)},mathmlBuilder(e,t){var n=new Ae("mo",[new Jt("‾")]);n.setAttribute("stretchy","true");var i=new Ae("mover",[wt(e.body,t),n]);return i.setAttribute("accent","true"),i}});Ce({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:Kt(i)}},htmlBuilder:(e,t)=>{var n=sn(e.body,t.withPhantom(),!1);return Ei(n)},mathmlBuilder:(e,t)=>{var n=ar(e.body,t);return new Ae("mphantom",n)}});B("\\hphantom","\\smash{\\phantom{#1}}");Ce({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=we(["inner"],[dt(e.body,t.withPhantom())]),i=we(["fix"],[]);return we(["mord","rlap"],[n,i],t)},mathmlBuilder:(e,t)=>{var n=ar(Kt(e.body),t),i=new Ae("mphantom",n),l=new Ae("mpadded",[i]);return l.setAttribute("width","0px"),l}});Ce({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e,i=Ke(t[0],"size").value,l=t[1];return{type:"raisebox",mode:n.mode,dy:i,body:l}},htmlBuilder(e,t){var n=dt(e.body,t),i=Ht(e.dy,t);return ht({positionType:"shift",positionData:-i,children:[{type:"elem",elem:n}]})},mathmlBuilder(e,t){var n=new Ae("mpadded",[wt(e.body,t)]),i=e.dy.number+e.dy.unit;return n.setAttribute("voffset",i),n}});Ce({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}});Ce({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=Ke(t[0],"size"),u=Ke(t[1],"size");return{type:"rule",mode:i.mode,shift:l&&Ke(l,"size").value,width:s.value,height:u.value}},htmlBuilder(e,t){var n=we(["mord","rule"],[],t),i=Ht(e.width,t),l=Ht(e.height,t),s=e.shift?Ht(e.shift,t):0;return n.style.borderRightWidth=ze(i),n.style.borderTopWidth=ze(l),n.style.bottom=ze(s),n.width=i,n.height=l+s,n.depth=-s,n.maxFontSize=l*1.125*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=Ht(e.width,t),i=Ht(e.height,t),l=e.shift?Ht(e.shift,t):0,s=t.color&&t.getColor()||"black",u=new Ae("mspace");u.setAttribute("mathbackground",s),u.setAttribute("width",ze(n)),u.setAttribute("height",ze(i));var f=new Ae("mpadded",[u]);return l>=0?f.setAttribute("height",ze(l)):(f.setAttribute("height",ze(l)),f.setAttribute("depth",ze(-l))),f.setAttribute("voffset",ze(l)),f}});function X7(e,t,n){for(var i=sn(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 Ei(i)}var N3=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],NS=(e,t)=>{var n=t.havingSize(e.size);return X7(e.body,n,t)};Ce({type:"sizing",names:N3,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:N3.indexOf(i)+1,body:s}},htmlBuilder:NS,mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),i=ar(e.body,n),l=new Ae("mstyle",i);return l.setAttribute("mathsize",ze(n.sizeMultiplier)),l}});Ce({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]&&Ke(n[0],"ordgroup");if(u)for(var f,h=0;h<u.body.length;++h){var d=u.body[h];if(f=Ec(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=we([],[dt(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 we(["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=ht({positionType:"firstBaseline",children:[{type:"elem",elem:n}]});return we(["mord"],[l],t)},mathmlBuilder:(e,t)=>{var n=new Ae("mpadded",[wt(e.body,t)]);return e.smashHeight&&n.setAttribute("height","0px"),e.smashDepth&&n.setAttribute("depth","0px"),n}});Ce({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=dt(e.body,t.havingCrampedStyle());n.height===0&&(n.height=t.fontMetrics().xHeight),n=Kl(n,t);var i=t.fontMetrics(),l=i.defaultRuleThickness,s=l;t.style.id<$e.TEXT.id&&(s=t.fontMetrics().xHeight);var u=l+s/4,f=n.height+n.depth+u+l,{span:h,ruleWidth:d,advanceWidth:p}=gS(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=ze(p);var x=ht({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($e.SCRIPTSCRIPT),A=dt(e.index,w,t),T=.6*(x.height-x.depth),E=ht({positionType:"shift",positionData:-T,children:[{type:"elem",elem:A}]}),N=we(["root"],[E]);return we(["mord","sqrt"],[N,x],t)}else return we(["mord","sqrt"],[x],t)},mathmlBuilder(e,t){var{body:n,index:i}=e;return i?new Ae("mroot",[wt(n,t),wt(i,t)]):new Ae("msqrt",[wt(n,t)])}});var Ad={display:$e.DISPLAY,text:$e.TEXT,script:$e.SCRIPT,scriptscript:$e.SCRIPTSCRIPT};function DS(e){return e in Ad}Ce({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(!DS(u))throw new Error("Unknown style: "+u);return{type:"styling",mode:l.mode,style:u,body:s}},htmlBuilder(e,t){var n=Ad[e.style],i=t.havingStyle(n);return e.resetFont&&(i=i.withFont("")),X7(e.body,i,t)},mathmlBuilder(e,t){var n=Ad[e.style],i=t.havingStyle(n);e.resetFont&&(i=i.withFont(""));var l=ar(e.body,i),s=new Ae("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 _S=function(t,n){var i=t.base;if(i)if(i.type==="op"){var l=i.limits&&(n.style.size===$e.DISPLAY.size||i.alwaysHandleSupSub);return l?co:null}else if(i.type==="operatorname"){var s=i.alwaysHandleSupSub&&(n.style.size===$e.DISPLAY.size||i.limits);return s?$7:null}else{if(i.type==="accent")return Si(i.base)?om:null;if(i.type==="horizBrace"){var u=!t.sub;return u===i.isOver?V7:null}else return null}else return null};Ja({type:"supsub",htmlBuilder(e,t){var n=_S(e,t);if(n)return n(e,t);var{base:i,sup:l,sub:s}=e,u=dt(i,t),f,h,d=t.fontMetrics(),p=0,m=0,v=i&&Si(i);if(l){var x=t.havingStyle(t.style.sup());f=dt(l,x,t),v||(p=u.height-x.fontMetrics().supDrop*x.sizeMultiplier/t.sizeMultiplier)}if(s){var w=t.havingStyle(t.style.sub());h=dt(s,w,t),v||(m=u.depth+w.fontMetrics().subDrop*w.sizeMultiplier/t.sizeMultiplier)}var A;t.style===$e.DISPLAY?A=d.sup1:t.style.cramped?A=d.sup3:A=d.sup2;var T=t.sizeMultiplier,E=ze(.5/d.ptPerEm/T),N=null;if(h){var z=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");if(u instanceof nr||z){var H;N=ze(-((H=u.italic)!=null?H:0))}}var I;if(f&&h){p=Math.max(p,A,f.depth+.25*d.xHeight),m=Math.max(m,d.sub2);var O=d.defaultRuleThickness,U=4*O;if(p-f.depth-(h.height-m)<U){m=U-(p-f.depth)+h.height;var Q=.8*d.xHeight-(p-f.depth);Q>0&&(p+=Q,m-=Q)}var Z=[{type:"elem",elem:h,shift:m,marginRight:E,marginLeft:N},{type:"elem",elem:f,shift:-p,marginRight:E}];I=ht({positionType:"individualShift",children:Z})}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=ht({positionType:"shift",positionData:m,children:V})}else if(f)p=Math.max(p,A,f.depth+.25*d.xHeight),I=ht({positionType:"shift",positionData:-p,children:[{type:"elem",elem:f,marginRight:E}]});else throw new Error("supsub must have either sup or sub.");var P=bd(u,"right")||"mord";return we([P],[u,we(["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=[wt(e.base,t)];e.sub&&s.push(wt(e.sub,t)),e.sup&&s.push(wt(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===$e.DISPLAY||d&&d.type==="operatorname"&&d.alwaysHandleSupSub&&(t.style===$e.DISPLAY||d.limits)?u="munderover":u="msubsup"}else{var h=e.base;h&&h.type==="op"&&h.limits&&(t.style===$e.DISPLAY||h.alwaysHandleSupSub)||h&&h.type==="operatorname"&&h.alwaysHandleSupSub&&(h.limits||t.style===$e.DISPLAY)?u="munder":u="msub"}else{var f=e.base;f&&f.type==="op"&&f.limits&&(t.style===$e.DISPLAY||f.alwaysHandleSupSub)||f&&f.type==="operatorname"&&f.alwaysHandleSupSub&&(f.limits||t.style===$e.DISPLAY)?u="mover":u="msup"}return new Ae(u,s)}});Ja({type:"atom",htmlBuilder(e,t){return rm(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var n=new Ae("mo",[gr(e.text,e.mode)]);if(e.family==="bin"){var i=lm(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"};Ja({type:"mathord",htmlBuilder(e,t){return wc(e,t,"mathord")},mathmlBuilder(e,t){var n=new Ae("mi",[gr(e.text,e.mode,t)]),i=lm(e,t)||"italic";return i!==P7[n.type]&&n.setAttribute("mathvariant",i),n}});Ja({type:"textord",htmlBuilder(e,t){return wc(e,t,"textord")},mathmlBuilder(e,t){var n=gr(e.text,e.mode,t),i=lm(e,t)||"normal",l;return e.mode==="text"?l=new Ae("mtext",[n]):/[0-9]/.test(e.text)?l=new Ae("mn",[n]):e.text==="\\prime"?l=new Ae("mo",[n]):l=new Ae("mi",[n]),i!==P7[l.type]&&l.setAttribute("mathvariant",i),l}});var T1={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},z1={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};Ja({type:"spacing",htmlBuilder(e,t){if(z1.hasOwnProperty(e.text)){var n=z1[e.text].className||"";if(e.mode==="text"){var i=wc(e,t,"textord");return i.classes.push(n),i}else return we(["mspace",n],[rm(e.text,e.mode,t)],t)}else{if(T1.hasOwnProperty(e.text))return we(["mspace",T1[e.text]],[],t);throw new Ee('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var n;if(z1.hasOwnProperty(e.text))n=new Ae("mtext",[new Jt(" ")]);else{if(T1.hasOwnProperty(e.text))return new Ae("mspace");throw new Ee('Unknown type of space "'+e.text+'"')}return n}});var D3=()=>{var e=new Ae("mtd",[]);return e.setAttribute("width","50%"),e};Ja({type:"tag",mathmlBuilder(e,t){var n=new Ae("mtable",[new Ae("mtr",[D3(),new Ae("mtd",[da(e.body,t)]),D3(),new Ae("mtd",[da(e.tag,t)])])]);return n.setAttribute("width","100%"),n}});var _3={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},O3={"\\textbf":"textbf","\\textmd":"textmd"},OS={"\\textit":"textit","\\textup":"textup"},R3=(e,t)=>{var n=e.font;if(n){if(_3[n])return t.withTextFontFamily(_3[n]);if(O3[n])return t.withTextFontWeight(O3[n]);if(n==="\\emph")return t.fontShape==="textit"?t.withTextFontShape("textup"):t.withTextFontShape("textit")}else return t;return t.withTextFontShape(OS[n])};Ce({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:Kt(l),font:i}},htmlBuilder(e,t){var n=R3(e,t),i=sn(e.body,n,!0);return we(["mord","text"],i,n)},mathmlBuilder(e,t){var n=R3(e,t);return da(e.body,n)}});Ce({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=dt(e.body,t),i=Ql("underline-line",t),l=t.fontMetrics().defaultRuleThickness,s=ht({positionType:"top",positionData:n.height,children:[{type:"kern",size:l},{type:"elem",elem:i},{type:"kern",size:3*l},{type:"elem",elem:n}]});return we(["mord","underline"],[s],t)},mathmlBuilder(e,t){var n=new Ae("mo",[new Jt("‾")]);n.setAttribute("stretchy","true");var i=new Ae("munder",[wt(e.body,t),n]);return i.setAttribute("accentunder","true"),i}});Ce({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=dt(e.body,t),i=t.fontMetrics().axisHeight,l=.5*(n.height-i-(n.depth+i));return ht({positionType:"shift",positionData:l,children:[{type:"elem",elem:n}]})},mathmlBuilder(e,t){var n=new Ae("mpadded",[wt(e.body,t)],["vcenter"]);return new Ae("mrow",[n])}});Ce({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,n){throw new Ee("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var n=B3(e),i=[],l=t.havingStyle(t.style.text()),s=0;s<n.length;s++){var u=n[s];u==="~"&&(u="\\textasciitilde"),i.push(Tn(u,"Typewriter-Regular",e.mode,l,["mord","texttt"]))}return we(["mord","text"].concat(l.sizingClasses(t)),f7(i),l)},mathmlBuilder(e,t){var n=new Jt(B3(e)),i=new Ae("mtext",[n]);return i.setAttribute("mathvariant","monospace"),i}});var B3=e=>e.body.replace(/ /g,e.star?"␣":" "),oa=p7,Z7=`[ \r
|
|
263
|
-
]`,RS="\\\\[a-zA-Z@]+",BS="\\\\[^\uD800-\uDFFF]",LS="("+RS+")"+Z7+"*",HS=`\\\\(
|
|
264
|
-
|[ \r ]+
|
|
265
|
-
?)[ \r ]*`,Td="[̀-ͯ]",qS=new RegExp(Td+"+$"),jS="("+Z7+"+)|"+(HS+"|")+"([!-\\[\\]-‧-豈-]"+(Td+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(Td+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+LS)+("|"+BS+")");class L3{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(jS,"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 Ee("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 IS{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 Ee("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 US=q7;B("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}});B("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}});B("\\@firstoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}});B("\\@secondoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}});B("\\@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}});B("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");B("\\TextOrMath",function(e){var t=e.consumeArgs(2);return e.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var H3={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};B("\\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 Ee("\\char` missing argument");i=t.text.charCodeAt(0)}else n=10;if(n){if(i=H3[t.text],i==null||i>=n)throw new Ee("Invalid base-"+n+" digit "+t.text);for(var l;(l=H3[e.future().text])!=null&&l<n;)i*=n,i+=l,e.popToken()}return"\\@char{"+i+"}"});var fm=(e,t,n,i)=>{var l=e.consumeArg().tokens;if(l.length!==1)throw new Ee("\\newcommand's first argument must be a macro name");var s=l[0].text,u=e.isDefined(s);if(u&&!t)throw new Ee("\\newcommand{"+s+"} attempting to redefine "+(s+"; use \\renewcommand"));if(!u&&!n)throw new Ee("\\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 Ee("Invalid number of arguments: "+h);f=parseInt(h),l=e.consumeArg().tokens}return u&&i||e.macros.set(s,{tokens:l,numArgs:f}),""};B("\\newcommand",e=>fm(e,!1,!0,!1));B("\\renewcommand",e=>fm(e,!0,!1,!1));B("\\providecommand",e=>fm(e,!0,!0,!0));B("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(n=>n.text).join("")),""});B("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(n=>n.text).join("")),""});B("\\show",e=>{var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),oa[n],Nt.math[n],Nt.text[n]),""});B("\\bgroup","{");B("\\egroup","}");B("~","\\nobreakspace");B("\\lq","`");B("\\rq","'");B("\\aa","\\r a");B("\\AA","\\r A");B("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");B("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");B("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");B("ℬ","\\mathscr{B}");B("ℰ","\\mathscr{E}");B("ℱ","\\mathscr{F}");B("ℋ","\\mathscr{H}");B("ℐ","\\mathscr{I}");B("ℒ","\\mathscr{L}");B("ℳ","\\mathscr{M}");B("ℛ","\\mathscr{R}");B("ℭ","\\mathfrak{C}");B("ℌ","\\mathfrak{H}");B("ℨ","\\mathfrak{Z}");B("\\Bbbk","\\Bbb{k}");B("\\llap","\\mathllap{\\textrm{#1}}");B("\\rlap","\\mathrlap{\\textrm{#1}}");B("\\clap","\\mathclap{\\textrm{#1}}");B("\\mathstrut","\\vphantom{(}");B("\\underbar","\\underline{\\text{#1}}");B("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}');B("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");B("\\ne","\\neq");B("≠","\\neq");B("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");B("∉","\\notin");B("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");B("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");B("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");B("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");B("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");B("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");B("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");B("⟂","\\perp");B("‼","\\mathclose{!\\mkern-0.8mu!}");B("∌","\\notni");B("⌜","\\ulcorner");B("⌝","\\urcorner");B("⌞","\\llcorner");B("⌟","\\lrcorner");B("©","\\copyright");B("®","\\textregistered");B("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');B("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');B("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');B("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');B("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");B("⋮","\\vdots");B("\\varGamma","\\mathit{\\Gamma}");B("\\varDelta","\\mathit{\\Delta}");B("\\varTheta","\\mathit{\\Theta}");B("\\varLambda","\\mathit{\\Lambda}");B("\\varXi","\\mathit{\\Xi}");B("\\varPi","\\mathit{\\Pi}");B("\\varSigma","\\mathit{\\Sigma}");B("\\varUpsilon","\\mathit{\\Upsilon}");B("\\varPhi","\\mathit{\\Phi}");B("\\varPsi","\\mathit{\\Psi}");B("\\varOmega","\\mathit{\\Omega}");B("\\substack","\\begin{subarray}{c}#1\\end{subarray}");B("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");B("\\boxed","\\fbox{$\\displaystyle{#1}$}");B("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");B("\\implies","\\DOTSB\\;\\Longrightarrow\\;");B("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");B("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");B("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var q3={",":"\\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"},FS=new Set(["bin","rel"]);B("\\dots",function(e){var t="\\dotso",n=e.expandAfterFuture().text;return n in q3?t=q3[n]:(n.slice(0,4)==="\\not"||n in Nt.math&&FS.has(Nt.math[n].group))&&(t="\\dotsb"),t});var hm={")":!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};B("\\dotso",function(e){var t=e.future().text;return t in hm?"\\ldots\\,":"\\ldots"});B("\\dotsc",function(e){var t=e.future().text;return t in hm&&t!==","?"\\ldots\\,":"\\ldots"});B("\\cdots",function(e){var t=e.future().text;return t in hm?"\\@cdots\\,":"\\@cdots"});B("\\dotsb","\\cdots");B("\\dotsm","\\cdots");B("\\dotsi","\\!\\cdots");B("\\dotsx","\\ldots\\,");B("\\DOTSI","\\relax");B("\\DOTSB","\\relax");B("\\DOTSX","\\relax");B("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");B("\\,","\\tmspace+{3mu}{.1667em}");B("\\thinspace","\\,");B("\\>","\\mskip{4mu}");B("\\:","\\tmspace+{4mu}{.2222em}");B("\\medspace","\\:");B("\\;","\\tmspace+{5mu}{.2777em}");B("\\thickspace","\\;");B("\\!","\\tmspace-{3mu}{.1667em}");B("\\negthinspace","\\!");B("\\negmedspace","\\tmspace-{4mu}{.2222em}");B("\\negthickspace","\\tmspace-{5mu}{.277em}");B("\\enspace","\\kern.5em ");B("\\enskip","\\hskip.5em\\relax");B("\\quad","\\hskip1em\\relax");B("\\qquad","\\hskip2em\\relax");B("\\tag","\\@ifstar\\tag@literal\\tag@paren");B("\\tag@paren","\\tag@literal{({#1})}");B("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new Ee("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});B("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");B("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");B("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");B("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");B("\\newline","\\\\\\relax");B("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var Q7=ze(Ir["Main-Regular"][84][1]-.7*Ir["Main-Regular"][65][1]);B("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+Q7+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");B("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+Q7+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");B("\\hspace","\\@ifstar\\@hspacer\\@hspace");B("\\@hspace","\\hskip #1\\relax");B("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");B("\\ordinarycolon",":");B("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");B("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');B("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');B("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');B("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');B("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');B("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');B("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');B("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');B("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');B("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');B("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');B("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');B("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');B("∷","\\dblcolon");B("∹","\\eqcolon");B("≔","\\coloneqq");B("≕","\\eqqcolon");B("⩴","\\Coloneqq");B("\\ratio","\\vcentcolon");B("\\coloncolon","\\dblcolon");B("\\colonequals","\\coloneqq");B("\\coloncolonequals","\\Coloneqq");B("\\equalscolon","\\eqqcolon");B("\\equalscoloncolon","\\Eqqcolon");B("\\colonminus","\\coloneq");B("\\coloncolonminus","\\Coloneq");B("\\minuscolon","\\eqcolon");B("\\minuscoloncolon","\\Eqcolon");B("\\coloncolonapprox","\\Colonapprox");B("\\coloncolonsim","\\Colonsim");B("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");B("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");B("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");B("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");B("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");B("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");B("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");B("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");B("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");B("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");B("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");B("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");B("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");B("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");B("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");B("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");B("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");B("\\nleqq","\\html@mathml{\\@nleqq}{≰}");B("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");B("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");B("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");B("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");B("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");B("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");B("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");B("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");B("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");B("\\imath","\\html@mathml{\\@imath}{ı}");B("\\jmath","\\html@mathml{\\@jmath}{ȷ}");B("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");B("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");B("⟦","\\llbracket");B("⟧","\\rrbracket");B("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");B("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");B("⦃","\\lBrace");B("⦄","\\rBrace");B("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");B("⦵","\\minuso");B("\\darr","\\downarrow");B("\\dArr","\\Downarrow");B("\\Darr","\\Downarrow");B("\\lang","\\langle");B("\\rang","\\rangle");B("\\uarr","\\uparrow");B("\\uArr","\\Uparrow");B("\\Uarr","\\Uparrow");B("\\N","\\mathbb{N}");B("\\R","\\mathbb{R}");B("\\Z","\\mathbb{Z}");B("\\alef","\\aleph");B("\\alefsym","\\aleph");B("\\Alpha","\\mathrm{A}");B("\\Beta","\\mathrm{B}");B("\\bull","\\bullet");B("\\Chi","\\mathrm{X}");B("\\clubs","\\clubsuit");B("\\cnums","\\mathbb{C}");B("\\Complex","\\mathbb{C}");B("\\Dagger","\\ddagger");B("\\diamonds","\\diamondsuit");B("\\empty","\\emptyset");B("\\Epsilon","\\mathrm{E}");B("\\Eta","\\mathrm{H}");B("\\exist","\\exists");B("\\harr","\\leftrightarrow");B("\\hArr","\\Leftrightarrow");B("\\Harr","\\Leftrightarrow");B("\\hearts","\\heartsuit");B("\\image","\\Im");B("\\infin","\\infty");B("\\Iota","\\mathrm{I}");B("\\isin","\\in");B("\\Kappa","\\mathrm{K}");B("\\larr","\\leftarrow");B("\\lArr","\\Leftarrow");B("\\Larr","\\Leftarrow");B("\\lrarr","\\leftrightarrow");B("\\lrArr","\\Leftrightarrow");B("\\Lrarr","\\Leftrightarrow");B("\\Mu","\\mathrm{M}");B("\\natnums","\\mathbb{N}");B("\\Nu","\\mathrm{N}");B("\\Omicron","\\mathrm{O}");B("\\plusmn","\\pm");B("\\rarr","\\rightarrow");B("\\rArr","\\Rightarrow");B("\\Rarr","\\Rightarrow");B("\\real","\\Re");B("\\reals","\\mathbb{R}");B("\\Reals","\\mathbb{R}");B("\\Rho","\\mathrm{P}");B("\\sdot","\\cdot");B("\\sect","\\S");B("\\spades","\\spadesuit");B("\\sub","\\subset");B("\\sube","\\subseteq");B("\\supe","\\supseteq");B("\\Tau","\\mathrm{T}");B("\\thetasym","\\vartheta");B("\\weierp","\\wp");B("\\Zeta","\\mathrm{Z}");B("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");B("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");B("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");B("\\bra","\\mathinner{\\langle{#1}|}");B("\\ket","\\mathinner{|{#1}\\rangle}");B("\\braket","\\mathinner{\\langle{#1}\\rangle}");B("\\Bra","\\left\\langle#1\\right|");B("\\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}};B("\\bra@ket",K7(!1));B("\\bra@set",K7(!0));B("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");B("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");B("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");B("\\angln","{\\angl n}");B("\\blue","\\textcolor{##6495ed}{#1}");B("\\orange","\\textcolor{##ffa500}{#1}");B("\\pink","\\textcolor{##ff00af}{#1}");B("\\red","\\textcolor{##df0030}{#1}");B("\\green","\\textcolor{##28ae7b}{#1}");B("\\gray","\\textcolor{gray}{#1}");B("\\purple","\\textcolor{##9d38bd}{#1}");B("\\blueA","\\textcolor{##ccfaff}{#1}");B("\\blueB","\\textcolor{##80f6ff}{#1}");B("\\blueC","\\textcolor{##63d9ea}{#1}");B("\\blueD","\\textcolor{##11accd}{#1}");B("\\blueE","\\textcolor{##0c7f99}{#1}");B("\\tealA","\\textcolor{##94fff5}{#1}");B("\\tealB","\\textcolor{##26edd5}{#1}");B("\\tealC","\\textcolor{##01d1c1}{#1}");B("\\tealD","\\textcolor{##01a995}{#1}");B("\\tealE","\\textcolor{##208170}{#1}");B("\\greenA","\\textcolor{##b6ffb0}{#1}");B("\\greenB","\\textcolor{##8af281}{#1}");B("\\greenC","\\textcolor{##74cf70}{#1}");B("\\greenD","\\textcolor{##1fab54}{#1}");B("\\greenE","\\textcolor{##0d923f}{#1}");B("\\goldA","\\textcolor{##ffd0a9}{#1}");B("\\goldB","\\textcolor{##ffbb71}{#1}");B("\\goldC","\\textcolor{##ff9c39}{#1}");B("\\goldD","\\textcolor{##e07d10}{#1}");B("\\goldE","\\textcolor{##a75a05}{#1}");B("\\redA","\\textcolor{##fca9a9}{#1}");B("\\redB","\\textcolor{##ff8482}{#1}");B("\\redC","\\textcolor{##f9685d}{#1}");B("\\redD","\\textcolor{##e84d39}{#1}");B("\\redE","\\textcolor{##bc2612}{#1}");B("\\maroonA","\\textcolor{##ffbde0}{#1}");B("\\maroonB","\\textcolor{##ff92c6}{#1}");B("\\maroonC","\\textcolor{##ed5fa6}{#1}");B("\\maroonD","\\textcolor{##ca337c}{#1}");B("\\maroonE","\\textcolor{##9e034e}{#1}");B("\\purpleA","\\textcolor{##ddd7ff}{#1}");B("\\purpleB","\\textcolor{##c6b9fc}{#1}");B("\\purpleC","\\textcolor{##aa87ff}{#1}");B("\\purpleD","\\textcolor{##7854ab}{#1}");B("\\purpleE","\\textcolor{##543b78}{#1}");B("\\mintA","\\textcolor{##f5f9e8}{#1}");B("\\mintB","\\textcolor{##edf2df}{#1}");B("\\mintC","\\textcolor{##e0e5cc}{#1}");B("\\grayA","\\textcolor{##f6f7f7}{#1}");B("\\grayB","\\textcolor{##f0f1f2}{#1}");B("\\grayC","\\textcolor{##e3e5e6}{#1}");B("\\grayD","\\textcolor{##d6d8da}{#1}");B("\\grayE","\\textcolor{##babec2}{#1}");B("\\grayF","\\textcolor{##888d93}{#1}");B("\\grayG","\\textcolor{##626569}{#1}");B("\\grayH","\\textcolor{##3b3e40}{#1}");B("\\grayI","\\textcolor{##21242c}{#1}");B("\\kaBlue","\\textcolor{##314453}{#1}");B("\\kaGreen","\\textcolor{##71B307}{#1}");var J7={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class VS{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 IS(US,n.macros),this.mode=i,this.stack=[]}feed(t){this.lexer=new L3(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 Ee("Extra }",s)}else if(s.text==="EOF")throw new Ee("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 Ee("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 Ee("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 Ee("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 Ee("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 Ee("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 Ee("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 L3(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)||oa.hasOwnProperty(t)||Nt.math.hasOwnProperty(t)||Nt.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:oa.hasOwnProperty(t)&&!oa[t].primitive}}var j3=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,A0=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","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),C1={"́":{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"}},I3={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};class Dc{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 VS(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 Ee("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(Dc.endOfExpression.has(l.text)||n&&l.text===n||t&&oa[l.text]&&oa[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 Ee("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 Ee("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 Ee("Limit controls must follow a math operator",s);this.consume()}else if(s.text==="^"){if(i)throw new Ee("Double superscript",s);i=this.handleSupSubscript("superscript")}else if(s.text==="_"){if(l)throw new Ee("Double subscript",s);l=this.handleSupSubscript("subscript")}else if(s.text==="'"){if(i)throw new Ee("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(A0[s.text]){var d=j3.test(s.text),p=[];for(p.push(new er(A0[s.text])),this.consume();;){var m=this.fetch().text;if(!A0[m]||j3.test(m)!==d)break;p.unshift(new er(A0[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=oa[l];if(!s)return null;if(this.consume(),n&&n!=="atom"&&!s.allowedInArgument)throw new Ee("Got function '"+l+"' with no arguments"+(n?" as "+n:""),i);if(this.mode==="text"&&!s.allowedInText)throw new Ee("Can't use function '"+l+"' in text mode",i);if(this.mode==="math"&&s.allowedInMath===!1)throw new Ee("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=oa[t];if(f&&f.handler)return f.handler(u,n,i);throw new Ee("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 Ee("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 Ee("A primitive argument cannot be optional");var u=this.parseGroup(t);if(u==null)throw new Ee("Expected group as "+t,this.fetch());return u}case"original":case null:case void 0:return this.parseArgumentGroup(i);default:throw new Ee("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 Ee("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 Ee("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 Ee("Invalid size: '"+n.text+"'",n);var s={number:+(l[1]+l[2]),unit:l[3]};if(!l7(s))throw new Ee("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 Ee("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 Ee(`\\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}}I3.hasOwnProperty(n[0])&&!Nt[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=I3[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(Nt[this.mode][n]){this.settings.strict&&this.mode==="math"&&hd.includes(n)&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+n[0]+'" used in math mode',t);var f=Nt[this.mode][n].group,h=In.range(t),d;aS(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(!C1[m])throw new Ee("Unknown accent ' "+m+"'",t);var v=C1[m][this.mode]||C1[m].text;if(!v)throw new Ee("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}}Dc.endOfExpression=new Set(["}","\\endgroup","\\end","\\right","&"]);var dm=function(t,n){if(!(typeof t=="string"||t instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var i=new Dc(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 Ee("\\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=mm(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 Ee("KaTeX doesn't work in quirks mode.")});var YS=function(t,n){var i=mm(t,n).toMarkup();return i},GS=function(t,n){var i=new Wd(n);return dm(t,i)},ey=function(t,n,i){if(i.throwOnError||!(t instanceof Ee))throw t;var l=we(["katex-error"],[new nr(n)]);return l.setAttribute("title",t.toString()),l.setAttribute("style","color:"+i.errorColor),l},mm=function(t,n){var i=new Wd(n);try{var l=dm(t,i);return Kw(l,t,i)}catch(s){return ey(s,t,i)}},$S=function(t,n){var i=new Wd(n);try{var l=dm(t,i);return Jw(l,t,i)}catch(s){return ey(s,t,i)}},XS="0.16.46",PS={Span:so,Anchor:xc,SymbolNode:nr,SvgNode:bi,PathNode:fa,LineNode:fd},U3={version:XS,render:W7,renderToString:YS,ParseError:Ee,SETTINGS_SCHEMA:sd,__parse:GS,__renderToDomTree:mm,__renderToHTMLTree:$S,__setFontMetrics:_w,__defineSymbol:b,__defineFunction:Ce,__defineMacro:B,__domTree:PS};const ty=[],ZS=!0,zd=!1,ny="skip";function pm(e,t,n,i){let l;typeof t=="function"&&typeof n!="function"?(i=n,n=t):l=t;const s=Is(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,T;if((!t||s(h,d,p[p.length-1]||void 0))&&(x=QS(n(h,p)),x[0]===zd))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,T=p.concat(E);A>-1&&A<E.children.length;){const N=E.children[A];if(w=f(N,A,T)(),w[0]===zd)return w;A=typeof w[1]=="number"?w[1]:A+u}}return x}}}function QS(e){return Array.isArray(e)?e:typeof e=="number"?[ZS,e]:e==null?ty:[e]}const KS={},JS=[];function WS(e){const t=e||KS;return function(n,i){pm(n,"element",function(l,s){const u=Array.isArray(l.properties.className)?l.properties.className:JS,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=Gb(v,{whitespace:"pre"});let w;try{w=U3.renderToString(x,{...t,displayMode:p,throwOnError:!0})}catch(T){const E=T,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=U3.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(T)},children:[{type:"text",value:x}]}]}}typeof w=="string"&&(w=_b(w).children);const A=m.children.indexOf(v);return m.children.splice(A,1,...w),ny})}}const ek=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,tk=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,nk={};function F3(e,t){return(nk.jsx?tk:ek).test(e)}const rk=/[ \t\n\f\r]/g;function ik(e){return typeof e=="object"?e.type==="text"?V3(e.value):!1:V3(e)}function V3(e){return e.replace(rk,"")===""}var jl={},M1,Y3;function ak(){if(Y3)return M1;Y3=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(T,E){if(typeof T!="string")throw new TypeError("First argument must be a string");if(!T)return[];E=E||{};var N=1,z=1;function H(j){var F=j.match(t);F&&(N+=F.length);var L=j.lastIndexOf(h);z=~L?j.length-L:z+j.length}function I(){var j={line:N,column:z};return function(F){return F.position=new O(j),Z(),F}}function O(j){this.start=j,this.end={line:N,column:z},this.source=E.source}O.prototype.content=T;function U(j){var F=new Error(E.source+":"+N+":"+z+": "+j);if(F.reason=j,F.filename=E.source,F.line=N,F.column=z,F.source=T,!E.silent)throw F}function Q(j){var F=j.exec(T);if(F){var L=F[0];return H(L),T=T.slice(L.length),F}}function Z(){Q(n)}function V(j){var F;for(j=j||[];F=P();)F!==!1&&j.push(F);return j}function P(){var j=I();if(!(d!=T.charAt(0)||p!=T.charAt(1))){for(var F=2;m!=T.charAt(F)&&(p!=T.charAt(F)||d!=T.charAt(F+1));)++F;if(F+=2,m===T.charAt(F-1))return U("End of comment missing");var L=T.slice(2,F-2);return z+=2,H(L),T=T.slice(F),z+=2,j({type:v,comment:L})}}function W(){var j=I(),F=Q(i);if(F){if(P(),!Q(l))return U("property missing ':'");var L=Q(s),Y=j({type:x,property:A(F[0].replace(e,m)),value:L?A(L[0].replace(e,m)):m});return Q(u),Y}}function ce(){var j=[];V(j);for(var F;F=W();)F!==!1&&(j.push(F),V(j));return j}return Z(),ce()}function A(T){return T?T.replace(f,m):m}return M1=w,M1}var G3;function lk(){if(G3)return jl;G3=1;var e=jl&&jl.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(jl,"__esModule",{value:!0}),jl.default=n;const t=e(ak());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 jl}var ss={},$3;function ok(){if($3)return ss;$3=1,Object.defineProperty(ss,"__esModule",{value:!0}),ss.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 ss.camelCase=h,ss}var us,X3;function sk(){if(X3)return us;X3=1;var e=us&&us.__importDefault||function(l){return l&&l.__esModule?l:{default:l}},t=e(lk()),n=ok();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,us=i,us}var uk=sk();const ck=gc(uk),ry=iy("end"),gm=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 fk(e){const t=gm(e),n=ry(e);if(t&&n)return{start:t,end:n}}function vs(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?P3(e.position):"start"in e||"end"in e?P3(e):"line"in e||"column"in e?Cd(e):""}function Cd(e){return Z3(e&&e.line)+":"+Z3(e&&e.column)}function P3(e){return Cd(e&&e.start)+"-"+Cd(e&&e.end)}function Z3(e){return e&&typeof e=="number"?e:1}class wn 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=vs(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}}wn.prototype.file="";wn.prototype.name="";wn.prototype.reason="";wn.prototype.message="";wn.prototype.stack="";wn.prototype.column=void 0;wn.prototype.line=void 0;wn.prototype.ancestors=void 0;wn.prototype.cause=void 0;wn.prototype.fatal=void 0;wn.prototype.place=void 0;wn.prototype.ruleId=void 0;wn.prototype.source=void 0;const ym={}.hasOwnProperty,hk=new Map,dk=/[A-Z]/g,mk=new Set(["table","tbody","thead","tfoot","tr"]),pk=new Set(["td","th"]),ay="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function gk(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=Ek(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=kk(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"?yc: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 yk(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return vk(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return bk(e,t,n);if(t.type==="mdxjsEsm")return xk(e,t);if(t.type==="root")return wk(e,t,n);if(t.type==="text")return Sk(e,t)}function yk(e,t,n){const i=e.schema;let l=i;t.tagName.toLowerCase()==="svg"&&i.space==="html"&&(l=yc,e.schema=l),e.ancestors.push(t);const s=sy(e,t.tagName,!1),u=Ak(e,t);let f=xm(e,t);return mk.has(t.tagName)&&(f=f.filter(function(h){return typeof h=="string"?!ik(h):!0})),oy(e,u,s,t),vm(u,f),e.ancestors.pop(),e.schema=i,e.create(t,s,u,n)}function vk(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)}Ts(e,t.position)}function xk(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Ts(e,t.position)}function bk(e,t,n){const i=e.schema;let l=i;t.name==="svg"&&i.space==="html"&&(l=yc,e.schema=l),e.ancestors.push(t);const s=t.name===null?e.Fragment:sy(e,t.name,!0),u=Tk(e,t),f=xm(e,t);return oy(e,u,s,t),vm(u,f),e.ancestors.pop(),e.schema=i,e.create(t,s,u,n)}function wk(e,t,n){const i={};return vm(i,xm(e,t)),e.create(t,e.Fragment,i,n)}function Sk(e,t){return t.value}function oy(e,t,n,i){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=i)}function vm(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function kk(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 Ek(e,t){return n;function n(i,l,s,u){const f=Array.isArray(s.children),h=gm(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 Ak(e,t){const n={};let i,l;for(l in t.properties)if(l!=="children"&&ym.call(t.properties,l)){const s=zk(e,l,t.properties[l]);if(s){const[u,f]=s;e.tableCellAlignToStyle&&u==="align"&&typeof f=="string"&&pk.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 Ts(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 Ts(e,t.position);else s=i.value===null?!0:i.value;n[l]=s}return n}function xm(e,t){const n=[];let i=-1;const l=e.passKeys?new Map:hk;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 zk(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?gb(n):vb(n)),i.property==="style"){let l=typeof n=="object"?n:Ck(e,String(n));return e.stylePropertyNameCase==="css"&&(l=Mk(l)),["style",l]}return[e.elementAttributeNameCase==="react"&&i.space?fb[i.property]||i.property:i.attribute,n]}}function Ck(e,t){try{return ck(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const i=n,l=new wn("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=F3(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=F3(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(i.type==="Literal"){const l=i.value;return ym.call(e.components,l)?e.components[l]:l}if(e.evaluater)return e.evaluater.evaluateExpression(i);Ts(e)}function Ts(e,t){const n=new wn("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 Mk(e){const t={};let n;for(n in e)ym.call(e,n)&&(t[Nk(n)]=e[n]);return t}function Nk(e){let t=e.replace(dk,Dk);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function Dk(e){return"-"+e.toLowerCase()}const N1={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"]},_k={};function bm(e,t){const n=_k,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(Ok(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 Q3(e.children,t,n)}return Array.isArray(e)?Q3(e,t,n):""}function Q3(e,t,n){const i=[];let l=-1;for(;++l<e.length;)i[l]=uy(e[l],t,n);return i.join("")}function Ok(e){return!!(e&&typeof e=="object")}const K3=document.createElement("i");function wm(e){const t="&"+e+";";K3.innerHTML=t;const n=K3.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 J3={}.hasOwnProperty;function cy(e){const t={};let n=-1;for(;++n<e.length;)Rk(t,e[n]);return t}function Rk(e,t){let n;for(n in t){const l=(J3.call(e,n)?e[n]:void 0)||(e[n]={}),s=t[n];let u;if(s)for(u in s){J3.call(l,u)||(l[u]=[]);const f=s[u];Bk(l[u],Array.isArray(f)?f:f?[f]:[])}}}function Bk(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 Tr(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const zn=ga(/[A-Za-z]/),xn=ga(/[\dA-Za-z]/),Lk=ga(/[#-'*+\--9=?A-Z^-~]/);function ec(e){return e!==null&&(e<32||e===127)}const Md=ga(/\d/),Hk=ga(/[\dA-Fa-f]/),qk=ga(/[!-/:-@[-`{-~]/);function Le(e){return e!==null&&e<-2}function St(e){return e!==null&&(e<0||e===32)}function rt(e){return e===-2||e===-1||e===32}const _c=ga(new RegExp("\\p{P}|\\p{S}","u")),Ga=ga(/\s/);function ga(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function fo(e){const t=[];let n=-1,i=0,l=0;for(;++n<e.length;){const s=e.charCodeAt(n);let u="";if(s===37&&xn(e.charCodeAt(n+1))&&xn(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 We(e,t,n,i){const l=i?i-1:Number.POSITIVE_INFINITY;let s=0;return u;function u(h){return rt(h)?(e.enter(n),f(h)):t(h)}function f(h){return rt(h)&&s++<l?(e.consume(h),f):(e.exit(n),t(h))}}const jk={tokenize:Ik};function Ik(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"),We(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 Le(f)?(e.consume(f),e.exit("chunkText"),s):(e.consume(f),u)}}const Uk={tokenize:Fk},W3={tokenize:Vk};function Fk(e){const t=this,n=[];let i=0,l,s,u;return f;function f(z){if(i<n.length){const H=n[i];return t.containerState=H[1],e.attempt(H[0].continuation,h,d)(z)}return d(z)}function h(z){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,l&&N();const H=t.events.length;let I=H,O;for(;I--;)if(t.events[I][0]==="exit"&&t.events[I][1].type==="chunkFlow"){O=t.events[I][1].end;break}E(i);let U=H;for(;U<t.events.length;)t.events[U][1].end={...O},U++;return tr(t.events,I+1,0,t.events.slice(H)),t.events.length=U,d(z)}return f(z)}function d(z){if(i===n.length){if(!l)return v(z);if(l.currentConstruct&&l.currentConstruct.concrete)return w(z);t.interrupt=!!(l.currentConstruct&&!l._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(W3,p,m)(z)}function p(z){return l&&N(),E(i),v(z)}function m(z){return t.parser.lazy[t.now().line]=i!==n.length,u=t.now().offset,w(z)}function v(z){return t.containerState={},e.attempt(W3,x,w)(z)}function x(z){return i++,n.push([t.currentConstruct,t.containerState]),v(z)}function w(z){if(z===null){l&&N(),E(0),e.consume(z);return}return l=l||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:l,contentType:"flow",previous:s}),A(z)}function A(z){if(z===null){T(e.exit("chunkFlow"),!0),E(0),e.consume(z);return}return Le(z)?(e.consume(z),T(e.exit("chunkFlow")),i=0,t.interrupt=void 0,f):(e.consume(z),A)}function T(z,H){const I=t.sliceStream(z);if(H&&I.push(null),z.previous=s,s&&(s.next=z),s=z,l.defineSkip(z.start),l.write(I),t.parser.lazy[z.start.line]){let O=l.events.length;for(;O--;)if(l.events[O][1].start.offset<u&&(!l.events[O][1].end||l.events[O][1].end.offset>u))return;const U=t.events.length;let Q=U,Z,V;for(;Q--;)if(t.events[Q][0]==="exit"&&t.events[Q][1].type==="chunkFlow"){if(Z){V=t.events[Q][1].end;break}Z=!0}for(E(i),O=U;O<t.events.length;)t.events[O][1].end={...V},O++;tr(t.events,Q+1,0,t.events.slice(U)),t.events.length=O}}function E(z){let H=n.length;for(;H-- >z;){const I=n[H];t.containerState=I[1],I[0].exit.call(t,e)}n.length=z}function N(){l.write([null]),s=void 0,l=void 0,t.containerState._closeFlow=void 0}}function Vk(e,t,n){return We(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Jl(e){if(e===null||St(e)||Ga(e))return 1;if(_c(e))return 2}function Oc(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 Nd={name:"attention",resolveAll:Yk,tokenize:Gk};function Yk(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};e5(m,-h),e5(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,Oc(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 Gk(e,t){const n=this.parser.constructs.attentionMarkers.null,i=this.previous,l=Jl(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=Jl(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 e5(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const $k={name:"autolink",tokenize:Xk};function Xk(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 zn(x)?(e.consume(x),u):x===64?n(x):d(x)}function u(x){return x===43||x===45||x===46||xn(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||xn(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||ec(x)?n(x):(e.consume(x),h)}function d(x){return x===64?(e.consume(x),p):Lk(x)?(e.consume(x),d):n(x)}function p(x){return xn(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||xn(x))&&i++<63){const w=x===45?v:m;return e.consume(x),w}return n(x)}}const Vs={partial:!0,tokenize:Pk};function Pk(e,t,n){return i;function i(s){return rt(s)?We(e,l,"linePrefix")(s):l(s)}function l(s){return s===null||Le(s)?t(s):n(s)}}const hy={continuation:{tokenize:Qk},exit:Kk,name:"blockQuote",tokenize:Zk};function Zk(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 rt(u)?(e.enter("blockQuotePrefixWhitespace"),e.consume(u),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(u))}}function Qk(e,t,n){const i=this;return l;function l(u){return rt(u)?We(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 Kk(e){e.exit("blockQuote")}const dy={name:"characterEscape",tokenize:Jk};function Jk(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:Wk};function Wk(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=xn,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=Hk,p):(e.enter("characterReferenceValue"),s=7,u=Md,p(m))}function p(m){if(m===59&&l){const v=e.exit("characterReferenceValue");return u===xn&&!wm(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 t5={partial:!0,tokenize:tE},n5={concrete:!0,name:"codeFenced",tokenize:eE};function eE(e,t,n){const i=this,l={partial:!0,tokenize:I};let s=0,u=0,f;return h;function h(O){return d(O)}function d(O){const U=i.events[i.events.length-1];return s=U&&U[1].type==="linePrefix"?U[2].sliceSerialize(U[1],!0).length:0,f=O,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),p(O)}function p(O){return O===f?(u++,e.consume(O),p):u<3?n(O):(e.exit("codeFencedFenceSequence"),rt(O)?We(e,m,"whitespace")(O):m(O))}function m(O){return O===null||Le(O)?(e.exit("codeFencedFence"),i.interrupt?t(O):e.check(t5,A,H)(O)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),v(O))}function v(O){return O===null||Le(O)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),m(O)):rt(O)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),We(e,x,"whitespace")(O)):O===96&&O===f?n(O):(e.consume(O),v)}function x(O){return O===null||Le(O)?m(O):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),w(O))}function w(O){return O===null||Le(O)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),m(O)):O===96&&O===f?n(O):(e.consume(O),w)}function A(O){return e.attempt(l,H,T)(O)}function T(O){return e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),E}function E(O){return s>0&&rt(O)?We(e,N,"linePrefix",s+1)(O):N(O)}function N(O){return O===null||Le(O)?e.check(t5,A,H)(O):(e.enter("codeFlowValue"),z(O))}function z(O){return O===null||Le(O)?(e.exit("codeFlowValue"),N(O)):(e.consume(O),z)}function H(O){return e.exit("codeFenced"),t(O)}function I(O,U,Q){let Z=0;return V;function V(F){return O.enter("lineEnding"),O.consume(F),O.exit("lineEnding"),P}function P(F){return O.enter("codeFencedFence"),rt(F)?We(O,W,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(F):W(F)}function W(F){return F===f?(O.enter("codeFencedFenceSequence"),ce(F)):Q(F)}function ce(F){return F===f?(Z++,O.consume(F),ce):Z>=u?(O.exit("codeFencedFenceSequence"),rt(F)?We(O,j,"whitespace")(F):j(F)):Q(F)}function j(F){return F===null||Le(F)?(O.exit("codeFencedFence"),U(F)):Q(F)}}}function tE(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 D1={name:"codeIndented",tokenize:rE},nE={partial:!0,tokenize:iE};function rE(e,t,n){const i=this;return l;function l(d){return e.enter("codeIndented"),We(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):Le(d)?e.attempt(nE,u,h)(d):(e.enter("codeFlowValue"),f(d))}function f(d){return d===null||Le(d)?(e.exit("codeFlowValue"),u(d)):(e.consume(d),f)}function h(d){return e.exit("codeIndented"),t(d)}}function iE(e,t,n){const i=this;return l;function l(u){return i.parser.lazy[i.now().line]?n(u):Le(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),l):We(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):Le(u)?l(u):n(u)}}const aE={name:"codeText",previous:oE,resolve:lE,tokenize:sE};function lE(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 oE(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function sE(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)):Le(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||Le(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 uE{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&&cs(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),cs(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),cs(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);cs(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);cs(this.left,n.reverse())}}}function cs(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 uE(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,cE(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 cE(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 T=[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,T.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):T.pop(),v=T.length;v--;){const E=f.slice(T[v],T[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 fE={resolve:dE,tokenize:mE},hE={partial:!0,tokenize:pE};function dE(e){return py(e),e}function mE(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):Le(f)?e.check(hE,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 pE(e,t,n){const i=this;return l;function l(u){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),We(e,s,"linePrefix")}function s(u){if(u===null||Le(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||ec(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||Le(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||St(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||ec(E)?n(E):(e.consume(E),E===92?T:A)}function T(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):Le(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||Le(x)||f++>999?(e.exit("chunkString"),p(x)):(e.consume(x),h||(h=!rt(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):Le(v)?(e.enter("lineEnding"),e.consume(v),e.exit("lineEnding"),We(e,d,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),p(v))}function p(v){return v===u||v===null||Le(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 xs(e,t){let n;return i;function i(l){return Le(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),n=!0,i):rt(l)?We(e,i,n?"linePrefix":"lineSuffix")(l):t(l)}}const gE={name:"definition",tokenize:vE},yE={partial:!0,tokenize:xE};function vE(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=Tr(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 St(x)?xs(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(yE,m,m)(x)}function m(x){return rt(x)?We(e,v,"whitespace")(x):v(x)}function v(x){return x===null||Le(x)?(e.exit("definition"),i.parser.defined.push(l),t(x)):n(x)}}function xE(e,t,n){return i;function i(f){return St(f)?xs(e,l)(f):n(f)}function l(f){return vy(e,s,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(f)}function s(f){return rt(f)?We(e,u,"whitespace")(f):u(f)}function u(f){return f===null||Le(f)?t(f):n(f)}}const bE={name:"hardBreakEscape",tokenize:wE};function wE(e,t,n){return i;function i(s){return e.enter("hardBreakEscape"),e.consume(s),l}function l(s){return Le(s)?(e.exit("hardBreakEscape"),t(s)):n(s)}}const SE={name:"headingAtx",resolve:kE,tokenize:EE};function kE(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 EE(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||St(p)?(e.exit("atxHeadingSequence"),f(p)):n(p)}function f(p){return p===35?(e.enter("atxHeadingSequence"),h(p)):p===null||Le(p)?(e.exit("atxHeading"),t(p)):rt(p)?We(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||St(p)?(e.exit("atxHeadingText"),f(p)):(e.consume(p),d)}}const AE=["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"],r5=["pre","script","style","textarea"],TE={concrete:!0,name:"htmlFlow",resolveTo:ME,tokenize:NE},zE={partial:!0,tokenize:_E},CE={partial:!0,tokenize:DE};function ME(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 NE(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:C):zn(_)?(e.consume(_),u=String.fromCharCode(_),T):n(_)}function v(_){return _===45?(e.consume(_),l=2,x):_===91?(e.consume(_),l=5,f=0,w):zn(_)?(e.consume(_),l=4,i.interrupt?t:C):n(_)}function x(_){return _===45?(e.consume(_),i.interrupt?t:C):n(_)}function w(_){const ie="CDATA[";return _===ie.charCodeAt(f++)?(e.consume(_),f===ie.length?i.interrupt?t:W:w):n(_)}function A(_){return zn(_)?(e.consume(_),u=String.fromCharCode(_),T):n(_)}function T(_){if(_===null||_===47||_===62||St(_)){const ie=_===47,ye=u.toLowerCase();return!ie&&!s&&r5.includes(ye)?(l=1,i.interrupt?t(_):W(_)):AE.includes(u.toLowerCase())?(l=6,ie?(e.consume(_),E):i.interrupt?t(_):W(_)):(l=7,i.interrupt&&!i.parser.lazy[i.now().line]?n(_):s?N(_):z(_))}return _===45||xn(_)?(e.consume(_),u+=String.fromCharCode(_),T):n(_)}function E(_){return _===62?(e.consume(_),i.interrupt?t:W):n(_)}function N(_){return rt(_)?(e.consume(_),N):V(_)}function z(_){return _===47?(e.consume(_),V):_===58||_===95||zn(_)?(e.consume(_),H):rt(_)?(e.consume(_),z):V(_)}function H(_){return _===45||_===46||_===58||_===95||xn(_)?(e.consume(_),H):I(_)}function I(_){return _===61?(e.consume(_),O):rt(_)?(e.consume(_),I):z(_)}function O(_){return _===null||_===60||_===61||_===62||_===96?n(_):_===34||_===39?(e.consume(_),h=_,U):rt(_)?(e.consume(_),O):Q(_)}function U(_){return _===h?(e.consume(_),h=null,Z):_===null||Le(_)?n(_):(e.consume(_),U)}function Q(_){return _===null||_===34||_===39||_===47||_===60||_===61||_===62||_===96||St(_)?I(_):(e.consume(_),Q)}function Z(_){return _===47||_===62||rt(_)?z(_):n(_)}function V(_){return _===62?(e.consume(_),P):n(_)}function P(_){return _===null||Le(_)?W(_):rt(_)?(e.consume(_),P):n(_)}function W(_){return _===45&&l===2?(e.consume(_),L):_===60&&l===1?(e.consume(_),Y):_===62&&l===4?(e.consume(_),q):_===63&&l===3?(e.consume(_),C):_===93&&l===5?(e.consume(_),ne):Le(_)&&(l===6||l===7)?(e.exit("htmlFlowData"),e.check(zE,$,ce)(_)):_===null||Le(_)?(e.exit("htmlFlowData"),ce(_)):(e.consume(_),W)}function ce(_){return e.check(CE,j,$)(_)}function j(_){return e.enter("lineEnding"),e.consume(_),e.exit("lineEnding"),F}function F(_){return _===null||Le(_)?ce(_):(e.enter("htmlFlowData"),W(_))}function L(_){return _===45?(e.consume(_),C):W(_)}function Y(_){return _===47?(e.consume(_),u="",J):W(_)}function J(_){if(_===62){const ie=u.toLowerCase();return r5.includes(ie)?(e.consume(_),q):W(_)}return zn(_)&&u.length<8?(e.consume(_),u+=String.fromCharCode(_),J):W(_)}function ne(_){return _===93?(e.consume(_),C):W(_)}function C(_){return _===62?(e.consume(_),q):_===45&&l===2?(e.consume(_),C):W(_)}function q(_){return _===null||Le(_)?(e.exit("htmlFlowData"),$(_)):(e.consume(_),q)}function $(_){return e.exit("htmlFlow"),t(_)}}function DE(e,t,n){const i=this;return l;function l(u){return Le(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 _E(e,t,n){return i;function i(l){return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),e.attempt(Vs,t,n)}}const OE={name:"htmlText",tokenize:RE};function RE(e,t,n){const i=this;let l,s,u;return f;function f(C){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(C),h}function h(C){return C===33?(e.consume(C),d):C===47?(e.consume(C),I):C===63?(e.consume(C),z):zn(C)?(e.consume(C),Q):n(C)}function d(C){return C===45?(e.consume(C),p):C===91?(e.consume(C),s=0,w):zn(C)?(e.consume(C),N):n(C)}function p(C){return C===45?(e.consume(C),x):n(C)}function m(C){return C===null?n(C):C===45?(e.consume(C),v):Le(C)?(u=m,Y(C)):(e.consume(C),m)}function v(C){return C===45?(e.consume(C),x):m(C)}function x(C){return C===62?L(C):C===45?v(C):m(C)}function w(C){const q="CDATA[";return C===q.charCodeAt(s++)?(e.consume(C),s===q.length?A:w):n(C)}function A(C){return C===null?n(C):C===93?(e.consume(C),T):Le(C)?(u=A,Y(C)):(e.consume(C),A)}function T(C){return C===93?(e.consume(C),E):A(C)}function E(C){return C===62?L(C):C===93?(e.consume(C),E):A(C)}function N(C){return C===null||C===62?L(C):Le(C)?(u=N,Y(C)):(e.consume(C),N)}function z(C){return C===null?n(C):C===63?(e.consume(C),H):Le(C)?(u=z,Y(C)):(e.consume(C),z)}function H(C){return C===62?L(C):z(C)}function I(C){return zn(C)?(e.consume(C),O):n(C)}function O(C){return C===45||xn(C)?(e.consume(C),O):U(C)}function U(C){return Le(C)?(u=U,Y(C)):rt(C)?(e.consume(C),U):L(C)}function Q(C){return C===45||xn(C)?(e.consume(C),Q):C===47||C===62||St(C)?Z(C):n(C)}function Z(C){return C===47?(e.consume(C),L):C===58||C===95||zn(C)?(e.consume(C),V):Le(C)?(u=Z,Y(C)):rt(C)?(e.consume(C),Z):L(C)}function V(C){return C===45||C===46||C===58||C===95||xn(C)?(e.consume(C),V):P(C)}function P(C){return C===61?(e.consume(C),W):Le(C)?(u=P,Y(C)):rt(C)?(e.consume(C),P):Z(C)}function W(C){return C===null||C===60||C===61||C===62||C===96?n(C):C===34||C===39?(e.consume(C),l=C,ce):Le(C)?(u=W,Y(C)):rt(C)?(e.consume(C),W):(e.consume(C),j)}function ce(C){return C===l?(e.consume(C),l=void 0,F):C===null?n(C):Le(C)?(u=ce,Y(C)):(e.consume(C),ce)}function j(C){return C===null||C===34||C===39||C===60||C===61||C===96?n(C):C===47||C===62||St(C)?Z(C):(e.consume(C),j)}function F(C){return C===47||C===62||St(C)?Z(C):n(C)}function L(C){return C===62?(e.consume(C),e.exit("htmlTextData"),e.exit("htmlText"),t):n(C)}function Y(C){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),J}function J(C){return rt(C)?We(e,ne,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(C):ne(C)}function ne(C){return e.enter("htmlTextData"),u(C)}}const Sm={name:"labelEnd",resolveAll:qE,resolveTo:jE,tokenize:IE},BE={tokenize:UE},LE={tokenize:FE},HE={tokenize:VE};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 jE(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,Oc(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 IE(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(Tr(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(BE,p,u?p:m)(v):v===91?e.attempt(LE,p,u?d:m)(v):u?p(v):m(v)}function d(v){return e.attempt(HE,p,m)(v)}function p(v){return t(v)}function m(v){return s._balanced=!0,n(v)}}function UE(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 St(m)?xs(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 St(m)?xs(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 St(m)?xs(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 FE(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(Tr(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(f):n(f)}function u(f){return n(f)}}function VE(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 YE={name:"labelStartImage",resolveAll:Sm.resolveAll,tokenize:GE};function GE(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 $E={name:"labelStartLink",resolveAll:Sm.resolveAll,tokenize:XE};function XE(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 _1={name:"lineEnding",tokenize:PE};function PE(e,t){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),We(e,t,"linePrefix")}}const F0={name:"thematicBreak",tokenize:ZE};function ZE(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||Le(d))?(e.exit("thematicBreak"),t(d)):n(d)}function h(d){return d===l?(e.consume(d),i++,h):(e.exit("thematicBreakSequence"),rt(d)?We(e,f,"whitespace")(d):f(d))}}const jn={continuation:{tokenize:WE},exit:tA,name:"list",tokenize:JE},QE={partial:!0,tokenize:nA},KE={partial:!0,tokenize:eA};function JE(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:Md(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(F0,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 Md(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(Vs,i.interrupt?n:p,e.attempt(QE,v,m))}function p(x){return i.containerState.initialBlankLine=!0,s++,v(x)}function m(x){return rt(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 WE(e,t,n){const i=this;return i.containerState._closeFlow=void 0,e.check(Vs,l,s);function l(f){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,We(e,t,"listItemIndent",i.containerState.size+1)(f)}function s(f){return i.containerState.furtherBlankLines||!rt(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(KE,t,u)(f))}function u(f){return i.containerState._closeFlow=!0,i.interrupt=void 0,We(e,e.attempt(jn,t,n),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f)}}function eA(e,t,n){const i=this;return We(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 tA(e){e.exit(this.containerState.type)}function nA(e,t,n){const i=this;return We(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!rt(s)&&u&&u[1].type==="listItemPrefixWhitespace"?t(s):n(s)}}const i5={name:"setextUnderline",resolveTo:rA,tokenize:iA};function rA(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 iA(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"),rt(d)?We(e,h,"lineSuffix")(d):h(d))}function h(d){return d===null||Le(d)?(e.exit("setextHeadingLine"),t(d)):n(d)}}const aA={tokenize:lA};function lA(e){const t=this,n=e.attempt(Vs,i,e.attempt(this.parser.constructs.flowInitial,l,We(e,e.attempt(this.parser.constructs.flow,l,e.attempt(fE,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 oA={resolveAll:by()},sA=xy("string"),uA=xy("text");function xy(e){return{resolveAll:by(e==="text"?cA: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 cA(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 fA={42:jn,43:jn,45:jn,48:jn,49:jn,50:jn,51:jn,52:jn,53:jn,54:jn,55:jn,56:jn,57:jn,62:hy},hA={91:gE},dA={[-2]:D1,[-1]:D1,32:D1},mA={35:SE,42:F0,45:[i5,F0],60:TE,61:i5,95:F0,96:n5,126:n5},pA={38:my,92:dy},gA={[-5]:_1,[-4]:_1,[-3]:_1,33:YE,38:my,42:Nd,60:[$k,OE],91:$E,92:[bE,dy],93:Sm,95:Nd,96:aE},yA={null:[Nd,oA]},vA={null:[42,95]},xA={null:[]},bA=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:vA,contentInitial:hA,disable:xA,document:fA,flow:mA,flowInitial:dA,insideSpan:yA,string:pA,text:gA},Symbol.toStringTag,{value:"Module"}));function wA(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(O),consume:N,enter:z,exit:H,interrupt:U(O,{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(P){return u=mr(u,P),T(),u[u.length-1]!==null?[]:(Q(t,0),d.events=Oc(s,d.events,d),d.events)}function v(P,W){return kA(x(P),W)}function x(P){return SA(u,P)}function w(){const{_bufferIndex:P,_index:W,line:ce,column:j,offset:F}=i;return{_bufferIndex:P,_index:W,line:ce,column:j,offset:F}}function A(P){l[P.line]=P.column,V()}function T(){let P;for(;i._index<u.length;){const W=u[i._index];if(typeof W=="string")for(P=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===P&&i._bufferIndex<W.length;)E(W.charCodeAt(i._bufferIndex));else E(W)}}function E(P){p=p(P)}function N(P){Le(P)?(i.line++,i.column=1,i.offset+=P===-3?2:1,V()):P!==-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=P}function z(P,W){const ce=W||{};return ce.type=P,ce.start=w(),d.events.push(["enter",ce,d]),f.push(ce),ce}function H(P){const W=f.pop();return W.end=w(),d.events.push(["exit",W,d]),W}function I(P,W){Q(P,W.from)}function O(P,W){W.restore()}function U(P,W){return ce;function ce(j,F,L){let Y,J,ne,C;return Array.isArray(j)?$(j):"tokenize"in j?$([j]):q(j);function q(xe){return be;function be(ge){const Se=ge!==null&&xe[ge],qe=ge!==null&&xe.null,Ie=[...Array.isArray(Se)?Se:Se?[Se]:[],...Array.isArray(qe)?qe:qe?[qe]:[]];return $(Ie)(ge)}}function $(xe){return Y=xe,J=0,xe.length===0?L:_(xe[J])}function _(xe){return be;function be(ge){return C=Z(),ne=xe,xe.partial||(d.currentConstruct=xe),xe.name&&d.parser.constructs.disable.null.includes(xe.name)?ye():xe.tokenize.call(W?Object.assign(Object.create(d),W):d,h,ie,ye)(ge)}}function ie(xe){return P(ne,C),F}function ye(xe){return C.restore(),++J<Y.length?_(Y[J]):L}}}function Q(P,W){P.resolveAll&&!s.includes(P)&&s.push(P),P.resolve&&tr(d.events,W,d.events.length-W,P.resolve(d.events.slice(W),d)),P.resolveTo&&(d.events=P.resolveTo(d.events,d))}function Z(){const P=w(),W=d.previous,ce=d.currentConstruct,j=d.events.length,F=Array.from(f);return{from:j,restore:L};function L(){i=P,d.previous=W,d.currentConstruct=ce,d.events.length=j,f=F,V()}}function V(){i.line in l&&i.column<2&&(i.column=l[i.line],i.offset+=l[i.line]-1)}}function SA(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 kA(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 EA(e){const i={constructs:cy([bA,...(e||{}).extensions||[]]),content:l(jk),defined:[],document:l(Uk),flow:l(aA),lazy:{},string:l(sA),text:l(uA)};return i;function l(s){return u;function u(f){return wA(i,s,f)}}}function AA(e){for(;!py(e););return e}const a5=/[\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(a5.lastIndex=m,d=a5.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 zA=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function CA(e){return e.replace(zA,MA)}function MA(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 wm(n)||e}const wy={}.hasOwnProperty;function NA(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),DA(n)(AA(EA(n).document().write(TA()(e,t,!0))))}function DA(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(Ut),autolinkProtocol:Z,autolinkEmail:Z,atxHeading:s(it),blockQuote:s(qe),characterEscape:Z,characterReference:Z,codeFenced:s(Ie),codeFencedFenceInfo:u,codeFencedFenceMeta:u,codeIndented:s(Ie,u),codeText:s(Re,u),codeTextData:Z,data:Z,codeFlowValue:Z,definition:s(Be),definitionDestinationString:u,definitionLabelString:u,definitionTitleString:u,emphasis:s(Ye),hardBreakEscape:s(Je),hardBreakTrailing:s(Je),htmlFlow:s(At,u),htmlFlowData:Z,htmlText:s(At,u),htmlTextData:Z,image:s(tn),label:u,link:s(Ut),listItem:s(pn),listItemValue:v,listOrdered:s(Ft,m),listUnordered:s(Ft),paragraph:s(Sn),reference:_,referenceString:u,resourceDestinationString:u,resourceTitleString:u,setextHeading:s(it),strong:s(gn),thematicBreak:s(Vn)},exit:{atxHeading:h(),atxHeadingSequence:I,autolink:h(),autolinkEmail:Se,autolinkProtocol:ge,blockQuote:h(),characterEscapeValue:V,characterReferenceMarkerHexadecimal:ye,characterReferenceMarkerNumeric:ye,characterReferenceValue:xe,characterReference:be,codeFenced:h(T),codeFencedFence:A,codeFencedFenceInfo:x,codeFencedFenceMeta:w,codeFlowValue:V,codeIndented:h(E),codeText:h(F),codeTextData:V,data:V,definition:h(),definitionDestinationString:H,definitionLabelString:N,definitionTitleString:z,emphasis:h(),hardBreakEscape:h(W),hardBreakTrailing:h(W),htmlFlow:h(ce),htmlFlowData:V,htmlText:h(j),htmlTextData:V,image:h(Y),label:ne,labelText:J,lineEnding:P,link:h(L),listItem:h(),listOrdered:h(),listUnordered:h(),paragraph:h(),referenceString:ie,resourceDestinationString:C,resourceTitleString:q,resource:$,setextHeading:h(Q),setextHeadingLineSequence:U,setextHeadingText:O,strong:h(),thematicBreak:h()}};Sy(t,(e||{}).mdastExtensions||[]);const n={};return i;function i(fe){let ke={type:"root",children:[]};const He={stack:[ke],tokenStack:[],config:t,enter:f,exit:d,buffer:u,resume:p,data:n},Ge=[];let et=-1;for(;++et<fe.length;)if(fe[et][1].type==="listOrdered"||fe[et][1].type==="listUnordered")if(fe[et][0]==="enter")Ge.push(et);else{const un=Ge.pop();et=l(fe,un,et)}for(et=-1;++et<fe.length;){const un=t[fe[et][0]];wy.call(un,fe[et][1].type)&&un[fe[et][1].type].call(Object.assign({sliceSerialize:fe[et][2].sliceSerialize},He),fe[et][1])}if(He.tokenStack.length>0){const un=He.tokenStack[He.tokenStack.length-1];(un[1]||l5).call(He,void 0,un[0])}for(ke.position={start:ra(fe.length>0?fe[0][1].start:{line:1,column:1,offset:0}),end:ra(fe.length>0?fe[fe.length-2][1].end:{line:1,column:1,offset:0})},et=-1;++et<t.transforms.length;)ke=t.transforms[et](ke)||ke;return ke}function l(fe,ke,He){let Ge=ke-1,et=-1,un=!1,Nn,Ct,Rt,he;for(;++Ge<=He;){const _e=fe[Ge];switch(_e[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{_e[0]==="enter"?et++:et--,he=void 0;break}case"lineEndingBlank":{_e[0]==="enter"&&(Nn&&!he&&!et&&!Rt&&(Rt=Ge),he=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:he=void 0}if(!et&&_e[0]==="enter"&&_e[1].type==="listItemPrefix"||et===-1&&_e[0]==="exit"&&(_e[1].type==="listUnordered"||_e[1].type==="listOrdered")){if(Nn){let Bt=Ge;for(Ct=void 0;Bt--;){const gt=fe[Bt];if(gt[1].type==="lineEnding"||gt[1].type==="lineEndingBlank"){if(gt[0]==="exit")continue;Ct&&(fe[Ct][1].type="lineEndingBlank",un=!0),gt[1].type="lineEnding",Ct=Bt}else if(!(gt[1].type==="linePrefix"||gt[1].type==="blockQuotePrefix"||gt[1].type==="blockQuotePrefixWhitespace"||gt[1].type==="blockQuoteMarker"||gt[1].type==="listItemIndent"))break}Rt&&(!Ct||Rt<Ct)&&(Nn._spread=!0),Nn.end=Object.assign({},Ct?fe[Ct][1].start:_e[1].end),fe.splice(Ct||Ge,0,["exit",Nn,_e[2]]),Ge++,He++}if(_e[1].type==="listItemPrefix"){const Bt={type:"listItem",_spread:!1,start:Object.assign({},_e[1].start),end:void 0};Nn=Bt,fe.splice(Ge,0,["enter",Bt,_e[2]]),Ge++,He++,Rt=void 0,he=!0}}}return fe[ke][1]._spread=un,He}function s(fe,ke){return He;function He(Ge){f.call(this,fe(Ge),Ge),ke&&ke.call(this,Ge)}}function u(){this.stack.push({type:"fragment",children:[]})}function f(fe,ke,He){this.stack[this.stack.length-1].children.push(fe),this.stack.push(fe),this.tokenStack.push([ke,He||void 0]),fe.position={start:ra(ke.start),end:void 0}}function h(fe){return ke;function ke(He){fe&&fe.call(this,He),d.call(this,He)}}function d(fe,ke){const He=this.stack.pop(),Ge=this.tokenStack.pop();if(Ge)Ge[0].type!==fe.type&&(ke?ke.call(this,fe,Ge[0]):(Ge[1]||l5).call(this,fe,Ge[0]));else throw new Error("Cannot close `"+fe.type+"` ("+vs({start:fe.start,end:fe.end})+"): it’s not open");He.position.end=ra(fe.end)}function p(){return bm(this.stack.pop())}function m(){this.data.expectingFirstListItemValue=!0}function v(fe){if(this.data.expectingFirstListItemValue){const ke=this.stack[this.stack.length-2];ke.start=Number.parseInt(this.sliceSerialize(fe),10),this.data.expectingFirstListItemValue=void 0}}function x(){const fe=this.resume(),ke=this.stack[this.stack.length-1];ke.lang=fe}function w(){const fe=this.resume(),ke=this.stack[this.stack.length-1];ke.meta=fe}function A(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function T(){const fe=this.resume(),ke=this.stack[this.stack.length-1];ke.value=fe.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function E(){const fe=this.resume(),ke=this.stack[this.stack.length-1];ke.value=fe.replace(/(\r?\n|\r)$/g,"")}function N(fe){const ke=this.resume(),He=this.stack[this.stack.length-1];He.label=ke,He.identifier=Tr(this.sliceSerialize(fe)).toLowerCase()}function z(){const fe=this.resume(),ke=this.stack[this.stack.length-1];ke.title=fe}function H(){const fe=this.resume(),ke=this.stack[this.stack.length-1];ke.url=fe}function I(fe){const ke=this.stack[this.stack.length-1];if(!ke.depth){const He=this.sliceSerialize(fe).length;ke.depth=He}}function O(){this.data.setextHeadingSlurpLineEnding=!0}function U(fe){const ke=this.stack[this.stack.length-1];ke.depth=this.sliceSerialize(fe).codePointAt(0)===61?1:2}function Q(){this.data.setextHeadingSlurpLineEnding=void 0}function Z(fe){const He=this.stack[this.stack.length-1].children;let Ge=He[He.length-1];(!Ge||Ge.type!=="text")&&(Ge=kt(),Ge.position={start:ra(fe.start),end:void 0},He.push(Ge)),this.stack.push(Ge)}function V(fe){const ke=this.stack.pop();ke.value+=this.sliceSerialize(fe),ke.position.end=ra(fe.end)}function P(fe){const ke=this.stack[this.stack.length-1];if(this.data.atHardBreak){const He=ke.children[ke.children.length-1];He.position.end=ra(fe.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(ke.type)&&(Z.call(this,fe),V.call(this,fe))}function W(){this.data.atHardBreak=!0}function ce(){const fe=this.resume(),ke=this.stack[this.stack.length-1];ke.value=fe}function j(){const fe=this.resume(),ke=this.stack[this.stack.length-1];ke.value=fe}function F(){const fe=this.resume(),ke=this.stack[this.stack.length-1];ke.value=fe}function L(){const fe=this.stack[this.stack.length-1];if(this.data.inReference){const ke=this.data.referenceType||"shortcut";fe.type+="Reference",fe.referenceType=ke,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 ke=this.data.referenceType||"shortcut";fe.type+="Reference",fe.referenceType=ke,delete fe.url,delete fe.title}else delete fe.identifier,delete fe.label;this.data.referenceType=void 0}function J(fe){const ke=this.sliceSerialize(fe),He=this.stack[this.stack.length-2];He.label=CA(ke),He.identifier=Tr(ke).toLowerCase()}function ne(){const fe=this.stack[this.stack.length-1],ke=this.resume(),He=this.stack[this.stack.length-1];if(this.data.inReference=!0,He.type==="link"){const Ge=fe.children;He.children=Ge}else He.alt=ke}function C(){const fe=this.resume(),ke=this.stack[this.stack.length-1];ke.url=fe}function q(){const fe=this.resume(),ke=this.stack[this.stack.length-1];ke.title=fe}function $(){this.data.inReference=void 0}function _(){this.data.referenceType="collapsed"}function ie(fe){const ke=this.resume(),He=this.stack[this.stack.length-1];He.label=ke,He.identifier=Tr(this.sliceSerialize(fe)).toLowerCase(),this.data.referenceType="full"}function ye(fe){this.data.characterReferenceType=fe.type}function xe(fe){const ke=this.sliceSerialize(fe),He=this.data.characterReferenceType;let Ge;He?(Ge=fy(ke,He==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Ge=wm(ke);const et=this.stack[this.stack.length-1];et.value+=Ge}function be(fe){const ke=this.stack.pop();ke.position.end=ra(fe.end)}function ge(fe){V.call(this,fe);const ke=this.stack[this.stack.length-1];ke.url=this.sliceSerialize(fe)}function Se(fe){V.call(this,fe);const ke=this.stack[this.stack.length-1];ke.url="mailto:"+this.sliceSerialize(fe)}function qe(){return{type:"blockquote",children:[]}}function Ie(){return{type:"code",lang:null,meta:null,value:""}}function Re(){return{type:"inlineCode",value:""}}function Be(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Ye(){return{type:"emphasis",children:[]}}function it(){return{type:"heading",depth:0,children:[]}}function Je(){return{type:"break"}}function At(){return{type:"html",value:""}}function tn(){return{type:"image",title:null,url:"",alt:null}}function Ut(){return{type:"link",title:null,url:"",children:[]}}function Ft(fe){return{type:"list",ordered:fe.type==="listOrdered",start:null,spread:fe._spread,children:[]}}function pn(fe){return{type:"listItem",spread:fe._spread,checked:null,children:[]}}function Sn(){return{type:"paragraph",children:[]}}function gn(){return{type:"strong",children:[]}}function kt(){return{type:"text",value:""}}function Vn(){return{type:"thematicBreak"}}}function ra(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):_A(e,i)}}function _A(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 l5(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+vs({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+vs({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+vs({start:t.start,end:t.end})+") is still open")}function OA(e){const t=this;t.parser=n;function n(i){return NA(i,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function RA(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 BA(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
271
|
-
`}]}function LA(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 HA(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 jA(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),l=fo(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 IA(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 UA(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 FA(e,t){const n=String(t.identifier).toUpperCase(),i=e.definitionById.get(n);if(!i)return ky(e,t);const l={src:fo(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 VA(e,t){const n={src:fo(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 YA(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 GA(e,t){const n=String(t.identifier).toUpperCase(),i=e.definitionById.get(n);if(!i)return ky(e,t);const l={href:fo(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 $A(e,t){const n={href:fo(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 XA(e,t,n){const i=e.all(t),l=n?PA(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 PA(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 ZA(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 QA(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function KA(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function JA(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function WA(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=gm(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 eT(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 tT(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const o5=9,s5=32;function nT(e){const t=String(e),n=/\r?\n|\r/g;let i=n.exec(t),l=0;const s=[];for(;i;)s.push(u5(t.slice(l,i.index),l>0,!0),i[0]),l=i.index+i[0].length,i=n.exec(t);return s.push(u5(t.slice(l),l>0,!1)),s.join("")}function u5(e,t,n){let i=0,l=e.length;if(t){let s=e.codePointAt(i);for(;s===o5||s===s5;)i++,s=e.codePointAt(i)}if(n){let s=e.codePointAt(l-1);for(;s===o5||s===s5;)l--,s=e.codePointAt(l-1)}return l>i?e.slice(i,l):""}function rT(e,t){const n={type:"text",value:nT(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function iT(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const aT={blockquote:RA,break:BA,code:LA,delete:HA,emphasis:qA,footnoteReference:jA,heading:IA,html:UA,imageReference:FA,image:VA,inlineCode:YA,linkReference:GA,link:$A,listItem:XA,list:ZA,paragraph:QA,root:KA,strong:JA,table:WA,tableCell:tT,tableRow:eT,text:rT,thematicBreak:iT,toml:T0,yaml:T0,definition:T0,footnoteDefinition:T0};function T0(){}const Ay=-1,Rc=0,bs=1,tc=2,km=3,Em=4,Am=5,Tm=6,Ty=7,zy=8,lT=typeof self=="object"?self:globalThis,c5=(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 lT[e](t)},oT=(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 Rc:case Ay:return n(u,l);case bs:{const f=n([],l);for(const h of u)f.push(i(h));return f}case tc:{const f=n({},l);for(const[h,d]of u)f[i(h)]=i(d);return f}case km:return n(new Date(u),l);case Em:{const{source:f,flags:h}=u;return n(new RegExp(f,h),l)}case Am:{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 Ty:{const{name:f,message:h}=u;return n(c5(f,h),l)}case zy: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(c5(s,u),l)};return i},f5=e=>oT(new Map,e)(0),Il="",{toString:sT}={},{keys:uT}=Object,fs=e=>{const t=typeof e;if(t!=="object"||!e)return[Rc,t];const n=sT.call(e).slice(8,-1);switch(n){case"Array":return[bs,Il];case"Object":return[tc,Il];case"Date":return[km,Il];case"RegExp":return[Em,Il];case"Map":return[Am,Il];case"Set":return[Tm,Il];case"DataView":return[bs,n]}return n.includes("Array")?[bs,n]:n.includes("Error")?[Ty,n]:[tc,n]},z0=([e,t])=>e===Rc&&(t==="function"||t==="symbol"),cT=(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]=fs(u);switch(f){case Rc:{let p=u;switch(h){case"bigint":f=zy,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 bs:{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 tc:{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 uT(u))(e||!z0(fs(u[v])))&&p.push([s(v),s(u[v])]);return m}case km:return l([f,u.toISOString()],u);case Em:{const{source:p,flags:m}=u;return l([f,{source:p,flags:m}],u)}case Am:{const p=[],m=l([f,p],u);for(const[v,x]of u)(e||!(z0(fs(v))||z0(fs(x))))&&p.push([s(v),s(x)]);return m}case Tm:{const p=[],m=l([f,p],u);for(const v of u)(e||!z0(fs(v)))&&p.push(s(v));return m}}const{message:d}=u;return l([f,{name:h,message:d}],u)};return s},h5=(e,{json:t,lossy:n}={})=>{const i=[];return cT(!(t||n),!!t,new Map,i)(e),i},nc=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?f5(h5(e,t)):structuredClone(e):(e,t)=>f5(h5(e,t));function fT(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 hT(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function dT(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||fT,i=e.options.footnoteBackLabel||hT,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=fo(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 T=p[p.length-1];if(T&&T.type==="element"&&T.tagName==="p"){const N=T.children[T.children.length-1];N&&N.type==="text"?N.value+=" ":T.children.push({type:"text",value:" "}),T.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:{...nc(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 zm(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),pm(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 Dd={}.hasOwnProperty,mT={};function pT(e,t){const n=t||mT,i=new Map,l=new Map,s=new Map,u={...aT,...n.handlers},f={all:d,applyData:yT,definitionById:i,footnoteById:l,footnoteCounts:s,footnoteOrder:[],handlers:u,one:h,options:n,patch:gT,wrap:xT};return zm(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(Dd.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,...T}=p,E=nc(T);return E.children=f.all(p),E}return nc(p)}return(f.options.unknownHandler||vT)(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=d5(w.value)),!Array.isArray(w)&&w.type==="element")){const A=w.children[0];A&&A.type==="text"&&(A.value=d5(A.value))}Array.isArray(w)?m.push(...w):m.push(w)}}}return m}}function gT(e,t){e.position&&(t.position=fk(e))}function yT(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,nc(s)),"children"in n&&n.children&&l!==null&&l!==void 0&&(n.children=l)}return n}function vT(e,t){const n=t.data||{},i="value"in t&&!(Dd.call(n,"hProperties")||Dd.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 xT(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 d5(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function m5(e,t){const n=pT(e,t),i=n.one(e,void 0),l=dT(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 bT(e,t){return e&&"run"in e?async function(n,i){const l=m5(n,{file:i,...t});await e.run(l,i)}:function(n,i){return m5(n,{file:i,...e||t})}}function p5(e){if(e)throw e}var O1,g5;function wT(){if(g5)return O1;g5=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 O1=function h(){var d,p,m,v,x,w,A=arguments[0],T=1,E=arguments.length,N=!1;for(typeof A=="boolean"&&(N=A,A=arguments[1]||{},T=2),(A==null||typeof A!="object"&&typeof A!="function")&&(A={});T<E;++T)if(d=arguments[T],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},O1}var ST=wT();const R1=gc(ST);function _d(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 kT(){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?ET(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 ET(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:AT,dirname:TT,extname:zT,join:CT,sep:"/"};function AT(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Ys(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 TT(e){if(Ys(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 zT(e){Ys(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 CT(...e){let t=-1,n;for(;++t<e.length;)Ys(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":MT(n)}function MT(e){Ys(e);const t=e.codePointAt(0)===47;let n=NT(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function NT(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 Ys(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const DT={cwd:_T};function _T(){return"/"}function Od(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function OT(e){if(typeof e=="string")e=new URL(e);else if(!Od(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 RT(e)}function RT(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 B1=["history","path","basename","stem","extname","dirname"];class Cy{constructor(t){let n;t?Od(t)?n={path:t}:typeof t=="string"||BT(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":DT.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<B1.length;){const s=B1[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)B1.includes(l)||(this[l]=n[l])}get basename(){return typeof this.path=="string"?Hr.basename(this.path):void 0}set basename(t){H1(t,"basename"),L1(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){y5(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(L1(t,"extname"),y5(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){Od(t)&&(t=OT(t)),H1(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){H1(t,"stem"),L1(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 wn(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 L1(e,t){if(e&&e.includes(Hr.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Hr.sep+"`")}function H1(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function y5(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function BT(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const LT=(function(e){const i=this.constructor.prototype,l=i[e],s=function(){return l.apply(s,arguments)};return Object.setPrototypeOf(s,i),s}),HT={}.hasOwnProperty;class Cm extends LT{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=kT()}copy(){const t=new Cm;let n=-1;for(;++n<this.attachers.length;){const i=this.attachers[n];t.use(...i)}return t.data(R1(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(I1("data",this.frozen),this.namespace[t]=n,this):HT.call(this.namespace,t)&&this.namespace[t]||void 0:t?(I1("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=C0(t),i=this.parser||this.Parser;return q1("parse",i),i(String(n),n)}process(t,n){const i=this;return this.freeze(),q1("process",this.parser||this.Parser),j1("process",this.compiler||this.Compiler),n?l(void 0,n):new Promise(l);function l(s,u){const f=C0(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);IT(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(),q1("processSync",this.parser||this.Parser),j1("processSync",this.compiler||this.Compiler),this.process(t,l),x5("processSync","process",n),i;function l(s,u){n=!0,p5(s),i=u}}run(t,n,i){v5(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=C0(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),x5("runSync","run",i),l;function s(u,f){p5(u),l=f,i=!0}}stringify(t,n){this.freeze();const i=C0(n),l=this.compiler||this.Compiler;return j1("stringify",l),v5(t),l(t,i)}use(t,...n){const i=this.attachers,l=this.namespace;if(I1("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=R1(!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];_d(A)&&_d(x)&&(x=R1(!0,A,x)),i[v]=[d,x,...w]}}}}const qT=new Cm().freeze();function q1(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function j1(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function I1(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 v5(e){if(!_d(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function x5(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function C0(e){return jT(e)?e:new Cy(e)}function jT(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function IT(e){return typeof e=="string"||UT(e)}function UT(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const FT="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",b5=[],w5={allowDangerousHtml:!0},VT=/^(https?|ircs?|mailto|xmpp)$/i,YT=[{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 GT(e){const t=$T(e),n=XT(e);return PT(t.runSync(t.parse(n),n),e)}function $T(e){const t=e.rehypePlugins||b5,n=e.remarkPlugins||b5,i=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...w5}:w5;return qT().use(OA).use(n).use(bT,i).use(t)}function XT(e){const t=e.children||"",n=new Cy;return typeof t=="string"&&(n.value=t),n}function PT(e,t){const n=t.allowedElements,i=t.allowElement,l=t.components,s=t.disallowedElements,u=t.skipHtml,f=t.unwrapDisallowed,h=t.urlTransform||ZT;for(const p of YT)Object.hasOwn(t,p.from)&&(""+p.from+(p.to?"use `"+p.to+"` instead":"remove it")+FT+p.id,void 0);return zm(e,d),gk(e,{Fragment:D.Fragment,components:l,ignoreInvalidStyle:!0,jsx:D.jsx,jsxs:D.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 N1)if(Object.hasOwn(N1,x)&&Object.hasOwn(p.properties,x)){const w=p.properties[x],A=N1[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 ZT(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||VT.test(e.slice(0,t))?e:""}function S5(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 QT(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function KT(e,t,n){const l=Is((n||{}).ignore||[]),s=JT(t);let u=-1;for(;++u<s.length;)pm(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 T=m.children.indexOf(d);let E=!1,N=[];v.lastIndex=0;let z=v.exec(d.value);for(;z;){const H=z.index,I={index:z.index,input:z.input,stack:[...p,d]};let O=x(...z,I);if(typeof O=="string"&&(O=O.length>0?{type:"text",value:O}:void 0),O===!1?v.lastIndex=H+1:(w!==H&&N.push({type:"text",value:d.value.slice(w,H)}),Array.isArray(O)?N.push(...O):O&&N.push(O),w=H+z[0].length,E=!0),!v.global)break;z=v.exec(d.value)}return E?(w<d.value.length&&N.push({type:"text",value:d.value.slice(w)}),m.children.splice(T,1,...N)):N=[d],T+N.length}}function JT(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([WT(l[0]),ez(l[1])])}return t}function WT(e){return typeof e=="string"?new RegExp(QT(e),"g"):e}function ez(e){return typeof e=="function"?e:function(){return e}}const U1="phrasing",F1=["autolink","link","image","label"];function tz(){return{transforms:[sz],enter:{literalAutolink:rz,literalAutolinkEmail:V1,literalAutolinkHttp:V1,literalAutolinkWww:V1},exit:{literalAutolink:oz,literalAutolinkEmail:lz,literalAutolinkHttp:iz,literalAutolinkWww:az}}}function nz(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:U1,notInConstruct:F1},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:U1,notInConstruct:F1},{character:":",before:"[ps]",after:"\\/",inConstruct:U1,notInConstruct:F1}]}}function rz(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function V1(e){this.config.enter.autolinkProtocol.call(this,e)}function iz(e){this.config.exit.autolinkProtocol.call(this,e)}function az(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 lz(e){this.config.exit.autolinkEmail.call(this,e)}function oz(e){this.exit(e)}function sz(e){KT(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,uz],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),cz]],{ignore:["link","linkReference"]})}function uz(e,t,n,i,l){let s="";if(!My(l)||(/^w/i.test(t)&&(n=t+n,t="",s="http://"),!fz(n)))return!1;const u=hz(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 cz(e,t,n,i){return!My(i,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function fz(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 hz(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=S5(e,"(");let s=S5(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 My(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Ga(n)||_c(n))&&(!t||n!==47)}Ny.peek=wz;function dz(){this.buffer()}function mz(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function pz(){this.buffer()}function gz(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function yz(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Tr(this.sliceSerialize(e)).toLowerCase(),n.label=t}function vz(e){this.exit(e)}function xz(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Tr(this.sliceSerialize(e)).toLowerCase(),n.label=t}function bz(e){this.exit(e)}function wz(){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 Sz(){return{enter:{gfmFootnoteCallString:dz,gfmFootnoteCall:mz,gfmFootnoteDefinitionLabelString:pz,gfmFootnoteDefinition:gz},exit:{gfmFootnoteCallString:yz,gfmFootnoteCall:vz,gfmFootnoteDefinitionLabelString:xz,gfmFootnoteDefinition:bz}}}function kz(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:Ez))),d(),h}}function Ez(e,t,n){return t===0?e:Dy(e,t,n)}function Dy(e,t,n){return(n?"":" ")+e}const Az=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];_y.peek=Nz;function Tz(){return{canContainEols:["delete"],enter:{strikethrough:Cz},exit:{strikethrough:Mz}}}function zz(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Az}],handlers:{delete:_y}}}function Cz(e){this.enter({type:"delete",children:[]},e)}function Mz(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 Nz(){return"~"}function Dz(e){return e.length}function _z(e,t){const n=t||{},i=(n.align||[]).concat(),l=n.stringLength||Dz,s=[],u=[],f=[],h=[];let d=0,p=-1;for(;++p<e.length;){const A=[],T=[];let E=-1;for(e[p].length>d&&(d=e[p].length);++E<e[p].length;){const N=Oz(e[p][E]);if(n.alignDelimiters!==!1){const z=l(N);T[E]=z,(h[E]===void 0||z>h[E])&&(h[E]=z)}A.push(N)}u[p]=A,f[p]=T}let m=-1;if(typeof i=="object"&&"length"in i)for(;++m<d;)s[m]=k5(i[m]);else{const A=k5(i);for(;++m<d;)s[m]=A}m=-1;const v=[],x=[];for(;++m<d;){const A=s[m];let T="",E="";A===99?(T=":",E=":"):A===108?T=":":A===114&&(E=":");let N=n.alignDelimiters===!1?1:Math.max(1,h[m]-T.length-E.length);const z=T+"-".repeat(N)+E;n.alignDelimiters!==!1&&(N=T.length+N+E.length,N>h[m]&&(h[m]=N),x[m]=N),v[m]=z}u.splice(1,0,v),f.splice(1,0,x),p=-1;const w=[];for(;++p<u.length;){const A=u[p],T=f[p];m=-1;const E=[];for(;++m<d;){const N=A[m]||"";let z="",H="";if(n.alignDelimiters!==!1){const I=h[m]-(T[m]||0),O=s[m];O===114?z=" ".repeat(I):O===99?I%2?(z=" ".repeat(I/2+.5),H=" ".repeat(I/2-.5)):(z=" ".repeat(I/2),H=z):H=" ".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(z),E.push(N),n.alignDelimiters!==!1&&E.push(H),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 Oz(e){return e==null?"":String(e)}function k5(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 Rz(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()),Bz);return l(),u}function Bz(e,t,n){return">"+(n?"":" ")+e}function Lz(e,t){return E5(e,t.inConstruct,!0)&&!E5(e,t.notInConstruct,!1)}function E5(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 A5(e,t,n,i){let l=-1;for(;++l<n.unsafe.length;)if(n.unsafe[l].character===`
|
|
283
|
-
`&&Lz(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 Hz(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 qz(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 jz(e,t,n,i){const l=qz(n),s=e.value||"",u=l==="`"?"GraveAccent":"Tilde";if(Hz(e,n)){const m=n.enter("codeIndented"),v=n.indentLines(s,Iz);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 Iz(e,t,n){return(n?"":" ")+e}function Mm(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 Uz(e,t,n,i){const l=Mm(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 Fz(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 zs(e){return"&#x"+e.toString(16).toUpperCase()+";"}function rc(e,t,n){const i=Jl(e),l=Jl(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=Vz;function Ry(e,t,n,i){const l=Fz(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=rc(i.before.charCodeAt(i.before.length-1),d,l);p.inside&&(h=zs(d)+h.slice(1));const m=h.charCodeAt(h.length-1),v=rc(i.after.charCodeAt(0),m,l);v.inside&&(h=h.slice(0,-1)+zs(m));const x=u.move(l);return s(),n.attentionEncodeSurroundingInfo={after:v.outside,before:p.outside},f+h+x}function Vz(e,t,n){return n.options.emphasis||"*"}function Yz(e,t){let n=!1;return zm(e,function(i){if("value"in i&&/\r?\n|\r/.test(i.value)||i.type==="break")return n=!0,zd}),!!((!e.depth||e.depth<3)&&bm(e)&&(t.options.setext||n))}function Gz(e,t,n,i){const l=Math.max(Math.min(6,e.depth||1),1),s=n.createTracker(i);if(Yz(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=zs(d.charCodeAt(0))+d.slice(1)),d=d?u+" "+d:u,n.options.closeAtx&&(d+=" "+u),h(),f(),d}By.peek=$z;function By(e){return e.value||""}function $z(){return"<"}Ly.peek=Xz;function Ly(e,t,n,i){const l=Mm(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 Xz(){return"!"}Hy.peek=Pz;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 Pz(){return"!"}qy.peek=Zz;function qy(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 Zz(){return"`"}function jy(e,t){const n=bm(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=Qz;function Iy(e,t,n,i){const l=Mm(n),s=l==='"'?"Quote":"Apostrophe",u=n.createTracker(i);let f,h;if(jy(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 Qz(e,t,n){return jy(e,n)?"<":"["}Uy.peek=Kz;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 Kz(){return"["}function Nm(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 Jz(e){const t=Nm(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 Wz(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 eC(e,t,n,i){const l=n.enter("list"),s=n.bulletCurrent;let u=e.ordered?Wz(n):Nm(n);const f=e.ordered?u==="."?")":".":Jz(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 tC(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 nC(e,t,n,i){const l=tC(n);let s=n.bulletCurrent||Nm(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 rC(e,t,n,i){const l=n.enter("paragraph"),s=n.enter("phrasing"),u=n.containerPhrasing(e,i);return s(),l(),u}const iC=Is(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function aC(e,t,n,i){return(e.children.some(function(u){return iC(u)})?n.containerPhrasing:n.containerFlow).call(n,e,i)}function lC(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=oC;function Vy(e,t,n,i){const l=lC(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=rc(i.before.charCodeAt(i.before.length-1),d,l);p.inside&&(h=zs(d)+h.slice(1));const m=h.charCodeAt(h.length-1),v=rc(i.after.charCodeAt(0),m,l);v.inside&&(h=h.slice(0,-1)+zs(m));const x=u.move(l+l);return s(),n.attentionEncodeSurroundingInfo={after:v.outside,before:p.outside},f+h+x}function oC(e,t,n){return n.options.strong||"*"}function sC(e,t,n,i){return n.safe(e.value,i)}function uC(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function cC(e,t,n){const i=(Fy(n)+(n.options.ruleSpaces?" ":"")).repeat(uC(n));return n.options.ruleSpaces?i.slice(0,-1):i}const Yy={blockquote:Rz,break:A5,code:jz,definition:Uz,emphasis:Ry,hardBreak:A5,heading:Gz,html:By,image:Ly,imageReference:Hy,inlineCode:qy,link:Iy,linkReference:Uy,list:eC,listItem:nC,paragraph:rC,root:aC,strong:Vy,text:sC,thematicBreak:cC};function fC(){return{enter:{table:hC,tableData:T5,tableHeader:T5,tableRow:mC},exit:{codeText:pC,table:dC,tableData:Y1,tableHeader:Y1,tableRow:Y1}}}function hC(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 dC(e){this.exit(e),this.data.inTable=void 0}function mC(e){this.enter({type:"tableRow",children:[]},e)}function Y1(e){this.exit(e)}function T5(e){this.enter({type:"tableCell",children:[]},e)}function pC(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,gC));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function gC(e,t){return t==="|"?t:e}function yC(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,T){return d(p(x,A,T),x.align)}function f(x,w,A,T){const E=m(x,A,T),N=d([E]);return N.slice(0,N.indexOf(`
|
|
295
|
-
`))}function h(x,w,A,T){const E=A.enter("tableCell"),N=A.enter("phrasing"),z=A.containerPhrasing(x,{...T,before:s,after:s});return N(),E(),z}function d(x,w){return _z(x,{align:w,alignDelimiters:i,padding:n,stringLength:l})}function p(x,w,A){const T=x.children;let E=-1;const N=[],z=w.enter("table");for(;++E<T.length;)N[E]=m(T[E],w,A);return z(),N}function m(x,w,A){const T=x.children;let E=-1;const N=[],z=w.enter("tableRow");for(;++E<T.length;)N[E]=h(T[E],x,w,A);return z(),N}function v(x,w,A){let T=Yy.inlineCode(x,w,A);return A.stack.includes("tableCell")&&(T=T.replace(/\|/g,"\\$&")),T}}function vC(){return{exit:{taskListCheckValueChecked:z5,taskListCheckValueUnchecked:z5,paragraph:bC}}}function xC(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:wC}}}function z5(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function bC(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 wC(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 SC(){return[tz(),Sz(),Tz(),fC(),vC()]}function kC(e){return{extensions:[nz(),kz(e),zz(),yC(e),xC()]}}const EC={tokenize:NC,partial:!0},Gy={tokenize:DC,partial:!0},$y={tokenize:_C,partial:!0},Xy={tokenize:OC,partial:!0},AC={tokenize:RC,partial:!0},Py={name:"wwwAutolink",tokenize:CC,previous:Qy},Zy={name:"protocolAutolink",tokenize:MC,previous:Ky},Ai={name:"emailAutolink",tokenize:zC,previous:Jy},$r={};function TC(){return{text:$r}}let ja=48;for(;ja<123;)$r[ja]=Ai,ja++,ja===58?ja=65:ja===91&&(ja=97);$r[43]=Ai;$r[45]=Ai;$r[46]=Ai;$r[95]=Ai;$r[72]=[Ai,Zy];$r[104]=[Ai,Zy];$r[87]=[Ai,Py];$r[119]=[Ai,Py];function zC(e,t,n){const i=this;let l,s;return u;function u(m){return!Rd(m)||!Jy.call(i,i.previous)||Dm(i.events)?n(m):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),f(m))}function f(m){return Rd(m)?(e.consume(m),f):m===64?(e.consume(m),h):n(m)}function h(m){return m===46?e.check(AC,p,d)(m):m===45||m===95||xn(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&&zn(i.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(m)):n(m)}}function CC(e,t,n){const i=this;return l;function l(u){return u!==87&&u!==119||!Qy.call(i,i.previous)||Dm(i.events)?n(u):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(EC,e.attempt(Gy,e.attempt($y,s),n),n)(u))}function s(u){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(u)}}function MC(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)&&!Dm(i.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),l+=String.fromCodePoint(m),e.consume(m),f):n(m)}function f(m){if(zn(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||ec(m)||St(m)||Ga(m)||_c(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 NC(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 DC(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||St(d)||Ga(d)||d!==45&&_c(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 _C(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||St(u)||Ga(u)?t(u):(e.consume(u),l)}function s(u){return u===41&&i++,e.consume(u),l}}function OC(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||St(f)||Ga(f)?t(f):n(f)}function l(f){return f===null||f===40||f===91||St(f)||Ga(f)?t(f):i(f)}function s(f){return zn(f)?u(f):n(f)}function u(f){return f===59?(e.consume(f),i):zn(f)?(e.consume(f),u):n(f)}}function RC(e,t,n){return i;function i(s){return e.consume(s),l}function l(s){return xn(s)?n(s):t(s)}}function Qy(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||St(e)}function Ky(e){return!zn(e)}function Jy(e){return!(e===47||Rd(e))}function Rd(e){return e===43||e===45||e===46||e===95||xn(e)}function Dm(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 BC={tokenize:VC,partial:!0};function LC(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:IC,continuation:{tokenize:UC},exit:FC}},text:{91:{name:"gfmFootnoteCall",tokenize:jC},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:HC,resolveTo:qC}}}}function HC(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=Tr(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 qC(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 jC(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||St(m))return n(m);if(m===93){e.exit("chunkString");const v=e.exit("gfmFootnoteCallString");return l.includes(Tr(i.sliceSerialize(v)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(m),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(m)}return St(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 IC(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||St(w))return n(w);if(w===93){e.exit("chunkString");const A=e.exit("gfmFootnoteDefinitionLabelString");return s=Tr(i.sliceSerialize(A)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(w),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),v}return St(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),We(e,x,"gfmFootnoteDefinitionWhitespace")):n(w)}function x(w){return t(w)}}function UC(e,t,n){return e.check(Vs,t,e.attempt(BC,t,n))}function FC(e){e.exit("gfmFootnoteDefinition")}function VC(e,t,n){const i=this;return We(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 YC(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,Oc(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=Jl(d);if(w===126)return m>1?h(w):(u.consume(w),m++,x);if(m<2&&!n)return h(w);const T=u.exit("strikethroughSequenceTemporary"),E=Jl(w);return T._open=!E||E===2&&!!A,T._close=!A||A===2&&!!E,f(w)}}}class GC{constructor(){this.map=[]}add(t,n,i){$C(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 $C(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 XC(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 PC(){return{flow:{null:{name:"table",tokenize:ZC,resolveAll:QC}}}}function ZC(e,t,n){const i=this;let l=0,s=0,u;return f;function f(V){let P=i.events.length-1;for(;P>-1;){const j=i.events[P][1].type;if(j==="lineEnding"||j==="linePrefix")P--;else break}const W=P>-1?i.events[P][1].type:null,ce=W==="tableHead"||W==="tableRow"?O:h;return ce===O&&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):Le(V)?s>1?(s=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(V),e.exit("lineEnding"),x):n(V):rt(V)?We(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||St(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,rt(V)?We(e,w,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(V):w(V))}function w(V){return V===45||V===58?T(V):V===124?(u=!0,e.enter("tableCellDivider"),e.consume(V),e.exit("tableCellDivider"),A):I(V)}function A(V){return rt(V)?We(e,T,"whitespace")(V):T(V)}function T(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||Le(V)?H(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"),z):(e.exit("tableDelimiterFiller"),z(V))}function z(V){return rt(V)?We(e,H,"whitespace")(V):H(V)}function H(V){return V===124?w(V):V===null||Le(V)?!u||l!==s?I(V):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(V)):I(V)}function I(V){return n(V)}function O(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||Le(V)?(e.exit("tableRow"),t(V)):rt(V)?We(e,U,"whitespace")(V):(e.enter("data"),Q(V))}function Q(V){return V===null||V===124||St(V)?(e.exit("data"),U(V)):(e.consume(V),V===92?Z:Q)}function Z(V){return V===92||V===124?(e.consume(V),Q):Q(V)}}function QC(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 GC;for(;++n<e.length;){const x=e[n],w=x[1];x[0]==="enter"?w.type==="tableHead"?(f=!1,h!==0&&(C5(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=M0(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=M0(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=M0(v,t,s,l,n,m)):u[1]!==0&&(m=M0(v,t,u,l,n,m)),l=0):l&&(w.type==="data"||w.type==="tableDelimiterMarker"||w.type==="tableDelimiterFiller")&&(u[3]=n)}for(h!==0&&C5(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=XC(t.events,n))}return e}function M0(e,t,n,i,l,s){const u=i===1?"tableHeader":i===2?"tableDelimiter":"tableData",f="tableContent";n[0]!==0&&(s.end=Object.assign({},Fl(t.events,n[0])),e.add(n[0],0,[["exit",s,t]]));const h=Fl(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=Fl(t.events,n[2]),p=Fl(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({},Fl(t.events,l)),e.add(l,0,[["exit",s,t]]),s=void 0),s}function C5(e,t,n,i,l){const s=[],u=Fl(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 Fl(e,t){const n=e[t],i=n[0]==="enter"?"start":"end";return n[1][i]}const KC={name:"tasklistCheck",tokenize:WC};function JC(){return{text:{91:KC}}}function WC(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 St(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 Le(h)?t(h):rt(h)?e.check({tokenize:eM},t,n)(h):n(h)}}function eM(e,t,n){return We(e,i,"whitespace");function i(l){return l===null?n(l):t(l)}}function tM(e){return cy([TC(),LC(),YC(e),PC(),JC()])}const nM={};function rM(e){const t=this,n=e||nM,i=t.data(),l=i.micromarkExtensions||(i.micromarkExtensions=[]),s=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),u=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);l.push(tM(n)),s.push(SC()),u.push(kC(n))}function iM(){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 aM(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 lM={tokenize:oM,concrete:!0,name:"mathFlow"},M5={tokenize:sM,partial:!0};function oM(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"),We(e,d,"whitespace")(N))}function d(N){return N===null||Le(N)?m(N):(e.enter("mathFlowFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(N))}function p(N){return N===null||Le(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,T)(N)}function v(N){return e.attempt({tokenize:E,partial:!0},T,x)(N)}function x(N){return(s?We(e,w,"linePrefix",s+1):w)(N)}function w(N){return N===null?T(N):Le(N)?e.attempt(M5,v,T)(N):(e.enter("mathFlowValue"),A(N))}function A(N){return N===null||Le(N)?(e.exit("mathFlowValue"),w(N)):(e.consume(N),A)}function T(N){return e.exit("mathFlow"),t(N)}function E(N,z,H){let I=0;return We(N,O,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function O(Z){return N.enter("mathFlowFence"),N.enter("mathFlowFenceSequence"),U(Z)}function U(Z){return Z===36?(I++,N.consume(Z),U):I<u?H(Z):(N.exit("mathFlowFenceSequence"),We(N,Q,"whitespace")(Z))}function Q(Z){return Z===null||Le(Z)?(N.exit("mathFlowFence"),z(Z)):H(Z)}}}function sM(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 uM(e){let n=(e||{}).singleDollarTextMath;return n==null&&(n=!0),{tokenize:i,resolve:cM,previous:fM,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):Le(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||Le(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 cM(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 fM(e){return e!==36||this.events[this.events.length-1][1].type==="characterEscape"}function hM(e){return{flow:{36:lM},text:{36:uM(e)}}}const dM={};function mM(e){const t=this,n=e||dM,i=t.data(),l=i.micromarkExtensions||(i.micromarkExtensions=[]),s=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),u=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);l.push(hM(n)),s.push(iM()),u.push(aM(n))}function ic({basePath:e,className:t="",content:n}){return D.jsx("div",{className:t?`markdown-body ${t}`:"markdown-body",children:D.jsx(GT,{components:{a({href:i,children:l,...s}){const u=i&&e?D5(N5(e,i)):null;return D.jsx("a",{href:u||i,...s,children:l})},img({src:i,...l}){const s=i&&e?D5(N5(e,i)):null;return D.jsx("img",{src:s||i,...l})}},rehypePlugins:[WS],remarkPlugins:[rM,mM],children:n})})}function N5(e,t){const n=t.trim();if(!n||n.startsWith("#")||/^[a-z][a-z0-9+.-]*:/i.test(n)||n.startsWith("//"))return null;const i=pM(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 D5(e){return e?`/api/workspace/raw?path=${encodeURIComponent(e)}`:null}function pM(e){const t=e.indexOf("#"),n=e.indexOf("?"),i=[t,n].filter(l=>l>=0);return i.length?Math.min(...i):-1}function en(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=en(e[n]))!==""&&(t+=(t&&" ")+i);else for(let n in e)e[n]&&(t+=(t&&" ")+n);return t}var gM={value:()=>{}};function Bc(){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 V0(n)}function V0(e){this._=e}function yM(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}})}V0.prototype=Bc.prototype={constructor:V0,on:function(e,t){var n=this._,i=yM(e+"",n),l,s=-1,u=i.length;if(arguments.length<2){for(;++s<u;)if((l=(e=i[s]).type)&&(l=vM(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 V0(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 vM(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]=gM,e=e.slice(0,i).concat(e.slice(i+1));break}return n!=null&&e.push({name:t,value:n}),e}var Bd="http://www.w3.org/1999/xhtml";const O5={svg:"http://www.w3.org/2000/svg",xhtml:Bd,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Lc(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 xM(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===Bd&&t.documentElement.namespaceURI===Bd?t.createElement(e):t.createElementNS(n,e)}}function bM(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Wy(e){var t=Lc(e);return(t.local?bM:xM)(t)}function wM(){}function _m(e){return e==null?wM:function(){return this.querySelector(e)}}function SM(e){typeof e!="function"&&(e=_m(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 kM(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function EM(){return[]}function e8(e){return e==null?EM:function(){return this.querySelectorAll(e)}}function AM(e){return function(){return kM(e.apply(this,arguments))}}function TM(e){typeof e=="function"?e=AM(e):e=e8(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 t8(e){return function(){return this.matches(e)}}function n8(e){return function(t){return t.matches(e)}}var zM=Array.prototype.find;function CM(e){return function(){return zM.call(this.children,e)}}function MM(){return this.firstElementChild}function NM(e){return this.select(e==null?MM:CM(typeof e=="function"?e:n8(e)))}var DM=Array.prototype.filter;function _M(){return Array.from(this.children)}function OM(e){return function(){return DM.call(this.children,e)}}function RM(e){return this.selectAll(e==null?_M:OM(typeof e=="function"?e:n8(e)))}function BM(e){typeof e!="function"&&(e=t8(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 r8(e){return new Array(e.length)}function LM(){return new rr(this._enter||this._groups.map(r8),this._parents)}function ac(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}ac.prototype={constructor:ac,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 HM(e){return function(){return e}}function qM(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 ac(e,s[u]);for(;u<h;++u)(f=t[u])&&(l[u]=f)}function jM(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 ac(e,s[f]);for(f=0;f<p;++f)(h=t[f])&&d.get(v[f])===h&&(l[f]=h)}function IM(e){return e.__data__}function UM(e,t){if(!arguments.length)return Array.from(this,IM);var n=t?jM:qM,i=this._parents,l=this._groups;typeof e!="function"&&(e=HM(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=FM(e.call(p,p&&p.__data__,d,i)),w=x.length,A=f[d]=new Array(w),T=u[d]=new Array(w),E=h[d]=new Array(v);n(p,m,A,T,E,x,t);for(var N=0,z=0,H,I;N<w;++N)if(H=A[N]){for(N>=z&&(z=N+1);!(I=T[z])&&++z<w;);H._next=I||null}}return u=new rr(u,i),u._enter=f,u._exit=h,u}function FM(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function VM(){return new rr(this._exit||this._groups.map(r8),this._parents)}function YM(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 GM(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 $M(){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 XM(e){e||(e=PM);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 PM(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function ZM(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function QM(){return Array.from(this)}function KM(){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 JM(){let e=0;for(const t of this)++e;return e}function WM(){return!this.node()}function eN(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 tN(e){return function(){this.removeAttribute(e)}}function nN(e){return function(){this.removeAttributeNS(e.space,e.local)}}function rN(e,t){return function(){this.setAttribute(e,t)}}function iN(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function aN(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function lN(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 oN(e,t){var n=Lc(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?nN:tN:typeof t=="function"?n.local?lN:aN:n.local?iN:rN)(n,t))}function i8(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function sN(e){return function(){this.style.removeProperty(e)}}function uN(e,t,n){return function(){this.style.setProperty(e,t,n)}}function cN(e,t,n){return function(){var i=t.apply(this,arguments);i==null?this.style.removeProperty(e):this.style.setProperty(e,i,n)}}function fN(e,t,n){return arguments.length>1?this.each((t==null?sN:typeof t=="function"?cN:uN)(e,t,n??"")):Wl(this.node(),e)}function Wl(e,t){return e.style.getPropertyValue(t)||i8(e).getComputedStyle(e,null).getPropertyValue(t)}function hN(e){return function(){delete this[e]}}function dN(e,t){return function(){this[e]=t}}function mN(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function pN(e,t){return arguments.length>1?this.each((t==null?hN:typeof t=="function"?mN:dN)(e,t)):this.node()[e]}function a8(e){return e.trim().split(/^|\s+/)}function Om(e){return e.classList||new l8(e)}function l8(e){this._node=e,this._names=a8(e.getAttribute("class")||"")}l8.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 o8(e,t){for(var n=Om(e),i=-1,l=t.length;++i<l;)n.add(t[i])}function s8(e,t){for(var n=Om(e),i=-1,l=t.length;++i<l;)n.remove(t[i])}function gN(e){return function(){o8(this,e)}}function yN(e){return function(){s8(this,e)}}function vN(e,t){return function(){(t.apply(this,arguments)?o8:s8)(this,e)}}function xN(e,t){var n=a8(e+"");if(arguments.length<2){for(var i=Om(this.node()),l=-1,s=n.length;++l<s;)if(!i.contains(n[l]))return!1;return!0}return this.each((typeof t=="function"?vN:t?gN:yN)(n,t))}function bN(){this.textContent=""}function wN(e){return function(){this.textContent=e}}function SN(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function kN(e){return arguments.length?this.each(e==null?bN:(typeof e=="function"?SN:wN)(e)):this.node().textContent}function EN(){this.innerHTML=""}function AN(e){return function(){this.innerHTML=e}}function TN(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function zN(e){return arguments.length?this.each(e==null?EN:(typeof e=="function"?TN:AN)(e)):this.node().innerHTML}function CN(){this.nextSibling&&this.parentNode.appendChild(this)}function MN(){return this.each(CN)}function NN(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function DN(){return this.each(NN)}function _N(e){var t=typeof e=="function"?e:Wy(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function ON(){return null}function RN(e,t){var n=typeof e=="function"?e:Wy(e),i=t==null?ON:typeof t=="function"?t:_m(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)})}function BN(){var e=this.parentNode;e&&e.removeChild(this)}function LN(){return this.each(BN)}function HN(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function qN(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function jN(e){return this.select(e?qN:HN)}function IN(e){return arguments.length?this.property("__data__",e):this.node().__data__}function UN(e){return function(t){e.call(this,t,this.__data__)}}function FN(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 VN(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 YN(e,t,n){return function(){var i=this.__on,l,s=UN(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 GN(e,t,n){var i=FN(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?YN:VN,l=0;l<s;++l)this.each(f(i[l],t,n));return this}function u8(e,t,n){var i=i8(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 $N(e,t){return function(){return u8(this,e,t)}}function XN(e,t){return function(){return u8(this,e,t.apply(this,arguments))}}function PN(e,t){return this.each((typeof t=="function"?XN:$N)(e,t))}function*ZN(){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 c8=[null];function rr(e,t){this._groups=e,this._parents=t}function Gs(){return new rr([[document.documentElement]],c8)}function QN(){return this}rr.prototype=Gs.prototype={constructor:rr,select:SM,selectAll:TM,selectChild:NM,selectChildren:RM,filter:BM,data:UM,enter:LM,exit:VM,join:YM,merge:GM,selection:QN,order:$M,sort:XM,call:ZM,nodes:QM,node:KM,size:JM,empty:WM,each:eN,attr:oN,style:fN,property:pN,classed:xN,text:kN,html:zN,raise:MN,lower:DN,append:_N,insert:RN,remove:LN,clone:jN,datum:IN,on:GN,dispatch:PN,[Symbol.iterator]:ZN};function Wn(e){return typeof e=="string"?new rr([[document.querySelector(e)]],[document.documentElement]):new rr([[e]],c8)}function KN(e){let t;for(;t=e.sourceEvent;)e=t;return e}function Sr(e,t){if(e=KN(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 JN={passive:!1},Cs={capture:!0,passive:!1};function G1(e){e.stopImmediatePropagation()}function Xl(e){e.preventDefault(),e.stopImmediatePropagation()}function f8(e){var t=e.document.documentElement,n=Wn(e).on("dragstart.drag",Xl,Cs);"onselectstart"in t?n.on("selectstart.drag",Xl,Cs):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function h8(e,t){var n=e.document.documentElement,i=Wn(e).on("dragstart.drag",null);t&&(i.on("click.drag",Xl,Cs),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 N0=e=>()=>e;function Ld(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}})}Ld.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function WN(e){return!e.ctrlKey&&!e.button}function eD(){return this.parentNode}function tD(e,t){return t??{x:e.x,y:e.y}}function nD(){return navigator.maxTouchPoints||"ontouchstart"in this}function d8(){var e=WN,t=eD,n=tD,i=nD,l={},s=Bc("start","drag","end"),u=0,f,h,d,p,m=0;function v(H){H.on("mousedown.drag",x).filter(i).on("touchstart.drag",T).on("touchmove.drag",E,JN).on("touchend.drag touchcancel.drag",N).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function x(H,I){if(!(p||!e.call(this,H,I))){var O=z(this,t.call(this,H,I),H,I,"mouse");O&&(Wn(H.view).on("mousemove.drag",w,Cs).on("mouseup.drag",A,Cs),f8(H.view),G1(H),d=!1,f=H.clientX,h=H.clientY,O("start",H))}}function w(H){if(Xl(H),!d){var I=H.clientX-f,O=H.clientY-h;d=I*I+O*O>m}l.mouse("drag",H)}function A(H){Wn(H.view).on("mousemove.drag mouseup.drag",null),h8(H.view,d),Xl(H),l.mouse("end",H)}function T(H,I){if(e.call(this,H,I)){var O=H.changedTouches,U=t.call(this,H,I),Q=O.length,Z,V;for(Z=0;Z<Q;++Z)(V=z(this,U,H,I,O[Z].identifier,O[Z]))&&(G1(H),V("start",H,O[Z]))}}function E(H){var I=H.changedTouches,O=I.length,U,Q;for(U=0;U<O;++U)(Q=l[I[U].identifier])&&(Xl(H),Q("drag",H,I[U]))}function N(H){var I=H.changedTouches,O=I.length,U,Q;for(p&&clearTimeout(p),p=setTimeout(function(){p=null},500),U=0;U<O;++U)(Q=l[I[U].identifier])&&(G1(H),Q("end",H,I[U]))}function z(H,I,O,U,Q,Z){var V=s.copy(),P=Sr(Z||O,I),W,ce,j;if((j=n.call(H,new Ld("beforestart",{sourceEvent:O,target:v,identifier:Q,active:u,x:P[0],y:P[1],dx:0,dy:0,dispatch:V}),U))!=null)return W=j.x-P[0]||0,ce=j.y-P[1]||0,function F(L,Y,J){var ne=P,C;switch(L){case"start":l[Q]=F,C=u++;break;case"end":delete l[Q],--u;case"drag":P=Sr(J||Y,I),C=u;break}V.call(L,H,new Ld(L,{sourceEvent:Y,subject:j,target:v,identifier:Q,active:C,x:P[0]+W,y:P[1]+ce,dx:P[0]-ne[0],dy:P[1]-ne[1],dispatch:V}),U)}}return v.filter=function(H){return arguments.length?(e=typeof H=="function"?H:N0(!!H),v):e},v.container=function(H){return arguments.length?(t=typeof H=="function"?H:N0(H),v):t},v.subject=function(H){return arguments.length?(n=typeof H=="function"?H:N0(H),v):n},v.touchable=function(H){return arguments.length?(i=typeof H=="function"?H:N0(!!H),v):i},v.on=function(){var H=s.on.apply(s,arguments);return H===s?v:H},v.clickDistance=function(H){return arguments.length?(m=(H=+H)*H,v):Math.sqrt(m)},v}function Rm(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function m8(e,t){var n=Object.create(e.prototype);for(var i in t)n[i]=t[i];return n}function $s(){}var Ms=.7,lc=1/Ms,Pl="\\s*([+-]?\\d+)\\s*",Ns="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ur="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",rD=/^#([0-9a-f]{3,8})$/,iD=new RegExp(`^rgb\\(${Pl},${Pl},${Pl}\\)$`),aD=new RegExp(`^rgb\\(${Ur},${Ur},${Ur}\\)$`),lD=new RegExp(`^rgba\\(${Pl},${Pl},${Pl},${Ns}\\)$`),oD=new RegExp(`^rgba\\(${Ur},${Ur},${Ur},${Ns}\\)$`),sD=new RegExp(`^hsl\\(${Ns},${Ur},${Ur}\\)$`),uD=new RegExp(`^hsla\\(${Ns},${Ur},${Ur},${Ns}\\)$`),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};Rm($s,$a,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:B5,formatHex:B5,formatHex8:cD,formatHsl:fD,formatRgb:L5,toString:L5});function B5(){return this.rgb().formatHex()}function cD(){return this.rgb().formatHex8()}function fD(){return p8(this).formatHsl()}function L5(){return this.rgb().formatRgb()}function $a(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=rD.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?D0(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?D0(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=iD.exec(e))?new Un(t[1],t[2],t[3],1):(t=aD.exec(e))?new Un(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=lD.exec(e))?D0(t[1],t[2],t[3],t[4]):(t=oD.exec(e))?D0(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=sD.exec(e))?I5(t[1],t[2]/100,t[3]/100,1):(t=uD.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 D0(e,t,n,i){return i<=0&&(e=t=n=NaN),new Un(e,t,n,i)}function hD(e){return e instanceof $s||(e=$a(e)),e?(e=e.rgb(),new Un(e.r,e.g,e.b,e.opacity)):new Un}function Hd(e,t,n,i){return arguments.length===1?hD(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}Rm(Un,Hd,m8($s,{brighter(e){return e=e==null?lc:Math.pow(lc,e),new Un(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Ms:Math.pow(Ms,e),new Un(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Un(Va(this.r),Va(this.g),Va(this.b),oc(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:q5,formatHex:q5,formatHex8:dD,formatRgb:j5,toString:j5}));function q5(){return`#${Fa(this.r)}${Fa(this.g)}${Fa(this.b)}`}function dD(){return`#${Fa(this.r)}${Fa(this.g)}${Fa(this.b)}${Fa((isNaN(this.opacity)?1:this.opacity)*255)}`}function j5(){const e=oc(this.opacity);return`${e===1?"rgb(":"rgba("}${Va(this.r)}, ${Va(this.g)}, ${Va(this.b)}${e===1?")":`, ${e})`}`}function oc(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Va(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Fa(e){return e=Va(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 p8(e){if(e instanceof kr)return new kr(e.h,e.s,e.l,e.opacity);if(e instanceof $s||(e=$a(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 mD(e,t,n,i){return arguments.length===1?p8(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}Rm(kr,mD,m8($s,{brighter(e){return e=e==null?lc:Math.pow(lc,e),new kr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Ms:Math.pow(Ms,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($1(e>=240?e-240:e+120,l,i),$1(e,l,i),$1(e<120?e+240:e-120,l,i),this.opacity)},clamp(){return new kr(U5(this.h),_0(this.s),_0(this.l),oc(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=oc(this.opacity);return`${e===1?"hsl(":"hsla("}${U5(this.h)}, ${_0(this.s)*100}%, ${_0(this.l)*100}%${e===1?")":`, ${e})`}`}}));function U5(e){return e=(e||0)%360,e<0?e+360:e}function _0(e){return Math.max(0,Math.min(1,e||0))}function $1(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 Bm=e=>()=>e;function pD(e,t){return function(n){return e+n*t}}function gD(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 yD(e){return(e=+e)==1?g8:function(t,n){return n-t?gD(t,n,e):Bm(isNaN(t)?n:t)}}function g8(e,t){var n=t-e;return n?pD(e,n):Bm(isNaN(e)?t:e)}const sc=(function e(t){var n=yD(t);function i(l,s){var u=n((l=Hd(l)).r,(s=Hd(s)).r),f=n(l.g,s.g),h=n(l.b,s.b),d=g8(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 vD(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 xD(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function bD(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]=ws(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 wD(e,t){var n=new Date;return e=+e,t=+t,function(i){return n.setTime(e*(1-i)+t*i),n}}function jr(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function SD(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]=ws(e[l],t[l]):i[l]=t[l];return function(s){for(l in n)i[l]=n[l](s);return i}}var qd=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,X1=new RegExp(qd.source,"g");function kD(e){return function(){return e}}function ED(e){return function(t){return e(t)+""}}function y8(e,t){var n=qd.lastIndex=X1.lastIndex=0,i,l,s,u=-1,f=[],h=[];for(e=e+"",t=t+"";(i=qd.exec(e))&&(l=X1.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:jr(i,l)})),n=X1.lastIndex;return n<t.length&&(s=t.slice(n),f[u]?f[u]+=s:f[++u]=s),f.length<2?h[0]?ED(h[0].x):kD(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 ws(e,t){var n=typeof t,i;return t==null||n==="boolean"?Bm(t):(n==="number"?jr:n==="string"?(i=$a(t))?(t=i,sc):y8:t instanceof $a?sc:t instanceof Date?wD:xD(t)?vD:Array.isArray(t)?bD:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?SD:jr)(e,t)}var F5=180/Math.PI,jd={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function v8(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 O0;function AD(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?jd:v8(t.a,t.b,t.c,t.d,t.e,t.f)}function TD(e){return e==null||(O0||(O0=document.createElementNS("http://www.w3.org/2000/svg","g")),O0.setAttribute("transform",e),!(e=O0.transform.baseVal.consolidate()))?jd:(e=e.matrix,v8(e.a,e.b,e.c,e.d,e.e,e.f))}function x8(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:jr(d,m)},{i:A-2,x:jr(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:jr(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:jr(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:jr(d,m)},{i:A-2,x:jr(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,T;++w<A;)m[(T=v[w]).i]=T.x(x);return m.join("")}}}var zD=x8(AD,"px, ","px)","deg)"),CD=x8(TD,", ",")",")"),MD=1e-12;function V5(e){return((e=Math.exp(e))+1/e)/2}function ND(e){return((e=Math.exp(e))-1/e)/2}function DD(e){return((e=Math.exp(2*e))-1)/(e+1)}const Y0=(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,T,E;if(A<MD)E=Math.log(v/d)/t,T=function(U){return[f+U*x,h+U*w,d*Math.exp(t*U*E)]};else{var N=Math.sqrt(A),z=(v*v-d*d+i*A)/(2*d*n*N),H=(v*v-d*d-i*A)/(2*v*n*N),I=Math.log(Math.sqrt(z*z+1)-z),O=Math.log(Math.sqrt(H*H+1)-H);E=(O-I)/t,T=function(U){var Q=U*E,Z=V5(I),V=d/(n*N)*(Z*DD(t*Q+I)-ND(I));return[f+V*x,h+V*w,d*Z/V5(t*Q+I)]}}return T.duration=E*1e3*t/Math.SQRT2,T}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 eo=0,ps=0,hs=0,b8=1e3,uc,gs,cc=0,Xa=0,Hc=0,Ds=typeof performance=="object"&&performance.now?performance:Date,w8=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Lm(){return Xa||(w8(_D),Xa=Ds.now()+Hc)}function _D(){Xa=0}function fc(){this._call=this._time=this._next=null}fc.prototype=S8.prototype={constructor:fc,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?Lm():+n)+(t==null?0:+t),!this._next&&gs!==this&&(gs?gs._next=this:uc=this,gs=this),this._call=e,this._time=n,Id()},stop:function(){this._call&&(this._call=null,this._time=1/0,Id())}};function S8(e,t,n){var i=new fc;return i.restart(e,t,n),i}function OD(){Lm(),++eo;for(var e=uc,t;e;)(t=Xa-e._time)>=0&&e._call.call(void 0,t),e=e._next;--eo}function Y5(){Xa=(cc=Ds.now())+Hc,eo=ps=0;try{OD()}finally{eo=0,BD(),Xa=0}}function RD(){var e=Ds.now(),t=e-cc;t>b8&&(Hc-=t,cc=e)}function BD(){for(var e,t=uc,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:uc=n);gs=e,Id(i)}function Id(e){if(!eo){ps&&(ps=clearTimeout(ps));var t=e-Xa;t>24?(e<1/0&&(ps=setTimeout(Y5,e-Ds.now()-Hc)),hs&&(hs=clearInterval(hs))):(hs||(cc=Ds.now(),hs=setInterval(RD,b8)),eo=1,w8(Y5))}}function G5(e,t,n){var i=new fc;return t=t==null?0:+t,i.restart(l=>{i.stop(),e(l+t)},t,n),i}var LD=Bc("start","end","cancel","interrupt"),HD=[],k8=0,$5=1,Ud=2,G0=3,X5=4,Fd=5,$0=6;function qc(e,t,n,i,l,s){var u=e.__transition;if(!u)e.__transition={};else if(n in u)return;qD(e,n,{name:t,index:i,group:l,on:LD,tween:HD,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:k8})}function Hm(e,t){var n=zr(e,t);if(n.state>k8)throw new Error("too late; already scheduled");return n}function Xr(e,t){var n=zr(e,t);if(n.state>G0)throw new Error("too late; already running");return n}function zr(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function qD(e,t,n){var i=e.__transition,l;i[t]=n,n.timer=S8(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===G0)return G5(u);x.state===X5?(x.state=$0,x.timer.stop(),x.on.call("interrupt",e,e.__data__,x.index,x.group),delete i[p]):+p<t&&(x.state=$0,x.timer.stop(),x.on.call("cancel",e,e.__data__,x.index,x.group),delete i[p])}if(G5(function(){n.state===G0&&(n.state=X5,n.timer.restart(f,n.delay,n.time),f(d))}),n.state=Ud,n.on.call("start",e,e.__data__,n.index,n.group),n.state===Ud){for(n.state=G0,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=Fd,1),m=-1,v=l.length;++m<v;)l[m].call(e,p);n.state===Fd&&(n.on.call("end",e,e.__data__,n.index,n.group),h())}function h(){n.state=$0,n.timer.stop(),delete i[t];for(var d in i)return;delete e.__transition}}function X0(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>Ud&&i.state<Fd,i.state=$0,i.timer.stop(),i.on.call(l?"interrupt":"cancel",e,e.__data__,i.index,i.group),delete n[u]}s&&delete e.__transition}}function jD(e){return this.each(function(){X0(this,e)})}function ID(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 UD(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 FD(e,t){var n=this._id;if(e+="",arguments.length<2){for(var i=zr(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?ID:UD)(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 zr(l,i).value[t]}}function E8(e,t){var n;return(typeof t=="number"?jr:t instanceof $a?sc:(n=$a(t))?(t=n,sc):y8)(e,t)}function VD(e){return function(){this.removeAttribute(e)}}function YD(e){return function(){this.removeAttributeNS(e.space,e.local)}}function GD(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 $D(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 XD(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 PD(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 ZD(e,t){var n=Lc(e),i=n==="transform"?CD:E8;return this.attrTween(e,typeof t=="function"?(n.local?PD:XD)(n,i,qm(this,"attr."+e,t)):t==null?(n.local?YD:VD)(n):(n.local?$D:GD)(n,i,t))}function QD(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function KD(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function JD(e,t){var n,i;function l(){var s=t.apply(this,arguments);return s!==i&&(n=(i=s)&&KD(e,s)),n}return l._value=t,l}function WD(e,t){var n,i;function l(){var s=t.apply(this,arguments);return s!==i&&(n=(i=s)&&QD(e,s)),n}return l._value=t,l}function e_(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=Lc(e);return this.tween(n,(i.local?JD:WD)(i,t))}function t_(e,t){return function(){Hm(this,e).delay=+t.apply(this,arguments)}}function n_(e,t){return t=+t,function(){Hm(this,e).delay=t}}function r_(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?t_:n_)(t,e)):zr(this.node(),t).delay}function i_(e,t){return function(){Xr(this,e).duration=+t.apply(this,arguments)}}function a_(e,t){return t=+t,function(){Xr(this,e).duration=t}}function l_(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?i_:a_)(t,e)):zr(this.node(),t).duration}function o_(e,t){if(typeof t!="function")throw new Error;return function(){Xr(this,e).ease=t}}function s_(e){var t=this._id;return arguments.length?this.each(o_(t,e)):zr(this.node(),t).ease}function u_(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;Xr(this,e).ease=n}}function c_(e){if(typeof e!="function")throw new Error;return this.each(u_(this._id,e))}function f_(e){typeof e!="function"&&(e=t8(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 h_(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 d_(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 m_(e,t,n){var i,l,s=d_(t)?Hm:Xr;return function(){var u=s(this,e),f=u.on;f!==i&&(l=(i=f).copy()).on(t,n),u.on=l}}function p_(e,t){var n=this._id;return arguments.length<2?zr(this.node(),n).on.on(e):this.each(m_(n,e,t))}function g_(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function y_(){return this.on("end.remove",g_(this._id))}function v_(e){var t=this._name,n=this._id;typeof e!="function"&&(e=_m(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,qc(d[v],t,n,v,d,zr(p,n)));return new wi(s,this._parents,t,n)}function x_(e){var t=this._name,n=this._id;typeof e!="function"&&(e=e8(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=zr(p,n),A=0,T=v.length;A<T;++A)(x=v[A])&&qc(x,t,n,A,v,w);s.push(v),u.push(p)}return new wi(s,u,t,n)}var b_=Gs.prototype.constructor;function w_(){return new b_(this._groups,this._parents)}function S_(e,t){var n,i,l;return function(){var s=Wl(this,e),u=(this.style.removeProperty(e),Wl(this,e));return s===u?null:s===n&&u===i?l:l=t(n=s,i=u)}}function A8(e){return function(){this.style.removeProperty(e)}}function k_(e,t,n){var i,l=n+"",s;return function(){var u=Wl(this,e);return u===l?null:u===i?s:s=t(i=u,n)}}function E_(e,t,n){var i,l,s;return function(){var u=Wl(this,e),f=n(this),h=f+"";return f==null&&(h=f=(this.style.removeProperty(e),Wl(this,e))),u===h?null:u===i&&h===l?s:(l=h,s=t(i=u,f))}}function A_(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=A8(t)):void 0;(d!==n||l!==p)&&(i=(n=d).copy()).on(u,l=p),h.on=i}}function T_(e,t,n){var i=(e+="")=="transform"?zD:E8;return t==null?this.styleTween(e,S_(e,i)).on("end.style."+e,A8(e)):typeof t=="function"?this.styleTween(e,E_(e,i,qm(this,"style."+e,t))).each(A_(this._id,e)):this.styleTween(e,k_(e,i,t),n).on("end.style."+e,null)}function z_(e,t,n){return function(i){this.style.setProperty(e,t.call(this,i),n)}}function C_(e,t,n){var i,l;function s(){var u=t.apply(this,arguments);return u!==l&&(i=(l=u)&&z_(e,u,n)),i}return s._value=t,s}function M_(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,C_(e,t,n??""))}function N_(e){return function(){this.textContent=e}}function D_(e){return function(){var t=e(this);this.textContent=t??""}}function __(e){return this.tween("text",typeof e=="function"?D_(qm(this,"text",e)):N_(e==null?"":e+""))}function O_(e){return function(t){this.textContent=e.call(this,t)}}function R_(e){var t,n;function i(){var l=e.apply(this,arguments);return l!==n&&(t=(n=l)&&O_(l)),t}return i._value=e,i}function B_(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,R_(e))}function L_(){for(var e=this._name,t=this._id,n=T8(),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=zr(h,t);qc(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 H_(){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 q_=0;function wi(e,t,n,i){this._groups=e,this._parents=t,this._name=n,this._id=i}function T8(){return++q_}var gi=Gs.prototype;wi.prototype={constructor:wi,select:v_,selectAll:x_,selectChild:gi.selectChild,selectChildren:gi.selectChildren,filter:f_,merge:h_,selection:w_,transition:L_,call:gi.call,nodes:gi.nodes,node:gi.node,size:gi.size,empty:gi.empty,each:gi.each,on:p_,attr:ZD,attrTween:e_,style:T_,styleTween:M_,text:__,textTween:B_,remove:y_,tween:FD,delay:r_,duration:l_,ease:s_,easeVarying:c_,end:H_,[Symbol.iterator]:gi[Symbol.iterator]};function j_(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var I_={time:null,delay:0,duration:250,ease:j_};function U_(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 F_(e){var t,n;e instanceof wi?(t=e._id,e=e._name):(t=T8(),(n=I_).time=Lm(),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])&&qc(h,e,t,d,u,n||U_(h,t));return new wi(i,this._parents,e,t)}Gs.prototype.interrupt=jD;Gs.prototype.transition=F_;const R0=e=>()=>e;function V_(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 jc=new vi(1,0,0);z8.prototype=vi.prototype;function z8(e){for(;!e.__zoom;)if(!(e=e.parentNode))return jc;return e.__zoom}function P1(e){e.stopImmediatePropagation()}function ds(e){e.preventDefault(),e.stopImmediatePropagation()}function Y_(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function G_(){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||jc}function $_(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function X_(){return navigator.maxTouchPoints||"ontouchstart"in this}function P_(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 C8(){var e=Y_,t=G_,n=P_,i=$_,l=X_,s=[0,1/0],u=[[-1/0,-1/0],[1/0,1/0]],f=250,h=Y0,d=Bc("start","zoom","end"),p,m,v,x=500,w=150,A=0,T=10;function E(j){j.property("__zoom",P5).on("wheel.zoom",Q,{passive:!1}).on("mousedown.zoom",Z).on("dblclick.zoom",V).filter(l).on("touchstart.zoom",P).on("touchmove.zoom",W).on("touchend.zoom touchcancel.zoom",ce).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}E.transform=function(j,F,L,Y){var J=j.selection?j.selection():j;J.property("__zoom",P5),j!==J?I(j,F,L,Y):J.interrupt().each(function(){O(this,arguments).event(Y).start().zoom(null,typeof F=="function"?F.apply(this,arguments):F).end()})},E.scaleBy=function(j,F,L,Y){E.scaleTo(j,function(){var J=this.__zoom.k,ne=typeof F=="function"?F.apply(this,arguments):F;return J*ne},L,Y)},E.scaleTo=function(j,F,L,Y){E.transform(j,function(){var J=t.apply(this,arguments),ne=this.__zoom,C=L==null?H(J):typeof L=="function"?L.apply(this,arguments):L,q=ne.invert(C),$=typeof F=="function"?F.apply(this,arguments):F;return n(z(N(ne,$),C,q),J,u)},L,Y)},E.translateBy=function(j,F,L,Y){E.transform(j,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(j,F,L,Y,J){E.transform(j,function(){var ne=t.apply(this,arguments),C=this.__zoom,q=Y==null?H(ne):typeof Y=="function"?Y.apply(this,arguments):Y;return n(jc.translate(q[0],q[1]).scale(C.k).translate(typeof F=="function"?-F.apply(this,arguments):-F,typeof L=="function"?-L.apply(this,arguments):-L),ne,u)},Y,J)};function N(j,F){return F=Math.max(s[0],Math.min(s[1],F)),F===j.k?j:new vi(F,j.x,j.y)}function z(j,F,L){var Y=F[0]-L[0]*j.k,J=F[1]-L[1]*j.k;return Y===j.x&&J===j.y?j:new vi(j.k,Y,J)}function H(j){return[(+j[0][0]+ +j[1][0])/2,(+j[0][1]+ +j[1][1])/2]}function I(j,F,L,Y){j.on("start.zoom",function(){O(this,arguments).event(Y).start()}).on("interrupt.zoom end.zoom",function(){O(this,arguments).event(Y).end()}).tween("zoom",function(){var J=this,ne=arguments,C=O(J,ne).event(Y),q=t.apply(J,ne),$=L==null?H(q):typeof L=="function"?L.apply(J,ne):L,_=Math.max(q[1][0]-q[0][0],q[1][1]-q[0][1]),ie=J.__zoom,ye=typeof F=="function"?F.apply(J,ne):F,xe=h(ie.invert($).concat(_/ie.k),ye.invert($).concat(_/ye.k));return function(be){if(be===1)be=ye;else{var ge=xe(be),Se=_/ge[2];be=new vi(Se,$[0]-ge[0]*Se,$[1]-ge[1]*Se)}C.zoom(null,be)}})}function O(j,F,L){return!L&&j.__zooming||new U(j,F)}function U(j,F){this.that=j,this.args=F,this.active=0,this.sourceEvent=null,this.extent=t.apply(j,F),this.taps=0}U.prototype={event:function(j){return j&&(this.sourceEvent=j),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(j,F){return this.mouse&&j!=="mouse"&&(this.mouse[1]=F.invert(this.mouse[0])),this.touch0&&j!=="touch"&&(this.touch0[1]=F.invert(this.touch0[0])),this.touch1&&j!=="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(j){var F=Wn(this.that).datum();d.call(j,this.that,new V_(j,{sourceEvent:this.sourceEvent,target:E,transform:this.that.__zoom,dispatch:d}),F)}};function Q(j,...F){if(!e.apply(this,arguments))return;var L=O(this,F).event(j),Y=this.__zoom,J=Math.max(s[0],Math.min(s[1],Y.k*Math.pow(2,i.apply(this,arguments)))),ne=Sr(j);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===J)return;L.mouse=[ne,Y.invert(ne)],X0(this),L.start()}ds(j),L.wheel=setTimeout(C,w),L.zoom("mouse",n(z(N(Y,J),L.mouse[0],L.mouse[1]),L.extent,u));function C(){L.wheel=null,L.end()}}function Z(j,...F){if(v||!e.apply(this,arguments))return;var L=j.currentTarget,Y=O(this,F,!0).event(j),J=Wn(j.view).on("mousemove.zoom",$,!0).on("mouseup.zoom",_,!0),ne=Sr(j,L),C=j.clientX,q=j.clientY;f8(j.view),P1(j),Y.mouse=[ne,this.__zoom.invert(ne)],X0(this),Y.start();function $(ie){if(ds(ie),!Y.moved){var ye=ie.clientX-C,xe=ie.clientY-q;Y.moved=ye*ye+xe*xe>A}Y.event(ie).zoom("mouse",n(z(Y.that.__zoom,Y.mouse[0]=Sr(ie,L),Y.mouse[1]),Y.extent,u))}function _(ie){J.on("mousemove.zoom mouseup.zoom",null),h8(ie.view,Y.moved),ds(ie),Y.event(ie).end()}}function V(j,...F){if(e.apply(this,arguments)){var L=this.__zoom,Y=Sr(j.changedTouches?j.changedTouches[0]:j,this),J=L.invert(Y),ne=L.k*(j.shiftKey?.5:2),C=n(z(N(L,ne),Y,J),t.apply(this,F),u);ds(j),f>0?Wn(this).transition().duration(f).call(I,C,Y,j):Wn(this).call(E.transform,C,Y,j)}}function P(j,...F){if(e.apply(this,arguments)){var L=j.touches,Y=L.length,J=O(this,F,j.changedTouches.length===Y).event(j),ne,C,q,$;for(P1(j),C=0;C<Y;++C)q=L[C],$=Sr(q,this),$=[$,this.__zoom.invert($),q.identifier],J.touch0?!J.touch1&&J.touch0[2]!==$[2]&&(J.touch1=$,J.taps=0):(J.touch0=$,ne=!0,J.taps=1+!!p);p&&(p=clearTimeout(p)),ne&&(J.taps<2&&(m=$[0],p=setTimeout(function(){p=null},x)),X0(this),J.start())}}function W(j,...F){if(this.__zooming){var L=O(this,F).event(j),Y=j.changedTouches,J=Y.length,ne,C,q,$;for(ds(j),ne=0;ne<J;++ne)C=Y[ne],q=Sr(C,this),L.touch0&&L.touch0[2]===C.identifier?L.touch0[0]=q:L.touch1&&L.touch1[2]===C.identifier&&(L.touch1[0]=q);if(C=L.that.__zoom,L.touch1){var _=L.touch0[0],ie=L.touch0[1],ye=L.touch1[0],xe=L.touch1[1],be=(be=ye[0]-_[0])*be+(be=ye[1]-_[1])*be,ge=(ge=xe[0]-ie[0])*ge+(ge=xe[1]-ie[1])*ge;C=N(C,Math.sqrt(be/ge)),q=[(_[0]+ye[0])/2,(_[1]+ye[1])/2],$=[(ie[0]+xe[0])/2,(ie[1]+xe[1])/2]}else if(L.touch0)q=L.touch0[0],$=L.touch0[1];else return;L.zoom("touch",n(z(C,q,$),L.extent,u))}}function ce(j,...F){if(this.__zooming){var L=O(this,F).event(j),Y=j.changedTouches,J=Y.length,ne,C;for(P1(j),v&&clearTimeout(v),v=setTimeout(function(){v=null},x),ne=0;ne<J;++ne)C=Y[ne],L.touch0&&L.touch0[2]===C.identifier?delete L.touch0:L.touch1&&L.touch1[2]===C.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&&(C=Sr(C,this),Math.hypot(m[0]-C[0],m[1]-C[1])<T)){var q=Wn(this).on("dblclick.zoom");q&&q.apply(this,arguments)}}}return E.wheelDelta=function(j){return arguments.length?(i=typeof j=="function"?j:R0(+j),E):i},E.filter=function(j){return arguments.length?(e=typeof j=="function"?j:R0(!!j),E):e},E.touchable=function(j){return arguments.length?(l=typeof j=="function"?j:R0(!!j),E):l},E.extent=function(j){return arguments.length?(t=typeof j=="function"?j:R0([[+j[0][0],+j[0][1]],[+j[1][0],+j[1][1]]]),E):t},E.scaleExtent=function(j){return arguments.length?(s[0]=+j[0],s[1]=+j[1],E):[s[0],s[1]]},E.translateExtent=function(j){return arguments.length?(u[0][0]=+j[0][0],u[1][0]=+j[1][0],u[0][1]=+j[0][1],u[1][1]=+j[1][1],E):[[u[0][0],u[0][1]],[u[1][0],u[1][1]]]},E.constrain=function(j){return arguments.length?(n=j,E):n},E.duration=function(j){return arguments.length?(f=+j,E):f},E.interpolate=function(j){return arguments.length?(h=j,E):h},E.on=function(){var j=d.on.apply(d,arguments);return j===d?E:j},E.clickDistance=function(j){return arguments.length?(A=(j=+j)*j,E):Math.sqrt(A)},E.tapDistance=function(j){return arguments.length?(T=+j,E):T},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."},_s=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],M8=["Enter"," ","Escape"],N8={"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 to;(function(e){e.Strict="strict",e.Loose="loose"})(to||(to={}));var Ya;(function(e){e.Free="free",e.Vertical="vertical",e.Horizontal="horizontal"})(Ya||(Ya={}));var Os;(function(e){e.Partial="partial",e.Full="full"})(Os||(Os={}));const D8={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null,pointer:null};var la;(function(e){e.Bezier="default",e.Straight="straight",e.Step="step",e.SmoothStep="smoothstep",e.SimpleBezier="simplebezier"})(la||(la={}));var Rs;(function(e){e.Arrow="arrow",e.ArrowClosed="arrowclosed"})(Rs||(Rs={}));var Oe;(function(e){e.Left="left",e.Top="top",e.Right="right",e.Bottom="bottom"})(Oe||(Oe={}));const Z5={[Oe.Left]:Oe.Right,[Oe.Right]:Oe.Left,[Oe.Top]:Oe.Bottom,[Oe.Bottom]:Oe.Top};function _8(e){return e===null?null:e?"valid":"invalid"}const O8=e=>"id"in e&&"source"in e&&"target"in e,Z_=e=>"id"in e&&"position"in e&&!("source"in e)&&!("target"in e),jm=e=>"id"in e&&"internals"in e&&!("source"in e)&&!("target"in e),Xs=(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}},Q_=(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):jm(l)?l:t.nodeLookup.get(l.id));const f=u?hc(u,t.nodeOrigin):{x:0,y:0,x2:0,y2:0};return Ic(i,f)},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return Uc(n)},Ps=(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=Ic(n,hc(l)),i=!0)}),i?Uc(n):{x:0,y:0,width:0,height:0}},Im=(e,t,[n,i,l]=[0,0,1],s=!1,u=!1)=>{const f={...Qs(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=Bs(f,ro(d)),T=(x??0)*(w??0),E=s&&A>0;(!d.internals.handleBounds||E||A>=T||d.dragging)&&h.push(d)}return h},K_=(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 J_(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 W_({nodes:e,width:t,height:n,panZoom:i,minZoom:l,maxZoom:s},u){if(e.size===0)return Promise.resolve(!0);const f=J_(e,u),h=Ps(f),d=Um(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 R8({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&&io(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=io(m)?Pa(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 eO({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=K_(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 no=(e,t=0,n=1)=>Math.min(Math.max(e,t),n),Pa=(e={x:0,y:0},t,n)=>({x:no(e.x,t[0][0],t[1][0]-(n?.width??0)),y:no(e.y,t[0][1],t[1][1]-(n?.height??0))});function B8(e,t,n){const{width:i,height:l}=Ti(n),{x:s,y:u}=n.internals.positionAbsolute;return Pa(e,[[s,u],[s+i,u+l]],t)}const Q5=(e,t,n)=>e<t?no(Math.abs(e-t),1,t)/t:e>n?-no(Math.abs(e-n),1,t)/t:0,L8=(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]},Ic=(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)}),Vd=({x:e,y:t,width:n,height:i})=>({x:e,y:t,x2:e+n,y2:t+i}),Uc=({x:e,y:t,x2:n,y2:i})=>({x:e,y:t,width:n-e,height:i-t}),ro=(e,t=[0,0])=>{const{x:n,y:i}=jm(e)?e.internals.positionAbsolute:Xs(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}},hc=(e,t=[0,0])=>{const{x:n,y:i}=jm(e)?e.internals.positionAbsolute:Xs(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)}},H8=(e,t)=>Uc(Ic(Vd(e),Vd(t))),Bs=(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),tO=(e,t)=>{},Zs=(e,t=[1,1])=>({x:t[0]*Math.round(e.x/t[0]),y:t[1]*Math.round(e.y/t[1])}),Qs=({x:e,y:t},[n,i,l],s=!1,u=[1,1])=>{const f={x:(e-n)/l,y:(t-i)/l};return s?Zs(f,u):f},dc=({x:e,y:t},[n,i,l])=>({x:e*l+n,y:t*l+i});function Ul(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 nO(e,t,n){if(typeof e=="string"||typeof e=="number"){const i=Ul(e,n),l=Ul(e,t);return{top:i,right:l,bottom:i,left:l,x:l*2,y:i*2}}if(typeof e=="object"){const i=Ul(e.top??e.y??0,n),l=Ul(e.bottom??e.y??0,n),s=Ul(e.left??e.x??0,t),u=Ul(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 rO(e,t,n,i,l,s){const{x:u,y:f}=dc(e,[t,n,i]),{x:h,y:d}=dc({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 Um=(e,t,n,i,l,s)=>{const u=nO(s,t,n),f=(t-u.x)/e.width,h=(n-u.y)/e.height,d=Math.min(f,h),p=no(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=rO(e,x,w,p,t,n),T={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-T.left+T.right,y:w-T.top+T.bottom,zoom:p}},Ls=()=>typeof navigator<"u"&&navigator?.userAgent?.indexOf("Mac")>=0;function io(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 q8(e){return(e.measured?.width??e.width??e.initialWidth)!==void 0&&(e.measured?.height??e.height??e.initialHeight)!==void 0}function j8(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 iO(){let e,t;return{promise:new Promise((i,l)=>{e=i,t=l}),resolve:e,reject:t}}function aO(e){return{...N8,...e||{}}}function Ss(e,{snapGrid:t=[0,0],snapToGrid:n=!1,transform:i,containerBounds:l}){const{x:s,y:u}=Ar(e),f=Qs({x:s-(l?.left??0),y:u-(l?.top??0)},i),{x:h,y:d}=n?Zs(f,t):f;return{xSnapped:h,ySnapped:d,...f}}const Fm=e=>({width:e.offsetWidth,height:e.offsetHeight}),I8=e=>e?.getRootNode?.()||window?.document,lO=["INPUT","SELECT","TEXTAREA"];function U8(e){const t=e.composedPath?.()?.[0]||e.target;return t?.nodeType!==1?!1:lO.includes(t.nodeName)||t.hasAttribute("contenteditable")||!!t.closest(".nokey")}const F8=e=>"clientX"in e,Ar=(e,t)=>{const n=F8(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,...Fm(u)}})};function V8({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 B0(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 Oe.Left:return[t-B0(t-i,s),n];case Oe.Right:return[t+B0(i-t,s),n];case Oe.Top:return[t,n-B0(n-l,s)];case Oe.Bottom:return[t,n+B0(l-n,s)]}}function Y8({sourceX:e,sourceY:t,sourcePosition:n=Oe.Bottom,targetX:i,targetY:l,targetPosition:s=Oe.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]=V8({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 G8({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 oO({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 sO({sourceNode:e,targetNode:t,width:n,height:i,transform:l}){const s=Ic(hc(e),hc(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 Bs(u,Uc(s))>0}const uO=({source:e,sourceHandle:t,target:n,targetHandle:i})=>`xy-edge__${e}${t||""}-${n}${i||""}`,cO=(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)),fO=(e,t,n={})=>{if(!e.source||!e.target)return t;const i=n.getEdgeId||uO;let l;return O8(e)?l={...e}:l={...e,id:i(e)},cO(l,t)?t:(l.sourceHandle===null&&delete l.sourceHandle,l.targetHandle===null&&delete l.targetHandle,t.concat(l))};function $8({sourceX:e,sourceY:t,targetX:n,targetY:i}){const[l,s,u,f]=G8({sourceX:e,sourceY:t,targetX:n,targetY:i});return[`M ${e},${t}L ${n},${i}`,l,s,u,f]}const t6={[Oe.Left]:{x:-1,y:0},[Oe.Right]:{x:1,y:0},[Oe.Top]:{x:0,y:-1},[Oe.Bottom]:{x:0,y:1}},hO=({source:e,sourcePosition:t=Oe.Bottom,target:n})=>t===Oe.Left||t===Oe.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 dO({source:e,sourcePosition:t=Oe.Bottom,target:n,targetPosition:i=Oe.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=hO({source:d,sourcePosition:t,target:p}),v=m.x!==0?"x":"y",x=m[v];let w=[],A,T;const E={x:0,y:0},N={x:0,y:0},[,,z,H]=G8({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,T=l.y??(d.y+p.y)/2):(A=l.x??(d.x+p.x)/2,T=l.y??d.y+(p.y-d.y)*u);const Q=[{x:A,y:d.y},{x:A,y:p.y}],Z=[{x:d.x,y:T},{x:p.x,y:T}];f[v]===x?w=v==="x"?Q:Z:w=v==="x"?Z:Q}else{const Q=[{x:d.x,y:p.y}],Z=[{x:p.x,y:d.y}];if(v==="x"?w=f.x===x?Z:Q:w=f.y===x?Q:Z,t===i){const j=Math.abs(e[v]-n[v]);if(j<=s){const F=Math.min(s-1,s-j);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 j=v==="x"?"y":"x",F=f[v]===h[j],L=d[j]>p[j],Y=d[j]<p[j];(f[v]===1&&(!F&&L||F&&Y)||f[v]!==1&&(!F&&Y||F&&L))&&(w=v==="x"?Q:Z)}const V={x:d.x+E.x,y:d.y+E.y},P={x:p.x+N.x,y:p.y+N.y},W=Math.max(Math.abs(V.x-w[0].x),Math.abs(P.x-w[0].x)),ce=Math.max(Math.abs(V.y-w[0].y),Math.abs(P.y-w[0].y));W>=ce?(A=(V.x+P.x)/2,T=w[0].y):(A=w[0].x,T=(V.y+P.y)/2)}const I={x:d.x+E.x,y:d.y+E.y},O={x:p.x+N.x,y:p.y+N.y};return[[e,...I.x!==w[0].x||I.y!==w[0].y?[I]:[],...w,...O.x!==w[w.length-1].x||O.y!==w[w.length-1].y?[O]:[],n],A,T,z,H]}function mO(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 Yd({sourceX:e,sourceY:t,sourcePosition:n=Oe.Bottom,targetX:i,targetY:l,targetPosition:s=Oe.Top,borderRadius:u=5,centerX:f,centerY:h,offset:d=20,stepPosition:p=.5}){const[m,v,x,w,A]=dO({source:{x:e,y:t},sourcePosition:n,target:{x:i,y:l},targetPosition:s,center:{x:f,y:h},offset:d,stepPosition:p});let T=`M${m[0].x} ${m[0].y}`;for(let E=1;E<m.length-1;E++)T+=mO(m[E-1],m[E],m[E+1],u);return T+=`L${m[m.length-1].x} ${m[m.length-1].y}`,[T,v,x,w,A]}function r6(e){return e&&!!(e.internals.handleBounds||e.handles?.length)&&!!(e.measured.width||e.width||e.initialWidth)}function pO(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===to.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||Oe.Bottom,h=u?.position||Oe.Top,d=Za(t,s,f),p=Za(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 Za(e,t,n=Oe.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 Oe.Top:return{x:l+u/2,y:s};case Oe.Right:return{x:l+u,y:s+f/2};case Oe.Bottom:return{x:l+u/2,y:s+f};case Oe.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 Gd(e,t){return e?typeof e=="string"?e:`${t?`${t}__`:""}${Object.keys(e).sort().map(i=>`${i}=${e[i]}`).join("&")}`:""}function gO(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=Gd(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 X8=1e3,yO=10,Vm={nodeOrigin:[0,0],nodeExtent:_s,elevateNodesOnSelect:!0,zIndexMode:"basic",defaults:{}},vO={...Vm,checkEquality:!0};function Ym(e,t){const n={...e};for(const i in t)t[i]!==void 0&&(n[i]=t[i]);return n}function xO(e,t,n){const i=Ym(Vm,n);for(const l of e.values())if(l.parentId)$m(l,e,t,i);else{const s=Xs(l,i.nodeOrigin),u=io(l.extent)?l.extent:i.nodeExtent,f=Pa(s,u,Ti(l));l.internals.positionAbsolute=f}}function bO(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 Gm(e){return e==="manual"}function $d(e,t,n,i={}){const l=Ym(vO,i),s={i:0},u=new Map(t),f=l?.elevateNodesOnSelect&&!Gm(l.zIndexMode)?X8: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=Xs(p,l.nodeOrigin),x=io(p.extent)?p.extent:l.nodeExtent,w=Pa(v,x,Ti(p));m={...l.defaults,...p,measured:{width:p.measured?.width,height:p.measured?.height},internals:{positionAbsolute:w,handleBounds:bO(p,m),z:P8(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&&$m(m,t,n,i,s),d||=p.selected??!1}return{nodesInitialized:h,hasSelectedNodes:d}}function wO(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 $m(e,t,n,i,l){const{elevateNodesOnSelect:s,nodeOrigin:u,nodeExtent:f,zIndexMode:h}=Ym(Vm,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}wO(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*yO),l&&p.internals.rootParentIndex!==void 0&&(l.i=p.internals.rootParentIndex);const m=s&&!Gm(h)?X8:0,{x:v,y:x,z:w}=SO(e,p,u,f,m,h),{positionAbsolute:A}=e.internals,T=v!==A.x||x!==A.y;(T||w!==e.internals.z)&&t.set(e.id,{...e,internals:{...e.internals,positionAbsolute:T?{x:v,y:x}:A,z:w}})}function P8(e,t,n){const i=Er(e.zIndex)?e.zIndex:0;return Gm(n)?i:i+(e.selected?t:0)}function SO(e,t,n,i,l,s){const{x:u,y:f}=t.internals.positionAbsolute,h=Ti(e),d=Xs(e,n),p=io(e.extent)?Pa(d,e.extent,h):d;let m=Pa({x:u+p.x,y:f+p.y},i,h);e.extent==="parent"&&(m=B8(m,h,t));const v=P8(e,l,s),x=t.internals.z??0;return{x:m.x,y:m.y,z:x>=v?x+1:v}}function Xm(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??ro(f),d=H8(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)),T=(w-p.width)*m[0],E=(A-p.height)*m[1];(v>0||x>0||T||E)&&(l.push({id:h,type:"position",position:{x:f.position.x-v+T,y:f.position.y-x+E}}),n.get(h)?.forEach(N=>{e.some(z=>z.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-T:0),height:A+(x?m[1]*x-E:0)}})}),l}function kO(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=Fm(x.nodeElement),T=w.measured.width!==A.width||w.measured.height!==A.height;if(!!(A.width&&A.height&&(T||!w.internals.handleBounds||x.force))){const N=x.nodeElement.getBoundingClientRect(),z=io(w.extent)?w.extent:s;let{positionAbsolute:H}=w.internals;w.parentId&&w.extent==="parent"?H=B8(H,A,t.get(w.parentId)):z&&(H=Pa(H,z,A));const I={...w,measured:A,internals:{...w.internals,positionAbsolute:H,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&&$m(I,t,n,{nodeOrigin:l,zIndexMode:u}),h=!0,T&&(d.push({id:w.id,type:"dimensions",dimensions:A}),w.expandParent&&w.parentId&&v.push({id:w.id,parentId:w.parentId,rect:ro(I,l)}))}}if(v.length>0){const x=Xm(v,t,n,l);d.push(...x)}return{changes:d,updatedInternals:h}}async function EO({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 Z8(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 Q8(e,t){if(!e.parentId)return!1;const n=t.get(e.parentId);return n?n.selected?!0:Q8(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 AO(e,t,n,i){const l=new Map;for(const[s,u]of e)if((u.selected||u.id===i)&&(!u.parentId||!Q8(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 Z1({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 TO({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=Zs(s,t);return{x:u.x-s.x,y:u.y-s.y}}function zO({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 T({noDragClassName:N,handleSelector:z,domNode:H,isSelectable:I,nodeId:O,nodeClickDistance:U=0}){v=Wn(H);function Q({x:W,y:ce}){const{nodeLookup:j,nodeExtent:F,snapGrid:L,snapToGrid:Y,nodeOrigin:J,onNodeDrag:ne,onSelectionDrag:C,onError:q,updateNodePositions:$}=t();s={x:W,y:ce};let _=!1;const ie=f.size>1,ye=ie&&F?Vd(Ps(f)):null,xe=ie&&Y?TO({dragItems:f,snapGrid:L,x:W,y:ce}):null;for(const[be,ge]of f){if(!j.has(be))continue;let Se={x:W-ge.distance.x,y:ce-ge.distance.y};Y&&(Se=xe?{x:Math.round(Se.x+xe.x),y:Math.round(Se.y+xe.y)}:Zs(Se,L));let qe=null;if(ie&&F&&!ge.extent&&ye){const{positionAbsolute:Be}=ge.internals,Ye=Be.x-ye.x+F[0][0],it=Be.x+ge.measured.width-ye.x2+F[1][0],Je=Be.y-ye.y+F[0][1],At=Be.y+ge.measured.height-ye.y2+F[1][1];qe=[[Ye,Je],[it,At]]}const{position:Ie,positionAbsolute:Re}=R8({nodeId:be,nextPosition:Se,nodeLookup:j,nodeExtent:qe||F,nodeOrigin:J,onError:q});_=_||ge.position.x!==Ie.x||ge.position.y!==Ie.y,ge.position=Ie,ge.internals.positionAbsolute=Re}if(w=w||_,!!_&&($(f,!0),A&&(i||ne||!O&&C))){const[be,ge]=Z1({nodeId:O,dragItems:f,nodeLookup:j});i?.(A,f,be,ge),ne?.(A,be,ge),O||C?.(A,ge)}}async function Z(){if(!p)return;const{transform:W,panBy:ce,autoPanSpeed:j,autoPanOnNodeDrag:F}=t();if(!F){h=!1,cancelAnimationFrame(u);return}const[L,Y]=L8(d,p,j);(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})&&Q(s)),u=requestAnimationFrame(Z)}function V(W){const{nodeLookup:ce,multiSelectionActive:j,nodesDraggable:F,transform:L,snapGrid:Y,snapToGrid:J,selectNodesOnDrag:ne,onNodeDragStart:C,onSelectionDragStart:q,unselectNodesAndEdges:$}=t();m=!0,(!ne||!I)&&!j&&O&&(ce.get(O)?.selected||$()),I&&ne&&O&&e?.(O);const _=Ss(W.sourceEvent,{transform:L,snapGrid:Y,snapToGrid:J,containerBounds:p});if(s=_,f=AO(ce,F,_,O),f.size>0&&(n||C||!O&&q)){const[ie,ye]=Z1({nodeId:O,dragItems:f,nodeLookup:ce});n?.(W.sourceEvent,f,ie,ye),C?.(W.sourceEvent,ie,ye),O||q?.(W.sourceEvent,ye)}}const P=d8().clickDistance(U).on("start",W=>{const{domNode:ce,nodeDragThreshold:j,transform:F,snapGrid:L,snapToGrid:Y}=t();p=ce?.getBoundingClientRect()||null,x=!1,w=!1,A=W.sourceEvent,j===0&&V(W),s=Ss(W.sourceEvent,{transform:F,snapGrid:L,snapToGrid:Y,containerBounds:p}),d=Ar(W.sourceEvent,p)}).on("drag",W=>{const{autoPanOnNodeDrag:ce,transform:j,snapGrid:F,snapToGrid:L,nodeDragThreshold:Y,nodeLookup:J}=t(),ne=Ss(W.sourceEvent,{transform:j,snapGrid:F,snapToGrid:L,containerBounds:p});if(A=W.sourceEvent,(W.sourceEvent.type==="touchmove"&&W.sourceEvent.touches.length>1||O&&!J.has(O))&&(x=!0),!x){if(!h&&ce&&m&&(h=!0,Z()),!m){const C=Ar(W.sourceEvent,p),q=C.x-d.x,$=C.y-d.y;Math.sqrt(q*q+$*$)>Y&&V(W)}(s.x!==ne.xSnapped||s.y!==ne.ySnapped)&&f&&m&&(d=Ar(W.sourceEvent,p),Q(ne))}}).on("end",W=>{if(!(!m||x)&&(h=!1,m=!1,cancelAnimationFrame(u),f.size>0)){const{nodeLookup:ce,updateNodePositions:j,onNodeDragStop:F,onSelectionDragStop:L}=t();if(w&&(j(f,!1),w=!1),l||F||!O&&L){const[Y,J]=Z1({nodeId:O,dragItems:f,nodeLookup:ce,dragging:!1});l?.(W.sourceEvent,f,Y,J),F?.(W.sourceEvent,Y,J),O||L?.(W.sourceEvent,J)}}}).filter(W=>{const ce=W.target;return!W.button&&(!N||!o6(ce,`.${N}`,H))&&(!z||o6(ce,z,H))});v.call(P)}function E(){v?.on(".drag",null)}return{update:T,destroy:E}}function CO(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())Bs(l,ro(s))>0&&i.push(s);return i}const MO=250;function NO(e,t,n,i){let l=[],s=1/0;const u=CO(e,n,t+MO);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}=Za(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 K8(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,...Za(u,h,h.position,!0)}:h}function J8(e,t){return e||(t?.classList.contains("target")?"target":t?.classList.contains("source")?"source":null)}function DO(e,t){let n=null;return t?n=!0:e&&!t&&(n=!1),n}const W8=()=>!0;function _O(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:T,isValidConnection:E=W8,onReconnectEnd:N,updateConnection:z,getTransform:H,getFromHandle:I,autoPanSpeed:O,dragThreshold:U=1,handleDomNode:Q}){const Z=I8(e.target);let V=0,P;const{x:W,y:ce}=Ar(e),j=J8(s,Q),F=f?.getBoundingClientRect();let L=!1;if(!F||!j)return;const Y=K8(l,j,i,h,t);if(!Y)return;let J=Ar(e,F),ne=!1,C=null,q=!1,$=null;function _(){if(!p||!F)return;const[Ie,Re]=L8(J,F,O);v({x:Ie,y:Re}),V=requestAnimationFrame(_)}const ie={...Y,nodeId:l,type:j,position:Y.position},ye=h.get(l);let be={inProgress:!0,isValid:null,from:Za(ye,ie,Oe.Left,!0),fromHandle:ie,fromPosition:ie.position,fromNode:ye,to:J,toHandle:null,toPosition:Z5[ie.position],toNode:null,pointer:J};function ge(){L=!0,z(be),w?.(e,{nodeId:l,handleId:i,handleType:j})}U===0&&ge();function Se(Ie){if(!L){const{x:At,y:tn}=Ar(Ie),Ut=At-W,Ft=tn-ce;if(!(Ut*Ut+Ft*Ft>U*U))return;ge()}if(!I()||!ie){qe(Ie);return}const Re=H();J=Ar(Ie,F),P=NO(Qs(J,Re,!1,[1,1]),n,h,ie),ne||(_(),ne=!0);const Be=ev(Ie,{handle:P,connectionMode:t,fromNodeId:l,fromHandleId:i,fromType:u?"target":"source",isValidConnection:E,doc:Z,lib:d,flowId:m,nodeLookup:h});$=Be.handleDomNode,C=Be.connection,q=DO(!!P,Be.isValid);const Ye=h.get(l),it=Ye?Za(Ye,ie,Oe.Left,!0):be.from,Je={...be,from:it,isValid:q,to:Be.toHandle&&q?dc({x:Be.toHandle.x,y:Be.toHandle.y},Re):J,toHandle:Be.toHandle,toPosition:q&&Be.toHandle?Be.toHandle.position:Z5[ie.position],toNode:Be.toHandle?h.get(Be.toHandle.nodeId):null,pointer:J};z(Je),be=Je}function qe(Ie){if(!("touches"in Ie&&Ie.touches.length>0)){if(L){(P||$)&&C&&q&&A?.(C);const{inProgress:Re,...Be}=be,Ye={...Be,toPosition:be.toHandle?be.toPosition:null};T?.(Ie,Ye),s&&N?.(Ie,Ye)}x(),cancelAnimationFrame(V),ne=!1,q=!1,C=null,$=null,Z.removeEventListener("mousemove",Se),Z.removeEventListener("mouseup",qe),Z.removeEventListener("touchmove",Se),Z.removeEventListener("touchend",qe)}}Z.addEventListener("mousemove",Se),Z.addEventListener("mouseup",qe),Z.addEventListener("touchmove",Se),Z.addEventListener("touchend",qe)}function ev(e,{handle:t,connectionMode:n,fromNodeId:i,fromHandleId:l,fromType:s,doc:u,lib:f,flowId:h,isValidConnection:d=W8,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),T=A?.classList.contains(`${f}-flow__handle`)?A:v,E={handleDomNode:T,isValid:!1,connection:null,toHandle:null};if(T){const N=J8(void 0,T),z=T.getAttribute("data-nodeid"),H=T.getAttribute("data-handleid"),I=T.classList.contains("connectable"),O=T.classList.contains("connectableend");if(!z||!N)return E;const U={source:m?z:i,sourceHandle:m?H:l,target:m?i:z,targetHandle:m?l:H};E.connection=U;const Z=I&&O&&(n===to.Strict?m&&N==="source"||!m&&N==="target":z!==i||H!==l);E.isValid=Z&&d(U),E.toHandle=K8(z,N,H,p,n,!0)}return E}const Xd={onPointerDown:_O,isValid:ev};function OO({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=z=>{if(z.sourceEvent.type!=="wheel"||!t)return;const H=n(),I=z.sourceEvent.ctrlKey&&Ls()?10:1,O=-z.sourceEvent.deltaY*(z.sourceEvent.deltaMode===1?.05:z.sourceEvent.deltaMode?1:.002)*p,U=H[2]*Math.pow(2,O*I);t.scaleTo(U)};let A=[0,0];const T=z=>{(z.sourceEvent.type==="mousedown"||z.sourceEvent.type==="touchstart")&&(A=[z.sourceEvent.clientX??z.sourceEvent.touches[0].clientX,z.sourceEvent.clientY??z.sourceEvent.touches[0].clientY])},E=z=>{const H=n();if(z.sourceEvent.type!=="mousemove"&&z.sourceEvent.type!=="touchmove"||!t)return;const I=[z.sourceEvent.clientX??z.sourceEvent.touches[0].clientX,z.sourceEvent.clientY??z.sourceEvent.touches[0].clientY],O=[I[0]-A[0],I[1]-A[1]];A=I;const U=i()*Math.max(H[2],Math.log(H[2]))*(x?-1:1),Q={x:H[0]-O[0]*U,y:H[1]-O[1]*U},Z=[[0,0],[h,d]];t.setViewportConstrained({x:Q.x,y:Q.y,zoom:H[2]},Z,f)},N=C8().on("start",T).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 Fc=e=>({x:e.x,y:e.y,zoom:e.k}),Q1=({x:e,y:t,zoom:n})=>jc.translate(e,t).scale(n),Vl=(e,t)=>e.target.closest(`.${t}`),tv=(e,t)=>t===2&&Array.isArray(e)&&e.includes(2),RO=e=>((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2,K1=(e,t=0,n=RO,i=()=>{})=>{const l=typeof t=="number"&&t>0;return l||i(),l?e.transition().duration(t).ease(n).on("end",i):e},nv=e=>{const t=e.ctrlKey&&Ls()?10:1;return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*t};function BO({zoomPanValues:e,noWheelClassName:t,d3Selection:n,d3Zoom:i,panOnScrollMode:l,panOnScrollSpeed:s,zoomOnPinch:u,onPanZoomStart:f,onPanZoom:h,onPanZoomEnd:d}){return p=>{if(Vl(p,t))return p.ctrlKey&&p.preventDefault(),!1;p.preventDefault(),p.stopImmediatePropagation();const m=n.property("__zoom").k||1;if(p.ctrlKey&&u){const T=Sr(p),E=nv(p),N=m*Math.pow(2,E);i.scaleTo(n,N,T,p);return}const v=p.deltaMode===1?20:1;let x=l===Ya.Vertical?0:p.deltaX*v,w=l===Ya.Horizontal?0:p.deltaY*v;!Ls()&&p.shiftKey&&l!==Ya.Vertical&&(x=p.deltaY*v,w=0),i.translateBy(n,-(x/m)*s,-(w/m)*s,{internal:!0});const A=Fc(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 LO({noWheelClassName:e,preventScrolling:t,d3ZoomHandler:n}){return function(i,l){const s=i.type==="wheel",u=!t&&s&&!i.ctrlKey,f=Vl(i,e);if(i.ctrlKey&&s&&f&&i.preventDefault(),u||f)return null;i.preventDefault(),n.call(this,i,l)}}function HO({zoomPanValues:e,onDraggingChange:t,onPanZoomStart:n}){return i=>{if(i.sourceEvent?.internal)return;const l=Fc(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 qO({zoomPanValues:e,panOnDrag:t,onPaneContextMenu:n,onTransformChange:i,onPanZoom:l}){return s=>{e.usedRightMouseButton=!!(n&&tv(t,e.mouseButton??0)),s.sourceEvent?.sync||i([s.transform.x,s.transform.y,s.transform.k]),l&&!s.sourceEvent?.internal&&l?.(s.sourceEvent,Fc(s.transform))}}function jO({zoomPanValues:e,panOnDrag:t,panOnScroll:n,onDraggingChange:i,onPanZoomEnd:l,onPaneContextMenu:s}){return u=>{if(!u.sourceEvent?.internal&&(e.isZoomingOrPanning=!1,s&&tv(t,e.mouseButton??0)&&!e.usedRightMouseButton&&u.sourceEvent&&s(u.sourceEvent),e.usedRightMouseButton=!1,i(!1),l)){const f=Fc(u.transform);e.prevViewport=f,clearTimeout(e.timerId),e.timerId=setTimeout(()=>{l?.(u.sourceEvent,f)},n?150:0)}}}function IO({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"&&(Vl(m,`${d}-flow__node`)||Vl(m,`${d}-flow__edge`)))return!0;if(!i&&!v&&!l&&!s&&!n||u||p&&!w||Vl(m,f)&&w||Vl(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 UO({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=C8().scaleExtent([t,n]).translateExtent(i),v=Wn(e).call(m);N({x:l.x,y:l.y,zoom:no(l.zoom,t,n)},[[0,0],[p.width,p.height]],i);const x=v.on("wheel.zoom"),w=v.on("dblclick.zoom");m.wheelDelta(nv);function A(P,W){return v?new Promise(ce=>{m?.interpolate(W?.interpolate==="linear"?ws:Y0).transform(K1(v,W?.duration,W?.ease,()=>ce(!0)),P)}):Promise.resolve(!1)}function T({noWheelClassName:P,noPanClassName:W,onPaneContextMenu:ce,userSelectionActive:j,panOnScroll:F,panOnDrag:L,panOnScrollMode:Y,panOnScrollSpeed:J,preventScrolling:ne,zoomOnPinch:C,zoomOnScroll:q,zoomOnDoubleClick:$,zoomActivationKeyPressed:_,lib:ie,onTransformChange:ye,connectionInProgress:xe,paneClickDistance:be,selectionOnDrag:ge}){j&&!d.isZoomingOrPanning&&E();const Se=F&&!_&&!j;m.clickDistance(ge?1/0:!Er(be)||be<0?0:be);const qe=Se?BO({zoomPanValues:d,noWheelClassName:P,d3Selection:v,d3Zoom:m,panOnScrollMode:Y,panOnScrollSpeed:J,zoomOnPinch:C,onPanZoomStart:u,onPanZoom:s,onPanZoomEnd:f}):LO({noWheelClassName:P,preventScrolling:ne,d3ZoomHandler:x});if(v.on("wheel.zoom",qe,{passive:!1}),!j){const Re=HO({zoomPanValues:d,onDraggingChange:h,onPanZoomStart:u});m.on("start",Re);const Be=qO({zoomPanValues:d,panOnDrag:L,onPaneContextMenu:!!ce,onPanZoom:s,onTransformChange:ye});m.on("zoom",Be);const Ye=jO({zoomPanValues:d,panOnDrag:L,panOnScroll:F,onPaneContextMenu:ce,onPanZoomEnd:f,onDraggingChange:h});m.on("end",Ye)}const Ie=IO({zoomActivationKeyPressed:_,panOnDrag:L,zoomOnScroll:q,panOnScroll:F,zoomOnDoubleClick:$,zoomOnPinch:C,userSelectionActive:j,noPanClassName:W,noWheelClassName:P,lib:ie,connectionInProgress:xe});m.filter(Ie),$?v.on("dblclick.zoom",w):v.on("dblclick.zoom",null)}function E(){m.on("zoom",null)}async function N(P,W,ce){const j=Q1(P),F=m?.constrain()(j,W,ce);return F&&await A(F),new Promise(L=>L(F))}async function z(P,W){const ce=Q1(P);return await A(ce,W),new Promise(j=>j(ce))}function H(P){if(v){const W=Q1(P),ce=v.property("__zoom");(ce.k!==P.zoom||ce.x!==P.x||ce.y!==P.y)&&m?.transform(v,W,null,{sync:!0})}}function I(){const P=v?z8(v.node()):{x:0,y:0,k:1};return{x:P.x,y:P.y,zoom:P.k}}function O(P,W){return v?new Promise(ce=>{m?.interpolate(W?.interpolate==="linear"?ws:Y0).scaleTo(K1(v,W?.duration,W?.ease,()=>ce(!0)),P)}):Promise.resolve(!1)}function U(P,W){return v?new Promise(ce=>{m?.interpolate(W?.interpolate==="linear"?ws:Y0).scaleBy(K1(v,W?.duration,W?.ease,()=>ce(!0)),P)}):Promise.resolve(!1)}function Q(P){m?.scaleExtent(P)}function Z(P){m?.translateExtent(P)}function V(P){const W=!Er(P)||P<0?0:P;m?.clickDistance(W)}return{update:T,destroy:E,setViewport:z,setViewportConstrained:N,getViewport:I,scaleTo:O,scaleBy:U,setScaleExtent:Q,setTranslateExtent:Z,syncViewport:H,setClickDistance:V}}var ao;(function(e){e.Line="line",e.Handle="handle"})(ao||(ao={}));function FO({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 ia(e,t){return Math.max(0,t-e)}function aa(e,t){return Math.max(0,e-t)}function L0(e,t,n){return Math.max(0,t-e,e-n)}function u6(e,t){return e?!t:t}function VO(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:T,minHeight:E,maxHeight:N}=i,{x:z,y:H,width:I,height:O,aspectRatio:U}=e;let Q=Math.floor(p?x-e.pointerX:0),Z=Math.floor(m?w-e.pointerY:0);const V=I+(h?-Q:Q),P=O+(d?-Z:Z),W=-s[0]*I,ce=-s[1]*O;let j=L0(V,A,T),F=L0(P,E,N);if(u){let J=0,ne=0;h&&Q<0?J=ia(z+Q+W,u[0][0]):!h&&Q>0&&(J=aa(z+V+W,u[1][0])),d&&Z<0?ne=ia(H+Z+ce,u[0][1]):!d&&Z>0&&(ne=aa(H+P+ce,u[1][1])),j=Math.max(j,J),F=Math.max(F,ne)}if(f){let J=0,ne=0;h&&Q>0?J=aa(z+Q,f[0][0]):!h&&Q<0&&(J=ia(z+V,f[1][0])),d&&Z>0?ne=aa(H+Z,f[0][1]):!d&&Z<0&&(ne=ia(H+P,f[1][1])),j=Math.max(j,J),F=Math.max(F,ne)}if(l){if(p){const J=L0(V/U,E,N)*U;if(j=Math.max(j,J),u){let ne=0;!h&&!d||h&&!d&&v?ne=aa(H+ce+V/U,u[1][1])*U:ne=ia(H+ce+(h?Q:-Q)/U,u[0][1])*U,j=Math.max(j,ne)}if(f){let ne=0;!h&&!d||h&&!d&&v?ne=ia(H+V/U,f[1][1])*U:ne=aa(H+(h?Q:-Q)/U,f[0][1])*U,j=Math.max(j,ne)}}if(m){const J=L0(P*U,A,T)/U;if(F=Math.max(F,J),u){let ne=0;!h&&!d||d&&!h&&v?ne=aa(z+P*U+W,u[1][0])/U:ne=ia(z+(d?Z:-Z)*U+W,u[0][0])/U,F=Math.max(F,ne)}if(f){let ne=0;!h&&!d||d&&!h&&v?ne=ia(z+P*U,f[1][0])/U:ne=aa(z+(d?Z:-Z)*U,f[0][0])/U,F=Math.max(F,ne)}}}Z=Z+(Z<0?F:-F),Q=Q+(Q<0?j:-j),l&&(v?V>P*U?Z=(u6(h,d)?-Q:Q)/U:Q=(u6(h,d)?-Z:Z)*U:p?(Z=Q/U,d=h):(Q=Z*U,h=d));const L=h?z+Q:z,Y=d?H+Z:H;return{width:I+(h?-Q:Q),height:O+(d?-Z:Z),x:s[0]*Q*(h?-1:1)+L,y:s[1]*Z*(d?-1:1)+Y}}const rv={width:0,height:0,x:0,y:0},YO={...rv,pointerX:0,pointerY:0,aspectRatio:1};function GO(e){return[[0,0],[e.measured.width,e.measured.height]]}function $O(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 XO({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:T}){let E={...rv},N={...YO};u={boundaries:p,resizeDirection:v,keepAspectRatio:m,controlDirection:s6(d)};let z,H=null,I=[],O,U,Q,Z=!1;const V=d8().on("start",P=>{const{nodeLookup:W,transform:ce,snapGrid:j,snapToGrid:F,nodeOrigin:L,paneDomNode:Y}=n();if(z=W.get(t),!z)return;H=Y?.getBoundingClientRect()??null;const{xSnapped:J,ySnapped:ne}=Ss(P.sourceEvent,{transform:ce,snapGrid:j,snapToGrid:F,containerBounds:H});E={width:z.measured.width??0,height:z.measured.height??0,x:z.position.x??0,y:z.position.y??0},N={...E,pointerX:J,pointerY:ne,aspectRatio:E.width/E.height},O=void 0,z.parentId&&(z.extent==="parent"||z.expandParent)&&(O=W.get(z.parentId),U=O&&z.extent==="parent"?GO(O):void 0),I=[],Q=void 0;for(const[C,q]of W)if(q.parentId===t&&(I.push({id:C,position:{...q.position},extent:q.extent}),q.extent==="parent"||q.expandParent)){const $=$O(q,z,q.origin??L);Q?Q=[[Math.min($[0][0],Q[0][0]),Math.min($[0][1],Q[0][1])],[Math.max($[1][0],Q[1][0]),Math.max($[1][1],Q[1][1])]]:Q=$}x?.(P,{...E})}).on("drag",P=>{const{transform:W,snapGrid:ce,snapToGrid:j,nodeOrigin:F}=n(),L=Ss(P.sourceEvent,{transform:W,snapGrid:ce,snapToGrid:j,containerBounds:H}),Y=[];if(!z)return;const{x:J,y:ne,width:C,height:q}=E,$={},_=z.origin??F,{width:ie,height:ye,x:xe,y:be}=VO(N,u.controlDirection,L,u.boundaries,u.keepAspectRatio,_,U,Q),ge=ie!==C,Se=ye!==q,qe=xe!==J&&ge,Ie=be!==ne&&Se;if(!qe&&!Ie&&!ge&&!Se)return;if((qe||Ie||_[0]===1||_[1]===1)&&($.x=qe?xe:E.x,$.y=Ie?be:E.y,E.x=$.x,E.y=$.y,I.length>0)){const it=xe-J,Je=be-ne;for(const At of I)At.position={x:At.position.x-it+_[0]*(ie-C),y:At.position.y-Je+_[1]*(ye-q)},Y.push(At)}if((ge||Se)&&($.width=ge&&(!u.resizeDirection||u.resizeDirection==="horizontal")?ie:E.width,$.height=Se&&(!u.resizeDirection||u.resizeDirection==="vertical")?ye:E.height,E.width=$.width,E.height=$.height),O&&z.expandParent){const it=_[0]*($.width??0);$.x&&$.x<it&&(E.x=it,N.x=N.x-($.x-it));const Je=_[1]*($.height??0);$.y&&$.y<Je&&(E.y=Je,N.y=N.y-($.y-Je))}const Re=FO({width:E.width,prevWidth:C,height:E.height,prevHeight:q,affectsX:u.controlDirection.affectsX,affectsY:u.controlDirection.affectsY}),Be={...E,direction:Re};T?.(P,Be)!==!1&&(Z=!0,w?.(P,Be),i($,Y))}).on("end",P=>{Z&&(A?.(P,{...E}),l?.({...E}),Z=!1)});s.call(V)}function h(){s.on(".drag",null)}return{update:f,destroy:h}}var J1={exports:{}},W1={},ed={exports:{}},td={};var c6;function PO(){if(c6)return td;c6=1;var e=qs();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,T=w[1];return s(function(){A.value=x,A.getSnapshot=v,h(A)&&T({inst:A})},[m,x,v]),l(function(){return h(A)&&T({inst:A}),m(function(){h(A)&&T({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 td.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:p,td}var f6;function ZO(){return f6||(f6=1,ed.exports=PO()),ed.exports}var h6;function QO(){if(h6)return W1;h6=1;var e=qs(),t=ZO();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 W1.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(O){if(!N){if(N=!0,z=O,O=v(O),x!==void 0&&A.hasValue){var U=A.value;if(x(U,O))return H=U}return H=O}if(U=H,i(z,O))return U;var Q=v(O);return x!==void 0&&x(U,Q)?(z=O,U):(z=O,H=Q)}var N=!1,z,H,I=m===void 0?null:m;return[function(){return E(p())},I===null?void 0:function(){return E(I())}]},[p,m,v,x]);var T=l(d,w[0],w[1]);return u(function(){A.hasValue=!0,A.value=T},[T]),h(T),T},W1}var d6;function KO(){return d6||(d6=1,J1.exports=QO()),J1.exports}var JO=KO();const WO=gc(JO),eR={},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:()=>{(eR?"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},tR=e=>e?m6(e):m6,{useDebugValue:nR}=Wx,{useSyncExternalStoreWithSelector:rR}=WO,iR=e=>e;function iv(e,t=iR,n){const i=rR(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return nR(i),i}const p6=(e,t)=>{const n=tR(e),i=(l,s=t)=>iv(n,l,s);return Object.assign(i,n),i},aR=(e,t)=>e?p6(e,t):p6;function Dt(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 Vc=le.createContext(null),lR=Vc.Provider,av=Fr.error001();function st(e,t){const n=le.useContext(Vc);if(n===null)throw new Error(av);return iv(n,e,t)}function Ot(){const e=le.useContext(Vc);if(e===null)throw new Error(av);return le.useMemo(()=>({getState:e.getState,setState:e.setState,subscribe:e.subscribe}),[e])}const g6={display:"none"},oR={position:"absolute",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"},lv="react-flow__node-desc",ov="react-flow__edge-desc",sR="react-flow__aria-live",uR=e=>e.ariaLiveMessage,cR=e=>e.ariaLabelConfig;function fR({rfId:e}){const t=st(uR);return D.jsx("div",{id:`${sR}-${e}`,"aria-live":"assertive","aria-atomic":"true",style:oR,children:t})}function hR({rfId:e,disableKeyboardA11y:t}){const n=st(cR);return D.jsxs(D.Fragment,{children:[D.jsx("div",{id:`${lv}-${e}`,style:g6,children:t?n["node.a11yDescription.default"]:n["node.a11yDescription.keyboardDisabled"]}),D.jsx("div",{id:`${ov}-${e}`,style:g6,children:n["edge.a11yDescription.default"]}),!t&&D.jsx(fR,{rfId:e})]})}const Yc=le.forwardRef(({position:e="top-left",children:t,className:n,style:i,...l},s)=>{const u=`${e}`.split("-");return D.jsx("div",{className:en(["react-flow__panel",n,...u]),style:i,ref:s,...l,children:t})});Yc.displayName="Panel";function dR({proOptions:e,position:t="bottom-right"}){return e?.hideAttribution?null:D.jsx(Yc,{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:D.jsx("a",{href:"https://reactflow.dev",target:"_blank",rel:"noopener noreferrer","aria-label":"React Flow attribution",children:"React Flow"})})}const mR=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}},H0=e=>e.id;function pR(e,t){return Dt(e.selectedNodes.map(H0),t.selectedNodes.map(H0))&&Dt(e.selectedEdges.map(H0),t.selectedEdges.map(H0))}function gR({onSelectionChange:e}){const t=Ot(),{selectedNodes:n,selectedEdges:i}=st(mR,pR);return le.useEffect(()=>{const l={nodes:n,edges:i};e?.(l),t.getState().onSelectionChangeHandlers.forEach(s=>s(l))},[n,i,e]),null}const yR=e=>!!e.onSelectionChangeHandlers;function vR({onSelectionChange:e}){const t=st(yR);return e||t?D.jsx(gR,{onSelectionChange:e}):null}const Pd=typeof window<"u"?le.useLayoutEffect:le.useEffect,sv=[0,0],xR={x:0,y:0,zoom:1},bR=["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=[...bR,"rfId"],wR=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:_s,nodeOrigin:sv,minZoom:.5,maxZoom:2,elementsSelectable:!0,noPanClassName:"nopan",rfId:"1"};function SR(e){const{setNodes:t,setEdges:n,setMinZoom:i,setMaxZoom:l,setTranslateExtent:s,setNodeExtent:u,reset:f,setDefaultNodesAndEdges:h}=st(wR,Dt),d=Ot();Pd(()=>(h(e.defaultNodes,e.defaultEdges),()=>{p.current=v6,f()}),[]);const p=le.useRef(v6);return Pd(()=>{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:aO(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 kR(e){const[t,n]=le.useState(e==="system"?null:e);return le.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 Hs(e=null,t={target:b6,actInsideInputWithModifier:!0}){const[n,i]=le.useState(!1),l=le.useRef(!1),s=le.useRef(new Set([])),[u,f]=le.useMemo(()=>{if(e!==null){const d=(Array.isArray(e)?e:[e]).filter(m=>typeof m=="string").map(m=>m.replace("+",`
|
|
300
|
-
`).replace(`
|
|
301
|
-
|
|
302
|
-
`,`
|
|
303
|
-
+`).split(`
|
|
304
|
-
`)),p=d.reduce((m,v)=>m.concat(...v),[]);return[d,p]}return[[],[]]},[e]);return le.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)&&U8(x))return!1;const A=S6(x.code,f);if(s.current.add(x[A]),w6(u,s.current,!1)){const T=x.composedPath?.()?.[0]||x.target,E=T?.nodeName==="BUTTON"||T?.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 ER=()=>{const e=Ot();return le.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=Um(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 Qs(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=dc(t,n);return{x:u.x+l,y:u.y+s}}}),[])};function uv(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)AR(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 AR(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 TR(e,t){return uv(e,t)}function zR(e,t){return uv(e,t)}function Ia(e,t){return{id:e,type:"select",selected:t}}function Yl(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(Ia(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=>Z_(e),CR=e=>O8(e);function cv(e){return le.forwardRef(e)}function T6(e){const[t,n]=le.useState(BigInt(0)),[i]=le.useState(()=>MR(()=>n(l=>l+BigInt(1))));return Pd(()=>{const l=i.get();l.length&&(e(l),i.reset())},[t]),i}function MR(e){let t=[];return{get:()=>t,reset:()=>{t=[]},push:n=>{t.push(n),e()}}}const fv=le.createContext(null);function NR({children:e}){const t=Ot(),n=le.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 T=k6({items:A,lookup:v});for(const E of w.values())T=E(T);p&&d(A),T.length>0?m?.(T):x&&window.requestAnimationFrame(()=>{const{fitViewQueued:E,nodes:N,setNodes:z}=t.getState();E&&z(N)})},[]),i=T6(n),l=le.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=T6(l),u=le.useMemo(()=>({nodeQueue:i,edgeQueue:s}),[]);return D.jsx(fv.Provider,{value:u,children:e})}function DR(){const e=le.useContext(fv);if(!e)throw new Error("useBatchContext must be used within a BatchProvider");return e}const _R=e=>!!e.panZoom;function Gc(){const e=ER(),t=Ot(),n=DR(),i=st(_R),l=le.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?j8(w.position,w.measured,w.parentId,v,x):w.position,T={...w,position:A,width:w.measured?.width??w.width,height:w.measured?.height??w.height};return ro(T)},d=(m,v,x={replace:!1})=>{u(w=>w.map(A=>{if(A.id===m){const T=typeof v=="function"?v(A):v;return x.replace&&A6(T)?T:{...A,...T}}return A}))},p=(m,v,x={replace:!1})=>{f(w=>w.map(A=>{if(A.id===m){const T=typeof v=="function"?v(A):v;return x.replace&&CR(T)?T:{...A,...T}}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,T]=x;return{nodes:m.map(E=>({...E})),edges:v.map(E=>({...E})),viewport:{x:w,y:A,zoom:T}}},deleteElements:async({nodes:m=[],edges:v=[]})=>{const{nodes:x,edges:w,onNodesDelete:A,onEdgesDelete:T,triggerNodeChanges:E,triggerEdgeChanges:N,onDelete:z,onBeforeDelete:H}=t.getState(),{nodes:I,edges:O}=await eO({nodesToRemove:m,edgesToRemove:v,nodes:x,edges:w,onBeforeDelete:H}),U=O.length>0,Q=I.length>0;if(U){const Z=O.map(E6);T?.(O),N(Z)}if(Q){const Z=I.map(E6);A?.(I),E(Z)}return(Q||U)&&z?.({nodes:I,edges:O}),{deletedNodes:I,deletedEdges:O}},getIntersectingNodes:(m,v=!0,x)=>{const w=K5(m),A=w?m:h(m),T=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 z=ro(T?E:N),H=Bs(z,A);return v&&H>0||H>=z.width*z.height||H>=A.width*A.height}):[]},isNodeIntersecting:(m,v,x=!0)=>{const A=K5(m)?m:h(m);if(!A)return!1;const T=Bs(A,v);return x&&T>0||T>=v.width*v.height||T>=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 Q_(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??iO();return t.setState({fitViewQueued:!0,fitViewOptions:m,fitViewResolver:v}),n.nodeQueue.push(x=>[...x]),v.promise}}},[]);return le.useMemo(()=>({...l,...e,viewportInitialized:i}),[i])}const z6=e=>e.selected,OR=typeof window<"u"?window:void 0;function RR({deleteKeyCode:e,multiSelectionKeyCode:t}){const n=Ot(),{deleteElements:i}=Gc(),l=Hs(e,{actInsideInputWithModifier:!1}),s=Hs(t,{target:OR});le.useEffect(()=>{if(l){const{edges:u,nodes:f}=n.getState();i({nodes:f.filter(z6),edges:u.filter(z6)}),n.setState({nodesSelectionActive:!1})}},[l]),le.useEffect(()=>{n.setState({multiSelectionActive:s})},[s])}function BR(e){const t=Ot();le.useEffect(()=>{const n=()=>{if(!e.current||!(e.current.checkVisibility?.()??!0))return!1;const i=Fm(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 $c={position:"absolute",width:"100%",height:"100%",top:0,left:0},LR=e=>({userSelectionActive:e.userSelectionActive,lib:e.lib,connectionInProgress:e.connection.inProgress});function HR({onPaneContextMenu:e,zoomOnScroll:t=!0,zoomOnPinch:n=!0,panOnScroll:i=!1,panOnScrollSpeed:l=.5,panOnScrollMode:s=Ya.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:T,onViewportChange:E,isControlledViewport:N,paneClickDistance:z,selectionOnDrag:H}){const I=Ot(),O=le.useRef(null),{userSelectionActive:U,lib:Q,connectionInProgress:Z}=st(LR,Dt),V=Hs(v),P=le.useRef();BR(O);const W=le.useCallback(ce=>{E?.({x:ce[0],y:ce[1],zoom:ce[2]}),N||I.setState({transform:ce})},[E,N]);return le.useEffect(()=>{if(O.current){P.current=UO({domNode:O.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:J,onMoveStart:ne}=I.getState();ne?.(L,Y),J?.(Y)},onPanZoom:(L,Y)=>{const{onViewportChange:J,onMove:ne}=I.getState();ne?.(L,Y),J?.(Y)},onPanZoomEnd:(L,Y)=>{const{onViewportChangeEnd:J,onMoveEnd:ne}=I.getState();ne?.(L,Y),J?.(Y)}});const{x:ce,y:j,zoom:F}=P.current.getViewport();return I.setState({panZoom:P.current,transform:[ce,j,F],domNode:O.current.closest(".react-flow")}),()=>{P.current?.destroy()}}},[]),le.useEffect(()=>{P.current?.update({onPaneContextMenu:e,zoomOnScroll:t,zoomOnPinch:n,panOnScroll:i,panOnScrollSpeed:l,panOnScrollMode:s,zoomOnDoubleClick:u,panOnDrag:f,zoomActivationKeyPressed:V,preventScrolling:x,noPanClassName:T,userSelectionActive:U,noWheelClassName:A,lib:Q,onTransformChange:W,connectionInProgress:Z,selectionOnDrag:H,paneClickDistance:z})},[e,t,n,i,l,s,u,f,V,x,T,U,A,Q,W,Z,H,z]),D.jsx("div",{className:"react-flow__renderer",ref:O,style:$c,children:w})}const qR=e=>({userSelectionActive:e.userSelectionActive,userSelectionRect:e.userSelectionRect});function jR(){const{userSelectionActive:e,userSelectionRect:t}=st(qR,Dt);return e&&t?D.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 nd=(e,t)=>n=>{n.target===t.current&&e?.(n)},IR=e=>({userSelectionActive:e.userSelectionActive,elementsSelectable:e.elementsSelectable,connectionInProgress:e.connection.inProgress,dragging:e.paneDragging});function UR({isSelecting:e,selectionKeyPressed:t,selectionMode:n=Os.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=Ot(),{userSelectionActive:T,elementsSelectable:E,dragging:N,connectionInProgress:z}=st(IR,Dt),H=E&&(e||T),I=le.useRef(null),O=le.useRef(),U=le.useRef(new Set),Q=le.useRef(new Set),Z=le.useRef(!1),V=J=>{if(Z.current||z){Z.current=!1;return}h?.(J),A.getState().resetSelectedElements(),A.setState({nodesSelectionActive:!1})},P=J=>{if(Array.isArray(i)&&i?.includes(2)){J.preventDefault();return}d?.(J)},W=p?J=>p(J):void 0,ce=J=>{Z.current&&(J.stopPropagation(),Z.current=!1)},j=J=>{const{domNode:ne}=A.getState();if(O.current=ne?.getBoundingClientRect(),!O.current)return;const C=J.target===I.current;if(!C&&!!J.target.closest(".nokey")||!e||!(s&&C||t)||J.button!==0||!J.isPrimary)return;J.target?.setPointerCapture?.(J.pointerId),Z.current=!1;const{x:_,y:ie}=Ar(J.nativeEvent,O.current);A.setState({userSelectionRect:{width:0,height:0,startX:_,startY:ie,x:_,y:ie}}),C||(J.stopPropagation(),J.preventDefault())},F=J=>{const{userSelectionRect:ne,transform:C,nodeLookup:q,edgeLookup:$,connectionLookup:_,triggerNodeChanges:ie,triggerEdgeChanges:ye,defaultEdgeOptions:xe,resetSelectedElements:be}=A.getState();if(!O.current||!ne)return;const{x:ge,y:Se}=Ar(J.nativeEvent,O.current),{startX:qe,startY:Ie}=ne;if(!Z.current){const Je=t?0:l;if(Math.hypot(ge-qe,Se-Ie)<=Je)return;be(),u?.(J)}Z.current=!0;const Re={startX:qe,startY:Ie,x:ge<qe?ge:qe,y:Se<Ie?Se:Ie,width:Math.abs(ge-qe),height:Math.abs(Se-Ie)},Be=U.current,Ye=Q.current;U.current=new Set(Im(q,Re,C,n===Os.Partial,!0).map(Je=>Je.id)),Q.current=new Set;const it=xe?.selectable??!0;for(const Je of U.current){const At=_.get(Je);if(At)for(const{edgeId:tn}of At.values()){const Ut=$.get(tn);Ut&&(Ut.selectable??it)&&Q.current.add(tn)}}if(!J5(Be,U.current)){const Je=Yl(q,U.current,!0);ie(Je)}if(!J5(Ye,Q.current)){const Je=Yl($,Q.current);ye(Je)}A.setState({userSelectionRect:Re,userSelectionActive:!0,nodesSelectionActive:!1})},L=J=>{J.button===0&&(J.target?.releasePointerCapture?.(J.pointerId),!T&&J.target===I.current&&A.getState().userSelectionRect&&V?.(J),A.setState({userSelectionActive:!1,userSelectionRect:null}),Z.current&&(f?.(J),A.setState({nodesSelectionActive:U.current.size>0})))},Y=i===!0||Array.isArray(i)&&i.includes(0);return D.jsxs("div",{className:en(["react-flow__pane",{draggable:Y,dragging:N,selection:e}]),onClick:H?void 0:nd(V,I),onContextMenu:nd(P,I),onWheel:nd(W,I),onPointerEnter:H?void 0:m,onPointerMove:H?F:v,onPointerUp:H?L:void 0,onPointerDownCapture:H?j:void 0,onClickCapture:H?ce:void 0,onPointerLeave:x,ref:I,style:$c,children:[w,D.jsx(jR,{})]})}function Zd({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 hv({nodeRef:e,disabled:t=!1,noDragClassName:n,handleSelector:i,nodeId:l,isSelectable:s,nodeClickDistance:u}){const f=Ot(),[h,d]=le.useState(!1),p=le.useRef();return le.useEffect(()=>{p.current=zO({getStoreItems:()=>f.getState(),onNodeMouseDown:m=>{Zd({id:m,store:f,nodeRef:e})},onDragStart:()=>{d(!0)},onDragStop:()=>{d(!1)}})},[]),le.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 FR=e=>t=>t.selected&&(t.draggable||e&&typeof t.draggable>"u");function dv(){const e=Ot();return le.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=FR(u),x=l?s[0]:5,w=l?s[1]:5,A=n.direction.x*x*n.factor,T=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+T};l&&(N=Zs(N,s));const{position:z,positionAbsolute:H}=R8({nodeId:E.id,nextPosition:N,nodeLookup:d,nodeExtent:i,nodeOrigin:p,onError:f});E.position=z,E.internals.positionAbsolute=H,m.set(E.id,E)}h(m)},[])}const Pm=le.createContext(null),VR=Pm.Provider;Pm.Consumer;const mv=()=>le.useContext(Pm),YR=e=>({connectOnClick:e.connectOnClick,noPanClassName:e.noPanClassName,rfId:e.rfId}),GR=(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===to.Strict?f?.type!==n:e!==f?.nodeId||t!==f?.id,connectionInProcess:!!f,clickConnectionInProcess:!!l,valid:p&&d}};function $R({type:e="source",position:t=Oe.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",T=Ot(),E=mv(),{connectOnClick:N,noPanClassName:z,rfId:H}=st(YR,Dt),{connectingFrom:I,connectingTo:O,clickConnecting:U,isPossibleEndHandle:Q,connectionInProcess:Z,clickConnectionInProcess:V,valid:P}=st(GR(E,w,e),Dt);E||T.getState().onError?.("010",Fr.error010());const W=F=>{const{defaultEdgeOptions:L,onConnect:Y,hasDefaultEdges:J}=T.getState(),ne={...L,...F};if(J){const{edges:C,setEdges:q}=T.getState();q(fO(ne,C))}Y?.(ne),f?.(ne)},ce=F=>{if(!E)return;const L=F8(F.nativeEvent);if(l&&(L&&F.button===0||!L)){const Y=T.getState();Xd.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:(...J)=>T.getState().onConnectEnd?.(...J),updateConnection:Y.updateConnection,onConnect:W,isValidConnection:n||((...J)=>T.getState().isValidConnection?.(...J)??!0),getTransform:()=>T.getState().transform,getFromHandle:()=>T.getState().connection.fromHandle,autoPanSpeed:Y.autoPanSpeed,dragThreshold:Y.connectionDragThreshold})}L?p?.(F):m?.(F)},j=F=>{const{onClickConnectStart:L,onClickConnectEnd:Y,connectionClickStartHandle:J,connectionMode:ne,isValidConnection:C,lib:q,rfId:$,nodeLookup:_,connection:ie}=T.getState();if(!E||!J&&!l)return;if(!J){L?.(F.nativeEvent,{nodeId:E,handleId:w,handleType:e}),T.setState({connectionClickStartHandle:{nodeId:E,type:e,id:w}});return}const ye=I8(F.target),xe=n||C,{connection:be,isValid:ge}=Xd.isValid(F.nativeEvent,{handle:{nodeId:E,id:w,type:e},connectionMode:ne,fromNodeId:J.nodeId,fromHandleId:J.id||null,fromType:J.type,isValidConnection:xe,flowId:$,doc:ye,lib:q,nodeLookup:_});ge&&be&&W(be);const Se=structuredClone(ie);delete Se.inProgress,Se.toPosition=Se.toHandle?Se.toHandle.position:null,Y?.(F,Se),T.setState({connectionClickStartHandle:null})};return D.jsx("div",{"data-handleid":w,"data-nodeid":E,"data-handlepos":t,"data-id":`${H}-${E}-${w}-${e}`,className:en(["react-flow__handle",`react-flow__handle-${t}`,"nodrag",z,d,{source:!A,target:A,connectable:i,connectablestart:l,connectableend:s,clickconnecting:U,connectingfrom:I,connectingto:O,valid:P,connectionindicator:i&&(!Z||Q)&&(Z||V?s:l)}]),onMouseDown:ce,onTouchStart:ce,onClick:N?j:void 0,ref:x,...v,children:h})}const sa=le.memo(cv($R));function XR({data:e,isConnectable:t,sourcePosition:n=Oe.Bottom}){return D.jsxs(D.Fragment,{children:[e?.label,D.jsx(sa,{type:"source",position:n,isConnectable:t})]})}function PR({data:e,isConnectable:t,targetPosition:n=Oe.Top,sourcePosition:i=Oe.Bottom}){return D.jsxs(D.Fragment,{children:[D.jsx(sa,{type:"target",position:n,isConnectable:t}),e?.label,D.jsx(sa,{type:"source",position:i,isConnectable:t})]})}function ZR(){return null}function QR({data:e,isConnectable:t,targetPosition:n=Oe.Top}){return D.jsxs(D.Fragment,{children:[D.jsx(sa,{type:"target",position:n,isConnectable:t}),e?.label]})}const mc={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}},C6={input:XR,default:PR,output:QR,group:ZR};function KR(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 JR=e=>{const{width:t,height:n,x:i,y:l}=Ps(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 WR({onSelectionContextMenu:e,noPanClassName:t,disableKeyboardA11y:n}){const i=Ot(),{width:l,height:s,transformString:u,userSelectionActive:f}=st(JR,Dt),h=dv(),d=le.useRef(null);le.useEffect(()=>{n||d.current?.focus({preventScroll:!0})},[n]);const p=!f&&l!==null&&s!==null;if(hv({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(mc,x.key)&&(x.preventDefault(),h({direction:mc[x.key],factor:x.shiftKey?4:1}))};return D.jsx("div",{className:en(["react-flow__nodesselection","react-flow__container",t]),style:{transform:u},children:D.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 M6=typeof window<"u"?window:void 0,eB=e=>({nodesSelectionActive:e.nodesSelectionActive,userSelectionActive:e.userSelectionActive});function pv({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:T,elementsSelectable:E,zoomOnScroll:N,zoomOnPinch:z,panOnScroll:H,panOnScrollSpeed:I,panOnScrollMode:O,zoomOnDoubleClick:U,panOnDrag:Q,defaultViewport:Z,translateExtent:V,minZoom:P,maxZoom:W,preventScrolling:ce,onSelectionContextMenu:j,noWheelClassName:F,noPanClassName:L,disableKeyboardA11y:Y,onViewportChange:J,isControlledViewport:ne}){const{nodesSelectionActive:C,userSelectionActive:q}=st(eB,Dt),$=Hs(d,{target:M6}),_=Hs(A,{target:M6}),ie=_||Q,ye=_||H,xe=p&&ie!==!0,be=$||q||xe;return RR({deleteKeyCode:h,multiSelectionKeyCode:w}),D.jsx(HR,{onPaneContextMenu:s,elementsSelectable:E,zoomOnScroll:N,zoomOnPinch:z,panOnScroll:ye,panOnScrollSpeed:I,panOnScrollMode:O,zoomOnDoubleClick:U,panOnDrag:!$&&ie,defaultViewport:Z,translateExtent:V,minZoom:P,maxZoom:W,zoomActivationKeyCode:T,preventScrolling:ce,noWheelClassName:F,noPanClassName:L,onViewportChange:J,isControlledViewport:ne,paneClickDistance:f,selectionOnDrag:xe,children:D.jsxs(UR,{onSelectionStart:v,onSelectionEnd:x,onPaneClick:t,onPaneMouseEnter:n,onPaneMouseMove:i,onPaneMouseLeave:l,onPaneContextMenu:s,onPaneScroll:u,panOnDrag:ie,isSelecting:!!be,selectionMode:m,selectionKeyPressed:$,paneClickDistance:f,selectionOnDrag:xe,children:[e,C&&D.jsx(WR,{onSelectionContextMenu:j,noPanClassName:L,disableKeyboardA11y:Y})]})})}pv.displayName="FlowRenderer";const tB=le.memo(pv),nB=e=>t=>e?Im(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 rB(e){return st(le.useCallback(nB(e),[e]),Dt)}const iB=e=>e.updateNodeInternals;function aB(){const e=st(iB),[t]=le.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 le.useEffect(()=>()=>{t?.disconnect()},[t]),t}function lB({node:e,nodeType:t,hasDimensions:n,resizeObserver:i}){const l=Ot(),s=le.useRef(null),u=le.useRef(null),f=le.useRef(e.sourcePosition),h=le.useRef(e.targetPosition),d=le.useRef(t),p=n&&!!e.internals.handleBounds;return le.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]),le.useEffect(()=>()=>{u.current&&(i?.unobserve(u.current),u.current=null)},[]),le.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 oB({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:T,nodeClickDistance:E,onError:N}){const{node:z,internals:H,isParent:I}=st(ge=>{const Se=ge.nodeLookup.get(e),qe=ge.parentLookup.has(e);return{node:Se,internals:Se.internals,isParent:qe}},Dt);let O=z.type||"default",U=T?.[O]||C6[O];U===void 0&&(N?.("003",Fr.error003(O)),O="default",U=T?.default||C6.default);const Q=!!(z.draggable||f&&typeof z.draggable>"u"),Z=!!(z.selectable||h&&typeof z.selectable>"u"),V=!!(z.connectable||d&&typeof z.connectable>"u"),P=!!(z.focusable||p&&typeof z.focusable>"u"),W=Ot(),ce=q8(z),j=lB({node:z,nodeType:O,hasDimensions:ce,resizeObserver:m}),F=hv({nodeRef:j,disabled:z.hidden||!Q,noDragClassName:v,handleSelector:z.dragHandle,nodeId:e,isSelectable:Z,nodeClickDistance:E}),L=dv();if(z.hidden)return null;const Y=Ti(z),J=KR(z),ne=Z||Q||t||n||i||l,C=n?ge=>n(ge,{...H.userNode}):void 0,q=i?ge=>i(ge,{...H.userNode}):void 0,$=l?ge=>l(ge,{...H.userNode}):void 0,_=s?ge=>s(ge,{...H.userNode}):void 0,ie=u?ge=>u(ge,{...H.userNode}):void 0,ye=ge=>{const{selectNodesOnDrag:Se,nodeDragThreshold:qe}=W.getState();Z&&(!Se||!Q||qe>0)&&Zd({id:e,store:W,nodeRef:j}),t&&t(ge,{...H.userNode})},xe=ge=>{if(!(U8(ge.nativeEvent)||w)){if(M8.includes(ge.key)&&Z){const Se=ge.key==="Escape";Zd({id:e,store:W,unselect:Se,nodeRef:j})}else if(Q&&z.selected&&Object.prototype.hasOwnProperty.call(mc,ge.key)){ge.preventDefault();const{ariaLabelConfig:Se}=W.getState();W.setState({ariaLiveMessage:Se["node.a11yDescription.ariaLiveMessage"]({direction:ge.key.replace("Arrow","").toLowerCase(),x:~~H.positionAbsolute.x,y:~~H.positionAbsolute.y})}),L({direction:mc[ge.key],factor:ge.shiftKey?4:1})}}},be=()=>{if(w||!j.current?.matches(":focus-visible"))return;const{transform:ge,width:Se,height:qe,autoPanOnNodeFocus:Ie,setCenter:Re}=W.getState();if(!Ie)return;Im(new Map([[e,z]]),{x:0,y:0,width:Se,height:qe},ge,!0).length>0||Re(z.position.x+Y.width/2,z.position.y+Y.height/2,{zoom:ge[2]})};return D.jsx("div",{className:en(["react-flow__node",`react-flow__node-${O}`,{[x]:Q},z.className,{selected:z.selected,selectable:Z,parent:I,draggable:Q,dragging:F}]),ref:j,style:{zIndex:H.z,transform:`translate(${H.positionAbsolute.x}px,${H.positionAbsolute.y}px)`,pointerEvents:ne?"all":"none",visibility:ce?"visible":"hidden",...z.style,...J},"data-id":e,"data-testid":`rf__node-${e}`,onMouseEnter:C,onMouseMove:q,onMouseLeave:$,onContextMenu:_,onClick:ye,onDoubleClick:ie,onKeyDown:P?xe:void 0,tabIndex:P?0:void 0,onFocus:P?be:void 0,role:z.ariaRole??(P?"group":void 0),"aria-roledescription":"node","aria-describedby":w?void 0:`${lv}-${A}`,"aria-label":z.ariaLabel,...z.domAttributes,children:D.jsx(VR,{value:e,children:D.jsx(U,{id:e,data:z.data,type:O,positionAbsoluteX:H.positionAbsolute.x,positionAbsoluteY:H.positionAbsolute.y,selected:z.selected??!1,selectable:Z,draggable:Q,deletable:z.deletable??!0,isConnectable:V,sourcePosition:z.sourcePosition,targetPosition:z.targetPosition,dragging:F,dragHandle:z.dragHandle,zIndex:H.z,parentId:z.parentId,...Y})})})}var sB=le.memo(oB);const uB=e=>({nodesDraggable:e.nodesDraggable,nodesConnectable:e.nodesConnectable,nodesFocusable:e.nodesFocusable,elementsSelectable:e.elementsSelectable,onError:e.onError});function gv(e){const{nodesDraggable:t,nodesConnectable:n,nodesFocusable:i,elementsSelectable:l,onError:s}=st(uB,Dt),u=rB(e.onlyRenderVisibleElements),f=aB();return D.jsx("div",{className:"react-flow__nodes",style:$c,children:u.map(h=>D.jsx(sB,{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))})}gv.displayName="NodeRenderer";const cB=le.memo(gv);function fB(e){return st(le.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&&sO({sourceNode:s,targetNode:u,width:n.width,height:n.height,transform:n.transform})&&i.push(l.id)}return i},[e]),Dt)}const hB=({color:e="none",strokeWidth:t=1})=>{const n={strokeWidth:t,...e&&{stroke:e}};return D.jsx("polyline",{className:"arrow",style:n,strokeLinecap:"round",fill:"none",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4"})},dB=({color:e="none",strokeWidth:t=1})=>{const n={strokeWidth:t,...e&&{stroke:e,fill:e}};return D.jsx("polyline",{className:"arrowclosed",style:n,strokeLinecap:"round",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4 -5,-4"})},N6={[Rs.Arrow]:hB,[Rs.ArrowClosed]:dB};function mB(e){const t=Ot();return le.useMemo(()=>Object.prototype.hasOwnProperty.call(N6,e)?N6[e]:(t.getState().onError?.("009",Fr.error009(e)),null),[e])}const pB=({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=mB(t);return h?D.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:D.jsx(h,{color:n,strokeWidth:u})}):null},yv=({defaultColor:e,rfId:t})=>{const n=st(s=>s.edges),i=st(s=>s.defaultEdgeOptions),l=le.useMemo(()=>gO(n,{id:t,defaultColor:e,defaultMarkerStart:i?.markerStart,defaultMarkerEnd:i?.markerEnd}),[n,i,t,e]);return l.length?D.jsx("svg",{className:"react-flow__marker","aria-hidden":"true",children:D.jsx("defs",{children:l.map(s=>D.jsx(pB,{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};yv.displayName="MarkerDefinitions";var gB=le.memo(yv);function vv({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]=le.useState({x:1,y:0,width:0,height:0}),x=en(["react-flow__edge-textwrapper",d]),w=le.useRef(null);return le.useEffect(()=>{if(w.current){const A=w.current.getBBox();v({x:A.x,y:A.y,width:A.width,height:A.height})}},[n]),n?D.jsxs("g",{transform:`translate(${e-m.width/2} ${t-m.height/2})`,className:x,visibility:m.width?"visible":"hidden",...p,children:[l&&D.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}),D.jsx("text",{className:"react-flow__edge-text",y:m.height/2,dy:"0.3em",ref:w,style:i,children:n}),h]}):null}vv.displayName="EdgeText";const yB=le.memo(vv);function Xc({path:e,labelX:t,labelY:n,label:i,labelStyle:l,labelShowBg:s,labelBgStyle:u,labelBgPadding:f,labelBgBorderRadius:h,interactionWidth:d=20,...p}){return D.jsxs(D.Fragment,{children:[D.jsx("path",{...p,d:e,fill:"none",className:en(["react-flow__edge-path",p.className])}),d?D.jsx("path",{d:e,fill:"none",strokeOpacity:0,strokeWidth:d,className:"react-flow__edge-interaction"}):null,i&&Er(t)&&Er(n)?D.jsx(yB,{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===Oe.Left||e===Oe.Right?[.5*(t+i),n]:[t,.5*(n+l)]}function xv({sourceX:e,sourceY:t,sourcePosition:n=Oe.Bottom,targetX:i,targetY:l,targetPosition:s=Oe.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]=V8({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 bv(e){return le.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:T,interactionWidth:E})=>{const[N,z,H]=xv({sourceX:n,sourceY:i,sourcePosition:u,targetX:l,targetY:s,targetPosition:f}),I=e.isInternal?void 0:t;return D.jsx(Xc,{id:I,path:N,labelX:z,labelY:H,label:h,labelStyle:d,labelShowBg:p,labelBgStyle:m,labelBgPadding:v,labelBgBorderRadius:x,style:w,markerEnd:A,markerStart:T,interactionWidth:E})})}const vB=bv({isInternal:!1}),wv=bv({isInternal:!0});vB.displayName="SimpleBezierEdge";wv.displayName="SimpleBezierEdgeInternal";function Sv(e){return le.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=Oe.Bottom,targetPosition:w=Oe.Top,markerEnd:A,markerStart:T,pathOptions:E,interactionWidth:N})=>{const[z,H,I]=Yd({sourceX:n,sourceY:i,sourcePosition:x,targetX:l,targetY:s,targetPosition:w,borderRadius:E?.borderRadius,offset:E?.offset,stepPosition:E?.stepPosition}),O=e.isInternal?void 0:t;return D.jsx(Xc,{id:O,path:z,labelX:H,labelY:I,label:u,labelStyle:f,labelShowBg:h,labelBgStyle:d,labelBgPadding:p,labelBgBorderRadius:m,style:v,markerEnd:A,markerStart:T,interactionWidth:N})})}const kv=Sv({isInternal:!1}),Ev=Sv({isInternal:!0});kv.displayName="SmoothStepEdge";Ev.displayName="SmoothStepEdgeInternal";function Av(e){return le.memo(({id:t,...n})=>{const i=e.isInternal?void 0:t;return D.jsx(kv,{...n,id:i,pathOptions:le.useMemo(()=>({borderRadius:0,offset:n.pathOptions?.offset}),[n.pathOptions?.offset])})})}const xB=Av({isInternal:!1}),Tv=Av({isInternal:!0});xB.displayName="StepEdge";Tv.displayName="StepEdgeInternal";function zv(e){return le.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[T,E,N]=$8({sourceX:n,sourceY:i,targetX:l,targetY:s}),z=e.isInternal?void 0:t;return D.jsx(Xc,{id:z,path:T,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 bB=zv({isInternal:!1}),Cv=zv({isInternal:!0});bB.displayName="StraightEdge";Cv.displayName="StraightEdgeInternal";function Mv(e){return le.memo(({id:t,sourceX:n,sourceY:i,targetX:l,targetY:s,sourcePosition:u=Oe.Bottom,targetPosition:f=Oe.Top,label:h,labelStyle:d,labelShowBg:p,labelBgStyle:m,labelBgPadding:v,labelBgBorderRadius:x,style:w,markerEnd:A,markerStart:T,pathOptions:E,interactionWidth:N})=>{const[z,H,I]=Y8({sourceX:n,sourceY:i,sourcePosition:u,targetX:l,targetY:s,targetPosition:f,curvature:E?.curvature}),O=e.isInternal?void 0:t;return D.jsx(Xc,{id:O,path:z,labelX:H,labelY:I,label:h,labelStyle:d,labelShowBg:p,labelBgStyle:m,labelBgPadding:v,labelBgBorderRadius:x,style:w,markerEnd:A,markerStart:T,interactionWidth:N})})}const wB=Mv({isInternal:!1}),Nv=Mv({isInternal:!0});wB.displayName="BezierEdge";Nv.displayName="BezierEdgeInternal";const _6={default:Nv,straight:Cv,step:Tv,smoothstep:Ev,simplebezier:wv},O6={sourceX:null,sourceY:null,targetX:null,targetY:null,sourcePosition:null,targetPosition:null},SB=(e,t,n)=>n===Oe.Left?e-t:n===Oe.Right?e+t:e,kB=(e,t,n)=>n===Oe.Top?e-t:n===Oe.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 D.jsx("circle",{onMouseDown:l,onMouseEnter:s,onMouseOut:u,className:en([R6,`${R6}-${f}`]),cx:SB(t,i,e),cy:kB(n,i,e),r:i,stroke:"transparent",fill:"transparent"})}function EB({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=Ot(),A=(H,I)=>{if(H.button!==0)return;const{autoPanOnConnect:O,domNode:U,connectionMode:Q,connectionRadius:Z,lib:V,onConnectStart:P,cancelConnection:W,nodeLookup:ce,rfId:j,panBy:F,updateConnection:L}=w.getState(),Y=I.type==="target",J=(q,$)=>{v(!1),m?.(q,n,I.type,$)},ne=q=>d?.(n,q),C=(q,$)=>{v(!0),p?.(H,n,I.type),P?.(q,$)};Xd.onPointerDown(H.nativeEvent,{autoPanOnConnect:O,connectionMode:Q,connectionRadius:Z,domNode:U,handleId:I.id,nodeId:I.nodeId,nodeLookup:ce,isTarget:Y,edgeUpdaterType:I.type,lib:V,flowId:j,cancelConnection:W,panBy:F,isValidConnection:(...q)=>w.getState().isValidConnection?.(...q)??!0,onConnect:ne,onConnectStart:C,onConnectEnd:(...q)=>w.getState().onConnectEnd?.(...q),onReconnectEnd:J,updateConnection:L,getTransform:()=>w.getState().transform,getFromHandle:()=>w.getState().connection.fromHandle,dragThreshold:w.getState().connectionDragThreshold,handleDomNode:H.currentTarget})},T=H=>A(H,{nodeId:n.target,id:n.targetHandle??null,type:"target"}),E=H=>A(H,{nodeId:n.source,id:n.sourceHandle??null,type:"source"}),N=()=>x(!0),z=()=>x(!1);return D.jsxs(D.Fragment,{children:[(e===!0||e==="source")&&D.jsx(B6,{position:f,centerX:i,centerY:l,radius:t,onMouseDown:T,onMouseEnter:N,onMouseOut:z,type:"source"}),(e===!0||e==="target")&&D.jsx(B6,{position:h,centerX:s,centerY:u,radius:t,onMouseDown:E,onMouseEnter:N,onMouseOut:z,type:"target"})]})}function AB({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:T,onError:E,disableKeyboardA11y:N}){let z=st(Re=>Re.edgeLookup.get(e));const H=st(Re=>Re.defaultEdgeOptions);z=H?{...H,...z}:z;let I=z.type||"default",O=A?.[I]||_6[I];O===void 0&&(E?.("011",Fr.error011(I)),I="default",O=A?.default||_6.default);const U=!!(z.focusable||t&&typeof z.focusable>"u"),Q=typeof m<"u"&&(z.reconnectable||n&&typeof z.reconnectable>"u"),Z=!!(z.selectable||i&&typeof z.selectable>"u"),V=le.useRef(null),[P,W]=le.useState(!1),[ce,j]=le.useState(!1),F=Ot(),{zIndex:L,sourceX:Y,sourceY:J,targetX:ne,targetY:C,sourcePosition:q,targetPosition:$}=st(le.useCallback(Re=>{const Be=Re.nodeLookup.get(z.source),Ye=Re.nodeLookup.get(z.target);if(!Be||!Ye)return{zIndex:z.zIndex,...O6};const it=pO({id:e,sourceNode:Be,targetNode:Ye,sourceHandle:z.sourceHandle||null,targetHandle:z.targetHandle||null,connectionMode:Re.connectionMode,onError:E});return{zIndex:oO({selected:z.selected,zIndex:z.zIndex,sourceNode:Be,targetNode:Ye,elevateOnSelect:Re.elevateEdgesOnSelect,zIndexMode:Re.zIndexMode}),...it||O6}},[z.source,z.target,z.sourceHandle,z.targetHandle,z.selected,z.zIndex]),Dt),_=le.useMemo(()=>z.markerStart?`url('#${Gd(z.markerStart,w)}')`:void 0,[z.markerStart,w]),ie=le.useMemo(()=>z.markerEnd?`url('#${Gd(z.markerEnd,w)}')`:void 0,[z.markerEnd,w]);if(z.hidden||Y===null||J===null||ne===null||C===null)return null;const ye=Re=>{const{addSelectedEdges:Be,unselectNodesAndEdges:Ye,multiSelectionActive:it}=F.getState();Z&&(F.setState({nodesSelectionActive:!1}),z.selected&&it?(Ye({nodes:[],edges:[z]}),V.current?.blur()):Be([e])),l&&l(Re,z)},xe=s?Re=>{s(Re,{...z})}:void 0,be=u?Re=>{u(Re,{...z})}:void 0,ge=f?Re=>{f(Re,{...z})}:void 0,Se=h?Re=>{h(Re,{...z})}:void 0,qe=d?Re=>{d(Re,{...z})}:void 0,Ie=Re=>{if(!N&&M8.includes(Re.key)&&Z){const{unselectNodesAndEdges:Be,addSelectedEdges:Ye}=F.getState();Re.key==="Escape"?(V.current?.blur(),Be({edges:[z]})):Ye([e])}};return D.jsx("svg",{style:{zIndex:L},children:D.jsxs("g",{className:en(["react-flow__edge",`react-flow__edge-${I}`,z.className,T,{selected:z.selected,animated:z.animated,inactive:!Z&&!l,updating:P,selectable:Z}]),onClick:ye,onDoubleClick:xe,onContextMenu:be,onMouseEnter:ge,onMouseMove:Se,onMouseLeave:qe,onKeyDown:U?Ie:void 0,tabIndex:U?0:void 0,role:z.ariaRole??(U?"group":"img"),"aria-roledescription":"edge","data-id":e,"data-testid":`rf__edge-${e}`,"aria-label":z.ariaLabel===null?void 0:z.ariaLabel||`Edge from ${z.source} to ${z.target}`,"aria-describedby":U?`${ov}-${w}`:void 0,ref:V,...z.domAttributes,children:[!ce&&D.jsx(O,{id:e,source:z.source,target:z.target,type:z.type,selected:z.selected,animated:z.animated,selectable:Z,deletable:z.deletable??!0,label:z.label,labelStyle:z.labelStyle,labelShowBg:z.labelShowBg,labelBgStyle:z.labelBgStyle,labelBgPadding:z.labelBgPadding,labelBgBorderRadius:z.labelBgBorderRadius,sourceX:Y,sourceY:J,targetX:ne,targetY:C,sourcePosition:q,targetPosition:$,data:z.data,style:z.style,sourceHandleId:z.sourceHandle,targetHandleId:z.targetHandle,markerStart:_,markerEnd:ie,pathOptions:"pathOptions"in z?z.pathOptions:void 0,interactionWidth:z.interactionWidth}),Q&&D.jsx(EB,{edge:z,isReconnectable:Q,reconnectRadius:p,onReconnect:m,onReconnectStart:v,onReconnectEnd:x,sourceX:Y,sourceY:J,targetX:ne,targetY:C,sourcePosition:q,targetPosition:$,setUpdateHover:W,setReconnecting:j})]})})}var TB=le.memo(AB);const zB=e=>({edgesFocusable:e.edgesFocusable,edgesReconnectable:e.edgesReconnectable,elementsSelectable:e.elementsSelectable,connectionMode:e.connectionMode,onError:e.onError});function Dv({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:T,edgesReconnectable:E,elementsSelectable:N,onError:z}=st(zB,Dt),H=fB(t);return D.jsxs("div",{className:"react-flow__edges",children:[D.jsx(gB,{defaultColor:e,rfId:n}),H.map(I=>D.jsx(TB,{id:I,edgesFocusable:T,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:z,edgeTypes:i,disableKeyboardA11y:A},I))]})}Dv.displayName="EdgeRenderer";const CB=le.memo(Dv),MB=e=>`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]})`;function NB({children:e}){const t=st(MB);return D.jsx("div",{className:"react-flow__viewport xyflow__viewport react-flow__container",style:{transform:t},children:e})}function DB(e){const t=Gc(),n=le.useRef(!1);le.useEffect(()=>{!n.current&&t.viewportInitialized&&e&&(setTimeout(()=>e(t),1),n.current=!0)},[e,t.viewportInitialized])}const _B=e=>e.panZoom?.syncViewport;function OB(e){const t=st(_B),n=Ot();return le.useEffect(()=>{e&&(t?.(e),n.setState({transform:[e.x,e.y,e.zoom]}))},[e,t]),null}function RB(e){return e.connection.inProgress?{...e.connection,to:Qs(e.connection.to,e.transform)}:{...e.connection}}function BB(e){return RB}function LB(e){const t=BB();return st(t,Dt)}const HB=e=>({nodesConnectable:e.nodesConnectable,isValid:e.connection.isValid,inProgress:e.connection.inProgress,width:e.width,height:e.height});function qB({containerStyle:e,style:t,type:n,component:i}){const{nodesConnectable:l,width:s,height:u,isValid:f,inProgress:h}=st(HB,Dt);return!(s&&l&&h)?null:D.jsx("svg",{style:e,width:s,height:u,className:"react-flow__connectionline react-flow__container",children:D.jsx("g",{className:en(["react-flow__connection",_8(f)]),children:D.jsx(_v,{style:t,type:n,CustomComponent:i,isValid:f})})})}const _v=({style:e,type:t=la.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}=LB();if(!l)return;if(n)return D.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:_8(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 la.Bezier:[w]=Y8(A);break;case la.SimpleBezier:[w]=xv(A);break;case la.Step:[w]=Yd({...A,borderRadius:0});break;case la.SmoothStep:[w]=Yd(A);break;default:[w]=$8(A)}return D.jsx("path",{d:w,fill:"none",className:"react-flow__connection-path",style:e})};_v.displayName="ConnectionLine";const jB={};function L6(e=jB){le.useRef(e),Ot(),le.useEffect(()=>{},[e])}function IB(){Ot(),le.useRef(!1),le.useEffect(()=>{},[])}function Ov({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:T,connectionLineContainerStyle:E,selectionKeyCode:N,selectionOnDrag:z,selectionMode:H,multiSelectionKeyCode:I,panActivationKeyCode:O,zoomActivationKeyCode:U,deleteKeyCode:Q,onlyRenderVisibleElements:Z,elementsSelectable:V,defaultViewport:P,translateExtent:W,minZoom:ce,maxZoom:j,preventScrolling:F,defaultMarkerColor:L,zoomOnScroll:Y,zoomOnPinch:J,panOnScroll:ne,panOnScrollSpeed:C,panOnScrollMode:q,zoomOnDoubleClick:$,panOnDrag:_,onPaneClick:ie,onPaneMouseEnter:ye,onPaneMouseMove:xe,onPaneMouseLeave:be,onPaneScroll:ge,onPaneContextMenu:Se,paneClickDistance:qe,nodeClickDistance:Ie,onEdgeContextMenu:Re,onEdgeMouseEnter:Be,onEdgeMouseMove:Ye,onEdgeMouseLeave:it,reconnectRadius:Je,onReconnect:At,onReconnectStart:tn,onReconnectEnd:Ut,noDragClassName:Ft,noWheelClassName:pn,noPanClassName:Sn,disableKeyboardA11y:gn,nodeExtent:kt,rfId:Vn,viewport:fe,onViewportChange:ke}){return L6(e),L6(t),IB(),DB(n),OB(fe),D.jsx(tB,{onPaneClick:ie,onPaneMouseEnter:ye,onPaneMouseMove:xe,onPaneMouseLeave:be,onPaneContextMenu:Se,onPaneScroll:ge,paneClickDistance:qe,deleteKeyCode:Q,selectionKeyCode:N,selectionOnDrag:z,selectionMode:H,onSelectionStart:v,onSelectionEnd:x,multiSelectionKeyCode:I,panActivationKeyCode:O,zoomActivationKeyCode:U,elementsSelectable:V,zoomOnScroll:Y,zoomOnPinch:J,zoomOnDoubleClick:$,panOnScroll:ne,panOnScrollSpeed:C,panOnScrollMode:q,panOnDrag:_,defaultViewport:P,translateExtent:W,minZoom:ce,maxZoom:j,onSelectionContextMenu:m,preventScrolling:F,noDragClassName:Ft,noWheelClassName:pn,noPanClassName:Sn,disableKeyboardA11y:gn,onViewportChange:ke,isControlledViewport:!!fe,children:D.jsxs(NB,{children:[D.jsx(CB,{edgeTypes:t,onEdgeClick:l,onEdgeDoubleClick:u,onReconnect:At,onReconnectStart:tn,onReconnectEnd:Ut,onlyRenderVisibleElements:Z,onEdgeContextMenu:Re,onEdgeMouseEnter:Be,onEdgeMouseMove:Ye,onEdgeMouseLeave:it,reconnectRadius:Je,defaultMarkerColor:L,noPanClassName:Sn,disableKeyboardA11y:gn,rfId:Vn}),D.jsx(qB,{style:A,type:w,component:T,containerStyle:E}),D.jsx("div",{className:"react-flow__edgelabel-renderer"}),D.jsx(cB,{nodeTypes:e,onNodeClick:i,onNodeDoubleClick:s,onNodeMouseEnter:f,onNodeMouseMove:h,onNodeMouseLeave:d,onNodeContextMenu:p,nodeClickDistance:Ie,onlyRenderVisibleElements:Z,noPanClassName:Sn,noDragClassName:Ft,disableKeyboardA11y:gn,nodeExtent:kt,rfId:Vn}),D.jsx("div",{className:"react-flow__viewport-portal"})]})})}Ov.displayName="GraphView";const UB=le.memo(Ov),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,T=new Map,E=i??t??[],N=n??e??[],z=p??[0,0],H=m??_s;Z8(A,T,E);const{nodesInitialized:I}=$d(N,x,w,{nodeOrigin:z,nodeExtent:H,zIndexMode:v});let O=[0,0,1];if(u&&l&&s){const U=Ps(x,{filter:P=>!!((P.width||P.initialWidth)&&(P.height||P.initialHeight))}),{x:Q,y:Z,zoom:V}=Um(U,l,s,h,d,f?.padding??.1);O=[Q,Z,V]}return{rfId:"1",width:l??0,height:s??0,transform:O,nodes:N,nodesInitialized:I,nodeLookup:x,parentLookup:w,edges:E,edgeLookup:T,connectionLookup:A,onNodesChange:null,onEdgesChange:null,hasDefaultNodes:n!==void 0,hasDefaultEdges:i!==void 0,panZoom:null,minZoom:h,maxZoom:d,translateExtent:_s,nodeExtent:H,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionMode:to.Strict,domNode:null,paneDragging:!1,noPanClassName:"nopan",nodeOrigin:z,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:{...D8},connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:"",autoPanOnConnect:!0,autoPanOnNodeDrag:!0,autoPanOnNodeFocus:!0,autoPanSpeed:15,connectionRadius:20,onError:tO,isValidConnection:void 0,onSelectionChangeHandlers:[],lib:"react",debug:!1,ariaLabelConfig:N8,zIndexMode:v,onNodesChangeMiddlewareMap:new Map,onEdgesChangeMiddlewareMap:new Map}},FB=({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})=>aR((x,w)=>{async function A(){const{nodeLookup:T,panZoom:E,fitViewOptions:N,fitViewResolver:z,width:H,height:I,minZoom:O,maxZoom:U}=w();E&&(await W_({nodes:T,width:H,height:I,panZoom:E,minZoom:O,maxZoom:U},N),z?.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:T=>{const{nodeLookup:E,parentLookup:N,nodeOrigin:z,elevateNodesOnSelect:H,fitViewQueued:I,zIndexMode:O,nodesSelectionActive:U}=w(),{nodesInitialized:Q,hasSelectedNodes:Z}=$d(T,E,N,{nodeOrigin:z,nodeExtent:m,elevateNodesOnSelect:H,checkEquality:!0,zIndexMode:O}),V=U&&Z;I&&Q?(A(),x({nodes:T,nodesInitialized:Q,fitViewQueued:!1,fitViewOptions:void 0,nodesSelectionActive:V})):x({nodes:T,nodesInitialized:Q,nodesSelectionActive:V})},setEdges:T=>{const{connectionLookup:E,edgeLookup:N}=w();Z8(E,N,T),x({edges:T})},setDefaultNodesAndEdges:(T,E)=>{if(T){const{setNodes:N}=w();N(T),x({hasDefaultNodes:!0})}if(E){const{setEdges:N}=w();N(E),x({hasDefaultEdges:!0})}},updateNodeInternals:T=>{const{triggerNodeChanges:E,nodeLookup:N,parentLookup:z,domNode:H,nodeOrigin:I,nodeExtent:O,debug:U,fitViewQueued:Q,zIndexMode:Z}=w(),{changes:V,updatedInternals:P}=kO(T,N,z,H,I,O,Z);P&&(xO(N,z,{nodeOrigin:I,nodeExtent:O,zIndexMode:Z}),Q?(A(),x({fitViewQueued:!1,fitViewOptions:void 0})):x({}),V?.length>0&&(U&&console.log("React Flow: trigger node changes",V),E?.(V)))},updateNodePositions:(T,E=!1)=>{const N=[];let z=[];const{nodeLookup:H,triggerNodeChanges:I,connection:O,updateConnection:U,onNodesChangeMiddlewareMap:Q}=w();for(const[Z,V]of T){const P=H.get(Z),W=!!(P?.expandParent&&P?.parentId&&V?.position),ce={id:Z,type:"position",position:W?{x:Math.max(0,V.position.x),y:Math.max(0,V.position.y)}:V.position,dragging:E};if(P&&O.inProgress&&O.fromNode.id===P.id){const j=Za(P,O.fromHandle,Oe.Left,!0);U({...O,from:j})}W&&P.parentId&&N.push({id:Z,parentId:P.parentId,rect:{...V.internals.positionAbsolute,width:V.measured.width??0,height:V.measured.height??0}}),z.push(ce)}if(N.length>0){const{parentLookup:Z,nodeOrigin:V}=w(),P=Xm(N,H,Z,V);z.push(...P)}for(const Z of Q.values())z=Z(z);I(z)},triggerNodeChanges:T=>{const{onNodesChange:E,setNodes:N,nodes:z,hasDefaultNodes:H,debug:I}=w();if(T?.length){if(H){const O=TR(T,z);N(O)}I&&console.log("React Flow: trigger node changes",T),E?.(T)}},triggerEdgeChanges:T=>{const{onEdgesChange:E,setEdges:N,edges:z,hasDefaultEdges:H,debug:I}=w();if(T?.length){if(H){const O=zR(T,z);N(O)}I&&console.log("React Flow: trigger edge changes",T),E?.(T)}},addSelectedNodes:T=>{const{multiSelectionActive:E,edgeLookup:N,nodeLookup:z,triggerNodeChanges:H,triggerEdgeChanges:I}=w();if(E){const O=T.map(U=>Ia(U,!0));H(O);return}H(Yl(z,new Set([...T]),!0)),I(Yl(N))},addSelectedEdges:T=>{const{multiSelectionActive:E,edgeLookup:N,nodeLookup:z,triggerNodeChanges:H,triggerEdgeChanges:I}=w();if(E){const O=T.map(U=>Ia(U,!0));I(O);return}I(Yl(N,new Set([...T]))),H(Yl(z,new Set,!0))},unselectNodesAndEdges:({nodes:T,edges:E}={})=>{const{edges:N,nodes:z,nodeLookup:H,triggerNodeChanges:I,triggerEdgeChanges:O}=w(),U=T||z,Q=E||N,Z=[];for(const P of U){if(!P.selected)continue;const W=H.get(P.id);W&&(W.selected=!1),Z.push(Ia(P.id,!1))}const V=[];for(const P of Q)P.selected&&V.push(Ia(P.id,!1));I(Z),O(V)},setMinZoom:T=>{const{panZoom:E,maxZoom:N}=w();E?.setScaleExtent([T,N]),x({minZoom:T})},setMaxZoom:T=>{const{panZoom:E,minZoom:N}=w();E?.setScaleExtent([N,T]),x({maxZoom:T})},setTranslateExtent:T=>{w().panZoom?.setTranslateExtent(T),x({translateExtent:T})},resetSelectedElements:()=>{const{edges:T,nodes:E,triggerNodeChanges:N,triggerEdgeChanges:z,elementsSelectable:H}=w();if(!H)return;const I=E.reduce((U,Q)=>Q.selected?[...U,Ia(Q.id,!1)]:U,[]),O=T.reduce((U,Q)=>Q.selected?[...U,Ia(Q.id,!1)]:U,[]);N(I),z(O)},setNodeExtent:T=>{const{nodes:E,nodeLookup:N,parentLookup:z,nodeOrigin:H,elevateNodesOnSelect:I,nodeExtent:O,zIndexMode:U}=w();T[0][0]===O[0][0]&&T[0][1]===O[0][1]&&T[1][0]===O[1][0]&&T[1][1]===O[1][1]||($d(E,N,z,{nodeOrigin:H,nodeExtent:T,elevateNodesOnSelect:I,checkEquality:!1,zIndexMode:U}),x({nodeExtent:T}))},panBy:T=>{const{transform:E,width:N,height:z,panZoom:H,translateExtent:I}=w();return EO({delta:T,panZoom:H,transform:E,translateExtent:I,width:N,height:z})},setCenter:async(T,E,N)=>{const{width:z,height:H,maxZoom:I,panZoom:O}=w();if(!O)return Promise.resolve(!1);const U=typeof N?.zoom<"u"?N.zoom:I;return await O.setViewport({x:z/2-T*U,y:H/2-E*U,zoom:U},{duration:N?.duration,ease:N?.ease,interpolate:N?.interpolate}),Promise.resolve(!0)},cancelConnection:()=>{x({connection:{...D8}})},updateConnection:T=>{x({connection:T})},reset:()=>x({...H6()})}},Object.is);function Rv({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]=le.useState(()=>FB({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 D.jsx(lR,{value:w,children:D.jsx(NR,{children:x})})}function VB({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 le.useContext(Vc)?D.jsx(D.Fragment,{children:e}):D.jsx(Rv,{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 YB={width:"100%",height:"100%",overflow:"hidden",position:"relative",zIndex:0};function GB({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:T,onClickConnectEnd:E,onNodeMouseEnter:N,onNodeMouseMove:z,onNodeMouseLeave:H,onNodeContextMenu:I,onNodeDoubleClick:O,onNodeDragStart:U,onNodeDrag:Q,onNodeDragStop:Z,onNodesDelete:V,onEdgesDelete:P,onDelete:W,onSelectionChange:ce,onSelectionDragStart:j,onSelectionDrag:F,onSelectionDragStop:L,onSelectionContextMenu:Y,onSelectionStart:J,onSelectionEnd:ne,onBeforeDelete:C,connectionMode:q,connectionLineType:$=la.Bezier,connectionLineStyle:_,connectionLineComponent:ie,connectionLineContainerStyle:ye,deleteKeyCode:xe="Backspace",selectionKeyCode:be="Shift",selectionOnDrag:ge=!1,selectionMode:Se=Os.Full,panActivationKeyCode:qe="Space",multiSelectionKeyCode:Ie=Ls()?"Meta":"Control",zoomActivationKeyCode:Re=Ls()?"Meta":"Control",snapToGrid:Be,snapGrid:Ye,onlyRenderVisibleElements:it=!1,selectNodesOnDrag:Je,nodesDraggable:At,autoPanOnNodeFocus:tn,nodesConnectable:Ut,nodesFocusable:Ft,nodeOrigin:pn=sv,edgesFocusable:Sn,edgesReconnectable:gn,elementsSelectable:kt=!0,defaultViewport:Vn=xR,minZoom:fe=.5,maxZoom:ke=2,translateExtent:He=_s,preventScrolling:Ge=!0,nodeExtent:et,defaultMarkerColor:un="#b1b1b7",zoomOnScroll:Nn=!0,zoomOnPinch:Ct=!0,panOnScroll:Rt=!1,panOnScrollSpeed:he=.5,panOnScrollMode:_e=Ya.Free,zoomOnDoubleClick:Bt=!0,panOnDrag:gt=!0,onPaneClick:Wa,onPaneMouseEnter:Pr,onPaneMouseMove:nn,onPaneMouseLeave:Cr,onPaneScroll:yr,onPaneContextMenu:Mr,paneClickDistance:Nr=1,nodeClickDistance:ho=0,children:Yn,onReconnect:ya,onReconnectStart:Dr,onReconnectEnd:el,onEdgeContextMenu:rn,onEdgeDoubleClick:tl,onEdgeMouseEnter:Js,onEdgeMouseMove:mo,onEdgeMouseLeave:po,reconnectRadius:Ws=10,onNodesChange:eu,onEdgesChange:_r,noDragClassName:an="nodrag",noWheelClassName:yn="nowheel",noPanClassName:Zr="nopan",fitView:nl,fitViewOptions:tu,connectOnClick:Zc,attributionPosition:nu,proOptions:va,defaultEdgeOptions:go,elevateNodesOnSelect:zi=!0,elevateEdgesOnSelect:Ci=!1,disableKeyboardA11y:Mi=!1,autoPanOnConnect:Ni,autoPanOnNodeDrag:Gt,autoPanSpeed:ru,connectionRadius:iu,isValidConnection:Qr,onError:Di,style:Qc,id:yo,nodeDragThreshold:au,connectionDragThreshold:Kc,viewport:rl,onViewportChange:il,width:vr,height:Dn,colorMode:lu="light",debug:Jc,onScroll:al,ariaLabelConfig:ou,zIndexMode:xa="basic",...Wc},_n){const ba=yo||"1",su=kR(lu),vo=le.useCallback(Kr=>{Kr.currentTarget.scrollTo({top:0,left:0,behavior:"instant"}),al?.(Kr)},[al]);return D.jsx("div",{"data-testid":"rf__wrapper",...Wc,onScroll:vo,style:{...Qc,...YB},ref:_n,className:en(["react-flow",l,su]),id:yo,role:"application",children:D.jsxs(VB,{nodes:e,edges:t,width:vr,height:Dn,fitView:nl,fitViewOptions:tu,minZoom:fe,maxZoom:ke,nodeOrigin:pn,nodeExtent:et,zIndexMode:xa,children:[D.jsx(SR,{nodes:e,edges:t,defaultNodes:n,defaultEdges:i,onConnect:x,onConnectStart:w,onConnectEnd:A,onClickConnectStart:T,onClickConnectEnd:E,nodesDraggable:At,autoPanOnNodeFocus:tn,nodesConnectable:Ut,nodesFocusable:Ft,edgesFocusable:Sn,edgesReconnectable:gn,elementsSelectable:kt,elevateNodesOnSelect:zi,elevateEdgesOnSelect:Ci,minZoom:fe,maxZoom:ke,nodeExtent:et,onNodesChange:eu,onEdgesChange:_r,snapToGrid:Be,snapGrid:Ye,connectionMode:q,translateExtent:He,connectOnClick:Zc,defaultEdgeOptions:go,fitView:nl,fitViewOptions:tu,onNodesDelete:V,onEdgesDelete:P,onDelete:W,onNodeDragStart:U,onNodeDrag:Q,onNodeDragStop:Z,onSelectionDrag:F,onSelectionDragStart:j,onSelectionDragStop:L,onMove:p,onMoveStart:m,onMoveEnd:v,noPanClassName:Zr,nodeOrigin:pn,rfId:ba,autoPanOnConnect:Ni,autoPanOnNodeDrag:Gt,autoPanSpeed:ru,onError:Di,connectionRadius:iu,isValidConnection:Qr,selectNodesOnDrag:Je,nodeDragThreshold:au,connectionDragThreshold:Kc,onBeforeDelete:C,debug:Jc,ariaLabelConfig:ou,zIndexMode:xa}),D.jsx(UB,{onInit:d,onNodeClick:f,onEdgeClick:h,onNodeMouseEnter:N,onNodeMouseMove:z,onNodeMouseLeave:H,onNodeContextMenu:I,onNodeDoubleClick:O,nodeTypes:s,edgeTypes:u,connectionLineType:$,connectionLineStyle:_,connectionLineComponent:ie,connectionLineContainerStyle:ye,selectionKeyCode:be,selectionOnDrag:ge,selectionMode:Se,deleteKeyCode:xe,multiSelectionKeyCode:Ie,panActivationKeyCode:qe,zoomActivationKeyCode:Re,onlyRenderVisibleElements:it,defaultViewport:Vn,translateExtent:He,minZoom:fe,maxZoom:ke,preventScrolling:Ge,zoomOnScroll:Nn,zoomOnPinch:Ct,zoomOnDoubleClick:Bt,panOnScroll:Rt,panOnScrollSpeed:he,panOnScrollMode:_e,panOnDrag:gt,onPaneClick:Wa,onPaneMouseEnter:Pr,onPaneMouseMove:nn,onPaneMouseLeave:Cr,onPaneScroll:yr,onPaneContextMenu:Mr,paneClickDistance:Nr,nodeClickDistance:ho,onSelectionContextMenu:Y,onSelectionStart:J,onSelectionEnd:ne,onReconnect:ya,onReconnectStart:Dr,onReconnectEnd:el,onEdgeContextMenu:rn,onEdgeDoubleClick:tl,onEdgeMouseEnter:Js,onEdgeMouseMove:mo,onEdgeMouseLeave:po,reconnectRadius:Ws,defaultMarkerColor:un,noDragClassName:an,noWheelClassName:yn,noPanClassName:Zr,rfId:ba,disableKeyboardA11y:Mi,nodeExtent:et,viewport:rl,onViewportChange:il}),D.jsx(vR,{onSelectionChange:ce}),Yn,D.jsx(dR,{proOptions:va,position:nu}),D.jsx(hR,{rfId:ba,disableKeyboardA11y:Mi})]})})}var $B=cv(GB);function XB({dimensions:e,lineWidth:t,variant:n,className:i}){return D.jsx("path",{strokeWidth:t,d:`M${e[0]/2} 0 V${e[1]} M0 ${e[1]/2} H${e[0]}`,className:en(["react-flow__background-pattern",n,i])})}function PB({radius:e,className:t}){return D.jsx("circle",{cx:e,cy:e,r:e,className:en(["react-flow__background-pattern","dots",t])})}var ua;(function(e){e.Lines="lines",e.Dots="dots",e.Cross="cross"})(ua||(ua={}));const ZB={[ua.Dots]:1,[ua.Lines]:1,[ua.Cross]:6},QB=e=>({transform:e.transform,patternId:`pattern-${e.rfId}`});function Bv({id:e,variant:t=ua.Dots,gap:n=20,size:i,lineWidth:l=1,offset:s=0,color:u,bgColor:f,style:h,className:d,patternClassName:p}){const m=le.useRef(null),{transform:v,patternId:x}=st(QB,Dt),w=i||ZB[t],A=t===ua.Dots,T=t===ua.Cross,E=Array.isArray(n)?n:[n,n],N=[E[0]*v[2]||1,E[1]*v[2]||1],z=w*v[2],H=Array.isArray(s)?s:[s,s],I=T?[z,z]:N,O=[H[0]*v[2]||1+I[0]/2,H[1]*v[2]||1+I[1]/2],U=`${x}${e||""}`;return D.jsxs("svg",{className:en(["react-flow__background",d]),style:{...h,...$c,"--xy-background-color-props":f,"--xy-background-pattern-color-props":u},ref:m,"data-testid":"rf__background",children:[D.jsx("pattern",{id:U,x:v[0]%N[0],y:v[1]%N[1],width:N[0],height:N[1],patternUnits:"userSpaceOnUse",patternTransform:`translate(-${O[0]},-${O[1]})`,children:A?D.jsx(PB,{radius:z/2,className:p}):D.jsx(XB,{dimensions:I,lineWidth:l,variant:t,className:p})}),D.jsx("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${U})`})]})}Bv.displayName="Background";const KB=le.memo(Bv);function JB(){return D.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",children:D.jsx("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"})})}function WB(){return D.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5",children:D.jsx("path",{d:"M0 0h32v4.2H0z"})})}function eL(){return D.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30",children:D.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 tL(){return D.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:D.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 nL(){return D.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:D.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 q0({children:e,className:t,...n}){return D.jsx("button",{type:"button",className:en(["react-flow__controls-button",t]),...n,children:e})}const rL=e=>({isInteractive:e.nodesDraggable||e.nodesConnectable||e.elementsSelectable,minZoomReached:e.transform[2]<=e.minZoom,maxZoomReached:e.transform[2]>=e.maxZoom,ariaLabelConfig:e.ariaLabelConfig});function Lv({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=Ot(),{isInteractive:A,minZoomReached:T,maxZoomReached:E,ariaLabelConfig:N}=st(rL,Dt),{zoomIn:z,zoomOut:H,fitView:I}=Gc(),O=()=>{z(),s?.()},U=()=>{H(),u?.()},Q=()=>{I(l),f?.()},Z=()=>{w.setState({nodesDraggable:!A,nodesConnectable:!A,elementsSelectable:!A}),h?.(!A)},V=v==="horizontal"?"horizontal":"vertical";return D.jsxs(Yc,{className:en(["react-flow__controls",V,d]),position:m,style:e,"data-testid":"rf__controls","aria-label":x??N["controls.ariaLabel"],children:[t&&D.jsxs(D.Fragment,{children:[D.jsx(q0,{onClick:O,className:"react-flow__controls-zoomin",title:N["controls.zoomIn.ariaLabel"],"aria-label":N["controls.zoomIn.ariaLabel"],disabled:E,children:D.jsx(JB,{})}),D.jsx(q0,{onClick:U,className:"react-flow__controls-zoomout",title:N["controls.zoomOut.ariaLabel"],"aria-label":N["controls.zoomOut.ariaLabel"],disabled:T,children:D.jsx(WB,{})})]}),n&&D.jsx(q0,{className:"react-flow__controls-fitview",onClick:Q,title:N["controls.fitView.ariaLabel"],"aria-label":N["controls.fitView.ariaLabel"],children:D.jsx(eL,{})}),i&&D.jsx(q0,{className:"react-flow__controls-interactive",onClick:Z,title:N["controls.interactive.ariaLabel"],"aria-label":N["controls.interactive.ariaLabel"],children:A?D.jsx(nL,{}):D.jsx(tL,{})}),p]})}Lv.displayName="Controls";const iL=le.memo(Lv);function aL({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||{},T=u||w||A;return D.jsx("rect",{className:en(["react-flow__minimap-node",{selected:v},d]),x:t,y:n,rx:p,ry:p,width:i,height:l,style:{fill:T,stroke:f,strokeWidth:h},shapeRendering:m,onClick:x?E=>x(E,e):void 0})}const lL=le.memo(aL),oL=e=>e.nodes.map(t=>t.id),rd=e=>e instanceof Function?e:()=>e;function sL({nodeStrokeColor:e,nodeColor:t,nodeClassName:n="",nodeBorderRadius:i=5,nodeStrokeWidth:l,nodeComponent:s=lL,onClick:u}){const f=st(oL,Dt),h=rd(t),d=rd(e),p=rd(n),m=typeof window>"u"||window.chrome?"crispEdges":"geometricPrecision";return D.jsx(D.Fragment,{children:f.map(v=>D.jsx(cL,{id:v,nodeColorFunc:h,nodeStrokeColorFunc:d,nodeClassNameFunc:p,nodeBorderRadius:i,nodeStrokeWidth:l,NodeComponent:s,onClick:u,shapeRendering:m},v))})}function uL({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}=st(w=>{const A=w.nodeLookup.get(e);if(!A)return{node:void 0,x:0,y:0,width:0,height:0};const T=A.internals.userNode,{x:E,y:N}=A.internals.positionAbsolute,{width:z,height:H}=Ti(T);return{node:T,x:E,y:N,width:z,height:H}},Dt);return!d||d.hidden||!q8(d)?null:D.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 cL=le.memo(uL);var fL=le.memo(sL);const hL=200,dL=150,mL=e=>!e.hidden,pL=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?H8(Ps(e.nodeLookup,{filter:mL}),t):t,rfId:e.rfId,panZoom:e.panZoom,translateExtent:e.translateExtent,flowWidth:e.width,flowHeight:e.height,ariaLabelConfig:e.ariaLabelConfig}},gL="react-flow__minimap-desc";function Hv({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:T=!1,ariaLabel:E,inversePan:N,zoomStep:z=1,offsetScale:H=5}){const I=Ot(),O=le.useRef(null),{boundingRect:U,viewBB:Q,rfId:Z,panZoom:V,translateExtent:P,flowWidth:W,flowHeight:ce,ariaLabelConfig:j}=st(pL,Dt),F=e?.width??hL,L=e?.height??dL,Y=U.width/F,J=U.height/L,ne=Math.max(Y,J),C=ne*F,q=ne*L,$=H*ne,_=U.x-(C-U.width)/2-$,ie=U.y-(q-U.height)/2-$,ye=C+$*2,xe=q+$*2,be=`${gL}-${Z}`,ge=le.useRef(0),Se=le.useRef();ge.current=ne,le.useEffect(()=>{if(O.current&&V)return Se.current=OO({domNode:O.current,panZoom:V,getTransform:()=>I.getState().transform,getViewScale:()=>ge.current}),()=>{Se.current?.destroy()}},[V]),le.useEffect(()=>{Se.current?.update({translateExtent:P,width:W,height:ce,inversePan:N,pannable:A,zoomStep:z,zoomable:T})},[A,T,N,z,P,W,ce]);const qe=x?Be=>{const[Ye,it]=Se.current?.pointer(Be)||[0,0];x(Be,{x:Ye,y:it})}:void 0,Ie=w?le.useCallback((Be,Ye)=>{const it=I.getState().nodeLookup.get(Ye).internals.userNode;w(Be,it)},[]):void 0,Re=E??j["minimap.ariaLabel"];return D.jsx(Yc,{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:en(["react-flow__minimap",t]),"data-testid":"rf__minimap",children:D.jsxs("svg",{width:F,height:L,viewBox:`${_} ${ie} ${ye} ${xe}`,className:"react-flow__minimap-svg",role:"img","aria-labelledby":be,ref:O,onClick:qe,children:[Re&&D.jsx("title",{id:be,children:Re}),D.jsx(fL,{onClick:Ie,nodeColor:i,nodeStrokeColor:n,nodeBorderRadius:s,nodeClassName:l,nodeStrokeWidth:u,nodeComponent:f}),D.jsx("path",{className:"react-flow__minimap-mask",d:`M${_-$},${ie-$}h${ye+$*2}v${xe+$*2}h${-ye-$*2}z
|
|
305
|
-
M${Q.x},${Q.y}h${Q.width}v${Q.height}h${-Q.width}z`,fillRule:"evenodd",pointerEvents:"none"})]})})}Hv.displayName="MiniMap";le.memo(Hv);const yL=e=>t=>e?`${Math.max(1/t.transform[2],1)}`:void 0,vL={[ao.Line]:"right",[ao.Handle]:"bottom-right"};function xL({nodeId:e,position:t,variant:n=ao.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:T,onResizeEnd:E}){const N=mv(),z=typeof e=="string"?e:N,H=Ot(),I=le.useRef(null),O=n===ao.Handle,U=st(le.useCallback(yL(O&&x),[O,x]),Dt),Q=le.useRef(null),Z=t??vL[n];le.useEffect(()=>{if(!(!I.current||!z))return Q.current||(Q.current=XO({domNode:I.current,nodeId:z,getStoreItems:()=>{const{nodeLookup:P,transform:W,snapGrid:ce,snapToGrid:j,nodeOrigin:F,domNode:L}=H.getState();return{nodeLookup:P,transform:W,snapGrid:ce,snapToGrid:j,nodeOrigin:F,paneDomNode:L}},onChange:(P,W)=>{const{triggerNodeChanges:ce,nodeLookup:j,parentLookup:F,nodeOrigin:L}=H.getState(),Y=[],J={x:P.x,y:P.y},ne=j.get(z);if(ne&&ne.expandParent&&ne.parentId){const C=ne.origin??L,q=P.width??ne.measured.width??0,$=P.height??ne.measured.height??0,_={id:ne.id,parentId:ne.parentId,rect:{width:q,height:$,...j8({x:P.x??ne.position.x,y:P.y??ne.position.y},{width:q,height:$},ne.parentId,j,C)}},ie=Xm([_],j,F,L);Y.push(...ie),J.x=P.x?Math.max(C[0]*q,P.x):void 0,J.y=P.y?Math.max(C[1]*$,P.y):void 0}if(J.x!==void 0&&J.y!==void 0){const C={id:z,type:"position",position:{...J}};Y.push(C)}if(P.width!==void 0&&P.height!==void 0){const q={id:z,type:"dimensions",resizing:!0,setAttributes:v?v==="horizontal"?"width":"height":!0,dimensions:{width:P.width,height:P.height}};Y.push(q)}for(const C of W){const q={...C,type:"position"};Y.push(q)}ce(Y)},onEnd:({width:P,height:W})=>{const ce={id:z,type:"dimensions",resizing:!1,dimensions:{width:P,height:W}};H.getState().triggerNodeChanges([ce])}})),Q.current.update({controlPosition:Z,boundaries:{minWidth:f,minHeight:h,maxWidth:d,maxHeight:p},keepAspectRatio:m,resizeDirection:v,onResizeStart:A,onResize:T,onResizeEnd:E,shouldResize:w}),()=>{Q.current?.destroy()}},[Z,f,h,d,p,m,A,T,E,w]);const V=Z.split("-");return D.jsx("div",{className:en(["react-flow__resize-control","nodrag",...V,n,i]),ref:I,style:{...l,scale:U,...u&&{[O?"backgroundColor":"borderColor"]:u}},children:s})}le.memo(xL);const Pc=new Set(["decomposes","answers","operationalizes","leads_to"]);function bL(e){const t=new Map(e.nodes.map(n=>[n.id,n]));return{nodes:e.nodes,byId:t,search(n){const i=Zm(n);return i?e.nodes.filter(l=>Iv(l).includes(i)):e.nodes}}}function wL(e,t){new Map(e.nodes.map(p=>[p.id,p]));const n=e.edges.filter(p=>Pc.has(p.kind)),i=pc(n,"from"),l=pc(n,"to"),s=Object.fromEntries(e.nodes.map(p=>[p.id,i.get(p.id)?.length||0])),u=new Set,f=Zm(t.query||"");if(f){for(const p of e.nodes)if(Iv(p).includes(f)){u.add(p.id);for(const m of EL(p.id,l))u.add(m)}}else jv(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 qv(e){const t=e.edges.filter(i=>Pc.has(i.kind)),n=new Set(t.map(i=>i.from));return e.nodes.map(i=>i.id).filter(i=>n.has(i))}function SL(e,t){const n=e.edges.filter(h=>Pc.has(h.kind)),i=pc(n,"from"),l=new Set(qv(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 kL(e,t){const n=e.edges.filter(d=>Pc.has(d.kind)),i=pc(n,"from"),l=new Map([[e.rootId,0]]),s=[e.rootId];for(let d=0;d<s.length;d+=1){const p=s[d],m=l.get(p)||0;for(const v of i.get(p)||[])l.has(v.to)||(l.set(v.to,m+1),s.push(v.to))}const u=new Map;for(const d of e.nodes){const p=l.get(d.id)??0;u.set(p,[...u.get(p)||[],d])}const f=new Map;for(const[d,p]of u)p.forEach((m,v)=>f.set(m.id,v-(p.length-1)/2)),u.set(d,p);const h=e.nodes.map(d=>{const p=l.get(d.id)??0,m=f.get(d.id)||0,v=t.mode==="full"?{depth:610,cross:320}:{depth:300,cross:160},x={x:p*v.depth,y:m*v.cross};return{...d,position:x}});return{rootId:e.rootId,nodes:h,edges:e.edges,childCounts:e.childCounts}}function jv(e,t,n,i){if(i.add(e),!!n.has(e))for(const l of t.get(e)||[])jv(l.to,t,n,i)}function EL(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 pc(e,t){const n=new Map;for(const i of e)n.set(i[t],[...n.get(i[t])||[],i]);return n}function Iv(e){return Zm([e.title,e.id,e.type,e.file,...(e.files||[]).map(t=>t.path),e.summary,...e.tags||[]].filter(Boolean).join(" "))}function Zm(e){return e.trim().toLowerCase()}const AL={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"}]},TL={research:ML};function zL({error:e,graph:t=AL,header:n,sidebarCollapsed:i=!1,sidebarHeader:l,sidebarResizeHandle:s,sidebarWidth:u}){return D.jsx(Rv,{children:D.jsx(CL,{error:e,graph:t,header:n,sidebarCollapsed:i,sidebarHeader:l,sidebarResizeHandle:s,sidebarWidth:u})})}function CL({error:e,graph:t,header:n,sidebarCollapsed:i,sidebarHeader:l,sidebarResizeHandle:s,sidebarWidth:u}){const[f,h]=le.useState(()=>q6(t)),[d,p]=le.useState(""),[m,v]=le.useState("compact"),[x,w]=le.useState({status:"idle"}),[A,T]=le.useState("right"),[E,N]=le.useState({right:500,bottom:340}),{fitView:z,setCenter:H}=Gc(),I=le.useMemo(()=>bL(t),[t]),O=le.useMemo(()=>I.search(d),[I,d]),U=le.useMemo(()=>wL(t,{expandedIds:f,query:d}),[f,t,d]),Q=le.useMemo(()=>kL(U,{mode:m}),[m,U]),Z=le.useMemo(()=>new Set(O.map(C=>C.id)),[O]),V=le.useMemo(()=>qv(t),[t]);le.useEffect(()=>{h(q6(t))},[t]);const P=le.useMemo(()=>Q.nodes.map(C=>({id:C.id,type:"research",position:C.position,sourcePosition:Oe.Right,targetPosition:Oe.Left,data:{item:C,childCount:Q.childCounts[C.id]||0,expanded:f.has(C.id),highlighted:!!d.trim()&&Z.has(C.id),isRoot:C.id===t.rootId,mode:m,onExpandBranch:L,onToggle:ce}})),[f,t.rootId,Q.childCounts,Q.nodes,Z,m,d]),W=le.useMemo(()=>Q.edges.map(C=>({id:C.id,source:C.from,target:C.to,label:RL(C),type:m==="compact"?"bezier":"smoothstep",className:`research-edge kind-${C.kind}`,interactionWidth:16,style:{stroke:U6(C.kind),strokeWidth:m==="compact"?1.45:1.7},markerEnd:{type:Rs.ArrowClosed,width:m==="compact"?11:15,height:m==="compact"?11:15,color:U6(C.kind)}})),[Q.edges,m]);le.useEffect(()=>{const C=window.setTimeout(()=>z({padding:.16,maxZoom:m==="compact"?1.15:.9,duration:260}),80);return()=>window.clearTimeout(C)},[z,P.length,m,d]);function ce(C){h(q=>{const $=new Set(q);return $.has(C)?$.delete(C):$.add(C),$})}function j(){h(new Set(V))}function F(){h(new Set)}function L(C){h(q=>{const $=new Set(q);for(const _ of SL(t,C))$.add(_);return $})}function Y(C){const q=m==="compact"?9:130;H(C.position.x+q,C.position.y+q,{zoom:m==="compact"?1.55:1.08,duration:280})}async function J(C,q){const $=ma(C);if(!$.length){w({status:"note",path:C.id,title:C.title,summary:C.summary});return}const _=(q?$.find(ie=>ie.path===q&&ie.fileExists!==!1):void 0)||$.find(ie=>ie.fileExists!==!1);if(!_){w({status:"error",path:C.id,title:C.title,message:"This graph node only links to missing files."});return}w({status:"loading",path:_.path,title:_.title||C.title});try{const ie=await YL(`/api/workspace/file?path=${encodeURIComponent(_.path)}`);w({status:"ready",path:ie.path,title:_.title||C.title,content:ie.content,bytes:ie.bytes,format:ie.format,mimeType:ie.mimeType,links:$})}catch(ie){w({status:"error",path:_.path,title:_.title||C.title,message:GL(ie)})}}function ne(C){const q=t.nodes.find($=>ma($).some(_=>_.path===C));if(q)return J(q,C)}return D.jsxs("main",{className:i?"app-shell graph-view sidebar-collapsed":"app-shell graph-view",style:u?{"--workspace-sidebar-width":`${u}px`}:void 0,children:[D.jsxs("aside",{className:"graph-index-panel",children:[l,s,!i&&D.jsxs(D.Fragment,{children:[D.jsxs("div",{className:"graph-panel-header",children:[D.jsxs("div",{children:[D.jsx("strong",{children:"Overview"}),D.jsxs("span",{children:[U.nodes.length,"/",t.nodes.length," nodes · ",U.edges.length," edges"]})]}),D.jsx("button",{className:"secondary-button compact",onClick:()=>z({padding:.16,maxZoom:m==="compact"?1.15:.9,duration:260}),children:"Fit"})]}),D.jsxs("label",{className:"graph-search",children:["Search",D.jsx("input",{value:d,onChange:C=>p(C.target.value),placeholder:"Search title, id, path, tag..."})]}),D.jsxs("div",{className:"graph-layout-toggle","aria-label":"Graph display mode",children:[D.jsx("button",{className:m==="compact"?"active":"",onClick:()=>v("compact"),children:"Compact"}),D.jsx("button",{className:m==="full"?"active":"",onClick:()=>v("full"),children:"Full"})]}),D.jsxs("div",{className:"graph-actions","aria-label":"Graph expansion controls",children:[D.jsx("button",{onClick:j,children:"Expand all"}),D.jsx("button",{onClick:F,children:"Collapse all"})]}),D.jsx("div",{className:"graph-index-list",children:Q.nodes.map(C=>D.jsxs("div",{className:Z.has(C.id)&&d.trim()?"graph-index-item match":"graph-index-item",children:[D.jsxs("button",{className:"graph-index-focus",onClick:()=>Y(C),children:[D.jsx("span",{className:`node-type type-${C.type}`,children:C.type}),D.jsx("strong",{children:C.title}),D.jsx("small",{children:Qm(C)})]}),D.jsx("button",{className:"graph-index-open",onClick:()=>{J(C)},disabled:Ks(C),title:jL(C),children:IL(C)})]},C.id))})]})]}),D.jsxs("section",{className:"chat-pane graph-active",children:[n,e&&D.jsx("div",{className:"error-banner",children:e}),D.jsxs("div",{className:x.status==="idle"?"graph-workspace":`graph-workspace preview-${A}`,style:HL(x.status,A,E),children:[D.jsxs("div",{className:"graph-canvas",children:[D.jsxs($B,{nodes:P,edges:W,nodeTypes:TL,minZoom:.25,maxZoom:1.7,fitView:!0,fitViewOptions:{padding:.16,maxZoom:m==="compact"?1.15:.9},onNodeClick:(C,q)=>{J(q.data.item)},proOptions:{hideAttribution:!0},children:[D.jsx(KB,{gap:28,size:1,color:"#dce3ea"}),D.jsx(iL,{position:"bottom-right"})]}),D.jsx(FL,{layout:Q,mode:m})]}),D.jsx(NL,{dock:A,onClose:()=>w({status:"idle"}),onDockChange:T,onOpenPath:C=>{ne(C)},onResize:N,preview:x,size:E})]})]})]})}function ML({data:e,selected:t}){const n=e.item,i=e.childCount>0,l=i&&!e.isRoot;return D.jsxs("article",{className:t?I6(n,e.mode,"selected"):I6(n,e.mode),title:`${n.title}
|
|
306
|
-
${n.type}${n.status?` · ${n.status}`:""}
|
|
307
|
-
${n.file||n.id}${n.summary?`
|
|
308
|
-
${n.summary}`:""}`,children:[D.jsx(sa,{type:"target",position:Oe.Left,className:"node-handle node-handle-left"}),D.jsx(sa,{type:"source",position:Oe.Right,className:"node-handle node-handle-right"}),D.jsx(sa,{type:"target",position:Oe.Top,className:"node-handle node-handle-top"}),D.jsx(sa,{type:"source",position:Oe.Bottom,className:"node-handle node-handle-bottom"}),e.mode==="full"?D.jsx(OL,{item:n,highlighted:e.highlighted}):D.jsx(_L,{item:n}),l&&D.jsx("button",{className:"node-toggle nodrag",onClick:s=>{s.stopPropagation(),e.onToggle(n.id)},title:e.expanded?"Collapse node":"Expand node",children:e.expanded?"−":"+"}),i&&D.jsx("button",{className:"node-branch-toggle nodrag",onClick:s=>{s.stopPropagation(),e.onExpandBranch(n.id)},title:"Expand full branch",children:"↧"}),e.highlighted&&D.jsx("span",{className:"node-match"}),D.jsxs("div",{className:"node-tooltip",role:"tooltip",children:[D.jsx("strong",{children:n.title}),D.jsxs("span",{children:[n.type,n.status?` · ${n.status}`:""]}),n.summary&&D.jsx("p",{children:n.summary}),D.jsx("small",{children:Qm(n)})]})]})}function NL({dock:e,onClose:t,onDockChange:n,onOpenPath:i,onResize:l,size:s,preview:u}){return u.status==="idle"?null:D.jsxs("aside",{className:"file-preview-panel",children:[D.jsx("button",{className:`preview-resize-handle ${e}`,onDoubleClick:()=>l(LL()),onPointerDown:f=>qL(f,e,s,l),title:e==="right"?"Drag to resize preview width":"Drag to resize preview height"}),D.jsxs("header",{children:[D.jsxs("div",{children:[D.jsx("strong",{children:u.title}),D.jsx("span",{children:u.path})]}),D.jsxs("div",{className:"file-preview-actions",children:[D.jsx("button",{className:e==="right"?"active":"",onClick:()=>n("right"),title:"Dock right",children:"Right"}),D.jsx("button",{className:e==="bottom"?"active":"",onClick:()=>n("bottom"),title:"Dock bottom",children:"Bottom"}),D.jsx("button",{onClick:t,title:"Close preview",children:"×"})]})]}),u.status==="loading"&&D.jsx("div",{className:"file-preview-state",children:"Loading file..."}),u.status==="note"&&D.jsx("div",{className:"file-preview-state",children:u.summary||"This node is currently represented only in graph.yaml. Add file or files later when it needs longer notes."}),u.status==="error"&&D.jsx("div",{className:"file-preview-state error",children:u.message}),u.status==="ready"&&D.jsxs(D.Fragment,{children:[D.jsxs("div",{className:"file-preview-meta",children:[u.bytes.toLocaleString()," bytes · ",u.mimeType]}),u.links.length>1&&D.jsx("div",{className:"file-preview-links","aria-label":"Linked documents",children:u.links.map(f=>D.jsx("button",{className:f.path===u.path?"active":"",disabled:f.fileExists===!1,onClick:()=>i(f.path),title:f.path,children:f.title||UL(f.path)},f.path))}),D.jsx(DL,{preview:u})]})]})}function DL({preview:e}){return e.format==="markdown"?D.jsx(ic,{basePath:e.path,className:"file-preview-markdown",content:e.content}):e.format==="html"?D.jsx("iframe",{className:"file-preview-html",sandbox:"allow-same-origin",srcDoc:BL(e.path,e.content),title:e.title}):D.jsx("pre",{children:e.content})}function _L({item:e}){return D.jsxs(D.Fragment,{children:[D.jsx("span",{className:"node-dot"}),D.jsx("span",{className:"node-caption",children:e.title})]})}function OL({item:e,highlighted:t}){return D.jsxs(D.Fragment,{children:[D.jsxs("header",{children:[D.jsx("span",{className:`node-type type-${e.type}`,children:e.type}),e.status&&D.jsx("span",{className:`node-status status-${e.status}`,children:e.status})]}),D.jsx("h3",{children:e.title}),e.summary&&D.jsx("p",{children:e.summary}),D.jsxs("footer",{children:[D.jsx("span",{children:Qm(e)}),Ks(e)&&D.jsx("strong",{children:"missing files"}),ma(e).length>1&&D.jsxs("strong",{children:[ma(e).length," docs"]}),t&&D.jsx("strong",{children:"match"})]})]})}function RL(e){return e.label||""}function BL(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 q6(e){return new Set(e.ui?.expanded?.length?e.ui.expanded:[e.rootId])}function LL(){return{right:500,bottom:340}}function HL(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 qL(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=j6(u.right-(d.clientX-l),300,Math.max(360,window.innerWidth-520));i({...u,right:p})}else{const p=j6(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 j6(e,t,n){return Math.min(n,Math.max(t,e))}function I6(e,t,n=""){return["research-node",t,`type-${e.type}`,Ks(e)?"missing-file":"",n].filter(Boolean).join(" ")}function jL(e){const t=ma(e);return t.length?Ks(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=ma(e);return t.length?Ks(e)?"Missing":t.length>1?"Docs":"Open":"Note"}function ma(e){return e.files?.length?e.files:e.file?[{path:e.file,fileExists:e.fileExists}]:[]}function Ks(e){const t=ma(e);return t.length>0&&t.every(n=>n.fileExists===!1)}function Qm(e){const t=ma(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({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 D.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:D.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=>D.jsx("circle",{cx:m.cx,cy:m.cy,r:n.radius,fill:VL(m.type),className:"overview-node"},m.id))]})}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"}async function YL(e){const t=await fetch(e);if(!t.ok){const n=await t.json().catch(()=>({}));throw new Error(n.error||t.statusText)}return t.json()}function GL(e){return e instanceof Error?e.message:"Unknown error."}const $L=328,Qd=248,Uv=560,XL=50,PL=24,ZL=76;function Fv(e,t){if(!Number.isFinite(e))return $L;const n=Math.max(Qd,Math.floor(t*.48));return Math.min(Math.max(e,Qd),Math.min(Uv,n))}function P0(e){return Number.isFinite(e)?Math.min(Math.max(e,PL),ZL):XL}const Vv="thinking-sidecar-sidebar-width",Yv="thinking-sidecar-sidebar-split-v2";function QL(){const[e,t]=le.useState("graph"),[n,i]=le.useState(null),[l,s]=le.useState({instructionFiles:[],skills:[]}),[u,f]=le.useState([]),[h,d]=le.useState(""),[p,m]=le.useState(null),[v,x]=le.useState(""),[w,A]=le.useState([]),[T,E]=le.useState(null),[N,z]=le.useState(""),[H,I]=le.useState({}),[O,U]=le.useState(!0),[Q,Z]=le.useState(!1),[V,P]=le.useState(!1),[W,ce]=le.useState(()=>rH()),[j,F]=le.useState(()=>iH()),[L,Y]=le.useState(null),[J,ne]=le.useState(""),[C,q]=le.useState(""),[$,_]=le.useState(!1),[ie,ye]=le.useState(!1),xe=le.useRef({}),be=le.useRef(null);le.useEffect(()=>{ge()},[]),le.useEffect(()=>{localStorage.setItem(Vv,String(W))},[W]),le.useEffect(()=>{localStorage.setItem(Yv,String(j))},[j]);async function ge(){const he=await An("/api/config");i(he),d(he.graphManifestPath),await qe(),s(await An("/api/workspace")),await Se();const _e=await An("/api/sessions");A(_e),_e[0]?await it(_e[0].id):await Ye()}async function Se(){try{x(""),m(await An("/api/research-graph"))}catch(he){x(`Graph manifest: ${j0(he)}`)}}async function qe(){const he=await An("/api/graphs");f(he.candidates),d(_e=>_e||he.current)}async function Ie(){if(!(!h.trim()||$)){_(!0),q("");try{const he=await An("/api/config",{method:"PATCH",body:JSON.stringify({graphManifestPath:h})});i(he),d(he.graphManifestPath),await qe(),await Se(),q(`Graph saved: ${he.graphManifestPath}`)}catch(he){ne(j0(he))}finally{_(!1)}}}async function Re(){if(!ie){ye(!0),q("");try{const he=await An("/api/workspace/skills/install",{method:"POST",body:JSON.stringify({})});s(await An("/api/workspace"));const _e=he.installed.length?`${he.installed.length} installed`:"no new skills",Bt=he.skipped.length?`, ${he.skipped.length} already present`:"";q(`Workspace skills: ${_e}${Bt}`)}catch(he){ne(j0(he))}finally{ye(!1)}}}async function Be(){A(await An("/api/sessions"))}async function Ye(){ne("");const he=await An("/api/sessions",{method:"POST",body:JSON.stringify({title:"New review",model:n?.defaultModel||"gpt-5.5"})});E(he),await Be()}async function it(he){ne(""),E(await An(`/api/sessions/${he}`))}async function Je(he){if(!T)return;const _e=await An(`/api/sessions/${T.id}`,{method:"PATCH",body:JSON.stringify(he)});E(_e),await Be()}async function At(he){he.preventDefault(),N.trim()&&T&&await tn(T,N.trim(),{appendUser:!0})}async function tn(he,_e,Bt){if(!_e||H[he.id]?.busy)return;ne("");const gt=he.id;z(""),I(nn=>({...nn,[gt]:{text:"",busy:!0}})),Bt.appendUser?E({...he,messages:[...he.messages,{id:`local-${Date.now()}`,role:"user",content:_e,createdAt:new Date().toISOString(),source:"manual"}]}):E(he);const Wa=new AbortController;xe.current[gt]=Wa;let Pr=!1;try{const nn=await fetch(`/api/sessions/${gt}/stream`,{method:"POST",signal:Wa.signal,headers:{"Content-Type":"application/json"},body:JSON.stringify({message:_e,model:he.model,manualContext:he.manualContext,reviewPrompt:he.reviewPrompt,enableTools:O,includeInstructionFiles:Q,existingMessageId:Bt.existingMessageId})});if(!nn.ok||!nn.body){const Yn=await nn.json().catch(()=>({}));throw new Error(Yn.error||"Request failed.")}const Cr=nn.body.getReader(),yr=new TextDecoder;let Mr="",Nr="";for(;;){const{value:Yn,done:ya}=await Cr.read();if(ya)break;Mr+=yr.decode(Yn,{stream:!0});const Dr=Mr.split(`
|
|
309
|
-
|
|
310
|
-
`);Mr=Dr.pop()||"";for(const el of Dr){if(!el.startsWith("data: "))continue;const rn=JSON.parse(el.slice(6));if(rn.type==="delta"&&(Nr+=rn.delta,I(tl=>({...tl,[gt]:{text:Nr,busy:!0}}))),rn.type==="tool_call"&&Sn(gt,{role:"tool",content:`Calling \`${rn.name}\` with:
|
|
311
|
-
|
|
312
|
-
\`\`\`json
|
|
313
|
-
${rn.args}
|
|
314
|
-
\`\`\``,toolName:rn.name}),rn.type==="skills"&&Sn(gt,{role:"system",content:eH(rn)}),rn.type==="tool_result"&&Sn(gt,{role:"tool",content:`Result from \`${rn.name}\`:
|
|
315
|
-
|
|
316
|
-
\`\`\`
|
|
317
|
-
${String(rn.result).slice(0,4e3)}
|
|
318
|
-
\`\`\``,toolName:rn.name}),rn.type==="error")throw new Error(rn.error)}}I(Yn=>({...Yn,[gt]:{text:"",busy:!1}}));const ho=await An(`/api/sessions/${gt}`);E(Yn=>Yn?.id===gt?ho:Yn),await Be()}catch(nn){nn.name!=="AbortError"?ne(j0(nn)):(Pr=!0,I(Cr=>({...Cr,[gt]:{text:"",busy:!1}})))}finally{delete xe.current[gt],Pr||I(nn=>({...nn,[gt]:{text:nn[gt]?.text||"",busy:!1}}))}}async function Ut(){if(!T)return;xe.current[T.id]?.abort(),I(_e=>({..._e,[T.id]:{text:"",busy:!1}}));const he=await An(`/api/sessions/${T.id}`).catch(()=>null);he&&(E(he),await Be())}async function Ft(){if(!T||H[T.id]?.busy)return;const he=[...T.messages].reverse().find(_e=>_e.role==="user");he&&await pn(he.id,he.content)}async function pn(he,_e){if(!T||H[T.id]?.busy||!_e.trim())return;const Bt=await An(`/api/sessions/${T.id}/messages/${he}/edit`,{method:"POST",body:JSON.stringify({content:_e.trim()})});E(Bt),Y(null),await Be(),await tn(Bt,_e.trim(),{appendUser:!1,existingMessageId:he})}function Sn(he,_e){E(Bt=>Bt?.id!==he?Bt:{...Bt,messages:[...Bt.messages,{id:`local-tool-${Date.now()}-${Math.random()}`,createdAt:new Date().toISOString(),source:"model",..._e}]})}const gn=le.useMemo(()=>{if(!T)return[];const he=T.messages,_e=H[T.id];return _e?.text?Vg([...he,{id:"streaming",role:"assistant",content:_e.text,createdAt:new Date().toISOString(),source:"model",model:T.model,apiMode:T.apiMode}]):Vg(he)},[T,H]),kt=!!(T&&H[T.id]?.busy),Vn=V?"app-shell sidebar-collapsed":"app-shell",fe={"--workspace-sidebar-width":`${W}px`},ke={"--session-list-percent":`${j}%`},He=e==="graph"?"Research Graph":T?.title||"No session",Ge=e==="graph"?`${n?.workspaceRoot||"Workspace"} · ${n?.graphManifestPath||"graph"}`:`${T?.model||n?.defaultModel} · ${n?.apiMode||"auto"} · ${O&&n?.apiMode==="chat"?"tools on":"tools off"}`,et=D.jsxs("div",{className:"view-tabs sidebar-view-tabs","aria-label":"Workspace view",children:[D.jsx("button",{className:e==="chat"?"active":"",onClick:()=>t("chat"),children:"Chat"}),D.jsx("button",{className:e==="graph"?"active":"",onClick:()=>t("graph"),children:"Graph"})]}),un=D.jsxs("header",{className:"topbar",children:[D.jsxs("div",{children:[D.jsx("strong",{children:He}),D.jsx("span",{children:Ge})]}),D.jsx("div",{className:"topbar-actions",children:D.jsx("div",{className:n?.hasOpenAIKey?"status ok":"status error",children:n?.hasOpenAIKey?"API OK":"API ERROR"})})]}),Nn=D.jsx(tH,{collapsed:V,onResize:ce,value:W}),Ct=u.find(he=>he.path===h),Rt=D.jsxs("div",{className:"workspace-sidebar-header",children:[et,D.jsxs("div",{className:"brand-row",children:[D.jsxs("div",{className:"workspace-sidebar-title",children:[D.jsx("h1",{children:"Research Graph"}),!V&&D.jsx("p",{children:n?.workspaceRoot||"Loading workspace..."})]}),D.jsx("div",{className:"brand-actions",children:D.jsx("button",{className:"icon-button",onClick:()=>P(!V),title:"Toggle sidebar",children:V?"›":"‹"})})]}),!V&&D.jsxs("div",{className:"graph-config",children:[D.jsxs("label",{children:["Graph",D.jsx("select",{value:h,onChange:he=>d(he.target.value),disabled:!u.length,children:u.length?u.map(he=>D.jsx("option",{value:he.path,children:he.title?`${he.title} · ${he.path}`:he.path},he.path)):D.jsx("option",{value:"",children:"No graph found"})})]}),Ct?.error&&D.jsx("small",{className:"graph-config-error",children:Ct.error}),Ct&&!Ct.error&&D.jsxs("small",{children:[Ct.nodeCount??0," nodes · ",Ct.edgeCount??0," edges"]}),D.jsxs("div",{className:"graph-config-actions",children:[D.jsx("button",{className:"secondary-button compact",onClick:()=>{qe()},children:"Refresh"}),D.jsx("button",{className:"secondary-button compact",onClick:()=>{Re()},disabled:ie,children:ie?"Installing":"Install skills"}),D.jsx("button",{className:"secondary-button compact primary",onClick:()=>{Ie()},disabled:!h||h===n?.graphManifestPath||$,children:$?"Saving":"Save graph"})]}),C&&D.jsx("small",{className:"graph-config-notice",children:C})]})]});return e==="graph"?D.jsx(zL,{error:J||v,graph:p||void 0,header:un,sidebarCollapsed:V,sidebarHeader:Rt,sidebarResizeHandle:Nn,sidebarWidth:W}):D.jsxs("main",{className:Vn,style:fe,children:[D.jsxs("aside",{className:"sidebar",children:[D.jsxs("div",{className:"workspace-sidebar-header",children:[et,D.jsxs("div",{className:"brand-row",children:[D.jsxs("div",{className:"workspace-sidebar-title",children:[D.jsx("h1",{children:"Research Sidecar"}),!V&&D.jsxs(D.Fragment,{children:[D.jsx("p",{children:n?.workspaceRoot||"Loading workspace..."}),n?.openaiBaseURL&&D.jsx("p",{children:n.openaiBaseURL})]})]}),D.jsxs("div",{className:"brand-actions",children:[D.jsx("button",{className:"icon-button",onClick:()=>P(!V),title:"Toggle sidebar",children:V?"›":"‹"}),D.jsx("button",{className:"icon-button primary",onClick:Ye,title:"New session",children:"+"})]})]})]}),Nn,!V&&D.jsxs("div",{className:"sidebar-body",ref:be,style:ke,children:[D.jsx("div",{className:"session-list",children:w.map(he=>D.jsxs("button",{className:he.id===T?.id?"session active":"session",onClick:()=>it(he.id),children:[D.jsx("span",{children:he.title}),D.jsxs("small",{children:[he.messageCount," messages · ",H[he.id]?.busy?"thinking":"idle"]})]},he.id))}),D.jsx(nH,{containerRef:be,onResize:F,value:j}),T&&D.jsxs("section",{className:"context-panel",children:[D.jsxs("label",{children:["Session title",D.jsx("input",{value:T.title,onChange:he=>E({...T,title:he.target.value}),onBlur:()=>Je({title:T.title})})]}),D.jsxs("div",{className:"model-row",children:[D.jsxs("label",{children:["Model",D.jsx("input",{value:T.model,onChange:he=>E({...T,model:he.target.value}),onBlur:()=>Je({model:T.model})})]}),D.jsxs("div",{className:"mode-pill",children:["auto · ",n?.apiMode||T.apiMode]})]}),D.jsxs("label",{className:"checkbox-label",children:[D.jsx("input",{type:"checkbox",checked:O,onChange:he=>U(he.target.checked),disabled:n?.apiMode!=="chat"}),"Enable workspace tools"]}),D.jsxs("label",{className:"checkbox-label",children:[D.jsx("input",{type:"checkbox",checked:Q,onChange:he=>Z(he.target.checked)}),"Include CLAUDE.md / AGENTS.md"]}),D.jsxs("label",{children:["Codex/context packet notes",D.jsx("textarea",{value:T.manualContext,onChange:he=>E({...T,manualContext:he.target.value}),onBlur:()=>Je({manualContext:T.manualContext}),placeholder:"Paste Codex's summary, current plan, diffs, or experiment notes here."})]}),D.jsxs("details",{children:[D.jsx("summary",{children:"Review prompt"}),D.jsx("textarea",{className:"prompt-box",value:T.reviewPrompt,onChange:he=>E({...T,reviewPrompt:he.target.value}),onBlur:()=>Je({reviewPrompt:T.reviewPrompt})})]}),D.jsxs("details",{className:"workspace-skills",open:!0,children:[D.jsxs("summary",{children:["Workspace skills (",l.skills.length,")"]}),l.instructionFiles.length>0&&D.jsx("div",{className:"meta-list",children:l.instructionFiles.map(he=>D.jsx("span",{children:he.path},he.path))}),D.jsx("div",{className:"skill-list",children:l.skills.map(he=>D.jsxs("div",{className:"skill-row",children:[D.jsx("strong",{children:he.name}),D.jsx("span",{children:he.description||he.path})]},`${he.path}-${he.name}`))})]})]})]})]}),D.jsxs("section",{className:"chat-pane",children:[un,J&&D.jsx("div",{className:"error-banner",children:J}),D.jsxs(D.Fragment,{children:[D.jsxs("div",{className:"messages",children:[gn.length===0&&D.jsxs("div",{className:"empty-state",children:[D.jsx("h2",{children:"Start with a claim, plan, or uncertainty."}),D.jsx("p",{children:"Add explicit context on the left, then ask the sidecar to challenge the reasoning."})]}),gn.map(he=>he.kind==="tool-run"?D.jsx(JL,{run:he.run},he.run.id):D.jsx("article",{className:`message ${he.message.role}`,children:D.jsxs(D.Fragment,{children:[D.jsxs("div",{className:"message-meta",children:[D.jsx("span",{children:KL(he.message)}),he.message.model&&D.jsx("small",{children:he.message.model}),he.message.role==="user"&&!kt&&D.jsx("button",{className:"text-button",onClick:()=>Y({id:he.message.id,content:he.message.content}),children:"Edit"})]}),L?.id===he.message.id?D.jsxs("form",{className:"edit-form",onSubmit:_e=>{_e.preventDefault(),pn(he.message.id,L.content)},children:[D.jsx("textarea",{value:L.content,onChange:_e=>Y({id:L.id,content:_e.target.value})}),D.jsxs("div",{className:"composer-actions",children:[D.jsx("button",{type:"button",className:"secondary-button",onClick:()=>Y(null),children:"Cancel"}),D.jsx("button",{children:"Save & rerun"})]})]}):D.jsx(ic,{className:"message-body",content:he.message.content})]})},he.message.id))]}),D.jsxs("form",{className:"composer",onSubmit:At,children:[D.jsx("textarea",{value:N,onChange:he=>z(he.target.value),placeholder:"Ask for an independent review, rival hypotheses, weak links, or the next evidence to gather."}),D.jsxs("div",{className:"composer-actions",children:[D.jsx("button",{type:"button",className:"secondary-button",disabled:!T?.messages.some(he=>he.role==="user")||kt,onClick:Ft,children:"Rerun"}),kt?D.jsx("button",{type:"button",className:"stop-button",onClick:Ut,children:"Stop"}):D.jsx("button",{disabled:!N.trim(),children:"Send"})]})]})]})]})]})}async function An(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 j0(e){return e instanceof Error?e.message:"Unknown error."}function KL(e){return e.role==="assistant"?"Sidecar":e.role==="tool"?e.toolName?`Tool · ${e.toolName}`:"Tool":e.role==="system"?"System":"You"}function JL({run:e}){const t=e.exchanges.filter(n=>n.result).length;return D.jsx("article",{className:"message tool",children:D.jsxs("details",{className:"tool-run-card",children:[D.jsxs("summary",{children:[D.jsxs("span",{className:"tool-summary-main",children:[D.jsx("span",{className:"tool-chip result",children:"Tools"}),D.jsx("strong",{children:"Workspace tools"}),D.jsxs("small",{children:[e.exchanges.length," call",e.exchanges.length===1?"":"s",t>0?` · ${t} result${t===1?"":"s"}`:""]})]}),D.jsx("span",{className:"tool-summary-action",children:"Details"})]}),D.jsx("div",{className:"tool-run-details",children:e.exchanges.map(n=>D.jsx(WL,{exchange:n},n.id))})]})})}function WL({exchange:e}){return D.jsxs("details",{className:"tool-card",children:[D.jsxs("summary",{children:[D.jsxs("span",{className:"tool-summary-main",children:[D.jsx("span",{className:e.result?"tool-chip result":"tool-chip",children:e.result?"Done":"Call"}),D.jsx("strong",{children:e.name})]}),D.jsx("span",{className:"tool-summary-action",children:"Details"})]}),D.jsxs("div",{className:"message-body tool-details",children:[e.call&&D.jsxs("section",{className:"tool-detail-section",children:[D.jsx("h3",{children:"Call"}),D.jsx(ic,{content:e.call.content})]}),e.result&&D.jsxs("section",{className:"tool-detail-section",children:[D.jsx("h3",{children:"Result"}),D.jsx(ic,{content:e.result.content})]})]})]})}function eH(e){if(e.triggers?.length){const t=new Set((e.loadedSkills||[]).map(n=>n.path));return`Workspace skill routing:
|
|
319
|
-
|
|
320
|
-
${e.triggers.map(n=>{const i=t.has(n.skill.path)?"loaded":n.disclosure;return`- \`${n.skill.name}\` — ${n.confidence}; ${i}; ${n.reason}`}).join(`
|
|
321
|
-
`)}`}return`Triggered workspace skills:
|
|
322
|
-
|
|
323
|
-
${(e.skills||[]).map(t=>`- \`${t.name}\` — ${t.description||t.path}`).join(`
|
|
324
|
-
`)}`}function tH({collapsed:e,onResize:t,value:n}){if(e)return null;function i(u){t(Fv(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 D.jsx("div",{"aria-label":"Resize sidebar","aria-orientation":"vertical","aria-valuemax":Uv,"aria-valuemin":Qd,"aria-valuenow":n,className:"sidebar-resize-handle",onKeyDown:s,onPointerDown:l,role:"separator",tabIndex:0,title:"Resize sidebar"})}function nH({containerRef:e,onResize:t,value:n}){function i(u){const f=e.current;if(!f)return;const h=f.getBoundingClientRect();h.height<=0||t(P0((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(P0(n-(u.shiftKey?10:4)))),u.key==="ArrowDown"&&(u.preventDefault(),t(P0(n+(u.shiftKey?10:4))))}return D.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 rH(){const e=localStorage.getItem(Vv);return Fv(e===null?void 0:Number(e),window.innerWidth)}function iH(){const e=localStorage.getItem(Yv);return P0(e===null?void 0:Number(e))}ab.createRoot(document.getElementById("root")).render(D.jsx(QL,{}));
|