openspec-dashboard 0.1.0 → 0.1.1
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.en.md +50 -0
- package/README.md +33 -92
- package/dist/bin/cli.js +41 -10
- package/dist/{chunk-YBLVDJ3Y.js → chunk-JYWT57PM.js} +247 -12
- package/dist/client/assets/index-DFTiJmiZ.css +1 -0
- package/dist/client/assets/index-DMwrcLii.js +322 -0
- package/dist/client/index.html +2 -2
- package/dist/server/index.js +1 -1
- package/package.json +4 -2
- package/dist/client/assets/index-LwI8lMI7.js +0 -97
- package/dist/client/assets/index-keJ4Pk8f.css +0 -1
|
@@ -0,0 +1,322 @@
|
|
|
1
|
+
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const u of s.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&r(u)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();var Tu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Pl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var th={exports:{}},Zu={},nh={exports:{}},de={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var bs=Symbol.for("react.element"),Mg=Symbol.for("react.portal"),Fg=Symbol.for("react.fragment"),Bg=Symbol.for("react.strict_mode"),jg=Symbol.for("react.profiler"),Ug=Symbol.for("react.provider"),Hg=Symbol.for("react.context"),zg=Symbol.for("react.forward_ref"),Yg=Symbol.for("react.suspense"),Vg=Symbol.for("react.memo"),$g=Symbol.for("react.lazy"),dd=Symbol.iterator;function Wg(e){return e===null||typeof e!="object"?null:(e=dd&&e[dd]||e["@@iterator"],typeof e=="function"?e:null)}var rh={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ih=Object.assign,sh={};function ii(e,t,n){this.props=e,this.context=t,this.refs=sh,this.updater=n||rh}ii.prototype.isReactComponent={};ii.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};ii.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function uh(){}uh.prototype=ii.prototype;function Ml(e,t,n){this.props=e,this.context=t,this.refs=sh,this.updater=n||rh}var Fl=Ml.prototype=new uh;Fl.constructor=Ml;ih(Fl,ii.prototype);Fl.isPureReactComponent=!0;var fd=Array.isArray,ah=Object.prototype.hasOwnProperty,Bl={current:null},oh={key:!0,ref:!0,__self:!0,__source:!0};function lh(e,t,n){var r,i={},s=null,u=null;if(t!=null)for(r in t.ref!==void 0&&(u=t.ref),t.key!==void 0&&(s=""+t.key),t)ah.call(t,r)&&!oh.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var o=Array(a),c=0;c<a;c++)o[c]=arguments[c+2];i.children=o}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)i[r]===void 0&&(i[r]=a[r]);return{$$typeof:bs,type:e,key:s,ref:u,props:i,_owner:Bl.current}}function Qg(e,t){return{$$typeof:bs,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function jl(e){return typeof e=="object"&&e!==null&&e.$$typeof===bs}function qg(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var hd=/\/+/g;function Ia(e,t){return typeof e=="object"&&e!==null&&e.key!=null?qg(""+e.key):t.toString(36)}function ru(e,t,n,r,i){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var u=!1;if(e===null)u=!0;else switch(s){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case bs:case Mg:u=!0}}if(u)return u=e,i=i(u),e=r===""?"."+Ia(u,0):r,fd(i)?(n="",e!=null&&(n=e.replace(hd,"$&/")+"/"),ru(i,t,n,"",function(c){return c})):i!=null&&(jl(i)&&(i=Qg(i,n+(!i.key||u&&u.key===i.key?"":(""+i.key).replace(hd,"$&/")+"/")+e)),t.push(i)),1;if(u=0,r=r===""?".":r+":",fd(e))for(var a=0;a<e.length;a++){s=e[a];var o=r+Ia(s,a);u+=ru(s,t,n,o,i)}else if(o=Wg(e),typeof o=="function")for(e=o.call(e),a=0;!(s=e.next()).done;)s=s.value,o=r+Ia(s,a++),u+=ru(s,t,n,o,i);else if(s==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return u}function Ls(e,t,n){if(e==null)return e;var r=[],i=0;return ru(e,r,"","",function(s){return t.call(n,s,i++)}),r}function Gg(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var ut={current:null},iu={transition:null},Kg={ReactCurrentDispatcher:ut,ReactCurrentBatchConfig:iu,ReactCurrentOwner:Bl};function ch(){throw Error("act(...) is not supported in production builds of React.")}de.Children={map:Ls,forEach:function(e,t,n){Ls(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Ls(e,function(){t++}),t},toArray:function(e){return Ls(e,function(t){return t})||[]},only:function(e){if(!jl(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};de.Component=ii;de.Fragment=Fg;de.Profiler=jg;de.PureComponent=Ml;de.StrictMode=Bg;de.Suspense=Yg;de.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Kg;de.act=ch;de.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=ih({},e.props),i=e.key,s=e.ref,u=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,u=Bl.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(o in t)ah.call(t,o)&&!oh.hasOwnProperty(o)&&(r[o]=t[o]===void 0&&a!==void 0?a[o]:t[o])}var o=arguments.length-2;if(o===1)r.children=n;else if(1<o){a=Array(o);for(var c=0;c<o;c++)a[c]=arguments[c+2];r.children=a}return{$$typeof:bs,type:e.type,key:i,ref:s,props:r,_owner:u}};de.createContext=function(e){return e={$$typeof:Hg,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Ug,_context:e},e.Consumer=e};de.createElement=lh;de.createFactory=function(e){var t=lh.bind(null,e);return t.type=e,t};de.createRef=function(){return{current:null}};de.forwardRef=function(e){return{$$typeof:zg,render:e}};de.isValidElement=jl;de.lazy=function(e){return{$$typeof:$g,_payload:{_status:-1,_result:e},_init:Gg}};de.memo=function(e,t){return{$$typeof:Vg,type:e,compare:t===void 0?null:t}};de.startTransition=function(e){var t=iu.transition;iu.transition={};try{e()}finally{iu.transition=t}};de.unstable_act=ch;de.useCallback=function(e,t){return ut.current.useCallback(e,t)};de.useContext=function(e){return ut.current.useContext(e)};de.useDebugValue=function(){};de.useDeferredValue=function(e){return ut.current.useDeferredValue(e)};de.useEffect=function(e,t){return ut.current.useEffect(e,t)};de.useId=function(){return ut.current.useId()};de.useImperativeHandle=function(e,t,n){return ut.current.useImperativeHandle(e,t,n)};de.useInsertionEffect=function(e,t){return ut.current.useInsertionEffect(e,t)};de.useLayoutEffect=function(e,t){return ut.current.useLayoutEffect(e,t)};de.useMemo=function(e,t){return ut.current.useMemo(e,t)};de.useReducer=function(e,t,n){return ut.current.useReducer(e,t,n)};de.useRef=function(e){return ut.current.useRef(e)};de.useState=function(e){return ut.current.useState(e)};de.useSyncExternalStore=function(e,t,n){return ut.current.useSyncExternalStore(e,t,n)};de.useTransition=function(){return ut.current.useTransition()};de.version="18.3.1";nh.exports=de;var R=nh.exports;const Ts=Pl(R);/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-jsx-runtime.production.min.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var Xg=R,Jg=Symbol.for("react.element"),Zg=Symbol.for("react.fragment"),eE=Object.prototype.hasOwnProperty,tE=Xg.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,nE={key:!0,ref:!0,__self:!0,__source:!0};function dh(e,t,n){var r,i={},s=null,u=null;n!==void 0&&(s=""+n),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(u=t.ref);for(r in t)eE.call(t,r)&&!nE.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:Jg,type:e,key:s,ref:u,props:i,_owner:tE.current}}Zu.Fragment=Zg;Zu.jsx=dh;Zu.jsxs=dh;th.exports=Zu;var d=th.exports,_o={},fh={exports:{}},_t={},hh={exports:{}},mh={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.min.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/(function(e){function t(Y,K){var b=Y.length;Y.push(K);e:for(;0<b;){var X=b-1>>>1,ne=Y[X];if(0<i(ne,K))Y[X]=K,Y[b]=ne,b=X;else break e}}function n(Y){return Y.length===0?null:Y[0]}function r(Y){if(Y.length===0)return null;var K=Y[0],b=Y.pop();if(b!==K){Y[0]=b;e:for(var X=0,ne=Y.length,S=ne>>>1;X<S;){var Ee=2*(X+1)-1,ge=Y[Ee],ee=Ee+1,nt=Y[ee];if(0>i(ge,b))ee<ne&&0>i(nt,ge)?(Y[X]=nt,Y[ee]=b,X=ee):(Y[X]=ge,Y[Ee]=b,X=Ee);else if(ee<ne&&0>i(nt,b))Y[X]=nt,Y[ee]=b,X=ee;else break e}}return K}function i(Y,K){var b=Y.sortIndex-K.sortIndex;return b!==0?b:Y.id-K.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var u=Date,a=u.now();e.unstable_now=function(){return u.now()-a}}var o=[],c=[],h=1,f=null,m=3,p=!1,x=!1,k=!1,v=typeof setTimeout=="function"?setTimeout:null,E=typeof clearTimeout=="function"?clearTimeout:null,T=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(Y){for(var K=n(c);K!==null;){if(K.callback===null)r(c);else if(K.startTime<=Y)r(c),K.sortIndex=K.expirationTime,t(o,K);else break;K=n(c)}}function w(Y){if(k=!1,g(Y),!x)if(n(o)!==null)x=!0,ie(O);else{var K=n(c);K!==null&&fe(w,K.startTime-Y)}}function O(Y,K){x=!1,k&&(k=!1,E(I),I=-1),p=!0;var b=m;try{for(g(K),f=n(o);f!==null&&(!(f.expirationTime>K)||Y&&!V());){var X=f.callback;if(typeof X=="function"){f.callback=null,m=f.priorityLevel;var ne=X(f.expirationTime<=K);K=e.unstable_now(),typeof ne=="function"?f.callback=ne:f===n(o)&&r(o),g(K)}else r(o);f=n(o)}if(f!==null)var S=!0;else{var Ee=n(c);Ee!==null&&fe(w,Ee.startTime-K),S=!1}return S}finally{f=null,m=b,p=!1}}var N=!1,P=null,I=-1,F=5,A=-1;function V(){return!(e.unstable_now()-A<F)}function j(){if(P!==null){var Y=e.unstable_now();A=Y;var K=!0;try{K=P(!0,Y)}finally{K?te():(N=!1,P=null)}}else N=!1}var te;if(typeof T=="function")te=function(){T(j)};else if(typeof MessageChannel<"u"){var ae=new MessageChannel,W=ae.port2;ae.port1.onmessage=j,te=function(){W.postMessage(null)}}else te=function(){v(j,0)};function ie(Y){P=Y,N||(N=!0,te())}function fe(Y,K){I=v(function(){Y(e.unstable_now())},K)}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(Y){Y.callback=null},e.unstable_continueExecution=function(){x||p||(x=!0,ie(O))},e.unstable_forceFrameRate=function(Y){0>Y||125<Y?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):F=0<Y?Math.floor(1e3/Y):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(o)},e.unstable_next=function(Y){switch(m){case 1:case 2:case 3:var K=3;break;default:K=m}var b=m;m=K;try{return Y()}finally{m=b}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(Y,K){switch(Y){case 1:case 2:case 3:case 4:case 5:break;default:Y=3}var b=m;m=Y;try{return K()}finally{m=b}},e.unstable_scheduleCallback=function(Y,K,b){var X=e.unstable_now();switch(typeof b=="object"&&b!==null?(b=b.delay,b=typeof b=="number"&&0<b?X+b:X):b=X,Y){case 1:var ne=-1;break;case 2:ne=250;break;case 5:ne=1073741823;break;case 4:ne=1e4;break;default:ne=5e3}return ne=b+ne,Y={id:h++,callback:K,priorityLevel:Y,startTime:b,expirationTime:ne,sortIndex:-1},b>X?(Y.sortIndex=b,t(c,Y),n(o)===null&&Y===n(c)&&(k?(E(I),I=-1):k=!0,fe(w,b-X))):(Y.sortIndex=ne,t(o,Y),x||p||(x=!0,ie(O))),Y},e.unstable_shouldYield=V,e.unstable_wrapCallback=function(Y){var K=m;return function(){var b=m;m=K;try{return Y.apply(this,arguments)}finally{m=b}}}})(mh);hh.exports=mh;var rE=hh.exports;/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.min.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
32
|
+
* LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/var iE=R,kt=rE;function H(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var ph=new Set,Ki={};function pr(e,t){Qr(e,t),Qr(e+"Capture",t)}function Qr(e,t){for(Ki[e]=t,e=0;e<t.length;e++)ph.add(t[e])}var hn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),No=Object.prototype.hasOwnProperty,sE=/^[: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]*$/,md={},pd={};function uE(e){return No.call(pd,e)?!0:No.call(md,e)?!1:sE.test(e)?pd[e]=!0:(md[e]=!0,!1)}function aE(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function oE(e,t,n,r){if(t===null||typeof t>"u"||aE(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function at(e,t,n,r,i,s,u){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=u}var qe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){qe[e]=new at(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];qe[t]=new at(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){qe[e]=new at(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){qe[e]=new at(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){qe[e]=new at(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){qe[e]=new at(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){qe[e]=new at(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){qe[e]=new at(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){qe[e]=new at(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ul=/[\-:]([a-z])/g;function Hl(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Ul,Hl);qe[t]=new at(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Ul,Hl);qe[t]=new at(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Ul,Hl);qe[t]=new at(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){qe[e]=new at(e,1,!1,e.toLowerCase(),null,!1,!1)});qe.xlinkHref=new at("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){qe[e]=new at(e,1,!1,e.toLowerCase(),null,!0,!0)});function zl(e,t,n,r){var i=qe.hasOwnProperty(t)?qe[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(oE(t,n,i,r)&&(n=null),r||i===null?uE(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var En=iE.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Os=Symbol.for("react.element"),Ar=Symbol.for("react.portal"),wr=Symbol.for("react.fragment"),Yl=Symbol.for("react.strict_mode"),Co=Symbol.for("react.profiler"),gh=Symbol.for("react.provider"),Eh=Symbol.for("react.context"),Vl=Symbol.for("react.forward_ref"),So=Symbol.for("react.suspense"),Ao=Symbol.for("react.suspense_list"),$l=Symbol.for("react.memo"),Cn=Symbol.for("react.lazy"),xh=Symbol.for("react.offscreen"),gd=Symbol.iterator;function pi(e){return e===null||typeof e!="object"?null:(e=gd&&e[gd]||e["@@iterator"],typeof e=="function"?e:null)}var Oe=Object.assign,La;function wi(e){if(La===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);La=t&&t[1]||""}return`
|
|
34
|
+
`+La+e}var Oa=!1;function Ra(e,t){if(!e||Oa)return"";Oa=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var i=c.stack.split(`
|
|
35
|
+
`),s=r.stack.split(`
|
|
36
|
+
`),u=i.length-1,a=s.length-1;1<=u&&0<=a&&i[u]!==s[a];)a--;for(;1<=u&&0<=a;u--,a--)if(i[u]!==s[a]){if(u!==1||a!==1)do if(u--,a--,0>a||i[u]!==s[a]){var o=`
|
|
37
|
+
`+i[u].replace(" at new "," at ");return e.displayName&&o.includes("<anonymous>")&&(o=o.replace("<anonymous>",e.displayName)),o}while(1<=u&&0<=a);break}}}finally{Oa=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?wi(e):""}function lE(e){switch(e.tag){case 5:return wi(e.type);case 16:return wi("Lazy");case 13:return wi("Suspense");case 19:return wi("SuspenseList");case 0:case 2:case 15:return e=Ra(e.type,!1),e;case 11:return e=Ra(e.type.render,!1),e;case 1:return e=Ra(e.type,!0),e;default:return""}}function wo(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case wr:return"Fragment";case Ar:return"Portal";case Co:return"Profiler";case Yl:return"StrictMode";case So:return"Suspense";case Ao:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Eh:return(e.displayName||"Context")+".Consumer";case gh:return(e._context.displayName||"Context")+".Provider";case Vl:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case $l:return t=e.displayName||null,t!==null?t:wo(e.type)||"Memo";case Cn:t=e._payload,e=e._init;try{return wo(e(t))}catch{}}return null}function cE(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return wo(t);case 8:return t===Yl?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Un(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function bh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function dE(e){var t=bh(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(u){r=""+u,s.call(this,u)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(u){r=""+u},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Rs(e){e._valueTracker||(e._valueTracker=dE(e))}function Th(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=bh(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function yu(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function vo(e,t){var n=t.checked;return Oe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ed(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Un(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function yh(e,t){t=t.checked,t!=null&&zl(e,"checked",t,!1)}function Io(e,t){yh(e,t);var n=Un(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Lo(e,t.type,n):t.hasOwnProperty("defaultValue")&&Lo(e,t.type,Un(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function xd(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Lo(e,t,n){(t!=="number"||yu(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var vi=Array.isArray;function Ur(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Un(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Oo(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(H(91));return Oe({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function bd(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(H(92));if(vi(n)){if(1<n.length)throw Error(H(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Un(n)}}function kh(e,t){var n=Un(t.value),r=Un(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Td(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function _h(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ro(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?_h(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Ds,Nh=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Ds=Ds||document.createElement("div"),Ds.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ds.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Xi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ri={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},fE=["Webkit","ms","Moz","O"];Object.keys(Ri).forEach(function(e){fE.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ri[t]=Ri[e]})});function Ch(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ri.hasOwnProperty(e)&&Ri[e]?(""+t).trim():t+"px"}function Sh(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Ch(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var hE=Oe({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Do(e,t){if(t){if(hE[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(H(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(H(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(H(61))}if(t.style!=null&&typeof t.style!="object")throw Error(H(62))}}function Po(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Mo=null;function Wl(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Fo=null,Hr=null,zr=null;function yd(e){if(e=_s(e)){if(typeof Fo!="function")throw Error(H(280));var t=e.stateNode;t&&(t=ia(t),Fo(e.stateNode,e.type,t))}}function Ah(e){Hr?zr?zr.push(e):zr=[e]:Hr=e}function wh(){if(Hr){var e=Hr,t=zr;if(zr=Hr=null,yd(e),t)for(e=0;e<t.length;e++)yd(t[e])}}function vh(e,t){return e(t)}function Ih(){}var Da=!1;function Lh(e,t,n){if(Da)return e(t,n);Da=!0;try{return vh(e,t,n)}finally{Da=!1,(Hr!==null||zr!==null)&&(Ih(),wh())}}function Ji(e,t){var n=e.stateNode;if(n===null)return null;var r=ia(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(H(231,t,typeof n));return n}var Bo=!1;if(hn)try{var gi={};Object.defineProperty(gi,"passive",{get:function(){Bo=!0}}),window.addEventListener("test",gi,gi),window.removeEventListener("test",gi,gi)}catch{Bo=!1}function mE(e,t,n,r,i,s,u,a,o){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(h){this.onError(h)}}var Di=!1,ku=null,_u=!1,jo=null,pE={onError:function(e){Di=!0,ku=e}};function gE(e,t,n,r,i,s,u,a,o){Di=!1,ku=null,mE.apply(pE,arguments)}function EE(e,t,n,r,i,s,u,a,o){if(gE.apply(this,arguments),Di){if(Di){var c=ku;Di=!1,ku=null}else throw Error(H(198));_u||(_u=!0,jo=c)}}function gr(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Oh(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function kd(e){if(gr(e)!==e)throw Error(H(188))}function xE(e){var t=e.alternate;if(!t){if(t=gr(e),t===null)throw Error(H(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var s=i.alternate;if(s===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===n)return kd(i),e;if(s===r)return kd(i),t;s=s.sibling}throw Error(H(188))}if(n.return!==r.return)n=i,r=s;else{for(var u=!1,a=i.child;a;){if(a===n){u=!0,n=i,r=s;break}if(a===r){u=!0,r=i,n=s;break}a=a.sibling}if(!u){for(a=s.child;a;){if(a===n){u=!0,n=s,r=i;break}if(a===r){u=!0,r=s,n=i;break}a=a.sibling}if(!u)throw Error(H(189))}}if(n.alternate!==r)throw Error(H(190))}if(n.tag!==3)throw Error(H(188));return n.stateNode.current===n?e:t}function Rh(e){return e=xE(e),e!==null?Dh(e):null}function Dh(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Dh(e);if(t!==null)return t;e=e.sibling}return null}var Ph=kt.unstable_scheduleCallback,_d=kt.unstable_cancelCallback,bE=kt.unstable_shouldYield,TE=kt.unstable_requestPaint,Pe=kt.unstable_now,yE=kt.unstable_getCurrentPriorityLevel,Ql=kt.unstable_ImmediatePriority,Mh=kt.unstable_UserBlockingPriority,Nu=kt.unstable_NormalPriority,kE=kt.unstable_LowPriority,Fh=kt.unstable_IdlePriority,ea=null,Xt=null;function _E(e){if(Xt&&typeof Xt.onCommitFiberRoot=="function")try{Xt.onCommitFiberRoot(ea,e,void 0,(e.current.flags&128)===128)}catch{}}var jt=Math.clz32?Math.clz32:SE,NE=Math.log,CE=Math.LN2;function SE(e){return e>>>=0,e===0?32:31-(NE(e)/CE|0)|0}var Ps=64,Ms=4194304;function Ii(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Cu(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,s=e.pingedLanes,u=n&268435455;if(u!==0){var a=u&~i;a!==0?r=Ii(a):(s&=u,s!==0&&(r=Ii(s)))}else u=n&~i,u!==0?r=Ii(u):s!==0&&(r=Ii(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,s=t&-t,i>=s||i===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-jt(t),i=1<<n,r|=e[n],t&=~i;return r}function AE(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function wE(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes;0<s;){var u=31-jt(s),a=1<<u,o=i[u];o===-1?(!(a&n)||a&r)&&(i[u]=AE(a,t)):o<=t&&(e.expiredLanes|=a),s&=~a}}function Uo(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Bh(){var e=Ps;return Ps<<=1,!(Ps&4194240)&&(Ps=64),e}function Pa(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ys(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-jt(t),e[t]=n}function vE(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-jt(n),s=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~s}}function ql(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-jt(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var be=0;function jh(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Uh,Gl,Hh,zh,Yh,Ho=!1,Fs=[],On=null,Rn=null,Dn=null,Zi=new Map,es=new Map,An=[],IE="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 submit".split(" ");function Nd(e,t){switch(e){case"focusin":case"focusout":On=null;break;case"dragenter":case"dragleave":Rn=null;break;case"mouseover":case"mouseout":Dn=null;break;case"pointerover":case"pointerout":Zi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":es.delete(t.pointerId)}}function Ei(e,t,n,r,i,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[i]},t!==null&&(t=_s(t),t!==null&&Gl(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function LE(e,t,n,r,i){switch(t){case"focusin":return On=Ei(On,e,t,n,r,i),!0;case"dragenter":return Rn=Ei(Rn,e,t,n,r,i),!0;case"mouseover":return Dn=Ei(Dn,e,t,n,r,i),!0;case"pointerover":var s=i.pointerId;return Zi.set(s,Ei(Zi.get(s)||null,e,t,n,r,i)),!0;case"gotpointercapture":return s=i.pointerId,es.set(s,Ei(es.get(s)||null,e,t,n,r,i)),!0}return!1}function Vh(e){var t=tr(e.target);if(t!==null){var n=gr(t);if(n!==null){if(t=n.tag,t===13){if(t=Oh(n),t!==null){e.blockedOn=t,Yh(e.priority,function(){Hh(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function su(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=zo(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Mo=r,n.target.dispatchEvent(r),Mo=null}else return t=_s(n),t!==null&&Gl(t),e.blockedOn=n,!1;t.shift()}return!0}function Cd(e,t,n){su(e)&&n.delete(t)}function OE(){Ho=!1,On!==null&&su(On)&&(On=null),Rn!==null&&su(Rn)&&(Rn=null),Dn!==null&&su(Dn)&&(Dn=null),Zi.forEach(Cd),es.forEach(Cd)}function xi(e,t){e.blockedOn===t&&(e.blockedOn=null,Ho||(Ho=!0,kt.unstable_scheduleCallback(kt.unstable_NormalPriority,OE)))}function ts(e){function t(i){return xi(i,e)}if(0<Fs.length){xi(Fs[0],e);for(var n=1;n<Fs.length;n++){var r=Fs[n];r.blockedOn===e&&(r.blockedOn=null)}}for(On!==null&&xi(On,e),Rn!==null&&xi(Rn,e),Dn!==null&&xi(Dn,e),Zi.forEach(t),es.forEach(t),n=0;n<An.length;n++)r=An[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<An.length&&(n=An[0],n.blockedOn===null);)Vh(n),n.blockedOn===null&&An.shift()}var Yr=En.ReactCurrentBatchConfig,Su=!0;function RE(e,t,n,r){var i=be,s=Yr.transition;Yr.transition=null;try{be=1,Kl(e,t,n,r)}finally{be=i,Yr.transition=s}}function DE(e,t,n,r){var i=be,s=Yr.transition;Yr.transition=null;try{be=4,Kl(e,t,n,r)}finally{be=i,Yr.transition=s}}function Kl(e,t,n,r){if(Su){var i=zo(e,t,n,r);if(i===null)$a(e,t,r,Au,n),Nd(e,r);else if(LE(i,e,t,n,r))r.stopPropagation();else if(Nd(e,r),t&4&&-1<IE.indexOf(e)){for(;i!==null;){var s=_s(i);if(s!==null&&Uh(s),s=zo(e,t,n,r),s===null&&$a(e,t,r,Au,n),s===i)break;i=s}i!==null&&r.stopPropagation()}else $a(e,t,r,null,n)}}var Au=null;function zo(e,t,n,r){if(Au=null,e=Wl(r),e=tr(e),e!==null)if(t=gr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Oh(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Au=e,null}function $h(e){switch(e){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(yE()){case Ql:return 1;case Mh:return 4;case Nu:case kE:return 16;case Fh:return 536870912;default:return 16}default:return 16}}var vn=null,Xl=null,uu=null;function Wh(){if(uu)return uu;var e,t=Xl,n=t.length,r,i="value"in vn?vn.value:vn.textContent,s=i.length;for(e=0;e<n&&t[e]===i[e];e++);var u=n-e;for(r=1;r<=u&&t[n-r]===i[s-r];r++);return uu=i.slice(e,1<r?1-r:void 0)}function au(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Bs(){return!0}function Sd(){return!1}function Nt(e){function t(n,r,i,s,u){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=s,this.target=u,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(s):s[a]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?Bs:Sd,this.isPropagationStopped=Sd,this}return Oe(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Bs)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Bs)},persist:function(){},isPersistent:Bs}),t}var si={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Jl=Nt(si),ks=Oe({},si,{view:0,detail:0}),PE=Nt(ks),Ma,Fa,bi,ta=Oe({},ks,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Zl,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==bi&&(bi&&e.type==="mousemove"?(Ma=e.screenX-bi.screenX,Fa=e.screenY-bi.screenY):Fa=Ma=0,bi=e),Ma)},movementY:function(e){return"movementY"in e?e.movementY:Fa}}),Ad=Nt(ta),ME=Oe({},ta,{dataTransfer:0}),FE=Nt(ME),BE=Oe({},ks,{relatedTarget:0}),Ba=Nt(BE),jE=Oe({},si,{animationName:0,elapsedTime:0,pseudoElement:0}),UE=Nt(jE),HE=Oe({},si,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),zE=Nt(HE),YE=Oe({},si,{data:0}),wd=Nt(YE),VE={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},$E={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"},WE={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function QE(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=WE[e])?!!t[e]:!1}function Zl(){return QE}var qE=Oe({},ks,{key:function(e){if(e.key){var t=VE[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=au(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?$E[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Zl,charCode:function(e){return e.type==="keypress"?au(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?au(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),GE=Nt(qE),KE=Oe({},ta,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),vd=Nt(KE),XE=Oe({},ks,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Zl}),JE=Nt(XE),ZE=Oe({},si,{propertyName:0,elapsedTime:0,pseudoElement:0}),e2=Nt(ZE),t2=Oe({},ta,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),n2=Nt(t2),r2=[9,13,27,32],ec=hn&&"CompositionEvent"in window,Pi=null;hn&&"documentMode"in document&&(Pi=document.documentMode);var i2=hn&&"TextEvent"in window&&!Pi,Qh=hn&&(!ec||Pi&&8<Pi&&11>=Pi),Id=" ",Ld=!1;function qh(e,t){switch(e){case"keyup":return r2.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Gh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var vr=!1;function s2(e,t){switch(e){case"compositionend":return Gh(t);case"keypress":return t.which!==32?null:(Ld=!0,Id);case"textInput":return e=t.data,e===Id&&Ld?null:e;default:return null}}function u2(e,t){if(vr)return e==="compositionend"||!ec&&qh(e,t)?(e=Wh(),uu=Xl=vn=null,vr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Qh&&t.locale!=="ko"?null:t.data;default:return null}}var a2={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 Od(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!a2[e.type]:t==="textarea"}function Kh(e,t,n,r){Ah(r),t=wu(t,"onChange"),0<t.length&&(n=new Jl("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Mi=null,ns=null;function o2(e){am(e,0)}function na(e){var t=Or(e);if(Th(t))return e}function l2(e,t){if(e==="change")return t}var Xh=!1;if(hn){var ja;if(hn){var Ua="oninput"in document;if(!Ua){var Rd=document.createElement("div");Rd.setAttribute("oninput","return;"),Ua=typeof Rd.oninput=="function"}ja=Ua}else ja=!1;Xh=ja&&(!document.documentMode||9<document.documentMode)}function Dd(){Mi&&(Mi.detachEvent("onpropertychange",Jh),ns=Mi=null)}function Jh(e){if(e.propertyName==="value"&&na(ns)){var t=[];Kh(t,ns,e,Wl(e)),Lh(o2,t)}}function c2(e,t,n){e==="focusin"?(Dd(),Mi=t,ns=n,Mi.attachEvent("onpropertychange",Jh)):e==="focusout"&&Dd()}function d2(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return na(ns)}function f2(e,t){if(e==="click")return na(t)}function h2(e,t){if(e==="input"||e==="change")return na(t)}function m2(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var zt=typeof Object.is=="function"?Object.is:m2;function rs(e,t){if(zt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!No.call(t,i)||!zt(e[i],t[i]))return!1}return!0}function Pd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Md(e,t){var n=Pd(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Pd(n)}}function Zh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Zh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function em(){for(var e=window,t=yu();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=yu(e.document)}return t}function tc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function p2(e){var t=em(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Zh(n.ownerDocument.documentElement,n)){if(r!==null&&tc(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,s=Math.min(r.start,i);r=r.end===void 0?s:Math.min(r.end,i),!e.extend&&s>r&&(i=r,r=s,s=i),i=Md(n,s);var u=Md(n,r);i&&u&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==u.node||e.focusOffset!==u.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(u.node,u.offset)):(t.setEnd(u.node,u.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var g2=hn&&"documentMode"in document&&11>=document.documentMode,Ir=null,Yo=null,Fi=null,Vo=!1;function Fd(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Vo||Ir==null||Ir!==yu(r)||(r=Ir,"selectionStart"in r&&tc(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Fi&&rs(Fi,r)||(Fi=r,r=wu(Yo,"onSelect"),0<r.length&&(t=new Jl("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Ir)))}function js(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Lr={animationend:js("Animation","AnimationEnd"),animationiteration:js("Animation","AnimationIteration"),animationstart:js("Animation","AnimationStart"),transitionend:js("Transition","TransitionEnd")},Ha={},tm={};hn&&(tm=document.createElement("div").style,"AnimationEvent"in window||(delete Lr.animationend.animation,delete Lr.animationiteration.animation,delete Lr.animationstart.animation),"TransitionEvent"in window||delete Lr.transitionend.transition);function ra(e){if(Ha[e])return Ha[e];if(!Lr[e])return e;var t=Lr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in tm)return Ha[e]=t[n];return e}var nm=ra("animationend"),rm=ra("animationiteration"),im=ra("animationstart"),sm=ra("transitionend"),um=new Map,Bd="abort auxClick 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(" ");function Yn(e,t){um.set(e,t),pr(t,[e])}for(var za=0;za<Bd.length;za++){var Ya=Bd[za],E2=Ya.toLowerCase(),x2=Ya[0].toUpperCase()+Ya.slice(1);Yn(E2,"on"+x2)}Yn(nm,"onAnimationEnd");Yn(rm,"onAnimationIteration");Yn(im,"onAnimationStart");Yn("dblclick","onDoubleClick");Yn("focusin","onFocus");Yn("focusout","onBlur");Yn(sm,"onTransitionEnd");Qr("onMouseEnter",["mouseout","mouseover"]);Qr("onMouseLeave",["mouseout","mouseover"]);Qr("onPointerEnter",["pointerout","pointerover"]);Qr("onPointerLeave",["pointerout","pointerover"]);pr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));pr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));pr("onBeforeInput",["compositionend","keypress","textInput","paste"]);pr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));pr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));pr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Li="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(" "),b2=new Set("cancel close invalid load scroll toggle".split(" ").concat(Li));function jd(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,EE(r,t,void 0,e),e.currentTarget=null}function am(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var s=void 0;if(t)for(var u=r.length-1;0<=u;u--){var a=r[u],o=a.instance,c=a.currentTarget;if(a=a.listener,o!==s&&i.isPropagationStopped())break e;jd(i,a,c),s=o}else for(u=0;u<r.length;u++){if(a=r[u],o=a.instance,c=a.currentTarget,a=a.listener,o!==s&&i.isPropagationStopped())break e;jd(i,a,c),s=o}}}if(_u)throw e=jo,_u=!1,jo=null,e}function Se(e,t){var n=t[Go];n===void 0&&(n=t[Go]=new Set);var r=e+"__bubble";n.has(r)||(om(t,e,2,!1),n.add(r))}function Va(e,t,n){var r=0;t&&(r|=4),om(n,e,r,t)}var Us="_reactListening"+Math.random().toString(36).slice(2);function is(e){if(!e[Us]){e[Us]=!0,ph.forEach(function(n){n!=="selectionchange"&&(b2.has(n)||Va(n,!1,e),Va(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Us]||(t[Us]=!0,Va("selectionchange",!1,t))}}function om(e,t,n,r){switch($h(t)){case 1:var i=RE;break;case 4:i=DE;break;default:i=Kl}n=i.bind(null,t,n,e),i=void 0,!Bo||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function $a(e,t,n,r,i){var s=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var u=r.tag;if(u===3||u===4){var a=r.stateNode.containerInfo;if(a===i||a.nodeType===8&&a.parentNode===i)break;if(u===4)for(u=r.return;u!==null;){var o=u.tag;if((o===3||o===4)&&(o=u.stateNode.containerInfo,o===i||o.nodeType===8&&o.parentNode===i))return;u=u.return}for(;a!==null;){if(u=tr(a),u===null)return;if(o=u.tag,o===5||o===6){r=s=u;continue e}a=a.parentNode}}r=r.return}Lh(function(){var c=s,h=Wl(n),f=[];e:{var m=um.get(e);if(m!==void 0){var p=Jl,x=e;switch(e){case"keypress":if(au(n)===0)break e;case"keydown":case"keyup":p=GE;break;case"focusin":x="focus",p=Ba;break;case"focusout":x="blur",p=Ba;break;case"beforeblur":case"afterblur":p=Ba;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=Ad;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=FE;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=JE;break;case nm:case rm:case im:p=UE;break;case sm:p=e2;break;case"scroll":p=PE;break;case"wheel":p=n2;break;case"copy":case"cut":case"paste":p=zE;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=vd}var k=(t&4)!==0,v=!k&&e==="scroll",E=k?m!==null?m+"Capture":null:m;k=[];for(var T=c,g;T!==null;){g=T;var w=g.stateNode;if(g.tag===5&&w!==null&&(g=w,E!==null&&(w=Ji(T,E),w!=null&&k.push(ss(T,w,g)))),v)break;T=T.return}0<k.length&&(m=new p(m,x,null,n,h),f.push({event:m,listeners:k}))}}if(!(t&7)){e:{if(m=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",m&&n!==Mo&&(x=n.relatedTarget||n.fromElement)&&(tr(x)||x[mn]))break e;if((p||m)&&(m=h.window===h?h:(m=h.ownerDocument)?m.defaultView||m.parentWindow:window,p?(x=n.relatedTarget||n.toElement,p=c,x=x?tr(x):null,x!==null&&(v=gr(x),x!==v||x.tag!==5&&x.tag!==6)&&(x=null)):(p=null,x=c),p!==x)){if(k=Ad,w="onMouseLeave",E="onMouseEnter",T="mouse",(e==="pointerout"||e==="pointerover")&&(k=vd,w="onPointerLeave",E="onPointerEnter",T="pointer"),v=p==null?m:Or(p),g=x==null?m:Or(x),m=new k(w,T+"leave",p,n,h),m.target=v,m.relatedTarget=g,w=null,tr(h)===c&&(k=new k(E,T+"enter",x,n,h),k.target=g,k.relatedTarget=v,w=k),v=w,p&&x)t:{for(k=p,E=x,T=0,g=k;g;g=Nr(g))T++;for(g=0,w=E;w;w=Nr(w))g++;for(;0<T-g;)k=Nr(k),T--;for(;0<g-T;)E=Nr(E),g--;for(;T--;){if(k===E||E!==null&&k===E.alternate)break t;k=Nr(k),E=Nr(E)}k=null}else k=null;p!==null&&Ud(f,m,p,k,!1),x!==null&&v!==null&&Ud(f,v,x,k,!0)}}e:{if(m=c?Or(c):window,p=m.nodeName&&m.nodeName.toLowerCase(),p==="select"||p==="input"&&m.type==="file")var O=l2;else if(Od(m))if(Xh)O=h2;else{O=d2;var N=c2}else(p=m.nodeName)&&p.toLowerCase()==="input"&&(m.type==="checkbox"||m.type==="radio")&&(O=f2);if(O&&(O=O(e,c))){Kh(f,O,n,h);break e}N&&N(e,m,c),e==="focusout"&&(N=m._wrapperState)&&N.controlled&&m.type==="number"&&Lo(m,"number",m.value)}switch(N=c?Or(c):window,e){case"focusin":(Od(N)||N.contentEditable==="true")&&(Ir=N,Yo=c,Fi=null);break;case"focusout":Fi=Yo=Ir=null;break;case"mousedown":Vo=!0;break;case"contextmenu":case"mouseup":case"dragend":Vo=!1,Fd(f,n,h);break;case"selectionchange":if(g2)break;case"keydown":case"keyup":Fd(f,n,h)}var P;if(ec)e:{switch(e){case"compositionstart":var I="onCompositionStart";break e;case"compositionend":I="onCompositionEnd";break e;case"compositionupdate":I="onCompositionUpdate";break e}I=void 0}else vr?qh(e,n)&&(I="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(I="onCompositionStart");I&&(Qh&&n.locale!=="ko"&&(vr||I!=="onCompositionStart"?I==="onCompositionEnd"&&vr&&(P=Wh()):(vn=h,Xl="value"in vn?vn.value:vn.textContent,vr=!0)),N=wu(c,I),0<N.length&&(I=new wd(I,e,null,n,h),f.push({event:I,listeners:N}),P?I.data=P:(P=Gh(n),P!==null&&(I.data=P)))),(P=i2?s2(e,n):u2(e,n))&&(c=wu(c,"onBeforeInput"),0<c.length&&(h=new wd("onBeforeInput","beforeinput",null,n,h),f.push({event:h,listeners:c}),h.data=P))}am(f,t)})}function ss(e,t,n){return{instance:e,listener:t,currentTarget:n}}function wu(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,s=i.stateNode;i.tag===5&&s!==null&&(i=s,s=Ji(e,n),s!=null&&r.unshift(ss(e,s,i)),s=Ji(e,t),s!=null&&r.push(ss(e,s,i))),e=e.return}return r}function Nr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Ud(e,t,n,r,i){for(var s=t._reactName,u=[];n!==null&&n!==r;){var a=n,o=a.alternate,c=a.stateNode;if(o!==null&&o===r)break;a.tag===5&&c!==null&&(a=c,i?(o=Ji(n,s),o!=null&&u.unshift(ss(n,o,a))):i||(o=Ji(n,s),o!=null&&u.push(ss(n,o,a)))),n=n.return}u.length!==0&&e.push({event:t,listeners:u})}var T2=/\r\n?/g,y2=/\u0000|\uFFFD/g;function Hd(e){return(typeof e=="string"?e:""+e).replace(T2,`
|
|
38
|
+
`).replace(y2,"")}function Hs(e,t,n){if(t=Hd(t),Hd(e)!==t&&n)throw Error(H(425))}function vu(){}var $o=null,Wo=null;function Qo(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var qo=typeof setTimeout=="function"?setTimeout:void 0,k2=typeof clearTimeout=="function"?clearTimeout:void 0,zd=typeof Promise=="function"?Promise:void 0,_2=typeof queueMicrotask=="function"?queueMicrotask:typeof zd<"u"?function(e){return zd.resolve(null).then(e).catch(N2)}:qo;function N2(e){setTimeout(function(){throw e})}function Wa(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),ts(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);ts(t)}function Pn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Yd(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var ui=Math.random().toString(36).slice(2),Kt="__reactFiber$"+ui,us="__reactProps$"+ui,mn="__reactContainer$"+ui,Go="__reactEvents$"+ui,C2="__reactListeners$"+ui,S2="__reactHandles$"+ui;function tr(e){var t=e[Kt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[mn]||n[Kt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Yd(e);e!==null;){if(n=e[Kt])return n;e=Yd(e)}return t}e=n,n=e.parentNode}return null}function _s(e){return e=e[Kt]||e[mn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Or(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(H(33))}function ia(e){return e[us]||null}var Ko=[],Rr=-1;function Vn(e){return{current:e}}function Ae(e){0>Rr||(e.current=Ko[Rr],Ko[Rr]=null,Rr--)}function Ne(e,t){Rr++,Ko[Rr]=e.current,e.current=t}var Hn={},Ze=Vn(Hn),ft=Vn(!1),or=Hn;function qr(e,t){var n=e.type.contextTypes;if(!n)return Hn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in n)i[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function ht(e){return e=e.childContextTypes,e!=null}function Iu(){Ae(ft),Ae(Ze)}function Vd(e,t,n){if(Ze.current!==Hn)throw Error(H(168));Ne(Ze,t),Ne(ft,n)}function lm(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(H(108,cE(e)||"Unknown",i));return Oe({},n,r)}function Lu(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Hn,or=Ze.current,Ne(Ze,e),Ne(ft,ft.current),!0}function $d(e,t,n){var r=e.stateNode;if(!r)throw Error(H(169));n?(e=lm(e,t,or),r.__reactInternalMemoizedMergedChildContext=e,Ae(ft),Ae(Ze),Ne(Ze,e)):Ae(ft),Ne(ft,n)}var on=null,sa=!1,Qa=!1;function cm(e){on===null?on=[e]:on.push(e)}function A2(e){sa=!0,cm(e)}function $n(){if(!Qa&&on!==null){Qa=!0;var e=0,t=be;try{var n=on;for(be=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}on=null,sa=!1}catch(i){throw on!==null&&(on=on.slice(e+1)),Ph(Ql,$n),i}finally{be=t,Qa=!1}}return null}var Dr=[],Pr=0,Ou=null,Ru=0,Ct=[],St=0,lr=null,cn=1,dn="";function Jn(e,t){Dr[Pr++]=Ru,Dr[Pr++]=Ou,Ou=e,Ru=t}function dm(e,t,n){Ct[St++]=cn,Ct[St++]=dn,Ct[St++]=lr,lr=e;var r=cn;e=dn;var i=32-jt(r)-1;r&=~(1<<i),n+=1;var s=32-jt(t)+i;if(30<s){var u=i-i%5;s=(r&(1<<u)-1).toString(32),r>>=u,i-=u,cn=1<<32-jt(t)+i|n<<i|r,dn=s+e}else cn=1<<s|n<<i|r,dn=e}function nc(e){e.return!==null&&(Jn(e,1),dm(e,1,0))}function rc(e){for(;e===Ou;)Ou=Dr[--Pr],Dr[Pr]=null,Ru=Dr[--Pr],Dr[Pr]=null;for(;e===lr;)lr=Ct[--St],Ct[St]=null,dn=Ct[--St],Ct[St]=null,cn=Ct[--St],Ct[St]=null}var Tt=null,bt=null,ve=!1,Bt=null;function fm(e,t){var n=vt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Wd(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Tt=e,bt=Pn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Tt=e,bt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=lr!==null?{id:cn,overflow:dn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=vt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Tt=e,bt=null,!0):!1;default:return!1}}function Xo(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Jo(e){if(ve){var t=bt;if(t){var n=t;if(!Wd(e,t)){if(Xo(e))throw Error(H(418));t=Pn(n.nextSibling);var r=Tt;t&&Wd(e,t)?fm(r,n):(e.flags=e.flags&-4097|2,ve=!1,Tt=e)}}else{if(Xo(e))throw Error(H(418));e.flags=e.flags&-4097|2,ve=!1,Tt=e}}}function Qd(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Tt=e}function zs(e){if(e!==Tt)return!1;if(!ve)return Qd(e),ve=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Qo(e.type,e.memoizedProps)),t&&(t=bt)){if(Xo(e))throw hm(),Error(H(418));for(;t;)fm(e,t),t=Pn(t.nextSibling)}if(Qd(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(H(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){bt=Pn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}bt=null}}else bt=Tt?Pn(e.stateNode.nextSibling):null;return!0}function hm(){for(var e=bt;e;)e=Pn(e.nextSibling)}function Gr(){bt=Tt=null,ve=!1}function ic(e){Bt===null?Bt=[e]:Bt.push(e)}var w2=En.ReactCurrentBatchConfig;function Ti(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(H(309));var r=n.stateNode}if(!r)throw Error(H(147,e));var i=r,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(u){var a=i.refs;u===null?delete a[s]:a[s]=u},t._stringRef=s,t)}if(typeof e!="string")throw Error(H(284));if(!n._owner)throw Error(H(290,e))}return e}function Ys(e,t){throw e=Object.prototype.toString.call(t),Error(H(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function qd(e){var t=e._init;return t(e._payload)}function mm(e){function t(E,T){if(e){var g=E.deletions;g===null?(E.deletions=[T],E.flags|=16):g.push(T)}}function n(E,T){if(!e)return null;for(;T!==null;)t(E,T),T=T.sibling;return null}function r(E,T){for(E=new Map;T!==null;)T.key!==null?E.set(T.key,T):E.set(T.index,T),T=T.sibling;return E}function i(E,T){return E=jn(E,T),E.index=0,E.sibling=null,E}function s(E,T,g){return E.index=g,e?(g=E.alternate,g!==null?(g=g.index,g<T?(E.flags|=2,T):g):(E.flags|=2,T)):(E.flags|=1048576,T)}function u(E){return e&&E.alternate===null&&(E.flags|=2),E}function a(E,T,g,w){return T===null||T.tag!==6?(T=eo(g,E.mode,w),T.return=E,T):(T=i(T,g),T.return=E,T)}function o(E,T,g,w){var O=g.type;return O===wr?h(E,T,g.props.children,w,g.key):T!==null&&(T.elementType===O||typeof O=="object"&&O!==null&&O.$$typeof===Cn&&qd(O)===T.type)?(w=i(T,g.props),w.ref=Ti(E,T,g),w.return=E,w):(w=mu(g.type,g.key,g.props,null,E.mode,w),w.ref=Ti(E,T,g),w.return=E,w)}function c(E,T,g,w){return T===null||T.tag!==4||T.stateNode.containerInfo!==g.containerInfo||T.stateNode.implementation!==g.implementation?(T=to(g,E.mode,w),T.return=E,T):(T=i(T,g.children||[]),T.return=E,T)}function h(E,T,g,w,O){return T===null||T.tag!==7?(T=ur(g,E.mode,w,O),T.return=E,T):(T=i(T,g),T.return=E,T)}function f(E,T,g){if(typeof T=="string"&&T!==""||typeof T=="number")return T=eo(""+T,E.mode,g),T.return=E,T;if(typeof T=="object"&&T!==null){switch(T.$$typeof){case Os:return g=mu(T.type,T.key,T.props,null,E.mode,g),g.ref=Ti(E,null,T),g.return=E,g;case Ar:return T=to(T,E.mode,g),T.return=E,T;case Cn:var w=T._init;return f(E,w(T._payload),g)}if(vi(T)||pi(T))return T=ur(T,E.mode,g,null),T.return=E,T;Ys(E,T)}return null}function m(E,T,g,w){var O=T!==null?T.key:null;if(typeof g=="string"&&g!==""||typeof g=="number")return O!==null?null:a(E,T,""+g,w);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Os:return g.key===O?o(E,T,g,w):null;case Ar:return g.key===O?c(E,T,g,w):null;case Cn:return O=g._init,m(E,T,O(g._payload),w)}if(vi(g)||pi(g))return O!==null?null:h(E,T,g,w,null);Ys(E,g)}return null}function p(E,T,g,w,O){if(typeof w=="string"&&w!==""||typeof w=="number")return E=E.get(g)||null,a(T,E,""+w,O);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Os:return E=E.get(w.key===null?g:w.key)||null,o(T,E,w,O);case Ar:return E=E.get(w.key===null?g:w.key)||null,c(T,E,w,O);case Cn:var N=w._init;return p(E,T,g,N(w._payload),O)}if(vi(w)||pi(w))return E=E.get(g)||null,h(T,E,w,O,null);Ys(T,w)}return null}function x(E,T,g,w){for(var O=null,N=null,P=T,I=T=0,F=null;P!==null&&I<g.length;I++){P.index>I?(F=P,P=null):F=P.sibling;var A=m(E,P,g[I],w);if(A===null){P===null&&(P=F);break}e&&P&&A.alternate===null&&t(E,P),T=s(A,T,I),N===null?O=A:N.sibling=A,N=A,P=F}if(I===g.length)return n(E,P),ve&&Jn(E,I),O;if(P===null){for(;I<g.length;I++)P=f(E,g[I],w),P!==null&&(T=s(P,T,I),N===null?O=P:N.sibling=P,N=P);return ve&&Jn(E,I),O}for(P=r(E,P);I<g.length;I++)F=p(P,E,I,g[I],w),F!==null&&(e&&F.alternate!==null&&P.delete(F.key===null?I:F.key),T=s(F,T,I),N===null?O=F:N.sibling=F,N=F);return e&&P.forEach(function(V){return t(E,V)}),ve&&Jn(E,I),O}function k(E,T,g,w){var O=pi(g);if(typeof O!="function")throw Error(H(150));if(g=O.call(g),g==null)throw Error(H(151));for(var N=O=null,P=T,I=T=0,F=null,A=g.next();P!==null&&!A.done;I++,A=g.next()){P.index>I?(F=P,P=null):F=P.sibling;var V=m(E,P,A.value,w);if(V===null){P===null&&(P=F);break}e&&P&&V.alternate===null&&t(E,P),T=s(V,T,I),N===null?O=V:N.sibling=V,N=V,P=F}if(A.done)return n(E,P),ve&&Jn(E,I),O;if(P===null){for(;!A.done;I++,A=g.next())A=f(E,A.value,w),A!==null&&(T=s(A,T,I),N===null?O=A:N.sibling=A,N=A);return ve&&Jn(E,I),O}for(P=r(E,P);!A.done;I++,A=g.next())A=p(P,E,I,A.value,w),A!==null&&(e&&A.alternate!==null&&P.delete(A.key===null?I:A.key),T=s(A,T,I),N===null?O=A:N.sibling=A,N=A);return e&&P.forEach(function(j){return t(E,j)}),ve&&Jn(E,I),O}function v(E,T,g,w){if(typeof g=="object"&&g!==null&&g.type===wr&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case Os:e:{for(var O=g.key,N=T;N!==null;){if(N.key===O){if(O=g.type,O===wr){if(N.tag===7){n(E,N.sibling),T=i(N,g.props.children),T.return=E,E=T;break e}}else if(N.elementType===O||typeof O=="object"&&O!==null&&O.$$typeof===Cn&&qd(O)===N.type){n(E,N.sibling),T=i(N,g.props),T.ref=Ti(E,N,g),T.return=E,E=T;break e}n(E,N);break}else t(E,N);N=N.sibling}g.type===wr?(T=ur(g.props.children,E.mode,w,g.key),T.return=E,E=T):(w=mu(g.type,g.key,g.props,null,E.mode,w),w.ref=Ti(E,T,g),w.return=E,E=w)}return u(E);case Ar:e:{for(N=g.key;T!==null;){if(T.key===N)if(T.tag===4&&T.stateNode.containerInfo===g.containerInfo&&T.stateNode.implementation===g.implementation){n(E,T.sibling),T=i(T,g.children||[]),T.return=E,E=T;break e}else{n(E,T);break}else t(E,T);T=T.sibling}T=to(g,E.mode,w),T.return=E,E=T}return u(E);case Cn:return N=g._init,v(E,T,N(g._payload),w)}if(vi(g))return x(E,T,g,w);if(pi(g))return k(E,T,g,w);Ys(E,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,T!==null&&T.tag===6?(n(E,T.sibling),T=i(T,g),T.return=E,E=T):(n(E,T),T=eo(g,E.mode,w),T.return=E,E=T),u(E)):n(E,T)}return v}var Kr=mm(!0),pm=mm(!1),Du=Vn(null),Pu=null,Mr=null,sc=null;function uc(){sc=Mr=Pu=null}function ac(e){var t=Du.current;Ae(Du),e._currentValue=t}function Zo(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Vr(e,t){Pu=e,sc=Mr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(dt=!0),e.firstContext=null)}function Lt(e){var t=e._currentValue;if(sc!==e)if(e={context:e,memoizedValue:t,next:null},Mr===null){if(Pu===null)throw Error(H(308));Mr=e,Pu.dependencies={lanes:0,firstContext:e}}else Mr=Mr.next=e;return t}var nr=null;function oc(e){nr===null?nr=[e]:nr.push(e)}function gm(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,oc(t)):(n.next=i.next,i.next=n),t.interleaved=n,pn(e,r)}function pn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Sn=!1;function lc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Em(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function fn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Mn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,pe&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,pn(e,n)}return i=r.interleaved,i===null?(t.next=t,oc(r)):(t.next=i.next,i.next=t),r.interleaved=t,pn(e,n)}function ou(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ql(e,n)}}function Gd(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var u={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?i=s=u:s=s.next=u,n=n.next}while(n!==null);s===null?i=s=t:s=s.next=t}else i=s=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Mu(e,t,n,r){var i=e.updateQueue;Sn=!1;var s=i.firstBaseUpdate,u=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var o=a,c=o.next;o.next=null,u===null?s=c:u.next=c,u=o;var h=e.alternate;h!==null&&(h=h.updateQueue,a=h.lastBaseUpdate,a!==u&&(a===null?h.firstBaseUpdate=c:a.next=c,h.lastBaseUpdate=o))}if(s!==null){var f=i.baseState;u=0,h=c=o=null,a=s;do{var m=a.lane,p=a.eventTime;if((r&m)===m){h!==null&&(h=h.next={eventTime:p,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var x=e,k=a;switch(m=t,p=n,k.tag){case 1:if(x=k.payload,typeof x=="function"){f=x.call(p,f,m);break e}f=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=k.payload,m=typeof x=="function"?x.call(p,f,m):x,m==null)break e;f=Oe({},f,m);break e;case 2:Sn=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,m=i.effects,m===null?i.effects=[a]:m.push(a))}else p={eventTime:p,lane:m,tag:a.tag,payload:a.payload,callback:a.callback,next:null},h===null?(c=h=p,o=f):h=h.next=p,u|=m;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;m=a,a=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(!0);if(h===null&&(o=f),i.baseState=o,i.firstBaseUpdate=c,i.lastBaseUpdate=h,t=i.shared.interleaved,t!==null){i=t;do u|=i.lane,i=i.next;while(i!==t)}else s===null&&(i.shared.lanes=0);dr|=u,e.lanes=u,e.memoizedState=f}}function Kd(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(H(191,i));i.call(r)}}}var Ns={},Jt=Vn(Ns),as=Vn(Ns),os=Vn(Ns);function rr(e){if(e===Ns)throw Error(H(174));return e}function cc(e,t){switch(Ne(os,t),Ne(as,e),Ne(Jt,Ns),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ro(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ro(t,e)}Ae(Jt),Ne(Jt,t)}function Xr(){Ae(Jt),Ae(as),Ae(os)}function xm(e){rr(os.current);var t=rr(Jt.current),n=Ro(t,e.type);t!==n&&(Ne(as,e),Ne(Jt,n))}function dc(e){as.current===e&&(Ae(Jt),Ae(as))}var Ie=Vn(0);function Fu(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var qa=[];function fc(){for(var e=0;e<qa.length;e++)qa[e]._workInProgressVersionPrimary=null;qa.length=0}var lu=En.ReactCurrentDispatcher,Ga=En.ReactCurrentBatchConfig,cr=0,Le=null,Ue=null,Ye=null,Bu=!1,Bi=!1,ls=0,v2=0;function Ge(){throw Error(H(321))}function hc(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!zt(e[n],t[n]))return!1;return!0}function mc(e,t,n,r,i,s){if(cr=s,Le=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,lu.current=e===null||e.memoizedState===null?R2:D2,e=n(r,i),Bi){s=0;do{if(Bi=!1,ls=0,25<=s)throw Error(H(301));s+=1,Ye=Ue=null,t.updateQueue=null,lu.current=P2,e=n(r,i)}while(Bi)}if(lu.current=ju,t=Ue!==null&&Ue.next!==null,cr=0,Ye=Ue=Le=null,Bu=!1,t)throw Error(H(300));return e}function pc(){var e=ls!==0;return ls=0,e}function Qt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ye===null?Le.memoizedState=Ye=e:Ye=Ye.next=e,Ye}function Ot(){if(Ue===null){var e=Le.alternate;e=e!==null?e.memoizedState:null}else e=Ue.next;var t=Ye===null?Le.memoizedState:Ye.next;if(t!==null)Ye=t,Ue=e;else{if(e===null)throw Error(H(310));Ue=e,e={memoizedState:Ue.memoizedState,baseState:Ue.baseState,baseQueue:Ue.baseQueue,queue:Ue.queue,next:null},Ye===null?Le.memoizedState=Ye=e:Ye=Ye.next=e}return Ye}function cs(e,t){return typeof t=="function"?t(e):t}function Ka(e){var t=Ot(),n=t.queue;if(n===null)throw Error(H(311));n.lastRenderedReducer=e;var r=Ue,i=r.baseQueue,s=n.pending;if(s!==null){if(i!==null){var u=i.next;i.next=s.next,s.next=u}r.baseQueue=i=s,n.pending=null}if(i!==null){s=i.next,r=r.baseState;var a=u=null,o=null,c=s;do{var h=c.lane;if((cr&h)===h)o!==null&&(o=o.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var f={lane:h,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};o===null?(a=o=f,u=r):o=o.next=f,Le.lanes|=h,dr|=h}c=c.next}while(c!==null&&c!==s);o===null?u=r:o.next=a,zt(r,t.memoizedState)||(dt=!0),t.memoizedState=r,t.baseState=u,t.baseQueue=o,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do s=i.lane,Le.lanes|=s,dr|=s,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Xa(e){var t=Ot(),n=t.queue;if(n===null)throw Error(H(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,s=t.memoizedState;if(i!==null){n.pending=null;var u=i=i.next;do s=e(s,u.action),u=u.next;while(u!==i);zt(s,t.memoizedState)||(dt=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function bm(){}function Tm(e,t){var n=Le,r=Ot(),i=t(),s=!zt(r.memoizedState,i);if(s&&(r.memoizedState=i,dt=!0),r=r.queue,gc(_m.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||Ye!==null&&Ye.memoizedState.tag&1){if(n.flags|=2048,ds(9,km.bind(null,n,r,i,t),void 0,null),$e===null)throw Error(H(349));cr&30||ym(n,t,i)}return i}function ym(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Le.updateQueue,t===null?(t={lastEffect:null,stores:null},Le.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function km(e,t,n,r){t.value=n,t.getSnapshot=r,Nm(t)&&Cm(e)}function _m(e,t,n){return n(function(){Nm(t)&&Cm(e)})}function Nm(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!zt(e,n)}catch{return!0}}function Cm(e){var t=pn(e,1);t!==null&&Ut(t,e,1,-1)}function Xd(e){var t=Qt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:cs,lastRenderedState:e},t.queue=e,e=e.dispatch=O2.bind(null,Le,e),[t.memoizedState,e]}function ds(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Le.updateQueue,t===null?(t={lastEffect:null,stores:null},Le.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Sm(){return Ot().memoizedState}function cu(e,t,n,r){var i=Qt();Le.flags|=e,i.memoizedState=ds(1|t,n,void 0,r===void 0?null:r)}function ua(e,t,n,r){var i=Ot();r=r===void 0?null:r;var s=void 0;if(Ue!==null){var u=Ue.memoizedState;if(s=u.destroy,r!==null&&hc(r,u.deps)){i.memoizedState=ds(t,n,s,r);return}}Le.flags|=e,i.memoizedState=ds(1|t,n,s,r)}function Jd(e,t){return cu(8390656,8,e,t)}function gc(e,t){return ua(2048,8,e,t)}function Am(e,t){return ua(4,2,e,t)}function wm(e,t){return ua(4,4,e,t)}function vm(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Im(e,t,n){return n=n!=null?n.concat([e]):null,ua(4,4,vm.bind(null,t,e),n)}function Ec(){}function Lm(e,t){var n=Ot();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&hc(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Om(e,t){var n=Ot();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&hc(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Rm(e,t,n){return cr&21?(zt(n,t)||(n=Bh(),Le.lanes|=n,dr|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,dt=!0),e.memoizedState=n)}function I2(e,t){var n=be;be=n!==0&&4>n?n:4,e(!0);var r=Ga.transition;Ga.transition={};try{e(!1),t()}finally{be=n,Ga.transition=r}}function Dm(){return Ot().memoizedState}function L2(e,t,n){var r=Bn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Pm(e))Mm(t,n);else if(n=gm(e,t,n,r),n!==null){var i=st();Ut(n,e,r,i),Fm(n,t,r)}}function O2(e,t,n){var r=Bn(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Pm(e))Mm(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var u=t.lastRenderedState,a=s(u,n);if(i.hasEagerState=!0,i.eagerState=a,zt(a,u)){var o=t.interleaved;o===null?(i.next=i,oc(t)):(i.next=o.next,o.next=i),t.interleaved=i;return}}catch{}finally{}n=gm(e,t,i,r),n!==null&&(i=st(),Ut(n,e,r,i),Fm(n,t,r))}}function Pm(e){var t=e.alternate;return e===Le||t!==null&&t===Le}function Mm(e,t){Bi=Bu=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Fm(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ql(e,n)}}var ju={readContext:Lt,useCallback:Ge,useContext:Ge,useEffect:Ge,useImperativeHandle:Ge,useInsertionEffect:Ge,useLayoutEffect:Ge,useMemo:Ge,useReducer:Ge,useRef:Ge,useState:Ge,useDebugValue:Ge,useDeferredValue:Ge,useTransition:Ge,useMutableSource:Ge,useSyncExternalStore:Ge,useId:Ge,unstable_isNewReconciler:!1},R2={readContext:Lt,useCallback:function(e,t){return Qt().memoizedState=[e,t===void 0?null:t],e},useContext:Lt,useEffect:Jd,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,cu(4194308,4,vm.bind(null,t,e),n)},useLayoutEffect:function(e,t){return cu(4194308,4,e,t)},useInsertionEffect:function(e,t){return cu(4,2,e,t)},useMemo:function(e,t){var n=Qt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Qt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=L2.bind(null,Le,e),[r.memoizedState,e]},useRef:function(e){var t=Qt();return e={current:e},t.memoizedState=e},useState:Xd,useDebugValue:Ec,useDeferredValue:function(e){return Qt().memoizedState=e},useTransition:function(){var e=Xd(!1),t=e[0];return e=I2.bind(null,e[1]),Qt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Le,i=Qt();if(ve){if(n===void 0)throw Error(H(407));n=n()}else{if(n=t(),$e===null)throw Error(H(349));cr&30||ym(r,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,Jd(_m.bind(null,r,s,e),[e]),r.flags|=2048,ds(9,km.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=Qt(),t=$e.identifierPrefix;if(ve){var n=dn,r=cn;n=(r&~(1<<32-jt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ls++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=v2++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},D2={readContext:Lt,useCallback:Lm,useContext:Lt,useEffect:gc,useImperativeHandle:Im,useInsertionEffect:Am,useLayoutEffect:wm,useMemo:Om,useReducer:Ka,useRef:Sm,useState:function(){return Ka(cs)},useDebugValue:Ec,useDeferredValue:function(e){var t=Ot();return Rm(t,Ue.memoizedState,e)},useTransition:function(){var e=Ka(cs)[0],t=Ot().memoizedState;return[e,t]},useMutableSource:bm,useSyncExternalStore:Tm,useId:Dm,unstable_isNewReconciler:!1},P2={readContext:Lt,useCallback:Lm,useContext:Lt,useEffect:gc,useImperativeHandle:Im,useInsertionEffect:Am,useLayoutEffect:wm,useMemo:Om,useReducer:Xa,useRef:Sm,useState:function(){return Xa(cs)},useDebugValue:Ec,useDeferredValue:function(e){var t=Ot();return Ue===null?t.memoizedState=e:Rm(t,Ue.memoizedState,e)},useTransition:function(){var e=Xa(cs)[0],t=Ot().memoizedState;return[e,t]},useMutableSource:bm,useSyncExternalStore:Tm,useId:Dm,unstable_isNewReconciler:!1};function Mt(e,t){if(e&&e.defaultProps){t=Oe({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function el(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Oe({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var aa={isMounted:function(e){return(e=e._reactInternals)?gr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=st(),i=Bn(e),s=fn(r,i);s.payload=t,n!=null&&(s.callback=n),t=Mn(e,s,i),t!==null&&(Ut(t,e,i,r),ou(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=st(),i=Bn(e),s=fn(r,i);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=Mn(e,s,i),t!==null&&(Ut(t,e,i,r),ou(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=st(),r=Bn(e),i=fn(n,r);i.tag=2,t!=null&&(i.callback=t),t=Mn(e,i,r),t!==null&&(Ut(t,e,r,n),ou(t,e,r))}};function Zd(e,t,n,r,i,s,u){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,s,u):t.prototype&&t.prototype.isPureReactComponent?!rs(n,r)||!rs(i,s):!0}function Bm(e,t,n){var r=!1,i=Hn,s=t.contextType;return typeof s=="object"&&s!==null?s=Lt(s):(i=ht(t)?or:Ze.current,r=t.contextTypes,s=(r=r!=null)?qr(e,i):Hn),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=aa,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=s),t}function ef(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&aa.enqueueReplaceState(t,t.state,null)}function tl(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},lc(e);var s=t.contextType;typeof s=="object"&&s!==null?i.context=Lt(s):(s=ht(t)?or:Ze.current,i.context=qr(e,s)),i.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(el(e,t,s,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&aa.enqueueReplaceState(i,i.state,null),Mu(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Jr(e,t){try{var n="",r=t;do n+=lE(r),r=r.return;while(r);var i=n}catch(s){i=`
|
|
39
|
+
Error generating stack: `+s.message+`
|
|
40
|
+
`+s.stack}return{value:e,source:t,stack:i,digest:null}}function Ja(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function nl(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var M2=typeof WeakMap=="function"?WeakMap:Map;function jm(e,t,n){n=fn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Hu||(Hu=!0,fl=r),nl(e,t)},n}function Um(e,t,n){n=fn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){nl(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){nl(e,t),typeof r!="function"&&(Fn===null?Fn=new Set([this]):Fn.add(this));var u=t.stack;this.componentDidCatch(t.value,{componentStack:u!==null?u:""})}),n}function tf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new M2;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=K2.bind(null,e,t,n),t.then(e,e))}function nf(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function rf(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=fn(-1,1),t.tag=2,Mn(n,t,1))),n.lanes|=1),e)}var F2=En.ReactCurrentOwner,dt=!1;function rt(e,t,n,r){t.child=e===null?pm(t,null,n,r):Kr(t,e.child,n,r)}function sf(e,t,n,r,i){n=n.render;var s=t.ref;return Vr(t,i),r=mc(e,t,n,r,s,i),n=pc(),e!==null&&!dt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,gn(e,t,i)):(ve&&n&&nc(t),t.flags|=1,rt(e,t,r,i),t.child)}function uf(e,t,n,r,i){if(e===null){var s=n.type;return typeof s=="function"&&!Cc(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,Hm(e,t,s,r,i)):(e=mu(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&i)){var u=s.memoizedProps;if(n=n.compare,n=n!==null?n:rs,n(u,r)&&e.ref===t.ref)return gn(e,t,i)}return t.flags|=1,e=jn(s,r),e.ref=t.ref,e.return=t,t.child=e}function Hm(e,t,n,r,i){if(e!==null){var s=e.memoizedProps;if(rs(s,r)&&e.ref===t.ref)if(dt=!1,t.pendingProps=r=s,(e.lanes&i)!==0)e.flags&131072&&(dt=!0);else return t.lanes=e.lanes,gn(e,t,i)}return rl(e,t,n,r,i)}function zm(e,t,n){var r=t.pendingProps,i=r.children,s=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ne(Br,xt),xt|=n;else{if(!(n&1073741824))return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ne(Br,xt),xt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,Ne(Br,xt),xt|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,Ne(Br,xt),xt|=r;return rt(e,t,i,n),t.child}function Ym(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function rl(e,t,n,r,i){var s=ht(n)?or:Ze.current;return s=qr(t,s),Vr(t,i),n=mc(e,t,n,r,s,i),r=pc(),e!==null&&!dt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,gn(e,t,i)):(ve&&r&&nc(t),t.flags|=1,rt(e,t,n,i),t.child)}function af(e,t,n,r,i){if(ht(n)){var s=!0;Lu(t)}else s=!1;if(Vr(t,i),t.stateNode===null)du(e,t),Bm(t,n,r),tl(t,n,r,i),r=!0;else if(e===null){var u=t.stateNode,a=t.memoizedProps;u.props=a;var o=u.context,c=n.contextType;typeof c=="object"&&c!==null?c=Lt(c):(c=ht(n)?or:Ze.current,c=qr(t,c));var h=n.getDerivedStateFromProps,f=typeof h=="function"||typeof u.getSnapshotBeforeUpdate=="function";f||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(a!==r||o!==c)&&ef(t,u,r,c),Sn=!1;var m=t.memoizedState;u.state=m,Mu(t,r,u,i),o=t.memoizedState,a!==r||m!==o||ft.current||Sn?(typeof h=="function"&&(el(t,n,h,r),o=t.memoizedState),(a=Sn||Zd(t,n,a,r,m,o,c))?(f||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=o),u.props=r,u.state=o,u.context=c,r=a):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{u=t.stateNode,Em(e,t),a=t.memoizedProps,c=t.type===t.elementType?a:Mt(t.type,a),u.props=c,f=t.pendingProps,m=u.context,o=n.contextType,typeof o=="object"&&o!==null?o=Lt(o):(o=ht(n)?or:Ze.current,o=qr(t,o));var p=n.getDerivedStateFromProps;(h=typeof p=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(a!==f||m!==o)&&ef(t,u,r,o),Sn=!1,m=t.memoizedState,u.state=m,Mu(t,r,u,i);var x=t.memoizedState;a!==f||m!==x||ft.current||Sn?(typeof p=="function"&&(el(t,n,p,r),x=t.memoizedState),(c=Sn||Zd(t,n,c,r,m,x,o)||!1)?(h||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(r,x,o),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(r,x,o)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||a===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=x),u.props=r,u.state=x,u.context=o,r=c):(typeof u.componentDidUpdate!="function"||a===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return il(e,t,n,r,s,i)}function il(e,t,n,r,i,s){Ym(e,t);var u=(t.flags&128)!==0;if(!r&&!u)return i&&$d(t,n,!1),gn(e,t,s);r=t.stateNode,F2.current=t;var a=u&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&u?(t.child=Kr(t,e.child,null,s),t.child=Kr(t,null,a,s)):rt(e,t,a,s),t.memoizedState=r.state,i&&$d(t,n,!0),t.child}function Vm(e){var t=e.stateNode;t.pendingContext?Vd(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Vd(e,t.context,!1),cc(e,t.containerInfo)}function of(e,t,n,r,i){return Gr(),ic(i),t.flags|=256,rt(e,t,n,r),t.child}var sl={dehydrated:null,treeContext:null,retryLane:0};function ul(e){return{baseLanes:e,cachePool:null,transitions:null}}function $m(e,t,n){var r=t.pendingProps,i=Ie.current,s=!1,u=(t.flags&128)!==0,a;if((a=u)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),Ne(Ie,i&1),e===null)return Jo(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(u=r.children,e=r.fallback,s?(r=t.mode,s=t.child,u={mode:"hidden",children:u},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=u):s=ca(u,r,0,null),e=ur(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=ul(n),t.memoizedState=sl,e):xc(t,u));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return B2(e,t,u,r,a,i,n);if(s){s=r.fallback,u=t.mode,i=e.child,a=i.sibling;var o={mode:"hidden",children:r.children};return!(u&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=o,t.deletions=null):(r=jn(i,o),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?s=jn(a,s):(s=ur(s,u,n,null),s.flags|=2),s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,u=e.child.memoizedState,u=u===null?ul(n):{baseLanes:u.baseLanes|n,cachePool:null,transitions:u.transitions},s.memoizedState=u,s.childLanes=e.childLanes&~n,t.memoizedState=sl,r}return s=e.child,e=s.sibling,r=jn(s,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function xc(e,t){return t=ca({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Vs(e,t,n,r){return r!==null&&ic(r),Kr(t,e.child,null,n),e=xc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function B2(e,t,n,r,i,s,u){if(n)return t.flags&256?(t.flags&=-257,r=Ja(Error(H(422))),Vs(e,t,u,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,i=t.mode,r=ca({mode:"visible",children:r.children},i,0,null),s=ur(s,i,u,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&1&&Kr(t,e.child,null,u),t.child.memoizedState=ul(u),t.memoizedState=sl,s);if(!(t.mode&1))return Vs(e,t,u,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var a=r.dgst;return r=a,s=Error(H(419)),r=Ja(s,r,void 0),Vs(e,t,u,r)}if(a=(u&e.childLanes)!==0,dt||a){if(r=$e,r!==null){switch(u&-u){case 4:i=2;break;case 16:i=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|u)?0:i,i!==0&&i!==s.retryLane&&(s.retryLane=i,pn(e,i),Ut(r,e,i,-1))}return Nc(),r=Ja(Error(H(421))),Vs(e,t,u,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=X2.bind(null,e),i._reactRetry=t,null):(e=s.treeContext,bt=Pn(i.nextSibling),Tt=t,ve=!0,Bt=null,e!==null&&(Ct[St++]=cn,Ct[St++]=dn,Ct[St++]=lr,cn=e.id,dn=e.overflow,lr=t),t=xc(t,r.children),t.flags|=4096,t)}function lf(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Zo(e.return,t,n)}function Za(e,t,n,r,i){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=i)}function Wm(e,t,n){var r=t.pendingProps,i=r.revealOrder,s=r.tail;if(rt(e,t,r.children,n),r=Ie.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&lf(e,n,t);else if(e.tag===19)lf(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Ne(Ie,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Fu(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Za(t,!1,i,n,s);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Fu(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Za(t,!0,n,null,s);break;case"together":Za(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function du(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function gn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),dr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(H(153));if(t.child!==null){for(e=t.child,n=jn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=jn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function j2(e,t,n){switch(t.tag){case 3:Vm(t),Gr();break;case 5:xm(t);break;case 1:ht(t.type)&&Lu(t);break;case 4:cc(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Ne(Du,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Ne(Ie,Ie.current&1),t.flags|=128,null):n&t.child.childLanes?$m(e,t,n):(Ne(Ie,Ie.current&1),e=gn(e,t,n),e!==null?e.sibling:null);Ne(Ie,Ie.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Wm(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Ne(Ie,Ie.current),r)break;return null;case 22:case 23:return t.lanes=0,zm(e,t,n)}return gn(e,t,n)}var Qm,al,qm,Gm;Qm=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};al=function(){};qm=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,rr(Jt.current);var s=null;switch(n){case"input":i=vo(e,i),r=vo(e,r),s=[];break;case"select":i=Oe({},i,{value:void 0}),r=Oe({},r,{value:void 0}),s=[];break;case"textarea":i=Oo(e,i),r=Oo(e,r),s=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=vu)}Do(n,r);var u;n=null;for(c in i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&i[c]!=null)if(c==="style"){var a=i[c];for(u in a)a.hasOwnProperty(u)&&(n||(n={}),n[u]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Ki.hasOwnProperty(c)?s||(s=[]):(s=s||[]).push(c,null));for(c in r){var o=r[c];if(a=i!=null?i[c]:void 0,r.hasOwnProperty(c)&&o!==a&&(o!=null||a!=null))if(c==="style")if(a){for(u in a)!a.hasOwnProperty(u)||o&&o.hasOwnProperty(u)||(n||(n={}),n[u]="");for(u in o)o.hasOwnProperty(u)&&a[u]!==o[u]&&(n||(n={}),n[u]=o[u])}else n||(s||(s=[]),s.push(c,n)),n=o;else c==="dangerouslySetInnerHTML"?(o=o?o.__html:void 0,a=a?a.__html:void 0,o!=null&&a!==o&&(s=s||[]).push(c,o)):c==="children"?typeof o!="string"&&typeof o!="number"||(s=s||[]).push(c,""+o):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Ki.hasOwnProperty(c)?(o!=null&&c==="onScroll"&&Se("scroll",e),s||a===o||(s=[])):(s=s||[]).push(c,o))}n&&(s=s||[]).push("style",n);var c=s;(t.updateQueue=c)&&(t.flags|=4)}};Gm=function(e,t,n,r){n!==r&&(t.flags|=4)};function yi(e,t){if(!ve)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ke(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function U2(e,t,n){var r=t.pendingProps;switch(rc(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ke(t),null;case 1:return ht(t.type)&&Iu(),Ke(t),null;case 3:return r=t.stateNode,Xr(),Ae(ft),Ae(Ze),fc(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(zs(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Bt!==null&&(pl(Bt),Bt=null))),al(e,t),Ke(t),null;case 5:dc(t);var i=rr(os.current);if(n=t.type,e!==null&&t.stateNode!=null)qm(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(H(166));return Ke(t),null}if(e=rr(Jt.current),zs(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[Kt]=t,r[us]=s,e=(t.mode&1)!==0,n){case"dialog":Se("cancel",r),Se("close",r);break;case"iframe":case"object":case"embed":Se("load",r);break;case"video":case"audio":for(i=0;i<Li.length;i++)Se(Li[i],r);break;case"source":Se("error",r);break;case"img":case"image":case"link":Se("error",r),Se("load",r);break;case"details":Se("toggle",r);break;case"input":Ed(r,s),Se("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Se("invalid",r);break;case"textarea":bd(r,s),Se("invalid",r)}Do(n,s),i=null;for(var u in s)if(s.hasOwnProperty(u)){var a=s[u];u==="children"?typeof a=="string"?r.textContent!==a&&(s.suppressHydrationWarning!==!0&&Hs(r.textContent,a,e),i=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(s.suppressHydrationWarning!==!0&&Hs(r.textContent,a,e),i=["children",""+a]):Ki.hasOwnProperty(u)&&a!=null&&u==="onScroll"&&Se("scroll",r)}switch(n){case"input":Rs(r),xd(r,s,!0);break;case"textarea":Rs(r),Td(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=vu)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{u=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=_h(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=u.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=u.createElement(n,{is:r.is}):(e=u.createElement(n),n==="select"&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,n),e[Kt]=t,e[us]=r,Qm(e,t,!1,!1),t.stateNode=e;e:{switch(u=Po(n,r),n){case"dialog":Se("cancel",e),Se("close",e),i=r;break;case"iframe":case"object":case"embed":Se("load",e),i=r;break;case"video":case"audio":for(i=0;i<Li.length;i++)Se(Li[i],e);i=r;break;case"source":Se("error",e),i=r;break;case"img":case"image":case"link":Se("error",e),Se("load",e),i=r;break;case"details":Se("toggle",e),i=r;break;case"input":Ed(e,r),i=vo(e,r),Se("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=Oe({},r,{value:void 0}),Se("invalid",e);break;case"textarea":bd(e,r),i=Oo(e,r),Se("invalid",e);break;default:i=r}Do(n,i),a=i;for(s in a)if(a.hasOwnProperty(s)){var o=a[s];s==="style"?Sh(e,o):s==="dangerouslySetInnerHTML"?(o=o?o.__html:void 0,o!=null&&Nh(e,o)):s==="children"?typeof o=="string"?(n!=="textarea"||o!=="")&&Xi(e,o):typeof o=="number"&&Xi(e,""+o):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(Ki.hasOwnProperty(s)?o!=null&&s==="onScroll"&&Se("scroll",e):o!=null&&zl(e,s,o,u))}switch(n){case"input":Rs(e),xd(e,r,!1);break;case"textarea":Rs(e),Td(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Un(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?Ur(e,!!r.multiple,s,!1):r.defaultValue!=null&&Ur(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=vu)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Ke(t),null;case 6:if(e&&t.stateNode!=null)Gm(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(H(166));if(n=rr(os.current),rr(Jt.current),zs(t)){if(r=t.stateNode,n=t.memoizedProps,r[Kt]=t,(s=r.nodeValue!==n)&&(e=Tt,e!==null))switch(e.tag){case 3:Hs(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Hs(r.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Kt]=t,t.stateNode=r}return Ke(t),null;case 13:if(Ae(Ie),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ve&&bt!==null&&t.mode&1&&!(t.flags&128))hm(),Gr(),t.flags|=98560,s=!1;else if(s=zs(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(H(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(H(317));s[Kt]=t}else Gr(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ke(t),s=!1}else Bt!==null&&(pl(Bt),Bt=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||Ie.current&1?He===0&&(He=3):Nc())),t.updateQueue!==null&&(t.flags|=4),Ke(t),null);case 4:return Xr(),al(e,t),e===null&&is(t.stateNode.containerInfo),Ke(t),null;case 10:return ac(t.type._context),Ke(t),null;case 17:return ht(t.type)&&Iu(),Ke(t),null;case 19:if(Ae(Ie),s=t.memoizedState,s===null)return Ke(t),null;if(r=(t.flags&128)!==0,u=s.rendering,u===null)if(r)yi(s,!1);else{if(He!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(u=Fu(e),u!==null){for(t.flags|=128,yi(s,!1),r=u.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)s=n,e=r,s.flags&=14680066,u=s.alternate,u===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=u.childLanes,s.lanes=u.lanes,s.child=u.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=u.memoizedProps,s.memoizedState=u.memoizedState,s.updateQueue=u.updateQueue,s.type=u.type,e=u.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ne(Ie,Ie.current&1|2),t.child}e=e.sibling}s.tail!==null&&Pe()>Zr&&(t.flags|=128,r=!0,yi(s,!1),t.lanes=4194304)}else{if(!r)if(e=Fu(u),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),yi(s,!0),s.tail===null&&s.tailMode==="hidden"&&!u.alternate&&!ve)return Ke(t),null}else 2*Pe()-s.renderingStartTime>Zr&&n!==1073741824&&(t.flags|=128,r=!0,yi(s,!1),t.lanes=4194304);s.isBackwards?(u.sibling=t.child,t.child=u):(n=s.last,n!==null?n.sibling=u:t.child=u,s.last=u)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Pe(),t.sibling=null,n=Ie.current,Ne(Ie,r?n&1|2:n&1),t):(Ke(t),null);case 22:case 23:return _c(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?xt&1073741824&&(Ke(t),t.subtreeFlags&6&&(t.flags|=8192)):Ke(t),null;case 24:return null;case 25:return null}throw Error(H(156,t.tag))}function H2(e,t){switch(rc(t),t.tag){case 1:return ht(t.type)&&Iu(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Xr(),Ae(ft),Ae(Ze),fc(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return dc(t),null;case 13:if(Ae(Ie),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(H(340));Gr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ae(Ie),null;case 4:return Xr(),null;case 10:return ac(t.type._context),null;case 22:case 23:return _c(),null;case 24:return null;default:return null}}var $s=!1,Xe=!1,z2=typeof WeakSet=="function"?WeakSet:Set,G=null;function Fr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Re(e,t,r)}else n.current=null}function ol(e,t,n){try{n()}catch(r){Re(e,t,r)}}var cf=!1;function Y2(e,t){if($o=Su,e=em(),tc(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var u=0,a=-1,o=-1,c=0,h=0,f=e,m=null;t:for(;;){for(var p;f!==n||i!==0&&f.nodeType!==3||(a=u+i),f!==s||r!==0&&f.nodeType!==3||(o=u+r),f.nodeType===3&&(u+=f.nodeValue.length),(p=f.firstChild)!==null;)m=f,f=p;for(;;){if(f===e)break t;if(m===n&&++c===i&&(a=u),m===s&&++h===r&&(o=u),(p=f.nextSibling)!==null)break;f=m,m=f.parentNode}f=p}n=a===-1||o===-1?null:{start:a,end:o}}else n=null}n=n||{start:0,end:0}}else n=null;for(Wo={focusedElem:e,selectionRange:n},Su=!1,G=t;G!==null;)if(t=G,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,G=e;else for(;G!==null;){t=G;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var k=x.memoizedProps,v=x.memoizedState,E=t.stateNode,T=E.getSnapshotBeforeUpdate(t.elementType===t.type?k:Mt(t.type,k),v);E.__reactInternalSnapshotBeforeUpdate=T}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(H(163))}}catch(w){Re(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,G=e;break}G=t.return}return x=cf,cf=!1,x}function ji(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var s=i.destroy;i.destroy=void 0,s!==void 0&&ol(t,n,s)}i=i.next}while(i!==r)}}function oa(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ll(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Km(e){var t=e.alternate;t!==null&&(e.alternate=null,Km(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Kt],delete t[us],delete t[Go],delete t[C2],delete t[S2])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Xm(e){return e.tag===5||e.tag===3||e.tag===4}function df(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Xm(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function cl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=vu));else if(r!==4&&(e=e.child,e!==null))for(cl(e,t,n),e=e.sibling;e!==null;)cl(e,t,n),e=e.sibling}function dl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(dl(e,t,n),e=e.sibling;e!==null;)dl(e,t,n),e=e.sibling}var We=null,Ft=!1;function bn(e,t,n){for(n=n.child;n!==null;)Jm(e,t,n),n=n.sibling}function Jm(e,t,n){if(Xt&&typeof Xt.onCommitFiberUnmount=="function")try{Xt.onCommitFiberUnmount(ea,n)}catch{}switch(n.tag){case 5:Xe||Fr(n,t);case 6:var r=We,i=Ft;We=null,bn(e,t,n),We=r,Ft=i,We!==null&&(Ft?(e=We,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):We.removeChild(n.stateNode));break;case 18:We!==null&&(Ft?(e=We,n=n.stateNode,e.nodeType===8?Wa(e.parentNode,n):e.nodeType===1&&Wa(e,n),ts(e)):Wa(We,n.stateNode));break;case 4:r=We,i=Ft,We=n.stateNode.containerInfo,Ft=!0,bn(e,t,n),We=r,Ft=i;break;case 0:case 11:case 14:case 15:if(!Xe&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var s=i,u=s.destroy;s=s.tag,u!==void 0&&(s&2||s&4)&&ol(n,t,u),i=i.next}while(i!==r)}bn(e,t,n);break;case 1:if(!Xe&&(Fr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Re(n,t,a)}bn(e,t,n);break;case 21:bn(e,t,n);break;case 22:n.mode&1?(Xe=(r=Xe)||n.memoizedState!==null,bn(e,t,n),Xe=r):bn(e,t,n);break;default:bn(e,t,n)}}function ff(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new z2),t.forEach(function(r){var i=J2.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Pt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var s=e,u=t,a=u;e:for(;a!==null;){switch(a.tag){case 5:We=a.stateNode,Ft=!1;break e;case 3:We=a.stateNode.containerInfo,Ft=!0;break e;case 4:We=a.stateNode.containerInfo,Ft=!0;break e}a=a.return}if(We===null)throw Error(H(160));Jm(s,u,i),We=null,Ft=!1;var o=i.alternate;o!==null&&(o.return=null),i.return=null}catch(c){Re(i,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Zm(t,e),t=t.sibling}function Zm(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Pt(t,e),Vt(e),r&4){try{ji(3,e,e.return),oa(3,e)}catch(k){Re(e,e.return,k)}try{ji(5,e,e.return)}catch(k){Re(e,e.return,k)}}break;case 1:Pt(t,e),Vt(e),r&512&&n!==null&&Fr(n,n.return);break;case 5:if(Pt(t,e),Vt(e),r&512&&n!==null&&Fr(n,n.return),e.flags&32){var i=e.stateNode;try{Xi(i,"")}catch(k){Re(e,e.return,k)}}if(r&4&&(i=e.stateNode,i!=null)){var s=e.memoizedProps,u=n!==null?n.memoizedProps:s,a=e.type,o=e.updateQueue;if(e.updateQueue=null,o!==null)try{a==="input"&&s.type==="radio"&&s.name!=null&&yh(i,s),Po(a,u);var c=Po(a,s);for(u=0;u<o.length;u+=2){var h=o[u],f=o[u+1];h==="style"?Sh(i,f):h==="dangerouslySetInnerHTML"?Nh(i,f):h==="children"?Xi(i,f):zl(i,h,f,c)}switch(a){case"input":Io(i,s);break;case"textarea":kh(i,s);break;case"select":var m=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!s.multiple;var p=s.value;p!=null?Ur(i,!!s.multiple,p,!1):m!==!!s.multiple&&(s.defaultValue!=null?Ur(i,!!s.multiple,s.defaultValue,!0):Ur(i,!!s.multiple,s.multiple?[]:"",!1))}i[us]=s}catch(k){Re(e,e.return,k)}}break;case 6:if(Pt(t,e),Vt(e),r&4){if(e.stateNode===null)throw Error(H(162));i=e.stateNode,s=e.memoizedProps;try{i.nodeValue=s}catch(k){Re(e,e.return,k)}}break;case 3:if(Pt(t,e),Vt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{ts(t.containerInfo)}catch(k){Re(e,e.return,k)}break;case 4:Pt(t,e),Vt(e);break;case 13:Pt(t,e),Vt(e),i=e.child,i.flags&8192&&(s=i.memoizedState!==null,i.stateNode.isHidden=s,!s||i.alternate!==null&&i.alternate.memoizedState!==null||(yc=Pe())),r&4&&ff(e);break;case 22:if(h=n!==null&&n.memoizedState!==null,e.mode&1?(Xe=(c=Xe)||h,Pt(t,e),Xe=c):Pt(t,e),Vt(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!h&&e.mode&1)for(G=e,h=e.child;h!==null;){for(f=G=h;G!==null;){switch(m=G,p=m.child,m.tag){case 0:case 11:case 14:case 15:ji(4,m,m.return);break;case 1:Fr(m,m.return);var x=m.stateNode;if(typeof x.componentWillUnmount=="function"){r=m,n=m.return;try{t=r,x.props=t.memoizedProps,x.state=t.memoizedState,x.componentWillUnmount()}catch(k){Re(r,n,k)}}break;case 5:Fr(m,m.return);break;case 22:if(m.memoizedState!==null){mf(f);continue}}p!==null?(p.return=m,G=p):mf(f)}h=h.sibling}e:for(h=null,f=e;;){if(f.tag===5){if(h===null){h=f;try{i=f.stateNode,c?(s=i.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(a=f.stateNode,o=f.memoizedProps.style,u=o!=null&&o.hasOwnProperty("display")?o.display:null,a.style.display=Ch("display",u))}catch(k){Re(e,e.return,k)}}}else if(f.tag===6){if(h===null)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(k){Re(e,e.return,k)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;h===f&&(h=null),f=f.return}h===f&&(h=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:Pt(t,e),Vt(e),r&4&&ff(e);break;case 21:break;default:Pt(t,e),Vt(e)}}function Vt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Xm(n)){var r=n;break e}n=n.return}throw Error(H(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(Xi(i,""),r.flags&=-33);var s=df(e);dl(e,s,i);break;case 3:case 4:var u=r.stateNode.containerInfo,a=df(e);cl(e,a,u);break;default:throw Error(H(161))}}catch(o){Re(e,e.return,o)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function V2(e,t,n){G=e,ep(e)}function ep(e,t,n){for(var r=(e.mode&1)!==0;G!==null;){var i=G,s=i.child;if(i.tag===22&&r){var u=i.memoizedState!==null||$s;if(!u){var a=i.alternate,o=a!==null&&a.memoizedState!==null||Xe;a=$s;var c=Xe;if($s=u,(Xe=o)&&!c)for(G=i;G!==null;)u=G,o=u.child,u.tag===22&&u.memoizedState!==null?pf(i):o!==null?(o.return=u,G=o):pf(i);for(;s!==null;)G=s,ep(s),s=s.sibling;G=i,$s=a,Xe=c}hf(e)}else i.subtreeFlags&8772&&s!==null?(s.return=i,G=s):hf(e)}}function hf(e){for(;G!==null;){var t=G;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Xe||oa(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Xe)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:Mt(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&Kd(t,s,r);break;case 3:var u=t.updateQueue;if(u!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Kd(t,u,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var o=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":o.autoFocus&&n.focus();break;case"img":o.src&&(n.src=o.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var h=c.memoizedState;if(h!==null){var f=h.dehydrated;f!==null&&ts(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(H(163))}Xe||t.flags&512&&ll(t)}catch(m){Re(t,t.return,m)}}if(t===e){G=null;break}if(n=t.sibling,n!==null){n.return=t.return,G=n;break}G=t.return}}function mf(e){for(;G!==null;){var t=G;if(t===e){G=null;break}var n=t.sibling;if(n!==null){n.return=t.return,G=n;break}G=t.return}}function pf(e){for(;G!==null;){var t=G;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{oa(4,t)}catch(o){Re(t,n,o)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(o){Re(t,i,o)}}var s=t.return;try{ll(t)}catch(o){Re(t,s,o)}break;case 5:var u=t.return;try{ll(t)}catch(o){Re(t,u,o)}}}catch(o){Re(t,t.return,o)}if(t===e){G=null;break}var a=t.sibling;if(a!==null){a.return=t.return,G=a;break}G=t.return}}var $2=Math.ceil,Uu=En.ReactCurrentDispatcher,bc=En.ReactCurrentOwner,It=En.ReactCurrentBatchConfig,pe=0,$e=null,Be=null,Qe=0,xt=0,Br=Vn(0),He=0,fs=null,dr=0,la=0,Tc=0,Ui=null,ct=null,yc=0,Zr=1/0,an=null,Hu=!1,fl=null,Fn=null,Ws=!1,In=null,zu=0,Hi=0,hl=null,fu=-1,hu=0;function st(){return pe&6?Pe():fu!==-1?fu:fu=Pe()}function Bn(e){return e.mode&1?pe&2&&Qe!==0?Qe&-Qe:w2.transition!==null?(hu===0&&(hu=Bh()),hu):(e=be,e!==0||(e=window.event,e=e===void 0?16:$h(e.type)),e):1}function Ut(e,t,n,r){if(50<Hi)throw Hi=0,hl=null,Error(H(185));ys(e,n,r),(!(pe&2)||e!==$e)&&(e===$e&&(!(pe&2)&&(la|=n),He===4&&wn(e,Qe)),mt(e,r),n===1&&pe===0&&!(t.mode&1)&&(Zr=Pe()+500,sa&&$n()))}function mt(e,t){var n=e.callbackNode;wE(e,t);var r=Cu(e,e===$e?Qe:0);if(r===0)n!==null&&_d(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&_d(n),t===1)e.tag===0?A2(gf.bind(null,e)):cm(gf.bind(null,e)),_2(function(){!(pe&6)&&$n()}),n=null;else{switch(jh(r)){case 1:n=Ql;break;case 4:n=Mh;break;case 16:n=Nu;break;case 536870912:n=Fh;break;default:n=Nu}n=op(n,tp.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function tp(e,t){if(fu=-1,hu=0,pe&6)throw Error(H(327));var n=e.callbackNode;if($r()&&e.callbackNode!==n)return null;var r=Cu(e,e===$e?Qe:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Yu(e,r);else{t=r;var i=pe;pe|=2;var s=rp();($e!==e||Qe!==t)&&(an=null,Zr=Pe()+500,sr(e,t));do try{q2();break}catch(a){np(e,a)}while(!0);uc(),Uu.current=s,pe=i,Be!==null?t=0:($e=null,Qe=0,t=He)}if(t!==0){if(t===2&&(i=Uo(e),i!==0&&(r=i,t=ml(e,i))),t===1)throw n=fs,sr(e,0),wn(e,r),mt(e,Pe()),n;if(t===6)wn(e,r);else{if(i=e.current.alternate,!(r&30)&&!W2(i)&&(t=Yu(e,r),t===2&&(s=Uo(e),s!==0&&(r=s,t=ml(e,s))),t===1))throw n=fs,sr(e,0),wn(e,r),mt(e,Pe()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(H(345));case 2:Zn(e,ct,an);break;case 3:if(wn(e,r),(r&130023424)===r&&(t=yc+500-Pe(),10<t)){if(Cu(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){st(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=qo(Zn.bind(null,e,ct,an),t);break}Zn(e,ct,an);break;case 4:if(wn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var u=31-jt(r);s=1<<u,u=t[u],u>i&&(i=u),r&=~s}if(r=i,r=Pe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*$2(r/1960))-r,10<r){e.timeoutHandle=qo(Zn.bind(null,e,ct,an),r);break}Zn(e,ct,an);break;case 5:Zn(e,ct,an);break;default:throw Error(H(329))}}}return mt(e,Pe()),e.callbackNode===n?tp.bind(null,e):null}function ml(e,t){var n=Ui;return e.current.memoizedState.isDehydrated&&(sr(e,t).flags|=256),e=Yu(e,t),e!==2&&(t=ct,ct=n,t!==null&&pl(t)),e}function pl(e){ct===null?ct=e:ct.push.apply(ct,e)}function W2(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],s=i.getSnapshot;i=i.value;try{if(!zt(s(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function wn(e,t){for(t&=~Tc,t&=~la,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-jt(t),r=1<<n;e[n]=-1,t&=~r}}function gf(e){if(pe&6)throw Error(H(327));$r();var t=Cu(e,0);if(!(t&1))return mt(e,Pe()),null;var n=Yu(e,t);if(e.tag!==0&&n===2){var r=Uo(e);r!==0&&(t=r,n=ml(e,r))}if(n===1)throw n=fs,sr(e,0),wn(e,t),mt(e,Pe()),n;if(n===6)throw Error(H(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Zn(e,ct,an),mt(e,Pe()),null}function kc(e,t){var n=pe;pe|=1;try{return e(t)}finally{pe=n,pe===0&&(Zr=Pe()+500,sa&&$n())}}function fr(e){In!==null&&In.tag===0&&!(pe&6)&&$r();var t=pe;pe|=1;var n=It.transition,r=be;try{if(It.transition=null,be=1,e)return e()}finally{be=r,It.transition=n,pe=t,!(pe&6)&&$n()}}function _c(){xt=Br.current,Ae(Br)}function sr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,k2(n)),Be!==null)for(n=Be.return;n!==null;){var r=n;switch(rc(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Iu();break;case 3:Xr(),Ae(ft),Ae(Ze),fc();break;case 5:dc(r);break;case 4:Xr();break;case 13:Ae(Ie);break;case 19:Ae(Ie);break;case 10:ac(r.type._context);break;case 22:case 23:_c()}n=n.return}if($e=e,Be=e=jn(e.current,null),Qe=xt=t,He=0,fs=null,Tc=la=dr=0,ct=Ui=null,nr!==null){for(t=0;t<nr.length;t++)if(n=nr[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,s=n.pending;if(s!==null){var u=s.next;s.next=i,r.next=u}n.pending=r}nr=null}return e}function np(e,t){do{var n=Be;try{if(uc(),lu.current=ju,Bu){for(var r=Le.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Bu=!1}if(cr=0,Ye=Ue=Le=null,Bi=!1,ls=0,bc.current=null,n===null||n.return===null){He=1,fs=t,Be=null;break}e:{var s=e,u=n.return,a=n,o=t;if(t=Qe,a.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){var c=o,h=a,f=h.tag;if(!(h.mode&1)&&(f===0||f===11||f===15)){var m=h.alternate;m?(h.updateQueue=m.updateQueue,h.memoizedState=m.memoizedState,h.lanes=m.lanes):(h.updateQueue=null,h.memoizedState=null)}var p=nf(u);if(p!==null){p.flags&=-257,rf(p,u,a,s,t),p.mode&1&&tf(s,c,t),t=p,o=c;var x=t.updateQueue;if(x===null){var k=new Set;k.add(o),t.updateQueue=k}else x.add(o);break e}else{if(!(t&1)){tf(s,c,t),Nc();break e}o=Error(H(426))}}else if(ve&&a.mode&1){var v=nf(u);if(v!==null){!(v.flags&65536)&&(v.flags|=256),rf(v,u,a,s,t),ic(Jr(o,a));break e}}s=o=Jr(o,a),He!==4&&(He=2),Ui===null?Ui=[s]:Ui.push(s),s=u;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var E=jm(s,o,t);Gd(s,E);break e;case 1:a=o;var T=s.type,g=s.stateNode;if(!(s.flags&128)&&(typeof T.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&(Fn===null||!Fn.has(g)))){s.flags|=65536,t&=-t,s.lanes|=t;var w=Um(s,a,t);Gd(s,w);break e}}s=s.return}while(s!==null)}sp(n)}catch(O){t=O,Be===n&&n!==null&&(Be=n=n.return);continue}break}while(!0)}function rp(){var e=Uu.current;return Uu.current=ju,e===null?ju:e}function Nc(){(He===0||He===3||He===2)&&(He=4),$e===null||!(dr&268435455)&&!(la&268435455)||wn($e,Qe)}function Yu(e,t){var n=pe;pe|=2;var r=rp();($e!==e||Qe!==t)&&(an=null,sr(e,t));do try{Q2();break}catch(i){np(e,i)}while(!0);if(uc(),pe=n,Uu.current=r,Be!==null)throw Error(H(261));return $e=null,Qe=0,He}function Q2(){for(;Be!==null;)ip(Be)}function q2(){for(;Be!==null&&!bE();)ip(Be)}function ip(e){var t=ap(e.alternate,e,xt);e.memoizedProps=e.pendingProps,t===null?sp(e):Be=t,bc.current=null}function sp(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=H2(n,t),n!==null){n.flags&=32767,Be=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{He=6,Be=null;return}}else if(n=U2(n,t,xt),n!==null){Be=n;return}if(t=t.sibling,t!==null){Be=t;return}Be=t=e}while(t!==null);He===0&&(He=5)}function Zn(e,t,n){var r=be,i=It.transition;try{It.transition=null,be=1,G2(e,t,n,r)}finally{It.transition=i,be=r}return null}function G2(e,t,n,r){do $r();while(In!==null);if(pe&6)throw Error(H(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(H(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(vE(e,s),e===$e&&(Be=$e=null,Qe=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Ws||(Ws=!0,op(Nu,function(){return $r(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=It.transition,It.transition=null;var u=be;be=1;var a=pe;pe|=4,bc.current=null,Y2(e,n),Zm(n,e),p2(Wo),Su=!!$o,Wo=$o=null,e.current=n,V2(n),TE(),pe=a,be=u,It.transition=s}else e.current=n;if(Ws&&(Ws=!1,In=e,zu=i),s=e.pendingLanes,s===0&&(Fn=null),_E(n.stateNode),mt(e,Pe()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Hu)throw Hu=!1,e=fl,fl=null,e;return zu&1&&e.tag!==0&&$r(),s=e.pendingLanes,s&1?e===hl?Hi++:(Hi=0,hl=e):Hi=0,$n(),null}function $r(){if(In!==null){var e=jh(zu),t=It.transition,n=be;try{if(It.transition=null,be=16>e?16:e,In===null)var r=!1;else{if(e=In,In=null,zu=0,pe&6)throw Error(H(331));var i=pe;for(pe|=4,G=e.current;G!==null;){var s=G,u=s.child;if(G.flags&16){var a=s.deletions;if(a!==null){for(var o=0;o<a.length;o++){var c=a[o];for(G=c;G!==null;){var h=G;switch(h.tag){case 0:case 11:case 15:ji(8,h,s)}var f=h.child;if(f!==null)f.return=h,G=f;else for(;G!==null;){h=G;var m=h.sibling,p=h.return;if(Km(h),h===c){G=null;break}if(m!==null){m.return=p,G=m;break}G=p}}}var x=s.alternate;if(x!==null){var k=x.child;if(k!==null){x.child=null;do{var v=k.sibling;k.sibling=null,k=v}while(k!==null)}}G=s}}if(s.subtreeFlags&2064&&u!==null)u.return=s,G=u;else e:for(;G!==null;){if(s=G,s.flags&2048)switch(s.tag){case 0:case 11:case 15:ji(9,s,s.return)}var E=s.sibling;if(E!==null){E.return=s.return,G=E;break e}G=s.return}}var T=e.current;for(G=T;G!==null;){u=G;var g=u.child;if(u.subtreeFlags&2064&&g!==null)g.return=u,G=g;else e:for(u=T;G!==null;){if(a=G,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:oa(9,a)}}catch(O){Re(a,a.return,O)}if(a===u){G=null;break e}var w=a.sibling;if(w!==null){w.return=a.return,G=w;break e}G=a.return}}if(pe=i,$n(),Xt&&typeof Xt.onPostCommitFiberRoot=="function")try{Xt.onPostCommitFiberRoot(ea,e)}catch{}r=!0}return r}finally{be=n,It.transition=t}}return!1}function Ef(e,t,n){t=Jr(n,t),t=jm(e,t,1),e=Mn(e,t,1),t=st(),e!==null&&(ys(e,1,t),mt(e,t))}function Re(e,t,n){if(e.tag===3)Ef(e,e,n);else for(;t!==null;){if(t.tag===3){Ef(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Fn===null||!Fn.has(r))){e=Jr(n,e),e=Um(t,e,1),t=Mn(t,e,1),e=st(),t!==null&&(ys(t,1,e),mt(t,e));break}}t=t.return}}function K2(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=st(),e.pingedLanes|=e.suspendedLanes&n,$e===e&&(Qe&n)===n&&(He===4||He===3&&(Qe&130023424)===Qe&&500>Pe()-yc?sr(e,0):Tc|=n),mt(e,t)}function up(e,t){t===0&&(e.mode&1?(t=Ms,Ms<<=1,!(Ms&130023424)&&(Ms=4194304)):t=1);var n=st();e=pn(e,t),e!==null&&(ys(e,t,n),mt(e,n))}function X2(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),up(e,n)}function J2(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(H(314))}r!==null&&r.delete(t),up(e,n)}var ap;ap=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ft.current)dt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return dt=!1,j2(e,t,n);dt=!!(e.flags&131072)}else dt=!1,ve&&t.flags&1048576&&dm(t,Ru,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;du(e,t),e=t.pendingProps;var i=qr(t,Ze.current);Vr(t,n),i=mc(null,t,r,e,i,n);var s=pc();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ht(r)?(s=!0,Lu(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,lc(t),i.updater=aa,t.stateNode=i,i._reactInternals=t,tl(t,r,e,n),t=il(null,t,r,!0,s,n)):(t.tag=0,ve&&s&&nc(t),rt(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(du(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=ex(r),e=Mt(r,e),i){case 0:t=rl(null,t,r,e,n);break e;case 1:t=af(null,t,r,e,n);break e;case 11:t=sf(null,t,r,e,n);break e;case 14:t=uf(null,t,r,Mt(r.type,e),n);break e}throw Error(H(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Mt(r,i),rl(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Mt(r,i),af(e,t,r,i,n);case 3:e:{if(Vm(t),e===null)throw Error(H(387));r=t.pendingProps,s=t.memoizedState,i=s.element,Em(e,t),Mu(t,r,null,n);var u=t.memoizedState;if(r=u.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:u.cache,pendingSuspenseBoundaries:u.pendingSuspenseBoundaries,transitions:u.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){i=Jr(Error(H(423)),t),t=of(e,t,r,n,i);break e}else if(r!==i){i=Jr(Error(H(424)),t),t=of(e,t,r,n,i);break e}else for(bt=Pn(t.stateNode.containerInfo.firstChild),Tt=t,ve=!0,Bt=null,n=pm(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Gr(),r===i){t=gn(e,t,n);break e}rt(e,t,r,n)}t=t.child}return t;case 5:return xm(t),e===null&&Jo(t),r=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,u=i.children,Qo(r,i)?u=null:s!==null&&Qo(r,s)&&(t.flags|=32),Ym(e,t),rt(e,t,u,n),t.child;case 6:return e===null&&Jo(t),null;case 13:return $m(e,t,n);case 4:return cc(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Kr(t,null,r,n):rt(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Mt(r,i),sf(e,t,r,i,n);case 7:return rt(e,t,t.pendingProps,n),t.child;case 8:return rt(e,t,t.pendingProps.children,n),t.child;case 12:return rt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,s=t.memoizedProps,u=i.value,Ne(Du,r._currentValue),r._currentValue=u,s!==null)if(zt(s.value,u)){if(s.children===i.children&&!ft.current){t=gn(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var a=s.dependencies;if(a!==null){u=s.child;for(var o=a.firstContext;o!==null;){if(o.context===r){if(s.tag===1){o=fn(-1,n&-n),o.tag=2;var c=s.updateQueue;if(c!==null){c=c.shared;var h=c.pending;h===null?o.next=o:(o.next=h.next,h.next=o),c.pending=o}}s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),Zo(s.return,n,t),a.lanes|=n;break}o=o.next}}else if(s.tag===10)u=s.type===t.type?null:s.child;else if(s.tag===18){if(u=s.return,u===null)throw Error(H(341));u.lanes|=n,a=u.alternate,a!==null&&(a.lanes|=n),Zo(u,n,t),u=s.sibling}else u=s.child;if(u!==null)u.return=s;else for(u=s;u!==null;){if(u===t){u=null;break}if(s=u.sibling,s!==null){s.return=u.return,u=s;break}u=u.return}s=u}rt(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Vr(t,n),i=Lt(i),r=r(i),t.flags|=1,rt(e,t,r,n),t.child;case 14:return r=t.type,i=Mt(r,t.pendingProps),i=Mt(r.type,i),uf(e,t,r,i,n);case 15:return Hm(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Mt(r,i),du(e,t),t.tag=1,ht(r)?(e=!0,Lu(t)):e=!1,Vr(t,n),Bm(t,r,i),tl(t,r,i,n),il(null,t,r,!0,e,n);case 19:return Wm(e,t,n);case 22:return zm(e,t,n)}throw Error(H(156,t.tag))};function op(e,t){return Ph(e,t)}function Z2(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function vt(e,t,n,r){return new Z2(e,t,n,r)}function Cc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ex(e){if(typeof e=="function")return Cc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Vl)return 11;if(e===$l)return 14}return 2}function jn(e,t){var n=e.alternate;return n===null?(n=vt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function mu(e,t,n,r,i,s){var u=2;if(r=e,typeof e=="function")Cc(e)&&(u=1);else if(typeof e=="string")u=5;else e:switch(e){case wr:return ur(n.children,i,s,t);case Yl:u=8,i|=8;break;case Co:return e=vt(12,n,t,i|2),e.elementType=Co,e.lanes=s,e;case So:return e=vt(13,n,t,i),e.elementType=So,e.lanes=s,e;case Ao:return e=vt(19,n,t,i),e.elementType=Ao,e.lanes=s,e;case xh:return ca(n,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case gh:u=10;break e;case Eh:u=9;break e;case Vl:u=11;break e;case $l:u=14;break e;case Cn:u=16,r=null;break e}throw Error(H(130,e==null?e:typeof e,""))}return t=vt(u,n,t,i),t.elementType=e,t.type=r,t.lanes=s,t}function ur(e,t,n,r){return e=vt(7,e,r,t),e.lanes=n,e}function ca(e,t,n,r){return e=vt(22,e,r,t),e.elementType=xh,e.lanes=n,e.stateNode={isHidden:!1},e}function eo(e,t,n){return e=vt(6,e,null,t),e.lanes=n,e}function to(e,t,n){return t=vt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function tx(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Pa(0),this.expirationTimes=Pa(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Pa(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Sc(e,t,n,r,i,s,u,a,o){return e=new tx(e,t,n,a,o),t===1?(t=1,s===!0&&(t|=8)):t=0,s=vt(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},lc(s),e}function nx(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Ar,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function lp(e){if(!e)return Hn;e=e._reactInternals;e:{if(gr(e)!==e||e.tag!==1)throw Error(H(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(ht(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(H(171))}if(e.tag===1){var n=e.type;if(ht(n))return lm(e,n,t)}return t}function cp(e,t,n,r,i,s,u,a,o){return e=Sc(n,r,!0,e,i,s,u,a,o),e.context=lp(null),n=e.current,r=st(),i=Bn(n),s=fn(r,i),s.callback=t??null,Mn(n,s,i),e.current.lanes=i,ys(e,i,r),mt(e,r),e}function da(e,t,n,r){var i=t.current,s=st(),u=Bn(i);return n=lp(n),t.context===null?t.context=n:t.pendingContext=n,t=fn(s,u),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Mn(i,t,u),e!==null&&(Ut(e,i,u,s),ou(e,i,u)),u}function Vu(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function xf(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Ac(e,t){xf(e,t),(e=e.alternate)&&xf(e,t)}function rx(){return null}var dp=typeof reportError=="function"?reportError:function(e){console.error(e)};function wc(e){this._internalRoot=e}fa.prototype.render=wc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(H(409));da(e,t,null,null)};fa.prototype.unmount=wc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;fr(function(){da(null,e,null,null)}),t[mn]=null}};function fa(e){this._internalRoot=e}fa.prototype.unstable_scheduleHydration=function(e){if(e){var t=zh();e={blockedOn:null,target:e,priority:t};for(var n=0;n<An.length&&t!==0&&t<An[n].priority;n++);An.splice(n,0,e),n===0&&Vh(e)}};function vc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ha(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function bf(){}function ix(e,t,n,r,i){if(i){if(typeof r=="function"){var s=r;r=function(){var c=Vu(u);s.call(c)}}var u=cp(t,r,e,0,null,!1,!1,"",bf);return e._reactRootContainer=u,e[mn]=u.current,is(e.nodeType===8?e.parentNode:e),fr(),u}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var a=r;r=function(){var c=Vu(o);a.call(c)}}var o=Sc(e,0,!1,null,null,!1,!1,"",bf);return e._reactRootContainer=o,e[mn]=o.current,is(e.nodeType===8?e.parentNode:e),fr(function(){da(t,o,n,r)}),o}function ma(e,t,n,r,i){var s=n._reactRootContainer;if(s){var u=s;if(typeof i=="function"){var a=i;i=function(){var o=Vu(u);a.call(o)}}da(t,u,e,i)}else u=ix(n,t,e,i,r);return Vu(u)}Uh=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Ii(t.pendingLanes);n!==0&&(ql(t,n|1),mt(t,Pe()),!(pe&6)&&(Zr=Pe()+500,$n()))}break;case 13:fr(function(){var r=pn(e,1);if(r!==null){var i=st();Ut(r,e,1,i)}}),Ac(e,1)}};Gl=function(e){if(e.tag===13){var t=pn(e,134217728);if(t!==null){var n=st();Ut(t,e,134217728,n)}Ac(e,134217728)}};Hh=function(e){if(e.tag===13){var t=Bn(e),n=pn(e,t);if(n!==null){var r=st();Ut(n,e,t,r)}Ac(e,t)}};zh=function(){return be};Yh=function(e,t){var n=be;try{return be=e,t()}finally{be=n}};Fo=function(e,t,n){switch(t){case"input":if(Io(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=ia(r);if(!i)throw Error(H(90));Th(r),Io(r,i)}}}break;case"textarea":kh(e,n);break;case"select":t=n.value,t!=null&&Ur(e,!!n.multiple,t,!1)}};vh=kc;Ih=fr;var sx={usingClientEntryPoint:!1,Events:[_s,Or,ia,Ah,wh,kc]},ki={findFiberByHostInstance:tr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},ux={bundleType:ki.bundleType,version:ki.version,rendererPackageName:ki.rendererPackageName,rendererConfig:ki.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:En.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Rh(e),e===null?null:e.stateNode},findFiberByHostInstance:ki.findFiberByHostInstance||rx,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Qs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Qs.isDisabled&&Qs.supportsFiber)try{ea=Qs.inject(ux),Xt=Qs}catch{}}_t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=sx;_t.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!vc(t))throw Error(H(200));return nx(e,t,null,n)};_t.createRoot=function(e,t){if(!vc(e))throw Error(H(299));var n=!1,r="",i=dp;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Sc(e,1,!1,null,null,n,!1,r,i),e[mn]=t.current,is(e.nodeType===8?e.parentNode:e),new wc(t)};_t.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(H(188)):(e=Object.keys(e).join(","),Error(H(268,e)));return e=Rh(t),e=e===null?null:e.stateNode,e};_t.flushSync=function(e){return fr(e)};_t.hydrate=function(e,t,n){if(!ha(t))throw Error(H(200));return ma(null,e,t,!0,n)};_t.hydrateRoot=function(e,t,n){if(!vc(e))throw Error(H(405));var r=n!=null&&n.hydratedSources||null,i=!1,s="",u=dp;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(u=n.onRecoverableError)),t=cp(t,null,e,1,n??null,i,!1,s,u),e[mn]=t.current,is(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new fa(t)};_t.render=function(e,t,n){if(!ha(t))throw Error(H(200));return ma(null,e,t,!1,n)};_t.unmountComponentAtNode=function(e){if(!ha(e))throw Error(H(40));return e._reactRootContainer?(fr(function(){ma(null,null,e,!1,function(){e._reactRootContainer=null,e[mn]=null})}),!0):!1};_t.unstable_batchedUpdates=kc;_t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ha(n))throw Error(H(200));if(e==null||e._reactInternals===void 0)throw Error(H(38));return ma(e,t,n,!1,r)};_t.version="18.3.1-next-f1338f8080-20240426";function fp(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(fp)}catch(e){console.error(e)}}fp(),fh.exports=_t;var ax=fh.exports,Tf=ax;_o.createRoot=Tf.createRoot,_o.hydrateRoot=Tf.hydrateRoot;function hp(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=hp(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ox(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=hp(e))&&(r&&(r+=" "),r+=t);return r}const lx=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},cx=(e,t)=>({classGroupId:e,validator:t}),mp=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),$u="-",yf=[],dx="arbitrary..",fx=e=>{const t=mx(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:u=>{if(u.startsWith("[")&&u.endsWith("]"))return hx(u);const a=u.split($u),o=a[0]===""&&a.length>1?1:0;return pp(a,o,t)},getConflictingClassGroupIds:(u,a)=>{if(a){const o=r[u],c=n[u];return o?c?lx(c,o):o:c||yf}return n[u]||yf}}},pp=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const i=e[t],s=n.nextPart.get(i);if(s){const c=pp(e,t+1,s);if(c)return c}const u=n.validators;if(u===null)return;const a=t===0?e.join($u):e.slice(t).join($u),o=u.length;for(let c=0;c<o;c++){const h=u[c];if(h.validator(a))return h.classGroupId}},hx=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?dx+r:void 0})(),mx=e=>{const{theme:t,classGroups:n}=e;return px(n,t)},px=(e,t)=>{const n=mp();for(const r in e){const i=e[r];Ic(i,n,r,t)}return n},Ic=(e,t,n,r)=>{const i=e.length;for(let s=0;s<i;s++){const u=e[s];gx(u,t,n,r)}},gx=(e,t,n,r)=>{if(typeof e=="string"){Ex(e,t,n);return}if(typeof e=="function"){xx(e,t,n,r);return}bx(e,t,n,r)},Ex=(e,t,n)=>{const r=e===""?t:gp(t,e);r.classGroupId=n},xx=(e,t,n,r)=>{if(Tx(e)){Ic(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(cx(n,e))},bx=(e,t,n,r)=>{const i=Object.entries(e),s=i.length;for(let u=0;u<s;u++){const[a,o]=i[u];Ic(o,gp(t,a),n,r)}},gp=(e,t)=>{let n=e;const r=t.split($u),i=r.length;for(let s=0;s<i;s++){const u=r[s];let a=n.nextPart.get(u);a||(a=mp(),n.nextPart.set(u,a)),n=a}return n},Tx=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,yx=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const i=(s,u)=>{n[s]=u,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(s){let u=n[s];if(u!==void 0)return u;if((u=r[s])!==void 0)return i(s,u),u},set(s,u){s in n?n[s]=u:i(s,u)}}},gl="!",kf=":",kx=[],_f=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),_x=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=i=>{const s=[];let u=0,a=0,o=0,c;const h=i.length;for(let k=0;k<h;k++){const v=i[k];if(u===0&&a===0){if(v===kf){s.push(i.slice(o,k)),o=k+1;continue}if(v==="/"){c=k;continue}}v==="["?u++:v==="]"?u--:v==="("?a++:v===")"&&a--}const f=s.length===0?i:i.slice(o);let m=f,p=!1;f.endsWith(gl)?(m=f.slice(0,-1),p=!0):f.startsWith(gl)&&(m=f.slice(1),p=!0);const x=c&&c>o?c-o:void 0;return _f(s,p,m,x)};if(t){const i=t+kf,s=r;r=u=>u.startsWith(i)?s(u.slice(i.length)):_f(kx,!1,u,void 0,!0)}if(n){const i=r;r=s=>n({className:s,parseClassName:i})}return r},Nx=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let i=[];for(let s=0;s<n.length;s++){const u=n[s],a=u[0]==="[",o=t.has(u);a||o?(i.length>0&&(i.sort(),r.push(...i),i=[]),r.push(u)):i.push(u)}return i.length>0&&(i.sort(),r.push(...i)),r}},Cx=e=>({cache:yx(e.cacheSize),parseClassName:_x(e),sortModifiers:Nx(e),postfixLookupClassGroupIds:Sx(e),...fx(e)}),Sx=e=>{const t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let r=0;r<n.length;r++)t[n[r]]=!0;return t},Ax=/\s+/,wx=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:s,postfixLookupClassGroupIds:u}=t,a=[],o=e.trim().split(Ax);let c="";for(let h=o.length-1;h>=0;h-=1){const f=o[h],{isExternal:m,modifiers:p,hasImportantModifier:x,baseClassName:k,maybePostfixModifierPosition:v}=n(f);if(m){c=f+(c.length>0?" "+c:c);continue}let E=!!v,T;if(E){const P=k.substring(0,v);T=r(P);const I=T&&u[T]?r(k):void 0;I&&I!==T&&(T=I,E=!1)}else T=r(k);if(!T){if(!E){c=f+(c.length>0?" "+c:c);continue}if(T=r(k),!T){c=f+(c.length>0?" "+c:c);continue}E=!1}const g=p.length===0?"":p.length===1?p[0]:s(p).join(":"),w=x?g+gl:g,O=w+T;if(a.indexOf(O)>-1)continue;a.push(O);const N=i(T,E);for(let P=0;P<N.length;++P){const I=N[P];a.push(w+I)}c=f+(c.length>0?" "+c:c)}return c},vx=(...e)=>{let t=0,n,r,i="";for(;t<e.length;)(n=e[t++])&&(r=Ep(n))&&(i&&(i+=" "),i+=r);return i},Ep=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Ep(e[r]))&&(n&&(n+=" "),n+=t);return n},Ix=(e,...t)=>{let n,r,i,s;const u=o=>{const c=t.reduce((h,f)=>f(h),e());return n=Cx(c),r=n.cache.get,i=n.cache.set,s=a,a(o)},a=o=>{const c=r(o);if(c)return c;const h=wx(o,n);return i(o,h),h};return s=u,(...o)=>s(vx(...o))},Lx=[],je=e=>{const t=n=>n[e]||Lx;return t.isThemeGetter=!0,t},xp=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,bp=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Ox=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Rx=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Dx=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Px=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Mx=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Fx=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Tn=e=>Ox.test(e),ue=e=>!!e&&!Number.isNaN(Number(e)),$t=e=>!!e&&Number.isInteger(Number(e)),no=e=>e.endsWith("%")&&ue(e.slice(0,-1)),un=e=>Rx.test(e),Tp=()=>!0,Bx=e=>Dx.test(e)&&!Px.test(e),Lc=()=>!1,jx=e=>Mx.test(e),Ux=e=>Fx.test(e),Hx=e=>!Q(e)&&!q(e),zx=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),Yx=e=>Wn(e,_p,Lc),Q=e=>xp.test(e),Kn=e=>Wn(e,Np,Bx),Nf=e=>Wn(e,Xx,ue),Vx=e=>Wn(e,Sp,Tp),$x=e=>Wn(e,Cp,Lc),Cf=e=>Wn(e,yp,Lc),Wx=e=>Wn(e,kp,Ux),qs=e=>Wn(e,Ap,jx),q=e=>bp.test(e),_i=e=>Er(e,Np),Qx=e=>Er(e,Cp),Sf=e=>Er(e,yp),qx=e=>Er(e,_p),Gx=e=>Er(e,kp),Gs=e=>Er(e,Ap,!0),Kx=e=>Er(e,Sp,!0),Wn=(e,t,n)=>{const r=xp.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Er=(e,t,n=!1)=>{const r=bp.exec(e);return r?r[1]?t(r[1]):n:!1},yp=e=>e==="position"||e==="percentage",kp=e=>e==="image"||e==="url",_p=e=>e==="length"||e==="size"||e==="bg-size",Np=e=>e==="length",Xx=e=>e==="number",Cp=e=>e==="family-name",Sp=e=>e==="number"||e==="weight",Ap=e=>e==="shadow",Jx=()=>{const e=je("color"),t=je("font"),n=je("text"),r=je("font-weight"),i=je("tracking"),s=je("leading"),u=je("breakpoint"),a=je("container"),o=je("spacing"),c=je("radius"),h=je("shadow"),f=je("inset-shadow"),m=je("text-shadow"),p=je("drop-shadow"),x=je("blur"),k=je("perspective"),v=je("aspect"),E=je("ease"),T=je("animate"),g=()=>["auto","avoid","all","avoid-page","page","left","right","column"],w=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],O=()=>[...w(),q,Q],N=()=>["auto","hidden","clip","visible","scroll"],P=()=>["auto","contain","none"],I=()=>[q,Q,o],F=()=>[Tn,"full","auto",...I()],A=()=>[$t,"none","subgrid",q,Q],V=()=>["auto",{span:["full",$t,q,Q]},$t,q,Q],j=()=>[$t,"auto",q,Q],te=()=>["auto","min","max","fr",q,Q],ae=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],W=()=>["start","end","center","stretch","center-safe","end-safe"],ie=()=>["auto",...I()],fe=()=>[Tn,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...I()],Y=()=>[Tn,"screen","full","dvw","lvw","svw","min","max","fit",...I()],K=()=>[Tn,"screen","full","lh","dvh","lvh","svh","min","max","fit",...I()],b=()=>[e,q,Q],X=()=>[...w(),Sf,Cf,{position:[q,Q]}],ne=()=>["no-repeat",{repeat:["","x","y","space","round"]}],S=()=>["auto","cover","contain",qx,Yx,{size:[q,Q]}],Ee=()=>[no,_i,Kn],ge=()=>["","none","full",c,q,Q],ee=()=>["",ue,_i,Kn],nt=()=>["solid","dashed","dotted","double"],Rt=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Ce=()=>[ue,no,Sf,Cf],tn=()=>["","none",x,q,Q],nn=()=>["none",ue,q,Q],yr=()=>["none",ue,q,Q],fi=()=>[ue,q,Q],kr=()=>[Tn,"full",...I()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[un],breakpoint:[un],color:[Tp],container:[un],"drop-shadow":[un],ease:["in","out","in-out"],font:[Hx],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[un],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[un],shadow:[un],spacing:["px",ue],text:[un],"text-shadow":[un],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Tn,Q,q,v]}],container:["container"],"container-type":[{"@container":["","normal","size",q,Q]}],"container-named":[zx],columns:[{columns:[ue,Q,q,a]}],"break-after":[{"break-after":g()}],"break-before":[{"break-before":g()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:O()}],overflow:[{overflow:N()}],"overflow-x":[{"overflow-x":N()}],"overflow-y":[{"overflow-y":N()}],overscroll:[{overscroll:P()}],"overscroll-x":[{"overscroll-x":P()}],"overscroll-y":[{"overscroll-y":P()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:F()}],"inset-x":[{"inset-x":F()}],"inset-y":[{"inset-y":F()}],start:[{"inset-s":F(),start:F()}],end:[{"inset-e":F(),end:F()}],"inset-bs":[{"inset-bs":F()}],"inset-be":[{"inset-be":F()}],top:[{top:F()}],right:[{right:F()}],bottom:[{bottom:F()}],left:[{left:F()}],visibility:["visible","invisible","collapse"],z:[{z:[$t,"auto",q,Q]}],basis:[{basis:[Tn,"full","auto",a,...I()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ue,Tn,"auto","initial","none",Q]}],grow:[{grow:["",ue,q,Q]}],shrink:[{shrink:["",ue,q,Q]}],order:[{order:[$t,"first","last","none",q,Q]}],"grid-cols":[{"grid-cols":A()}],"col-start-end":[{col:V()}],"col-start":[{"col-start":j()}],"col-end":[{"col-end":j()}],"grid-rows":[{"grid-rows":A()}],"row-start-end":[{row:V()}],"row-start":[{"row-start":j()}],"row-end":[{"row-end":j()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":te()}],"auto-rows":[{"auto-rows":te()}],gap:[{gap:I()}],"gap-x":[{"gap-x":I()}],"gap-y":[{"gap-y":I()}],"justify-content":[{justify:[...ae(),"normal"]}],"justify-items":[{"justify-items":[...W(),"normal"]}],"justify-self":[{"justify-self":["auto",...W()]}],"align-content":[{content:["normal",...ae()]}],"align-items":[{items:[...W(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...W(),{baseline:["","last"]}]}],"place-content":[{"place-content":ae()}],"place-items":[{"place-items":[...W(),"baseline"]}],"place-self":[{"place-self":["auto",...W()]}],p:[{p:I()}],px:[{px:I()}],py:[{py:I()}],ps:[{ps:I()}],pe:[{pe:I()}],pbs:[{pbs:I()}],pbe:[{pbe:I()}],pt:[{pt:I()}],pr:[{pr:I()}],pb:[{pb:I()}],pl:[{pl:I()}],m:[{m:ie()}],mx:[{mx:ie()}],my:[{my:ie()}],ms:[{ms:ie()}],me:[{me:ie()}],mbs:[{mbs:ie()}],mbe:[{mbe:ie()}],mt:[{mt:ie()}],mr:[{mr:ie()}],mb:[{mb:ie()}],ml:[{ml:ie()}],"space-x":[{"space-x":I()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":I()}],"space-y-reverse":["space-y-reverse"],size:[{size:fe()}],"inline-size":[{inline:["auto",...Y()]}],"min-inline-size":[{"min-inline":["auto",...Y()]}],"max-inline-size":[{"max-inline":["none",...Y()]}],"block-size":[{block:["auto",...K()]}],"min-block-size":[{"min-block":["auto",...K()]}],"max-block-size":[{"max-block":["none",...K()]}],w:[{w:[a,"screen",...fe()]}],"min-w":[{"min-w":[a,"screen","none",...fe()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[u]},...fe()]}],h:[{h:["screen","lh",...fe()]}],"min-h":[{"min-h":["screen","lh","none",...fe()]}],"max-h":[{"max-h":["screen","lh",...fe()]}],"font-size":[{text:["base",n,_i,Kn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Kx,Vx]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",no,Q]}],"font-family":[{font:[Qx,$x,t]}],"font-features":[{"font-features":[Q]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,q,Q]}],"line-clamp":[{"line-clamp":[ue,"none",q,Nf]}],leading:[{leading:[s,...I()]}],"list-image":[{"list-image":["none",q,Q]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",q,Q]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:b()}],"text-color":[{text:b()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...nt(),"wavy"]}],"text-decoration-thickness":[{decoration:[ue,"from-font","auto",q,Kn]}],"text-decoration-color":[{decoration:b()}],"underline-offset":[{"underline-offset":[ue,"auto",q,Q]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:I()}],"tab-size":[{tab:[$t,q,Q]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",q,Q]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",q,Q]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:X()}],"bg-repeat":[{bg:ne()}],"bg-size":[{bg:S()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},$t,q,Q],radial:["",q,Q],conic:[$t,q,Q]},Gx,Wx]}],"bg-color":[{bg:b()}],"gradient-from-pos":[{from:Ee()}],"gradient-via-pos":[{via:Ee()}],"gradient-to-pos":[{to:Ee()}],"gradient-from":[{from:b()}],"gradient-via":[{via:b()}],"gradient-to":[{to:b()}],rounded:[{rounded:ge()}],"rounded-s":[{"rounded-s":ge()}],"rounded-e":[{"rounded-e":ge()}],"rounded-t":[{"rounded-t":ge()}],"rounded-r":[{"rounded-r":ge()}],"rounded-b":[{"rounded-b":ge()}],"rounded-l":[{"rounded-l":ge()}],"rounded-ss":[{"rounded-ss":ge()}],"rounded-se":[{"rounded-se":ge()}],"rounded-ee":[{"rounded-ee":ge()}],"rounded-es":[{"rounded-es":ge()}],"rounded-tl":[{"rounded-tl":ge()}],"rounded-tr":[{"rounded-tr":ge()}],"rounded-br":[{"rounded-br":ge()}],"rounded-bl":[{"rounded-bl":ge()}],"border-w":[{border:ee()}],"border-w-x":[{"border-x":ee()}],"border-w-y":[{"border-y":ee()}],"border-w-s":[{"border-s":ee()}],"border-w-e":[{"border-e":ee()}],"border-w-bs":[{"border-bs":ee()}],"border-w-be":[{"border-be":ee()}],"border-w-t":[{"border-t":ee()}],"border-w-r":[{"border-r":ee()}],"border-w-b":[{"border-b":ee()}],"border-w-l":[{"border-l":ee()}],"divide-x":[{"divide-x":ee()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ee()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...nt(),"hidden","none"]}],"divide-style":[{divide:[...nt(),"hidden","none"]}],"border-color":[{border:b()}],"border-color-x":[{"border-x":b()}],"border-color-y":[{"border-y":b()}],"border-color-s":[{"border-s":b()}],"border-color-e":[{"border-e":b()}],"border-color-bs":[{"border-bs":b()}],"border-color-be":[{"border-be":b()}],"border-color-t":[{"border-t":b()}],"border-color-r":[{"border-r":b()}],"border-color-b":[{"border-b":b()}],"border-color-l":[{"border-l":b()}],"divide-color":[{divide:b()}],"outline-style":[{outline:[...nt(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ue,q,Q]}],"outline-w":[{outline:["",ue,_i,Kn]}],"outline-color":[{outline:b()}],shadow:[{shadow:["","none",h,Gs,qs]}],"shadow-color":[{shadow:b()}],"inset-shadow":[{"inset-shadow":["none",f,Gs,qs]}],"inset-shadow-color":[{"inset-shadow":b()}],"ring-w":[{ring:ee()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:b()}],"ring-offset-w":[{"ring-offset":[ue,Kn]}],"ring-offset-color":[{"ring-offset":b()}],"inset-ring-w":[{"inset-ring":ee()}],"inset-ring-color":[{"inset-ring":b()}],"text-shadow":[{"text-shadow":["none",m,Gs,qs]}],"text-shadow-color":[{"text-shadow":b()}],opacity:[{opacity:[ue,q,Q]}],"mix-blend":[{"mix-blend":[...Rt(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Rt()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[ue]}],"mask-image-linear-from-pos":[{"mask-linear-from":Ce()}],"mask-image-linear-to-pos":[{"mask-linear-to":Ce()}],"mask-image-linear-from-color":[{"mask-linear-from":b()}],"mask-image-linear-to-color":[{"mask-linear-to":b()}],"mask-image-t-from-pos":[{"mask-t-from":Ce()}],"mask-image-t-to-pos":[{"mask-t-to":Ce()}],"mask-image-t-from-color":[{"mask-t-from":b()}],"mask-image-t-to-color":[{"mask-t-to":b()}],"mask-image-r-from-pos":[{"mask-r-from":Ce()}],"mask-image-r-to-pos":[{"mask-r-to":Ce()}],"mask-image-r-from-color":[{"mask-r-from":b()}],"mask-image-r-to-color":[{"mask-r-to":b()}],"mask-image-b-from-pos":[{"mask-b-from":Ce()}],"mask-image-b-to-pos":[{"mask-b-to":Ce()}],"mask-image-b-from-color":[{"mask-b-from":b()}],"mask-image-b-to-color":[{"mask-b-to":b()}],"mask-image-l-from-pos":[{"mask-l-from":Ce()}],"mask-image-l-to-pos":[{"mask-l-to":Ce()}],"mask-image-l-from-color":[{"mask-l-from":b()}],"mask-image-l-to-color":[{"mask-l-to":b()}],"mask-image-x-from-pos":[{"mask-x-from":Ce()}],"mask-image-x-to-pos":[{"mask-x-to":Ce()}],"mask-image-x-from-color":[{"mask-x-from":b()}],"mask-image-x-to-color":[{"mask-x-to":b()}],"mask-image-y-from-pos":[{"mask-y-from":Ce()}],"mask-image-y-to-pos":[{"mask-y-to":Ce()}],"mask-image-y-from-color":[{"mask-y-from":b()}],"mask-image-y-to-color":[{"mask-y-to":b()}],"mask-image-radial":[{"mask-radial":[q,Q]}],"mask-image-radial-from-pos":[{"mask-radial-from":Ce()}],"mask-image-radial-to-pos":[{"mask-radial-to":Ce()}],"mask-image-radial-from-color":[{"mask-radial-from":b()}],"mask-image-radial-to-color":[{"mask-radial-to":b()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":w()}],"mask-image-conic-pos":[{"mask-conic":[ue]}],"mask-image-conic-from-pos":[{"mask-conic-from":Ce()}],"mask-image-conic-to-pos":[{"mask-conic-to":Ce()}],"mask-image-conic-from-color":[{"mask-conic-from":b()}],"mask-image-conic-to-color":[{"mask-conic-to":b()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:X()}],"mask-repeat":[{mask:ne()}],"mask-size":[{mask:S()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",q,Q]}],filter:[{filter:["","none",q,Q]}],blur:[{blur:tn()}],brightness:[{brightness:[ue,q,Q]}],contrast:[{contrast:[ue,q,Q]}],"drop-shadow":[{"drop-shadow":["","none",p,Gs,qs]}],"drop-shadow-color":[{"drop-shadow":b()}],grayscale:[{grayscale:["",ue,q,Q]}],"hue-rotate":[{"hue-rotate":[ue,q,Q]}],invert:[{invert:["",ue,q,Q]}],saturate:[{saturate:[ue,q,Q]}],sepia:[{sepia:["",ue,q,Q]}],"backdrop-filter":[{"backdrop-filter":["","none",q,Q]}],"backdrop-blur":[{"backdrop-blur":tn()}],"backdrop-brightness":[{"backdrop-brightness":[ue,q,Q]}],"backdrop-contrast":[{"backdrop-contrast":[ue,q,Q]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ue,q,Q]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ue,q,Q]}],"backdrop-invert":[{"backdrop-invert":["",ue,q,Q]}],"backdrop-opacity":[{"backdrop-opacity":[ue,q,Q]}],"backdrop-saturate":[{"backdrop-saturate":[ue,q,Q]}],"backdrop-sepia":[{"backdrop-sepia":["",ue,q,Q]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":I()}],"border-spacing-x":[{"border-spacing-x":I()}],"border-spacing-y":[{"border-spacing-y":I()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",q,Q]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ue,"initial",q,Q]}],ease:[{ease:["linear","initial",E,q,Q]}],delay:[{delay:[ue,q,Q]}],animate:[{animate:["none",T,q,Q]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[k,q,Q]}],"perspective-origin":[{"perspective-origin":O()}],rotate:[{rotate:nn()}],"rotate-x":[{"rotate-x":nn()}],"rotate-y":[{"rotate-y":nn()}],"rotate-z":[{"rotate-z":nn()}],scale:[{scale:yr()}],"scale-x":[{"scale-x":yr()}],"scale-y":[{"scale-y":yr()}],"scale-z":[{"scale-z":yr()}],"scale-3d":["scale-3d"],skew:[{skew:fi()}],"skew-x":[{"skew-x":fi()}],"skew-y":[{"skew-y":fi()}],transform:[{transform:[q,Q,"","none","gpu","cpu"]}],"transform-origin":[{origin:O()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:kr()}],"translate-x":[{"translate-x":kr()}],"translate-y":[{"translate-y":kr()}],"translate-z":[{"translate-z":kr()}],"translate-none":["translate-none"],zoom:[{zoom:[$t,q,Q]}],accent:[{accent:b()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:b()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",q,Q]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":b()}],"scrollbar-track-color":[{"scrollbar-track":b()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":I()}],"scroll-mx":[{"scroll-mx":I()}],"scroll-my":[{"scroll-my":I()}],"scroll-ms":[{"scroll-ms":I()}],"scroll-me":[{"scroll-me":I()}],"scroll-mbs":[{"scroll-mbs":I()}],"scroll-mbe":[{"scroll-mbe":I()}],"scroll-mt":[{"scroll-mt":I()}],"scroll-mr":[{"scroll-mr":I()}],"scroll-mb":[{"scroll-mb":I()}],"scroll-ml":[{"scroll-ml":I()}],"scroll-p":[{"scroll-p":I()}],"scroll-px":[{"scroll-px":I()}],"scroll-py":[{"scroll-py":I()}],"scroll-ps":[{"scroll-ps":I()}],"scroll-pe":[{"scroll-pe":I()}],"scroll-pbs":[{"scroll-pbs":I()}],"scroll-pbe":[{"scroll-pbe":I()}],"scroll-pt":[{"scroll-pt":I()}],"scroll-pr":[{"scroll-pr":I()}],"scroll-pb":[{"scroll-pb":I()}],"scroll-pl":[{"scroll-pl":I()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",q,Q]}],fill:[{fill:["none",...b()]}],"stroke-w":[{stroke:[ue,_i,Kn,Nf]}],stroke:[{stroke:["none",...b()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Zx=Ix(Jx);function Z(...e){return Zx(ox(e))}function eb(e){if(!e)return"";try{const t=new Date(e),n=r=>r.toString().padStart(2,"0");return`${t.getFullYear()}-${n(t.getMonth()+1)}-${n(t.getDate())}`}catch{return e}}function tb(e){if(!e)return"";try{const t=new Date(e),r=Date.now()-t.getTime(),i=Math.floor(r/1e3),s=Math.floor(i/60),u=Math.floor(s/60),a=Math.floor(u/24);if(s<1)return"刚刚";if(u<1)return`${s} 分钟前`;if(a<1)return`${u} 小时前`;if(a<7)return`${a} 天前`;const o=c=>c.toString().padStart(2,"0");return`${t.getFullYear()}-${o(t.getMonth()+1)}-${o(t.getDate())} ${o(t.getHours())}:${o(t.getMinutes())}`}catch{return e}}/**
|
|
41
|
+
* @license lucide-react v1.16.0 - ISC
|
|
42
|
+
*
|
|
43
|
+
* This source code is licensed under the ISC license.
|
|
44
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
45
|
+
*/const wp=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
|
|
46
|
+
* @license lucide-react v1.16.0 - ISC
|
|
47
|
+
*
|
|
48
|
+
* This source code is licensed under the ISC license.
|
|
49
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
50
|
+
*/const nb=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
|
|
51
|
+
* @license lucide-react v1.16.0 - ISC
|
|
52
|
+
*
|
|
53
|
+
* This source code is licensed under the ISC license.
|
|
54
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
55
|
+
*/const rb=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase());/**
|
|
56
|
+
* @license lucide-react v1.16.0 - ISC
|
|
57
|
+
*
|
|
58
|
+
* This source code is licensed under the ISC license.
|
|
59
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
60
|
+
*/const Af=e=>{const t=rb(e);return t.charAt(0).toUpperCase()+t.slice(1)};/**
|
|
61
|
+
* @license lucide-react v1.16.0 - ISC
|
|
62
|
+
*
|
|
63
|
+
* This source code is licensed under the ISC license.
|
|
64
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
65
|
+
*/var ro={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
66
|
+
* @license lucide-react v1.16.0 - ISC
|
|
67
|
+
*
|
|
68
|
+
* This source code is licensed under the ISC license.
|
|
69
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
70
|
+
*/const ib=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1},sb=R.createContext({}),ub=()=>R.useContext(sb),ab=R.forwardRef(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:r,className:i="",children:s,iconNode:u,...a},o)=>{const{size:c=24,strokeWidth:h=2,absoluteStrokeWidth:f=!1,color:m="currentColor",className:p=""}=ub()??{},x=r??f?Number(n??h)*24/Number(t??c):n??h;return R.createElement("svg",{ref:o,...ro,width:t??c??ro.width,height:t??c??ro.height,stroke:e??m,strokeWidth:x,className:wp("lucide",p,i),...!s&&!ib(a)&&{"aria-hidden":"true"},...a},[...u.map(([k,v])=>R.createElement(k,v)),...Array.isArray(s)?s:[s]])});/**
|
|
71
|
+
* @license lucide-react v1.16.0 - ISC
|
|
72
|
+
*
|
|
73
|
+
* This source code is licensed under the ISC license.
|
|
74
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
75
|
+
*/const le=(e,t)=>{const n=R.forwardRef(({className:r,...i},s)=>R.createElement(ab,{ref:s,iconNode:t,className:wp(`lucide-${nb(Af(e))}`,`lucide-${e}`,r),...i}));return n.displayName=Af(e),n};/**
|
|
76
|
+
* @license lucide-react v1.16.0 - ISC
|
|
77
|
+
*
|
|
78
|
+
* This source code is licensed under the ISC license.
|
|
79
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
80
|
+
*/const ob=[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]],vp=le("archive",ob);/**
|
|
81
|
+
* @license lucide-react v1.16.0 - ISC
|
|
82
|
+
*
|
|
83
|
+
* This source code is licensed under the ISC license.
|
|
84
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
85
|
+
*/const lb=[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]],cb=le("arrow-up-down",lb);/**
|
|
86
|
+
* @license lucide-react v1.16.0 - ISC
|
|
87
|
+
*
|
|
88
|
+
* This source code is licensed under the ISC license.
|
|
89
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
90
|
+
*/const db=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M17 17H4a1 1 0 0 1-.74-1.673C4.59 13.956 6 12.499 6 8a6 6 0 0 1 .258-1.742",key:"178tsu"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M8.668 3.01A6 6 0 0 1 18 8c0 2.687.77 4.653 1.707 6.05",key:"1hqiys"}]],fb=le("bell-off",db);/**
|
|
91
|
+
* @license lucide-react v1.16.0 - ISC
|
|
92
|
+
*
|
|
93
|
+
* This source code is licensed under the ISC license.
|
|
94
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
95
|
+
*/const hb=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],wf=le("bell",hb);/**
|
|
96
|
+
* @license lucide-react v1.16.0 - ISC
|
|
97
|
+
*
|
|
98
|
+
* This source code is licensed under the ISC license.
|
|
99
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
100
|
+
*/const mb=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],pb=le("bot",mb);/**
|
|
101
|
+
* @license lucide-react v1.16.0 - ISC
|
|
102
|
+
*
|
|
103
|
+
* This source code is licensed under the ISC license.
|
|
104
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
105
|
+
*/const gb=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],hs=le("check",gb);/**
|
|
106
|
+
* @license lucide-react v1.16.0 - ISC
|
|
107
|
+
*
|
|
108
|
+
* This source code is licensed under the ISC license.
|
|
109
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
110
|
+
*/const Eb=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],vf=le("chevron-down",Eb);/**
|
|
111
|
+
* @license lucide-react v1.16.0 - ISC
|
|
112
|
+
*
|
|
113
|
+
* This source code is licensed under the ISC license.
|
|
114
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
115
|
+
*/const xb=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Ip=le("chevron-right",xb);/**
|
|
116
|
+
* @license lucide-react v1.16.0 - ISC
|
|
117
|
+
*
|
|
118
|
+
* This source code is licensed under the ISC license.
|
|
119
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
120
|
+
*/const bb=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],Tb=le("circle-alert",bb);/**
|
|
121
|
+
* @license lucide-react v1.16.0 - ISC
|
|
122
|
+
*
|
|
123
|
+
* This source code is licensed under the ISC license.
|
|
124
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
125
|
+
*/const yb=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],ei=le("circle-check-big",yb);/**
|
|
126
|
+
* @license lucide-react v1.16.0 - ISC
|
|
127
|
+
*
|
|
128
|
+
* This source code is licensed under the ISC license.
|
|
129
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
130
|
+
*/const kb=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],Oc=le("circle-x",kb);/**
|
|
131
|
+
* @license lucide-react v1.16.0 - ISC
|
|
132
|
+
*
|
|
133
|
+
* This source code is licensed under the ISC license.
|
|
134
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
135
|
+
*/const _b=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]],Nb=le("clipboard-list",_b);/**
|
|
136
|
+
* @license lucide-react v1.16.0 - ISC
|
|
137
|
+
*
|
|
138
|
+
* This source code is licensed under the ISC license.
|
|
139
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
140
|
+
*/const Cb=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],El=le("clock",Cb);/**
|
|
141
|
+
* @license lucide-react v1.16.0 - ISC
|
|
142
|
+
*
|
|
143
|
+
* This source code is licensed under the ISC license.
|
|
144
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
145
|
+
*/const Sb=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],Ab=le("code",Sb);/**
|
|
146
|
+
* @license lucide-react v1.16.0 - ISC
|
|
147
|
+
*
|
|
148
|
+
* This source code is licensed under the ISC license.
|
|
149
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
150
|
+
*/const wb=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Wu=le("file-text",wb);/**
|
|
151
|
+
* @license lucide-react v1.16.0 - ISC
|
|
152
|
+
*
|
|
153
|
+
* This source code is licensed under the ISC license.
|
|
154
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
155
|
+
*/const vb=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],Ib=le("folder",vb);/**
|
|
156
|
+
* @license lucide-react v1.16.0 - ISC
|
|
157
|
+
*
|
|
158
|
+
* This source code is licensed under the ISC license.
|
|
159
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
160
|
+
*/const Lb=[["path",{d:"m15 12-9.373 9.373a1 1 0 0 1-3.001-3L12 9",key:"1hayfq"}],["path",{d:"m18 15 4-4",key:"16gjal"}],["path",{d:"m21.5 11.5-1.914-1.914A2 2 0 0 1 19 8.172v-.344a2 2 0 0 0-.586-1.414l-1.657-1.657A6 6 0 0 0 12.516 3H9l1.243 1.243A6 6 0 0 1 12 8.485V10l2 2h1.172a2 2 0 0 1 1.414.586L18.5 14.5",key:"15ts47"}]],Lp=le("hammer",Lb);/**
|
|
161
|
+
* @license lucide-react v1.16.0 - ISC
|
|
162
|
+
*
|
|
163
|
+
* This source code is licensed under the ISC license.
|
|
164
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
165
|
+
*/const Ob=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Op=le("info",Ob);/**
|
|
166
|
+
* @license lucide-react v1.16.0 - ISC
|
|
167
|
+
*
|
|
168
|
+
* This source code is licensed under the ISC license.
|
|
169
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
170
|
+
*/const Rb=[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]],If=le("lightbulb",Rb);/**
|
|
171
|
+
* @license lucide-react v1.16.0 - ISC
|
|
172
|
+
*
|
|
173
|
+
* This source code is licensed under the ISC license.
|
|
174
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
175
|
+
*/const Db=[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}]],Rc=le("list-checks",Db);/**
|
|
176
|
+
* @license lucide-react v1.16.0 - ISC
|
|
177
|
+
*
|
|
178
|
+
* This source code is licensed under the ISC license.
|
|
179
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
180
|
+
*/const Pb=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],zn=le("loader-circle",Pb);/**
|
|
181
|
+
* @license lucide-react v1.16.0 - ISC
|
|
182
|
+
*
|
|
183
|
+
* This source code is licensed under the ISC license.
|
|
184
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
185
|
+
*/const Mb=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],Fb=le("moon",Mb);/**
|
|
186
|
+
* @license lucide-react v1.16.0 - ISC
|
|
187
|
+
*
|
|
188
|
+
* This source code is licensed under the ISC license.
|
|
189
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
190
|
+
*/const Bb=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]],Dc=le("package",Bb);/**
|
|
191
|
+
* @license lucide-react v1.16.0 - ISC
|
|
192
|
+
*
|
|
193
|
+
* This source code is licensed under the ISC license.
|
|
194
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
195
|
+
*/const jb=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],Rp=le("play",jb);/**
|
|
196
|
+
* @license lucide-react v1.16.0 - ISC
|
|
197
|
+
*
|
|
198
|
+
* This source code is licensed under the ISC license.
|
|
199
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
200
|
+
*/const Ub=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],ms=le("refresh-cw",Ub);/**
|
|
201
|
+
* @license lucide-react v1.16.0 - ISC
|
|
202
|
+
*
|
|
203
|
+
* This source code is licensed under the ISC license.
|
|
204
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
205
|
+
*/const Hb=[["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}],["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09",key:"u4xsad"}],["path",{d:"M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z",key:"676m9"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05",key:"92ym6u"}]],Pc=le("rocket",Hb);/**
|
|
206
|
+
* @license lucide-react v1.16.0 - ISC
|
|
207
|
+
*
|
|
208
|
+
* This source code is licensed under the ISC license.
|
|
209
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
210
|
+
*/const zb=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],pa=le("search",zb);/**
|
|
211
|
+
* @license lucide-react v1.16.0 - ISC
|
|
212
|
+
*
|
|
213
|
+
* This source code is licensed under the ISC license.
|
|
214
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
215
|
+
*/const Yb=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Vb=le("settings",Yb);/**
|
|
216
|
+
* @license lucide-react v1.16.0 - ISC
|
|
217
|
+
*
|
|
218
|
+
* This source code is licensed under the ISC license.
|
|
219
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
220
|
+
*/const $b=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],hr=le("sparkles",$b);/**
|
|
221
|
+
* @license lucide-react v1.16.0 - ISC
|
|
222
|
+
*
|
|
223
|
+
* This source code is licensed under the ISC license.
|
|
224
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
225
|
+
*/const Wb=[["path",{d:"M21 10.656V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.344",key:"2acyp4"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],Lf=le("square-check-big",Wb);/**
|
|
226
|
+
* @license lucide-react v1.16.0 - ISC
|
|
227
|
+
*
|
|
228
|
+
* This source code is licensed under the ISC license.
|
|
229
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
230
|
+
*/const Qb=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],xl=le("square",Qb);/**
|
|
231
|
+
* @license lucide-react v1.16.0 - ISC
|
|
232
|
+
*
|
|
233
|
+
* This source code is licensed under the ISC license.
|
|
234
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
235
|
+
*/const qb=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],Gb=le("sun",qb);/**
|
|
236
|
+
* @license lucide-react v1.16.0 - ISC
|
|
237
|
+
*
|
|
238
|
+
* This source code is licensed under the ISC license.
|
|
239
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
240
|
+
*/const Kb=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],Xb=le("terminal",Kb);/**
|
|
241
|
+
* @license lucide-react v1.16.0 - ISC
|
|
242
|
+
*
|
|
243
|
+
* This source code is licensed under the ISC license.
|
|
244
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
245
|
+
*/const Jb=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],Zb=le("trash-2",Jb);/**
|
|
246
|
+
* @license lucide-react v1.16.0 - ISC
|
|
247
|
+
*
|
|
248
|
+
* This source code is licensed under the ISC license.
|
|
249
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
250
|
+
*/const eT=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],xr=le("triangle-alert",eT);/**
|
|
251
|
+
* @license lucide-react v1.16.0 - ISC
|
|
252
|
+
*
|
|
253
|
+
* This source code is licensed under the ISC license.
|
|
254
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
255
|
+
*/const tT=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],nT=le("wrench",tT);/**
|
|
256
|
+
* @license lucide-react v1.16.0 - ISC
|
|
257
|
+
*
|
|
258
|
+
* This source code is licensed under the ISC license.
|
|
259
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
260
|
+
*/const rT=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Mc=le("x",rT);/**
|
|
261
|
+
* @license lucide-react v1.16.0 - ISC
|
|
262
|
+
*
|
|
263
|
+
* This source code is licensed under the ISC license.
|
|
264
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
265
|
+
*/const iT=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],ga=le("zap",iT),Of={feat:{icon:hr,badge:"badge-feat",ring:"ring-violet-500/30",border:"border-l-violet-500"},fix:{icon:nT,badge:"badge-fix",ring:"ring-amber-500/30",border:"border-l-amber-500"},hotfix:{icon:xr,badge:"badge-hotfix",ring:"ring-red-500/30",border:"border-l-red-500"},unknown:{icon:Wu,badge:"bg-slate-100 text-slate-700 dark:bg-slate-800 dark:text-slate-400",ring:"ring-slate-500/30",border:"border-l-slate-400"}};function Dp(e){return Of[e]||Of.unknown}const Rf={in_progress:{icon:Lp,badge:"badge-warning"},ready:{icon:hr,badge:"badge-success"},archived:{icon:Dc,badge:"bg-slate-100 text-slate-700 dark:bg-slate-800 dark:text-slate-400"}};function sT(e){return Rf[e]||Rf.in_progress}const uT={propose:{icon:Wu,label:"/opsx:propose",primary:!0},continue:{icon:ms,label:"/opsx:continue",primary:!1},apply:{icon:Rp,label:"/opsx:apply",primary:!0,color:"bg-emerald-500 hover:bg-emerald-600"},archive:{icon:Dc,label:"/opsx:archive",primary:!0,color:"bg-violet-500 hover:bg-violet-600"},verify:{icon:hs,label:"/opsx:verify",primary:!1},onboard:{icon:Pc,label:"/opsx:onboard",primary:!1},ff:{icon:ga,label:"/opsx:ff",primary:!1},sync:{icon:ms,label:"/opsx:sync",primary:!1},explore:{icon:pa,label:"/opsx:explore",primary:!1}};function Df(e){return uT[e]||{icon:"⚡",label:`/opsx:${e}`,primary:!1}}const aT=[{id:"in_progress",title:"进行中",description:"有产物但未全部完成",color:"text-amber-600",bgGradient:"from-amber-500/10 to-orange-500/10"},{id:"ready",title:"待实现",description:"所有产物已就绪",color:"text-emerald-600",bgGradient:"from-emerald-500/10 to-teal-500/10"},{id:"archived",title:"已归档",description:"已完成的变更",color:"text-slate-600",bgGradient:"from-slate-500/10 to-gray-500/10"}];function oT({change:e,onClick:t,onToggleSelect:n,selected:r,selectMode:i,selectable:s=!0,executionState:u}){const a=Dp(e.type),o=h=>{i&&s&&n?(h.stopPropagation(),n()):i||t()},c=h=>{(h.key==="Enter"||h.key===" ")&&(h.preventDefault(),i&&s&&n?n():i||t())};return d.jsxs("div",{onClick:o,className:Z("group relative bg-gradient-to-br from-card to-card/90 rounded-xl border border-border/60 p-4 border-l-2",a.border,"transition-all duration-300 ease-out","shadow-[0_0_0_1px_rgba(0,0,0,0.03),0_2px_4px_rgba(0,0,0,0.05),0_12px_24px_rgba(0,0,0,0.05)]",i?s?"cursor-pointer hover:shadow-[0_0_0_1px_rgba(0,0,0,0.05),0_4px_12px_rgba(0,0,0,0.1),0_20px_40px_rgba(0,0,0,0.1)] hover:-translate-y-1 hover:border-primary/40":"cursor-not-allowed opacity-75":"cursor-pointer hover:shadow-[0_0_0_1px_rgba(0,0,0,0.05),0_4px_12px_rgba(0,0,0,0.1),0_20px_40px_rgba(0,0,0,0.1)] hover:-translate-y-1 hover:border-primary/40","active:translate-y-0 active:shadow-[0_0_0_1px_rgba(0,0,0,0.03),0_2px_4px_rgba(0,0,0,0.05),0_12px_24px_rgba(0,0,0,0.05)]",r&&"ring-2 ring-primary ring-offset-2 dark:ring-offset-background",(u==null?void 0:u.change)===e.name&&u.status==="running"&&"border-blue-500/40 border-l-2 border-l-blue-500 shadow-[0_0_20px_rgba(59,130,246,0.2)]"),role:i?"checkbox":"button","aria-checked":r,"aria-disabled":i&&!s,tabIndex:i&&s?0:i?-1:0,onKeyDown:c,children:[r&&d.jsx("div",{className:"absolute -top-1.5 -right-1.5 w-6 h-6 bg-primary rounded-full flex items-center justify-center shadow-lg animate-scale-in border-2 border-background",children:d.jsx(hs,{className:"text-white",size:14})}),d.jsxs("div",{className:"flex items-start justify-between mb-3",children:[d.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[i&&d.jsx("div",{className:Z("w-5 h-5 rounded-md border-2 flex items-center justify-center transition-all shrink-0",r?"bg-primary border-primary text-white":s?"border-muted-foreground/30 group-hover:border-primary/50":"border-muted-foreground/20 bg-muted/30 cursor-not-allowed"),children:r&&d.jsx(hs,{size:12})}),d.jsxs("div",{className:"min-w-0",children:[d.jsx("h3",{className:"font-semibold text-sm truncate group-hover:text-primary transition-colors",children:e.displayName}),e.why&&d.jsx("p",{className:"text-xs text-muted-foreground truncate mt-1",title:e.why,children:e.why}),e.type!=="unknown"&&d.jsxs("span",{className:Z("badge mt-0.5",a.badge),children:[typeof a.icon=="string"?a.icon:d.jsx(a.icon,{size:12}),d.jsx("span",{children:e.type})]})]})]}),d.jsx("div",{className:"flex items-center gap-2 shrink-0",children:e.status==="ready"&&d.jsx("span",{className:Z("badge",e.applied?"status-badge-completed":"status-badge-pending"),children:e.applied?d.jsxs(d.Fragment,{children:[d.jsx(ei,{size:14})," 已实现"]}):d.jsxs(d.Fragment,{children:[d.jsx(El,{size:14})," 待实现"]})})})]}),d.jsx("div",{className:"mb-3",children:d.jsx("div",{className:"flex items-center gap-1 flex-wrap",children:e.artifacts.map((h,f)=>d.jsxs("span",{className:"inline-flex items-center gap-1",children:[f>0&&d.jsx("span",{className:"text-muted-foreground/40",children:e.artifacts[f-1].status==="not_required"||h.status==="not_required"?d.jsx("span",{className:"border-t border-dashed border-muted-foreground/20 w-3 inline-block align-middle"}):d.jsx(Ip,{size:12,className:"text-muted-foreground/40"})}),h.status==="not_required"?d.jsx("span",{className:"inline-flex items-center gap-1 text-muted-foreground/40 line-through",children:h.id}):d.jsxs("span",{className:Z("inline-flex items-center gap-1.5 px-2 py-0.5 rounded-md text-xs font-medium",h.status==="done"?"bg-emerald-500/10 text-emerald-600 dark:text-emerald-400":"bg-muted/50 text-muted-foreground"),children:[d.jsx("span",{className:Z("inline-block w-1.5 h-1.5 rounded-full shrink-0",h.status==="done"?"bg-emerald-500":"border border-muted-foreground/40")}),h.id]})]},h.id))})}),d.jsxs("div",{className:"flex items-center justify-between text-xs",children:[e.taskProgress&&e.taskProgress.total>0?d.jsxs("div",{className:"flex items-center gap-1 text-muted-foreground",children:[d.jsx(Rc,{size:14}),d.jsxs("span",{children:[e.taskProgress.completed,"/",e.taskProgress.total]})]}):d.jsx("div",{}),e.createdAt&&d.jsx("div",{className:"text-muted-foreground/70",children:tb(e.createdAt)})]}),u&&u.change===e.name&&u.status!=="idle"&&d.jsxs("div",{className:Z("flex items-center gap-2 mt-2 px-2 py-1.5 rounded-lg text-xs",u.status==="running"&&"bg-blue-500/10 text-blue-400 border border-blue-500/20",u.status==="completed"&&"bg-emerald-500/10 text-emerald-400 border border-emerald-500/20",u.status==="failed"&&"bg-red-500/10 text-red-400 border border-red-500/20"),children:[u.status==="running"&&d.jsxs(d.Fragment,{children:[d.jsxs("span",{className:"relative flex h-2 w-2",children:[d.jsx("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-blue-400 opacity-75"}),d.jsx("span",{className:"relative inline-flex rounded-full h-2 w-2 bg-blue-500"})]}),d.jsxs("span",{children:["opsx:",u.skill," 执行中"]})]}),u.status==="completed"&&d.jsxs("span",{children:[d.jsx(ei,{size:14})," opsx:",u.skill," 完成"]}),u.status==="failed"&&d.jsxs("span",{children:[d.jsx(Oc,{size:14})," opsx:",u.skill," 失败"]})]}),u&&u.change===e.name&&u.status==="running"&&u.totalTasks>0&&d.jsx("div",{className:"mt-1.5 h-1 bg-muted rounded-full overflow-hidden",children:d.jsx("div",{className:"h-full bg-gradient-to-r from-blue-500 to-blue-400 rounded-full transition-all duration-500",style:{width:`${Math.round(u.currentTask/u.totalTasks*100)}%`}})}),d.jsx("div",{className:"absolute inset-x-0 bottom-0 h-0.5 bg-gradient-to-r from-transparent via-primary/50 to-transparent opacity-0 group-hover:opacity-100 transition-opacity rounded-b-xl"})]})}const Pp="/api";async function yn(e){const t=await fetch(`${Pp}${e}`);if(!t.ok)throw new Error(`API error: ${t.status}`);return t.json()}async function Wt(e,t){const n=await fetch(`${Pp}${e}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});if(!n.ok&&n.status!==207){let r=`API error: ${n.status}`;try{const i=await n.json();i!=null&&i.error&&(r=i.error)}catch{}throw new Error(r)}return n.json()}const xe={getConfig:()=>yn("/config"),getChanges:()=>yn("/changes"),getChangeDetail:e=>yn(`/changes/${e}`),getSchemas:()=>yn("/schemas"),batchArchive:e=>Wt("/changes/batch-archive",{names:e}),batchUnarchive:e=>Wt("/changes/batch-unarchive",{names:e}),batchDelete:e=>Wt("/changes/batch-delete",{names:e}),getSkills:()=>yn("/skills"),getExecution:()=>yn("/execution"),getExecutionLog:()=>yn("/execution/log"),startSkill:(e,t,n)=>Wt("/execution/start",{skill:e,change:t,note:n}),cancelSkill:()=>Wt("/execution/cancel",{}),sendInput:e=>Wt("/execution/input",{input:e}),getProjects:()=>yn("/projects"),switchProject:e=>Wt("/projects/switch",{path:e}),initOpenspec:()=>Wt("/config/init",{}),openTerminal:e=>Wt("/terminal",{projectPath:e}),restartProject:()=>Wt("/terminal/restart",{})};function lT({toast:e,onDismiss:t}){R.useEffect(()=>{const i=setTimeout(()=>{t(e.id)},3e3);return()=>clearTimeout(i)},[e.id,t]);const n={success:"bg-emerald-500 border-emerald-400",error:"bg-red-500 border-red-400",info:"bg-blue-500 border-blue-400",warning:"bg-amber-500 border-amber-400"}[e.type],r={success:ei,error:Oc,info:Op,warning:xr}[e.type];return d.jsxs("div",{className:Z("flex items-start gap-2.5 px-4 py-3 rounded-xl text-white shadow-xl border border-white/20 animate-slide-in-right max-w-sm",n),children:[d.jsx(r,{size:18,className:"shrink-0"}),d.jsxs("div",{className:"min-w-0",children:[d.jsx("span",{className:"text-sm",children:e.message}),e.description&&d.jsx("p",{className:"text-xs opacity-80 mt-0.5",children:e.description})]}),d.jsx("button",{onClick:()=>t(e.id),className:"ml-auto shrink-0 opacity-70 hover:opacity-100 transition-opacity",children:d.jsx(Mc,{size:16})})]})}const Mp=Ts.createContext(null);function Fc(){const e=Ts.useContext(Mp);if(!e)throw new Error("useToast must be used within a ToastProvider");return e}function cT({children:e}){const[t,n]=R.useState([]),r=R.useCallback((u,a,o)=>{const c=`${Date.now()}-${Math.random().toString(36).substr(2,9)}`;n(h=>[...h,{id:c,type:u,message:a,description:o}])},[]),i=R.useCallback(u=>{n(a=>a.filter(o=>o.id!==u))},[]),s={addToast:r,success:(u,a)=>r("success",u,a),error:(u,a)=>r("error",u,a),info:(u,a)=>r("info",u,a),warning:(u,a)=>r("warning",u,a)};return d.jsxs(Mp.Provider,{value:s,children:[e,d.jsx("div",{className:"fixed top-16 right-4 z-[100] flex flex-col gap-2",children:t.map(u=>d.jsx(lT,{toast:u,onDismiss:i},u.id))})]})}function dT({selectedNames:e,changes:t,onComplete:n,onRefresh:r}){const[i,s]=R.useState(!1),[u,a]=R.useState(!1),o=Fc(),c=t.filter(m=>e.includes(m.name)),h=e.length>0,f=async()=>{a(!0);try{const m=await xe.batchDelete(e),p=m.results.filter(k=>k.success).length,x=m.results.filter(k=>!k.success).length;s(!1),n(),x===0?o.success("删除成功",`已成功删除 ${p} 个变更`):o.error("部分删除失败",`成功 ${p} 个,失败 ${x} 个`),r==null||r()}catch(m){console.error("Bulk delete failed:",m),o.error("删除失败","批量删除操作出错,请重试")}finally{a(!1)}};return d.jsxs(d.Fragment,{children:[d.jsxs("button",{onClick:()=>s(!0),disabled:!h,className:Z("btn-primary text-sm bg-red-500 hover:bg-red-600 flex items-center gap-1",!h&&"opacity-50 cursor-not-allowed"),children:[d.jsx(Zb,{size:14})," 删除"]}),i&&d.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50 backdrop-blur-sm",children:d.jsxs("div",{className:"bg-card rounded-xl shadow-xl p-6 max-w-md w-full mx-4 animate-scale-in",children:[d.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[d.jsx("div",{className:"w-10 h-10 rounded-lg bg-red-500/10 flex items-center justify-center",children:d.jsx(xr,{size:24,className:"text-red-500"})}),d.jsxs("div",{children:[d.jsx("h3",{className:"font-semibold",children:"确认删除"}),d.jsx("p",{className:"text-sm text-muted-foreground",children:"此操作不可撤销"})]})]}),d.jsxs("div",{className:"mb-6",children:[d.jsxs("p",{className:"text-sm mb-3",children:["即将删除以下 ",c.length," 个变更:"]}),d.jsx("div",{className:"max-h-48 overflow-y-auto bg-muted/50 rounded-lg p-3 space-y-2",children:c.map(m=>d.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[d.jsx("span",{className:"text-muted-foreground",children:"•"}),d.jsx("span",{className:"font-medium",children:m.displayName}),d.jsxs("span",{className:"text-xs text-muted-foreground",children:["(",m.name,")"]})]},m.name))})]}),d.jsxs("div",{className:"flex gap-3 justify-end",children:[d.jsx("button",{onClick:()=>s(!1),disabled:u,className:"btn-ghost text-sm",children:"取消"}),d.jsx("button",{onClick:f,disabled:u,className:Z("btn-primary text-sm bg-red-500 hover:bg-red-600",u&&"opacity-50 cursor-not-allowed"),children:u?"删除中...":"确认删除"})]})]})})]})}const Pf=["in_progress","ready"];function fT({changes:e}){const[t,n]=R.useState(!1),[r,i]=R.useState(new Set),s=R.useMemo(()=>e.filter(v=>Pf.includes(v.status)),[e]),u=r.size,a=u>0,o=s.length>0&&s.every(v=>r.has(v.name)),c=R.useCallback(v=>Pf.includes(v.status),[]),h=R.useCallback(v=>r.has(v),[r]),f=R.useCallback(()=>{n(v=>(v&&i(new Set),!v))},[]),m=R.useCallback(v=>{i(E=>{const T=new Set(E);return T.has(v)?T.delete(v):T.add(v),T})},[]),p=R.useCallback(()=>{const v=s.map(E=>E.name);i(new Set(v))},[s]),x=R.useCallback(()=>{i(new Set)},[]),k=R.useCallback(()=>{i(new Set),n(!1)},[]);return{selectMode:t,selectedIds:r,selectedCount:u,eligibleChanges:s,hasSelection:a,allSelected:o,toggleSelectMode:f,toggleSelection:m,selectAll:p,deselectAll:x,clearSelection:k,isSelected:h,isEligible:c}}function hT(){const[e,t]=R.useState(""),n=R.useCallback(i=>{if(!e.trim())return i;const s=e.toLowerCase();return i.filter(u=>u.name.toLowerCase().includes(s))},[e]),r=R.useCallback(()=>{t("")},[]);return{searchQuery:e,setSearchQuery:t,filterBySearch:n,clearSearch:r,hasActiveFilter:e.trim().length>0}}const Fp=[{value:"createdAt",label:"创建时间"},{value:"name",label:"名称"}];function mT(){var s;const[e,t]=R.useState({field:"createdAt",direction:"desc"}),n=R.useCallback(u=>[...u].sort((a,o)=>{const{field:c,direction:h}=e;if(c==="name"){const p=a.name.localeCompare(o.name);return h==="asc"?p:-p}const f=a.createdAt?new Date(a.createdAt).getTime():0,m=o.createdAt?new Date(o.createdAt).getTime():0;return h==="asc"?f-m:m-f}),[e]),r=R.useCallback(u=>{t(a=>a.field===u?{...a,direction:a.direction==="asc"?"desc":"asc"}:{field:u,direction:"desc"})},[]),i=((s=Fp.find(u=>u.value===e.field))==null?void 0:s.label)??"创建时间";return{sortState:e,setSortState:t,setSortField:r,sortChanges:n,currentSortLabel:i}}function pT({changes:e,onSelectChange:t,onRefresh:n,executionState:r,skills:i}){const{selectMode:s,selectedIds:u,selectedCount:a,hasSelection:o,allSelected:c,toggleSelectMode:h,toggleSelection:f,selectAll:m,deselectAll:p,clearSelection:x,isSelected:k,isEligible:v}=fT({changes:e}),{searchQuery:E,setSearchQuery:T,filterBySearch:g,clearSearch:w,hasActiveFilter:O}=hT(),{sortState:N,setSortField:P,sortChanges:I,currentSortLabel:F}=mT(),[A,V]=R.useState(!1),[j,te]=R.useState(!1),ae=R.useMemo(()=>{var X;const b={in_progress:[],ready:[],archived:[]};for(const ne of e)(X=b[ne.status])==null||X.push(ne);return b.ready.sort((ne,S)=>{if(ne.applied!==S.applied)return ne.applied?1:-1;const Ee=ne.createdAt?new Date(ne.createdAt).getTime():0;return(S.createdAt?new Date(S.createdAt).getTime():0)-Ee}),b},[e]),W=R.useMemo(()=>{const b={};for(const[X,ne]of Object.entries(ae)){const S=g(ne);b[X]=X==="ready"?S:I(S)}return b},[ae,g,I]),ie=e.length,fe=Object.values(W).reduce((b,X)=>b+X.length,0),Y=b=>{const X=ae[b].filter(v).map(S=>S.name);X.length>0&&X.every(S=>u.has(S))?X.forEach(S=>{u.has(S)&&f(S)}):X.forEach(S=>{u.has(S)||f(S)})},K=async()=>{if(!o)return;const b=e.filter(X=>X.status!=="archived"&&u.has(X.name)).map(X=>X.name);if(b.length!==0){try{await xe.startSkill("bulk-archive",b.join(" "))}catch(X){console.error("Bulk archive failed:",X)}x()}};return ie===0?d.jsx(gT,{skills:i,executionState:r}):d.jsxs("div",{children:[d.jsx("div",{className:"sticky top-14 z-30 bg-background/80 backdrop-blur-xl border-b border-border/50 px-4 py-3",children:d.jsxs("div",{className:"flex items-center justify-between gap-4",children:[d.jsx("div",{className:"flex items-center gap-3",children:d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("div",{className:"w-8 h-8 rounded-xl bg-gradient-to-br from-primary to-accent flex items-center justify-center shadow-md shadow-primary/25",children:d.jsx(Nb,{className:"text-white",size:18})}),d.jsxs("div",{children:[d.jsx("h2",{className:"font-semibold text-sm",children:"变更看板"}),d.jsx("p",{className:"text-xs text-muted-foreground",children:O?`${fe} / ${ie} 个变更`:`${ie} 个变更`})]})]})}),!s&&d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsxs("div",{className:"relative",children:[d.jsx(pa,{className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground",size:14}),d.jsx("input",{type:"text",value:E,onChange:b=>T(b.target.value),placeholder:"搜索变更...",className:"input-default pl-9 pr-8 h-9 w-48 text-sm"}),E&&d.jsx("button",{onClick:w,className:"absolute right-2 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground transition-colors",children:d.jsx(Mc,{size:14})})]}),d.jsxs("div",{className:"relative",children:[d.jsxs("button",{onClick:()=>te(!j),className:"btn-secondary btn-sm flex items-center gap-1.5",children:[d.jsx(cb,{size:14,className:"text-muted-foreground"}),d.jsx("span",{className:"text-sm",children:F}),d.jsx(vf,{size:14,className:Z("transition-transform text-muted-foreground",j&&"rotate-180")})]}),j&&d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"fixed inset-0 z-40",onClick:()=>te(!1)}),d.jsx("div",{className:"absolute right-0 top-full mt-1 z-50 bg-popover border border-border rounded-lg shadow-lg py-1 min-w-[140px]",children:Fp.map(b=>d.jsxs("button",{onClick:()=>{P(b.value),te(!1)},className:Z("w-full px-3 py-2 text-left text-sm hover:bg-muted transition-colors flex items-center justify-between",N.field===b.value&&"bg-muted text-primary font-medium"),children:[d.jsx("span",{children:b.label}),N.field===b.value&&d.jsx("span",{className:"text-xs text-muted-foreground",children:N.direction==="desc"?"↓":"↑"})]},b.value))})]})]})]}),d.jsx("div",{className:"flex items-center gap-2",children:s?d.jsxs(d.Fragment,{children:[d.jsxs("span",{className:"text-sm text-muted-foreground",children:["已选择 ",a," 项"]}),d.jsx("button",{onClick:c?p:m,className:"btn-secondary btn-sm",children:c?"取消全选":"全选"}),d.jsxs("button",{onClick:K,disabled:!o||!e.some(b=>b.status!=="archived"&&u.has(b.name)),className:Z("btn-primary btn-sm flex items-center gap-1",(!o||!e.some(b=>b.status!=="archived"&&u.has(b.name)))&&"opacity-50 cursor-not-allowed"),children:[d.jsx(vp,{size:14})," 归档"]}),d.jsx(dT,{selectedNames:Array.from(u),changes:e,onComplete:x,onRefresh:n}),d.jsx("button",{onClick:x,className:"btn-ghost btn-sm",children:"取消"})]}):d.jsxs("button",{onClick:h,className:"btn-secondary btn-sm flex items-center gap-1",children:[d.jsx(Lf,{size:14})," 多选"]})})]})}),d.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 p-4",children:aT.map((b,X)=>{const ne=b.id==="archived",S=W[b.id]??[],Ee=ae[b.id].length,ge=ne&&A;return d.jsx("div",{className:Z("rounded-2xl bg-gradient-to-b from-primary/5 via-transparent to-accent/5 p-1.5","animate-fade-in"),style:{animationDelay:`${X*100}ms`,opacity:0,animationFillMode:"forwards"},children:d.jsxs("div",{className:"bg-gradient-to-br from-card to-card/90 rounded-xl border border-border/60 p-4 h-full",children:[d.jsxs("div",{className:"flex items-center justify-between mb-4",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("div",{className:Z("font-bold",b.color),children:b.id==="in_progress"?d.jsx(Lp,{size:20}):b.id==="ready"?d.jsx(hr,{size:20}):d.jsx(Dc,{size:20})}),d.jsxs("div",{children:[d.jsx("h2",{className:"font-semibold text-sm",children:b.title}),d.jsx("p",{className:"text-xs text-muted-foreground",children:b.description})]})]}),d.jsxs("div",{className:"flex items-center gap-1.5",children:[s&&!ge&&S.filter(v).length>0&&d.jsx("button",{onClick:()=>Y(b.id),className:"text-xs p-1.5 hover:bg-muted rounded-lg transition-colors",title:"全选",children:S.filter(v).every(ee=>u.has(ee.name))?d.jsx(Lf,{size:14}):d.jsx("span",{className:"w-3.5 h-3.5 border border-muted-foreground/40 rounded"})}),ne&&d.jsx("button",{onClick:()=>V(!A),className:"text-xs p-1.5 hover:bg-muted rounded-lg transition-colors",title:A?"展开":"折叠",children:A?d.jsx(Ip,{size:14}):d.jsx(vf,{size:14})}),d.jsx("span",{className:Z("text-xs font-medium px-2.5 py-1 rounded-full","bg-muted text-muted-foreground"),children:O&&S.length!==Ee?`${S.length}/${Ee}`:S.length})]})]}),d.jsx("div",{className:"flex flex-col gap-3 min-h-[200px] max-h-[600px] overflow-y-auto pr-1",children:ge?d.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center text-muted-foreground py-8",children:[d.jsx("div",{className:"text-3xl mb-2 opacity-30",children:"📁"}),d.jsxs("p",{className:"text-sm",children:["已折叠 ",Ee," 个变更"]}),d.jsx("button",{onClick:()=>V(!1),className:"text-xs text-primary hover:underline mt-1",children:"点击展开"})]}):d.jsxs(d.Fragment,{children:[S.map(ee=>d.jsx(oT,{change:ee,onClick:()=>t(ee.name),onToggleSelect:()=>f(ee.name),selected:k(ee.name),selectMode:s,selectable:v(ee),executionState:r},ee.name)),S.length===0&&d.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center text-muted-foreground py-8",children:[d.jsx("div",{className:"text-3xl mb-2 opacity-30",children:"📭"}),d.jsx("p",{className:"text-sm",children:O?"无匹配结果":"暂无变更"})]})]})})]})},b.id)})})]})}function gT({skills:e,executionState:t}){const[n,r]=R.useState(""),[i,s]=R.useState(!1),u=async()=>{if(n.trim()){s(!0);try{await xe.startSkill("propose",n.trim()),r("")}catch{}s(!1)}};return d.jsxs("div",{className:"flex flex-col items-center justify-center min-h-[70vh] px-4 animate-fade-in",children:[d.jsx("div",{className:"w-24 h-24 rounded-full bg-gradient-to-br from-primary/10 to-accent/10 flex items-center justify-center mb-6",children:d.jsx(Pc,{className:"text-primary",size:48})}),d.jsx("h2",{className:"text-2xl font-bold mb-3",children:"开始你的 Spec 之旅"}),d.jsxs("div",{className:"flex flex-col items-center gap-3 mb-8 w-full max-w-md",children:[d.jsx("p",{className:"text-muted-foreground text-center",children:"输入变更名称,一键启动 AI 创建完整变更"}),d.jsxs("div",{className:"flex gap-2 w-full",children:[d.jsx("input",{type:"text",value:n,onChange:a=>r(a.target.value),onKeyDown:a=>a.key==="Enter"&&u(),placeholder:"feat-user-auth",className:"input-default font-mono",autoFocus:!0}),d.jsxs("button",{onClick:u,disabled:i||!n.trim()||(t==null?void 0:t.status)==="running",className:Z("btn-primary gap-1",(i||!n.trim()||(t==null?void 0:t.status)==="running")&&"opacity-50 cursor-not-allowed"),children:[i?d.jsx(zn,{className:"animate-spin",size:16}):d.jsx(hr,{size:16})," ",d.jsx("span",{children:"propose"})]})]}),d.jsx("div",{className:"flex gap-2",children:["feat-","fix-","hotfix-"].map(a=>d.jsx("button",{onClick:()=>r(a),className:"badge bg-muted text-muted-foreground hover:bg-primary hover:text-primary-foreground transition-all duration-200 cursor-pointer",children:a},a))}),d.jsxs("p",{className:"text-xs text-muted-foreground",children:["按 ",d.jsx("kbd",{className:"px-1.5 py-0.5 bg-muted rounded text-xs font-mono",children:"N"})," 快速新建"]}),(e==null?void 0:e.length)===0&&d.jsxs("p",{className:"text-xs text-amber-500 flex items-center gap-1",children:[d.jsx(xr,{size:12})," 未检测到 opsx skills,确保已安装 Claude Code"]})]}),d.jsxs("div",{className:"card-elevated p-6 max-w-lg w-full",children:[d.jsxs("p",{className:"text-sm font-medium mb-4 flex items-center gap-2",children:[d.jsx(Wu,{size:18,className:"text-primary"})," 变更流程"]}),d.jsx("div",{className:"flex items-center gap-1 overflow-x-auto pb-2",children:[{icon:Wu,name:"propose",desc:"生成方案"},{icon:pa,name:"review",desc:"审查产物"},{icon:Rp,name:"apply",desc:"实现代码"},{icon:hs,name:"verify",desc:"验证一致"},{icon:vp,name:"archive",desc:"归档合并"}].map((a,o)=>d.jsxs(Ts.Fragment,{children:[o>0&&d.jsx("span",{className:"text-muted-foreground/40 shrink-0",children:"→"}),d.jsxs("div",{className:"flex flex-col items-center gap-1 min-w-[4rem] text-center",children:[d.jsx("div",{className:"w-10 h-10 rounded-xl bg-gradient-to-br from-primary/10 to-accent/10 flex items-center justify-center shrink-0",children:d.jsx(a.icon,{size:18,className:"text-primary"})}),d.jsx("span",{className:"text-xs font-medium",children:a.name}),d.jsx("span",{className:"text-[10px] text-muted-foreground",children:a.desc})]})]},a.name))})]})]})}function Mf(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,s=!1;for(;!s;){r===-1&&(r=n.length,s=!0);const u=n.slice(i,r).trim();(u||!s)&&t.push(u),i=r+1,r=n.indexOf(",",i)}return t}function Bp(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const ET=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,xT=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,bT={};function Ff(e,t){return(bT.jsx?xT:ET).test(e)}const TT=/[ \t\n\f\r]/g;function yT(e){return typeof e=="object"?e.type==="text"?Bf(e.value):!1:Bf(e)}function Bf(e){return e.replace(TT,"")===""}class Cs{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Cs.prototype.normal={};Cs.prototype.property={};Cs.prototype.space=void 0;function jp(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new Cs(n,r,t)}function ps(e){return e.toLowerCase()}class pt{constructor(t,n){this.attribute=n,this.property=t}}pt.prototype.attribute="";pt.prototype.booleanish=!1;pt.prototype.boolean=!1;pt.prototype.commaOrSpaceSeparated=!1;pt.prototype.commaSeparated=!1;pt.prototype.defined=!1;pt.prototype.mustUseProperty=!1;pt.prototype.number=!1;pt.prototype.overloadedBoolean=!1;pt.prototype.property="";pt.prototype.spaceSeparated=!1;pt.prototype.space=void 0;let kT=0;const se=br(),Fe=br(),bl=br(),z=br(),_e=br(),Wr=br(),Et=br();function br(){return 2**++kT}const Tl=Object.freeze(Object.defineProperty({__proto__:null,boolean:se,booleanish:Fe,commaOrSpaceSeparated:Et,commaSeparated:Wr,number:z,overloadedBoolean:bl,spaceSeparated:_e},Symbol.toStringTag,{value:"Module"})),io=Object.keys(Tl);class Bc extends pt{constructor(t,n,r,i){let s=-1;if(super(t,n),jf(this,"space",i),typeof r=="number")for(;++s<io.length;){const u=io[s];jf(this,io[s],(r&Tl[u])===Tl[u])}}}Bc.prototype.defined=!0;function jf(e,t,n){n&&(e[t]=n)}function ai(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const s=new Bc(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(s.mustUseProperty=!0),t[r]=s,n[ps(r)]=r,n[ps(s.attribute)]=r}return new Cs(t,n,e.space)}const Up=ai({properties:{ariaActiveDescendant:null,ariaAtomic:Fe,ariaAutoComplete:null,ariaBusy:Fe,ariaChecked:Fe,ariaColCount:z,ariaColIndex:z,ariaColSpan:z,ariaControls:_e,ariaCurrent:null,ariaDescribedBy:_e,ariaDetails:null,ariaDisabled:Fe,ariaDropEffect:_e,ariaErrorMessage:null,ariaExpanded:Fe,ariaFlowTo:_e,ariaGrabbed:Fe,ariaHasPopup:null,ariaHidden:Fe,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:_e,ariaLevel:z,ariaLive:null,ariaModal:Fe,ariaMultiLine:Fe,ariaMultiSelectable:Fe,ariaOrientation:null,ariaOwns:_e,ariaPlaceholder:null,ariaPosInSet:z,ariaPressed:Fe,ariaReadOnly:Fe,ariaRelevant:null,ariaRequired:Fe,ariaRoleDescription:_e,ariaRowCount:z,ariaRowIndex:z,ariaRowSpan:z,ariaSelected:Fe,ariaSetSize:z,ariaSort:null,ariaValueMax:z,ariaValueMin:z,ariaValueNow:z,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Hp(e,t){return t in e?e[t]:t}function zp(e,t){return Hp(e,t.toLowerCase())}const _T=ai({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Wr,acceptCharset:_e,accessKey:_e,action:null,allow:null,allowFullScreen:se,allowPaymentRequest:se,allowUserMedia:se,alt:null,as:null,async:se,autoCapitalize:null,autoComplete:_e,autoFocus:se,autoPlay:se,blocking:_e,capture:null,charSet:null,checked:se,cite:null,className:_e,cols:z,colSpan:null,content:null,contentEditable:Fe,controls:se,controlsList:_e,coords:z|Wr,crossOrigin:null,data:null,dateTime:null,decoding:null,default:se,defer:se,dir:null,dirName:null,disabled:se,download:bl,draggable:Fe,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:se,formTarget:null,headers:_e,height:z,hidden:bl,high:z,href:null,hrefLang:null,htmlFor:_e,httpEquiv:_e,id:null,imageSizes:null,imageSrcSet:null,inert:se,inputMode:null,integrity:null,is:null,isMap:se,itemId:null,itemProp:_e,itemRef:_e,itemScope:se,itemType:_e,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:se,low:z,manifest:null,max:null,maxLength:z,media:null,method:null,min:null,minLength:z,multiple:se,muted:se,name:null,nonce:null,noModule:se,noValidate:se,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:se,optimum:z,pattern:null,ping:_e,placeholder:null,playsInline:se,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:se,referrerPolicy:null,rel:_e,required:se,reversed:se,rows:z,rowSpan:z,sandbox:_e,scope:null,scoped:se,seamless:se,selected:se,shadowRootClonable:se,shadowRootDelegatesFocus:se,shadowRootMode:null,shape:null,size:z,sizes:null,slot:null,span:z,spellCheck:Fe,src:null,srcDoc:null,srcLang:null,srcSet:null,start:z,step:null,style:null,tabIndex:z,target:null,title:null,translate:null,type:null,typeMustMatch:se,useMap:null,value:Fe,width:z,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:_e,axis:null,background:null,bgColor:null,border:z,borderColor:null,bottomMargin:z,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:se,declare:se,event:null,face:null,frame:null,frameBorder:null,hSpace:z,leftMargin:z,link:null,longDesc:null,lowSrc:null,marginHeight:z,marginWidth:z,noResize:se,noHref:se,noShade:se,noWrap:se,object:null,profile:null,prompt:null,rev:null,rightMargin:z,rules:null,scheme:null,scrolling:Fe,standby:null,summary:null,text:null,topMargin:z,valueType:null,version:null,vAlign:null,vLink:null,vSpace:z,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:se,disableRemotePlayback:se,prefix:null,property:null,results:z,security:null,unselectable:null},space:"html",transform:zp}),NT=ai({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:Et,accentHeight:z,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:z,amplitude:z,arabicForm:null,ascent:z,attributeName:null,attributeType:null,azimuth:z,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:z,by:null,calcMode:null,capHeight:z,className:_e,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:z,diffuseConstant:z,direction:null,display:null,dur:null,divisor:z,dominantBaseline:null,download:se,dx:null,dy:null,edgeMode:null,editable:null,elevation:z,enableBackground:null,end:null,event:null,exponent:z,externalResourcesRequired:null,fill:null,fillOpacity:z,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:Wr,g2:Wr,glyphName:Wr,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:z,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:z,horizOriginX:z,horizOriginY:z,id:null,ideographic:z,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:z,k:z,k1:z,k2:z,k3:z,k4:z,kernelMatrix:Et,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:z,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:z,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:z,overlineThickness:z,paintOrder:null,panose1:null,path:null,pathLength:z,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:_e,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:z,pointsAtY:z,pointsAtZ:z,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Et,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Et,rev:Et,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Et,requiredFeatures:Et,requiredFonts:Et,requiredFormats:Et,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:z,specularExponent:z,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:z,strikethroughThickness:z,string:null,stroke:null,strokeDashArray:Et,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:z,strokeOpacity:z,strokeWidth:null,style:null,surfaceScale:z,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Et,tabIndex:z,tableValues:null,target:null,targetX:z,targetY:z,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Et,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:z,underlineThickness:z,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:z,values:null,vAlphabetic:z,vMathematical:z,vectorEffect:null,vHanging:z,vIdeographic:z,version:null,vertAdvY:z,vertOriginX:z,vertOriginY:z,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:z,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Hp}),Yp=ai({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()}}),Vp=ai({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:zp}),$p=ai({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),CT={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"},ST=/[A-Z]/g,Uf=/-[a-z]/g,AT=/^data[-\w.:]+$/i;function Ea(e,t){const n=ps(t);let r=t,i=pt;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&AT.test(t)){if(t.charAt(4)==="-"){const s=t.slice(5).replace(Uf,vT);r="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=t.slice(4);if(!Uf.test(s)){let u=s.replace(ST,wT);u.charAt(0)!=="-"&&(u="-"+u),t="data"+u}}i=Bc}return new i(r,t)}function wT(e){return"-"+e.toLowerCase()}function vT(e){return e.charAt(1).toUpperCase()}const Ss=jp([Up,_T,Yp,Vp,$p],"html"),Qn=jp([Up,NT,Yp,Vp,$p],"svg");function Hf(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Wp(e){return e.join(" ").trim()}var jc={},zf=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,IT=/\n/g,LT=/^\s*/,OT=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,RT=/^:\s*/,DT=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,PT=/^[;\s]*/,MT=/^\s+|\s+$/g,FT=`
|
|
266
|
+
`,Yf="/",Vf="*",er="",BT="comment",jT="declaration";function UT(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(x){var k=x.match(IT);k&&(n+=k.length);var v=x.lastIndexOf(FT);r=~v?x.length-v:r+x.length}function s(){var x={line:n,column:r};return function(k){return k.position=new u(x),c(),k}}function u(x){this.start=x,this.end={line:n,column:r},this.source=t.source}u.prototype.content=e;function a(x){var k=new Error(t.source+":"+n+":"+r+": "+x);if(k.reason=x,k.filename=t.source,k.line=n,k.column=r,k.source=e,!t.silent)throw k}function o(x){var k=x.exec(e);if(k){var v=k[0];return i(v),e=e.slice(v.length),k}}function c(){o(LT)}function h(x){var k;for(x=x||[];k=f();)k!==!1&&x.push(k);return x}function f(){var x=s();if(!(Yf!=e.charAt(0)||Vf!=e.charAt(1))){for(var k=2;er!=e.charAt(k)&&(Vf!=e.charAt(k)||Yf!=e.charAt(k+1));)++k;if(k+=2,er===e.charAt(k-1))return a("End of comment missing");var v=e.slice(2,k-2);return r+=2,i(v),e=e.slice(k),r+=2,x({type:BT,comment:v})}}function m(){var x=s(),k=o(OT);if(k){if(f(),!o(RT))return a("property missing ':'");var v=o(DT),E=x({type:jT,property:$f(k[0].replace(zf,er)),value:v?$f(v[0].replace(zf,er)):er});return o(PT),E}}function p(){var x=[];h(x);for(var k;k=m();)k!==!1&&(x.push(k),h(x));return x}return c(),p()}function $f(e){return e?e.replace(MT,er):er}var HT=UT,zT=Tu&&Tu.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(jc,"__esModule",{value:!0});jc.default=VT;const YT=zT(HT);function VT(e,t){let n=null;if(!e||typeof e!="string")return n;const r=(0,YT.default)(e),i=typeof t=="function";return r.forEach(s=>{if(s.type!=="declaration")return;const{property:u,value:a}=s;i?t(u,a,s):a&&(n=n||{},n[u]=a)}),n}var xa={};Object.defineProperty(xa,"__esModule",{value:!0});xa.camelCase=void 0;var $T=/^--[a-zA-Z0-9_-]+$/,WT=/-([a-z])/g,QT=/^[^-]+$/,qT=/^-(webkit|moz|ms|o|khtml)-/,GT=/^-(ms)-/,KT=function(e){return!e||QT.test(e)||$T.test(e)},XT=function(e,t){return t.toUpperCase()},Wf=function(e,t){return"".concat(t,"-")},JT=function(e,t){return t===void 0&&(t={}),KT(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(GT,Wf):e=e.replace(qT,Wf),e.replace(WT,XT))};xa.camelCase=JT;var ZT=Tu&&Tu.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},ey=ZT(jc),ty=xa;function yl(e,t){var n={};return!e||typeof e!="string"||(0,ey.default)(e,function(r,i){r&&i&&(n[(0,ty.camelCase)(r,t)]=i)}),n}yl.default=yl;var ny=yl;const ry=Pl(ny),ba=Qp("end"),Zt=Qp("start");function Qp(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function iy(e){const t=Zt(e),n=ba(e);if(t&&n)return{start:t,end:n}}function zi(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Qf(e.position):"start"in e||"end"in e?Qf(e):"line"in e||"column"in e?kl(e):""}function kl(e){return qf(e&&e.line)+":"+qf(e&&e.column)}function Qf(e){return kl(e&&e.start)+"-"+kl(e&&e.end)}function qf(e){return e&&typeof e=="number"?e:1}class et extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",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"?i=t:!s.cause&&t&&(u=!0,i=t.message,s.cause=t),!s.ruleId&&!s.source&&typeof r=="string"){const o=r.indexOf(":");o===-1?s.ruleId=r:(s.source=r.slice(0,o),s.ruleId=r.slice(o+1))}if(!s.place&&s.ancestors&&s.ancestors){const o=s.ancestors[s.ancestors.length-1];o&&(s.place=o.position)}const a=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=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=a?a.line:void 0,this.name=zi(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}}et.prototype.file="";et.prototype.name="";et.prototype.reason="";et.prototype.message="";et.prototype.stack="";et.prototype.column=void 0;et.prototype.line=void 0;et.prototype.ancestors=void 0;et.prototype.cause=void 0;et.prototype.fatal=void 0;et.prototype.place=void 0;et.prototype.ruleId=void 0;et.prototype.source=void 0;const Uc={}.hasOwnProperty,sy=new Map,uy=/[A-Z]/g,ay=new Set(["table","tbody","thead","tfoot","tr"]),oy=new Set(["td","th"]),qp="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function ly(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=Ey(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");r=gy(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,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"?Qn:Ss,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},s=Gp(i,e,void 0);return s&&typeof s!="string"?s:i.create(e,i.Fragment,{children:s||void 0},void 0)}function Gp(e,t,n){if(t.type==="element")return cy(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return dy(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return hy(e,t,n);if(t.type==="mdxjsEsm")return fy(e,t);if(t.type==="root")return my(e,t,n);if(t.type==="text")return py(e,t)}function cy(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Qn,e.schema=i),e.ancestors.push(t);const s=Xp(e,t.tagName,!1),u=xy(e,t);let a=zc(e,t);return ay.has(t.tagName)&&(a=a.filter(function(o){return typeof o=="string"?!yT(o):!0})),Kp(e,u,s,t),Hc(u,a),e.ancestors.pop(),e.schema=r,e.create(t,s,u,n)}function dy(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}gs(e,t.position)}function fy(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);gs(e,t.position)}function hy(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=Qn,e.schema=i),e.ancestors.push(t);const s=t.name===null?e.Fragment:Xp(e,t.name,!0),u=by(e,t),a=zc(e,t);return Kp(e,u,s,t),Hc(u,a),e.ancestors.pop(),e.schema=r,e.create(t,s,u,n)}function my(e,t,n){const r={};return Hc(r,zc(e,t)),e.create(t,e.Fragment,r,n)}function py(e,t){return t.value}function Kp(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Hc(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function gy(e,t,n){return r;function r(i,s,u,a){const c=Array.isArray(u.children)?n:t;return a?c(s,u,a):c(s,u)}}function Ey(e,t){return n;function n(r,i,s,u){const a=Array.isArray(s.children),o=Zt(r);return t(i,s,u,a,{columnNumber:o?o.column-1:void 0,fileName:e,lineNumber:o?o.line:void 0},void 0)}}function xy(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&Uc.call(t.properties,i)){const s=Ty(e,i,t.properties[i]);if(s){const[u,a]=s;e.tableCellAlignToStyle&&u==="align"&&typeof a=="string"&&oy.has(t.tagName)?r=a:n[u]=a}}if(r){const s=n.style||(n.style={});s[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function by(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const s=r.data.estree.body[0];s.type;const u=s.expression;u.type;const a=u.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else gs(e,t.position);else{const i=r.name;let s;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const a=r.value.data.estree.body[0];a.type,s=e.evaluater.evaluateExpression(a.expression)}else gs(e,t.position);else s=r.value===null?!0:r.value;n[i]=s}return n}function zc(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:sy;for(;++r<t.children.length;){const s=t.children[r];let u;if(e.passKeys){const o=s.type==="element"?s.tagName:s.type==="mdxJsxFlowElement"||s.type==="mdxJsxTextElement"?s.name:void 0;if(o){const c=i.get(o)||0;u=o+"-"+c,i.set(o,c+1)}}const a=Gp(e,s,u);a!==void 0&&n.push(a)}return n}function Ty(e,t,n){const r=Ea(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?Bp(n):Wp(n)),r.property==="style"){let i=typeof n=="object"?n:yy(e,String(n));return e.stylePropertyNameCase==="css"&&(i=ky(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?CT[r.property]||r.property:r.attribute,n]}}function yy(e,t){try{return ry(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new et("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=qp+"#cannot-parse-style-attribute",i}}function Xp(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let s=-1,u;for(;++s<i.length;){const a=Ff(i[s])?{type:"Identifier",name:i[s]}:{type:"Literal",value:i[s]};u=u?{type:"MemberExpression",object:u,property:a,computed:!!(s&&a.type==="Literal"),optional:!1}:a}r=u}else r=Ff(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return Uc.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);gs(e)}function gs(e,t){const n=new et("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=qp+"#cannot-handle-mdx-estrees-without-createevaluater",n}function ky(e){const t={};let n;for(n in e)Uc.call(e,n)&&(t[_y(n)]=e[n]);return t}function _y(e){let t=e.replace(uy,Ny);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function Ny(e){return"-"+e.toLowerCase()}const so={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"]},Cy={};function Yc(e,t){const n=Cy,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Jp(e,r,i)}function Jp(e,t,n){if(Sy(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 Gf(e.children,t,n)}return Array.isArray(e)?Gf(e,t,n):""}function Gf(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=Jp(e[i],t,n);return r.join("")}function Sy(e){return!!(e&&typeof e=="object")}const Kf=document.createElement("i");function Vc(e){const t="&"+e+";";Kf.innerHTML=t;const n=Kf.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function yt(e,t,n,r){const i=e.length;let s=0,u;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)u=Array.from(r),u.unshift(t,n),e.splice(...u);else for(n&&e.splice(t,n);s<r.length;)u=r.slice(s,s+1e4),u.unshift(t,0),e.splice(...u),s+=1e4,t+=1e4}function At(e,t){return e.length>0?(yt(e,e.length,0,t),e):t}const Xf={}.hasOwnProperty;function Zp(e){const t={};let n=-1;for(;++n<e.length;)Ay(t,e[n]);return t}function Ay(e,t){let n;for(n in t){const i=(Xf.call(e,n)?e[n]:void 0)||(e[n]={}),s=t[n];let u;if(s)for(u in s){Xf.call(i,u)||(i[u]=[]);const a=s[u];wy(i[u],Array.isArray(a)?a:a?[a]:[])}}}function wy(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);yt(e,0,0,r)}function e1(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 Ht(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const it=qn(/[A-Za-z]/),Je=qn(/[\dA-Za-z]/),vy=qn(/[#-'*+\--9=?A-Z^-~]/);function Qu(e){return e!==null&&(e<32||e===127)}const _l=qn(/\d/),Iy=qn(/[\dA-Fa-f]/),Ly=qn(/[!-/:-@[-`{-~]/);function J(e){return e!==null&&e<-2}function ke(e){return e!==null&&(e<0||e===32)}function ce(e){return e===-2||e===-1||e===32}const Ta=qn(new RegExp("\\p{P}|\\p{S}","u")),mr=qn(/\s/);function qn(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function oi(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const s=e.charCodeAt(n);let u="";if(s===37&&Je(e.charCodeAt(n+1))&&Je(e.charCodeAt(n+2)))i=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(u=String.fromCharCode(s));else if(s>55295&&s<57344){const a=e.charCodeAt(n+1);s<56320&&a>56319&&a<57344?(u=String.fromCharCode(s,a),i=1):u="�"}else u=String.fromCharCode(s);u&&(t.push(e.slice(r,n),encodeURIComponent(u)),r=n+i+1,u=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function me(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let s=0;return u;function u(o){return ce(o)?(e.enter(n),a(o)):t(o)}function a(o){return ce(o)&&s++<i?(e.consume(o),a):(e.exit(n),t(o))}}const Oy={tokenize:Ry};function Ry(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),me(e,t,"linePrefix")}function i(a){return e.enter("paragraph"),s(a)}function s(a){const o=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=o),n=o,u(a)}function u(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return J(a)?(e.consume(a),e.exit("chunkText"),s):(e.consume(a),u)}}const Dy={tokenize:Py},Jf={tokenize:My};function Py(e){const t=this,n=[];let r=0,i,s,u;return a;function a(g){if(r<n.length){const w=n[r];return t.containerState=w[1],e.attempt(w[0].continuation,o,c)(g)}return c(g)}function o(g){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&T();const w=t.events.length;let O=w,N;for(;O--;)if(t.events[O][0]==="exit"&&t.events[O][1].type==="chunkFlow"){N=t.events[O][1].end;break}E(r);let P=w;for(;P<t.events.length;)t.events[P][1].end={...N},P++;return yt(t.events,O+1,0,t.events.slice(w)),t.events.length=P,c(g)}return a(g)}function c(g){if(r===n.length){if(!i)return m(g);if(i.currentConstruct&&i.currentConstruct.concrete)return x(g);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Jf,h,f)(g)}function h(g){return i&&T(),E(r),m(g)}function f(g){return t.parser.lazy[t.now().line]=r!==n.length,u=t.now().offset,x(g)}function m(g){return t.containerState={},e.attempt(Jf,p,x)(g)}function p(g){return r++,n.push([t.currentConstruct,t.containerState]),m(g)}function x(g){if(g===null){i&&T(),E(0),e.consume(g);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:s}),k(g)}function k(g){if(g===null){v(e.exit("chunkFlow"),!0),E(0),e.consume(g);return}return J(g)?(e.consume(g),v(e.exit("chunkFlow")),r=0,t.interrupt=void 0,a):(e.consume(g),k)}function v(g,w){const O=t.sliceStream(g);if(w&&O.push(null),g.previous=s,s&&(s.next=g),s=g,i.defineSkip(g.start),i.write(O),t.parser.lazy[g.start.line]){let N=i.events.length;for(;N--;)if(i.events[N][1].start.offset<u&&(!i.events[N][1].end||i.events[N][1].end.offset>u))return;const P=t.events.length;let I=P,F,A;for(;I--;)if(t.events[I][0]==="exit"&&t.events[I][1].type==="chunkFlow"){if(F){A=t.events[I][1].end;break}F=!0}for(E(r),N=P;N<t.events.length;)t.events[N][1].end={...A},N++;yt(t.events,I+1,0,t.events.slice(P)),t.events.length=N}}function E(g){let w=n.length;for(;w-- >g;){const O=n[w];t.containerState=O[1],O[0].exit.call(t,e)}n.length=g}function T(){i.write([null]),s=void 0,i=void 0,t.containerState._closeFlow=void 0}}function My(e,t,n){return me(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function ti(e){if(e===null||ke(e)||mr(e))return 1;if(Ta(e))return 2}function ya(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const s=e[i].resolveAll;s&&!r.includes(s)&&(t=s(t,n),r.push(s))}return t}const Nl={name:"attention",resolveAll:Fy,tokenize:By};function Fy(e,t){let n=-1,r,i,s,u,a,o,c,h;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;o=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const f={...e[r][1].end},m={...e[n][1].start};Zf(f,-o),Zf(m,o),u={type:o>1?"strongSequence":"emphasisSequence",start:f,end:{...e[r][1].end}},a={type:o>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:m},s={type:o>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:o>1?"strong":"emphasis",start:{...u.start},end:{...a.end}},e[r][1].end={...u.start},e[n][1].start={...a.end},c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=At(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=At(c,[["enter",i,t],["enter",u,t],["exit",u,t],["enter",s,t]]),c=At(c,ya(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),c=At(c,[["exit",s,t],["enter",a,t],["exit",a,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(h=2,c=At(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):h=0,yt(e,r-1,n-r+3,c),n=r+c.length-h-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function By(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=ti(r);let s;return u;function u(o){return s=o,e.enter("attentionSequence"),a(o)}function a(o){if(o===s)return e.consume(o),a;const c=e.exit("attentionSequence"),h=ti(o),f=!h||h===2&&i||n.includes(o),m=!i||i===2&&h||n.includes(r);return c._open=!!(s===42?f:f&&(i||!m)),c._close=!!(s===42?m:m&&(h||!f)),t(o)}}function Zf(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const jy={name:"autolink",tokenize:Uy};function Uy(e,t,n){let r=0;return i;function i(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),s}function s(p){return it(p)?(e.consume(p),u):p===64?n(p):c(p)}function u(p){return p===43||p===45||p===46||Je(p)?(r=1,a(p)):c(p)}function a(p){return p===58?(e.consume(p),r=0,o):(p===43||p===45||p===46||Je(p))&&r++<32?(e.consume(p),a):(r=0,c(p))}function o(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):p===null||p===32||p===60||Qu(p)?n(p):(e.consume(p),o)}function c(p){return p===64?(e.consume(p),h):vy(p)?(e.consume(p),c):n(p)}function h(p){return Je(p)?f(p):n(p)}function f(p){return p===46?(e.consume(p),r=0,h):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):m(p)}function m(p){if((p===45||Je(p))&&r++<63){const x=p===45?m:f;return e.consume(p),x}return n(p)}}const As={partial:!0,tokenize:Hy};function Hy(e,t,n){return r;function r(s){return ce(s)?me(e,i,"linePrefix")(s):i(s)}function i(s){return s===null||J(s)?t(s):n(s)}}const t1={continuation:{tokenize:Yy},exit:Vy,name:"blockQuote",tokenize:zy};function zy(e,t,n){const r=this;return i;function i(u){if(u===62){const a=r.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(u),e.exit("blockQuoteMarker"),s}return n(u)}function s(u){return ce(u)?(e.enter("blockQuotePrefixWhitespace"),e.consume(u),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(u))}}function Yy(e,t,n){const r=this;return i;function i(u){return ce(u)?me(e,s,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u):s(u)}function s(u){return e.attempt(t1,t,n)(u)}}function Vy(e){e.exit("blockQuote")}const n1={name:"characterEscape",tokenize:$y};function $y(e,t,n){return r;function r(s){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(s),e.exit("escapeMarker"),i}function i(s){return Ly(s)?(e.enter("characterEscapeValue"),e.consume(s),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(s)}}const r1={name:"characterReference",tokenize:Wy};function Wy(e,t,n){const r=this;let i=0,s,u;return a;function a(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),o}function o(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),s=31,u=Je,h(f))}function c(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),s=6,u=Iy,h):(e.enter("characterReferenceValue"),s=7,u=_l,h(f))}function h(f){if(f===59&&i){const m=e.exit("characterReferenceValue");return u===Je&&!Vc(r.sliceSerialize(m))?n(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return u(f)&&i++<s?(e.consume(f),h):n(f)}}const e0={partial:!0,tokenize:qy},t0={concrete:!0,name:"codeFenced",tokenize:Qy};function Qy(e,t,n){const r=this,i={partial:!0,tokenize:O};let s=0,u=0,a;return o;function o(N){return c(N)}function c(N){const P=r.events[r.events.length-1];return s=P&&P[1].type==="linePrefix"?P[2].sliceSerialize(P[1],!0).length:0,a=N,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),h(N)}function h(N){return N===a?(u++,e.consume(N),h):u<3?n(N):(e.exit("codeFencedFenceSequence"),ce(N)?me(e,f,"whitespace")(N):f(N))}function f(N){return N===null||J(N)?(e.exit("codeFencedFence"),r.interrupt?t(N):e.check(e0,k,w)(N)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),m(N))}function m(N){return N===null||J(N)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(N)):ce(N)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),me(e,p,"whitespace")(N)):N===96&&N===a?n(N):(e.consume(N),m)}function p(N){return N===null||J(N)?f(N):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),x(N))}function x(N){return N===null||J(N)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(N)):N===96&&N===a?n(N):(e.consume(N),x)}function k(N){return e.attempt(i,w,v)(N)}function v(N){return e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),E}function E(N){return s>0&&ce(N)?me(e,T,"linePrefix",s+1)(N):T(N)}function T(N){return N===null||J(N)?e.check(e0,k,w)(N):(e.enter("codeFlowValue"),g(N))}function g(N){return N===null||J(N)?(e.exit("codeFlowValue"),T(N)):(e.consume(N),g)}function w(N){return e.exit("codeFenced"),t(N)}function O(N,P,I){let F=0;return A;function A(W){return N.enter("lineEnding"),N.consume(W),N.exit("lineEnding"),V}function V(W){return N.enter("codeFencedFence"),ce(W)?me(N,j,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(W):j(W)}function j(W){return W===a?(N.enter("codeFencedFenceSequence"),te(W)):I(W)}function te(W){return W===a?(F++,N.consume(W),te):F>=u?(N.exit("codeFencedFenceSequence"),ce(W)?me(N,ae,"whitespace")(W):ae(W)):I(W)}function ae(W){return W===null||J(W)?(N.exit("codeFencedFence"),P(W)):I(W)}}}function qy(e,t,n){const r=this;return i;function i(u){return u===null?n(u):(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),s)}function s(u){return r.parser.lazy[r.now().line]?n(u):t(u)}}const uo={name:"codeIndented",tokenize:Ky},Gy={partial:!0,tokenize:Xy};function Ky(e,t,n){const r=this;return i;function i(c){return e.enter("codeIndented"),me(e,s,"linePrefix",5)(c)}function s(c){const h=r.events[r.events.length-1];return h&&h[1].type==="linePrefix"&&h[2].sliceSerialize(h[1],!0).length>=4?u(c):n(c)}function u(c){return c===null?o(c):J(c)?e.attempt(Gy,u,o)(c):(e.enter("codeFlowValue"),a(c))}function a(c){return c===null||J(c)?(e.exit("codeFlowValue"),u(c)):(e.consume(c),a)}function o(c){return e.exit("codeIndented"),t(c)}}function Xy(e,t,n){const r=this;return i;function i(u){return r.parser.lazy[r.now().line]?n(u):J(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),i):me(e,s,"linePrefix",5)(u)}function s(u){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(u):J(u)?i(u):n(u)}}const Jy={name:"codeText",previous:e3,resolve:Zy,tokenize:t3};function Zy(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function e3(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function t3(e,t,n){let r=0,i,s;return u;function u(f){return e.enter("codeText"),e.enter("codeTextSequence"),a(f)}function a(f){return f===96?(e.consume(f),r++,a):(e.exit("codeTextSequence"),o(f))}function o(f){return f===null?n(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),o):f===96?(s=e.enter("codeTextSequence"),i=0,h(f)):J(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),o):(e.enter("codeTextData"),c(f))}function c(f){return f===null||f===32||f===96||J(f)?(e.exit("codeTextData"),o(f)):(e.consume(f),c)}function h(f){return f===96?(e.consume(f),i++,h):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(f)):(s.type="codeTextData",c(f))}}class n3{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 r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const s=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Ni(this.left,r),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),Ni(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Ni(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);Ni(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Ni(this.left,n.reverse())}}}function Ni(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 i1(e){const t={};let n=-1,r,i,s,u,a,o,c;const h=new n3(e);for(;++n<h.length;){for(;n in t;)n=t[n];if(r=h.get(n),n&&r[1].type==="chunkFlow"&&h.get(n-1)[1].type==="listItemPrefix"&&(o=r[1]._tokenizer.events,s=0,s<o.length&&o[s][1].type==="lineEndingBlank"&&(s+=2),s<o.length&&o[s][1].type==="content"))for(;++s<o.length&&o[s][1].type!=="content";)o[s][1].type==="chunkText"&&(o[s][1]._isInFirstContentOfListItem=!0,s++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,r3(h,n)),n=t[n],c=!0);else if(r[1]._container){for(s=n,i=void 0;s--;)if(u=h.get(s),u[1].type==="lineEnding"||u[1].type==="lineEndingBlank")u[0]==="enter"&&(i&&(h.get(i)[1].type="lineEndingBlank"),u[1].type="lineEnding",i=s);else if(!(u[1].type==="linePrefix"||u[1].type==="listItemIndent"))break;i&&(r[1].end={...h.get(i)[1].start},a=h.slice(i,n),a.unshift(r),h.splice(i,n-i+1,a))}}return yt(e,0,Number.POSITIVE_INFINITY,h.slice(0)),!c}function r3(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const s=[];let u=n._tokenizer;u||(u=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(u._contentTypeTextTrailing=!0));const a=u.events,o=[],c={};let h,f,m=-1,p=n,x=0,k=0;const v=[k];for(;p;){for(;e.get(++i)[1]!==p;);s.push(i),p._tokenizer||(h=r.sliceStream(p),p.next||h.push(null),f&&u.defineSkip(p.start),p._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=!0),u.write(h),p._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=void 0)),f=p,p=p.next}for(p=n;++m<a.length;)a[m][0]==="exit"&&a[m-1][0]==="enter"&&a[m][1].type===a[m-1][1].type&&a[m][1].start.line!==a[m][1].end.line&&(k=m+1,v.push(k),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(u.events=[],p?(p._tokenizer=void 0,p.previous=void 0):v.pop(),m=v.length;m--;){const E=a.slice(v[m],v[m+1]),T=s.pop();o.push([T,T+E.length-1]),e.splice(T,2,E)}for(o.reverse(),m=-1;++m<o.length;)c[x+o[m][0]]=x+o[m][1],x+=o[m][1]-o[m][0]-1;return c}const i3={resolve:u3,tokenize:a3},s3={partial:!0,tokenize:o3};function u3(e){return i1(e),e}function a3(e,t){let n;return r;function r(a){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(a)}function i(a){return a===null?s(a):J(a)?e.check(s3,u,s)(a):(e.consume(a),i)}function s(a){return e.exit("chunkContent"),e.exit("content"),t(a)}function u(a){return e.consume(a),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function o3(e,t,n){const r=this;return i;function i(u){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),me(e,s,"linePrefix")}function s(u){if(u===null||J(u))return n(u);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(u):e.interrupt(r.parser.constructs.flow,n,t)(u)}}function s1(e,t,n,r,i,s,u,a,o){const c=o||Number.POSITIVE_INFINITY;let h=0;return f;function f(E){return E===60?(e.enter(r),e.enter(i),e.enter(s),e.consume(E),e.exit(s),m):E===null||E===32||E===41||Qu(E)?n(E):(e.enter(r),e.enter(u),e.enter(a),e.enter("chunkString",{contentType:"string"}),k(E))}function m(E){return E===62?(e.enter(s),e.consume(E),e.exit(s),e.exit(i),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),p(E))}function p(E){return E===62?(e.exit("chunkString"),e.exit(a),m(E)):E===null||E===60||J(E)?n(E):(e.consume(E),E===92?x:p)}function x(E){return E===60||E===62||E===92?(e.consume(E),p):p(E)}function k(E){return!h&&(E===null||E===41||ke(E))?(e.exit("chunkString"),e.exit(a),e.exit(u),e.exit(r),t(E)):h<c&&E===40?(e.consume(E),h++,k):E===41?(e.consume(E),h--,k):E===null||E===32||E===40||Qu(E)?n(E):(e.consume(E),E===92?v:k)}function v(E){return E===40||E===41||E===92?(e.consume(E),k):k(E)}}function u1(e,t,n,r,i,s){const u=this;let a=0,o;return c;function c(p){return e.enter(r),e.enter(i),e.consume(p),e.exit(i),e.enter(s),h}function h(p){return a>999||p===null||p===91||p===93&&!o||p===94&&!a&&"_hiddenFootnoteSupport"in u.parser.constructs?n(p):p===93?(e.exit(s),e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):J(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),h):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===null||p===91||p===93||J(p)||a++>999?(e.exit("chunkString"),h(p)):(e.consume(p),o||(o=!ce(p)),p===92?m:f)}function m(p){return p===91||p===92||p===93?(e.consume(p),a++,f):f(p)}}function a1(e,t,n,r,i,s){let u;return a;function a(m){return m===34||m===39||m===40?(e.enter(r),e.enter(i),e.consume(m),e.exit(i),u=m===40?41:m,o):n(m)}function o(m){return m===u?(e.enter(i),e.consume(m),e.exit(i),e.exit(r),t):(e.enter(s),c(m))}function c(m){return m===u?(e.exit(s),o(u)):m===null?n(m):J(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),me(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),h(m))}function h(m){return m===u||m===null||J(m)?(e.exit("chunkString"),c(m)):(e.consume(m),m===92?f:h)}function f(m){return m===u||m===92?(e.consume(m),h):h(m)}}function Yi(e,t){let n;return r;function r(i){return J(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):ce(i)?me(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const l3={name:"definition",tokenize:d3},c3={partial:!0,tokenize:f3};function d3(e,t,n){const r=this;let i;return s;function s(p){return e.enter("definition"),u(p)}function u(p){return u1.call(r,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function a(p){return i=Ht(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),o):n(p)}function o(p){return ke(p)?Yi(e,c)(p):c(p)}function c(p){return s1(e,h,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function h(p){return e.attempt(c3,f,f)(p)}function f(p){return ce(p)?me(e,m,"whitespace")(p):m(p)}function m(p){return p===null||J(p)?(e.exit("definition"),r.parser.defined.push(i),t(p)):n(p)}}function f3(e,t,n){return r;function r(a){return ke(a)?Yi(e,i)(a):n(a)}function i(a){return a1(e,s,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function s(a){return ce(a)?me(e,u,"whitespace")(a):u(a)}function u(a){return a===null||J(a)?t(a):n(a)}}const h3={name:"hardBreakEscape",tokenize:m3};function m3(e,t,n){return r;function r(s){return e.enter("hardBreakEscape"),e.consume(s),i}function i(s){return J(s)?(e.exit("hardBreakEscape"),t(s)):n(s)}}const p3={name:"headingAtx",resolve:g3,tokenize:E3};function g3(e,t){let n=e.length-2,r=3,i,s;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},s={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},yt(e,r,n-r+1,[["enter",i,t],["enter",s,t],["exit",s,t],["exit",i,t]])),e}function E3(e,t,n){let r=0;return i;function i(h){return e.enter("atxHeading"),s(h)}function s(h){return e.enter("atxHeadingSequence"),u(h)}function u(h){return h===35&&r++<6?(e.consume(h),u):h===null||ke(h)?(e.exit("atxHeadingSequence"),a(h)):n(h)}function a(h){return h===35?(e.enter("atxHeadingSequence"),o(h)):h===null||J(h)?(e.exit("atxHeading"),t(h)):ce(h)?me(e,a,"whitespace")(h):(e.enter("atxHeadingText"),c(h))}function o(h){return h===35?(e.consume(h),o):(e.exit("atxHeadingSequence"),a(h))}function c(h){return h===null||h===35||ke(h)?(e.exit("atxHeadingText"),a(h)):(e.consume(h),c)}}const x3=["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"],n0=["pre","script","style","textarea"],b3={concrete:!0,name:"htmlFlow",resolveTo:k3,tokenize:_3},T3={partial:!0,tokenize:C3},y3={partial:!0,tokenize:N3};function k3(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 _3(e,t,n){const r=this;let i,s,u,a,o;return c;function c(S){return h(S)}function h(S){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(S),f}function f(S){return S===33?(e.consume(S),m):S===47?(e.consume(S),s=!0,k):S===63?(e.consume(S),i=3,r.interrupt?t:b):it(S)?(e.consume(S),u=String.fromCharCode(S),v):n(S)}function m(S){return S===45?(e.consume(S),i=2,p):S===91?(e.consume(S),i=5,a=0,x):it(S)?(e.consume(S),i=4,r.interrupt?t:b):n(S)}function p(S){return S===45?(e.consume(S),r.interrupt?t:b):n(S)}function x(S){const Ee="CDATA[";return S===Ee.charCodeAt(a++)?(e.consume(S),a===Ee.length?r.interrupt?t:j:x):n(S)}function k(S){return it(S)?(e.consume(S),u=String.fromCharCode(S),v):n(S)}function v(S){if(S===null||S===47||S===62||ke(S)){const Ee=S===47,ge=u.toLowerCase();return!Ee&&!s&&n0.includes(ge)?(i=1,r.interrupt?t(S):j(S)):x3.includes(u.toLowerCase())?(i=6,Ee?(e.consume(S),E):r.interrupt?t(S):j(S)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(S):s?T(S):g(S))}return S===45||Je(S)?(e.consume(S),u+=String.fromCharCode(S),v):n(S)}function E(S){return S===62?(e.consume(S),r.interrupt?t:j):n(S)}function T(S){return ce(S)?(e.consume(S),T):A(S)}function g(S){return S===47?(e.consume(S),A):S===58||S===95||it(S)?(e.consume(S),w):ce(S)?(e.consume(S),g):A(S)}function w(S){return S===45||S===46||S===58||S===95||Je(S)?(e.consume(S),w):O(S)}function O(S){return S===61?(e.consume(S),N):ce(S)?(e.consume(S),O):g(S)}function N(S){return S===null||S===60||S===61||S===62||S===96?n(S):S===34||S===39?(e.consume(S),o=S,P):ce(S)?(e.consume(S),N):I(S)}function P(S){return S===o?(e.consume(S),o=null,F):S===null||J(S)?n(S):(e.consume(S),P)}function I(S){return S===null||S===34||S===39||S===47||S===60||S===61||S===62||S===96||ke(S)?O(S):(e.consume(S),I)}function F(S){return S===47||S===62||ce(S)?g(S):n(S)}function A(S){return S===62?(e.consume(S),V):n(S)}function V(S){return S===null||J(S)?j(S):ce(S)?(e.consume(S),V):n(S)}function j(S){return S===45&&i===2?(e.consume(S),ie):S===60&&i===1?(e.consume(S),fe):S===62&&i===4?(e.consume(S),X):S===63&&i===3?(e.consume(S),b):S===93&&i===5?(e.consume(S),K):J(S)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(T3,ne,te)(S)):S===null||J(S)?(e.exit("htmlFlowData"),te(S)):(e.consume(S),j)}function te(S){return e.check(y3,ae,ne)(S)}function ae(S){return e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),W}function W(S){return S===null||J(S)?te(S):(e.enter("htmlFlowData"),j(S))}function ie(S){return S===45?(e.consume(S),b):j(S)}function fe(S){return S===47?(e.consume(S),u="",Y):j(S)}function Y(S){if(S===62){const Ee=u.toLowerCase();return n0.includes(Ee)?(e.consume(S),X):j(S)}return it(S)&&u.length<8?(e.consume(S),u+=String.fromCharCode(S),Y):j(S)}function K(S){return S===93?(e.consume(S),b):j(S)}function b(S){return S===62?(e.consume(S),X):S===45&&i===2?(e.consume(S),b):j(S)}function X(S){return S===null||J(S)?(e.exit("htmlFlowData"),ne(S)):(e.consume(S),X)}function ne(S){return e.exit("htmlFlow"),t(S)}}function N3(e,t,n){const r=this;return i;function i(u){return J(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),s):n(u)}function s(u){return r.parser.lazy[r.now().line]?n(u):t(u)}}function C3(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(As,t,n)}}const S3={name:"htmlText",tokenize:A3};function A3(e,t,n){const r=this;let i,s,u;return a;function a(b){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(b),o}function o(b){return b===33?(e.consume(b),c):b===47?(e.consume(b),O):b===63?(e.consume(b),g):it(b)?(e.consume(b),I):n(b)}function c(b){return b===45?(e.consume(b),h):b===91?(e.consume(b),s=0,x):it(b)?(e.consume(b),T):n(b)}function h(b){return b===45?(e.consume(b),p):n(b)}function f(b){return b===null?n(b):b===45?(e.consume(b),m):J(b)?(u=f,fe(b)):(e.consume(b),f)}function m(b){return b===45?(e.consume(b),p):f(b)}function p(b){return b===62?ie(b):b===45?m(b):f(b)}function x(b){const X="CDATA[";return b===X.charCodeAt(s++)?(e.consume(b),s===X.length?k:x):n(b)}function k(b){return b===null?n(b):b===93?(e.consume(b),v):J(b)?(u=k,fe(b)):(e.consume(b),k)}function v(b){return b===93?(e.consume(b),E):k(b)}function E(b){return b===62?ie(b):b===93?(e.consume(b),E):k(b)}function T(b){return b===null||b===62?ie(b):J(b)?(u=T,fe(b)):(e.consume(b),T)}function g(b){return b===null?n(b):b===63?(e.consume(b),w):J(b)?(u=g,fe(b)):(e.consume(b),g)}function w(b){return b===62?ie(b):g(b)}function O(b){return it(b)?(e.consume(b),N):n(b)}function N(b){return b===45||Je(b)?(e.consume(b),N):P(b)}function P(b){return J(b)?(u=P,fe(b)):ce(b)?(e.consume(b),P):ie(b)}function I(b){return b===45||Je(b)?(e.consume(b),I):b===47||b===62||ke(b)?F(b):n(b)}function F(b){return b===47?(e.consume(b),ie):b===58||b===95||it(b)?(e.consume(b),A):J(b)?(u=F,fe(b)):ce(b)?(e.consume(b),F):ie(b)}function A(b){return b===45||b===46||b===58||b===95||Je(b)?(e.consume(b),A):V(b)}function V(b){return b===61?(e.consume(b),j):J(b)?(u=V,fe(b)):ce(b)?(e.consume(b),V):F(b)}function j(b){return b===null||b===60||b===61||b===62||b===96?n(b):b===34||b===39?(e.consume(b),i=b,te):J(b)?(u=j,fe(b)):ce(b)?(e.consume(b),j):(e.consume(b),ae)}function te(b){return b===i?(e.consume(b),i=void 0,W):b===null?n(b):J(b)?(u=te,fe(b)):(e.consume(b),te)}function ae(b){return b===null||b===34||b===39||b===60||b===61||b===96?n(b):b===47||b===62||ke(b)?F(b):(e.consume(b),ae)}function W(b){return b===47||b===62||ke(b)?F(b):n(b)}function ie(b){return b===62?(e.consume(b),e.exit("htmlTextData"),e.exit("htmlText"),t):n(b)}function fe(b){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),Y}function Y(b){return ce(b)?me(e,K,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(b):K(b)}function K(b){return e.enter("htmlTextData"),u(b)}}const $c={name:"labelEnd",resolveAll:L3,resolveTo:O3,tokenize:R3},w3={tokenize:D3},v3={tokenize:P3},I3={tokenize:M3};function L3(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&yt(e,0,e.length,n),e}function O3(e,t){let n=e.length,r=0,i,s,u,a;for(;n--;)if(i=e[n][1],s){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(u){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(s=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(u=n);const o={type:e[s][1].type==="labelLink"?"link":"image",start:{...e[s][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[s][1].start},end:{...e[u][1].end}},h={type:"labelText",start:{...e[s+r+2][1].end},end:{...e[u-2][1].start}};return a=[["enter",o,t],["enter",c,t]],a=At(a,e.slice(s+1,s+r+3)),a=At(a,[["enter",h,t]]),a=At(a,ya(t.parser.constructs.insideSpan.null,e.slice(s+r+4,u-3),t)),a=At(a,[["exit",h,t],e[u-2],e[u-1],["exit",c,t]]),a=At(a,e.slice(u+1)),a=At(a,[["exit",o,t]]),yt(e,s,e.length,a),e}function R3(e,t,n){const r=this;let i=r.events.length,s,u;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){s=r.events[i][1];break}return a;function a(m){return s?s._inactive?f(m):(u=r.parser.defined.includes(Ht(r.sliceSerialize({start:s.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(m),e.exit("labelMarker"),e.exit("labelEnd"),o):n(m)}function o(m){return m===40?e.attempt(w3,h,u?h:f)(m):m===91?e.attempt(v3,h,u?c:f)(m):u?h(m):f(m)}function c(m){return e.attempt(I3,h,f)(m)}function h(m){return t(m)}function f(m){return s._balanced=!0,n(m)}}function D3(e,t,n){return r;function r(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),i}function i(f){return ke(f)?Yi(e,s)(f):s(f)}function s(f){return f===41?h(f):s1(e,u,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function u(f){return ke(f)?Yi(e,o)(f):h(f)}function a(f){return n(f)}function o(f){return f===34||f===39||f===40?a1(e,c,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):h(f)}function c(f){return ke(f)?Yi(e,h)(f):h(f)}function h(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),t):n(f)}}function P3(e,t,n){const r=this;return i;function i(a){return u1.call(r,e,s,u,"reference","referenceMarker","referenceString")(a)}function s(a){return r.parser.defined.includes(Ht(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(a):n(a)}function u(a){return n(a)}}function M3(e,t,n){return r;function r(s){return e.enter("reference"),e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),i}function i(s){return s===93?(e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),e.exit("reference"),t):n(s)}}const F3={name:"labelStartImage",resolveAll:$c.resolveAll,tokenize:B3};function B3(e,t,n){const r=this;return i;function i(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),s}function s(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),u):n(a)}function u(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):t(a)}}const j3={name:"labelStartLink",resolveAll:$c.resolveAll,tokenize:U3};function U3(e,t,n){const r=this;return i;function i(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 r.parser.constructs?n(u):t(u)}}const ao={name:"lineEnding",tokenize:H3};function H3(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),me(e,t,"linePrefix")}}const pu={name:"thematicBreak",tokenize:z3};function z3(e,t,n){let r=0,i;return s;function s(c){return e.enter("thematicBreak"),u(c)}function u(c){return i=c,a(c)}function a(c){return c===i?(e.enter("thematicBreakSequence"),o(c)):r>=3&&(c===null||J(c))?(e.exit("thematicBreak"),t(c)):n(c)}function o(c){return c===i?(e.consume(c),r++,o):(e.exit("thematicBreakSequence"),ce(c)?me(e,a,"whitespace")(c):a(c))}}const lt={continuation:{tokenize:W3},exit:q3,name:"list",tokenize:$3},Y3={partial:!0,tokenize:G3},V3={partial:!0,tokenize:Q3};function $3(e,t,n){const r=this,i=r.events[r.events.length-1];let s=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,u=0;return a;function a(p){const x=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(x==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:_l(p)){if(r.containerState.type||(r.containerState.type=x,e.enter(x,{_container:!0})),x==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(pu,n,c)(p):c(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),o(p)}return n(p)}function o(p){return _l(p)&&++u<10?(e.consume(p),o):(!r.interrupt||u<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),c(p)):n(p)}function c(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(As,r.interrupt?n:h,e.attempt(Y3,m,f))}function h(p){return r.containerState.initialBlankLine=!0,s++,m(p)}function f(p){return ce(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),m):n(p)}function m(p){return r.containerState.size=s+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function W3(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(As,i,s);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,me(e,t,"listItemIndent",r.containerState.size+1)(a)}function s(a){return r.containerState.furtherBlankLines||!ce(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,u(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(V3,t,u)(a))}function u(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,me(e,e.attempt(lt,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function Q3(e,t,n){const r=this;return me(e,i,"listItemIndent",r.containerState.size+1);function i(s){const u=r.events[r.events.length-1];return u&&u[1].type==="listItemIndent"&&u[2].sliceSerialize(u[1],!0).length===r.containerState.size?t(s):n(s)}}function q3(e){e.exit(this.containerState.type)}function G3(e,t,n){const r=this;return me(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(s){const u=r.events[r.events.length-1];return!ce(s)&&u&&u[1].type==="listItemPrefixWhitespace"?t(s):n(s)}}const r0={name:"setextUnderline",resolveTo:K3,tokenize:X3};function K3(e,t){let n=e.length,r,i,s;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=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[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",s?(e.splice(i,0,["enter",u,t]),e.splice(s+1,0,["exit",e[r][1],t]),e[r][1].end={...e[s][1].end}):e[r][1]=u,e.push(["exit",u,t]),e}function X3(e,t,n){const r=this;let i;return s;function s(c){let h=r.events.length,f;for(;h--;)if(r.events[h][1].type!=="lineEnding"&&r.events[h][1].type!=="linePrefix"&&r.events[h][1].type!=="content"){f=r.events[h][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),i=c,u(c)):n(c)}function u(c){return e.enter("setextHeadingLineSequence"),a(c)}function a(c){return c===i?(e.consume(c),a):(e.exit("setextHeadingLineSequence"),ce(c)?me(e,o,"lineSuffix")(c):o(c))}function o(c){return c===null||J(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}const J3={tokenize:Z3};function Z3(e){const t=this,n=e.attempt(As,r,e.attempt(this.parser.constructs.flowInitial,i,me(e,e.attempt(this.parser.constructs.flow,i,e.attempt(i3,i)),"linePrefix")));return n;function r(s){if(s===null){e.consume(s);return}return e.enter("lineEndingBlank"),e.consume(s),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const ek={resolveAll:l1()},tk=o1("string"),nk=o1("text");function o1(e){return{resolveAll:l1(e==="text"?rk:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],s=n.attempt(i,u,a);return u;function u(h){return c(h)?s(h):a(h)}function a(h){if(h===null){n.consume(h);return}return n.enter("data"),n.consume(h),o}function o(h){return c(h)?(n.exit("data"),s(h)):(n.consume(h),o)}function c(h){if(h===null)return!0;const f=i[h];let m=-1;if(f)for(;++m<f.length;){const p=f[m];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function l1(e){return t;function t(n,r){let i=-1,s;for(;++i<=n.length;)s===void 0?n[i]&&n[i][1].type==="data"&&(s=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==s+2&&(n[s][1].end=n[i-1][1].end,n.splice(s+2,i-s-2),i=s+2),s=void 0);return e?e(n,r):n}}function rk(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 r=e[n-1][1],i=t.sliceStream(r);let s=i.length,u=-1,a=0,o;for(;s--;){const c=i[s];if(typeof c=="string"){for(u=c.length;c.charCodeAt(u-1)===32;)a++,u--;if(u)break;u=-1}else if(c===-2)o=!0,a++;else if(c!==-1){s++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(a=0),a){const c={type:n===e.length||o||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?u:r.start._bufferIndex+u,_index:r.start._index+s,line:r.end.line,column:r.end.column-a,offset:r.end.offset-a},end:{...r.end}};r.end={...c.start},r.start.offset===r.end.offset?Object.assign(r,c):(e.splice(n,0,["enter",c,t],["exit",c,t]),n+=2)}n++}return e}const ik={42:lt,43:lt,45:lt,48:lt,49:lt,50:lt,51:lt,52:lt,53:lt,54:lt,55:lt,56:lt,57:lt,62:t1},sk={91:l3},uk={[-2]:uo,[-1]:uo,32:uo},ak={35:p3,42:pu,45:[r0,pu],60:b3,61:r0,95:pu,96:t0,126:t0},ok={38:r1,92:n1},lk={[-5]:ao,[-4]:ao,[-3]:ao,33:F3,38:r1,42:Nl,60:[jy,S3],91:j3,92:[h3,n1],93:$c,95:Nl,96:Jy},ck={null:[Nl,ek]},dk={null:[42,95]},fk={null:[]},hk=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:dk,contentInitial:sk,disable:fk,document:ik,flow:ak,flowInitial:uk,insideSpan:ck,string:ok,text:lk},Symbol.toStringTag,{value:"Module"}));function mk(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},s=[];let u=[],a=[];const o={attempt:P(O),check:P(N),consume:T,enter:g,exit:w,interrupt:P(N,{interrupt:!0})},c={code:null,containerState:{},defineSkip:k,events:[],now:x,parser:e,previous:null,sliceSerialize:m,sliceStream:p,write:f};let h=t.tokenize.call(c,o);return t.resolveAll&&s.push(t),c;function f(V){return u=At(u,V),v(),u[u.length-1]!==null?[]:(I(t,0),c.events=ya(s,c.events,c),c.events)}function m(V,j){return gk(p(V),j)}function p(V){return pk(u,V)}function x(){const{_bufferIndex:V,_index:j,line:te,column:ae,offset:W}=r;return{_bufferIndex:V,_index:j,line:te,column:ae,offset:W}}function k(V){i[V.line]=V.column,A()}function v(){let V;for(;r._index<u.length;){const j=u[r._index];if(typeof j=="string")for(V=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===V&&r._bufferIndex<j.length;)E(j.charCodeAt(r._bufferIndex));else E(j)}}function E(V){h=h(V)}function T(V){J(V)?(r.line++,r.column=1,r.offset+=V===-3?2:1,A()):V!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===u[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=V}function g(V,j){const te=j||{};return te.type=V,te.start=x(),c.events.push(["enter",te,c]),a.push(te),te}function w(V){const j=a.pop();return j.end=x(),c.events.push(["exit",j,c]),j}function O(V,j){I(V,j.from)}function N(V,j){j.restore()}function P(V,j){return te;function te(ae,W,ie){let fe,Y,K,b;return Array.isArray(ae)?ne(ae):"tokenize"in ae?ne([ae]):X(ae);function X(ee){return nt;function nt(Rt){const Ce=Rt!==null&&ee[Rt],tn=Rt!==null&&ee.null,nn=[...Array.isArray(Ce)?Ce:Ce?[Ce]:[],...Array.isArray(tn)?tn:tn?[tn]:[]];return ne(nn)(Rt)}}function ne(ee){return fe=ee,Y=0,ee.length===0?ie:S(ee[Y])}function S(ee){return nt;function nt(Rt){return b=F(),K=ee,ee.partial||(c.currentConstruct=ee),ee.name&&c.parser.constructs.disable.null.includes(ee.name)?ge():ee.tokenize.call(j?Object.assign(Object.create(c),j):c,o,Ee,ge)(Rt)}}function Ee(ee){return V(K,b),W}function ge(ee){return b.restore(),++Y<fe.length?S(fe[Y]):ie}}}function I(V,j){V.resolveAll&&!s.includes(V)&&s.push(V),V.resolve&&yt(c.events,j,c.events.length-j,V.resolve(c.events.slice(j),c)),V.resolveTo&&(c.events=V.resolveTo(c.events,c))}function F(){const V=x(),j=c.previous,te=c.currentConstruct,ae=c.events.length,W=Array.from(a);return{from:ae,restore:ie};function ie(){r=V,c.previous=j,c.currentConstruct=te,c.events.length=ae,a=W,A()}}function A(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function pk(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,s=t.end._bufferIndex;let u;if(n===i)u=[e[n].slice(r,s)];else{if(u=e.slice(n,i),r>-1){const a=u[0];typeof a=="string"?u[0]=a.slice(r):u.shift()}s>0&&u.push(e[i].slice(0,s))}return u}function gk(e,t){let n=-1;const r=[];let i;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=`
|
|
267
|
+
`;break}case-3:{u=`\r
|
|
268
|
+
`;break}case-2:{u=t?" ":" ";break}case-1:{if(!t&&i)continue;u=" ";break}default:u=String.fromCharCode(s)}i=s===-2,r.push(u)}return r.join("")}function Ek(e){const r={constructs:Zp([hk,...(e||{}).extensions||[]]),content:i(Oy),defined:[],document:i(Dy),flow:i(J3),lazy:{},string:i(tk),text:i(nk)};return r;function i(s){return u;function u(a){return mk(r,s,a)}}}function xk(e){for(;!i1(e););return e}const i0=/[\0\t\n\r]/g;function bk(){let e=1,t="",n=!0,r;return i;function i(s,u,a){const o=[];let c,h,f,m,p;for(s=t+(typeof s=="string"?s.toString():new TextDecoder(u||void 0).decode(s)),f=0,t="",n&&(s.charCodeAt(0)===65279&&f++,n=void 0);f<s.length;){if(i0.lastIndex=f,c=i0.exec(s),m=c&&c.index!==void 0?c.index:s.length,p=s.charCodeAt(m),!c){t=s.slice(f);break}if(p===10&&f===m&&r)o.push(-3),r=void 0;else switch(r&&(o.push(-5),r=void 0),f<m&&(o.push(s.slice(f,m)),e+=m-f),p){case 0:{o.push(65533),e++;break}case 9:{for(h=Math.ceil(e/4)*4,o.push(-2);e++<h;)o.push(-1);break}case 10:{o.push(-4),e=1;break}default:r=!0,e=1}f=m+1}return a&&(r&&o.push(-5),t&&o.push(t),o.push(null)),o}}const Tk=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function yk(e){return e.replace(Tk,kk)}function kk(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),s=i===120||i===88;return e1(n.slice(s?2:1),s?16:10)}return Vc(n)||e}const c1={}.hasOwnProperty;function _k(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),Nk(n)(xk(Ek(n).document().write(bk()(e,t,!0))))}function Nk(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(ld),autolinkProtocol:F,autolinkEmail:F,atxHeading:s(ud),blockQuote:s(tn),characterEscape:F,characterReference:F,codeFenced:s(nn),codeFencedFenceInfo:u,codeFencedFenceMeta:u,codeIndented:s(nn,u),codeText:s(yr,u),codeTextData:F,data:F,codeFlowValue:F,definition:s(fi),definitionDestinationString:u,definitionLabelString:u,definitionTitleString:u,emphasis:s(kr),hardBreakEscape:s(ad),hardBreakTrailing:s(ad),htmlFlow:s(od,u),htmlFlowData:F,htmlText:s(od,u),htmlTextData:F,image:s(Ig),label:u,link:s(ld),listItem:s(Lg),listItemValue:m,listOrdered:s(cd,f),listUnordered:s(cd),paragraph:s(Og),reference:S,referenceString:u,resourceDestinationString:u,resourceTitleString:u,setextHeading:s(ud),strong:s(Rg),thematicBreak:s(Pg)},exit:{atxHeading:o(),atxHeadingSequence:O,autolink:o(),autolinkEmail:Ce,autolinkProtocol:Rt,blockQuote:o(),characterEscapeValue:A,characterReferenceMarkerHexadecimal:ge,characterReferenceMarkerNumeric:ge,characterReferenceValue:ee,characterReference:nt,codeFenced:o(v),codeFencedFence:k,codeFencedFenceInfo:p,codeFencedFenceMeta:x,codeFlowValue:A,codeIndented:o(E),codeText:o(W),codeTextData:A,data:A,definition:o(),definitionDestinationString:w,definitionLabelString:T,definitionTitleString:g,emphasis:o(),hardBreakEscape:o(j),hardBreakTrailing:o(j),htmlFlow:o(te),htmlFlowData:A,htmlText:o(ae),htmlTextData:A,image:o(fe),label:K,labelText:Y,lineEnding:V,link:o(ie),listItem:o(),listOrdered:o(),listUnordered:o(),paragraph:o(),referenceString:Ee,resourceDestinationString:b,resourceTitleString:X,resource:ne,setextHeading:o(I),setextHeadingLineSequence:P,setextHeadingText:N,strong:o(),thematicBreak:o()}};d1(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(M){let $={type:"root",children:[]};const re={stack:[$],tokenStack:[],config:t,enter:a,exit:c,buffer:u,resume:h,data:n},he=[];let ye=-1;for(;++ye<M.length;)if(M[ye][1].type==="listOrdered"||M[ye][1].type==="listUnordered")if(M[ye][0]==="enter")he.push(ye);else{const Dt=he.pop();ye=i(M,Dt,ye)}for(ye=-1;++ye<M.length;){const Dt=t[M[ye][0]];c1.call(Dt,M[ye][1].type)&&Dt[M[ye][1].type].call(Object.assign({sliceSerialize:M[ye][2].sliceSerialize},re),M[ye][1])}if(re.tokenStack.length>0){const Dt=re.tokenStack[re.tokenStack.length-1];(Dt[1]||s0).call(re,void 0,Dt[0])}for($.position={start:kn(M.length>0?M[0][1].start:{line:1,column:1,offset:0}),end:kn(M.length>0?M[M.length-2][1].end:{line:1,column:1,offset:0})},ye=-1;++ye<t.transforms.length;)$=t.transforms[ye]($)||$;return $}function i(M,$,re){let he=$-1,ye=-1,Dt=!1,Gn,rn,hi,mi;for(;++he<=re;){const gt=M[he];switch(gt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{gt[0]==="enter"?ye++:ye--,mi=void 0;break}case"lineEndingBlank":{gt[0]==="enter"&&(Gn&&!mi&&!ye&&!hi&&(hi=he),mi=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:mi=void 0}if(!ye&>[0]==="enter"&>[1].type==="listItemPrefix"||ye===-1&>[0]==="exit"&&(gt[1].type==="listUnordered"||gt[1].type==="listOrdered")){if(Gn){let _r=he;for(rn=void 0;_r--;){const sn=M[_r];if(sn[1].type==="lineEnding"||sn[1].type==="lineEndingBlank"){if(sn[0]==="exit")continue;rn&&(M[rn][1].type="lineEndingBlank",Dt=!0),sn[1].type="lineEnding",rn=_r}else if(!(sn[1].type==="linePrefix"||sn[1].type==="blockQuotePrefix"||sn[1].type==="blockQuotePrefixWhitespace"||sn[1].type==="blockQuoteMarker"||sn[1].type==="listItemIndent"))break}hi&&(!rn||hi<rn)&&(Gn._spread=!0),Gn.end=Object.assign({},rn?M[rn][1].start:gt[1].end),M.splice(rn||he,0,["exit",Gn,gt[2]]),he++,re++}if(gt[1].type==="listItemPrefix"){const _r={type:"listItem",_spread:!1,start:Object.assign({},gt[1].start),end:void 0};Gn=_r,M.splice(he,0,["enter",_r,gt[2]]),he++,re++,hi=void 0,mi=!0}}}return M[$][1]._spread=Dt,re}function s(M,$){return re;function re(he){a.call(this,M(he),he),$&&$.call(this,he)}}function u(){this.stack.push({type:"fragment",children:[]})}function a(M,$,re){this.stack[this.stack.length-1].children.push(M),this.stack.push(M),this.tokenStack.push([$,re||void 0]),M.position={start:kn($.start),end:void 0}}function o(M){return $;function $(re){M&&M.call(this,re),c.call(this,re)}}function c(M,$){const re=this.stack.pop(),he=this.tokenStack.pop();if(he)he[0].type!==M.type&&($?$.call(this,M,he[0]):(he[1]||s0).call(this,M,he[0]));else throw new Error("Cannot close `"+M.type+"` ("+zi({start:M.start,end:M.end})+"): it’s not open");re.position.end=kn(M.end)}function h(){return Yc(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function m(M){if(this.data.expectingFirstListItemValue){const $=this.stack[this.stack.length-2];$.start=Number.parseInt(this.sliceSerialize(M),10),this.data.expectingFirstListItemValue=void 0}}function p(){const M=this.resume(),$=this.stack[this.stack.length-1];$.lang=M}function x(){const M=this.resume(),$=this.stack[this.stack.length-1];$.meta=M}function k(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function v(){const M=this.resume(),$=this.stack[this.stack.length-1];$.value=M.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function E(){const M=this.resume(),$=this.stack[this.stack.length-1];$.value=M.replace(/(\r?\n|\r)$/g,"")}function T(M){const $=this.resume(),re=this.stack[this.stack.length-1];re.label=$,re.identifier=Ht(this.sliceSerialize(M)).toLowerCase()}function g(){const M=this.resume(),$=this.stack[this.stack.length-1];$.title=M}function w(){const M=this.resume(),$=this.stack[this.stack.length-1];$.url=M}function O(M){const $=this.stack[this.stack.length-1];if(!$.depth){const re=this.sliceSerialize(M).length;$.depth=re}}function N(){this.data.setextHeadingSlurpLineEnding=!0}function P(M){const $=this.stack[this.stack.length-1];$.depth=this.sliceSerialize(M).codePointAt(0)===61?1:2}function I(){this.data.setextHeadingSlurpLineEnding=void 0}function F(M){const re=this.stack[this.stack.length-1].children;let he=re[re.length-1];(!he||he.type!=="text")&&(he=Dg(),he.position={start:kn(M.start),end:void 0},re.push(he)),this.stack.push(he)}function A(M){const $=this.stack.pop();$.value+=this.sliceSerialize(M),$.position.end=kn(M.end)}function V(M){const $=this.stack[this.stack.length-1];if(this.data.atHardBreak){const re=$.children[$.children.length-1];re.position.end=kn(M.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes($.type)&&(F.call(this,M),A.call(this,M))}function j(){this.data.atHardBreak=!0}function te(){const M=this.resume(),$=this.stack[this.stack.length-1];$.value=M}function ae(){const M=this.resume(),$=this.stack[this.stack.length-1];$.value=M}function W(){const M=this.resume(),$=this.stack[this.stack.length-1];$.value=M}function ie(){const M=this.stack[this.stack.length-1];if(this.data.inReference){const $=this.data.referenceType||"shortcut";M.type+="Reference",M.referenceType=$,delete M.url,delete M.title}else delete M.identifier,delete M.label;this.data.referenceType=void 0}function fe(){const M=this.stack[this.stack.length-1];if(this.data.inReference){const $=this.data.referenceType||"shortcut";M.type+="Reference",M.referenceType=$,delete M.url,delete M.title}else delete M.identifier,delete M.label;this.data.referenceType=void 0}function Y(M){const $=this.sliceSerialize(M),re=this.stack[this.stack.length-2];re.label=yk($),re.identifier=Ht($).toLowerCase()}function K(){const M=this.stack[this.stack.length-1],$=this.resume(),re=this.stack[this.stack.length-1];if(this.data.inReference=!0,re.type==="link"){const he=M.children;re.children=he}else re.alt=$}function b(){const M=this.resume(),$=this.stack[this.stack.length-1];$.url=M}function X(){const M=this.resume(),$=this.stack[this.stack.length-1];$.title=M}function ne(){this.data.inReference=void 0}function S(){this.data.referenceType="collapsed"}function Ee(M){const $=this.resume(),re=this.stack[this.stack.length-1];re.label=$,re.identifier=Ht(this.sliceSerialize(M)).toLowerCase(),this.data.referenceType="full"}function ge(M){this.data.characterReferenceType=M.type}function ee(M){const $=this.sliceSerialize(M),re=this.data.characterReferenceType;let he;re?(he=e1($,re==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):he=Vc($);const ye=this.stack[this.stack.length-1];ye.value+=he}function nt(M){const $=this.stack.pop();$.position.end=kn(M.end)}function Rt(M){A.call(this,M);const $=this.stack[this.stack.length-1];$.url=this.sliceSerialize(M)}function Ce(M){A.call(this,M);const $=this.stack[this.stack.length-1];$.url="mailto:"+this.sliceSerialize(M)}function tn(){return{type:"blockquote",children:[]}}function nn(){return{type:"code",lang:null,meta:null,value:""}}function yr(){return{type:"inlineCode",value:""}}function fi(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function kr(){return{type:"emphasis",children:[]}}function ud(){return{type:"heading",depth:0,children:[]}}function ad(){return{type:"break"}}function od(){return{type:"html",value:""}}function Ig(){return{type:"image",title:null,url:"",alt:null}}function ld(){return{type:"link",title:null,url:"",children:[]}}function cd(M){return{type:"list",ordered:M.type==="listOrdered",start:null,spread:M._spread,children:[]}}function Lg(M){return{type:"listItem",spread:M._spread,checked:null,children:[]}}function Og(){return{type:"paragraph",children:[]}}function Rg(){return{type:"strong",children:[]}}function Dg(){return{type:"text",value:""}}function Pg(){return{type:"thematicBreak"}}}function kn(e){return{line:e.line,column:e.column,offset:e.offset}}function d1(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?d1(e,r):Ck(e,r)}}function Ck(e,t){let n;for(n in t)if(c1.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function s0(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+zi({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+zi({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+zi({start:t.start,end:t.end})+") is still open")}function Sk(e){const t=this;t.parser=n;function n(r){return _k(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Ak(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 wk(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
269
|
+
`}]}function vk(e,t){const n=t.value?t.value+`
|
|
270
|
+
`:"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let s={type:"element",tagName:"code",properties:r,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 Ik(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Lk(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Ok(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=oi(r.toLowerCase()),s=e.footnoteOrder.indexOf(r);let u,a=e.footnoteCounts.get(r);a===void 0?(a=0,e.footnoteOrder.push(r),u=e.footnoteOrder.length):u=s+1,a+=1,e.footnoteCounts.set(r,a);const o={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(u)}]};e.patch(t,o);const c={type:"element",tagName:"sup",properties:{},children:[o]};return e.patch(t,c),e.applyData(t,c)}function Rk(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 Dk(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function f1(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),s=i[0];s&&s.type==="text"?s.value="["+s.value:i.unshift({type:"text",value:"["});const u=i[i.length-1];return u&&u.type==="text"?u.value+=r:i.push({type:"text",value:r}),i}function Pk(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return f1(e,t);const i={src:oi(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const s={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,s),e.applyData(t,s)}function Mk(e,t){const n={src:oi(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 r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function Fk(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function Bk(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return f1(e,t);const i={href:oi(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const s={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,s),e.applyData(t,s)}function jk(e,t){const n={href:oi(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Uk(e,t,n){const r=e.all(t),i=n?Hk(n):h1(t),s={},u=[];if(typeof t.checked=="boolean"){const h=r[0];let f;h&&h.type==="element"&&h.tagName==="p"?f=h:(f={type:"element",tagName:"p",properties:{},children:[]},r.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let a=-1;for(;++a<r.length;){const h=r[a];(i||a!==0||h.type!=="element"||h.tagName!=="p")&&u.push({type:"text",value:`
|
|
271
|
+
`}),h.type==="element"&&h.tagName==="p"&&!i?u.push(...h.children):u.push(h)}const o=r[r.length-1];o&&(i||o.type!=="element"||o.tagName!=="p")&&u.push({type:"text",value:`
|
|
272
|
+
`});const c={type:"element",tagName:"li",properties:s,children:u};return e.patch(t,c),e.applyData(t,c)}function Hk(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=h1(n[r])}return t}function h1(e){const t=e.spread;return t??e.children.length>1}function zk(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const u=r[i];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(r,!0)};return e.patch(t,s),e.applyData(t,s)}function Yk(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Vk(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function $k(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Wk(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const u={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],u),i.push(u)}if(n.length>0){const u={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},a=Zt(t.children[1]),o=ba(t.children[t.children.length-1]);a&&o&&(u.position={start:a,end:o}),i.push(u)}const s={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,s),e.applyData(t,s)}function Qk(e,t,n){const r=n?n.children:void 0,s=(r?r.indexOf(t):1)===0?"th":"td",u=n&&n.type==="table"?n.align:void 0,a=u?u.length:t.children.length;let o=-1;const c=[];for(;++o<a;){const f=t.children[o],m={},p=u?u[o]:void 0;p&&(m.align=p);let x={type:"element",tagName:s,properties:m,children:[]};f&&(x.children=e.all(f),e.patch(f,x),x=e.applyData(f,x)),c.push(x)}const h={type:"element",tagName:"tr",properties:{},children:e.wrap(c,!0)};return e.patch(t,h),e.applyData(t,h)}function qk(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const u0=9,a0=32;function Gk(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const s=[];for(;r;)s.push(o0(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return s.push(o0(t.slice(i),i>0,!1)),s.join("")}function o0(e,t,n){let r=0,i=e.length;if(t){let s=e.codePointAt(r);for(;s===u0||s===a0;)r++,s=e.codePointAt(r)}if(n){let s=e.codePointAt(i-1);for(;s===u0||s===a0;)i--,s=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function Kk(e,t){const n={type:"text",value:Gk(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Xk(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const Jk={blockquote:Ak,break:wk,code:vk,delete:Ik,emphasis:Lk,footnoteReference:Ok,heading:Rk,html:Dk,imageReference:Pk,image:Mk,inlineCode:Fk,linkReference:Bk,link:jk,listItem:Uk,list:zk,paragraph:Yk,root:Vk,strong:$k,table:Wk,tableCell:qk,tableRow:Qk,text:Kk,thematicBreak:Xk,toml:Ks,yaml:Ks,definition:Ks,footnoteDefinition:Ks};function Ks(){}const m1=-1,ka=0,Vi=1,qu=2,Wc=3,Qc=4,qc=5,Gc=6,p1=7,g1=8,Zk=typeof self=="object"?self:globalThis,l0=(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 Zk[e](t)},e_=(e,t)=>{const n=(i,s)=>(e.set(s,i),i),r=i=>{if(e.has(i))return e.get(i);const[s,u]=t[i];switch(s){case ka:case m1:return n(u,i);case Vi:{const a=n([],i);for(const o of u)a.push(r(o));return a}case qu:{const a=n({},i);for(const[o,c]of u)a[r(o)]=r(c);return a}case Wc:return n(new Date(u),i);case Qc:{const{source:a,flags:o}=u;return n(new RegExp(a,o),i)}case qc:{const a=n(new Map,i);for(const[o,c]of u)a.set(r(o),r(c));return a}case Gc:{const a=n(new Set,i);for(const o of u)a.add(r(o));return a}case p1:{const{name:a,message:o}=u;return n(l0(a,o),i)}case g1:return n(BigInt(u),i);case"BigInt":return n(Object(BigInt(u)),i);case"ArrayBuffer":return n(new Uint8Array(u).buffer,u);case"DataView":{const{buffer:a}=new Uint8Array(u);return n(new DataView(a),u)}}return n(l0(s,u),i)};return r},c0=e=>e_(new Map,e)(0),Cr="",{toString:t_}={},{keys:n_}=Object,Ci=e=>{const t=typeof e;if(t!=="object"||!e)return[ka,t];const n=t_.call(e).slice(8,-1);switch(n){case"Array":return[Vi,Cr];case"Object":return[qu,Cr];case"Date":return[Wc,Cr];case"RegExp":return[Qc,Cr];case"Map":return[qc,Cr];case"Set":return[Gc,Cr];case"DataView":return[Vi,n]}return n.includes("Array")?[Vi,n]:n.includes("Error")?[p1,n]:[qu,n]},Xs=([e,t])=>e===ka&&(t==="function"||t==="symbol"),r_=(e,t,n,r)=>{const i=(u,a)=>{const o=r.push(u)-1;return n.set(a,o),o},s=u=>{if(n.has(u))return n.get(u);let[a,o]=Ci(u);switch(a){case ka:{let h=u;switch(o){case"bigint":a=g1,h=u.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+o);h=null;break;case"undefined":return i([m1],u)}return i([a,h],u)}case Vi:{if(o){let m=u;return o==="DataView"?m=new Uint8Array(u.buffer):o==="ArrayBuffer"&&(m=new Uint8Array(u)),i([o,[...m]],u)}const h=[],f=i([a,h],u);for(const m of u)h.push(s(m));return f}case qu:{if(o)switch(o){case"BigInt":return i([o,u.toString()],u);case"Boolean":case"Number":case"String":return i([o,u.valueOf()],u)}if(t&&"toJSON"in u)return s(u.toJSON());const h=[],f=i([a,h],u);for(const m of n_(u))(e||!Xs(Ci(u[m])))&&h.push([s(m),s(u[m])]);return f}case Wc:return i([a,u.toISOString()],u);case Qc:{const{source:h,flags:f}=u;return i([a,{source:h,flags:f}],u)}case qc:{const h=[],f=i([a,h],u);for(const[m,p]of u)(e||!(Xs(Ci(m))||Xs(Ci(p))))&&h.push([s(m),s(p)]);return f}case Gc:{const h=[],f=i([a,h],u);for(const m of u)(e||!Xs(Ci(m)))&&h.push(s(m));return f}}const{message:c}=u;return i([a,{name:o,message:c}],u)};return s},d0=(e,{json:t,lossy:n}={})=>{const r=[];return r_(!(t||n),!!t,new Map,r)(e),r},ni=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?c0(d0(e,t)):structuredClone(e):(e,t)=>c0(d0(e,t));function i_(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 s_(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function u_(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||i_,r=e.options.footnoteBackLabel||s_,i=e.options.footnoteLabel||"Footnotes",s=e.options.footnoteLabelTagName||"h2",u=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let o=-1;for(;++o<e.footnoteOrder.length;){const c=e.footnoteById.get(e.footnoteOrder[o]);if(!c)continue;const h=e.all(c),f=String(c.identifier).toUpperCase(),m=oi(f.toLowerCase());let p=0;const x=[],k=e.footnoteCounts.get(f);for(;k!==void 0&&++p<=k;){x.length>0&&x.push({type:"text",value:" "});let T=typeof n=="string"?n:n(o,p);typeof T=="string"&&(T={type:"text",value:T}),x.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+m+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(o,p),className:["data-footnote-backref"]},children:Array.isArray(T)?T:[T]})}const v=h[h.length-1];if(v&&v.type==="element"&&v.tagName==="p"){const T=v.children[v.children.length-1];T&&T.type==="text"?T.value+=" ":v.children.push({type:"text",value:" "}),v.children.push(...x)}else h.push(...x);const E={type:"element",tagName:"li",properties:{id:t+"fn-"+m},children:e.wrap(h,!0)};e.patch(c,E),a.push(E)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...ni(u),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
|
|
273
|
+
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:`
|
|
274
|
+
`}]}}const _a=function(e){if(e==null)return c_;if(typeof e=="function")return Na(e);if(typeof e=="object")return Array.isArray(e)?a_(e):o_(e);if(typeof e=="string")return l_(e);throw new Error("Expected function, string, or object as test")};function a_(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=_a(e[n]);return Na(r);function r(...i){let s=-1;for(;++s<t.length;)if(t[s].apply(this,i))return!0;return!1}}function o_(e){const t=e;return Na(n);function n(r){const i=r;let s;for(s in e)if(i[s]!==t[s])return!1;return!0}}function l_(e){return Na(t);function t(n){return n&&n.type===e}}function Na(e){return t;function t(n,r,i){return!!(d_(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function c_(){return!0}function d_(e){return e!==null&&typeof e=="object"&&"type"in e}const E1=[],f_=!0,Cl=!1,h_="skip";function x1(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const s=_a(i),u=r?-1:1;a(e,void 0,[])();function a(o,c,h){const f=o&&typeof o=="object"?o:{};if(typeof f.type=="string"){const p=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(m,"name",{value:"node ("+(o.type+(p?"<"+p+">":""))+")"})}return m;function m(){let p=E1,x,k,v;if((!t||s(o,c,h[h.length-1]||void 0))&&(p=m_(n(o,h)),p[0]===Cl))return p;if("children"in o&&o.children){const E=o;if(E.children&&p[0]!==h_)for(k=(r?E.children.length:-1)+u,v=h.concat(E);k>-1&&k<E.children.length;){const T=E.children[k];if(x=a(T,k,v)(),x[0]===Cl)return x;k=typeof x[1]=="number"?x[1]:k+u}}return p}}}function m_(e){return Array.isArray(e)?e:typeof e=="number"?[f_,e]:e==null?E1:[e]}function Ca(e,t,n,r){let i,s,u;typeof t=="function"&&typeof n!="function"?(s=void 0,u=t,i=n):(s=t,u=n,i=r),x1(e,s,a,i);function a(o,c){const h=c[c.length-1],f=h?h.children.indexOf(o):void 0;return u(o,f,h)}}const Sl={}.hasOwnProperty,p_={};function g_(e,t){const n=t||p_,r=new Map,i=new Map,s=new Map,u={...Jk,...n.handlers},a={all:c,applyData:x_,definitionById:r,footnoteById:i,footnoteCounts:s,footnoteOrder:[],handlers:u,one:o,options:n,patch:E_,wrap:T_};return Ca(e,function(h){if(h.type==="definition"||h.type==="footnoteDefinition"){const f=h.type==="definition"?r:i,m=String(h.identifier).toUpperCase();f.has(m)||f.set(m,h)}}),a;function o(h,f){const m=h.type,p=a.handlers[m];if(Sl.call(a.handlers,m)&&p)return p(a,h,f);if(a.options.passThrough&&a.options.passThrough.includes(m)){if("children"in h){const{children:k,...v}=h,E=ni(v);return E.children=a.all(h),E}return ni(h)}return(a.options.unknownHandler||b_)(a,h,f)}function c(h){const f=[];if("children"in h){const m=h.children;let p=-1;for(;++p<m.length;){const x=a.one(m[p],h);if(x){if(p&&m[p-1].type==="break"&&(!Array.isArray(x)&&x.type==="text"&&(x.value=f0(x.value)),!Array.isArray(x)&&x.type==="element")){const k=x.children[0];k&&k.type==="text"&&(k.value=f0(k.value))}Array.isArray(x)?f.push(...x):f.push(x)}}}return f}}function E_(e,t){e.position&&(t.position=iy(e))}function x_(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,s=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const u="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:u}}n.type==="element"&&s&&Object.assign(n.properties,ni(s)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function b_(e,t){const n=t.data||{},r="value"in t&&!(Sl.call(n,"hProperties")||Sl.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function T_(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
|
|
275
|
+
`});++r<e.length;)r&&n.push({type:"text",value:`
|
|
276
|
+
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
|
|
277
|
+
`}),n}function f0(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function h0(e,t){const n=g_(e,t),r=n.one(e,void 0),i=u_(n),s=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&s.children.push({type:"text",value:`
|
|
278
|
+
`},i),s}function y_(e,t){return e&&"run"in e?async function(n,r){const i=h0(n,{file:r,...t});await e.run(i,r)}:function(n,r){return h0(n,{file:r,...e||t})}}function m0(e){if(e)throw e}var gu=Object.prototype.hasOwnProperty,b1=Object.prototype.toString,p0=Object.defineProperty,g0=Object.getOwnPropertyDescriptor,E0=function(t){return typeof Array.isArray=="function"?Array.isArray(t):b1.call(t)==="[object Array]"},x0=function(t){if(!t||b1.call(t)!=="[object Object]")return!1;var n=gu.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&gu.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||gu.call(t,i)},b0=function(t,n){p0&&n.name==="__proto__"?p0(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},T0=function(t,n){if(n==="__proto__")if(gu.call(t,n)){if(g0)return g0(t,n).value}else return;return t[n]},k_=function e(){var t,n,r,i,s,u,a=arguments[0],o=1,c=arguments.length,h=!1;for(typeof a=="boolean"&&(h=a,a=arguments[1]||{},o=2),(a==null||typeof a!="object"&&typeof a!="function")&&(a={});o<c;++o)if(t=arguments[o],t!=null)for(n in t)r=T0(a,n),i=T0(t,n),a!==i&&(h&&i&&(x0(i)||(s=E0(i)))?(s?(s=!1,u=r&&E0(r)?r:[]):u=r&&x0(r)?r:{},b0(a,{name:n,newValue:e(h,u,i)})):typeof i<"u"&&b0(a,{name:n,newValue:i}));return a};const oo=Pl(k_);function Al(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 __(){const e=[],t={run:n,use:r};return t;function n(...i){let s=-1;const u=i.pop();if(typeof u!="function")throw new TypeError("Expected function as last argument, not "+u);a(null,...i);function a(o,...c){const h=e[++s];let f=-1;if(o){u(o);return}for(;++f<i.length;)(c[f]===null||c[f]===void 0)&&(c[f]=i[f]);i=c,h?N_(h,a)(...c):u(null,...c)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function N_(e,t){let n;return r;function r(...u){const a=e.length>u.length;let o;a&&u.push(i);try{o=e.apply(this,u)}catch(c){const h=c;if(a&&n)throw h;return i(h)}a||(o&&o.then&&typeof o.then=="function"?o.then(s,i):o instanceof Error?i(o):s(o))}function i(u,...a){n||(n=!0,t(u,...a))}function s(u){i(null,u)}}const qt={basename:C_,dirname:S_,extname:A_,join:w_,sep:"/"};function C_(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');ws(e);let n=0,r=-1,i=e.length,s;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(s){n=i+1;break}}else r<0&&(s=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let u=-1,a=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(s){n=i+1;break}}else u<0&&(s=!0,u=i+1),a>-1&&(e.codePointAt(i)===t.codePointAt(a--)?a<0&&(r=i):(a=-1,r=u));return n===r?r=u:r<0&&(r=e.length),e.slice(n,r)}function S_(e){if(ws(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function A_(e){ws(e);let t=e.length,n=-1,r=0,i=-1,s=0,u;for(;t--;){const a=e.codePointAt(t);if(a===47){if(u){r=t+1;break}continue}n<0&&(u=!0,n=t+1),a===46?i<0?i=t:s!==1&&(s=1):i>-1&&(s=-1)}return i<0||n<0||s===0||s===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function w_(...e){let t=-1,n;for(;++t<e.length;)ws(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":v_(n)}function v_(e){ws(e);const t=e.codePointAt(0)===47;let n=I_(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function I_(e,t){let n="",r=0,i=-1,s=0,u=-1,a,o;for(;++u<=e.length;){if(u<e.length)a=e.codePointAt(u);else{if(a===47)break;a=47}if(a===47){if(!(i===u-1||s===1))if(i!==u-1&&s===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(o=n.lastIndexOf("/"),o!==n.length-1){o<0?(n="",r=0):(n=n.slice(0,o),r=n.length-1-n.lastIndexOf("/")),i=u,s=0;continue}}else if(n.length>0){n="",r=0,i=u,s=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,u):n=e.slice(i+1,u),r=u-i-1;i=u,s=0}else a===46&&s>-1?s++:s=-1}return n}function ws(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const L_={cwd:O_};function O_(){return"/"}function wl(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function R_(e){if(typeof e=="string")e=new URL(e);else if(!wl(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 D_(e)}function D_(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const lo=["history","path","basename","stem","extname","dirname"];class T1{constructor(t){let n;t?wl(t)?n={path:t}:typeof t=="string"||P_(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":L_.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<lo.length;){const s=lo[r];s in n&&n[s]!==void 0&&n[s]!==null&&(this[s]=s==="history"?[...n[s]]:n[s])}let i;for(i in n)lo.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?qt.basename(this.path):void 0}set basename(t){fo(t,"basename"),co(t,"basename"),this.path=qt.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?qt.dirname(this.path):void 0}set dirname(t){y0(this.basename,"dirname"),this.path=qt.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?qt.extname(this.path):void 0}set extname(t){if(co(t,"extname"),y0(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=qt.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){wl(t)&&(t=R_(t)),fo(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?qt.basename(this.path,this.extname):void 0}set stem(t){fo(t,"stem"),co(t,"stem"),this.path=qt.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new et(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function co(e,t){if(e&&e.includes(qt.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+qt.sep+"`")}function fo(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function y0(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function P_(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const M_=function(e){const r=this.constructor.prototype,i=r[e],s=function(){return i.apply(s,arguments)};return Object.setPrototypeOf(s,r),s},F_={}.hasOwnProperty;class Kc extends M_{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=__()}copy(){const t=new Kc;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(oo(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(po("data",this.frozen),this.namespace[t]=n,this):F_.call(this.namespace,t)&&this.namespace[t]||void 0:t?(po("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,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Js(t),r=this.parser||this.Parser;return ho("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),ho("process",this.parser||this.Parser),mo("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(s,u){const a=Js(t),o=r.parse(a);r.run(o,a,function(h,f,m){if(h||!f||!m)return c(h);const p=f,x=r.stringify(p,m);U_(x)?m.value=x:m.result=x,c(h,m)});function c(h,f){h||!f?u(h):s?s(f):n(void 0,f)}}}processSync(t){let n=!1,r;return this.freeze(),ho("processSync",this.parser||this.Parser),mo("processSync",this.compiler||this.Compiler),this.process(t,i),_0("processSync","process",n),r;function i(s,u){n=!0,m0(s),r=u}}run(t,n,r){k0(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?s(void 0,r):new Promise(s);function s(u,a){const o=Js(n);i.run(t,o,c);function c(h,f,m){const p=f||t;h?a(h):u?u(p):r(void 0,p,m)}}}runSync(t,n){let r=!1,i;return this.run(t,n,s),_0("runSync","run",r),i;function s(u,a){m0(u),i=a,r=!0}}stringify(t,n){this.freeze();const r=Js(n),i=this.compiler||this.Compiler;return mo("stringify",i),k0(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(po("use",this.frozen),t!=null)if(typeof t=="function")o(t,n);else if(typeof t=="object")Array.isArray(t)?a(t):u(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function s(c){if(typeof c=="function")o(c,[]);else if(typeof c=="object")if(Array.isArray(c)){const[h,...f]=c;o(h,f)}else u(c);else throw new TypeError("Expected usable value, not `"+c+"`")}function u(c){if(!("plugins"in c)&&!("settings"in c))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");a(c.plugins),c.settings&&(i.settings=oo(!0,i.settings,c.settings))}function a(c){let h=-1;if(c!=null)if(Array.isArray(c))for(;++h<c.length;){const f=c[h];s(f)}else throw new TypeError("Expected a list of plugins, not `"+c+"`")}function o(c,h){let f=-1,m=-1;for(;++f<r.length;)if(r[f][0]===c){m=f;break}if(m===-1)r.push([c,...h]);else if(h.length>0){let[p,...x]=h;const k=r[m][1];Al(k)&&Al(p)&&(p=oo(!0,k,p)),r[m]=[c,p,...x]}}}}const B_=new Kc().freeze();function ho(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function mo(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function po(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 k0(e){if(!Al(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function _0(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Js(e){return j_(e)?e:new T1(e)}function j_(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function U_(e){return typeof e=="string"||H_(e)}function H_(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const z_="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",N0=[],C0={allowDangerousHtml:!0},Y_=/^(https?|ircs?|mailto|xmpp)$/i,V_=[{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 $_(e){const t=W_(e),n=Q_(e);return q_(t.runSync(t.parse(n),n),e)}function W_(e){const t=e.rehypePlugins||N0,n=e.remarkPlugins||N0,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...C0}:C0;return B_().use(Sk).use(n).use(y_,r).use(t)}function Q_(e){const t=e.children||"",n=new T1;return typeof t=="string"&&(n.value=t),n}function q_(e,t){const n=t.allowedElements,r=t.allowElement,i=t.components,s=t.disallowedElements,u=t.skipHtml,a=t.unwrapDisallowed,o=t.urlTransform||G_;for(const h of V_)Object.hasOwn(t,h.from)&&(""+h.from+(h.to?"use `"+h.to+"` instead":"remove it")+z_+h.id,void 0);return Ca(e,c),ly(e,{Fragment:d.Fragment,components:i,ignoreInvalidStyle:!0,jsx:d.jsx,jsxs:d.jsxs,passKeys:!0,passNode:!0});function c(h,f,m){if(h.type==="raw"&&m&&typeof f=="number")return u?m.children.splice(f,1):m.children[f]={type:"text",value:h.value},f;if(h.type==="element"){let p;for(p in so)if(Object.hasOwn(so,p)&&Object.hasOwn(h.properties,p)){const x=h.properties[p],k=so[p];(k===null||k.includes(h.tagName))&&(h.properties[p]=o(String(x||""),p,h))}}if(h.type==="element"){let p=n?!n.includes(h.tagName):s?s.includes(h.tagName):!1;if(!p&&r&&typeof f=="number"&&(p=!r(h,f,m)),p&&m&&typeof f=="number")return a&&h.children?m.children.splice(f,1,...h.children):m.children.splice(f,1),f}}}function G_(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||Y_.test(e.slice(0,t))?e:""}function S0(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function K_(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function X_(e,t,n){const i=_a((n||{}).ignore||[]),s=J_(t);let u=-1;for(;++u<s.length;)x1(e,"text",a);function a(c,h){let f=-1,m;for(;++f<h.length;){const p=h[f],x=m?m.children:void 0;if(i(p,x?x.indexOf(p):void 0,m))return;m=p}if(m)return o(c,h)}function o(c,h){const f=h[h.length-1],m=s[u][0],p=s[u][1];let x=0;const v=f.children.indexOf(c);let E=!1,T=[];m.lastIndex=0;let g=m.exec(c.value);for(;g;){const w=g.index,O={index:g.index,input:g.input,stack:[...h,c]};let N=p(...g,O);if(typeof N=="string"&&(N=N.length>0?{type:"text",value:N}:void 0),N===!1?m.lastIndex=w+1:(x!==w&&T.push({type:"text",value:c.value.slice(x,w)}),Array.isArray(N)?T.push(...N):N&&T.push(N),x=w+g[0].length,E=!0),!m.global)break;g=m.exec(c.value)}return E?(x<c.value.length&&T.push({type:"text",value:c.value.slice(x)}),f.children.splice(v,1,...T)):T=[c],v+T.length}}function J_(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 r=-1;for(;++r<n.length;){const i=n[r];t.push([Z_(i[0]),eN(i[1])])}return t}function Z_(e){return typeof e=="string"?new RegExp(K_(e),"g"):e}function eN(e){return typeof e=="function"?e:function(){return e}}const go="phrasing",Eo=["autolink","link","image","label"];function tN(){return{transforms:[oN],enter:{literalAutolink:rN,literalAutolinkEmail:xo,literalAutolinkHttp:xo,literalAutolinkWww:xo},exit:{literalAutolink:aN,literalAutolinkEmail:uN,literalAutolinkHttp:iN,literalAutolinkWww:sN}}}function nN(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:go,notInConstruct:Eo},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:go,notInConstruct:Eo},{character:":",before:"[ps]",after:"\\/",inConstruct:go,notInConstruct:Eo}]}}function rN(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function xo(e){this.config.enter.autolinkProtocol.call(this,e)}function iN(e){this.config.exit.autolinkProtocol.call(this,e)}function sN(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 uN(e){this.config.exit.autolinkEmail.call(this,e)}function aN(e){this.exit(e)}function oN(e){X_(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,lN],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),cN]],{ignore:["link","linkReference"]})}function lN(e,t,n,r,i){let s="";if(!y1(i)||(/^w/i.test(t)&&(n=t+n,t="",s="http://"),!dN(n)))return!1;const u=fN(n+r);if(!u[0])return!1;const a={type:"link",title:null,url:s+t+u[0],children:[{type:"text",value:t+u[0]}]};return u[1]?[a,{type:"text",value:u[1]}]:a}function cN(e,t,n,r){return!y1(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function dN(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 fN(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=S0(e,"(");let s=S0(e,")");for(;r!==-1&&i>s;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),s++;return[e,n]}function y1(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||mr(n)||Ta(n))&&(!t||n!==47)}k1.peek=yN;function hN(){this.buffer()}function mN(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function pN(){this.buffer()}function gN(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function EN(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Ht(this.sliceSerialize(e)).toLowerCase(),n.label=t}function xN(e){this.exit(e)}function bN(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Ht(this.sliceSerialize(e)).toLowerCase(),n.label=t}function TN(e){this.exit(e)}function yN(){return"["}function k1(e,t,n,r){const i=n.createTracker(r);let s=i.move("[^");const u=n.enter("footnoteReference"),a=n.enter("reference");return s+=i.move(n.safe(n.associationId(e),{after:"]",before:s})),a(),u(),s+=i.move("]"),s}function kN(){return{enter:{gfmFootnoteCallString:hN,gfmFootnoteCall:mN,gfmFootnoteDefinitionLabelString:pN,gfmFootnoteDefinition:gN},exit:{gfmFootnoteCallString:EN,gfmFootnoteCall:xN,gfmFootnoteDefinitionLabelString:bN,gfmFootnoteDefinition:TN}}}function _N(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:k1},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,s,u){const a=s.createTracker(u);let o=a.move("[^");const c=s.enter("footnoteDefinition"),h=s.enter("label");return o+=a.move(s.safe(s.associationId(r),{before:o,after:"]"})),h(),o+=a.move("]:"),r.children&&r.children.length>0&&(a.shift(4),o+=a.move((t?`
|
|
279
|
+
`:" ")+s.indentLines(s.containerFlow(r,a.current()),t?_1:NN))),c(),o}}function NN(e,t,n){return t===0?e:_1(e,t,n)}function _1(e,t,n){return(n?"":" ")+e}const CN=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];N1.peek=IN;function SN(){return{canContainEols:["delete"],enter:{strikethrough:wN},exit:{strikethrough:vN}}}function AN(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:CN}],handlers:{delete:N1}}}function wN(e){this.enter({type:"delete",children:[]},e)}function vN(e){this.exit(e)}function N1(e,t,n,r){const i=n.createTracker(r),s=n.enter("strikethrough");let u=i.move("~~");return u+=n.containerPhrasing(e,{...i.current(),before:u,after:"~"}),u+=i.move("~~"),s(),u}function IN(){return"~"}function LN(e){return e.length}function ON(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||LN,s=[],u=[],a=[],o=[];let c=0,h=-1;for(;++h<e.length;){const k=[],v=[];let E=-1;for(e[h].length>c&&(c=e[h].length);++E<e[h].length;){const T=RN(e[h][E]);if(n.alignDelimiters!==!1){const g=i(T);v[E]=g,(o[E]===void 0||g>o[E])&&(o[E]=g)}k.push(T)}u[h]=k,a[h]=v}let f=-1;if(typeof r=="object"&&"length"in r)for(;++f<c;)s[f]=A0(r[f]);else{const k=A0(r);for(;++f<c;)s[f]=k}f=-1;const m=[],p=[];for(;++f<c;){const k=s[f];let v="",E="";k===99?(v=":",E=":"):k===108?v=":":k===114&&(E=":");let T=n.alignDelimiters===!1?1:Math.max(1,o[f]-v.length-E.length);const g=v+"-".repeat(T)+E;n.alignDelimiters!==!1&&(T=v.length+T+E.length,T>o[f]&&(o[f]=T),p[f]=T),m[f]=g}u.splice(1,0,m),a.splice(1,0,p),h=-1;const x=[];for(;++h<u.length;){const k=u[h],v=a[h];f=-1;const E=[];for(;++f<c;){const T=k[f]||"";let g="",w="";if(n.alignDelimiters!==!1){const O=o[f]-(v[f]||0),N=s[f];N===114?g=" ".repeat(O):N===99?O%2?(g=" ".repeat(O/2+.5),w=" ".repeat(O/2-.5)):(g=" ".repeat(O/2),w=g):w=" ".repeat(O)}n.delimiterStart!==!1&&!f&&E.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&T==="")&&(n.delimiterStart!==!1||f)&&E.push(" "),n.alignDelimiters!==!1&&E.push(g),E.push(T),n.alignDelimiters!==!1&&E.push(w),n.padding!==!1&&E.push(" "),(n.delimiterEnd!==!1||f!==c-1)&&E.push("|")}x.push(n.delimiterEnd===!1?E.join("").replace(/ +$/,""):E.join(""))}return x.join(`
|
|
280
|
+
`)}function RN(e){return e==null?"":String(e)}function A0(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}const w0={}.hasOwnProperty;function C1(e,t){const n=t||{};function r(i,...s){let u=r.invalid;const a=r.handlers;if(i&&w0.call(i,e)){const o=String(i[e]);u=w0.call(a,o)?a[o]:r.unknown}if(u)return u.call(this,i,...s)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}function DN(e,t,n,r){const i=n.enter("blockquote"),s=n.createTracker(r);s.move("> "),s.shift(2);const u=n.indentLines(n.containerFlow(e,s.current()),PN);return i(),u}function PN(e,t,n){return">"+(n?"":" ")+e}function MN(e,t){return v0(e,t.inConstruct,!0)&&!v0(e,t.notInConstruct,!1)}function v0(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function I0(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
|
|
281
|
+
`&&MN(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
|
|
282
|
+
`}function FN(e,t){const n=String(e);let r=n.indexOf(t),i=r,s=0,u=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++s>u&&(u=s):s=1,i=r+t.length,r=n.indexOf(t,i);return u}function BN(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 jN(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 UN(e,t,n,r){const i=jN(n),s=e.value||"",u=i==="`"?"GraveAccent":"Tilde";if(BN(e,n)){const f=n.enter("codeIndented"),m=n.indentLines(s,HN);return f(),m}const a=n.createTracker(r),o=i.repeat(Math.max(FN(s,i)+1,3)),c=n.enter("codeFenced");let h=a.move(o);if(e.lang){const f=n.enter(`codeFencedLang${u}`);h+=a.move(n.safe(e.lang,{before:h,after:" ",encode:["`"],...a.current()})),f()}if(e.lang&&e.meta){const f=n.enter(`codeFencedMeta${u}`);h+=a.move(" "),h+=a.move(n.safe(e.meta,{before:h,after:`
|
|
283
|
+
`,encode:["`"],...a.current()})),f()}return h+=a.move(`
|
|
284
|
+
`),s&&(h+=a.move(s+`
|
|
285
|
+
`)),h+=a.move(o),c(),h}function HN(e,t,n){return(n?"":" ")+e}function Xc(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 zN(e,t,n,r){const i=Xc(n),s=i==='"'?"Quote":"Apostrophe",u=n.enter("definition");let a=n.enter("label");const o=n.createTracker(r);let c=o.move("[");return c+=o.move(n.safe(n.associationId(e),{before:c,after:"]",...o.current()})),c+=o.move("]: "),a(),!e.url||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),c+=o.move("<"),c+=o.move(n.safe(e.url,{before:c,after:">",...o.current()})),c+=o.move(">")):(a=n.enter("destinationRaw"),c+=o.move(n.safe(e.url,{before:c,after:e.title?" ":`
|
|
286
|
+
`,...o.current()}))),a(),e.title&&(a=n.enter(`title${s}`),c+=o.move(" "+i),c+=o.move(n.safe(e.title,{before:c,after:i,...o.current()})),c+=o.move(i),a()),u(),c}function YN(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 Es(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Gu(e,t,n){const r=ti(e),i=ti(t);return r===void 0?i===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}S1.peek=VN;function S1(e,t,n,r){const i=YN(n),s=n.enter("emphasis"),u=n.createTracker(r),a=u.move(i);let o=u.move(n.containerPhrasing(e,{after:i,before:a,...u.current()}));const c=o.charCodeAt(0),h=Gu(r.before.charCodeAt(r.before.length-1),c,i);h.inside&&(o=Es(c)+o.slice(1));const f=o.charCodeAt(o.length-1),m=Gu(r.after.charCodeAt(0),f,i);m.inside&&(o=o.slice(0,-1)+Es(f));const p=u.move(i);return s(),n.attentionEncodeSurroundingInfo={after:m.outside,before:h.outside},a+o+p}function VN(e,t,n){return n.options.emphasis||"*"}function $N(e,t){let n=!1;return Ca(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,Cl}),!!((!e.depth||e.depth<3)&&Yc(e)&&(t.options.setext||n))}function WN(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),s=n.createTracker(r);if($N(e,n)){const h=n.enter("headingSetext"),f=n.enter("phrasing"),m=n.containerPhrasing(e,{...s.current(),before:`
|
|
287
|
+
`,after:`
|
|
288
|
+
`});return f(),h(),m+`
|
|
289
|
+
`+(i===1?"=":"-").repeat(m.length-(Math.max(m.lastIndexOf("\r"),m.lastIndexOf(`
|
|
290
|
+
`))+1))}const u="#".repeat(i),a=n.enter("headingAtx"),o=n.enter("phrasing");s.move(u+" ");let c=n.containerPhrasing(e,{before:"# ",after:`
|
|
291
|
+
`,...s.current()});return/^[\t ]/.test(c)&&(c=Es(c.charCodeAt(0))+c.slice(1)),c=c?u+" "+c:u,n.options.closeAtx&&(c+=" "+u),o(),a(),c}A1.peek=QN;function A1(e){return e.value||""}function QN(){return"<"}w1.peek=qN;function w1(e,t,n,r){const i=Xc(n),s=i==='"'?"Quote":"Apostrophe",u=n.enter("image");let a=n.enter("label");const o=n.createTracker(r);let c=o.move("![");return c+=o.move(n.safe(e.alt,{before:c,after:"]",...o.current()})),c+=o.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),c+=o.move("<"),c+=o.move(n.safe(e.url,{before:c,after:">",...o.current()})),c+=o.move(">")):(a=n.enter("destinationRaw"),c+=o.move(n.safe(e.url,{before:c,after:e.title?" ":")",...o.current()}))),a(),e.title&&(a=n.enter(`title${s}`),c+=o.move(" "+i),c+=o.move(n.safe(e.title,{before:c,after:i,...o.current()})),c+=o.move(i),a()),c+=o.move(")"),u(),c}function qN(){return"!"}v1.peek=GN;function v1(e,t,n,r){const i=e.referenceType,s=n.enter("imageReference");let u=n.enter("label");const a=n.createTracker(r);let o=a.move("![");const c=n.safe(e.alt,{before:o,after:"]",...a.current()});o+=a.move(c+"]["),u();const h=n.stack;n.stack=[],u=n.enter("reference");const f=n.safe(n.associationId(e),{before:o,after:"]",...a.current()});return u(),n.stack=h,s(),i==="full"||!c||c!==f?o+=a.move(f+"]"):i==="shortcut"?o=o.slice(0,-1):o+=a.move("]"),o}function GN(){return"!"}I1.peek=KN;function I1(e,t,n){let r=e.value||"",i="`",s=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++s<n.unsafe.length;){const u=n.unsafe[s],a=n.compilePattern(u);let o;if(u.atBreak)for(;o=a.exec(r);){let c=o.index;r.charCodeAt(c)===10&&r.charCodeAt(c-1)===13&&c--,r=r.slice(0,c)+" "+r.slice(o.index+1)}}return i+r+i}function KN(){return"`"}function L1(e,t){const n=Yc(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))}O1.peek=XN;function O1(e,t,n,r){const i=Xc(n),s=i==='"'?"Quote":"Apostrophe",u=n.createTracker(r);let a,o;if(L1(e,n)){const h=n.stack;n.stack=[],a=n.enter("autolink");let f=u.move("<");return f+=u.move(n.containerPhrasing(e,{before:f,after:">",...u.current()})),f+=u.move(">"),a(),n.stack=h,f}a=n.enter("link"),o=n.enter("label");let c=u.move("[");return c+=u.move(n.containerPhrasing(e,{before:c,after:"](",...u.current()})),c+=u.move("]("),o(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),c+=u.move("<"),c+=u.move(n.safe(e.url,{before:c,after:">",...u.current()})),c+=u.move(">")):(o=n.enter("destinationRaw"),c+=u.move(n.safe(e.url,{before:c,after:e.title?" ":")",...u.current()}))),o(),e.title&&(o=n.enter(`title${s}`),c+=u.move(" "+i),c+=u.move(n.safe(e.title,{before:c,after:i,...u.current()})),c+=u.move(i),o()),c+=u.move(")"),a(),c}function XN(e,t,n){return L1(e,n)?"<":"["}R1.peek=JN;function R1(e,t,n,r){const i=e.referenceType,s=n.enter("linkReference");let u=n.enter("label");const a=n.createTracker(r);let o=a.move("[");const c=n.containerPhrasing(e,{before:o,after:"]",...a.current()});o+=a.move(c+"]["),u();const h=n.stack;n.stack=[],u=n.enter("reference");const f=n.safe(n.associationId(e),{before:o,after:"]",...a.current()});return u(),n.stack=h,s(),i==="full"||!c||c!==f?o+=a.move(f+"]"):i==="shortcut"?o=o.slice(0,-1):o+=a.move("]"),o}function JN(){return"["}function Jc(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 ZN(e){const t=Jc(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 eC(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 D1(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 tC(e,t,n,r){const i=n.enter("list"),s=n.bulletCurrent;let u=e.ordered?eC(n):Jc(n);const a=e.ordered?u==="."?")":".":ZN(n);let o=t&&n.bulletLastUsed?u===n.bulletLastUsed:!1;if(!e.ordered){const h=e.children?e.children[0]:void 0;if((u==="*"||u==="-")&&h&&(!h.children||!h.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&&(o=!0),D1(n)===u&&h){let f=-1;for(;++f<e.children.length;){const m=e.children[f];if(m&&m.type==="listItem"&&m.children&&m.children[0]&&m.children[0].type==="thematicBreak"){o=!0;break}}}}o&&(u=a),n.bulletCurrent=u;const c=n.containerFlow(e,r);return n.bulletLastUsed=u,n.bulletCurrent=s,i(),c}function nC(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 rC(e,t,n,r){const i=nC(n);let s=n.bulletCurrent||Jc(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;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(u=Math.ceil(u/4)*4);const a=n.createTracker(r);a.move(s+" ".repeat(u-s.length)),a.shift(u);const o=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,a.current()),h);return o(),c;function h(f,m,p){return m?(p?"":" ".repeat(u))+f:(p?s:s+" ".repeat(u-s.length))+f}}function iC(e,t,n,r){const i=n.enter("paragraph"),s=n.enter("phrasing"),u=n.containerPhrasing(e,r);return s(),i(),u}const sC=_a(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function uC(e,t,n,r){return(e.children.some(function(u){return sC(u)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function aC(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}P1.peek=oC;function P1(e,t,n,r){const i=aC(n),s=n.enter("strong"),u=n.createTracker(r),a=u.move(i+i);let o=u.move(n.containerPhrasing(e,{after:i,before:a,...u.current()}));const c=o.charCodeAt(0),h=Gu(r.before.charCodeAt(r.before.length-1),c,i);h.inside&&(o=Es(c)+o.slice(1));const f=o.charCodeAt(o.length-1),m=Gu(r.after.charCodeAt(0),f,i);m.inside&&(o=o.slice(0,-1)+Es(f));const p=u.move(i+i);return s(),n.attentionEncodeSurroundingInfo={after:m.outside,before:h.outside},a+o+p}function oC(e,t,n){return n.options.strong||"*"}function lC(e,t,n,r){return n.safe(e.value,r)}function cC(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 dC(e,t,n){const r=(D1(n)+(n.options.ruleSpaces?" ":"")).repeat(cC(n));return n.options.ruleSpaces?r.slice(0,-1):r}const M1={blockquote:DN,break:I0,code:UN,definition:zN,emphasis:S1,hardBreak:I0,heading:WN,html:A1,image:w1,imageReference:v1,inlineCode:I1,link:O1,linkReference:R1,list:tC,listItem:rC,paragraph:iC,root:uC,strong:P1,text:lC,thematicBreak:dC};function fC(){return{enter:{table:hC,tableData:L0,tableHeader:L0,tableRow:pC},exit:{codeText:gC,table:mC,tableData:bo,tableHeader:bo,tableRow:bo}}}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 mC(e){this.exit(e),this.data.inTable=void 0}function pC(e){this.enter({type:"tableRow",children:[]},e)}function bo(e){this.exit(e)}function L0(e){this.enter({type:"tableCell",children:[]},e)}function gC(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,EC));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function EC(e,t){return t==="|"?t:e}function xC(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,s=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
292
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:m,table:u,tableCell:o,tableRow:a}};function u(p,x,k,v){return c(h(p,k,v),p.align)}function a(p,x,k,v){const E=f(p,k,v),T=c([E]);return T.slice(0,T.indexOf(`
|
|
293
|
+
`))}function o(p,x,k,v){const E=k.enter("tableCell"),T=k.enter("phrasing"),g=k.containerPhrasing(p,{...v,before:s,after:s});return T(),E(),g}function c(p,x){return ON(p,{align:x,alignDelimiters:r,padding:n,stringLength:i})}function h(p,x,k){const v=p.children;let E=-1;const T=[],g=x.enter("table");for(;++E<v.length;)T[E]=f(v[E],x,k);return g(),T}function f(p,x,k){const v=p.children;let E=-1;const T=[],g=x.enter("tableRow");for(;++E<v.length;)T[E]=o(v[E],p,x,k);return g(),T}function m(p,x,k){let v=M1.inlineCode(p,x,k);return k.stack.includes("tableCell")&&(v=v.replace(/\|/g,"\\$&")),v}}function bC(){return{exit:{taskListCheckValueChecked:O0,taskListCheckValueUnchecked:O0,paragraph:yC}}}function TC(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:kC}}}function O0(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function yC(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 r=n.children[0];if(r&&r.type==="text"){const i=t.children;let s=-1,u;for(;++s<i.length;){const a=i[s];if(a.type==="paragraph"){u=a;break}}u===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function kC(e,t,n,r){const i=e.children[0],s=typeof e.checked=="boolean"&&i&&i.type==="paragraph",u="["+(e.checked?"x":" ")+"] ",a=n.createTracker(r);s&&a.move(u);let o=M1.listItem(e,t,n,{...r,...a.current()});return s&&(o=o.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,c)),o;function c(h){return h+u}}function _C(){return[tN(),kN(),SN(),fC(),bC()]}function NC(e){return{extensions:[nN(),_N(e),AN(),xC(e),TC()]}}const CC={tokenize:LC,partial:!0},F1={tokenize:OC,partial:!0},B1={tokenize:RC,partial:!0},j1={tokenize:DC,partial:!0},SC={tokenize:PC,partial:!0},U1={name:"wwwAutolink",tokenize:vC,previous:z1},H1={name:"protocolAutolink",tokenize:IC,previous:Y1},xn={name:"emailAutolink",tokenize:wC,previous:V1},en={};function AC(){return{text:en}}let Xn=48;for(;Xn<123;)en[Xn]=xn,Xn++,Xn===58?Xn=65:Xn===91&&(Xn=97);en[43]=xn;en[45]=xn;en[46]=xn;en[95]=xn;en[72]=[xn,H1];en[104]=[xn,H1];en[87]=[xn,U1];en[119]=[xn,U1];function wC(e,t,n){const r=this;let i,s;return u;function u(f){return!vl(f)||!V1.call(r,r.previous)||Zc(r.events)?n(f):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(f))}function a(f){return vl(f)?(e.consume(f),a):f===64?(e.consume(f),o):n(f)}function o(f){return f===46?e.check(SC,h,c)(f):f===45||f===95||Je(f)?(s=!0,e.consume(f),o):h(f)}function c(f){return e.consume(f),i=!0,o}function h(f){return s&&i&&it(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(f)):n(f)}}function vC(e,t,n){const r=this;return i;function i(u){return u!==87&&u!==119||!z1.call(r,r.previous)||Zc(r.events)?n(u):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(CC,e.attempt(F1,e.attempt(B1,s),n),n)(u))}function s(u){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(u)}}function IC(e,t,n){const r=this;let i="",s=!1;return u;function u(f){return(f===72||f===104)&&Y1.call(r,r.previous)&&!Zc(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(f),e.consume(f),a):n(f)}function a(f){if(it(f)&&i.length<5)return i+=String.fromCodePoint(f),e.consume(f),a;if(f===58){const m=i.toLowerCase();if(m==="http"||m==="https")return e.consume(f),o}return n(f)}function o(f){return f===47?(e.consume(f),s?c:(s=!0,o)):n(f)}function c(f){return f===null||Qu(f)||ke(f)||mr(f)||Ta(f)?n(f):e.attempt(F1,e.attempt(B1,h),n)(f)}function h(f){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(f)}}function LC(e,t,n){let r=0;return i;function i(u){return(u===87||u===119)&&r<3?(r++,e.consume(u),i):u===46&&r===3?(e.consume(u),s):n(u)}function s(u){return u===null?n(u):t(u)}}function OC(e,t,n){let r,i,s;return u;function u(c){return c===46||c===95?e.check(j1,o,a)(c):c===null||ke(c)||mr(c)||c!==45&&Ta(c)?o(c):(s=!0,e.consume(c),u)}function a(c){return c===95?r=!0:(i=r,r=void 0),e.consume(c),u}function o(c){return i||r||!s?n(c):t(c)}}function RC(e,t){let n=0,r=0;return i;function i(u){return u===40?(n++,e.consume(u),i):u===41&&r<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(j1,t,s)(u):u===null||ke(u)||mr(u)?t(u):(e.consume(u),i)}function s(u){return u===41&&r++,e.consume(u),i}}function DC(e,t,n){return r;function r(a){return a===33||a===34||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===63||a===95||a===126?(e.consume(a),r):a===38?(e.consume(a),s):a===93?(e.consume(a),i):a===60||a===null||ke(a)||mr(a)?t(a):n(a)}function i(a){return a===null||a===40||a===91||ke(a)||mr(a)?t(a):r(a)}function s(a){return it(a)?u(a):n(a)}function u(a){return a===59?(e.consume(a),r):it(a)?(e.consume(a),u):n(a)}}function PC(e,t,n){return r;function r(s){return e.consume(s),i}function i(s){return Je(s)?n(s):t(s)}}function z1(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||ke(e)}function Y1(e){return!it(e)}function V1(e){return!(e===47||vl(e))}function vl(e){return e===43||e===45||e===46||e===95||Je(e)}function Zc(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const MC={tokenize:VC,partial:!0};function FC(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:HC,continuation:{tokenize:zC},exit:YC}},text:{91:{name:"gfmFootnoteCall",tokenize:UC},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:BC,resolveTo:jC}}}}function BC(e,t,n){const r=this;let i=r.events.length;const s=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let u;for(;i--;){const o=r.events[i][1];if(o.type==="labelImage"){u=o;break}if(o.type==="gfmFootnoteCall"||o.type==="labelLink"||o.type==="label"||o.type==="image"||o.type==="link")break}return a;function a(o){if(!u||!u._balanced)return n(o);const c=Ht(r.sliceSerialize({start:u.end,end:r.now()}));return c.codePointAt(0)!==94||!s.includes(c.slice(1))?n(o):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(o),e.exit("gfmFootnoteCallLabelMarker"),t(o))}}function jC(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 r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const s={type:"gfmFootnoteCallString",start:Object.assign({},i.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)},a=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",s,t],["enter",u,t],["exit",u,t],["exit",s,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...a),e}function UC(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s=0,u;return a;function a(f){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),o}function o(f){return f!==94?n(f):(e.enter("gfmFootnoteCallMarker"),e.consume(f),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(f){if(s>999||f===93&&!u||f===null||f===91||ke(f))return n(f);if(f===93){e.exit("chunkString");const m=e.exit("gfmFootnoteCallString");return i.includes(Ht(r.sliceSerialize(m)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(f)}return ke(f)||(u=!0),s++,e.consume(f),f===92?h:c}function h(f){return f===91||f===92||f===93?(e.consume(f),s++,c):c(f)}}function HC(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s,u=0,a;return o;function o(x){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(x),e.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(x){return x===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(x),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",h):n(x)}function h(x){if(u>999||x===93&&!a||x===null||x===91||ke(x))return n(x);if(x===93){e.exit("chunkString");const k=e.exit("gfmFootnoteDefinitionLabelString");return s=Ht(r.sliceSerialize(k)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(x),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),m}return ke(x)||(a=!0),u++,e.consume(x),x===92?f:h}function f(x){return x===91||x===92||x===93?(e.consume(x),u++,h):h(x)}function m(x){return x===58?(e.enter("definitionMarker"),e.consume(x),e.exit("definitionMarker"),i.includes(s)||i.push(s),me(e,p,"gfmFootnoteDefinitionWhitespace")):n(x)}function p(x){return t(x)}}function zC(e,t,n){return e.check(As,t,e.attempt(MC,t,n))}function YC(e){e.exit("gfmFootnoteDefinition")}function VC(e,t,n){const r=this;return me(e,i,"gfmFootnoteDefinitionIndent",5);function i(s){const u=r.events[r.events.length-1];return u&&u[1].type==="gfmFootnoteDefinitionIndent"&&u[2].sliceSerialize(u[1],!0).length===4?t(s):n(s)}}function $C(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:s,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(u,a){let o=-1;for(;++o<u.length;)if(u[o][0]==="enter"&&u[o][1].type==="strikethroughSequenceTemporary"&&u[o][1]._close){let c=o;for(;c--;)if(u[c][0]==="exit"&&u[c][1].type==="strikethroughSequenceTemporary"&&u[c][1]._open&&u[o][1].end.offset-u[o][1].start.offset===u[c][1].end.offset-u[c][1].start.offset){u[o][1].type="strikethroughSequence",u[c][1].type="strikethroughSequence";const h={type:"strikethrough",start:Object.assign({},u[c][1].start),end:Object.assign({},u[o][1].end)},f={type:"strikethroughText",start:Object.assign({},u[c][1].end),end:Object.assign({},u[o][1].start)},m=[["enter",h,a],["enter",u[c][1],a],["exit",u[c][1],a],["enter",f,a]],p=a.parser.constructs.insideSpan.null;p&&yt(m,m.length,0,ya(p,u.slice(c+1,o),a)),yt(m,m.length,0,[["exit",f,a],["enter",u[o][1],a],["exit",u[o][1],a],["exit",h,a]]),yt(u,c-1,o-c+3,m),o=c+m.length-2;break}}for(o=-1;++o<u.length;)u[o][1].type==="strikethroughSequenceTemporary"&&(u[o][1].type="data");return u}function s(u,a,o){const c=this.previous,h=this.events;let f=0;return m;function m(x){return c===126&&h[h.length-1][1].type!=="characterEscape"?o(x):(u.enter("strikethroughSequenceTemporary"),p(x))}function p(x){const k=ti(c);if(x===126)return f>1?o(x):(u.consume(x),f++,p);if(f<2&&!n)return o(x);const v=u.exit("strikethroughSequenceTemporary"),E=ti(x);return v._open=!E||E===2&&!!k,v._close=!k||k===2&&!!E,a(x)}}}class WC{constructor(){this.map=[]}add(t,n,r){QC(this,t,n,r)}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 r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const s of i)t.push(s);i=r.pop()}this.map.length=0}}function QC(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function qC(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const s=r.length-1;r[s]=r[s]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function GC(){return{flow:{null:{name:"table",tokenize:KC,resolveAll:XC}}}}function KC(e,t,n){const r=this;let i=0,s=0,u;return a;function a(A){let V=r.events.length-1;for(;V>-1;){const ae=r.events[V][1].type;if(ae==="lineEnding"||ae==="linePrefix")V--;else break}const j=V>-1?r.events[V][1].type:null,te=j==="tableHead"||j==="tableRow"?N:o;return te===N&&r.parser.lazy[r.now().line]?n(A):te(A)}function o(A){return e.enter("tableHead"),e.enter("tableRow"),c(A)}function c(A){return A===124||(u=!0,s+=1),h(A)}function h(A){return A===null?n(A):J(A)?s>1?(s=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),p):n(A):ce(A)?me(e,h,"whitespace")(A):(s+=1,u&&(u=!1,i+=1),A===124?(e.enter("tableCellDivider"),e.consume(A),e.exit("tableCellDivider"),u=!0,h):(e.enter("data"),f(A)))}function f(A){return A===null||A===124||ke(A)?(e.exit("data"),h(A)):(e.consume(A),A===92?m:f)}function m(A){return A===92||A===124?(e.consume(A),f):f(A)}function p(A){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(A):(e.enter("tableDelimiterRow"),u=!1,ce(A)?me(e,x,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(A):x(A))}function x(A){return A===45||A===58?v(A):A===124?(u=!0,e.enter("tableCellDivider"),e.consume(A),e.exit("tableCellDivider"),k):O(A)}function k(A){return ce(A)?me(e,v,"whitespace")(A):v(A)}function v(A){return A===58?(s+=1,u=!0,e.enter("tableDelimiterMarker"),e.consume(A),e.exit("tableDelimiterMarker"),E):A===45?(s+=1,E(A)):A===null||J(A)?w(A):O(A)}function E(A){return A===45?(e.enter("tableDelimiterFiller"),T(A)):O(A)}function T(A){return A===45?(e.consume(A),T):A===58?(u=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(A),e.exit("tableDelimiterMarker"),g):(e.exit("tableDelimiterFiller"),g(A))}function g(A){return ce(A)?me(e,w,"whitespace")(A):w(A)}function w(A){return A===124?x(A):A===null||J(A)?!u||i!==s?O(A):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(A)):O(A)}function O(A){return n(A)}function N(A){return e.enter("tableRow"),P(A)}function P(A){return A===124?(e.enter("tableCellDivider"),e.consume(A),e.exit("tableCellDivider"),P):A===null||J(A)?(e.exit("tableRow"),t(A)):ce(A)?me(e,P,"whitespace")(A):(e.enter("data"),I(A))}function I(A){return A===null||A===124||ke(A)?(e.exit("data"),P(A)):(e.consume(A),A===92?F:I)}function F(A){return A===92||A===124?(e.consume(A),I):I(A)}}function XC(e,t){let n=-1,r=!0,i=0,s=[0,0,0,0],u=[0,0,0,0],a=!1,o=0,c,h,f;const m=new WC;for(;++n<e.length;){const p=e[n],x=p[1];p[0]==="enter"?x.type==="tableHead"?(a=!1,o!==0&&(R0(m,t,o,c,h),h=void 0,o=0),c={type:"table",start:Object.assign({},x.start),end:Object.assign({},x.end)},m.add(n,0,[["enter",c,t]])):x.type==="tableRow"||x.type==="tableDelimiterRow"?(r=!0,f=void 0,s=[0,0,0,0],u=[0,n+1,0,0],a&&(a=!1,h={type:"tableBody",start:Object.assign({},x.start),end:Object.assign({},x.end)},m.add(n,0,[["enter",h,t]])),i=x.type==="tableDelimiterRow"?2:h?3:1):i&&(x.type==="data"||x.type==="tableDelimiterMarker"||x.type==="tableDelimiterFiller")?(r=!1,u[2]===0&&(s[1]!==0&&(u[0]=u[1],f=Zs(m,t,s,i,void 0,f),s=[0,0,0,0]),u[2]=n)):x.type==="tableCellDivider"&&(r?r=!1:(s[1]!==0&&(u[0]=u[1],f=Zs(m,t,s,i,void 0,f)),s=u,u=[s[1],n,0,0])):x.type==="tableHead"?(a=!0,o=n):x.type==="tableRow"||x.type==="tableDelimiterRow"?(o=n,s[1]!==0?(u[0]=u[1],f=Zs(m,t,s,i,n,f)):u[1]!==0&&(f=Zs(m,t,u,i,n,f)),i=0):i&&(x.type==="data"||x.type==="tableDelimiterMarker"||x.type==="tableDelimiterFiller")&&(u[3]=n)}for(o!==0&&R0(m,t,o,c,h),m.consume(t.events),n=-1;++n<t.events.length;){const p=t.events[n];p[0]==="enter"&&p[1].type==="table"&&(p[1]._align=qC(t.events,n))}return e}function Zs(e,t,n,r,i,s){const u=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",a="tableContent";n[0]!==0&&(s.end=Object.assign({},Sr(t.events,n[0])),e.add(n[0],0,[["exit",s,t]]));const o=Sr(t.events,n[1]);if(s={type:u,start:Object.assign({},o),end:Object.assign({},o)},e.add(n[1],0,[["enter",s,t]]),n[2]!==0){const c=Sr(t.events,n[2]),h=Sr(t.events,n[3]),f={type:a,start:Object.assign({},c),end:Object.assign({},h)};if(e.add(n[2],0,[["enter",f,t]]),r!==2){const m=t.events[n[2]],p=t.events[n[3]];if(m[1].end=Object.assign({},p[1].end),m[1].type="chunkText",m[1].contentType="text",n[3]>n[2]+1){const x=n[2]+1,k=n[3]-n[2]-1;e.add(x,k,[])}}e.add(n[3]+1,0,[["exit",f,t]])}return i!==void 0&&(s.end=Object.assign({},Sr(t.events,i)),e.add(i,0,[["exit",s,t]]),s=void 0),s}function R0(e,t,n,r,i){const s=[],u=Sr(t.events,n);i&&(i.end=Object.assign({},u),s.push(["exit",i,t])),r.end=Object.assign({},u),s.push(["exit",r,t]),e.add(n+1,0,s)}function Sr(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const JC={name:"tasklistCheck",tokenize:eS};function ZC(){return{text:{91:JC}}}function eS(e,t,n){const r=this;return i;function i(o){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(o):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(o),e.exit("taskListCheckMarker"),s)}function s(o){return ke(o)?(e.enter("taskListCheckValueUnchecked"),e.consume(o),e.exit("taskListCheckValueUnchecked"),u):o===88||o===120?(e.enter("taskListCheckValueChecked"),e.consume(o),e.exit("taskListCheckValueChecked"),u):n(o)}function u(o){return o===93?(e.enter("taskListCheckMarker"),e.consume(o),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):n(o)}function a(o){return J(o)?t(o):ce(o)?e.check({tokenize:tS},t,n)(o):n(o)}}function tS(e,t,n){return me(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function nS(e){return Zp([AC(),FC(),$C(e),GC(),ZC()])}const rS={};function iS(e){const t=this,n=e||rS,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),s=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),u=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(nS(n)),s.push(_C()),u.push(NC(n))}const D0=/[#.]/g;function sS(e,t){const n=e||"",r={};let i=0,s,u;for(;i<n.length;){D0.lastIndex=i;const a=D0.exec(n),o=n.slice(i,a?a.index:n.length);o&&(s?s==="#"?r.id=o:Array.isArray(r.className)?r.className.push(o):r.className=[o]:u=o,i+=o.length),a&&(s=a[0],i++)}return{type:"element",tagName:u||t||"div",properties:r,children:[]}}function $1(e,t,n){const r=n?lS(n):void 0;function i(s,u,...a){let o;if(s==null){o={type:"root",children:[]};const c=u;a.unshift(c)}else{o=sS(s,t);const c=o.tagName.toLowerCase(),h=r?r.get(c):void 0;if(o.tagName=h||c,uS(u))a.unshift(u);else for(const[f,m]of Object.entries(u))aS(e,o.properties,f,m)}for(const c of a)Il(o.children,c);return o.type==="element"&&o.tagName==="template"&&(o.content={type:"root",children:o.children},o.children=[]),o}return i}function uS(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 r of n){const i=t[r];if(i&&typeof i=="object"){if(!Array.isArray(i))return!0;const s=i;for(const u of s)if(typeof u!="number"&&typeof u!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function aS(e,t,n,r){const i=Ea(e,n);let s;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;s=r}else typeof r=="boolean"?s=r:typeof r=="string"?i.spaceSeparated?s=Hf(r):i.commaSeparated?s=Mf(r):i.commaOrSpaceSeparated?s=Hf(Mf(r).join(" ")):s=P0(i,i.property,r):Array.isArray(r)?s=[...r]:s=i.property==="style"?oS(r):String(r);if(Array.isArray(s)){const u=[];for(const a of s)u.push(P0(i,i.property,a));s=u}i.property==="className"&&Array.isArray(t.className)&&(s=t.className.concat(s)),t[i.property]=s}}function Il(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)Il(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?Il(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function P0(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||ps(n)===ps(t)))return!0}return n}function oS(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}function lS(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const cS=["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"],dS=$1(Ss,"div"),fS=$1(Qn,"g",cS);function hS(e){const t=String(e),n=[];return{toOffset:i,toPoint:r};function r(s){if(typeof s=="number"&&s>-1&&s<=t.length){let u=0;for(;;){let a=n[u];if(a===void 0){const o=M0(t,n[u-1]);a=o===-1?t.length+1:o+1,n[u]=a}if(a>s)return{line:u+1,column:s-(u>0?n[u-1]:0)+1,offset:s};u++}}}function i(s){if(s&&typeof s.line=="number"&&typeof s.column=="number"&&!Number.isNaN(s.line)&&!Number.isNaN(s.column)){for(;n.length<s.line;){const a=n[n.length-1],o=M0(t,a),c=o===-1?t.length+1:o+1;if(a===c)break;n.push(c)}const u=(s.line>1?n[s.line-2]:0)+s.column-1;if(u<n[s.line-1])return u}}}function M0(e,t){const n=e.indexOf("\r",t),r=e.indexOf(`
|
|
294
|
+
`,t);return r===-1?n:n===-1||n+1===r?r:n<r?n:r}const ir={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},W1={}.hasOwnProperty,mS=Object.prototype;function pS(e,t){const n=t||{};return ed({file:n.file||void 0,location:!1,schema:n.space==="svg"?Qn:Ss,verbose:n.verbose||!1},e)}function ed(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},Eu(e,r,n),n}case"#document":case"#document-fragment":{const r=t,i="mode"in r?r.mode==="quirks"||r.mode==="limited-quirks":!1;if(n={type:"root",children:Q1(e,t.childNodes),data:{quirksMode:i}},e.file&&e.location){const s=String(e.file),u=hS(s),a=u.toPoint(0),o=u.toPoint(s.length);n.position={start:a,end:o}}return n}case"#documentType":{const r=t;return n={type:"doctype"},Eu(e,r,n),n}case"#text":{const r=t;return n={type:"text",value:r.value},Eu(e,r,n),n}default:return n=gS(e,t),n}}function Q1(e,t){let n=-1;const r=[];for(;++n<t.length;){const i=ed(e,t[n]);r.push(i)}return r}function gS(e,t){const n=e.schema;e.schema=t.namespaceURI===ir.svg?Qn:Ss;let r=-1;const i={};for(;++r<t.attrs.length;){const a=t.attrs[r],o=(a.prefix?a.prefix+":":"")+a.name;W1.call(mS,o)||(i[o]=a.value)}const u=(e.schema.space==="svg"?fS:dS)(t.tagName,i,Q1(e,t.childNodes));if(Eu(e,t,u),u.tagName==="template"){const a=t,o=a.sourceCodeLocation,c=o&&o.startTag&&jr(o.startTag),h=o&&o.endTag&&jr(o.endTag),f=ed(e,a.content);c&&h&&e.file&&(f.position={start:c.end,end:h.start}),u.content=f}return e.schema=n,u}function Eu(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=ES(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function ES(e,t,n){const r=jr(n);if(t.type==="element"){const i=t.children[t.children.length-1];if(r&&!n.endTag&&i&&i.position&&i.position.end&&(r.end=Object.assign({},i.position.end)),e.verbose){const s={};let u;if(n.attrs)for(u in n.attrs)W1.call(n.attrs,u)&&(s[Ea(e.schema,u).property]=jr(n.attrs[u]));n.startTag;const a=jr(n.startTag),o=n.endTag?jr(n.endTag):void 0,c={opening:a};o&&(c.closing=o),c.properties=s,t.data={position:c}}}return r}function jr(e){const t=F0({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=F0({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function F0(e){return e.line&&e.column?e:void 0}const xS={},bS={}.hasOwnProperty,q1=C1("type",{handlers:{root:yS,element:SS,text:NS,comment:CS,doctype:_S}});function TS(e,t){const r=(t||xS).space;return q1(e,r==="svg"?Qn:Ss)}function yS(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=td(e.children,n,t),li(e,n),n}function kS(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=td(e.children,n,t),li(e,n),n}function _S(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return li(e,t),t}function NS(e){const t={nodeName:"#text",value:e.value,parentNode:null};return li(e,t),t}function CS(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return li(e,t),t}function SS(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=Qn);const i=[];let s;if(e.properties){for(s in e.properties)if(s!=="children"&&bS.call(e.properties,s)){const o=AS(r,s,e.properties[s]);o&&i.push(o)}}const u=r.space,a={nodeName:e.tagName,tagName:e.tagName,attrs:i,namespaceURI:ir[u],childNodes:[],parentNode:null};return a.childNodes=td(e.children,a,r),li(e,a),e.tagName==="template"&&e.content&&(a.content=kS(e.content,r)),a}function AS(e,t,n){const r=Ea(e,t);if(n===!1||n===null||n===void 0||typeof n=="number"&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?Bp(n):Wp(n));const i={name:r.attribute,value:n===!0?"":String(n)};if(r.space&&r.space!=="html"&&r.space!=="svg"){const s=i.name.indexOf(":");s<0?i.prefix="":(i.name=i.name.slice(s+1),i.prefix=r.attribute.slice(0,s)),i.namespace=ir[r.space]}return i}function td(e,t,n){let r=-1;const i=[];if(e)for(;++r<e.length;){const s=q1(e[r],n);s.parentNode=t,i.push(s)}return i}function li(e,t){const n=e.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const wS=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],vS=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),we="�";var y;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(y||(y={}));const ot={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function G1(e){return e>=55296&&e<=57343}function IS(e){return e>=56320&&e<=57343}function LS(e,t){return(e-55296)*1024+9216+t}function K1(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function X1(e){return e>=64976&&e<=65007||vS.has(e)}var D;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(D||(D={}));const OS=65536;class RS{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=OS,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,n){const{line:r,col:i,offset:s}=this,u=i+n,a=s+n;return{code:t,startLine:r,endLine:r,startCol:u,endCol:u,startOffset:a,endOffset:a}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(IS(n))return this.pos++,this._addGap(),LS(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,y.EOF;return this._err(D.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(t,this.pos);for(let r=0;r<t.length;r++)if((this.html.charCodeAt(this.pos+r)|32)!==t.charCodeAt(r))return!1;return!0}peek(t){const n=this.pos+t;if(n>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,y.EOF;const r=this.html.charCodeAt(n);return r===y.CARRIAGE_RETURN?y.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,y.EOF;let t=this.html.charCodeAt(this.pos);return t===y.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,y.LINE_FEED):t===y.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,G1(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===y.LINE_FEED||t===y.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){K1(t)?this._err(D.controlCharacterInInputStream):X1(t)&&this._err(D.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var oe;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(oe||(oe={}));function J1(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}const DS=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),PS=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function MS(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=PS.get(e))!==null&&t!==void 0?t:e}var Ve;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Ve||(Ve={}));const FS=32;var Ln;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Ln||(Ln={}));function Ll(e){return e>=Ve.ZERO&&e<=Ve.NINE}function BS(e){return e>=Ve.UPPER_A&&e<=Ve.UPPER_F||e>=Ve.LOWER_A&&e<=Ve.LOWER_F}function jS(e){return e>=Ve.UPPER_A&&e<=Ve.UPPER_Z||e>=Ve.LOWER_A&&e<=Ve.LOWER_Z||Ll(e)}function US(e){return e===Ve.EQUALS||jS(e)}var ze;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(ze||(ze={}));var ln;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(ln||(ln={}));class HS{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=ze.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=ln.Strict}startEntity(t){this.decodeMode=t,this.state=ze.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case ze.EntityStart:return t.charCodeAt(n)===Ve.NUM?(this.state=ze.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=ze.NamedEntity,this.stateNamedEntity(t,n));case ze.NumericStart:return this.stateNumericStart(t,n);case ze.NumericDecimal:return this.stateNumericDecimal(t,n);case ze.NumericHex:return this.stateNumericHex(t,n);case ze.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|FS)===Ve.LOWER_X?(this.state=ze.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=ze.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,i){if(n!==r){const s=r-n;this.result=this.result*Math.pow(i,s)+Number.parseInt(t.substr(n,s),i),this.consumed+=s}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const i=t.charCodeAt(n);if(Ll(i)||BS(i))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(i,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const i=t.charCodeAt(n);if(Ll(i))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(i,2)}return this.addToNumericResult(t,r,n,10),-1}emitNumericEntity(t,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===Ve.SEMI)this.consumed+=1;else if(this.decodeMode===ln.Strict)return 0;return this.emitCodePoint(MS(this.result),this.consumed),this.errors&&(t!==Ve.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let i=r[this.treeIndex],s=(i&Ln.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const u=t.charCodeAt(n);if(this.treeIndex=zS(r,i,this.treeIndex+Math.max(1,s),u),this.treeIndex<0)return this.result===0||this.decodeMode===ln.Attribute&&(s===0||US(u))?0:this.emitNotTerminatedNamedEntity();if(i=r[this.treeIndex],s=(i&Ln.VALUE_LENGTH)>>14,s!==0){if(u===Ve.SEMI)return this.emitNamedEntityData(this.treeIndex,s,this.consumed+this.excess);this.decodeMode!==ln.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,i=(r[n]&Ln.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,i,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:i}=this;return this.emitCodePoint(n===1?i[t]&~Ln.VALUE_LENGTH:i[t+1],r),n===3&&this.emitCodePoint(i[t+2],r),r}end(){var t;switch(this.state){case ze.NamedEntity:return this.result!==0&&(this.decodeMode!==ln.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case ze.NumericDecimal:return this.emitNumericEntity(0,2);case ze.NumericHex:return this.emitNumericEntity(0,3);case ze.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case ze.EntityStart:return 0}}}function zS(e,t,n,r){const i=(t&Ln.BRANCH_LENGTH)>>7,s=t&Ln.JUMP_TABLE;if(i===0)return s!==0&&r===s?n:-1;if(s){const o=r-s;return o<0||o>=i?-1:e[n+o]-1}let u=n,a=u+i-1;for(;u<=a;){const o=u+a>>>1,c=e[o];if(c<r)u=o+1;else if(c>r)a=o-1;else return e[o+i]}return-1}var B;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(B||(B={}));var ar;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(ar||(ar={}));var wt;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(wt||(wt={}));var L;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(L||(L={}));var l;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(l||(l={}));const YS=new Map([[L.A,l.A],[L.ADDRESS,l.ADDRESS],[L.ANNOTATION_XML,l.ANNOTATION_XML],[L.APPLET,l.APPLET],[L.AREA,l.AREA],[L.ARTICLE,l.ARTICLE],[L.ASIDE,l.ASIDE],[L.B,l.B],[L.BASE,l.BASE],[L.BASEFONT,l.BASEFONT],[L.BGSOUND,l.BGSOUND],[L.BIG,l.BIG],[L.BLOCKQUOTE,l.BLOCKQUOTE],[L.BODY,l.BODY],[L.BR,l.BR],[L.BUTTON,l.BUTTON],[L.CAPTION,l.CAPTION],[L.CENTER,l.CENTER],[L.CODE,l.CODE],[L.COL,l.COL],[L.COLGROUP,l.COLGROUP],[L.DD,l.DD],[L.DESC,l.DESC],[L.DETAILS,l.DETAILS],[L.DIALOG,l.DIALOG],[L.DIR,l.DIR],[L.DIV,l.DIV],[L.DL,l.DL],[L.DT,l.DT],[L.EM,l.EM],[L.EMBED,l.EMBED],[L.FIELDSET,l.FIELDSET],[L.FIGCAPTION,l.FIGCAPTION],[L.FIGURE,l.FIGURE],[L.FONT,l.FONT],[L.FOOTER,l.FOOTER],[L.FOREIGN_OBJECT,l.FOREIGN_OBJECT],[L.FORM,l.FORM],[L.FRAME,l.FRAME],[L.FRAMESET,l.FRAMESET],[L.H1,l.H1],[L.H2,l.H2],[L.H3,l.H3],[L.H4,l.H4],[L.H5,l.H5],[L.H6,l.H6],[L.HEAD,l.HEAD],[L.HEADER,l.HEADER],[L.HGROUP,l.HGROUP],[L.HR,l.HR],[L.HTML,l.HTML],[L.I,l.I],[L.IMG,l.IMG],[L.IMAGE,l.IMAGE],[L.INPUT,l.INPUT],[L.IFRAME,l.IFRAME],[L.KEYGEN,l.KEYGEN],[L.LABEL,l.LABEL],[L.LI,l.LI],[L.LINK,l.LINK],[L.LISTING,l.LISTING],[L.MAIN,l.MAIN],[L.MALIGNMARK,l.MALIGNMARK],[L.MARQUEE,l.MARQUEE],[L.MATH,l.MATH],[L.MENU,l.MENU],[L.META,l.META],[L.MGLYPH,l.MGLYPH],[L.MI,l.MI],[L.MO,l.MO],[L.MN,l.MN],[L.MS,l.MS],[L.MTEXT,l.MTEXT],[L.NAV,l.NAV],[L.NOBR,l.NOBR],[L.NOFRAMES,l.NOFRAMES],[L.NOEMBED,l.NOEMBED],[L.NOSCRIPT,l.NOSCRIPT],[L.OBJECT,l.OBJECT],[L.OL,l.OL],[L.OPTGROUP,l.OPTGROUP],[L.OPTION,l.OPTION],[L.P,l.P],[L.PARAM,l.PARAM],[L.PLAINTEXT,l.PLAINTEXT],[L.PRE,l.PRE],[L.RB,l.RB],[L.RP,l.RP],[L.RT,l.RT],[L.RTC,l.RTC],[L.RUBY,l.RUBY],[L.S,l.S],[L.SCRIPT,l.SCRIPT],[L.SEARCH,l.SEARCH],[L.SECTION,l.SECTION],[L.SELECT,l.SELECT],[L.SOURCE,l.SOURCE],[L.SMALL,l.SMALL],[L.SPAN,l.SPAN],[L.STRIKE,l.STRIKE],[L.STRONG,l.STRONG],[L.STYLE,l.STYLE],[L.SUB,l.SUB],[L.SUMMARY,l.SUMMARY],[L.SUP,l.SUP],[L.TABLE,l.TABLE],[L.TBODY,l.TBODY],[L.TEMPLATE,l.TEMPLATE],[L.TEXTAREA,l.TEXTAREA],[L.TFOOT,l.TFOOT],[L.TD,l.TD],[L.TH,l.TH],[L.THEAD,l.THEAD],[L.TITLE,l.TITLE],[L.TR,l.TR],[L.TRACK,l.TRACK],[L.TT,l.TT],[L.U,l.U],[L.UL,l.UL],[L.SVG,l.SVG],[L.VAR,l.VAR],[L.WBR,l.WBR],[L.XMP,l.XMP]]);function ci(e){var t;return(t=YS.get(e))!==null&&t!==void 0?t:l.UNKNOWN}const U=l,VS={[B.HTML]:new Set([U.ADDRESS,U.APPLET,U.AREA,U.ARTICLE,U.ASIDE,U.BASE,U.BASEFONT,U.BGSOUND,U.BLOCKQUOTE,U.BODY,U.BR,U.BUTTON,U.CAPTION,U.CENTER,U.COL,U.COLGROUP,U.DD,U.DETAILS,U.DIR,U.DIV,U.DL,U.DT,U.EMBED,U.FIELDSET,U.FIGCAPTION,U.FIGURE,U.FOOTER,U.FORM,U.FRAME,U.FRAMESET,U.H1,U.H2,U.H3,U.H4,U.H5,U.H6,U.HEAD,U.HEADER,U.HGROUP,U.HR,U.HTML,U.IFRAME,U.IMG,U.INPUT,U.LI,U.LINK,U.LISTING,U.MAIN,U.MARQUEE,U.MENU,U.META,U.NAV,U.NOEMBED,U.NOFRAMES,U.NOSCRIPT,U.OBJECT,U.OL,U.P,U.PARAM,U.PLAINTEXT,U.PRE,U.SCRIPT,U.SECTION,U.SELECT,U.SOURCE,U.STYLE,U.SUMMARY,U.TABLE,U.TBODY,U.TD,U.TEMPLATE,U.TEXTAREA,U.TFOOT,U.TH,U.THEAD,U.TITLE,U.TR,U.TRACK,U.UL,U.WBR,U.XMP]),[B.MATHML]:new Set([U.MI,U.MO,U.MN,U.MS,U.MTEXT,U.ANNOTATION_XML]),[B.SVG]:new Set([U.TITLE,U.FOREIGN_OBJECT,U.DESC]),[B.XLINK]:new Set,[B.XML]:new Set,[B.XMLNS]:new Set},Ol=new Set([U.H1,U.H2,U.H3,U.H4,U.H5,U.H6]);L.STYLE,L.SCRIPT,L.XMP,L.IFRAME,L.NOEMBED,L.NOFRAMES,L.PLAINTEXT;var _;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(_||(_={}));const Me={DATA:_.DATA,RCDATA:_.RCDATA,RAWTEXT:_.RAWTEXT,SCRIPT_DATA:_.SCRIPT_DATA,PLAINTEXT:_.PLAINTEXT,CDATA_SECTION:_.CDATA_SECTION};function $S(e){return e>=y.DIGIT_0&&e<=y.DIGIT_9}function Oi(e){return e>=y.LATIN_CAPITAL_A&&e<=y.LATIN_CAPITAL_Z}function WS(e){return e>=y.LATIN_SMALL_A&&e<=y.LATIN_SMALL_Z}function _n(e){return WS(e)||Oi(e)}function B0(e){return _n(e)||$S(e)}function eu(e){return e+32}function Z1(e){return e===y.SPACE||e===y.LINE_FEED||e===y.TABULATION||e===y.FORM_FEED}function j0(e){return Z1(e)||e===y.SOLIDUS||e===y.GREATER_THAN_SIGN}function QS(e){return e===y.NULL?D.nullCharacterReference:e>1114111?D.characterReferenceOutsideUnicodeRange:G1(e)?D.surrogateCharacterReference:X1(e)?D.noncharacterCharacterReference:K1(e)||e===y.CARRIAGE_RETURN?D.controlCharacterReference:null}class qS{constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=_.DATA,this.returnState=_.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new RS(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new HS(DS,(r,i)=>{this.preprocessor.pos=this.entityStartPos+i-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(D.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(D.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const i=QS(r);i&&this._err(i,1)}}:void 0)}_err(t,n=0){var r,i;(i=(r=this.handler).onParseError)===null||i===void 0||i.call(r,this.preprocessor.getError(t,n))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t==null||t())}write(t,n,r){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||r==null||r()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let n=0;n<t;n++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,n){return this.preprocessor.startsWith(t,n)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:oe.START_TAG,tagName:"",tagID:l.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:oe.END_TAG,tagName:"",tagID:l.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:oe.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:oe.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,n){this.currentCharacterToken={type:t,chars:n,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,n;const r=this.currentToken;if(J1(r,this.currentAttr.name)===null){if(r.attrs.push(this.currentAttr),r.location&&this.currentLocation){const i=(t=(n=r.location).attrs)!==null&&t!==void 0?t:n.attrs=Object.create(null);i[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(D.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=ci(t.tagName),t.type===oe.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(D.endTagWithAttributes),t.selfClosing&&this._err(D.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case oe.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case oe.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case oe.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:oe.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,n)}_emitCodePoint(t){const n=Z1(t)?oe.WHITESPACE_CHARACTER:t===y.NULL?oe.NULL_CHARACTER:oe.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(oe.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=_.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?ln.Attribute:ln.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===_.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===_.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===_.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case _.DATA:{this._stateData(t);break}case _.RCDATA:{this._stateRcdata(t);break}case _.RAWTEXT:{this._stateRawtext(t);break}case _.SCRIPT_DATA:{this._stateScriptData(t);break}case _.PLAINTEXT:{this._statePlaintext(t);break}case _.TAG_OPEN:{this._stateTagOpen(t);break}case _.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case _.TAG_NAME:{this._stateTagName(t);break}case _.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case _.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case _.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case _.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case _.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case _.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case _.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case _.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case _.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case _.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case _.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case _.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case _.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case _.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case _.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case _.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case _.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case _.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case _.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case _.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case _.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case _.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case _.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case _.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case _.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case _.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case _.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case _.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case _.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case _.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case _.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case _.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case _.BOGUS_COMMENT:{this._stateBogusComment(t);break}case _.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case _.COMMENT_START:{this._stateCommentStart(t);break}case _.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case _.COMMENT:{this._stateComment(t);break}case _.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case _.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case _.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case _.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case _.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case _.COMMENT_END:{this._stateCommentEnd(t);break}case _.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case _.DOCTYPE:{this._stateDoctype(t);break}case _.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case _.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case _.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case _.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case _.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case _.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case _.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case _.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case _.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case _.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case _.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case _.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case _.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case _.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case _.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case _.CDATA_SECTION:{this._stateCdataSection(t);break}case _.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case _.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case _.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case _.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case y.LESS_THAN_SIGN:{this.state=_.TAG_OPEN;break}case y.AMPERSAND:{this._startCharacterReference();break}case y.NULL:{this._err(D.unexpectedNullCharacter),this._emitCodePoint(t);break}case y.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case y.AMPERSAND:{this._startCharacterReference();break}case y.LESS_THAN_SIGN:{this.state=_.RCDATA_LESS_THAN_SIGN;break}case y.NULL:{this._err(D.unexpectedNullCharacter),this._emitChars(we);break}case y.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case y.LESS_THAN_SIGN:{this.state=_.RAWTEXT_LESS_THAN_SIGN;break}case y.NULL:{this._err(D.unexpectedNullCharacter),this._emitChars(we);break}case y.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case y.LESS_THAN_SIGN:{this.state=_.SCRIPT_DATA_LESS_THAN_SIGN;break}case y.NULL:{this._err(D.unexpectedNullCharacter),this._emitChars(we);break}case y.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case y.NULL:{this._err(D.unexpectedNullCharacter),this._emitChars(we);break}case y.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(_n(t))this._createStartTagToken(),this.state=_.TAG_NAME,this._stateTagName(t);else switch(t){case y.EXCLAMATION_MARK:{this.state=_.MARKUP_DECLARATION_OPEN;break}case y.SOLIDUS:{this.state=_.END_TAG_OPEN;break}case y.QUESTION_MARK:{this._err(D.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=_.BOGUS_COMMENT,this._stateBogusComment(t);break}case y.EOF:{this._err(D.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(D.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=_.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(_n(t))this._createEndTagToken(),this.state=_.TAG_NAME,this._stateTagName(t);else switch(t){case y.GREATER_THAN_SIGN:{this._err(D.missingEndTagName),this.state=_.DATA;break}case y.EOF:{this._err(D.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(D.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=_.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const n=this.currentToken;switch(t){case y.SPACE:case y.LINE_FEED:case y.TABULATION:case y.FORM_FEED:{this.state=_.BEFORE_ATTRIBUTE_NAME;break}case y.SOLIDUS:{this.state=_.SELF_CLOSING_START_TAG;break}case y.GREATER_THAN_SIGN:{this.state=_.DATA,this.emitCurrentTagToken();break}case y.NULL:{this._err(D.unexpectedNullCharacter),n.tagName+=we;break}case y.EOF:{this._err(D.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(Oi(t)?eu(t):t)}}_stateRcdataLessThanSign(t){t===y.SOLIDUS?this.state=_.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=_.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){_n(t)?(this.state=_.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=_.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const n=this.currentToken;switch(n.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case y.SPACE:case y.LINE_FEED:case y.TABULATION:case y.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=_.BEFORE_ATTRIBUTE_NAME,!1;case y.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=_.SELF_CLOSING_START_TAG,!1;case y.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=_.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=_.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===y.SOLIDUS?this.state=_.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=_.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){_n(t)?(this.state=_.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=_.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=_.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case y.SOLIDUS:{this.state=_.SCRIPT_DATA_END_TAG_OPEN;break}case y.EXCLAMATION_MARK:{this.state=_.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=_.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){_n(t)?(this.state=_.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=_.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=_.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===y.HYPHEN_MINUS?(this.state=_.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=_.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===y.HYPHEN_MINUS?(this.state=_.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=_.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case y.HYPHEN_MINUS:{this.state=_.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case y.LESS_THAN_SIGN:{this.state=_.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case y.NULL:{this._err(D.unexpectedNullCharacter),this._emitChars(we);break}case y.EOF:{this._err(D.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case y.HYPHEN_MINUS:{this.state=_.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case y.LESS_THAN_SIGN:{this.state=_.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case y.NULL:{this._err(D.unexpectedNullCharacter),this.state=_.SCRIPT_DATA_ESCAPED,this._emitChars(we);break}case y.EOF:{this._err(D.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=_.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case y.HYPHEN_MINUS:{this._emitChars("-");break}case y.LESS_THAN_SIGN:{this.state=_.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case y.GREATER_THAN_SIGN:{this.state=_.SCRIPT_DATA,this._emitChars(">");break}case y.NULL:{this._err(D.unexpectedNullCharacter),this.state=_.SCRIPT_DATA_ESCAPED,this._emitChars(we);break}case y.EOF:{this._err(D.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=_.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===y.SOLIDUS?this.state=_.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:_n(t)?(this._emitChars("<"),this.state=_.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=_.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){_n(t)?(this.state=_.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=_.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=_.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(ot.SCRIPT,!1)&&j0(this.preprocessor.peek(ot.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<ot.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=_.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=_.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case y.HYPHEN_MINUS:{this.state=_.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case y.LESS_THAN_SIGN:{this.state=_.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case y.NULL:{this._err(D.unexpectedNullCharacter),this._emitChars(we);break}case y.EOF:{this._err(D.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case y.HYPHEN_MINUS:{this.state=_.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case y.LESS_THAN_SIGN:{this.state=_.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case y.NULL:{this._err(D.unexpectedNullCharacter),this.state=_.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(we);break}case y.EOF:{this._err(D.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=_.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case y.HYPHEN_MINUS:{this._emitChars("-");break}case y.LESS_THAN_SIGN:{this.state=_.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case y.GREATER_THAN_SIGN:{this.state=_.SCRIPT_DATA,this._emitChars(">");break}case y.NULL:{this._err(D.unexpectedNullCharacter),this.state=_.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(we);break}case y.EOF:{this._err(D.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=_.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===y.SOLIDUS?(this.state=_.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=_.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(ot.SCRIPT,!1)&&j0(this.preprocessor.peek(ot.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<ot.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=_.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=_.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case y.SPACE:case y.LINE_FEED:case y.TABULATION:case y.FORM_FEED:break;case y.SOLIDUS:case y.GREATER_THAN_SIGN:case y.EOF:{this.state=_.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case y.EQUALS_SIGN:{this._err(D.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=_.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=_.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case y.SPACE:case y.LINE_FEED:case y.TABULATION:case y.FORM_FEED:case y.SOLIDUS:case y.GREATER_THAN_SIGN:case y.EOF:{this._leaveAttrName(),this.state=_.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case y.EQUALS_SIGN:{this._leaveAttrName(),this.state=_.BEFORE_ATTRIBUTE_VALUE;break}case y.QUOTATION_MARK:case y.APOSTROPHE:case y.LESS_THAN_SIGN:{this._err(D.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case y.NULL:{this._err(D.unexpectedNullCharacter),this.currentAttr.name+=we;break}default:this.currentAttr.name+=String.fromCodePoint(Oi(t)?eu(t):t)}}_stateAfterAttributeName(t){switch(t){case y.SPACE:case y.LINE_FEED:case y.TABULATION:case y.FORM_FEED:break;case y.SOLIDUS:{this.state=_.SELF_CLOSING_START_TAG;break}case y.EQUALS_SIGN:{this.state=_.BEFORE_ATTRIBUTE_VALUE;break}case y.GREATER_THAN_SIGN:{this.state=_.DATA,this.emitCurrentTagToken();break}case y.EOF:{this._err(D.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=_.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case y.SPACE:case y.LINE_FEED:case y.TABULATION:case y.FORM_FEED:break;case y.QUOTATION_MARK:{this.state=_.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case y.APOSTROPHE:{this.state=_.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case y.GREATER_THAN_SIGN:{this._err(D.missingAttributeValue),this.state=_.DATA,this.emitCurrentTagToken();break}default:this.state=_.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case y.QUOTATION_MARK:{this.state=_.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case y.AMPERSAND:{this._startCharacterReference();break}case y.NULL:{this._err(D.unexpectedNullCharacter),this.currentAttr.value+=we;break}case y.EOF:{this._err(D.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case y.APOSTROPHE:{this.state=_.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case y.AMPERSAND:{this._startCharacterReference();break}case y.NULL:{this._err(D.unexpectedNullCharacter),this.currentAttr.value+=we;break}case y.EOF:{this._err(D.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case y.SPACE:case y.LINE_FEED:case y.TABULATION:case y.FORM_FEED:{this._leaveAttrValue(),this.state=_.BEFORE_ATTRIBUTE_NAME;break}case y.AMPERSAND:{this._startCharacterReference();break}case y.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=_.DATA,this.emitCurrentTagToken();break}case y.NULL:{this._err(D.unexpectedNullCharacter),this.currentAttr.value+=we;break}case y.QUOTATION_MARK:case y.APOSTROPHE:case y.LESS_THAN_SIGN:case y.EQUALS_SIGN:case y.GRAVE_ACCENT:{this._err(D.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case y.EOF:{this._err(D.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case y.SPACE:case y.LINE_FEED:case y.TABULATION:case y.FORM_FEED:{this._leaveAttrValue(),this.state=_.BEFORE_ATTRIBUTE_NAME;break}case y.SOLIDUS:{this._leaveAttrValue(),this.state=_.SELF_CLOSING_START_TAG;break}case y.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=_.DATA,this.emitCurrentTagToken();break}case y.EOF:{this._err(D.eofInTag),this._emitEOFToken();break}default:this._err(D.missingWhitespaceBetweenAttributes),this.state=_.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case y.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=_.DATA,this.emitCurrentTagToken();break}case y.EOF:{this._err(D.eofInTag),this._emitEOFToken();break}default:this._err(D.unexpectedSolidusInTag),this.state=_.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case y.GREATER_THAN_SIGN:{this.state=_.DATA,this.emitCurrentComment(n);break}case y.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case y.NULL:{this._err(D.unexpectedNullCharacter),n.data+=we;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(ot.DASH_DASH,!0)?(this._createCommentToken(ot.DASH_DASH.length+1),this.state=_.COMMENT_START):this._consumeSequenceIfMatch(ot.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(ot.DOCTYPE.length+1),this.state=_.DOCTYPE):this._consumeSequenceIfMatch(ot.CDATA_START,!0)?this.inForeignNode?this.state=_.CDATA_SECTION:(this._err(D.cdataInHtmlContent),this._createCommentToken(ot.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=_.BOGUS_COMMENT):this._ensureHibernation()||(this._err(D.incorrectlyOpenedComment),this._createCommentToken(2),this.state=_.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case y.HYPHEN_MINUS:{this.state=_.COMMENT_START_DASH;break}case y.GREATER_THAN_SIGN:{this._err(D.abruptClosingOfEmptyComment),this.state=_.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=_.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const n=this.currentToken;switch(t){case y.HYPHEN_MINUS:{this.state=_.COMMENT_END;break}case y.GREATER_THAN_SIGN:{this._err(D.abruptClosingOfEmptyComment),this.state=_.DATA,this.emitCurrentComment(n);break}case y.EOF:{this._err(D.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=_.COMMENT,this._stateComment(t)}}_stateComment(t){const n=this.currentToken;switch(t){case y.HYPHEN_MINUS:{this.state=_.COMMENT_END_DASH;break}case y.LESS_THAN_SIGN:{n.data+="<",this.state=_.COMMENT_LESS_THAN_SIGN;break}case y.NULL:{this._err(D.unexpectedNullCharacter),n.data+=we;break}case y.EOF:{this._err(D.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const n=this.currentToken;switch(t){case y.EXCLAMATION_MARK:{n.data+="!",this.state=_.COMMENT_LESS_THAN_SIGN_BANG;break}case y.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=_.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===y.HYPHEN_MINUS?this.state=_.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=_.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===y.HYPHEN_MINUS?this.state=_.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=_.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==y.GREATER_THAN_SIGN&&t!==y.EOF&&this._err(D.nestedComment),this.state=_.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case y.HYPHEN_MINUS:{this.state=_.COMMENT_END;break}case y.EOF:{this._err(D.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=_.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const n=this.currentToken;switch(t){case y.GREATER_THAN_SIGN:{this.state=_.DATA,this.emitCurrentComment(n);break}case y.EXCLAMATION_MARK:{this.state=_.COMMENT_END_BANG;break}case y.HYPHEN_MINUS:{n.data+="-";break}case y.EOF:{this._err(D.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=_.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const n=this.currentToken;switch(t){case y.HYPHEN_MINUS:{n.data+="--!",this.state=_.COMMENT_END_DASH;break}case y.GREATER_THAN_SIGN:{this._err(D.incorrectlyClosedComment),this.state=_.DATA,this.emitCurrentComment(n);break}case y.EOF:{this._err(D.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=_.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case y.SPACE:case y.LINE_FEED:case y.TABULATION:case y.FORM_FEED:{this.state=_.BEFORE_DOCTYPE_NAME;break}case y.GREATER_THAN_SIGN:{this.state=_.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case y.EOF:{this._err(D.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(D.missingWhitespaceBeforeDoctypeName),this.state=_.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(Oi(t))this._createDoctypeToken(String.fromCharCode(eu(t))),this.state=_.DOCTYPE_NAME;else switch(t){case y.SPACE:case y.LINE_FEED:case y.TABULATION:case y.FORM_FEED:break;case y.NULL:{this._err(D.unexpectedNullCharacter),this._createDoctypeToken(we),this.state=_.DOCTYPE_NAME;break}case y.GREATER_THAN_SIGN:{this._err(D.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=_.DATA;break}case y.EOF:{this._err(D.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=_.DOCTYPE_NAME}}_stateDoctypeName(t){const n=this.currentToken;switch(t){case y.SPACE:case y.LINE_FEED:case y.TABULATION:case y.FORM_FEED:{this.state=_.AFTER_DOCTYPE_NAME;break}case y.GREATER_THAN_SIGN:{this.state=_.DATA,this.emitCurrentDoctype(n);break}case y.NULL:{this._err(D.unexpectedNullCharacter),n.name+=we;break}case y.EOF:{this._err(D.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(Oi(t)?eu(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case y.SPACE:case y.LINE_FEED:case y.TABULATION:case y.FORM_FEED:break;case y.GREATER_THAN_SIGN:{this.state=_.DATA,this.emitCurrentDoctype(n);break}case y.EOF:{this._err(D.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(ot.PUBLIC,!1)?this.state=_.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(ot.SYSTEM,!1)?this.state=_.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(D.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=_.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case y.SPACE:case y.LINE_FEED:case y.TABULATION:case y.FORM_FEED:{this.state=_.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case y.QUOTATION_MARK:{this._err(D.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=_.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case y.APOSTROPHE:{this._err(D.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=_.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case y.GREATER_THAN_SIGN:{this._err(D.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=_.DATA,this.emitCurrentDoctype(n);break}case y.EOF:{this._err(D.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(D.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=_.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case y.SPACE:case y.LINE_FEED:case y.TABULATION:case y.FORM_FEED:break;case y.QUOTATION_MARK:{n.publicId="",this.state=_.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case y.APOSTROPHE:{n.publicId="",this.state=_.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case y.GREATER_THAN_SIGN:{this._err(D.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=_.DATA,this.emitCurrentDoctype(n);break}case y.EOF:{this._err(D.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(D.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=_.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case y.QUOTATION_MARK:{this.state=_.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case y.NULL:{this._err(D.unexpectedNullCharacter),n.publicId+=we;break}case y.GREATER_THAN_SIGN:{this._err(D.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=_.DATA;break}case y.EOF:{this._err(D.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case y.APOSTROPHE:{this.state=_.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case y.NULL:{this._err(D.unexpectedNullCharacter),n.publicId+=we;break}case y.GREATER_THAN_SIGN:{this._err(D.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=_.DATA;break}case y.EOF:{this._err(D.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case y.SPACE:case y.LINE_FEED:case y.TABULATION:case y.FORM_FEED:{this.state=_.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case y.GREATER_THAN_SIGN:{this.state=_.DATA,this.emitCurrentDoctype(n);break}case y.QUOTATION_MARK:{this._err(D.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=_.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case y.APOSTROPHE:{this._err(D.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=_.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case y.EOF:{this._err(D.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(D.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=_.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case y.SPACE:case y.LINE_FEED:case y.TABULATION:case y.FORM_FEED:break;case y.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=_.DATA;break}case y.QUOTATION_MARK:{n.systemId="",this.state=_.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case y.APOSTROPHE:{n.systemId="",this.state=_.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case y.EOF:{this._err(D.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(D.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=_.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case y.SPACE:case y.LINE_FEED:case y.TABULATION:case y.FORM_FEED:{this.state=_.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case y.QUOTATION_MARK:{this._err(D.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=_.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case y.APOSTROPHE:{this._err(D.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=_.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case y.GREATER_THAN_SIGN:{this._err(D.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=_.DATA,this.emitCurrentDoctype(n);break}case y.EOF:{this._err(D.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(D.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=_.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case y.SPACE:case y.LINE_FEED:case y.TABULATION:case y.FORM_FEED:break;case y.QUOTATION_MARK:{n.systemId="",this.state=_.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case y.APOSTROPHE:{n.systemId="",this.state=_.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case y.GREATER_THAN_SIGN:{this._err(D.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=_.DATA,this.emitCurrentDoctype(n);break}case y.EOF:{this._err(D.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(D.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=_.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case y.QUOTATION_MARK:{this.state=_.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case y.NULL:{this._err(D.unexpectedNullCharacter),n.systemId+=we;break}case y.GREATER_THAN_SIGN:{this._err(D.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=_.DATA;break}case y.EOF:{this._err(D.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case y.APOSTROPHE:{this.state=_.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case y.NULL:{this._err(D.unexpectedNullCharacter),n.systemId+=we;break}case y.GREATER_THAN_SIGN:{this._err(D.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=_.DATA;break}case y.EOF:{this._err(D.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case y.SPACE:case y.LINE_FEED:case y.TABULATION:case y.FORM_FEED:break;case y.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=_.DATA;break}case y.EOF:{this._err(D.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(D.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=_.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case y.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=_.DATA;break}case y.NULL:{this._err(D.unexpectedNullCharacter);break}case y.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case y.RIGHT_SQUARE_BRACKET:{this.state=_.CDATA_SECTION_BRACKET;break}case y.EOF:{this._err(D.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===y.RIGHT_SQUARE_BRACKET?this.state=_.CDATA_SECTION_END:(this._emitChars("]"),this.state=_.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case y.GREATER_THAN_SIGN:{this.state=_.DATA;break}case y.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=_.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(y.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&B0(this.preprocessor.peek(1))?_.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){B0(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===y.SEMICOLON&&this._err(D.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const eg=new Set([l.DD,l.DT,l.LI,l.OPTGROUP,l.OPTION,l.P,l.RB,l.RP,l.RT,l.RTC]),U0=new Set([...eg,l.CAPTION,l.COLGROUP,l.TBODY,l.TD,l.TFOOT,l.TH,l.THEAD,l.TR]),Ku=new Set([l.APPLET,l.CAPTION,l.HTML,l.MARQUEE,l.OBJECT,l.TABLE,l.TD,l.TEMPLATE,l.TH]),GS=new Set([...Ku,l.OL,l.UL]),KS=new Set([...Ku,l.BUTTON]),H0=new Set([l.ANNOTATION_XML,l.MI,l.MN,l.MO,l.MS,l.MTEXT]),z0=new Set([l.DESC,l.FOREIGN_OBJECT,l.TITLE]),XS=new Set([l.TR,l.TEMPLATE,l.HTML]),JS=new Set([l.TBODY,l.TFOOT,l.THEAD,l.TEMPLATE,l.HTML]),ZS=new Set([l.TABLE,l.TEMPLATE,l.HTML]),eA=new Set([l.TD,l.TH]);class tA{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,n,r){this.treeAdapter=n,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=l.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===l.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===B.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,n){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,n,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&(this.current=n)}insertAfter(t,n,r){const i=this._indexOf(t)+1;this.items.splice(i,0,n),this.tagIDs.splice(i,0,r),this.stackTop++,i===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,i===this.stackTop)}popUntilTagNamePopped(t){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==B.HTML);this.shortenToLength(Math.max(n,0))}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop<t)}}popUntilElementPopped(t){const n=this._indexOf(t);this.shortenToLength(Math.max(n,0))}popUntilPopped(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(Math.max(r,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(Ol,B.HTML)}popUntilTableCellPopped(){this.popUntilPopped(eA,B.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,n){for(let r=this.stackTop;r>=0;r--)if(t.has(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return-1}clearBackTo(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(ZS,B.HTML)}clearBackToTableBodyContext(){this.clearBackTo(JS,B.HTML)}clearBackToTableRowContext(){this.clearBackTo(XS,B.HTML)}remove(t){const n=this._indexOf(t);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===l.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const n=this._indexOf(t)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===l.HTML}hasInDynamicScope(t,n){for(let r=this.stackTop;r>=0;r--){const i=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case B.HTML:{if(i===t)return!0;if(n.has(i))return!1;break}case B.SVG:{if(z0.has(i))return!1;break}case B.MATHML:{if(H0.has(i))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,Ku)}hasInListItemScope(t){return this.hasInDynamicScope(t,GS)}hasInButtonScope(t){return this.hasInDynamicScope(t,KS)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case B.HTML:{if(Ol.has(n))return!0;if(Ku.has(n))return!1;break}case B.SVG:{if(z0.has(n))return!1;break}case B.MATHML:{if(H0.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===B.HTML)switch(this.tagIDs[n]){case t:return!0;case l.TABLE:case l.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===B.HTML)switch(this.tagIDs[t]){case l.TBODY:case l.THEAD:case l.TFOOT:return!0;case l.TABLE:case l.HTML:return!1}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===B.HTML)switch(this.tagIDs[n]){case t:return!0;case l.OPTION:case l.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&eg.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&U0.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&U0.has(this.currentTagId);)this.pop()}}const To=3;var Gt;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(Gt||(Gt={}));const Y0={type:Gt.Marker};class nA{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],i=n.length,s=this.treeAdapter.getTagName(t),u=this.treeAdapter.getNamespaceURI(t);for(let a=0;a<this.entries.length;a++){const o=this.entries[a];if(o.type===Gt.Marker)break;const{element:c}=o;if(this.treeAdapter.getTagName(c)===s&&this.treeAdapter.getNamespaceURI(c)===u){const h=this.treeAdapter.getAttrList(c);h.length===i&&r.push({idx:a,attrs:h})}}return r}_ensureNoahArkCondition(t){if(this.entries.length<To)return;const n=this.treeAdapter.getAttrList(t),r=this._getNoahArkConditionCandidates(t,n);if(r.length<To)return;const i=new Map(n.map(u=>[u.name,u.value]));let s=0;for(let u=0;u<r.length;u++){const a=r[u];a.attrs.every(o=>i.get(o.name)===o.value)&&(s+=1,s>=To&&this.entries.splice(a.idx,1))}}insertMarker(){this.entries.unshift(Y0)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:Gt.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:Gt.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n!==-1&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(Y0);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===Gt.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===Gt.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===Gt.Element&&n.element===t)}}const Nn={createDocument(){return{nodeName:"#document",mode:wt.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){const i=e.childNodes.find(s=>s.nodeName==="#documentType");if(i)i.name=t,i.publicId=n,i.systemId=r;else{const s={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};Nn.appendChild(e,s)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(Nn.isTextNode(n)){n.value+=t;return}}Nn.appendChild(e,Nn.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&Nn.isTextNode(r)?r.value+=t:Nn.insertBefore(e,Nn.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},tg="html",rA="about:legacy-compat",iA="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",ng=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],sA=[...ng,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],uA=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),rg=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],aA=[...rg,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function V0(e,t){return t.some(n=>e.startsWith(n))}function oA(e){return e.name===tg&&e.publicId===null&&(e.systemId===null||e.systemId===rA)}function lA(e){if(e.name!==tg)return wt.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===iA)return wt.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),uA.has(n))return wt.QUIRKS;let r=t===null?sA:ng;if(V0(n,r))return wt.QUIRKS;if(r=t===null?rg:aA,V0(n,r))return wt.LIMITED_QUIRKS}return wt.NO_QUIRKS}const $0={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},cA="definitionurl",dA="definitionURL",fA=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),hA=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:B.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:B.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:B.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:B.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:B.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:B.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:B.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:B.XML}],["xml:space",{prefix:"xml",name:"space",namespace:B.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:B.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:B.XMLNS}]]),mA=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),pA=new Set([l.B,l.BIG,l.BLOCKQUOTE,l.BODY,l.BR,l.CENTER,l.CODE,l.DD,l.DIV,l.DL,l.DT,l.EM,l.EMBED,l.H1,l.H2,l.H3,l.H4,l.H5,l.H6,l.HEAD,l.HR,l.I,l.IMG,l.LI,l.LISTING,l.MENU,l.META,l.NOBR,l.OL,l.P,l.PRE,l.RUBY,l.S,l.SMALL,l.SPAN,l.STRONG,l.STRIKE,l.SUB,l.SUP,l.TABLE,l.TT,l.U,l.UL,l.VAR]);function gA(e){const t=e.tagID;return t===l.FONT&&e.attrs.some(({name:r})=>r===ar.COLOR||r===ar.SIZE||r===ar.FACE)||pA.has(t)}function ig(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===cA){e.attrs[t].name=dA;break}}function sg(e){for(let t=0;t<e.attrs.length;t++){const n=fA.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function nd(e){for(let t=0;t<e.attrs.length;t++){const n=hA.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function EA(e){const t=mA.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=ci(e.tagName))}function xA(e,t){return t===B.MATHML&&(e===l.MI||e===l.MO||e===l.MN||e===l.MS||e===l.MTEXT)}function bA(e,t,n){if(t===B.MATHML&&e===l.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===ar.ENCODING){const i=n[r].value.toLowerCase();return i===$0.TEXT_HTML||i===$0.APPLICATION_XML}}return t===B.SVG&&(e===l.FOREIGN_OBJECT||e===l.DESC||e===l.TITLE)}function TA(e,t,n,r){return(!r||r===B.HTML)&&bA(e,t,n)||(!r||r===B.MATHML)&&xA(e,t)}const yA="hidden",kA=8,_A=3;var C;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(C||(C={}));const NA={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},ug=new Set([l.TABLE,l.TBODY,l.TFOOT,l.THEAD,l.TR]),W0={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Nn,onParseError:null};class Q0{constructor(t,n,r=null,i=null){this.fragmentContext=r,this.scriptHandler=i,this.currentToken=null,this.stopped=!1,this.insertionMode=C.INITIAL,this.originalInsertionMode=C.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...W0,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=n??this.treeAdapter.createDocument(),this.tokenizer=new qS(this.options,this),this.activeFormattingElements=new nA(this.treeAdapter),this.fragmentContextID=r?ci(this.treeAdapter.getTagName(r)):l.UNKNOWN,this._setContextModes(r??this.document,this.fragmentContextID),this.openElements=new tA(this.document,this.treeAdapter,this)}static parse(t,n){const r=new this(n);return r.tokenizer.write(t,!0),r.document}static getFragmentParser(t,n){const r={...W0,...n};t??(t=r.treeAdapter.createElement(L.TEMPLATE,B.HTML,[]));const i=r.treeAdapter.createElement("documentmock",B.HTML,[]),s=new this(r,i,t);return s.fragmentContextID===l.TEMPLATE&&s.tmplInsertionModeStack.unshift(C.IN_TEMPLATE),s._initTokenizerForFragmentParsing(),s._insertFakeRootElement(),s._resetInsertionMode(),s._findFormInFragmentContext(),s}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),n=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,n),n}_err(t,n,r){var i;if(!this.onParseError)return;const s=(i=t.location)!==null&&i!==void 0?i:NA,u={code:n,startLine:s.startLine,startCol:s.startCol,startOffset:s.startOffset,endLine:r?s.startLine:s.endLine,endCol:r?s.startCol:s.endCol,endOffset:r?s.startOffset:s.endOffset};this.onParseError(u)}onItemPush(t,n,r){var i,s;(s=(i=this.treeAdapter).onItemPush)===null||s===void 0||s.call(i,t),r&&this.openElements.stackTop>0&&this._setContextModes(t,n)}onItemPop(t,n){var r,i;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(i=(r=this.treeAdapter).onItemPop)===null||i===void 0||i.call(r,t,this.openElements.current),n){let s,u;this.openElements.stackTop===0&&this.fragmentContext?(s=this.fragmentContext,u=this.fragmentContextID):{current:s,currentTagId:u}=this.openElements,this._setContextModes(s,u)}}_setContextModes(t,n){const r=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===B.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&t!==void 0&&n!==void 0&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,B.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=C.TEXT}switchToPlaintextParsing(){this.insertionMode=C.TEXT,this.originalInsertionMode=C.IN_BODY,this.tokenizer.state=Me.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===L.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==B.HTML))switch(this.fragmentContextID){case l.TITLE:case l.TEXTAREA:{this.tokenizer.state=Me.RCDATA;break}case l.STYLE:case l.XMP:case l.IFRAME:case l.NOEMBED:case l.NOFRAMES:case l.NOSCRIPT:{this.tokenizer.state=Me.RAWTEXT;break}case l.SCRIPT:{this.tokenizer.state=Me.SCRIPT_DATA;break}case l.PLAINTEXT:{this.tokenizer.state=Me.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",i=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,i),t.location){const u=this.treeAdapter.getChildNodes(this.document).find(a=>this.treeAdapter.isDocumentTypeNode(a));u&&this.treeAdapter.setNodeSourceCodeLocation(u,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const r=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r??this.document,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,n){const r=this.treeAdapter.createElement(t,B.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,B.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(L.HTML,B.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,l.HTML)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_insertCharacters(t){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,t.chars,r):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const i=this.treeAdapter.getChildNodes(n),s=r?i.lastIndexOf(r):i.length,u=i[s-1];if(this.treeAdapter.getNodeSourceCodeLocation(u)){const{endLine:o,endCol:c,endOffset:h}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(u,{endLine:o,endCol:c,endOffset:h})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(u,t.location)}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const r=n.location,i=this.treeAdapter.getTagName(t),s=n.type===oe.END_TAG&&i===n.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,s)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,t.tagID===l.SVG&&this.treeAdapter.getTagName(n)===L.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===B.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===l.MGLYPH||t.tagID===l.MALIGNMARK)&&r!==void 0&&!this._isIntegrationPoint(r,n,B.HTML)}_processToken(t){switch(t.type){case oe.CHARACTER:{this.onCharacter(t);break}case oe.NULL_CHARACTER:{this.onNullCharacter(t);break}case oe.COMMENT:{this.onComment(t);break}case oe.DOCTYPE:{this.onDoctype(t);break}case oe.START_TAG:{this._processStartTag(t);break}case oe.END_TAG:{this.onEndTag(t);break}case oe.EOF:{this.onEof(t);break}case oe.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const i=this.treeAdapter.getNamespaceURI(n),s=this.treeAdapter.getAttrList(n);return TA(t,i,s,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(i=>i.type===Gt.Marker||this.openElements.contains(i.element)),r=n===-1?t-1:n-1;for(let i=r;i>=0;i--){const s=this.activeFormattingElements.entries[i];this._insertElement(s.token,this.treeAdapter.getNamespaceURI(s.element)),s.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=C.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(l.P),this.openElements.popUntilTagNamePopped(l.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case l.TR:{this.insertionMode=C.IN_ROW;return}case l.TBODY:case l.THEAD:case l.TFOOT:{this.insertionMode=C.IN_TABLE_BODY;return}case l.CAPTION:{this.insertionMode=C.IN_CAPTION;return}case l.COLGROUP:{this.insertionMode=C.IN_COLUMN_GROUP;return}case l.TABLE:{this.insertionMode=C.IN_TABLE;return}case l.BODY:{this.insertionMode=C.IN_BODY;return}case l.FRAMESET:{this.insertionMode=C.IN_FRAMESET;return}case l.SELECT:{this._resetInsertionModeForSelect(t);return}case l.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case l.HTML:{this.insertionMode=this.headElement?C.AFTER_HEAD:C.BEFORE_HEAD;return}case l.TD:case l.TH:{if(t>0){this.insertionMode=C.IN_CELL;return}break}case l.HEAD:{if(t>0){this.insertionMode=C.IN_HEAD;return}break}}this.insertionMode=C.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===l.TEMPLATE)break;if(r===l.TABLE){this.insertionMode=C.IN_SELECT_IN_TABLE;return}}this.insertionMode=C.IN_SELECT}_isElementCausesFosterParenting(t){return ug.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case l.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===B.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case l.TABLE:{const r=this.treeAdapter.getParentNode(n);return r?{parent:r,beforeElement:n}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_isSpecialElement(t,n){const r=this.treeAdapter.getNamespaceURI(t);return VS[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){e4(this,t);return}switch(this.insertionMode){case C.INITIAL:{Si(this,t);break}case C.BEFORE_HTML:{$i(this,t);break}case C.BEFORE_HEAD:{Wi(this,t);break}case C.IN_HEAD:{Qi(this,t);break}case C.IN_HEAD_NO_SCRIPT:{qi(this,t);break}case C.AFTER_HEAD:{Gi(this,t);break}case C.IN_BODY:case C.IN_CAPTION:case C.IN_CELL:case C.IN_TEMPLATE:{og(this,t);break}case C.TEXT:case C.IN_SELECT:case C.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case C.IN_TABLE:case C.IN_TABLE_BODY:case C.IN_ROW:{yo(this,t);break}case C.IN_TABLE_TEXT:{mg(this,t);break}case C.IN_COLUMN_GROUP:{Xu(this,t);break}case C.AFTER_BODY:{Ju(this,t);break}case C.AFTER_AFTER_BODY:{xu(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Z6(this,t);return}switch(this.insertionMode){case C.INITIAL:{Si(this,t);break}case C.BEFORE_HTML:{$i(this,t);break}case C.BEFORE_HEAD:{Wi(this,t);break}case C.IN_HEAD:{Qi(this,t);break}case C.IN_HEAD_NO_SCRIPT:{qi(this,t);break}case C.AFTER_HEAD:{Gi(this,t);break}case C.TEXT:{this._insertCharacters(t);break}case C.IN_TABLE:case C.IN_TABLE_BODY:case C.IN_ROW:{yo(this,t);break}case C.IN_COLUMN_GROUP:{Xu(this,t);break}case C.AFTER_BODY:{Ju(this,t);break}case C.AFTER_AFTER_BODY:{xu(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){Rl(this,t);return}switch(this.insertionMode){case C.INITIAL:case C.BEFORE_HTML:case C.BEFORE_HEAD:case C.IN_HEAD:case C.IN_HEAD_NO_SCRIPT:case C.AFTER_HEAD:case C.IN_BODY:case C.IN_TABLE:case C.IN_CAPTION:case C.IN_COLUMN_GROUP:case C.IN_TABLE_BODY:case C.IN_ROW:case C.IN_CELL:case C.IN_SELECT:case C.IN_SELECT_IN_TABLE:case C.IN_TEMPLATE:case C.IN_FRAMESET:case C.AFTER_FRAMESET:{Rl(this,t);break}case C.IN_TABLE_TEXT:{Ai(this,t);break}case C.AFTER_BODY:{LA(this,t);break}case C.AFTER_AFTER_BODY:case C.AFTER_AFTER_FRAMESET:{OA(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case C.INITIAL:{RA(this,t);break}case C.BEFORE_HEAD:case C.IN_HEAD:case C.IN_HEAD_NO_SCRIPT:case C.AFTER_HEAD:{this._err(t,D.misplacedDoctype);break}case C.IN_TABLE_TEXT:{Ai(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,D.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?t4(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case C.INITIAL:{Si(this,t);break}case C.BEFORE_HTML:{DA(this,t);break}case C.BEFORE_HEAD:{MA(this,t);break}case C.IN_HEAD:{Yt(this,t);break}case C.IN_HEAD_NO_SCRIPT:{jA(this,t);break}case C.AFTER_HEAD:{HA(this,t);break}case C.IN_BODY:{tt(this,t);break}case C.IN_TABLE:{ri(this,t);break}case C.IN_TABLE_TEXT:{Ai(this,t);break}case C.IN_CAPTION:{F6(this,t);break}case C.IN_COLUMN_GROUP:{sd(this,t);break}case C.IN_TABLE_BODY:{wa(this,t);break}case C.IN_ROW:{va(this,t);break}case C.IN_CELL:{U6(this,t);break}case C.IN_SELECT:{Eg(this,t);break}case C.IN_SELECT_IN_TABLE:{z6(this,t);break}case C.IN_TEMPLATE:{V6(this,t);break}case C.AFTER_BODY:{W6(this,t);break}case C.IN_FRAMESET:{Q6(this,t);break}case C.AFTER_FRAMESET:{G6(this,t);break}case C.AFTER_AFTER_BODY:{X6(this,t);break}case C.AFTER_AFTER_FRAMESET:{J6(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?n4(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case C.INITIAL:{Si(this,t);break}case C.BEFORE_HTML:{PA(this,t);break}case C.BEFORE_HEAD:{FA(this,t);break}case C.IN_HEAD:{BA(this,t);break}case C.IN_HEAD_NO_SCRIPT:{UA(this,t);break}case C.AFTER_HEAD:{zA(this,t);break}case C.IN_BODY:{Aa(this,t);break}case C.TEXT:{A6(this,t);break}case C.IN_TABLE:{xs(this,t);break}case C.IN_TABLE_TEXT:{Ai(this,t);break}case C.IN_CAPTION:{B6(this,t);break}case C.IN_COLUMN_GROUP:{j6(this,t);break}case C.IN_TABLE_BODY:{Dl(this,t);break}case C.IN_ROW:{gg(this,t);break}case C.IN_CELL:{H6(this,t);break}case C.IN_SELECT:{xg(this,t);break}case C.IN_SELECT_IN_TABLE:{Y6(this,t);break}case C.IN_TEMPLATE:{$6(this,t);break}case C.AFTER_BODY:{Tg(this,t);break}case C.IN_FRAMESET:{q6(this,t);break}case C.AFTER_FRAMESET:{K6(this,t);break}case C.AFTER_AFTER_BODY:{xu(this,t);break}}}onEof(t){switch(this.insertionMode){case C.INITIAL:{Si(this,t);break}case C.BEFORE_HTML:{$i(this,t);break}case C.BEFORE_HEAD:{Wi(this,t);break}case C.IN_HEAD:{Qi(this,t);break}case C.IN_HEAD_NO_SCRIPT:{qi(this,t);break}case C.AFTER_HEAD:{Gi(this,t);break}case C.IN_BODY:case C.IN_TABLE:case C.IN_CAPTION:case C.IN_COLUMN_GROUP:case C.IN_TABLE_BODY:case C.IN_ROW:case C.IN_CELL:case C.IN_SELECT:case C.IN_SELECT_IN_TABLE:{fg(this,t);break}case C.TEXT:{w6(this,t);break}case C.IN_TABLE_TEXT:{Ai(this,t);break}case C.IN_TEMPLATE:{bg(this,t);break}case C.AFTER_BODY:case C.IN_FRAMESET:case C.AFTER_FRAMESET:case C.AFTER_AFTER_BODY:case C.AFTER_AFTER_FRAMESET:{id(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===y.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case C.IN_HEAD:case C.IN_HEAD_NO_SCRIPT:case C.AFTER_HEAD:case C.TEXT:case C.IN_COLUMN_GROUP:case C.IN_SELECT:case C.IN_SELECT_IN_TABLE:case C.IN_FRAMESET:case C.AFTER_FRAMESET:{this._insertCharacters(t);break}case C.IN_BODY:case C.IN_CAPTION:case C.IN_CELL:case C.IN_TEMPLATE:case C.AFTER_BODY:case C.AFTER_AFTER_BODY:case C.AFTER_AFTER_FRAMESET:{ag(this,t);break}case C.IN_TABLE:case C.IN_TABLE_BODY:case C.IN_ROW:{yo(this,t);break}case C.IN_TABLE_TEXT:{hg(this,t);break}}}}function CA(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):dg(e,t),n}function SA(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i,e.openElements.tagIDs[r])&&(n=i)}return n||(e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),n}function AA(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let s=0,u=i;u!==n;s++,u=i){i=e.openElements.getCommonAncestor(u);const a=e.activeFormattingElements.getElementEntry(u),o=a&&s>=_A;!a||o?(o&&e.activeFormattingElements.removeEntry(a),e.openElements.remove(u)):(u=wA(e,a),r===t&&(e.activeFormattingElements.bookmark=a),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(u,r),r=u)}return r}function wA(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function vA(e,t,n){const r=e.treeAdapter.getTagName(t),i=ci(r);if(e._isElementCausesFosterParenting(i))e._fosterParentElement(n);else{const s=e.treeAdapter.getNamespaceURI(t);i===l.TEMPLATE&&s===B.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function IA(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:i}=n,s=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,s),e.treeAdapter.appendChild(t,s),e.activeFormattingElements.insertElementAfterBookmark(s,i),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,s,i.tagID)}function rd(e,t){for(let n=0;n<kA;n++){const r=CA(e,t);if(!r)break;const i=SA(e,r);if(!i)break;e.activeFormattingElements.bookmark=r;const s=AA(e,i,r.element),u=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(s),u&&vA(e,u,s),IA(e,i,r)}}function Rl(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function LA(e,t){e._appendCommentNode(t,e.openElements.items[0])}function OA(e,t){e._appendCommentNode(t,e.document)}function id(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],i=e.treeAdapter.getNodeSourceCodeLocation(r);if(i&&!i.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const s=e.openElements.items[1],u=e.treeAdapter.getNodeSourceCodeLocation(s);u&&!u.endTag&&e._setEndLocation(s,t)}}}}function RA(e,t){e._setDocumentType(t);const n=t.forceQuirks?wt.QUIRKS:lA(t);oA(t)||e._err(t,D.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=C.BEFORE_HTML}function Si(e,t){e._err(t,D.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,wt.QUIRKS),e.insertionMode=C.BEFORE_HTML,e._processToken(t)}function DA(e,t){t.tagID===l.HTML?(e._insertElement(t,B.HTML),e.insertionMode=C.BEFORE_HEAD):$i(e,t)}function PA(e,t){const n=t.tagID;(n===l.HTML||n===l.HEAD||n===l.BODY||n===l.BR)&&$i(e,t)}function $i(e,t){e._insertFakeRootElement(),e.insertionMode=C.BEFORE_HEAD,e._processToken(t)}function MA(e,t){switch(t.tagID){case l.HTML:{tt(e,t);break}case l.HEAD:{e._insertElement(t,B.HTML),e.headElement=e.openElements.current,e.insertionMode=C.IN_HEAD;break}default:Wi(e,t)}}function FA(e,t){const n=t.tagID;n===l.HEAD||n===l.BODY||n===l.HTML||n===l.BR?Wi(e,t):e._err(t,D.endTagWithoutMatchingOpenElement)}function Wi(e,t){e._insertFakeElement(L.HEAD,l.HEAD),e.headElement=e.openElements.current,e.insertionMode=C.IN_HEAD,e._processToken(t)}function Yt(e,t){switch(t.tagID){case l.HTML:{tt(e,t);break}case l.BASE:case l.BASEFONT:case l.BGSOUND:case l.LINK:case l.META:{e._appendElement(t,B.HTML),t.ackSelfClosing=!0;break}case l.TITLE:{e._switchToTextParsing(t,Me.RCDATA);break}case l.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,Me.RAWTEXT):(e._insertElement(t,B.HTML),e.insertionMode=C.IN_HEAD_NO_SCRIPT);break}case l.NOFRAMES:case l.STYLE:{e._switchToTextParsing(t,Me.RAWTEXT);break}case l.SCRIPT:{e._switchToTextParsing(t,Me.SCRIPT_DATA);break}case l.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=C.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(C.IN_TEMPLATE);break}case l.HEAD:{e._err(t,D.misplacedStartTagForHeadElement);break}default:Qi(e,t)}}function BA(e,t){switch(t.tagID){case l.HEAD:{e.openElements.pop(),e.insertionMode=C.AFTER_HEAD;break}case l.BODY:case l.BR:case l.HTML:{Qi(e,t);break}case l.TEMPLATE:{Tr(e,t);break}default:e._err(t,D.endTagWithoutMatchingOpenElement)}}function Tr(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==l.TEMPLATE&&e._err(t,D.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(l.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,D.endTagWithoutMatchingOpenElement)}function Qi(e,t){e.openElements.pop(),e.insertionMode=C.AFTER_HEAD,e._processToken(t)}function jA(e,t){switch(t.tagID){case l.HTML:{tt(e,t);break}case l.BASEFONT:case l.BGSOUND:case l.HEAD:case l.LINK:case l.META:case l.NOFRAMES:case l.STYLE:{Yt(e,t);break}case l.NOSCRIPT:{e._err(t,D.nestedNoscriptInHead);break}default:qi(e,t)}}function UA(e,t){switch(t.tagID){case l.NOSCRIPT:{e.openElements.pop(),e.insertionMode=C.IN_HEAD;break}case l.BR:{qi(e,t);break}default:e._err(t,D.endTagWithoutMatchingOpenElement)}}function qi(e,t){const n=t.type===oe.EOF?D.openElementsLeftAfterEof:D.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=C.IN_HEAD,e._processToken(t)}function HA(e,t){switch(t.tagID){case l.HTML:{tt(e,t);break}case l.BODY:{e._insertElement(t,B.HTML),e.framesetOk=!1,e.insertionMode=C.IN_BODY;break}case l.FRAMESET:{e._insertElement(t,B.HTML),e.insertionMode=C.IN_FRAMESET;break}case l.BASE:case l.BASEFONT:case l.BGSOUND:case l.LINK:case l.META:case l.NOFRAMES:case l.SCRIPT:case l.STYLE:case l.TEMPLATE:case l.TITLE:{e._err(t,D.abandonedHeadElementChild),e.openElements.push(e.headElement,l.HEAD),Yt(e,t),e.openElements.remove(e.headElement);break}case l.HEAD:{e._err(t,D.misplacedStartTagForHeadElement);break}default:Gi(e,t)}}function zA(e,t){switch(t.tagID){case l.BODY:case l.HTML:case l.BR:{Gi(e,t);break}case l.TEMPLATE:{Tr(e,t);break}default:e._err(t,D.endTagWithoutMatchingOpenElement)}}function Gi(e,t){e._insertFakeElement(L.BODY,l.BODY),e.insertionMode=C.IN_BODY,Sa(e,t)}function Sa(e,t){switch(t.type){case oe.CHARACTER:{og(e,t);break}case oe.WHITESPACE_CHARACTER:{ag(e,t);break}case oe.COMMENT:{Rl(e,t);break}case oe.START_TAG:{tt(e,t);break}case oe.END_TAG:{Aa(e,t);break}case oe.EOF:{fg(e,t);break}}}function ag(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function og(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function YA(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function VA(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function $A(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,B.HTML),e.insertionMode=C.IN_FRAMESET)}function WA(e,t){e.openElements.hasInButtonScope(l.P)&&e._closePElement(),e._insertElement(t,B.HTML)}function QA(e,t){e.openElements.hasInButtonScope(l.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&Ol.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,B.HTML)}function qA(e,t){e.openElements.hasInButtonScope(l.P)&&e._closePElement(),e._insertElement(t,B.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function GA(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(l.P)&&e._closePElement(),e._insertElement(t,B.HTML),n||(e.formElement=e.openElements.current))}function KA(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.tagIDs[r];if(n===l.LI&&i===l.LI||(n===l.DD||n===l.DT)&&(i===l.DD||i===l.DT)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.popUntilTagNamePopped(i);break}if(i!==l.ADDRESS&&i!==l.DIV&&i!==l.P&&e._isSpecialElement(e.openElements.items[r],i))break}e.openElements.hasInButtonScope(l.P)&&e._closePElement(),e._insertElement(t,B.HTML)}function XA(e,t){e.openElements.hasInButtonScope(l.P)&&e._closePElement(),e._insertElement(t,B.HTML),e.tokenizer.state=Me.PLAINTEXT}function JA(e,t){e.openElements.hasInScope(l.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(l.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,B.HTML),e.framesetOk=!1}function ZA(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(L.A);n&&(rd(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,B.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function e6(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,B.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function t6(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(l.NOBR)&&(rd(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,B.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function n6(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,B.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function r6(e,t){e.treeAdapter.getDocumentMode(e.document)!==wt.QUIRKS&&e.openElements.hasInButtonScope(l.P)&&e._closePElement(),e._insertElement(t,B.HTML),e.framesetOk=!1,e.insertionMode=C.IN_TABLE}function lg(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,B.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function cg(e){const t=J1(e,ar.TYPE);return t!=null&&t.toLowerCase()===yA}function i6(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,B.HTML),cg(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function s6(e,t){e._appendElement(t,B.HTML),t.ackSelfClosing=!0}function u6(e,t){e.openElements.hasInButtonScope(l.P)&&e._closePElement(),e._appendElement(t,B.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function a6(e,t){t.tagName=L.IMG,t.tagID=l.IMG,lg(e,t)}function o6(e,t){e._insertElement(t,B.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Me.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=C.TEXT}function l6(e,t){e.openElements.hasInButtonScope(l.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Me.RAWTEXT)}function c6(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Me.RAWTEXT)}function q0(e,t){e._switchToTextParsing(t,Me.RAWTEXT)}function d6(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,B.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===C.IN_TABLE||e.insertionMode===C.IN_CAPTION||e.insertionMode===C.IN_TABLE_BODY||e.insertionMode===C.IN_ROW||e.insertionMode===C.IN_CELL?C.IN_SELECT_IN_TABLE:C.IN_SELECT}function f6(e,t){e.openElements.currentTagId===l.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,B.HTML)}function h6(e,t){e.openElements.hasInScope(l.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,B.HTML)}function m6(e,t){e.openElements.hasInScope(l.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(l.RTC),e._insertElement(t,B.HTML)}function p6(e,t){e._reconstructActiveFormattingElements(),ig(t),nd(t),t.selfClosing?e._appendElement(t,B.MATHML):e._insertElement(t,B.MATHML),t.ackSelfClosing=!0}function g6(e,t){e._reconstructActiveFormattingElements(),sg(t),nd(t),t.selfClosing?e._appendElement(t,B.SVG):e._insertElement(t,B.SVG),t.ackSelfClosing=!0}function G0(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,B.HTML)}function tt(e,t){switch(t.tagID){case l.I:case l.S:case l.B:case l.U:case l.EM:case l.TT:case l.BIG:case l.CODE:case l.FONT:case l.SMALL:case l.STRIKE:case l.STRONG:{e6(e,t);break}case l.A:{ZA(e,t);break}case l.H1:case l.H2:case l.H3:case l.H4:case l.H5:case l.H6:{QA(e,t);break}case l.P:case l.DL:case l.OL:case l.UL:case l.DIV:case l.DIR:case l.NAV:case l.MAIN:case l.MENU:case l.ASIDE:case l.CENTER:case l.FIGURE:case l.FOOTER:case l.HEADER:case l.HGROUP:case l.DIALOG:case l.DETAILS:case l.ADDRESS:case l.ARTICLE:case l.SEARCH:case l.SECTION:case l.SUMMARY:case l.FIELDSET:case l.BLOCKQUOTE:case l.FIGCAPTION:{WA(e,t);break}case l.LI:case l.DD:case l.DT:{KA(e,t);break}case l.BR:case l.IMG:case l.WBR:case l.AREA:case l.EMBED:case l.KEYGEN:{lg(e,t);break}case l.HR:{u6(e,t);break}case l.RB:case l.RTC:{h6(e,t);break}case l.RT:case l.RP:{m6(e,t);break}case l.PRE:case l.LISTING:{qA(e,t);break}case l.XMP:{l6(e,t);break}case l.SVG:{g6(e,t);break}case l.HTML:{YA(e,t);break}case l.BASE:case l.LINK:case l.META:case l.STYLE:case l.TITLE:case l.SCRIPT:case l.BGSOUND:case l.BASEFONT:case l.TEMPLATE:{Yt(e,t);break}case l.BODY:{VA(e,t);break}case l.FORM:{GA(e,t);break}case l.NOBR:{t6(e,t);break}case l.MATH:{p6(e,t);break}case l.TABLE:{r6(e,t);break}case l.INPUT:{i6(e,t);break}case l.PARAM:case l.TRACK:case l.SOURCE:{s6(e,t);break}case l.IMAGE:{a6(e,t);break}case l.BUTTON:{JA(e,t);break}case l.APPLET:case l.OBJECT:case l.MARQUEE:{n6(e,t);break}case l.IFRAME:{c6(e,t);break}case l.SELECT:{d6(e,t);break}case l.OPTION:case l.OPTGROUP:{f6(e,t);break}case l.NOEMBED:case l.NOFRAMES:{q0(e,t);break}case l.FRAMESET:{$A(e,t);break}case l.TEXTAREA:{o6(e,t);break}case l.NOSCRIPT:{e.options.scriptingEnabled?q0(e,t):G0(e,t);break}case l.PLAINTEXT:{XA(e,t);break}case l.COL:case l.TH:case l.TD:case l.TR:case l.HEAD:case l.FRAME:case l.TBODY:case l.TFOOT:case l.THEAD:case l.CAPTION:case l.COLGROUP:break;default:G0(e,t)}}function E6(e,t){if(e.openElements.hasInScope(l.BODY)&&(e.insertionMode=C.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function x6(e,t){e.openElements.hasInScope(l.BODY)&&(e.insertionMode=C.AFTER_BODY,Tg(e,t))}function b6(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function T6(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(l.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(l.FORM):n&&e.openElements.remove(n))}function y6(e){e.openElements.hasInButtonScope(l.P)||e._insertFakeElement(L.P,l.P),e._closePElement()}function k6(e){e.openElements.hasInListItemScope(l.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(l.LI),e.openElements.popUntilTagNamePopped(l.LI))}function _6(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function N6(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function C6(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function S6(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(L.BR,l.BR),e.openElements.pop(),e.framesetOk=!1}function dg(e,t){const n=t.tagName,r=t.tagID;for(let i=e.openElements.stackTop;i>0;i--){const s=e.openElements.items[i],u=e.openElements.tagIDs[i];if(r===u&&(r!==l.UNKNOWN||e.treeAdapter.getTagName(s)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=i&&e.openElements.shortenToLength(i);break}if(e._isSpecialElement(s,u))break}}function Aa(e,t){switch(t.tagID){case l.A:case l.B:case l.I:case l.S:case l.U:case l.EM:case l.TT:case l.BIG:case l.CODE:case l.FONT:case l.NOBR:case l.SMALL:case l.STRIKE:case l.STRONG:{rd(e,t);break}case l.P:{y6(e);break}case l.DL:case l.UL:case l.OL:case l.DIR:case l.DIV:case l.NAV:case l.PRE:case l.MAIN:case l.MENU:case l.ASIDE:case l.BUTTON:case l.CENTER:case l.FIGURE:case l.FOOTER:case l.HEADER:case l.HGROUP:case l.DIALOG:case l.ADDRESS:case l.ARTICLE:case l.DETAILS:case l.SEARCH:case l.SECTION:case l.SUMMARY:case l.LISTING:case l.FIELDSET:case l.BLOCKQUOTE:case l.FIGCAPTION:{b6(e,t);break}case l.LI:{k6(e);break}case l.DD:case l.DT:{_6(e,t);break}case l.H1:case l.H2:case l.H3:case l.H4:case l.H5:case l.H6:{N6(e);break}case l.BR:{S6(e);break}case l.BODY:{E6(e,t);break}case l.HTML:{x6(e,t);break}case l.FORM:{T6(e);break}case l.APPLET:case l.OBJECT:case l.MARQUEE:{C6(e,t);break}case l.TEMPLATE:{Tr(e,t);break}default:dg(e,t)}}function fg(e,t){e.tmplInsertionModeStack.length>0?bg(e,t):id(e,t)}function A6(e,t){var n;t.tagID===l.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function w6(e,t){e._err(t,D.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function yo(e,t){if(e.openElements.currentTagId!==void 0&&ug.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=C.IN_TABLE_TEXT,t.type){case oe.CHARACTER:{mg(e,t);break}case oe.WHITESPACE_CHARACTER:{hg(e,t);break}}else vs(e,t)}function v6(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,B.HTML),e.insertionMode=C.IN_CAPTION}function I6(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,B.HTML),e.insertionMode=C.IN_COLUMN_GROUP}function L6(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(L.COLGROUP,l.COLGROUP),e.insertionMode=C.IN_COLUMN_GROUP,sd(e,t)}function O6(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,B.HTML),e.insertionMode=C.IN_TABLE_BODY}function R6(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(L.TBODY,l.TBODY),e.insertionMode=C.IN_TABLE_BODY,wa(e,t)}function D6(e,t){e.openElements.hasInTableScope(l.TABLE)&&(e.openElements.popUntilTagNamePopped(l.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function P6(e,t){cg(t)?e._appendElement(t,B.HTML):vs(e,t),t.ackSelfClosing=!0}function M6(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,B.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function ri(e,t){switch(t.tagID){case l.TD:case l.TH:case l.TR:{R6(e,t);break}case l.STYLE:case l.SCRIPT:case l.TEMPLATE:{Yt(e,t);break}case l.COL:{L6(e,t);break}case l.FORM:{M6(e,t);break}case l.TABLE:{D6(e,t);break}case l.TBODY:case l.TFOOT:case l.THEAD:{O6(e,t);break}case l.INPUT:{P6(e,t);break}case l.CAPTION:{v6(e,t);break}case l.COLGROUP:{I6(e,t);break}default:vs(e,t)}}function xs(e,t){switch(t.tagID){case l.TABLE:{e.openElements.hasInTableScope(l.TABLE)&&(e.openElements.popUntilTagNamePopped(l.TABLE),e._resetInsertionMode());break}case l.TEMPLATE:{Tr(e,t);break}case l.BODY:case l.CAPTION:case l.COL:case l.COLGROUP:case l.HTML:case l.TBODY:case l.TD:case l.TFOOT:case l.TH:case l.THEAD:case l.TR:break;default:vs(e,t)}}function vs(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,Sa(e,t),e.fosterParentingEnabled=n}function hg(e,t){e.pendingCharacterTokens.push(t)}function mg(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Ai(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)vs(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const pg=new Set([l.CAPTION,l.COL,l.COLGROUP,l.TBODY,l.TD,l.TFOOT,l.TH,l.THEAD,l.TR]);function F6(e,t){const n=t.tagID;pg.has(n)?e.openElements.hasInTableScope(l.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(l.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=C.IN_TABLE,ri(e,t)):tt(e,t)}function B6(e,t){const n=t.tagID;switch(n){case l.CAPTION:case l.TABLE:{e.openElements.hasInTableScope(l.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(l.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=C.IN_TABLE,n===l.TABLE&&xs(e,t));break}case l.BODY:case l.COL:case l.COLGROUP:case l.HTML:case l.TBODY:case l.TD:case l.TFOOT:case l.TH:case l.THEAD:case l.TR:break;default:Aa(e,t)}}function sd(e,t){switch(t.tagID){case l.HTML:{tt(e,t);break}case l.COL:{e._appendElement(t,B.HTML),t.ackSelfClosing=!0;break}case l.TEMPLATE:{Yt(e,t);break}default:Xu(e,t)}}function j6(e,t){switch(t.tagID){case l.COLGROUP:{e.openElements.currentTagId===l.COLGROUP&&(e.openElements.pop(),e.insertionMode=C.IN_TABLE);break}case l.TEMPLATE:{Tr(e,t);break}case l.COL:break;default:Xu(e,t)}}function Xu(e,t){e.openElements.currentTagId===l.COLGROUP&&(e.openElements.pop(),e.insertionMode=C.IN_TABLE,e._processToken(t))}function wa(e,t){switch(t.tagID){case l.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,B.HTML),e.insertionMode=C.IN_ROW;break}case l.TH:case l.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(L.TR,l.TR),e.insertionMode=C.IN_ROW,va(e,t);break}case l.CAPTION:case l.COL:case l.COLGROUP:case l.TBODY:case l.TFOOT:case l.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=C.IN_TABLE,ri(e,t));break}default:ri(e,t)}}function Dl(e,t){const n=t.tagID;switch(t.tagID){case l.TBODY:case l.TFOOT:case l.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=C.IN_TABLE);break}case l.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=C.IN_TABLE,xs(e,t));break}case l.BODY:case l.CAPTION:case l.COL:case l.COLGROUP:case l.HTML:case l.TD:case l.TH:case l.TR:break;default:xs(e,t)}}function va(e,t){switch(t.tagID){case l.TH:case l.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,B.HTML),e.insertionMode=C.IN_CELL,e.activeFormattingElements.insertMarker();break}case l.CAPTION:case l.COL:case l.COLGROUP:case l.TBODY:case l.TFOOT:case l.THEAD:case l.TR:{e.openElements.hasInTableScope(l.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=C.IN_TABLE_BODY,wa(e,t));break}default:ri(e,t)}}function gg(e,t){switch(t.tagID){case l.TR:{e.openElements.hasInTableScope(l.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=C.IN_TABLE_BODY);break}case l.TABLE:{e.openElements.hasInTableScope(l.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=C.IN_TABLE_BODY,Dl(e,t));break}case l.TBODY:case l.TFOOT:case l.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(l.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=C.IN_TABLE_BODY,Dl(e,t));break}case l.BODY:case l.CAPTION:case l.COL:case l.COLGROUP:case l.HTML:case l.TD:case l.TH:break;default:xs(e,t)}}function U6(e,t){const n=t.tagID;pg.has(n)?(e.openElements.hasInTableScope(l.TD)||e.openElements.hasInTableScope(l.TH))&&(e._closeTableCell(),va(e,t)):tt(e,t)}function H6(e,t){const n=t.tagID;switch(n){case l.TD:case l.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=C.IN_ROW);break}case l.TABLE:case l.TBODY:case l.TFOOT:case l.THEAD:case l.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),gg(e,t));break}case l.BODY:case l.CAPTION:case l.COL:case l.COLGROUP:case l.HTML:break;default:Aa(e,t)}}function Eg(e,t){switch(t.tagID){case l.HTML:{tt(e,t);break}case l.OPTION:{e.openElements.currentTagId===l.OPTION&&e.openElements.pop(),e._insertElement(t,B.HTML);break}case l.OPTGROUP:{e.openElements.currentTagId===l.OPTION&&e.openElements.pop(),e.openElements.currentTagId===l.OPTGROUP&&e.openElements.pop(),e._insertElement(t,B.HTML);break}case l.HR:{e.openElements.currentTagId===l.OPTION&&e.openElements.pop(),e.openElements.currentTagId===l.OPTGROUP&&e.openElements.pop(),e._appendElement(t,B.HTML),t.ackSelfClosing=!0;break}case l.INPUT:case l.KEYGEN:case l.TEXTAREA:case l.SELECT:{e.openElements.hasInSelectScope(l.SELECT)&&(e.openElements.popUntilTagNamePopped(l.SELECT),e._resetInsertionMode(),t.tagID!==l.SELECT&&e._processStartTag(t));break}case l.SCRIPT:case l.TEMPLATE:{Yt(e,t);break}}}function xg(e,t){switch(t.tagID){case l.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===l.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===l.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===l.OPTGROUP&&e.openElements.pop();break}case l.OPTION:{e.openElements.currentTagId===l.OPTION&&e.openElements.pop();break}case l.SELECT:{e.openElements.hasInSelectScope(l.SELECT)&&(e.openElements.popUntilTagNamePopped(l.SELECT),e._resetInsertionMode());break}case l.TEMPLATE:{Tr(e,t);break}}}function z6(e,t){const n=t.tagID;n===l.CAPTION||n===l.TABLE||n===l.TBODY||n===l.TFOOT||n===l.THEAD||n===l.TR||n===l.TD||n===l.TH?(e.openElements.popUntilTagNamePopped(l.SELECT),e._resetInsertionMode(),e._processStartTag(t)):Eg(e,t)}function Y6(e,t){const n=t.tagID;n===l.CAPTION||n===l.TABLE||n===l.TBODY||n===l.TFOOT||n===l.THEAD||n===l.TR||n===l.TD||n===l.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(l.SELECT),e._resetInsertionMode(),e.onEndTag(t)):xg(e,t)}function V6(e,t){switch(t.tagID){case l.BASE:case l.BASEFONT:case l.BGSOUND:case l.LINK:case l.META:case l.NOFRAMES:case l.SCRIPT:case l.STYLE:case l.TEMPLATE:case l.TITLE:{Yt(e,t);break}case l.CAPTION:case l.COLGROUP:case l.TBODY:case l.TFOOT:case l.THEAD:{e.tmplInsertionModeStack[0]=C.IN_TABLE,e.insertionMode=C.IN_TABLE,ri(e,t);break}case l.COL:{e.tmplInsertionModeStack[0]=C.IN_COLUMN_GROUP,e.insertionMode=C.IN_COLUMN_GROUP,sd(e,t);break}case l.TR:{e.tmplInsertionModeStack[0]=C.IN_TABLE_BODY,e.insertionMode=C.IN_TABLE_BODY,wa(e,t);break}case l.TD:case l.TH:{e.tmplInsertionModeStack[0]=C.IN_ROW,e.insertionMode=C.IN_ROW,va(e,t);break}default:e.tmplInsertionModeStack[0]=C.IN_BODY,e.insertionMode=C.IN_BODY,tt(e,t)}}function $6(e,t){t.tagID===l.TEMPLATE&&Tr(e,t)}function bg(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(l.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):id(e,t)}function W6(e,t){t.tagID===l.HTML?tt(e,t):Ju(e,t)}function Tg(e,t){var n;if(t.tagID===l.HTML){if(e.fragmentContext||(e.insertionMode=C.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===l.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0)&&n.endTag)&&e._setEndLocation(r,t)}}else Ju(e,t)}function Ju(e,t){e.insertionMode=C.IN_BODY,Sa(e,t)}function Q6(e,t){switch(t.tagID){case l.HTML:{tt(e,t);break}case l.FRAMESET:{e._insertElement(t,B.HTML);break}case l.FRAME:{e._appendElement(t,B.HTML),t.ackSelfClosing=!0;break}case l.NOFRAMES:{Yt(e,t);break}}}function q6(e,t){t.tagID===l.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==l.FRAMESET&&(e.insertionMode=C.AFTER_FRAMESET))}function G6(e,t){switch(t.tagID){case l.HTML:{tt(e,t);break}case l.NOFRAMES:{Yt(e,t);break}}}function K6(e,t){t.tagID===l.HTML&&(e.insertionMode=C.AFTER_AFTER_FRAMESET)}function X6(e,t){t.tagID===l.HTML?tt(e,t):xu(e,t)}function xu(e,t){e.insertionMode=C.IN_BODY,Sa(e,t)}function J6(e,t){switch(t.tagID){case l.HTML:{tt(e,t);break}case l.NOFRAMES:{Yt(e,t);break}}}function Z6(e,t){t.chars=we,e._insertCharacters(t)}function e4(e,t){e._insertCharacters(t),e.framesetOk=!1}function yg(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==B.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function t4(e,t){if(gA(t))yg(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===B.MATHML?ig(t):r===B.SVG&&(EA(t),sg(t)),nd(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function n4(e,t){if(t.tagID===l.P||t.tagID===l.BR){yg(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===B.HTML){e._endTagOutsideForeignContent(t);break}const i=e.treeAdapter.getTagName(r);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(n);break}}}L.AREA,L.BASE,L.BASEFONT,L.BGSOUND,L.BR,L.COL,L.EMBED,L.FRAME,L.HR,L.IMG,L.INPUT,L.KEYGEN,L.LINK,L.META,L.PARAM,L.SOURCE,L.TRACK,L.WBR;const r4=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,i4=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),K0={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function kg(e,t){const n=m4(e),r=C1("type",{handlers:{root:s4,element:u4,text:a4,comment:Ng,doctype:o4,raw:c4},unknown:d4}),i={parser:n?new Q0(K0):Q0.getFragmentParser(void 0,K0),handle(a){r(a,i)},stitches:!1,options:t||{}};r(e,i),di(i,Zt());const s=n?i.parser.document:i.parser.getFragment(),u=pS(s,{file:i.options.file});return i.stitches&&Ca(u,"comment",function(a,o,c){const h=a;if(h.value.stitch&&c&&o!==void 0){const f=c.children;return f[o]=h.value.stitch,o}}),u.type==="root"&&u.children.length===1&&u.children[0].type===e.type?u.children[0]:u}function _g(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function s4(e,t){_g(e.children,t)}function u4(e,t){f4(e,t),_g(e.children,t),h4(e,t)}function a4(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:oe.CHARACTER,chars:e.value,location:Is(e)};di(t,Zt(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function o4(e,t){const n={type:oe.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:Is(e)};di(t,Zt(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function l4(e,t){t.stitches=!0;const n=p4(e);if("children"in e&&"children"in n){const r=kg({type:"root",children:e.children},t.options);n.children=r.children}Ng({type:"comment",value:{stitch:n}},t)}function Ng(e,t){const n=e.value,r={type:oe.COMMENT,data:n,location:Is(e)};di(t,Zt(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function c4(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,Cg(t,Zt(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(r4,"<$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=t.parser.tokenizer._consume();t.parser.tokenizer._callState(n)}}function d4(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))l4(n,t);else{let r="";throw i4.has(n.type)&&(r=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+r)}}function di(e,t){Cg(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=Me.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function Cg(e,t){if(t&&t.offset!==void 0){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function f4(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===Me.PLAINTEXT)return;di(t,Zt(e));const r=t.parser.openElements.current;let i="namespaceURI"in r?r.namespaceURI:ir.html;i===ir.html&&n==="svg"&&(i=ir.svg);const s=TS({...e,children:[]},{space:i===ir.svg?"svg":"html"}),u={type:oe.START_TAG,tagName:n,tagID:ci(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in s?s.attrs:[],location:Is(e)};t.parser.currentToken=u,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function h4(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&wS.includes(n)||t.parser.tokenizer.state===Me.PLAINTEXT)return;di(t,ba(e));const r={type:oe.END_TAG,tagName:n,tagID:ci(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:Is(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===Me.RCDATA||t.parser.tokenizer.state===Me.RAWTEXT||t.parser.tokenizer.state===Me.SCRIPT_DATA)&&(t.parser.tokenizer.state=Me.DATA)}function m4(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function Is(e){const t=Zt(e)||{line:void 0,column:void 0,offset:void 0},n=ba(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function p4(e){return"children"in e?ni({...e,children:[]}):ni(e)}function g4(e){return function(t,n){return kg(t,{...e,file:n})}}function E4({title:e,content:t}){const n=t.trim().split(/\s+/).filter(Boolean).length,r=t.split(`
|
|
295
|
+
`).length,[i,s]=R.useState(!1);return d.jsxs("div",{className:"flex flex-col h-full",children:[d.jsx("div",{className:"flex-shrink-0 px-4 py-2 border-b bg-muted/30 cursor-pointer hover:bg-muted/50 transition-colors",onClick:()=>s(!i),children:d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("span",{className:"text-xs text-muted-foreground",children:e}),d.jsxs("span",{className:"text-xs text-muted-foreground/60",children:[n," 字 · ",r," 行"]})]}),d.jsx("span",{className:Z("text-xs text-muted-foreground transition-transform",i&&"rotate-180"),children:"▼"})]})}),!i&&d.jsx("div",{className:"flex-1 overflow-auto px-6 py-4",children:d.jsx("article",{className:`prose prose-sm max-w-none
|
|
296
|
+
prose-headings:font-semibold prose-headings:border-b prose-headings:pb-2 prose-headings:scroll-mt-20
|
|
297
|
+
prose-h1:text-2xl prose-h1:mb-6 prose-h1:flex prose-h1:items-center prose-h1:gap-3
|
|
298
|
+
prose-h2:text-xl prose-h2:mt-8 prose-h2:mb-4
|
|
299
|
+
prose-h3:text-lg prose-h3:mt-6 prose-h3:mb-3
|
|
300
|
+
prose-h4:text-base prose-h4:mt-4 prose-h4:mb-2
|
|
301
|
+
prose-p:text-foreground prose-p:leading-7 prose-p:my-4
|
|
302
|
+
prose-a:text-primary prose-a:no-underline hover:prose-a:underline prose-a:transition-colors
|
|
303
|
+
prose-code:bg-muted/80 prose-code:px-1.5 prose-code:py-0.5 prose-code:rounded-md prose-code:text-xs prose-code:font-mono prose-code:font-medium
|
|
304
|
+
prose-pre:bg-muted/80 prose-pre:rounded-lg prose-pre:p-4 prose-pre:text-xs prose-pre:border prose-pre:overflow-x-auto prose-pre:my-4
|
|
305
|
+
prose-pre:shadow-inner
|
|
306
|
+
prose-blockquote:border-l-4 prose-blockquote:border-primary/50 prose-blockquote:bg-primary/5
|
|
307
|
+
prose-blockquote:pl-4 prose-blockquote:py-2 prose-blockquote:rounded-r prose-blockquote:my-4 prose-blockquote:not-italic
|
|
308
|
+
prose-blockquote:text-muted-foreground
|
|
309
|
+
prose-ul:my-3 prose-ol:my-3
|
|
310
|
+
prose-li:my-1.5 prose-li:leading-7
|
|
311
|
+
prose-li:marker:text-primary prose-li:marker:font-bold
|
|
312
|
+
prose-table:text-xs prose-table:border-collapse
|
|
313
|
+
prose-th:bg-muted/80 prose-th:px-4 prose-th:py-3 prose-th:border prose-th:font-semibold
|
|
314
|
+
prose-td:px-4 prose-td:py-3 prose-td:border prose-td:first-child:font-medium
|
|
315
|
+
prose-hr:border-muted/50 prose-hr:my-8
|
|
316
|
+
prose-img:rounded-lg prose-img:shadow-lg
|
|
317
|
+
prose-strong:text-foreground prose-strong:font-semibold
|
|
318
|
+
prose-em:italic prose-em:text-muted-foreground
|
|
319
|
+
dark:prose-invert
|
|
320
|
+
dark:prose-blockquote:bg-primary/10
|
|
321
|
+
dark:prose-code:bg-muted/50
|
|
322
|
+
dark:prose-pre:bg-muted/50`,children:d.jsx($_,{remarkPlugins:[iS],rehypePlugins:[g4],components:{a:({href:u,children:a})=>d.jsx("a",{href:u,target:"_blank",rel:"noopener noreferrer",children:a}),code:({inline:u,className:a,children:o,...c})=>u?d.jsx("code",{className:"bg-muted/80 px-1.5 py-0.5 rounded text-xs font-mono",...c,children:o}):d.jsx("code",{className:Z("not-prose",a),...c,children:o}),pre:({children:u})=>d.jsx("pre",{className:"bg-muted/80 rounded-lg p-4 border overflow-x-auto text-xs my-4 shadow-inner",children:u}),blockquote:({children:u})=>d.jsx("blockquote",{className:"border-l-4 border-primary/50 bg-primary/5 pl-4 py-2 rounded-r my-4 not-italic text-muted-foreground",children:u}),table:({children:u})=>d.jsx("div",{className:"overflow-x-auto my-4 rounded-lg border",children:d.jsx("table",{className:"border-collapse w-full",children:u})}),th:({children:u})=>d.jsx("th",{className:"bg-muted/50 px-4 py-3 border text-left font-semibold",children:u}),td:({children:u})=>d.jsx("td",{className:"px-4 py-3 border",children:u}),h1:({children:u})=>d.jsxs("h1",{className:"text-2xl font-bold mb-4 pb-2 border-b flex items-center gap-3",children:[d.jsx("span",{className:"w-1 h-6 bg-gradient-to-b from-primary to-accent rounded-full"}),u]}),h2:({children:u})=>d.jsx("h2",{className:"text-xl font-semibold mt-8 mb-4",children:u}),h3:({children:u})=>d.jsx("h3",{className:"text-lg font-semibold mt-6 mb-3",children:u})},children:t})})})]})}function x4({taskProgress:e}){const t=(e==null?void 0:e.completed)??0,n=(e==null?void 0:e.total)??0,r=n>0?t/n*100:0;return!e||n===0?null:d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("div",{className:"flex-1 progress-bar",children:d.jsx("div",{className:"progress-bar-fill bg-gradient-to-r from-emerald-400 to-teal-500",style:{width:`${r}%`}})}),d.jsxs("span",{className:"text-xs font-medium text-muted-foreground min-w-[3rem] text-right",children:[t,"/",n]})]})}function Te({className:e=""}){return d.jsx("div",{className:Z("animate-pulse bg-gradient-to-r from-muted via-muted/50 to-muted bg-[length:200%_100%] rounded-lg",e)})}function b4(){return d.jsxs("div",{className:"p-4 space-y-4",children:[d.jsxs("div",{className:"flex items-center justify-between px-2 py-3",children:[d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx(Te,{className:"w-10 h-10 rounded-xl"}),d.jsxs("div",{className:"space-y-1.5",children:[d.jsx(Te,{className:"h-4 w-32"}),d.jsx(Te,{className:"h-3 w-20"})]})]}),d.jsx(Te,{className:"h-8 w-16 rounded-lg"})]}),d.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[0,1,2].map(e=>d.jsx("div",{className:"rounded-xl bg-gradient-to-b from-amber-500/5 to-orange-500/5 p-1",children:d.jsxs("div",{className:"bg-card rounded-lg p-3 space-y-3",children:[d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx(Te,{className:"w-6 h-6 rounded"}),d.jsx(Te,{className:"h-4 w-16"})]}),d.jsx(Te,{className:"h-6 w-8 rounded-full"})]}),d.jsx("div",{className:"space-y-2",children:[0,1].map(t=>d.jsxs("div",{className:"bg-card rounded-xl border p-4 space-y-3",children:[d.jsxs("div",{className:"flex items-start justify-between",children:[d.jsxs("div",{className:"space-y-1.5",children:[d.jsx(Te,{className:"h-4 w-24"}),d.jsx(Te,{className:"h-3 w-16"})]}),d.jsx(Te,{className:"h-5 w-12 rounded-full"})]}),d.jsxs("div",{className:"space-y-1.5",children:[d.jsxs("div",{className:"flex justify-between",children:[d.jsx(Te,{className:"h-3 w-16"}),d.jsx(Te,{className:"h-3 w-8"})]}),d.jsx(Te,{className:"h-2 w-full rounded-full"})]})]},t))})]})},e))})]})}function T4(){return d.jsxs("div",{className:"animate-fade-in",children:[d.jsxs("div",{className:"sticky top-16 z-30 bg-background/80 backdrop-blur-xl border-b px-4 py-4",children:[d.jsx(Te,{className:"h-4 w-20 mb-4"}),d.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[d.jsx(Te,{className:"h-8 w-8 rounded-lg"}),d.jsx(Te,{className:"h-8 w-48"}),d.jsx(Te,{className:"h-6 w-16 rounded-full"})]}),d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx(Te,{className:"h-6 w-20 rounded-full"}),d.jsx(Te,{className:"h-6 w-24 rounded-full"}),d.jsx(Te,{className:"h-6 w-16 rounded-full"})]}),d.jsxs("div",{className:"mt-4 max-w-md space-y-2",children:[d.jsxs("div",{className:"flex justify-between",children:[d.jsx(Te,{className:"h-3 w-16"}),d.jsx(Te,{className:"h-3 w-8"})]}),d.jsx(Te,{className:"h-2 w-full rounded-full"})]})]}),d.jsx("div",{className:"px-4 py-3 border-b bg-muted/30 flex gap-2",children:[0,1,2].map(e=>d.jsx(Te,{className:"h-8 w-20 rounded-lg"},e))}),d.jsx("div",{className:"p-4 space-y-4",children:d.jsxs("div",{className:"bg-card rounded-xl border p-4 space-y-4",children:[d.jsx(Te,{className:"h-6 w-32"}),d.jsxs("div",{className:"space-y-2",children:[d.jsx(Te,{className:"h-4 w-full"}),d.jsx(Te,{className:"h-4 w-5/6"}),d.jsx(Te,{className:"h-4 w-4/6"})]})]})})]})}function X0({skills:e,currentChange:t,executionState:n,disabled:r=!1,onSkillStarted:i}){const[s,u]=R.useState(!1),[a,o]=R.useState(null),[c,h]=R.useState(null),[f,m]=R.useState(""),[p,x]=R.useState(null),k=R.useRef(null),v=R.useRef(null),E=n.status==="running",T=r||E;R.useEffect(()=>{const N=P=>{k.current&&!k.current.contains(P.target)&&(u(!1),x(null),m(""))};return document.addEventListener("mousedown",N),()=>document.removeEventListener("mousedown",N)},[]);const g=N=>{x(N),setTimeout(()=>{var P;return(P=v.current)==null?void 0:P.focus()},0)},w=async()=>{if(p){o(p),h(null),u(!1);try{await xe.startSkill(p,t,f.trim()||void 0),i==null||i()}catch(N){h(String(N))}finally{o(null),x(null),m("")}}},O=()=>{x(null),m("")};return d.jsxs("div",{className:"relative",ref:k,children:[d.jsxs("button",{onClick:()=>!T&&u(!s),disabled:T,title:"选择要执行的技能",className:Z("inline-flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs font-medium transition-all","border border-border/50 bg-background/90 hover:bg-background","dark:bg-background/90 dark:border-border/50",T&&"opacity-50 cursor-not-allowed",s&&"ring-2 ring-primary/50"),children:[a?d.jsx(zn,{className:"animate-spin",size:14}):d.jsx(ga,{size:14}),d.jsx("span",{className:"font-medium",children:"执行技能"}),d.jsx("span",{className:Z("text-xs transition-transform",s&&"rotate-180"),children:"▾"})]}),s&&d.jsx("div",{className:"absolute top-full left-0 mt-2 w-72 bg-gradient-to-br from-card to-card/90 border border-border/60 rounded-xl shadow-[0_0_0_1px_rgba(0,0,0,0.05),0_4px_12px_rgba(0,0,0,0.12),0_20px_40px_rgba(0,0,0,0.1)] z-50 overflow-hidden animate-scale-in",children:p?d.jsxs("div",{className:"p-3 space-y-2",children:[d.jsx("div",{className:"flex items-center gap-2 text-sm",children:d.jsxs("span",{className:"font-medium",children:["/opsx:",p]})}),d.jsx("textarea",{ref:v,value:f,onChange:N=>m(N.target.value),placeholder:"输入备注(可选)...",className:"w-full px-2 py-1.5 text-xs bg-muted rounded border border-border focus:outline-none focus:ring-1 focus:ring-primary resize-none",rows:3,onKeyDown:N=>{N.key==="Enter"&&(N.metaKey||N.ctrlKey)&&w(),N.key==="Escape"&&O()}}),d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsx("span",{className:"text-[10px] text-muted-foreground",children:"⌘+Enter 确认"}),d.jsxs("div",{className:"flex gap-1",children:[d.jsx("button",{onClick:O,className:"px-2 py-1 text-xs rounded bg-secondary hover:bg-accent transition-colors",children:"取消"}),d.jsx("button",{onClick:w,className:"px-2 py-1 text-xs rounded bg-primary text-primary-foreground hover:bg-primary/90 transition-colors",children:"确认执行"})]})]})]}):d.jsx("div",{className:"p-1 max-h-64 overflow-y-auto",children:e.length===0?d.jsx("div",{className:"px-3 py-4 text-xs text-muted-foreground text-center",children:"暂无可用技能"}):e.map(N=>d.jsxs("button",{onClick:()=>g(N.id),className:Z("w-full text-left px-3 py-2 rounded-md text-sm transition-colors","hover:bg-muted/80 text-foreground",a===N.id&&"bg-blue-500/10 text-blue-500"),children:[d.jsx("div",{className:"flex items-center gap-2",children:d.jsxs("span",{className:"font-medium",children:["/opsx:",N.id]})}),N.description&&d.jsx("div",{className:"text-xs text-muted-foreground mt-0.5",children:N.description})]},N.id))})}),c&&d.jsx("span",{className:"absolute -bottom-5 left-0 text-xs text-red-400 whitespace-nowrap",children:c})]})}function y4(e){if(e.status==="archived")return[];if(e.applied)return["archive"];switch(e.status){case"in_progress":return["continue"];case"ready":return["apply"];default:return[]}}function k4({change:e,skills:t,executionState:n,compact:r=!1}){const[i,s]=R.useState(null),[u,a]=R.useState(null),c=y4(e).map(p=>t.find(x=>x.id===p)).filter(p=>p!==void 0);if(c.length===0&&t.length===0&&n.status==="idle")return null;const h=async p=>{s(p),a(null);try{await xe.startSkill(p,e.name)}catch(x){const k=x instanceof Error?x.message:String(x);k.includes("ENOENT")||k.toLowerCase().includes("claude")?a("未找到 claude 命令,请先安装 Claude Code CLI"):a(k)}finally{s(null)}},f=async()=>{try{await xe.cancelSkill()}catch{}},m=n.status==="running";return r?d.jsxs("div",{className:"flex items-center gap-2",children:[u&&d.jsx("span",{className:"text-xs text-red-400",children:u}),t.length>0&&d.jsx(X0,{skills:t,currentChange:e.name,executionState:n}),c.map(p=>{const x=Df(p.id),k=i===p.id;return d.jsxs("button",{onClick:()=>h(p.id),disabled:m||k,title:`点击执行 /opsx:${p.id}`,className:Z("inline-flex items-center gap-1 px-2 py-1 rounded text-xs font-medium transition-all",x.color?`${x.color} text-white`:x.primary?"bg-primary text-primary-foreground hover:bg-primary/90":"bg-secondary border border-border hover:bg-accent",k&&"bg-blue-500 text-white",m&&!k&&"opacity-50 cursor-not-allowed"),children:[k?d.jsx(zn,{className:"animate-spin",size:14}):typeof x.icon=="string"?x.icon:d.jsx(x.icon,{size:14}),d.jsx("span",{children:x.label.replace("/opsx:","")})]},p.id)}),m&&d.jsxs("button",{onClick:f,className:"inline-flex items-center gap-1 px-2 py-1 rounded text-xs bg-red-500/10 text-red-400 border border-red-500/20 hover:bg-red-500/20",children:[d.jsx(xl,{size:12}),d.jsx("span",{children:"取消"})]})]}):d.jsxs("div",{className:"p-3 bg-muted/30 rounded-xl border border-border/50",children:[d.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[d.jsx(ga,{size:12,className:"text-primary"}),d.jsx("span",{className:"text-xs text-muted-foreground uppercase tracking-wider font-medium",children:"可用操作"}),d.jsxs("span",{className:"inline-flex items-center gap-1 text-[10px] text-muted-foreground/70",title:"技能执行通过本机 Claude Code CLI 进行,需先安装并登录 claude 命令",children:[d.jsx(Op,{size:10}),"需 Claude CLI"]}),u&&d.jsx("span",{className:"text-xs text-red-400",children:u})]}),d.jsxs("div",{className:"flex flex-wrap gap-2",children:[t.length>0&&d.jsx(X0,{skills:t,currentChange:e.name,executionState:n}),c.map(p=>{const x=Df(p.id),k=i===p.id;return d.jsxs("button",{onClick:()=>h(p.id),disabled:m||k,title:`点击执行 /opsx:${p.id}`,className:Z("inline-flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs font-medium transition-all duration-200","active:scale-[0.97]",x.primary?"bg-primary text-primary-foreground shadow-sm hover:shadow-md hover:bg-primary/90":"bg-secondary text-secondary-foreground border border-border hover:bg-accent hover:text-accent-foreground",k&&"bg-blue-500 text-white",m&&!k&&"opacity-50 cursor-not-allowed"),children:[k?d.jsx(zn,{className:"animate-spin",size:14}):typeof x.icon=="string"?x.icon:d.jsx(x.icon,{size:14}),d.jsx("span",{className:"font-mono",children:k?"启动中...":x.label})]},p.id)}),m&&d.jsxs("button",{onClick:f,className:"inline-flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs font-medium bg-red-500/10 text-red-400 border border-red-500/20 hover:bg-red-500/20 transition-all",children:[d.jsx(xl,{size:14}),d.jsx("span",{children:"取消执行"})]})]})]})}function _4(e){const t=Math.floor(e/1e3),n=Math.floor(t/60),r=Math.floor(n/60);return r>0?`${r}:${String(n%60).padStart(2,"0")}:${String(t%60).padStart(2,"0")}`:`${n}:${String(t%60).padStart(2,"0")}`}function Sg({state:e,logs:t,pendingQuestion:n,onQuestionAnswered:r,onRetry:i,onCancel:s}){const[u,a]=R.useState(!1),[o,c]=R.useState(""),[h,f]=R.useState(0),[m,p]=R.useState(!1),[x,k]=R.useState(null),v=R.useRef(null),E=R.useRef(null);R.useEffect(()=>{if(e.status==="running"&&e.startedAt){const F=new Date(e.startedAt).getTime();f(Date.now()-F);const A=setInterval(()=>{f(Date.now()-F)},1e3);return()=>clearInterval(A)}else if(e.startedAt){const F=new Date(e.startedAt).getTime(),A=e.updatedAt?new Date(e.updatedAt).getTime():Date.now();f(A-F)}},[e.status,e.startedAt,e.updatedAt]),R.useEffect(()=>{const F=E.current;F&&(F.scrollTop=F.scrollHeight)},[t.length]),R.useEffect(()=>{var F;e.status==="running"&&(a(!1),(F=v.current)==null||F.focus())},[e.status]);const T=R.useMemo(()=>e.status!=="idle"||e.startedAt?e:null,[e]);if(e.status==="idle"&&!e.startedAt)return null;const g=T||e,w=g.totalTasks>0?Math.round(g.currentTask/g.totalTasks*100):0,O=g.status==="failed"?"border-red-500/50":g.status==="completed"?"border-emerald-500/50":g.status==="interrupted"?"border-amber-500/50":"border-blue-500/50",N=g.status==="failed"?"text-red-400":g.status==="completed"?"text-emerald-400":g.status==="interrupted"?"text-amber-400":"text-blue-400",P=async()=>{const F=o.trim();if(!(!F||g.status!=="running")){c("");try{await xe.sendInput(F)}catch(A){console.error("Failed to send input:",A)}}},I=F=>{F.key==="Enter"&&!F.shiftKey&&(F.preventDefault(),P())};return u?d.jsxs("button",{onClick:()=>a(!1),className:Z("w-full p-2 rounded-xl border flex items-center justify-center gap-2","hover:bg-muted/50 transition-all duration-200",O),title:"展开执行详情",children:[d.jsx("span",{className:Z("w-2 h-2 rounded-full",N.replace("text-","bg-"))}),d.jsx("span",{className:"text-xs text-muted-foreground",children:"▼"})]}):d.jsxs("div",{className:Z("rounded-xl border-l-[3px] border bg-gradient-to-br from-card/90 to-card/70 backdrop-blur-xl overflow-hidden","shadow-[0_0_0_1px_rgba(0,0,0,0.03),0_2px_4px_rgba(0,0,0,0.05),0_12px_24px_rgba(0,0,0,0.05)]",O),children:[d.jsxs("div",{className:"flex items-center justify-between p-3 border-b border-border/50",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsxs("span",{className:Z("text-xs font-semibold",N),children:[d.jsx(pb,{size:14,className:"inline mr-1"})," ",g.status==="running"?"执行中":g.status==="completed"?"已完成":g.status==="failed"?"执行失败":g.status==="interrupted"?"已中断":"就绪",": /opsx:",g.skill]}),g.status==="running"&&d.jsxs("span",{className:"relative flex h-2 w-2",children:[d.jsx("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-blue-400 opacity-75"}),d.jsx("span",{className:"relative inline-flex rounded-full h-2 w-2 bg-blue-500"})]}),g.status==="completed"&&d.jsx(ei,{className:"text-emerald-400",size:14}),g.status==="failed"&&d.jsx(Oc,{className:"text-red-400",size:14})]}),d.jsxs("div",{className:"flex items-center gap-3",children:[g.startedAt&&d.jsxs("span",{className:"text-xs text-muted-foreground font-mono flex items-center gap-1",children:[d.jsx(El,{size:12})," ",_4(h)]}),g.currentArtifact&&d.jsxs("span",{className:"text-xs text-muted-foreground",children:["生成: ",g.currentArtifact]}),g.status==="running"&&s&&d.jsxs("button",{onClick:s,className:"btn-danger btn-xs flex items-center gap-1",children:[d.jsx(xl,{size:12})," 取消"]}),d.jsx("button",{onClick:()=>a(!0),className:"btn-ghost btn-xs",children:"收起"})]})]}),g.totalTasks>0&&d.jsx("div",{className:"px-3 pb-2",children:d.jsx("div",{className:"progress-bar",children:d.jsx("div",{className:Z("progress-bar-fill",g.status==="completed"?"bg-gradient-to-r from-emerald-500 to-emerald-400":g.status==="failed"?"bg-gradient-to-r from-red-500 to-red-400":"bg-gradient-to-r from-blue-500 to-blue-400"),style:{width:`${w}%`}})})}),d.jsxs("div",{ref:E,className:"mx-3 mb-3 terminal text-slate-300 max-h-[200px] overflow-y-auto rounded-lg",children:[t.map((F,A)=>d.jsx("pre",{className:Z("whitespace-pre-wrap break-word overflow-wrap-break-word text-xs",F.line.includes("✓")&&"text-emerald-400",F.line.includes("✗")&&"text-red-400",!F.line.includes("✓")&&!F.line.includes("✗")&&"text-slate-300",F.line.startsWith("[")&&F.line.includes("Starting")&&"text-blue-400"),style:{wordBreak:"break-all"},children:F.line},A)),g.status==="running"&&d.jsx("span",{className:"inline-block w-[7px] h-[14px] bg-blue-400 animate-pulse ml-0.5 align-middle"})]}),n&&d.jsxs("div",{className:"mx-3 mb-3 rounded-xl border border-amber-500/30 bg-amber-500/5 p-4",children:[d.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[d.jsxs("span",{className:"text-amber-400 text-sm font-medium flex items-center gap-1",children:[d.jsx(El,{size:14})," 等待选择"]}),n.header&&d.jsx("span",{className:"badge bg-amber-500/20 text-amber-300 text-xs",children:n.header}),g.status==="interrupted"&&d.jsx("span",{className:"badge bg-orange-500/20 text-orange-300 text-xs",children:"进程已退出"})]}),d.jsx("p",{className:"text-sm text-slate-200 mb-3",children:n.question}),x&&d.jsx("div",{className:"mb-3 p-2 rounded-lg bg-red-500/20 border border-red-500/30 text-red-300 text-xs",children:x}),d.jsx("div",{className:"flex flex-col gap-2",children:n.options.map(F=>d.jsxs("button",{onClick:async()=>{if(!m){p(!0),k(null);try{const A=await xe.sendInput(F.label);A.success?(r==null||r(),k(null)):k(A.error||"发送失败")}catch{k("发送失败,请重试")}p(!1)}},disabled:m,className:Z("w-full text-left px-3 py-2 rounded-lg border transition-all duration-200","border-slate-600 hover:border-blue-500 hover:bg-blue-500/10","disabled:opacity-50 disabled:cursor-not-allowed"),children:[d.jsx("span",{className:"text-sm font-medium text-slate-200",children:F.label}),F.description&&d.jsx("span",{className:"block text-xs text-slate-400 mt-0.5",children:F.description})]},F.label))}),(g.status==="interrupted"||g.status==="completed")&&d.jsxs("div",{className:"mt-3 pt-3 border-t border-amber-500/20",children:[d.jsxs("p",{className:"text-xs text-orange-300 mb-2 flex items-center gap-1",children:[d.jsx(xr,{size:14})," 进程已退出,无法发送选择"]}),i&&d.jsxs("button",{onClick:i,className:"w-full py-2 px-4 rounded-lg bg-gradient-to-r from-orange-500 to-orange-600 hover:from-orange-600 hover:to-orange-700 text-white text-sm font-medium transition-all duration-200 shadow-md hover:shadow-lg flex items-center justify-center gap-1",children:[d.jsx(ms,{size:14})," 重新执行"]})]})]}),!n&&g.status!=="running"&&g.status!=="interrupted"&&g.startedAt&&d.jsx("div",{className:"mx-3 mb-3 rounded-lg border border-slate-600/30 bg-slate-500/5 p-3",children:d.jsx("p",{className:"text-xs text-slate-400",children:"进程已结束。如需重新选择请重新执行该技能。"})}),g.status==="running"&&!n&&d.jsxs("div",{className:"mx-3 mb-3 flex gap-2",children:[d.jsx("input",{ref:v,type:"text",value:o,onChange:F=>c(F.target.value),onKeyDown:I,placeholder:"输入回复并按 Enter 发送...",className:Z("flex-1 bg-terminal border border-slate-600 rounded-lg px-3 py-1.5","font-mono text-xs text-slate-300 placeholder:text-slate-500","focus:outline-none focus:border-blue-500 focus:ring-2 focus:ring-blue-500/20","transition-all duration-200")}),d.jsx("button",{onClick:P,disabled:!o.trim(),className:Z("px-3 py-1.5 rounded-lg text-xs font-medium transition-all duration-200","bg-gradient-to-r from-blue-600 to-blue-700 hover:from-blue-500 hover:to-blue-600 text-white","disabled:opacity-50 disabled:cursor-not-allowed"),children:"发送"})]})]})}function N4({open:e,onClose:t,title:n,children:r,className:i}){return e?d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"fixed inset-0 bg-black/30 backdrop-blur-sm z-[50]",onClick:t}),d.jsxs("div",{className:Z("fixed top-0 right-0 h-full w-full max-w-4xl bg-gradient-to-br from-card to-card/95 border-l border-border/60 shadow-[0_-4px_40px_rgba(0,0,0,0.15),0_0_60px_rgba(0,0,0,0.1)] z-[50] flex flex-col animate-slide-in",i),children:[d.jsxs("div",{className:"flex items-center justify-between px-4 py-2 border-b bg-muted/20",children:[d.jsx("span",{className:"text-sm font-medium text-muted-foreground",children:n}),d.jsx("button",{onClick:t,className:"p-1.5 rounded hover:bg-muted transition-colors",children:d.jsx("svg",{className:"w-4 h-4 text-muted-foreground",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:d.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),d.jsx("div",{className:"flex-1 overflow-hidden",children:r})]})]}):null}function C4({name:e,onBack:t,skills:n,executionState:r,executionLogs:i,pendingQuestion:s,onQuestionAnswered:u,onRetry:a,onCancel:o}){var ae;const[c,h]=R.useState(null),[f,m]=R.useState(!0),[p,x]=R.useState(null),[k,v]=R.useState(""),[E,T]=R.useState(!1),[g,w]=R.useState(!1),O=R.useCallback(()=>{T(!0),xe.getChangeDetail(e).then(W=>h(W)).catch(()=>{}).finally(()=>T(!1))},[e]);if(R.useEffect(()=>{m(!0),x(null),xe.getChangeDetail(e).then(W=>{h(W);const fe=Object.keys(W.artifactContents||{})[0];v(fe||"_specs")}).catch(W=>{x(String(W))}).finally(()=>{m(!1)})},[e]),R.useEffect(()=>{r.change===e&&(r.status==="completed"||r.status==="failed")&&xe.getChangeDetail(e).then(W=>{if(!W||W.status==="archived"){t();return}h(W)}).catch(()=>{t()})},[r.change,r.status,e,t]),f)return d.jsx(T4,{});if(p)return d.jsxs("div",{className:"flex flex-col items-center justify-center min-h-[50vh] gap-4 p-4",children:[d.jsx("div",{className:"w-20 h-20 rounded-full bg-red-500/10 flex items-center justify-center",children:d.jsx(Tb,{className:"text-red-400",size:40})}),d.jsx("p",{className:"text-red-500",children:p}),d.jsx("button",{onClick:t,className:"btn-primary",children:"返回"})]});if(!c)return d.jsxs("div",{className:"flex flex-col items-center justify-center min-h-[50vh] gap-4",children:[d.jsx("div",{className:"w-20 h-20 rounded-full bg-blue-500/10 flex items-center justify-center",children:d.jsx(pa,{className:"text-blue-400",size:40})}),d.jsxs("p",{className:"text-muted-foreground",children:["未找到变更: ",e]}),d.jsx("button",{onClick:t,className:"btn-primary",children:"返回看板"})]});const N=Dp(c.type),P=sT(c.status),I=c.applied?{icon:ei,badge:"badge-success"}:P,F=Object.keys(c.artifactContents||{}).map(W=>{var ie;return{id:W,label:W,content:(ie=c.artifactContents)==null?void 0:ie[W]}}),A=((ae=c.specFiles)==null?void 0:ae.map(W=>({id:`spec_${W.capability}`,label:`specs/${W.capability}`,content:W.content})))||[],V=[...F,...A],j=V.find(W=>W.id===k)||V[0],te=W=>{v(W),w(!0)};return d.jsxs("div",{className:"animate-fade-in h-[calc(100vh-4rem)] flex flex-col",children:[d.jsxs("div",{className:"flex-shrink-0 border-b bg-background/50 px-4 py-1.5",children:[d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[d.jsx("button",{onClick:t,className:"flex-shrink-0 w-7 h-7 flex items-center justify-center rounded-lg bg-muted/50 hover:bg-muted transition-colors group",title:"返回看板",children:d.jsx("svg",{className:"w-3.5 h-3.5 text-muted-foreground group-hover:text-foreground transition-colors",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:d.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10 19l-7-7m0 0l7-7m-7 7h18"})})}),d.jsx("h1",{className:"text-base font-bold truncate",children:c.displayName}),c.type!=="unknown"&&d.jsxs("span",{className:Z("flex-shrink-0 badge badge-sm",N.badge),children:[typeof N.icon=="string"?N.icon:d.jsx(N.icon,{size:14})," ",c.type]}),d.jsxs("span",{className:Z("flex-shrink-0 badge badge-sm",I.badge),children:[typeof I.icon=="string"?I.icon:d.jsx(I.icon,{size:14})," ",c.applied?"已完成":c.status==="in_progress"?"进行中":c.status==="ready"?"待实现":"已归档"]})]}),d.jsxs("div",{className:"flex-shrink-0 flex items-center gap-2",children:[d.jsxs("span",{className:"text-xs text-muted-foreground hidden md:inline",children:[c.schema," · ",eb(c.createdAt)]}),d.jsx("button",{onClick:O,disabled:E,className:Z("text-xs px-1.5 py-1 rounded hover:bg-muted text-muted-foreground hover:text-foreground transition-opacity",E&&"opacity-50"),children:d.jsx(ms,{size:14,className:E?"animate-spin":""})})]})]}),d.jsxs("div",{className:"mt-1.5 flex items-center gap-4",children:[c.taskProgress&&d.jsx("div",{className:"flex-1 max-w-xs",children:d.jsx(x4,{taskProgress:c.taskProgress})}),d.jsx(k4,{change:c,skills:n,executionState:r,compact:!0})]})]}),r.change===e&&r.status!=="idle"&&d.jsx("div",{className:"flex-shrink-0 px-4 py-1.5 border-b bg-muted/20",children:d.jsx(Sg,{state:r,logs:i,pendingQuestion:s,onQuestionAnswered:u,onRetry:a,onCancel:o})}),d.jsx("div",{className:"flex-1 overflow-auto px-4 py-3",children:V.length>0?d.jsx("div",{className:"grid gap-2",children:V.map(W=>{var K,b;const fe=!W.id.startsWith("spec_")?(b=(K=c.artifacts)==null?void 0:K.find(X=>X.id===W.id))==null?void 0:b.status:void 0,Y=r.currentArtifact===W.id;return d.jsxs("button",{onClick:()=>te(W.id),className:Z("w-full text-left px-3 py-2 rounded-lg border transition-all hover:border-primary/50 group text-sm",g&&k===W.id&&"border-primary bg-primary/5"),children:[d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[Y&&d.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-blue-400 animate-pulse"}),!Y&&fe==="done"&&d.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-emerald-500"}),!Y&&fe==="pending"&&d.jsx("span",{className:"w-1.5 h-1.5 rounded-full border border-muted-foreground/40"}),d.jsx("span",{className:"font-medium",children:W.label})]}),d.jsx("svg",{className:"w-3.5 h-3.5 text-muted-foreground group-hover:text-primary transition-colors",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:d.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})]}),W.content&&d.jsxs("p",{className:"mt-1 text-xs text-muted-foreground line-clamp-1",children:[W.content.substring(0,80),"..."]})]},W.id)})}):d.jsx("div",{className:"text-center text-muted-foreground py-8",children:"暂无产物文档"})}),d.jsx(N4,{open:g,onClose:()=>{w(!1),v("")},title:(j==null?void 0:j.label)||"",children:j!=null&&j.content?d.jsx(E4,{title:j.label,content:j.content}):d.jsx("div",{className:"text-center text-muted-foreground py-8",children:"暂无内容"})})]})}const tu="openspec-dashboard-project",bu="openspec-dashboard-projects",Ag=R.createContext(null);function S4({children:e}){const[t,n]=R.useState([]),[r,i]=R.useState(null),[s,u]=R.useState(!0),a=R.useRef(!1),o=R.useCallback(async()=>{try{const m=await xe.getProjects(),p=ko(),x=A4(m,p);if(n(x),!a.current&&x.length>0){const k=localStorage.getItem(tu),v=k?x.find(E=>E.path===k):null;i(v||x[0]),a.current=!0}}catch{}finally{u(!1)}},[]);R.useEffect(()=>{o()},[o]);const c=R.useCallback(async m=>{if(r){const x=ko();x.includes(r.path)||(x.push(r.path),localStorage.setItem(bu,JSON.stringify(x)))}await xe.switchProject(m);const p=t.find(x=>x.path===m);p&&(i(p),localStorage.setItem(tu,m)),window.location.reload()},[t,r]),h=R.useCallback(async m=>{await xe.switchProject(m);const p=ko();p.includes(m)||(p.push(m),localStorage.setItem(bu,JSON.stringify(p))),localStorage.setItem(tu,m),await o();const x=t.find(k=>k.path===m);i(x||{name:m.split("/").pop()||m,path:m,available:!0})},[t,o]),f=R.useCallback(()=>{localStorage.removeItem(tu),localStorage.removeItem(bu),i(t[0]||null)},[t]);return d.jsx(Ag.Provider,{value:{projects:t,currentProject:r,loading:s,switchProject:c,addProject:h,clearSavedProjects:f,refresh:o},children:e})}function wg(){const e=R.useContext(Ag);if(!e)throw new Error("useProjects must be used within ProjectProvider");return e}function ko(){try{const e=localStorage.getItem(bu);return e?JSON.parse(e):[]}catch{return[]}}function A4(e,t){const n=[...e];for(const r of t)n.some(i=>i.path===r)||n.push({name:r.split("/").pop()||r,path:r,available:!0});return n}function w4(){const{projects:e,currentProject:t,switchProject:n,addProject:r,clearSavedProjects:i}=wg(),[s,u]=R.useState(!1),[a,o]=R.useState(!1),[c,h]=R.useState(""),[f,m]=R.useState(!1),[p,x]=R.useState(null),k=R.useRef(null);R.useEffect(()=>{const g=w=>{k.current&&!k.current.contains(w.target)&&(u(!1),o(!1),x(null))};return document.addEventListener("mousedown",g),()=>document.removeEventListener("mousedown",g)},[]);const v=async g=>{if(g===(t==null?void 0:t.path)){u(!1);return}m(!0);try{await n(g),u(!1)}catch(w){console.error("Switch failed:",w)}finally{m(!1)}},E=async()=>{if(c.trim()){m(!0),x(null);try{await r(c.trim()),h(""),o(!1),u(!1)}catch(g){const w=g instanceof Error?g.message:String(g);x(w||"添加失败")}finally{m(!1)}}},T=()=>{i(),u(!1)};return d.jsxs("div",{className:"relative",ref:k,children:[d.jsxs("button",{onClick:()=>u(!s),className:Z("flex items-center gap-2 px-3 py-1.5 rounded-xl text-sm","bg-card/90 hover:bg-card border border-border/60 transition-all duration-200 ease-out","shadow-sm hover:shadow-md hover:shadow-primary/10",f&&"opacity-50 pointer-events-none"),children:[d.jsx("span",{className:"w-2 h-2 rounded-full bg-emerald-500"}),d.jsx("span",{className:"max-w-[160px] truncate font-medium text-foreground",children:(t==null?void 0:t.name)||"选择项目"}),d.jsx("span",{className:Z("text-xs transition-transform text-muted-foreground",s&&"rotate-180"),children:"▾"})]}),s&&d.jsxs("div",{className:"absolute top-full left-0 mt-2 w-72 bg-gradient-to-br from-card to-card/90 border border-border/60 rounded-xl shadow-[0_0_0_1px_rgba(0,0,0,0.05),0_4px_12px_rgba(0,0,0,0.12),0_20px_40px_rgba(0,0,0,0.1)] z-50 overflow-hidden animate-scale-in",children:[d.jsx("div",{className:"p-2 max-h-64 overflow-y-auto",children:e.map(g=>d.jsxs("button",{onClick:()=>v(g.path),className:Z("w-full text-left px-3 py-2.5 rounded-lg text-sm transition-all duration-200","hover:bg-muted/80 text-foreground",g.path===(t==null?void 0:t.path)&&"bg-primary/10 text-primary"),children:[d.jsx("div",{className:"font-medium truncate",children:g.name}),d.jsx("div",{className:"text-xs text-muted-foreground truncate",children:g.path})]},g.path))}),d.jsx("div",{className:"border-t border-border p-2",children:a?d.jsxs("div",{className:"p-1 space-y-1",children:[d.jsxs("div",{className:"flex items-center gap-1",children:[d.jsx("input",{type:"text",value:c,onChange:g=>{h(g.target.value),x(null)},onKeyDown:g=>g.key==="Enter"&&E(),placeholder:"/path/to/project",className:"flex-1 px-2 py-1.5 text-xs bg-muted rounded-lg border border-border focus:outline-none focus:ring-2 focus:ring-primary/50 font-mono",autoFocus:!0}),d.jsx("button",{onClick:E,disabled:f,className:"btn-primary btn-xs",children:"添加"}),d.jsx("button",{onClick:()=>{o(!1),x(null)},className:"btn-ghost btn-xs",children:"✕"})]}),p&&d.jsx("div",{className:"px-2 py-1 text-xs text-red-500 break-words",children:p})]}):d.jsxs(d.Fragment,{children:[d.jsx("button",{onClick:()=>o(!0),className:"w-full text-left px-3 py-2.5 rounded-lg text-sm text-muted-foreground hover:bg-muted/80 transition-all duration-200",children:"+ 添加项目..."}),d.jsx("button",{onClick:T,className:"w-full text-left px-3 py-2.5 rounded-lg text-sm text-red-500 hover:bg-red-500/10 transition-all duration-200",children:"清除保存的项目"})]})})]})]})}class vg extends Ts.Component{constructor(t){super(t),this.state={hasError:!1,error:null}}static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,n){console.error(t,n)}render(){var t;return this.state.hasError?this.props.fallback?this.props.fallback:d.jsxs("div",{className:"min-h-[50vh] flex flex-col items-center justify-center gap-4 animate-fade-in",children:[d.jsx("span",{className:"text-4xl",children:"😵"}),d.jsx("h2",{className:"text-lg font-semibold",children:"出了点问题"}),d.jsx("p",{className:"text-sm text-red-500",children:(t=this.state.error)==null?void 0:t.message}),d.jsx("button",{className:"btn-primary",onClick:()=>window.location.reload(),children:"重新加载"})]}):this.props.children}}function v4(){return typeof window>"u"?"light":window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function I4(){try{return localStorage.getItem("theme")}catch{return null}}function L4(e){try{localStorage.setItem("theme",e)}catch{}}function O4(){const[e,t]=R.useState(()=>I4()??v4());return R.useEffect(()=>{const r=document.documentElement;e==="dark"?r.classList.add("dark"):r.classList.remove("dark"),L4(e)},[e]),{theme:e,toggleTheme:()=>{t(r=>r==="light"?"dark":"light")}}}let De=null;async function R4(e="success"){try{De=new AudioContext;const t=De.createOscillator(),n=De.createGain();t.connect(n),n.connect(De.destination),e==="success"?(t.frequency.setValueAtTime(523.25,De.currentTime),t.frequency.setValueAtTime(659.25,De.currentTime+.1),t.frequency.setValueAtTime(783.99,De.currentTime+.2),n.gain.setValueAtTime(.3,De.currentTime),n.gain.exponentialRampToValueAtTime(.01,De.currentTime+.4),t.start(De.currentTime),t.stop(De.currentTime+.4)):(t.frequency.setValueAtTime(400,De.currentTime),t.frequency.setValueAtTime(300,De.currentTime+.15),t.frequency.setValueAtTime(200,De.currentTime+.3),n.gain.setValueAtTime(.3,De.currentTime),n.gain.exponentialRampToValueAtTime(.01,De.currentTime+.5),t.start(De.currentTime),t.stop(De.currentTime+.5))}catch(t){console.error("Failed to play notification sound:",t)}finally{De&&(await De.close(),De=null)}}async function D4(e){if(!("Notification"in window))return console.warn("Browser does not support notifications"),!1;if(Notification.permission==="default"&&await Notification.requestPermission()!=="granted")return console.warn("Notification permission denied"),!1;if(Notification.permission!=="granted")return!1;try{const t=new Notification(e.title,{body:e.body,icon:e.icon||"/favicon.ico",tag:e.tag,requireInteraction:!1});return setTimeout(()=>t.close(),5e3),!0}catch(t){return console.error("Failed to send notification:",t),!1}}function P4(){return"Notification"in window?Notification.permission:null}async function J0(e){const{sound:t,...n}=e;await Promise.all([D4(n),R4(t||"success")])}function M4(){const[e,t]=R.useState(!1),[n,r]=R.useState("default"),{theme:i,toggleTheme:s}=O4(),u=R.useRef(null),a=R.useRef(null);R.useEffect(()=>{r(P4()||"default")},[]),R.useEffect(()=>{if(!e)return;const f=p=>{u.current&&a.current&&!u.current.contains(p.target)&&!a.current.contains(p.target)&&t(!1)},m=setTimeout(()=>{document.addEventListener("click",f)},0);return()=>{clearTimeout(m),document.removeEventListener("click",f)}},[e]),R.useEffect(()=>{if(!e)return;const f=m=>{m.key==="Escape"&&t(!1)};return document.addEventListener("keydown",f),()=>document.removeEventListener("keydown",f)},[e]);const o=R.useCallback(async()=>{if(!("Notification"in window))return;const f=await Notification.requestPermission();r(f)},[]),c=()=>{switch(n){case"granted":return"通知已开启";case"denied":return"通知已禁用";default:return"请求通知权限"}},h=()=>{switch(n){case"granted":return d.jsx(wf,{size:18,className:"text-emerald-500"});case"denied":return d.jsx(fb,{size:18,className:"text-red-400"});default:return d.jsx(wf,{size:18})}};return d.jsxs("div",{className:"relative",children:[d.jsx("button",{ref:a,onClick:()=>t(!e),className:Z("inline-flex items-center justify-center w-9 h-9 rounded-xl","bg-muted/50 hover:bg-muted hover:shadow-md transition-all duration-200",e&&"bg-primary/10"),title:"设置",children:d.jsx(Vb,{size:19,className:Z(e&&"animate-spin-slow")})}),e&&d.jsxs("div",{ref:u,className:"absolute right-0 top-full mt-2 w-64 bg-gradient-to-br from-card to-card/90 border border-border/60 rounded-xl shadow-[0_0_0_1px_rgba(0,0,0,0.05),0_4px_12px_rgba(0,0,0,0.12),0_20px_40px_rgba(0,0,0,0.1)] z-50 animate-scale-in overflow-hidden",children:[d.jsxs("div",{className:"p-2",children:[d.jsxs("button",{onClick:o,disabled:n==="granted",className:Z("w-full flex items-center gap-3 px-3 py-2.5 rounded-lg transition-all duration-200 text-left",n==="granted"?"cursor-default":"hover:bg-muted cursor-pointer"),children:[d.jsx("span",{className:"text-lg w-6 text-center",children:h()}),d.jsxs("div",{className:"flex-1 min-w-0",children:[d.jsx("span",{className:"text-sm font-medium block truncate",children:"通知权限"}),d.jsx("span",{className:Z("text-xs block truncate",n==="granted"?"text-emerald-500":n==="denied"?"text-red-400":"text-muted-foreground"),children:c()})]}),n!=="granted"&&n!=="denied"&&d.jsx("span",{className:"text-xs text-primary font-medium",children:"点击开启"})]}),d.jsxs("button",{onClick:s,className:"w-full flex items-center gap-3 px-3 py-2.5 rounded-lg hover:bg-muted transition-all duration-200 cursor-pointer",children:[i==="dark"?d.jsx(Gb,{size:18,className:"text-amber-400"}):d.jsx(Fb,{size:18,className:"text-blue-400"}),d.jsxs("div",{className:"flex-1 min-w-0",children:[d.jsx("span",{className:"text-sm font-medium block truncate",children:"主题模式"}),d.jsx("span",{className:"text-xs text-muted-foreground block truncate",children:i==="dark"?"深色模式":"浅色模式"})]})]})]}),d.jsx("div",{className:"h-1 bg-gradient-to-r from-primary via-violet-500 to-accent"})]})]})}function F4({onMessage:e,onSkillProgress:t,onSkillLog:n,onSkillComplete:r,onSkillQuestion:i,maxRetries:s=10,baseDelay:u=1e3}){const a=R.useRef(null),o=R.useRef(0),c=R.useRef(null),[h,f]=R.useState(!1),[m,p]=R.useState(!1),[x,k]=R.useState(!1),v=()=>{var O;if(((O=a.current)==null?void 0:O.readyState)===WebSocket.OPEN)return;const g=`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/ws/changes`,w=new WebSocket(g);w.onopen=()=>{f(!0),p(!1),k(!1),o.current=0},w.onmessage=N=>{try{const P=JSON.parse(N.data),I=P==null?void 0:P.type;if(I==="skill_progress"&&t){t(P.data);return}if(I==="skill_log"&&n){n(P.data);return}if(I==="skill_complete"&&r){r(P.data);return}if(I==="skill_question"&&i){i(P.data);return}e(P)}catch{}},w.onclose=()=>{if(a.current=null,o.current<s){f(!1),p(!0);const N=Math.min(u*Math.pow(2,o.current),3e4);c.current=setTimeout(()=>{o.current++,v()},N)}else f(!1),p(!1),k(!0)},w.onerror=()=>{},a.current=w};return R.useEffect(()=>(v(),()=>{var T;c.current&&clearTimeout(c.current),(T=a.current)==null||T.close()}),[]),{isConnected:h,isReconnecting:m,hasFailed:x,reconnect:()=>{var T;c.current&&clearTimeout(c.current),o.current=0,k(!1),p(!1),(T=a.current)==null||T.close(),v()}}}function B4({onRefresh:e,onSkillProgress:t,onSkillLog:n,onSkillComplete:r,onSkillQuestion:i}={}){const[s,u]=R.useState([]),[a,o]=R.useState(!0),[c,h]=R.useState(null),[f,m]=R.useState(!1),[p,x]=R.useState(!1),k=R.useCallback(async()=>{if(!p){o(!0);try{const O=await xe.getChanges();u(O),h(null),x(!0)}catch(O){h(String(O))}finally{o(!1)}}},[p]),v=R.useCallback(async()=>{m(!0);try{const O=await xe.getChanges();u(O),h(null),e==null||e()}catch(O){h(String(O))}finally{m(!1)}},[e]);R.useEffect(()=>{k()},[k]);const{isConnected:E,isReconnecting:T,hasFailed:g,reconnect:w}=F4({onMessage:O=>{(O==null?void 0:O.type)==="refresh"&&(m(!0),xe.getChanges().then(N=>{u(N),h(null)}).catch(N=>{console.error("Refresh failed:",N)}).finally(()=>{m(!1)}))},onSkillProgress:t?O=>t(O):void 0,onSkillLog:n?O=>n(O):void 0,onSkillComplete:r?O=>r(O):void 0,onSkillQuestion:i?O=>{i(O===null?null:O)}:void 0});return{changes:s,loading:a,error:c,refresh:v,isConnected:E,isReconnecting:T,hasFailed:g,reconnect:w,isRefreshing:f}}function j4(){const[e,t]=R.useState(null),[n,r]=R.useState(!0);return R.useEffect(()=>{xe.getConfig().then(t).finally(()=>r(!1))},[]),{config:e,loading:n}}function U4(){const[e,t]=R.useState([]),[n,r]=R.useState(!0);return R.useEffect(()=>{xe.getSkills().then(t).catch(()=>t([])).finally(()=>r(!1))},[]),{skills:e,loading:n}}const Z0={skill:"",change:"",status:"idle",phase:"creating_artifact",currentTask:0,totalTasks:0,currentArtifact:null,startedAt:"",updatedAt:""},eh=5*60*1e3,H4=1e3;function z4(){const[e,t]=R.useState(Z0),[n,r]=R.useState([]),[i,s]=R.useState(null),u=R.useRef(null),a=R.useRef(null),o=R.useRef(new Set),c=R.useCallback(async()=>{try{const[g,w]=await Promise.all([xe.getExecution(),xe.getExecutionLog()]);t(g),r(w),o.current=new Set(w.map(O=>O.line))}catch{t(Z0),r([])}},[]);R.useEffect(()=>{c()},[c]),R.useEffect(()=>(e.status==="running"&&(a.current=setInterval(async()=>{try{const g=await xe.getExecution();t(w=>g.currentTask!==w.currentTask||g.totalTasks!==w.totalTasks||g.updatedAt!==w.updatedAt?g:w)}catch{}},H4)),()=>{a.current&&clearInterval(a.current)}),[e.status]),R.useEffect(()=>{if(u.current&&clearTimeout(u.current),e.status==="running"&&e.updatedAt){const g=Date.now()-new Date(e.updatedAt).getTime();g>=eh?t(w=>({...w,status:"idle"})):u.current=setTimeout(()=>{t(w=>({...w,status:"idle"}))},eh-g)}return()=>{u.current&&clearTimeout(u.current)}},[e.status,e.updatedAt]);const h=R.useCallback(g=>{t(g)},[]),f=R.useCallback(g=>{o.current.has(g.line)||(o.current.add(g.line),r(w=>[...w,{line:g.line,timestamp:g.timestamp}]))},[]),m=R.useCallback(g=>{t(g),s(null)},[]),p=R.useCallback(g=>{s(g)},[]),x=R.useCallback(()=>{s(null)},[]),k=e.status==="running",v=e.status==="completed",E=e.status==="failed",T=e.status==="interrupted";return{state:e,logs:n,pendingQuestion:i,isRunning:k,isCompleted:v,isFailed:E,isInterrupted:T,loadExecution:c,handleSkillProgress:h,handleSkillLog:f,handleSkillComplete:m,handleSkillQuestion:p,clearQuestion:x}}function Y4(e){R.useEffect(()=>{const t=n=>{var u;const r=document.activeElement,i=r==null?void 0:r.tagName.toLowerCase();if(i==="input"||i==="textarea"||i==="select"||(r==null?void 0:r.getAttribute("contenteditable"))==="true"){n.key==="Escape"&&(n.preventDefault(),e.onEscape());return}switch(n.key){case"r":n.preventDefault(),e.onRefresh();break;case"n":n.preventDefault(),e.onNewChange();break;case"Escape":n.preventDefault(),e.onEscape();break;case"?":n.preventDefault(),(u=e.onShowHelp)==null||u.call(e);break}};return document.addEventListener("keydown",t),()=>document.removeEventListener("keydown",t)},[e])}function V4(){return d.jsx(S4,{children:d.jsx(vg,{children:d.jsx($4,{})})})}function $4(){const{skills:e}=U4(),t=z4(),[n,r]=R.useState("idle"),i=Fc(),s=R.useRef(""),{changes:u,loading:a,error:o,refresh:c,isConnected:h,isReconnecting:f,hasFailed:m,reconnect:p,isRefreshing:x}=B4({onSkillProgress:N=>t.handleSkillProgress(N),onSkillLog:N=>t.handleSkillLog(N),onSkillComplete:N=>{t.handleSkillComplete(N);const P=`${N.skill}-${N.change}-${N.status}`;s.current!==P&&(s.current=P,N.status==="completed"?(i.success(`/opsx:${N.skill} ${N.change} 执行完成`),J0({title:"✅ 任务执行完成",body:`/opsx:${N.skill} ${N.change} 执行成功`,tag:"skill-complete",sound:"success"})):N.status==="failed"&&(i.error(`/opsx:${N.skill} ${N.change} 执行失败`),J0({title:"❌ 任务执行失败",body:`/opsx:${N.skill} ${N.change} 执行失败,请检查日志`,tag:"skill-failed",sound:"error"})))},onSkillQuestion:N=>t.handleSkillQuestion(N)}),k=R.useCallback(async()=>{await c(),await t.loadExecution()},[c,t.loadExecution]);R.useEffect(()=>{n==="running"&&t.state.status!=="running"?r(t.state.status):t.state.status==="running"&&r("running")},[t.state.status,n]);const{config:v}=j4(),[E,T]=R.useState(null),[g,w]=R.useState(!1),O=R.useCallback(()=>{T(null)},[]);return Y4({onRefresh:k,onNewChange:()=>w(!0),onEscape:()=>{g?w(!1):E&&O()}}),a?d.jsxs("div",{className:"min-h-screen",children:[d.jsx(nu,{config:v,isConnected:h,isReconnecting:f,hasFailed:m,onRefresh:k,reconnect:p}),d.jsx(b4,{})]}):o?d.jsxs("div",{className:"min-h-screen",children:[d.jsx(nu,{config:v,isConnected:h,isReconnecting:f,hasFailed:m,onRefresh:k,reconnect:p}),d.jsx(Q4,{error:o,onRetry:k})]}):v!=null&&v._notInitialized?d.jsxs("div",{className:"min-h-screen",children:[d.jsx(nu,{config:v,isConnected:h,isReconnecting:f,hasFailed:m,onRefresh:k,reconnect:p}),d.jsx(G4,{message:v._message,onInitialized:k})]}):d.jsxs("div",{className:"min-h-screen flex flex-col",children:[d.jsx(nu,{config:v,isConnected:h,isReconnecting:f,hasFailed:m,onRefresh:c,reconnect:p,isRefreshing:x,skills:e,executionState:t.state,showNewInput:g,onShowNewInput:w}),x&&d.jsx("div",{className:"fixed top-16 left-0 right-0 h-1 z-50",children:d.jsx("div",{className:"h-full bg-gradient-to-r from-primary via-accent to-primary animate-pulse"})}),t.state.status!=="idle"&&!E&&d.jsx("div",{className:"px-4 pt-4",children:d.jsx(Sg,{state:t.state,logs:t.logs,pendingQuestion:t.pendingQuestion,onQuestionAnswered:t.clearQuestion,onRetry:()=>{t.state.skill&&t.state.change&&xe.startSkill(t.state.skill,t.state.change)},onCancel:()=>xe.cancelSkill()})}),d.jsxs("div",{className:"flex-1 relative",children:[!E&&d.jsx(pT,{changes:u,onSelectChange:T,onRefresh:k,executionState:t.state,skills:e}),E&&d.jsx("div",{className:"animate-slide-in-right",children:d.jsx(vg,{children:d.jsx(C4,{name:E,onBack:O,skills:e,executionState:t.state,executionLogs:t.logs,pendingQuestion:t.pendingQuestion,onQuestionAnswered:t.clearQuestion,onRetry:()=>{t.state.skill&&t.state.change&&xe.startSkill(t.state.skill,t.state.change)},onCancel:()=>xe.cancelSkill()},E)})})]}),!E&&d.jsx(q4,{})]})}function nu({config:e,isConnected:t,isReconnecting:n,hasFailed:r,onRefresh:i,reconnect:s,isRefreshing:u,skills:a,executionState:o,showNewInput:c,onShowNewInput:h}){const[f,m]=R.useState(""),[p,x]=R.useState(!1),[k,v]=R.useState(!1),[E,T]=R.useState(!1),[g,w]=R.useState(!1),O=R.useRef(null),N=c??p,P=h??x,{currentProject:I}=wg(),F=Fc();R.useEffect(()=>{if(!g)return;const j=te=>{O.current&&!O.current.contains(te.target)&&w(!1)};return document.addEventListener("mousedown",j),()=>document.removeEventListener("mousedown",j)},[g]);const A=async()=>{if(!f.trim())return;const j=f.trim().replace(/\s+/g,"-");v(!0);try{await xe.startSkill("propose",j),m(""),P(!1)}catch{}v(!1)},V=async()=>{if(!(I!=null&&I.path)){F.error("项目路径无效");return}if(!E){T(!0);try{const j=await xe.openTerminal(I.path);j.success?F.success("终端已打开"):F.error(j.error||"无法打开终端")}catch{F.error("无法打开终端")}finally{T(!1)}}};return d.jsx("header",{className:"sticky top-0 z-40 bg-gradient-to-b from-background via-background to-background/60 backdrop-blur-xl border-b border-border/40",children:d.jsx("div",{className:"px-6 py-4",children:d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsxs("div",{className:"relative",children:[d.jsx("div",{className:"w-11 h-11 rounded-2xl bg-gradient-to-br from-primary via-accent to-primary-light flex items-center justify-center shadow-xl shadow-primary/20",children:d.jsx(Rc,{className:"text-white",size:24})}),(o==null?void 0:o.status)==="running"&&d.jsx("div",{className:"absolute -bottom-1 -right-1 w-3.5 h-3.5 bg-blue-500 rounded-full border-2 border-background animate-pulse"}),(o==null?void 0:o.status)!=="running"&&d.jsx("div",{className:"absolute -bottom-1 -right-1 w-3.5 h-3.5 bg-emerald-500 rounded-full border-2 border-background"})]}),d.jsxs("div",{children:[d.jsx("h1",{className:"font-bold text-lg bg-gradient-to-r from-foreground to-muted-foreground bg-clip-text text-transparent",children:"OpenSpec Dashboard"}),d.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:[e&&d.jsxs("span",{className:"flex items-center gap-1",children:[d.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-emerald-500"}),"Schema: ",e.schema]}),(o==null?void 0:o.status)==="running"&&d.jsxs("span",{className:"flex items-center gap-1 text-blue-400",children:[d.jsx("span",{className:"animate-pulse",children:"●"}),"opsx:",o.skill," 执行中"]})]})]}),d.jsx(w4,{}),d.jsxs("button",{onClick:V,disabled:E||!(I!=null&&I.path),className:Z("inline-flex items-center gap-2 px-3 py-1.5 rounded-xl text-sm font-medium","bg-gradient-to-r from-blue-500 to-blue-600 hover:from-blue-600 hover:to-blue-700","text-white shadow-lg hover:shadow-xl hover:shadow-blue-500/20","transition-all duration-200 active:scale-[0.97]","border border-blue-400/20",(!(I!=null&&I.path)||E)&&"opacity-50 cursor-not-allowed bg-gray-500 hover:from-gray-500 hover:to-gray-500 shadow-none"),title:I!=null&&I.path?"打开 Claude 终端":"请先选择一个项目",children:[E?d.jsx(zn,{className:"animate-spin",size:16}):d.jsx(Xb,{size:16}),d.jsx("span",{className:"hidden sm:inline",children:"终端"})]})]}),d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsxs("button",{onClick:()=>P(!0),disabled:(o==null?void 0:o.status)==="running",className:Z("btn-primary text-sm gap-1.5 px-4 py-2",(o==null?void 0:o.status)==="running"&&"opacity-50 cursor-not-allowed"),children:[d.jsx(hr,{size:16}),d.jsx("span",{className:"hidden sm:inline",children:"新建变更"})]}),N&&d.jsx("div",{className:"fixed inset-0 bg-black/40 backdrop-blur-md flex items-center justify-center z-[100]",onClick:()=>{P(!1),m("")},children:d.jsxs("div",{className:"bg-background border border-border/60 rounded-2xl shadow-2xl w-full mx-4 animate-scale-in max-w-lg",style:{maxWidth:"600px",margin:"auto"},onClick:j=>j.stopPropagation(),children:[d.jsxs("div",{className:"p-6",children:[d.jsx("h3",{className:"text-lg font-bold mb-4",children:"新建变更"}),d.jsx("div",{className:"flex gap-2 mb-3",children:["feat-","fix-","hotfix-"].map(j=>d.jsx("button",{onClick:()=>m(te=>te.startsWith(j)?te:j+te.replace(/^(feat-|fix-|hotfix-)/,"")),className:Z("badge cursor-pointer transition-colors",f.startsWith(j)?"bg-primary text-primary-foreground":"bg-muted text-muted-foreground hover:bg-primary hover:text-primary-foreground"),children:j},j))}),d.jsx("input",{type:"text",value:f,onChange:j=>m(j.target.value.replace(/\s+/g,"-")),onKeyDown:j=>j.key==="Enter"&&f.trim()&&A(),placeholder:"feat-user-auth 或 fix-login-bug",className:"w-full px-4 py-3 text-base bg-muted rounded-lg border border-border focus:outline-none focus:ring-2 focus:ring-primary font-mono",autoFocus:!0,style:{width:"100%"}}),f.trim()&&d.jsxs("p",{className:"text-xs text-muted-foreground mt-2 font-mono",children:["将执行: ",d.jsxs("span",{className:"text-primary",children:["/opsx:propose ",f.trim().replace(/\s+/g,"-")]})]})]}),d.jsxs("div",{className:"flex gap-3 justify-end px-6 pb-6",children:[d.jsx("button",{onClick:()=>{P(!1),m("")},className:"btn-ghost px-4 py-2",children:"取消"}),d.jsx("button",{onClick:A,disabled:k||!f.trim(),className:Z("btn-primary px-4 py-2",(k||!f.trim())&&"opacity-50"),children:k?d.jsxs(d.Fragment,{children:[d.jsx(zn,{className:"animate-spin",size:16})," 启动中..."]}):d.jsxs(d.Fragment,{children:[d.jsx(hr,{size:16})," 创建并执行"]})})]})]})}),d.jsx(W4,{isConnected:t,isReconnecting:n,hasFailed:r,onReconnect:s}),d.jsxs("div",{className:"relative",ref:O,children:[d.jsx("button",{onClick:()=>w(j=>!j),className:Z("inline-flex items-center justify-center w-9 h-9 rounded-xl text-sm transition-all duration-200","bg-amber-50 text-amber-600 dark:bg-amber-900/20 dark:text-amber-300","hover:bg-amber-100 dark:hover:bg-amber-900/30","border border-amber-300/40 dark:border-amber-500/20",g&&"ring-2 ring-amber-400/50"),title:"使用提示","aria-label":"使用提示",children:d.jsx(If,{size:16})}),g&&d.jsx("div",{className:"absolute right-0 mt-2 w-80 z-50 bg-card border border-border/60 rounded-xl shadow-[0_0_0_1px_rgba(0,0,0,0.05),0_4px_12px_rgba(0,0,0,0.12),0_20px_40px_rgba(0,0,0,0.1)] overflow-hidden animate-scale-in",children:d.jsxs("div",{className:"p-4",children:[d.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[d.jsx(If,{size:16,className:"text-amber-500"}),d.jsx("h4",{className:"font-semibold text-sm",children:"使用提示"})]}),d.jsxs("p",{className:"text-sm text-foreground leading-relaxed",children:["技能执行(如 ",d.jsx("code",{className:"font-mono text-xs bg-muted px-1 rounded",children:"/opsx:propose"}),"、",d.jsx("code",{className:"font-mono text-xs bg-muted px-1 rounded",children:"/opsx:apply"})," 等)",d.jsx("span",{className:"font-semibold text-amber-600 dark:text-amber-400",children:"暂只支持 Claude"}),", 需先在本机安装 ",d.jsx("code",{className:"font-mono text-xs bg-muted px-1 rounded",children:"claude"}),"。"]}),d.jsx("p",{className:"text-xs text-muted-foreground mt-3",children:"仅查看变更状态、切换项目等功能不需要 Claude。"})]})})]}),d.jsx(M4,{})]})]})})})}function W4({isConnected:e,isReconnecting:t,hasFailed:n,onReconnect:r}){return e?d.jsxs("div",{className:"inline-flex items-center gap-2 px-3.5 py-2 rounded-xl bg-emerald-50 text-emerald-700 dark:bg-emerald-900/20 dark:text-emerald-400 text-sm font-medium",children:[d.jsxs("span",{className:"relative flex h-2.5 w-2.5",children:[d.jsx("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-emerald-400 opacity-75"}),d.jsx("span",{className:"relative inline-flex rounded-full h-2.5 w-2.5 bg-emerald-500"})]}),"实时同步"]}):t?d.jsxs("div",{className:"inline-flex items-center gap-2 px-3.5 py-2 rounded-xl bg-amber-50 text-amber-700 dark:bg-amber-900/20 dark:text-amber-400 text-sm font-medium",children:[d.jsx(zn,{className:"animate-spin",size:14}),"连接中..."]}):d.jsxs("button",{onClick:r,className:"inline-flex items-center gap-2 px-3.5 py-2 rounded-xl bg-red-50 text-red-700 dark:bg-red-900/20 dark:text-red-400 text-sm font-medium hover:bg-red-100 dark:hover:bg-red-900/30 transition-all duration-200",title:"点击重连",children:[d.jsx(ga,{size:14}),"重连"]})}function Q4({error:e,onRetry:t}){return d.jsxs("div",{className:"flex flex-col items-center justify-center min-h-[70vh] gap-6 px-4 animate-fade-in",children:[d.jsx("div",{className:"relative",children:d.jsx("div",{className:"w-24 h-24 rounded-full bg-red-500/10 flex items-center justify-center",children:d.jsx(xr,{className:"text-red-400",size:48})})}),d.jsxs("div",{className:"text-center",children:[d.jsx("h2",{className:"text-2xl font-bold mb-2",children:"加载失败"}),d.jsx("p",{className:"text-muted-foreground max-w-md",children:e})]}),d.jsxs("button",{onClick:t,className:"btn-primary gap-2",children:[d.jsx(ms,{size:16})," 重试"]})]})}function q4(){return d.jsxs("footer",{className:"relative border-t border-border/50 bg-gradient-to-r from-background via-background/95 to-background backdrop-blur-xl py-5 px-6 shadow-[0_-4px_20px_rgba(0,0,0,0.05)]",children:[d.jsxs("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",children:[d.jsx("div",{className:"absolute -top-1/2 -left-1/4 w-96 h-96 bg-primary/5 rounded-full blur-3xl"}),d.jsx("div",{className:"absolute -bottom-1/2 -right-1/4 w-96 h-96 bg-accent/5 rounded-full blur-3xl"})]}),d.jsxs("div",{className:"relative flex items-center justify-between text-sm",children:[d.jsxs("div",{className:"flex items-center gap-4",children:[d.jsxs("div",{className:"flex items-center gap-2 group cursor-default",children:[d.jsx("div",{className:"w-7 h-7 rounded-lg bg-gradient-to-br from-primary/10 to-accent/10 flex items-center justify-center transition-transform group-hover:scale-110",children:d.jsx(Rc,{size:16,className:"text-primary"})}),d.jsx("span",{className:"font-medium text-foreground/80",children:"OpenSpec Dashboard"})]}),d.jsxs("div",{className:"hidden sm:flex items-center gap-2 text-muted-foreground/60",children:[d.jsx("span",{className:"w-1 h-1 rounded-full bg-muted-foreground/40"}),d.jsxs("span",{className:"font-mono",children:["v","0.1.1"]})]})]}),d.jsx("div",{className:"flex items-center gap-2 text-muted-foreground/70",children:d.jsxs("div",{className:"flex items-center gap-1.5 group cursor-default",children:[d.jsx(Ab,{className:"transition-transform group-hover:scale-125",size:16}),d.jsx("span",{className:"font-medium",children:"Vince"})]})})]})]})}function G4({message:e,onInitialized:t}){const[n,r]=R.useState(!1),[i,s]=R.useState(null),[u,a]=R.useState(!1),[o,c]=R.useState(!1),h=R.useCallback(async()=>{r(!1),a(!0),s(null),c(!1);try{const f=await xe.initOpenspec();f.status==="success"?(c(!0),setTimeout(()=>{t==null||t(),window.location.reload()},2e3)):s(f.error||"初始化失败")}catch(f){s(String(f))}finally{a(!1)}},[t]);return d.jsxs("div",{className:"flex flex-col items-center justify-center min-h-[70vh] gap-6 px-4 animate-fade-in",children:[d.jsxs("div",{className:"relative",children:[d.jsx("div",{className:"w-24 h-24 rounded-full bg-blue-500/10 flex items-center justify-center",children:d.jsx(Ib,{className:"text-blue-400",size:48})}),d.jsx("div",{className:"absolute -top-2 -right-2 animate-bounce",children:d.jsx(hr,{className:"text-amber-400",size:24})})]}),d.jsxs("div",{className:"text-center",children:[d.jsx("h2",{className:"text-2xl font-bold mb-2",children:"OpenSpec 未初始化"}),d.jsx("p",{className:"text-muted-foreground max-w-md mb-4",children:e||"当前项目还没有初始化 OpenSpec 工作区"}),d.jsxs("div",{className:"bg-muted/50 rounded-lg p-4 text-left max-w-lg mb-4",children:[d.jsx("p",{className:"text-sm text-muted-foreground mb-2",children:"请先安装 openspec CLI:"}),d.jsx("code",{className:"block bg-muted-foreground/10 px-3 py-2 rounded text-sm font-mono mb-2",children:"npm install -g @fission-ai/openspec@latest"}),d.jsx("p",{className:"text-xs text-muted-foreground",children:"或使用 pnpm/yarn 安装,然后点击下方「一键初始化」按钮"})]}),i&&d.jsx("div",{className:"bg-red-500/10 border border-red-500/20 rounded-lg p-3 text-left max-w-lg mb-4",children:d.jsx("p",{className:"text-sm text-red-400",children:i})}),o&&d.jsx("div",{className:"bg-emerald-500/10 border border-emerald-500/20 rounded-lg p-3 text-left max-w-lg mb-4 animate-fade-in",children:d.jsxs("p",{className:"text-sm text-emerald-400 flex items-center gap-2",children:[d.jsx(ei,{size:16}),"初始化成功!2 秒后自动刷新..."]})}),!o&&d.jsxs("button",{onClick:()=>r(!0),disabled:u,className:"btn-primary gap-2",children:[u?d.jsx(zn,{className:"animate-spin",size:16}):d.jsx(Pc,{size:16}),d.jsx("span",{children:u?"初始化中...":"一键初始化 OpenSpec"})]})]}),n&&d.jsx("div",{className:"fixed inset-0 bg-black/50 backdrop-blur-sm flex items-center justify-center z-50 animate-fade-in",children:d.jsxs("div",{className:"bg-background border border-border rounded-xl p-6 max-w-md mx-4 shadow-xl animate-scale-in",children:[d.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[d.jsx("div",{className:"w-12 h-12 rounded-full bg-amber-500/10 flex items-center justify-center",children:d.jsx(xr,{className:"text-amber-400",size:24})}),d.jsxs("div",{children:[d.jsx("h3",{className:"text-lg font-bold",children:"确认初始化"}),d.jsx("p",{className:"text-sm text-muted-foreground",children:"此操作将创建 openspec/ 目录"})]})]}),d.jsx("div",{className:"bg-muted/50 rounded-lg p-3 mb-4 text-sm",children:d.jsxs("p",{className:"text-muted-foreground",children:["将在当前项目目录创建 ",d.jsx("code",{className:"font-mono bg-muted px-1 rounded",children:"openspec/"})," 子目录, 包括配置和变更追踪文件。"]})}),d.jsxs("div",{className:"flex gap-3 justify-end",children:[d.jsxs("button",{onClick:()=>r(!1),className:"btn-ghost gap-2",children:[d.jsx(Mc,{size:16}),"取消"]}),d.jsxs("button",{onClick:h,className:"btn-primary bg-amber-500 hover:bg-amber-600 gap-2",children:[d.jsx(hs,{size:16}),"确认初始化"]})]})]})})]})}_o.createRoot(document.getElementById("root")).render(d.jsx(Ts.StrictMode,{children:d.jsx(cT,{children:d.jsx(V4,{})})}));
|