local-diff-reviewer 2.0.6 → 2.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/web/assets/{arc-B0o1oVL4.js → arc-DPbtceHP.js} +1 -1
- package/dist/web/assets/{architectureDiagram-3BPJPVTR-CZd7V0e9.js → architectureDiagram-3BPJPVTR-DNStf-Tm.js} +1 -1
- package/dist/web/assets/{blockDiagram-GPEHLZMM-BfhuudSB.js → blockDiagram-GPEHLZMM-urJ9rmUi.js} +1 -1
- package/dist/web/assets/{c4Diagram-AAUBKEIU-Cg3sNFA7.js → c4Diagram-AAUBKEIU-8NNwyK7B.js} +1 -1
- package/dist/web/assets/channel-DZ7E6kmR.js +1 -0
- package/dist/web/assets/{chunk-2J33WTMH-auNUSziU.js → chunk-2J33WTMH-I9RAI31w.js} +1 -1
- package/dist/web/assets/{chunk-3OPIFGDE-BRll15Er.js → chunk-3OPIFGDE-BfDOBvGP.js} +1 -1
- package/dist/web/assets/{chunk-4BX2VUAB-C6yPScT7.js → chunk-4BX2VUAB-CfhA9Ka0.js} +1 -1
- package/dist/web/assets/{chunk-55IACEB6-De9gxZHQ.js → chunk-55IACEB6-D5xa1Q-O.js} +1 -1
- package/dist/web/assets/{chunk-5ZQYHXKU-BCbv9rU9.js → chunk-5ZQYHXKU-DThBXSxw.js} +1 -1
- package/dist/web/assets/{chunk-727SXJPM-CQcKC5Hr.js → chunk-727SXJPM-Dmj0TguB.js} +1 -1
- package/dist/web/assets/{chunk-AQP2D5EJ-_VNeqgHC.js → chunk-AQP2D5EJ-5GQUKm6Y.js} +1 -1
- package/dist/web/assets/{chunk-BSJP7CBP-DYKZ62Gi.js → chunk-BSJP7CBP-ByP7yKcL.js} +1 -1
- package/dist/web/assets/{chunk-CSCIHK7Q-DvCqofkD.js → chunk-CSCIHK7Q-CyvdpuGn.js} +1 -1
- package/dist/web/assets/{chunk-FMBD7UC4-BR6kSfjm.js → chunk-FMBD7UC4-BqfFPh0V.js} +1 -1
- package/dist/web/assets/{chunk-KSCS5N6A-B8eCGDnR.js → chunk-KSCS5N6A-BO3kRHKk.js} +1 -1
- package/dist/web/assets/{chunk-L5ZTLDWV-hVEC6Ojt.js → chunk-L5ZTLDWV-D7pnZKRu.js} +1 -1
- package/dist/web/assets/{chunk-LZXEDZCA-rgNP7shv.js → chunk-LZXEDZCA-COYSA4i7.js} +2 -2
- package/dist/web/assets/{chunk-ND2GUHAM-CE8tRXk5.js → chunk-ND2GUHAM-BkFNsWII.js} +1 -1
- package/dist/web/assets/{chunk-NZK2D7GU-C9lX0iyA.js → chunk-NZK2D7GU-CFWvYQLi.js} +1 -1
- package/dist/web/assets/{chunk-O5CBEL6O-BRsj9Zuj.js → chunk-O5CBEL6O-CYtSs6L5.js} +1 -1
- package/dist/web/assets/chunk-QZHKN3VN-pRal5WFW.js +1 -0
- package/dist/web/assets/chunk-WU5MYG2G-snysjnwx.js +1 -0
- package/dist/web/assets/{chunk-XPW4576I-Cuv5CDqv.js → chunk-XPW4576I-BvdxSfsN.js} +1 -1
- package/dist/web/assets/classDiagram-4FO5ZUOK-DfarIwEb.js +1 -0
- package/dist/web/assets/classDiagram-v2-Q7XG4LA2-CwKjh0kk.js +1 -0
- package/dist/web/assets/{cose-bilkent-S5V4N54A-CirLthSc.js → cose-bilkent-S5V4N54A-C7S-jawG.js} +1 -1
- package/dist/web/assets/{dagre-BM42HDAG-DgVQJuZ7.js → dagre-BM42HDAG-lUKGyvJU.js} +1 -1
- package/dist/web/assets/{diagram-2AECGRRQ-2w7-NcMh.js → diagram-2AECGRRQ-DN8rqT2I.js} +1 -1
- package/dist/web/assets/{diagram-5GNKFQAL-5e2_p6pe.js → diagram-5GNKFQAL-BRbFkDGi.js} +1 -1
- package/dist/web/assets/{diagram-KO2AKTUF-BA8hLFV8.js → diagram-KO2AKTUF-Cps4A0uL.js} +1 -1
- package/dist/web/assets/{diagram-LMA3HP47-V1EE9v8R.js → diagram-LMA3HP47-BI4Xpctp.js} +1 -1
- package/dist/web/assets/{diagram-OG6HWLK6-DL41Xzgi.js → diagram-OG6HWLK6-YfavGQG9.js} +1 -1
- package/dist/web/assets/{dist-D3zM3JKu.js → dist-DYCOh5B-.js} +1 -1
- package/dist/web/assets/{erDiagram-TEJ5UH35-BeTyqsQx.js → erDiagram-TEJ5UH35-B-NZZR1E.js} +1 -1
- package/dist/web/assets/{flowDiagram-I6XJVG4X-ClTbphV0.js → flowDiagram-I6XJVG4X-DAcraWeQ.js} +1 -1
- package/dist/web/assets/{ganttDiagram-6RSMTGT7-DMJVfVnK.js → ganttDiagram-6RSMTGT7-CRpKXkhi.js} +1 -1
- package/dist/web/assets/{gitGraphDiagram-PVQCEYII-BamOKIBu.js → gitGraphDiagram-PVQCEYII-CHDbUCDS.js} +1 -1
- package/dist/web/assets/index-B3WywPiu.css +1 -0
- package/dist/web/assets/{index-BifdFWmT.js → index-Cvgi-Hso.js} +21 -21
- package/dist/web/assets/{infoDiagram-5YYISTIA-C8PtR3ta.js → infoDiagram-5YYISTIA-CFEPg5mW.js} +1 -1
- package/dist/web/assets/{ishikawaDiagram-YF4QCWOH--f2D59zm.js → ishikawaDiagram-YF4QCWOH-BOv6SvbZ.js} +1 -1
- package/dist/web/assets/{journeyDiagram-JHISSGLW-BJrjmYdh.js → journeyDiagram-JHISSGLW-Co5lN3xn.js} +1 -1
- package/dist/web/assets/{kanban-definition-UN3LZRKU-H7vffJKk.js → kanban-definition-UN3LZRKU-BxdsR9s2.js} +1 -1
- package/dist/web/assets/{line-CDi5YRBa.js → line-D0DomxkJ.js} +1 -1
- package/dist/web/assets/{linear-BUMCzuF2.js → linear-AQU4Ho2j.js} +1 -1
- package/dist/web/assets/{mermaid-parser.core-D-fFFE8c.js → mermaid-parser.core-BAwBxRkv.js} +1 -1
- package/dist/web/assets/{mermaid.core-KAJOx9iv.js → mermaid.core-KWVajzzH.js} +3 -3
- package/dist/web/assets/{mindmap-definition-RKZ34NQL-B_jTR4iI.js → mindmap-definition-RKZ34NQL-GQphHDAQ.js} +1 -1
- package/dist/web/assets/{pieDiagram-4H26LBE5-Bw1vPB-2.js → pieDiagram-4H26LBE5-D2pisj3a.js} +1 -1
- package/dist/web/assets/{quadrantDiagram-W4KKPZXB-Cum4U5wc.js → quadrantDiagram-W4KKPZXB-DIq7qWjn.js} +1 -1
- package/dist/web/assets/{requirementDiagram-4Y6WPE33-BcNXSmo2.js → requirementDiagram-4Y6WPE33-D-u8bK7o.js} +1 -1
- package/dist/web/assets/{sankeyDiagram-5OEKKPKP-Sd5bU-2O.js → sankeyDiagram-5OEKKPKP-DweSKe-f.js} +1 -1
- package/dist/web/assets/{sequenceDiagram-3UESZ5HK-D6zKHdZ8.js → sequenceDiagram-3UESZ5HK-B1HBcu7E.js} +1 -1
- package/dist/web/assets/{src-CZ-yc_U-.js → src-DnVHeYvx.js} +1 -1
- package/dist/web/assets/{stateDiagram-AJRCARHV-Ck0azvzO.js → stateDiagram-AJRCARHV-BP4U8oWy.js} +1 -1
- package/dist/web/assets/stateDiagram-v2-BHNVJYJU-Cd8xaQOp.js +1 -0
- package/dist/web/assets/{timeline-definition-PNZ67QCA-BNScimbs.js → timeline-definition-PNZ67QCA-qFZo1QlL.js} +1 -1
- package/dist/web/assets/{vennDiagram-CIIHVFJN-D-ZPeCJd.js → vennDiagram-CIIHVFJN-C5yTB5bU.js} +1 -1
- package/dist/web/assets/{wardleyDiagram-YWT4CUSO-BZ222pbJ.js → wardleyDiagram-YWT4CUSO-wVHBlqeh.js} +1 -1
- package/dist/web/assets/{xychartDiagram-2RQKCTM6-6Hb5YL8q.js → xychartDiagram-2RQKCTM6-5EHjNtPE.js} +1 -1
- package/dist/web/index.html +2 -2
- package/package.json +1 -1
- package/dist/web/assets/channel-DLw3X7AY.js +0 -1
- package/dist/web/assets/chunk-QZHKN3VN-DhcCaBIJ.js +0 -1
- package/dist/web/assets/chunk-WU5MYG2G-CeojO3gJ.js +0 -1
- package/dist/web/assets/classDiagram-4FO5ZUOK-uxKJBbFN.js +0 -1
- package/dist/web/assets/classDiagram-v2-Q7XG4LA2-CaQCxWaY.js +0 -1
- package/dist/web/assets/index-CK1mvkAF.css +0 -1
- package/dist/web/assets/stateDiagram-v2-BHNVJYJU-Ca-aoq1F.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/mermaid.core-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/mermaid.core-KWVajzzH.js","assets/chunk-O5CBEL6O-CYtSs6L5.js","assets/src-DnVHeYvx.js","assets/chunk-5ZQYHXKU-DThBXSxw.js","assets/dist-DYCOh5B-.js","assets/chunk-CSCIHK7Q-CyvdpuGn.js","assets/chunk-3OPIFGDE-BfDOBvGP.js","assets/chunk-L5ZTLDWV-D7pnZKRu.js","assets/chunk-NZK2D7GU-CFWvYQLi.js","assets/rough.esm-KjoEK0it.js","assets/chunk-BSJP7CBP-ByP7yKcL.js","assets/chunk-KSCS5N6A-BO3kRHKk.js","assets/line-D0DomxkJ.js","assets/path-BJQEcSo7.js","assets/array-yLZkcI6Y.js","assets/chunk-LZXEDZCA-COYSA4i7.js","assets/chunk-WU5MYG2G-snysjnwx.js","assets/chunk-XPW4576I-BvdxSfsN.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(n,r,a)=>(a=n==null?{}:e(i(n)),c(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var u=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function E(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function D(e,t){return E(e.type,t,e.props)}function O(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function k(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var A=/\/+/g;function j(e,t){return typeof e==`object`&&e&&e.key!=null?k(``+e.key):t.toString(36)}function M(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function N(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,N(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+j(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(A,`$&/`)+`/`),N(o,r,i,``,function(e){return e})):o!=null&&(O(o)&&(o=D(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(A,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u<e.length;u++)a=e[u],s=l+j(a,u),c+=N(a,r,i,s,o);else if(u=m(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+j(a,u++),c+=N(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return N(M(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function P(e,t,n){if(e==null)return e;var r=[],i=0;return N(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function F(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var I=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},L={map:P,forEach:function(e,t,n){P(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return P(e,function(){t++}),t},toArray:function(e){return P(e,function(e){return e})||[]},only:function(e){if(!O(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=L,e.Component=v,e.Fragment=r,e.Profiler=a,e.PureComponent=b,e.StrictMode=i,e.Suspense=l,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return w.H.useMemoCache(e)}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=g({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!T.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return E(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)T.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return E(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=O,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:F}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=w.T,n={};w.T=n;try{var r=e(),i=w.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(C,I)}catch(e){I(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),w.T=t}},e.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},e.use=function(e){return w.H.use(e)},e.useActionState=function(e,t,n){return w.H.useActionState(e,t,n)},e.useCallback=function(e,t){return w.H.useCallback(e,t)},e.useContext=function(e){return w.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return w.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return w.H.useEffect(e,t)},e.useEffectEvent=function(e){return w.H.useEffectEvent(e)},e.useId=function(){return w.H.useId()},e.useImperativeHandle=function(e,t,n){return w.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return w.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return w.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return w.H.useMemo(e,t)},e.useOptimistic=function(e,t){return w.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return w.H.useReducer(e,t,n)},e.useRef=function(e){return w.H.useRef(e)},e.useState=function(e){return w.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return w.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return w.H.useTransition()},e.version=`19.2.6`})),d=o(((e,t)=>{t.exports=u()})),f=o((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&j(x,t.startTime-e)}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-T<w)}function D(){if(g=!1,S){var t=e.unstable_now();T=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&j(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var k=new MessageChannel,A=k.port2;k.port1.onmessage=D,O=function(){A.postMessage(null)}}else O=function(){_(D,0)};function j(t,n){C=_(function(){t(e.unstable_now())},n)}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(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,j(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),p=o(((e,t)=>{t.exports=f()})),m=o((e=>{var t=d();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;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.`}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for(`react.portal`);function o(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}var s=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return o(e,t,null,r)},e.flushSync=function(e){var t=s.T,n=i.p;try{if(s.T=null,i.p=2,e)return e()}finally{s.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,i.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&i.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin),a=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?i.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):n===`script`&&i.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`)if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=c(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0})}}else t??i.d.M(e)},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`)if(t){var n=c(t.as,t.crossOrigin);i.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0})}else i.d.m(e)},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return s.H.useFormState(e,t,n)},e.useFormStatus=function(){return s.H.useHostTransitionStatus()},e.version=`19.2.6`})),h=o(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=m()})),g=o((e=>{var t=p(),n=d(),r=h();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;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.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(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 s(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 c(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(i(188))}function u(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function f(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=f(e),t!==null)return t;e=e.sibling}return null}var m=Object.assign,g=Symbol.for(`react.element`),_=Symbol.for(`react.transitional.element`),v=Symbol.for(`react.portal`),y=Symbol.for(`react.fragment`),b=Symbol.for(`react.strict_mode`),x=Symbol.for(`react.profiler`),S=Symbol.for(`react.consumer`),C=Symbol.for(`react.context`),w=Symbol.for(`react.forward_ref`),T=Symbol.for(`react.suspense`),E=Symbol.for(`react.suspense_list`),D=Symbol.for(`react.memo`),O=Symbol.for(`react.lazy`),k=Symbol.for(`react.activity`),A=Symbol.for(`react.memo_cache_sentinel`),j=Symbol.iterator;function M(e){return typeof e!=`object`||!e?null:(e=j&&e[j]||e[`@@iterator`],typeof e==`function`?e:null)}var N=Symbol.for(`react.client.reference`);function P(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===N?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case y:return`Fragment`;case x:return`Profiler`;case b:return`StrictMode`;case T:return`Suspense`;case E:return`SuspenseList`;case k:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case v:return`Portal`;case C:return e.displayName||`Context`;case S:return(e._context.displayName||`Context`)+`.Consumer`;case w:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case D:return t=e.displayName||null,t===null?P(e.type)||`Memo`:t;case O:t=e._payload,e=e._init;try{return P(e(t))}catch{}}return null}var F=Array.isArray,I=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,L=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,R={pending:!1,data:null,method:null,action:null},z=[],B=-1;function V(e){return{current:e}}function H(e){0>B||(e.current=z[B],z[B]=null,B--)}function U(e,t){B++,z[B]=e.current,e.current=t}var W=V(null),ee=V(null),te=V(null),G=V(null);function ne(e,t){switch(U(te,t),U(ee,e),U(W,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Ud(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Ud(t),e=Wd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}H(W),U(W,e)}function re(){H(W),H(ee),H(te)}function ie(e){e.memoizedState!==null&&U(G,e);var t=W.current,n=Wd(t,e.type);t!==n&&(U(ee,e),U(W,n))}function K(e){ee.current===e&&(H(W),H(ee)),G.current===e&&(H(G),ep._currentValue=R)}var q,ae;function oe(e){if(q===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);q=t&&t[1]||``,ae=-1<e.stack.indexOf(`
|
|
3
3
|
at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
|
|
4
4
|
`+q+e+ae}var se=!1;function J(e,t){if(!e||se)return``;se=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,`props`,{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,`name`,{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
|
|
@@ -245,44 +245,44 @@ html body {
|
|
|
245
245
|
${t}-next,
|
|
246
246
|
${t}-jump-prev,
|
|
247
247
|
${t}-jump-next
|
|
248
|
-
`]:{display:`inline-block`,minWidth:r(`item-size-actual`),height:r(`item-size-actual`),color:e.colorText,fontFamily:e.fontFamily,lineHeight:r(`item-size-actual`),textAlign:`center`,verticalAlign:`middle`,listStyle:`none`,borderRadius:e.borderRadius,cursor:`pointer`,transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{outline:0,button:{color:e.colorText,cursor:`pointer`,userSelect:`none`},[`${t}-item-link`]:{display:`block`,width:`100%`,height:`100%`,padding:0,fontSize:e.fontSizeSM,textAlign:`center`,backgroundColor:`transparent`,border:`${X(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:`none`,transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:`transparent`}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:`inline-block`,marginInlineStart:e.margin,verticalAlign:`middle`,"&-size-changer":{width:`auto`},"&-quick-jumper":{display:`inline-block`,height:r(`item-size-actual`),marginInlineStart:e.marginXS,lineHeight:r(`item-size-actual`),verticalAlign:`baseline`,input:{...fw(e),...YC(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow}),"&[disabled]":{...JC(e)},width:e.quickJumperInputWidth,height:r(`item-size-actual`),boxSizing:`border-box`,margin:0,marginInlineStart:r(`item-spacing-actual`),marginInlineEnd:r(`item-spacing-actual`)}}}}},aO=e=>{let{componentCls:t,antCls:n}=e,[,r]=Za(n,`pagination`);return{[`${t}-item`]:{display:`inline-block`,minWidth:r(`item-size-actual`),height:r(`item-size-actual`),marginInlineEnd:r(`item-spacing-actual`),fontFamily:e.fontFamily,lineHeight:X(e.calc(r(`item-size-actual`)).sub(2).equal()),textAlign:`center`,verticalAlign:`middle`,listStyle:`none`,backgroundColor:e.itemBg,border:`${X(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:`pointer`,userSelect:`none`,a:{display:`block`,padding:`0 ${X(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:`none`}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.itemActiveColor},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.itemActiveColorHover}}}}},oO=e=>{let{componentCls:t,antCls:n}=e,[r,i]=Za(n,`pagination`);return{[t]:{[r(`item-size-actual`)]:X(e.itemSize),[r(`item-spacing-actual`)]:X(e.marginXS),"&-small":{[r(`item-size-actual`)]:X(e.itemSizeSM),[r(`item-spacing-actual`)]:X(e.marginXXS)},"&-large":{[r(`item-size-actual`)]:X(e.itemSizeLG),[r(`item-spacing-actual`)]:X(e.marginSM)},...za(e),display:`flex`,alignItems:`center`,"&-start":{justifyContent:`start`},"&-center":{justifyContent:`center`},"&-end":{justifyContent:`end`},"ul, ol":{margin:0,padding:0,listStyle:`none`},"&::after":{display:`block`,clear:`both`,height:0,overflow:`hidden`,visibility:`hidden`,content:`""`},[`${t}-total-text`]:{display:`inline-block`,height:i(`item-size-actual`),marginInlineEnd:i(`item-spacing-actual`),lineHeight:X(e.calc(i(`item-size-actual`)).sub(2).equal()),verticalAlign:`middle`},...aO(e),...iO(e),...rO(e),...tO(e),...nO(e),...eO(e),[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:`none`}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:`none`}}},[`&${e.componentCls}-rtl`]:{direction:`rtl`}}},sO=e=>{let{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:{...Ua(e)},[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0},...Ha(e)}},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Ha(e)}}}},cO=e=>({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemSizeLG:e.controlHeightLG,itemActiveBg:e.colorBgContainer,itemActiveColor:e.colorPrimary,itemActiveColorHover:e.colorPrimaryHover,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0,...KC(e)}),lO=e=>si(e,{inputOutlineOffset:0,quickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.25).equal(),paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:`0.13em`},GC(e)),uO=Ja(`Pagination`,e=>{let t=lO(e);return[oO(t),sO(t)]},cO),dO=e=>{let{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${X(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},fO=Xa([`Pagination`,`bordered`],e=>dO(lO(e)),cO);function pO(e){return(0,v.useMemo)(()=>typeof e==`boolean`?[e,{}]:sc(e)?[!0,e]:[void 0,void 0],[e])}var mO=e=>{let{align:t,prefixCls:n,selectPrefixCls:r,className:i,rootClassName:a,style:o,size:s,locale:c,responsive:l,showSizeChanger:u,selectComponentClass:d,pageSizeOptions:f,styles:p,classNames:m,...h}=e,{xs:g}=zb(l),[,_]=La(),{getPrefixCls:y,direction:b,showSizeChanger:x,className:S,style:C,classNames:w,styles:T,totalBoundaryShowSizeChanger:E}=Ze(`pagination`),D=y(`pagination`,n),[O,k]=uO(D),A=Ad(s),j=A===`small`||!!(g&&!A&&l),M={...e,size:A},[N,P]=Dc([w,m],[T,p],{props:M}),[F]=ec(`Pagination`,Ps),I={...F,...c},[L,R]=pO(u),[z,B]=pO(x),V=L??z,H=R??B,U=d||Mb,W=v.useMemo(()=>f?f.map(Number):void 0,[f]),ee=e=>{let{disabled:t,size:n,onSizeChange:r,"aria-label":i,className:a,options:o}=e,{className:s,onChange:c}=H||{},l=o.find(e=>String(e.value)===String(n))?.value;return v.createElement(U,{disabled:t,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:e=>e.parentNode,"aria-label":i,options:o,...H,value:l,onChange:(e,t)=>{r?.(e),c?.(e,t)},size:A,className:Y(a,s)})},te=v.useMemo(()=>{let e=v.createElement(`span`,{className:`${D}-item-ellipsis`},`•••`);return{prevIcon:v.createElement(`button`,{className:`${D}-item-link`,type:`button`,tabIndex:-1},b===`rtl`?v.createElement(Kf,null):v.createElement(Ax,null)),nextIcon:v.createElement(`button`,{className:`${D}-item-link`,type:`button`,tabIndex:-1},b===`rtl`?v.createElement(Ax,null):v.createElement(Kf,null)),jumpPrevIcon:v.createElement(`a`,{className:`${D}-item-link`},v.createElement(`div`,{className:`${D}-item-container`},b===`rtl`?v.createElement(UD,{className:`${D}-item-link-icon`}):v.createElement(BD,{className:`${D}-item-link-icon`}),e)),jumpNextIcon:v.createElement(`a`,{className:`${D}-item-link`},v.createElement(`div`,{className:`${D}-item-container`},b===`rtl`?v.createElement(BD,{className:`${D}-item-link-icon`}):v.createElement(UD,{className:`${D}-item-link-icon`}),e))}},[b,D]),G=y(`select`,r),ne=Y({[`${D}-${t}`]:!!t,[`${D}-${A}`]:A,[`${D}-mini`]:j,[`${D}-rtl`]:b===`rtl`,[`${D}-bordered`]:_.wireframe},S,i,a,N.root,O,k),re={...P.root,...C,...o};return v.createElement(v.Fragment,null,_.wireframe&&v.createElement(fO,{prefixCls:D}),v.createElement($D,{...te,...h,styles:P,classNames:N,style:re,prefixCls:D,selectPrefixCls:G,className:ne,locale:I,pageSizeOptions:W,showSizeChanger:V,totalBoundaryShowSizeChanger:h.totalBoundaryShowSizeChanger??E,sizeChangerRender:ee}))},hO=100,gO=hO/5,_O=hO/2-gO/2,vO=_O*2*Math.PI,yO=50,bO=e=>{let{dotClassName:t,style:n,hasCircleCls:r}=e;return v.createElement(`circle`,{className:Y(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:_O,cx:yO,cy:yO,strokeWidth:gO,style:n})},xO=({percent:e,prefixCls:t})=>{let n=`${t}-dot`,r=`${n}-holder`,i=`${r}-hidden`,[a,o]=v.useState(!1);S(()=>{e!==0&&o(!0)},[e!==0]);let s=Math.max(Math.min(e,100),0);if(!a)return null;let c={strokeDashoffset:`${vO/4}`,strokeDasharray:`${vO*s/100} ${vO*(100-s)/100}`};return v.createElement(`span`,{className:Y(r,`${n}-progress`,{[i]:s<=0})},v.createElement(`svg`,{viewBox:`0 0 ${hO} ${hO}`,role:`progressbar`,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":s},v.createElement(bO,{dotClassName:n,hasCircleCls:!0}),v.createElement(bO,{dotClassName:n,style:c})))};function SO(e){let{prefixCls:t,percent:n=0,className:r,style:i}=e,a=`${t}-dot`,o=`${a}-holder`,s=`${o}-hidden`;return v.createElement(v.Fragment,null,v.createElement(`span`,{className:Y(o,r,n>0&&s),style:i},v.createElement(`span`,{className:Y(a,`${t}-dot-spin`)},[1,2,3,4].map(e=>v.createElement(`i`,{className:`${t}-dot-item`,key:e})))),v.createElement(xO,{prefixCls:t,percent:n}))}function CO(e){let{prefixCls:t,indicator:n,percent:r,className:i,style:a}=e,o=`${t}-dot`;return n&&v.isValidElement(n)?ou(n,e=>({className:Y(e.className,o,i),style:{...e.style,...a},percent:r})):v.createElement(SO,{prefixCls:t,percent:r,className:i,style:a})}var wO=new Or(`antSpinMove`,{to:{opacity:1}}),TO=new Or(`antRotate`,{to:{transform:`rotate(405deg)`}}),EO=e=>{let{componentCls:t}=e,n=`${t}-section`;return{[t]:{...za(e),position:`relative`,"&-rtl":{direction:`rtl`},[`&${n}, ${n}`]:{display:`flex`,alignItems:`center`,flexDirection:`column`,gap:e.paddingSM,color:e.colorPrimary},[`&${n}`]:{display:`inline-flex`},[n]:{position:`absolute`,top:`50%`,left:{_skip_check_:!0,value:`50%`},transform:`translate(-50%, -50%)`,zIndex:1},[`${t}-description`]:{fontSize:e.fontSize,lineHeight:1},[`${t}-container`]:{position:`relative`,transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:`absolute`,top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:`100%`,height:`100%`,background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:`""`,pointerEvents:`none`}},"&-spinning":{[`${t}-description`]:{textShadow:`0 0px 5px ${e.colorBgContainer}`},[`${t}-container`]:{clear:`both`,opacity:.5,userSelect:`none`,pointerEvents:`none`,"&::after":{opacity:.4,pointerEvents:`auto`}}},"&-fullscreen":{position:`fixed`,inset:0,backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,opacity:0,pointerEvents:`none`,transition:`all ${e.motionDurationMid}`,[`&${t}-spinning`]:{opacity:1,pointerEvents:`auto`},[n]:{color:e.colorWhite,[`${t}-description`]:{color:e.colorTextLightSolid}}}}}},DO=e=>{let{componentCls:t,antCls:n,motionDurationSlow:r}=e,[i,a]=Za(n,`spin`);return{[t]:{[i(`dot-holder-size`)]:e.dotSize,[i(`dot-item-size`)]:`calc((${a(`dot-holder-size`)} - ${e.marginXXS} / 2) / 2)`,[`${t}-dot`]:{"&-holder":{width:`1em`,height:`1em`,fontSize:a(`dot-holder-size`),display:`inline-block`,transition:[`transform`,`opacity`].map(e=>`${e} ${r} ease`).join(`, `),transformOrigin:`50% 50%`,lineHeight:1,"&-hidden":{transform:`scale(0.3)`,opacity:0}},position:`relative`,display:`inline-block`,fontSize:a(`dot-holder-size`),width:`1em`,height:`1em`,"&-spin":{transform:`rotate(45deg)`,animationName:TO,animationDuration:`1.2s`,animationIterationCount:`infinite`,animationTimingFunction:`linear`},"&-item":{position:`absolute`,display:`block`,width:a(`dot-item-size`),height:a(`dot-item-size`),background:`currentColor`,borderRadius:`100%`,transform:`scale(0.75)`,transformOrigin:`50% 50%`,opacity:.3,animationName:wO,animationDuration:`1s`,animationIterationCount:`infinite`,animationTimingFunction:`linear`,animationDirection:`alternate`,"&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:`0s`},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:`0.4s`},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:`0.8s`},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:`1.2s`}},"&-progress":{position:`absolute`,left:`50%`,top:0,transform:`translateX(-50%)`},"&-circle":{strokeLinecap:`round`,transition:[`stroke-dashoffset`,`stroke-dasharray`,`stroke`,`stroke-width`,`opacity`].map(e=>`${e} ${r} ease`).join(`,`),fillOpacity:0,stroke:`currentcolor`},"&-circle-bg":{stroke:e.colorFillSecondary}}}}},OO=e=>{let{componentCls:t}=e,[n]=Za(e.antCls,`spin`);return{[t]:{"&-sm":{[n(`dot-holder-size`)]:e.dotSizeSM},"&-lg":{[n(`dot-holder-size`)]:e.dotSizeLG}}}},kO=Ja(`Spin`,e=>{let t=si(e,{spinDotDefault:e.colorTextDescription});return[EO(t),DO(t),OO(t)]},e=>{let{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}}),AO=200,jO=[[30,.05],[70,.03],[96,.01]];function MO(e,t){let[n,r]=v.useState(0),i=v.useRef(null),a=t===`auto`;return v.useEffect(()=>(a&&e&&(r(0),i.current=setInterval(()=>{r(e=>{let t=100-e;for(let n=0;n<jO.length;n+=1){let[r,i]=jO[n];if(e<=r)return e+t*i}return e})},AO)),()=>{i.current&&=(clearInterval(i.current),null)}),[a,e]),a?n:t}var NO;function PO(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}var FO=e=>{let{prefixCls:t,spinning:n=!0,delay:r=0,className:i,rootClassName:a,size:o,tip:s,description:c,wrapperClassName:l,style:u,children:d,fullscreen:f=!1,indicator:p,percent:m,classNames:h,styles:g,..._}=e,{getPrefixCls:y,direction:b,indicator:x,className:S,style:C,classNames:w,styles:T}=Ze(`spin`),E=y(`spin`,t),[D,O]=kO(E),[k,A]=v.useState(()=>n&&!PO(n,r)),j=MO(k,m);v.useEffect(()=>{if(n){let e=BT(r,()=>{A(!0)});return e(),()=>{e?.cancel?.()}}A(!1)},[r,n]);let M=Ad(e=>o??e),N=c??s,P={...e,size:M,spinning:k,tip:N,description:N,fullscreen:f,children:d,percent:j},[F,I]=Dc([w,h],[T,g],{props:P}),L=p??x??NO,R=d!==void 0,z=R||f,B=v.createElement(v.Fragment,null,v.createElement(CO,{className:Y(F.indicator),style:I.indicator,prefixCls:E,indicator:L,percent:j}),N&&v.createElement(`div`,{className:Y(`${E}-description`,F.tip,F.description),style:{...I.tip,...I.description}},N));return v.createElement(`div`,{className:Y(E,{[`${E}-sm`]:M===`small`,[`${E}-lg`]:M===`large`,[`${E}-spinning`]:k,[`${E}-rtl`]:b===`rtl`,[`${E}-fullscreen`]:f},a,F.root,f&&F.mask,z?l:[`${E}-section`,F.section],S,i,D,O),style:{...I.root,...z?{}:I.section,...f?I.mask:{},...C,...u},"aria-live":`polite`,"aria-busy":k,..._},k&&(z?v.createElement(`div`,{className:Y(`${E}-section`,F.section),style:I.section},B):B),R&&v.createElement(`div`,{className:Y(`${E}-container`,F.container),style:I.container},d))};FO.setDefaultIndicator=e=>{NO=e};var IO=v.createContext({});IO.Consumer;var LO=({prefixCls:e,className:t,avatar:n,title:r,description:i,...a})=>{let{getPrefixCls:o}=(0,v.useContext)(Je),s=o(`list`,e),c=Y(`${s}-item-meta`,t),l=v.createElement(`div`,{className:`${s}-item-meta-content`},r&&v.createElement(`h4`,{className:`${s}-item-meta-title`},r),i&&v.createElement(`div`,{className:`${s}-item-meta-description`},i));return v.createElement(`div`,{...a,className:c},n&&v.createElement(`div`,{className:`${s}-item-meta-avatar`},n),(r||i)&&l)},RO=v.forwardRef((e,t)=>{let{prefixCls:n,children:r,actions:i,extra:a,styles:o,className:s,classNames:c,colStyle:l,...u}=e,{grid:d,itemLayout:f}=(0,v.useContext)(IO),{getPrefixCls:p,list:m}=(0,v.useContext)(Je),h=e=>Y(m?.item?.classNames?.[e],c?.[e]),g=e=>({...m?.item?.styles?.[e],...o?.[e]}),_=()=>{let e=de(r);return e.some(e=>typeof e==`string`)&&e.length>1},y=()=>f===`vertical`?!!a:!_(),b=p(`list`,n),x=i&&i.length>0&&v.createElement(`ul`,{className:Y(`${b}-item-action`,h(`actions`)),key:`actions`,style:g(`actions`)},i.map((e,t)=>v.createElement(`li`,{key:`${b}-item-action-${t}`},e,t!==i.length-1&&v.createElement(`em`,{className:`${b}-item-action-split`})))),S=d?`div`:`li`,C=v.createElement(S,{...u,...d?{}:{ref:t},className:Y(`${b}-item`,{[`${b}-item-no-flex`]:!y()},s)},f===`vertical`&&a?[v.createElement(`div`,{className:`${b}-item-main`,key:`content`},r,x),v.createElement(`div`,{className:Y(`${b}-item-extra`,h(`extra`)),key:`extra`,style:g(`extra`)},a)]:[r,x,ou(a,{key:`extra`})]);return d?v.createElement(UT,{ref:t,flex:1,style:l},C):C});RO.Meta=LO;var zO=e=>{let{listBorderedCls:t,componentCls:n,paddingLG:r,margin:i,itemPaddingSM:a,itemPaddingLG:o,marginLG:s,borderRadiusLG:c}=e,l=X(e.calc(c).sub(e.lineWidth).equal());return{[t]:{border:`${X(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:c,[`${n}-header`]:{borderRadius:`${l} ${l} 0 0`},[`${n}-footer`]:{borderRadius:`0 0 ${l} ${l}`},[`${n}-header,${n}-footer,${n}-item`]:{paddingInline:r},[`${n}-pagination`]:{margin:`${X(i)} ${X(s)}`}},[`${t}${n}-sm`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:a}},[`${t}${n}-lg`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:o}}}},BO=e=>{let{componentCls:t,screenSM:n,screenMD:r,marginLG:i,marginSM:a,margin:o}=e;return{[`@media screen and (max-width:${r}px)`]:{[t]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:i}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:i}}}},[`@media screen and (max-width: ${n}px)`]:{[t]:{[`${t}-item`]:{flexWrap:`wrap`,[`${t}-action`]:{marginInlineStart:a}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:`wrap-reverse`,[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${X(o)}`}}}}}},VO=e=>{let{componentCls:t,antCls:n,controlHeight:r,minHeight:i,paddingSM:a,marginLG:o,padding:s,itemPadding:c,colorPrimary:l,itemPaddingSM:u,itemPaddingLG:d,paddingXS:f,margin:p,colorText:m,colorTextDescription:h,motionDurationSlow:g,lineWidth:_,headerBg:v,footerBg:y,emptyTextPadding:b,metaMarginBottom:x,avatarMarginRight:S,titleMarginBottom:C,descriptionFontSize:w}=e;return{[t]:{...za(e),position:`relative`,"--rc-virtual-list-scrollbar-bg":e.colorSplit,"*":{outline:`none`},[`${t}-header`]:{background:v},[`${t}-footer`]:{background:y},[`${t}-header, ${t}-footer`]:{paddingBlock:a},[`${t}-pagination`]:{marginBlockStart:o,[`${n}-pagination-options`]:{textAlign:`start`}},[`${t}-spin`]:{minHeight:i,textAlign:`center`},[`${t}-items`]:{margin:0,padding:0,listStyle:`none`},[`${t}-item`]:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,padding:c,color:m,[`${t}-item-meta`]:{display:`flex`,flex:1,alignItems:`flex-start`,maxWidth:`100%`,[`${t}-item-meta-avatar`]:{marginInlineEnd:S},[`${t}-item-meta-content`]:{flex:`1 0`,width:0,color:m},[`${t}-item-meta-title`]:{margin:`0 0 ${X(e.marginXXS)} 0`,color:m,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:m,transition:`all ${g}`,"&:hover":{color:l}}},[`${t}-item-meta-description`]:{color:h,fontSize:w,lineHeight:e.lineHeight}},[`${t}-item-action`]:{flex:`0 0 auto`,marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:`none`,"& > li":{position:`relative`,display:`inline-block`,padding:`0 ${X(f)}`,color:h,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:`center`,"&:first-child":{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:`absolute`,insetBlockStart:`50%`,insetInlineEnd:0,width:_,height:e.calc(e.fontHeight).sub(e.calc(e.marginXXS).mul(2)).equal(),transform:`translateY(-50%)`,backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${X(s)} 0`,color:h,fontSize:e.fontSizeSM,textAlign:`center`},[`${t}-empty-text`]:{padding:b,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:`center`},[`${t}-item-no-flex`]:{display:`block`}},[`${t}-grid ${n}-col > ${t}-item`]:{display:`block`,maxWidth:`100%`,marginBlockEnd:p,paddingBlock:0,borderBlockEnd:`none`},[`${t}-vertical ${t}-item`]:{alignItems:`initial`,[`${t}-item-main`]:{display:`block`,flex:1},[`${t}-item-extra`]:{marginInlineStart:o},[`${t}-item-meta`]:{marginBlockEnd:x,[`${t}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:C,color:m,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:s,marginInlineStart:`auto`,"> li":{padding:`0 ${X(s)}`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${X(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:`none`}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${X(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${X(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-loading ${t}-spin-nested-loading`]:{minHeight:r},[`${t}-split${t}-something-after-last-item ${n}-spin-container > ${t}-items > ${t}-item:last-child`]:{borderBlockEnd:`${X(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:d},[`${t}-sm ${t}-item`]:{padding:u},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:`right`}}}}},HO=Ja(`List`,e=>{let t=si(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG});return[VO(t),zO(t),BO(t)]},e=>({contentWidth:220,itemPadding:`${X(e.paddingContentVertical)} 0`,itemPaddingSM:`${X(e.paddingContentVerticalSM)} ${X(e.paddingContentHorizontal)}`,itemPaddingLG:`${X(e.paddingContentVerticalLG)} ${X(e.paddingContentHorizontalLG)}`,headerBg:`transparent`,footerBg:`transparent`,emptyTextPadding:e.padding,metaMarginBottom:e.padding,avatarMarginRight:e.padding,titleMarginBottom:e.paddingSM,descriptionFontSize:e.fontSize}),{extraCssVarPrefixCls:({prefixCls:e})=>[`${e}-container`]}),UO=v.forwardRef((e,t)=>{let{pagination:n=!1,prefixCls:r,bordered:i=!1,split:a=!0,className:o,rootClassName:s,style:c,children:l,itemLayout:u,loadMore:d,grid:f,dataSource:p=[],size:m,header:h,footer:g,loading:_=!1,rowKey:y,renderItem:b,locale:x,...S}=e,C=sc(n)?n:{},[w,T]=v.useState(C.defaultCurrent||1),[E,D]=v.useState(C.defaultPageSize||10),{getPrefixCls:O,direction:k,className:A,style:j}=Ze(`list`),{renderEmpty:M}=v.useContext(Je),N={current:1,total:0,position:`bottom`},P=e=>(t,r)=>{T(t),D(r),n&&n?.[e]?.(t,r)},F=P(`onChange`),I=P(`onShowSizeChange`),L=(e,t)=>{if(!b)return null;let n;return n=typeof y==`function`?y(e):y?e[y]:e.key,n||=`list-item-${t}`,v.createElement(v.Fragment,{key:n},b(e,t))},R=!!(d||n||g),z=O(`list`,r),[B,V]=HO(z),H=_;typeof H==`boolean`&&(H={spinning:H});let U=!!H?.spinning,W=Ad(m),ee=``;switch(W){case`large`:ee=`lg`;break;case`small`:ee=`sm`;break;default:break}let te=Y(z,{[`${z}-vertical`]:u===`vertical`,[`${z}-${ee}`]:ee,[`${z}-split`]:a,[`${z}-bordered`]:i,[`${z}-loading`]:U,[`${z}-grid`]:!!f,[`${z}-something-after-last-item`]:R,[`${z}-rtl`]:k===`rtl`},A,o,s,B,V),G=`${z}-container`,ne=rc(N,{total:p.length,current:w,pageSize:E},n||{}),re=Math.ceil(ne.total/ne.pageSize);ne.current=Math.min(ne.current,re);let ie=n&&v.createElement(`div`,{className:Y(`${z}-pagination`)},v.createElement(mO,{align:`end`,...ne,onChange:F,onShowSizeChange:I})),K=ze(p);n&&p.length>(ne.current-1)*ne.pageSize&&(K=ze(p).splice((ne.current-1)*ne.pageSize,ne.pageSize));let q=zb(Object.keys(f||{}).some(e=>Pb.includes(e))),ae=v.useMemo(()=>{for(let e=0;e<Pb.length;e+=1){let t=Pb[e];if(q[t])return t}},[q]),oe=v.useMemo(()=>{if(!f)return;let e=ae&&f[ae]?f[ae]:f.column;if(e)return{width:`${100/e}%`,maxWidth:`${100/e}%`}},[JSON.stringify(f),ae]),se=U&&v.createElement(`div`,{style:{minHeight:53}});if(K.length>0){let e=K.map(L);se=f?v.createElement(KT,{className:Y(G,V),gutter:f.gutter},v.Children.map(e,e=>v.createElement(`div`,{key:e?.key,style:oe},e))):v.createElement(`ul`,{className:Y(`${z}-items`,G,V)},e)}else !l&&!U&&(se=v.createElement(`div`,{className:`${z}-empty-text`},x?.emptyText||M?.(`List`)||v.createElement(rb,{componentName:`List`})));let J=ne.position,ce=v.useMemo(()=>({grid:f,itemLayout:u}),[JSON.stringify(f),u]);return v.createElement(IO.Provider,{value:ce},v.createElement(`div`,{ref:t,style:{...j,...c},className:te,...S},(J===`top`||J===`both`)&&ie,h&&v.createElement(`div`,{className:`${z}-header`},h),v.createElement(FO,{...H},se,l),g&&v.createElement(`div`,{className:`${z}-footer`},g),d||(J===`bottom`||J===`both`)&&ie))});UO.Item=RO;var WO=(e,t={})=>!ic(e)&&t?.skipEmpty?[]:Array.isArray(e)?e:[e],GO=J_(e=>{let{prefixCls:t,className:n,closeIcon:r,closable:i,type:a,title:o,children:s,footer:c,classNames:l,styles:u,...d}=e,{getPrefixCls:f}=v.useContext(Je),{className:p,style:m,classNames:h,styles:g}=Ze(`modal`),_=f(),y=t||f(`modal`),b=Yc(_),[x,S]=qg(y,b),[C,w]=Dc([h,l],[g,u],{props:e}),T=`${y}-confirm`,E={};return E=a?{closable:i??!1,title:``,footer:``,children:v.createElement(Qg,{...e,prefixCls:y,confirmPrefixCls:T,rootPrefixCls:_,content:s})}:{closable:i??!0,title:o,footer:c!==null&&v.createElement(kg,{...e}),children:s},v.createElement(Wp,{prefixCls:y,className:Y(x,`${y}-pure-panel`,a&&T,a&&`${T}-${a}`,n,p,S,b,C.root),style:{...m,...w.root},...d,closeIcon:Og(y,r),closable:i,classNames:C,styles:w,...E})});function KO(e){return a_(o_(e))}var qO=Yg;qO.useModal=h_,qO.info=function(e){return a_(s_(e))},qO.success=function(e){return a_(c_(e))},qO.error=function(e){return a_(l_(e))},qO.warning=KO,qO.warn=KO,qO.confirm=function(e){return a_(u_(e))},qO.destroyAll=function(){for(;t_.length;){let e=t_.pop();e&&e()}},qO.config=d_,qO._InternalPanelDoNotUseOrYouWillBeFired=GO;var JO=Ja(`Popconfirm`,e=>{let{componentCls:t,iconCls:n,antCls:r,zIndexPopup:i,colorText:a,colorWarning:o,marginXXS:s,marginXS:c,fontSize:l,fontWeightStrong:u,colorTextHeading:d}=e;return{[t]:{zIndex:i,[`&${r}-popover`]:{fontSize:l},[`${t}-message`]:{marginBottom:c,display:`flex`,flexWrap:`nowrap`,alignItems:`start`,[`> ${t}-message-icon ${n}`]:{color:o,fontSize:l,lineHeight:1,marginInlineEnd:c},[`${t}-title`]:{fontWeight:u,color:d,"&:only-child":{fontWeight:`normal`}},[`${t}-description`]:{marginTop:s,color:a}},[`${t}-buttons`]:{textAlign:`end`,whiteSpace:`nowrap`,button:{marginInlineStart:c}}}}},e=>{let{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}},{resetStyle:!1}),YO=e=>{let{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:i,description:a,cancelText:o,okText:s,okType:c=`primary`,icon:l=v.createElement(No,null),showCancel:u=!0,close:d,onConfirm:f,onCancel:p,onPopupClick:m,classNames:h,styles:g}=e,{getPrefixCls:_}=v.useContext(Je),[y]=ec(`Popconfirm`,qs.Popconfirm),b=Bb(i),x=Bb(a);return v.createElement(`div`,{className:`${t}-inner-content`,onClick:m},v.createElement(`div`,{className:`${t}-message`},l&&v.createElement(`span`,{className:`${t}-message-icon`},l),v.createElement(`div`,{className:`${t}-message-text`},b&&v.createElement(`div`,{className:Y(`${t}-title`,h?.title),style:g?.title},b),x&&v.createElement(`div`,{className:Y(`${t}-description`,h?.content),style:g?.content},x))),v.createElement(`div`,{className:`${t}-buttons`},u&&v.createElement(_p,{onClick:p,size:`small`,...r},o||y?.cancelText),v.createElement(vp,{buttonProps:{size:`small`,...Vd(c),...n},actionFn:f,close:d,prefixCls:_(`btn`),quitOnNullishReturnValue:!0,emitEvent:!0},s||y?.okText)))},XO=e=>{let{prefixCls:t,placement:n,className:r,style:i,...a}=e,{getPrefixCls:o}=v.useContext(Je),s=o(`popconfirm`,t);return JO(s),v.createElement(Cx,{placement:n,className:Y(s,r),style:i,content:v.createElement(YO,{prefixCls:s,...a})})},ZO=v.forwardRef((e,t)=>{let{prefixCls:n,placement:r=`top`,trigger:i,okType:a=`primary`,icon:o=v.createElement(No,null),children:s,overlayClassName:c,onOpenChange:l,overlayStyle:u,styles:d,arrow:f,classNames:p,...m}=e,{getPrefixCls:h,className:g,style:_,classNames:y,styles:b,arrow:x,trigger:S}=Ze(`popconfirm`),[C,w]=T(e.defaultOpen??!1,e.open),E=ax(f,x),D=i||S||`click`,O=e=>{w(e),l?.(e)},k=()=>{O(!1)},A=t=>e.onConfirm?.call(void 0,t),j=t=>{O(!1),e.onCancel?.call(void 0,t)},M=t=>{let{disabled:n=!1}=e;n||O(t)},N=h(`popconfirm`,n),P={...e,placement:r,trigger:D,okType:a,overlayStyle:u,styles:d,classNames:p},[F,I]=Dc([y,p],[b,d],{props:P}),L=Y(N,g,c,F.root);return JO(N),v.createElement(wx,{arrow:E,...ue(m,[`title`]),trigger:D,placement:r,onOpenChange:M,open:C,ref:t,classNames:{root:L,container:F.container,arrow:F.arrow},styles:{root:{..._,...I.root,...u},container:I.container,arrow:I.arrow},content:v.createElement(YO,{okType:a,icon:o,...e,prefixCls:N,close:k,onConfirm:A,onCancel:j,classNames:F,styles:I}),"data-popover-inject":!0},s)});ZO._InternalPanelDoNotUseOrYouWillBeFired=XO;var QO={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z`}}]},name:`reload`,theme:`outlined`};function $O(){return $O=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$O.apply(this,arguments)}var ek=v.forwardRef((e,t)=>v.createElement(So,$O({},e,{ref:t,icon:QO})));function tk(){return tk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tk.apply(this,arguments)}var nk=v.forwardRef(({prefixCls:e=`rc-switch`,className:t,checked:n,defaultChecked:r,disabled:i,loadingIcon:a,checkedChildren:o,unCheckedChildren:s,onClick:c,onChange:l,onKeyDown:u,styles:d,classNames:f,...p},m)=>{let[h,g]=T(r??!1,n);function _(e,t){let n=h;return i||(n=e,g(n),l?.(n,t)),n}function y(e){e.which===Z.LEFT?_(!1,e):e.which===Z.RIGHT&&_(!0,e),u?.(e)}function b(e){let t=_(!h,e);c?.(t,e)}let x=Y(e,t,{[`${e}-checked`]:h,[`${e}-disabled`]:i});return v.createElement(`button`,tk({},p,{type:`button`,role:`switch`,"aria-checked":h,disabled:i,className:x,ref:m,onKeyDown:y,onClick:b}),a,v.createElement(`span`,{className:`${e}-inner`},v.createElement(`span`,{className:Y(`${e}-inner-checked`,f?.content),style:d?.content},o),v.createElement(`span`,{className:Y(`${e}-inner-unchecked`,f?.content),style:d?.content},s)))});nk.displayName=`Switch`;var rk=e=>{let{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:i,innerMinMarginSM:a,innerMaxMarginSM:o,handleSizeSM:s,calc:c}=e,l=`${t}-inner`,u=X(c(s).add(c(r).mul(2)).equal()),d=X(c(o).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:i,height:n,lineHeight:X(n),[`${t}-inner`]:{paddingInlineStart:o,paddingInlineEnd:a,[`${l}-checked, ${l}-unchecked`]:{minHeight:n},[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${d})`,marginInlineEnd:`calc(100% - ${u} + ${d})`},[`${l}-unchecked`]:{marginTop:c(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:s,height:s},[`${t}-loading-icon`]:{top:c(c(s).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:o,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${d})`,marginInlineEnd:`calc(-100% + ${u} - ${d})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${X(c(s).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${l}`]:{[`${l}-unchecked`]:{marginInlineStart:c(e.marginXXS).div(2).equal(),marginInlineEnd:c(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${l}`]:{[`${l}-checked`]:{marginInlineStart:c(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:c(e.marginXXS).div(2).equal()}}}}}}},ik=e=>{let{componentCls:t,handleSize:n,calc:r}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:`relative`,top:r(r(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:`top`},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},ak=e=>{let{componentCls:t,trackPadding:n,handleBg:r,handleShadow:i,handleSize:a,calc:o}=e,s=`${t}-handle`;return{[t]:{[s]:{position:`absolute`,top:n,insetInlineStart:n,width:a,height:a,transition:`all ${e.switchDuration} ease-in-out`,...xf(),"&::before":{position:`absolute`,top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:o(a).div(2).equal(),boxShadow:i,transition:`all ${e.switchDuration} ease-in-out`,content:`""`,...xf()}},[`&${t}-checked ${s}`]:{insetInlineStart:`calc(100% - ${X(o(a).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${s}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${s}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},ok=e=>{let{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:i,innerMaxMargin:a,handleSize:o,switchDuration:s,calc:c}=e,l=`${t}-inner`,u=X(c(o).add(c(r).mul(2)).equal()),d=X(c(a).mul(2).equal());return{[t]:{[l]:{display:`block`,overflow:`hidden`,borderRadius:100,height:`100%`,paddingInlineStart:a,paddingInlineEnd:i,transition:[`padding-inline-start`,`padding-inline-end`].map(e=>`${e} ${s} ease-in-out`).join(`, `),...xf(),[`${l}-checked, ${l}-unchecked`]:{display:`block`,color:e.colorTextLightSolid,fontSize:e.fontSizeSM,pointerEvents:`none`,minHeight:n,transition:[`margin-inline-start`,`margin-inline-end`].map(e=>`${e} ${s} ease-in-out`).join(`, `),...xf()},[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${d})`,marginInlineEnd:`calc(100% - ${u} + ${d})`},[`${l}-unchecked`]:{marginTop:c(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${l}`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${d})`,marginInlineEnd:`calc(-100% + ${u} - ${d})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${l}`]:{[`${l}-unchecked`]:{marginInlineStart:c(r).mul(2).equal(),marginInlineEnd:c(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${l}`]:{[`${l}-checked`]:{marginInlineStart:c(r).mul(-1).mul(2).equal(),marginInlineEnd:c(r).mul(2).equal()}}}}}},sk=e=>{let{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:{...za(e),position:`relative`,display:`inline-block`,boxSizing:`border-box`,minWidth:r,height:n,lineHeight:X(n),verticalAlign:`middle`,background:e.colorTextQuaternary,border:`0`,borderRadius:100,cursor:`pointer`,transition:`all ${e.motionDurationMid}`,userSelect:`none`,...xf(),[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary},...Ua(e),[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:`not-allowed`,opacity:e.switchDisabledOpacity,"*":{boxShadow:`none`,cursor:`not-allowed`}},[`&${t}-rtl`]:{direction:`rtl`}}}},ck=Ja(`Switch`,e=>{let t=si(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:`-30%`});return[sk(t),ok(t),ak(t),ik(t),rk(t)]},e=>{let{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:i}=e,a=t*n,o=r/2,s=a-4,c=o-4;return{trackHeight:a,trackHeightSM:o,trackMinWidth:s*2+8,trackMinWidthSM:c*2+4,trackPadding:2,handleBg:i,handleSize:s,handleSizeSM:c,handleShadow:`0 2px 4px 0 ${new ki(`#00230b`).setA(.2).toRgbString()}`,innerMinMargin:s/2,innerMaxMargin:s+2+4,innerMinMarginSM:c/2,innerMaxMarginSM:c+2+4}}),lk=v.forwardRef((e,t)=>{let{prefixCls:n,size:r,disabled:i,loading:a,className:o,rootClassName:s,style:c,checked:l,value:u,defaultChecked:d,defaultValue:f,onChange:p,styles:m,classNames:h,...g}=e,[_,y]=T(d??f??!1,l??u),{getPrefixCls:b,direction:x,className:S,style:C,classNames:w,styles:E}=Ze(`switch`),D=v.useContext(du),O=(i??D)||a,k=b(`switch`,n),[A,j]=ck(k),M=Ad(r),N={...e,size:M,disabled:O},[P,F]=Dc([w,h],[E,m],{props:N}),I=v.createElement(`div`,{className:Y(`${k}-handle`,P.indicator),style:F.indicator},a&&v.createElement(Yu,{className:`${k}-loading-icon`})),L=Y(S,{[`${k}-small`]:M===`small`,[`${k}-loading`]:a,[`${k}-rtl`]:x===`rtl`},o,s,P.root,A,j),R={...F.root,...C,...c},z=(...e)=>{y(e[0]),p?.(...e)};return v.createElement(kd,{component:`Switch`,disabled:O},v.createElement(nk,{...g,classNames:P,styles:F,checked:_,onChange:z,prefixCls:k,className:L,style:R,disabled:O,ref:t,loadingIcon:I}))});lk.__ANT_SWITCH=!0;var uk=e=>{let{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:i,calc:a}=e,o=a(r).sub(n).equal(),s=a(t).sub(n).equal();return{[i]:{...za(e),display:`inline-block`,height:`auto`,paddingInline:o,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:`nowrap`,backgroundColor:e.defaultBg,border:`${X(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:`start`,position:`relative`,[`&${i}-rtl`]:{direction:`rtl`},"&, a, a:hover":{color:e.defaultColor},[`${i}-close-icon`]:{marginInlineStart:s,fontSize:e.tagIconSize,color:e.colorIcon,cursor:`pointer`,transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},"&-checkable":{backgroundColor:`transparent`,borderColor:`transparent`,cursor:`pointer`,[`&:not(${i}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive},"&-disabled":{cursor:`not-allowed`,[`&:not(${i}-checkable-checked)`]:{color:e.colorTextDisabled,"&:hover":{backgroundColor:`transparent`}},[`&${i}-checkable-checked`]:{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled},"&:hover, &:active":{backgroundColor:e.colorBgContainerDisabled,color:e.colorTextDisabled},[`&:not(${i}-checkable-checked):hover`]:{color:e.colorTextDisabled}},"&-group":{display:`flex`,flexWrap:`wrap`,gap:e.paddingXS}},"&-hidden":{display:`none`},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:o}},[`&${e.componentCls}-solid`]:{borderColor:`transparent`,color:e.colorTextLightSolid,backgroundColor:e.colorBgSolid,[`&${i}-default`]:{color:e.solidTextColor}},[`${i}-filled`]:{borderColor:`transparent`,backgroundColor:e.tagBorderlessBg},[`&${i}-disabled`]:{color:e.colorTextDisabled,cursor:`not-allowed`,backgroundColor:e.colorBgContainerDisabled,a:{cursor:`not-allowed`,pointerEvents:`none`,color:e.colorTextDisabled,"&:hover":{color:e.colorTextDisabled}},"a&":{"&:hover, &:active":{color:e.colorTextDisabled}},[`&${i}-outlined`]:{borderColor:e.colorBorderDisabled},[`&${i}-solid, &${i}-filled`]:{color:e.colorTextDisabled,[`${i}-close-icon`]:{color:e.colorTextDisabled}},[`${i}-close-icon`]:{cursor:`not-allowed`,color:e.colorTextDisabled,"&:hover":{color:e.colorTextDisabled}}}}},dk=e=>{let{lineWidth:t,fontSizeIcon:n,calc:r}=e,i=e.fontSizeSM;return si(e,{tagFontSize:i,tagLineHeight:X(r(e.lineHeightSM).mul(i).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},fk=e=>{let t=Yf(new Uf(e.colorBgSolid),`#fff`)?`#000`:`#fff`;return{defaultBg:new ki(e.colorFillTertiary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText,solidTextColor:t}},pk=Ja(`Tag`,e=>uk(dk(e)),fk),mk=v.forwardRef((e,t)=>{let{prefixCls:n,style:r,className:i,checked:a,children:o,icon:s,onChange:c,onClick:l,disabled:u,...d}=e,{getPrefixCls:f,tag:p}=v.useContext(Je),m=v.useContext(du),h=u??m,g=e=>{h||(c?.(!a),l?.(e))},_=f(`tag`,n),[y,b]=pk(_),x=Y(_,`${_}-checkable`,{[`${_}-checkable-checked`]:a,[`${_}-checkable-disabled`]:h},p?.className,i,y,b);return v.createElement(`span`,{...d,ref:t,style:{...r,...p?.style},className:x,onClick:g},s,v.createElement(`span`,null,o))}),hk=v.forwardRef((e,t)=>{let{id:n,prefixCls:r,rootClassName:i,className:a,style:o,classNames:s,styles:c,disabled:l,options:u,value:d,defaultValue:f,onChange:p,multiple:m,...h}=e,{getPrefixCls:g,direction:_,className:y,style:b,classNames:x,styles:S}=Ze(`tag`),C=g(`tag`,r),w=`${C}-checkable-group`,[E,D]=pk(C,Yc(C)),[O,k]=Dc([x,s],[S,c],{props:e}),A=(0,v.useMemo)(()=>Array.isArray(u)?u.map(e=>sc(e)?e:{value:e,label:e}):[],[u]),[j,M]=T(f,d),N=(e,t)=>{let n=null;if(m){let r=j||[];n=e?[].concat(ze(r),[t.value]):r.filter(e=>e!==t.value)}else n=e?t.value:null;M(n),p?.(n)},P=v.useRef(null);(0,v.useImperativeHandle)(t,()=>({nativeElement:P.current}));let F=Ns(h,{aria:!0,data:!0});return v.createElement(`div`,{...F,className:Y(w,y,i,{[`${w}-disabled`]:l,[`${w}-rtl`]:_===`rtl`},E,D,a,O.root),style:{...b,...k.root,...o},id:n,ref:P},A.map(e=>v.createElement(mk,{key:e.value,className:Y(`${w}-item`,O.item),style:k.item,checked:m?(j||[]).includes(e.value):j===e.value,onChange:t=>N(t,e),disabled:l},e.label)))});function gk(e,t){let{color:n,variant:r,bordered:i}=e;return v.useMemo(()=>{let e=n?.endsWith(`-inverse`),a;a=r||(e?`solid`:i===!1?`filled`:t||`filled`);let o=e?n?.replace(`-inverse`,``):n,s=fx(n),c=px(n),l={};if(!s&&!c&&o)if(a===`solid`)l.backgroundColor=n;else{let e=new ki(o).toHsl();e.l=.95,l.backgroundColor=new ki(e).toHexString(),l.color=n,a===`outlined`&&(l.borderColor=n)}return[a,o,s,c,l]},[n,r,i,t])}var _k=e=>Qa(e,(t,{textColor:n,lightBorderColor:r,lightColor:i,darkColor:a})=>({[`${e.componentCls}${e.componentCls}-${t}:not(${e.componentCls}-disabled)`]:{[`&${e.componentCls}-outlined`]:{backgroundColor:i,borderColor:r,color:n},[`&${e.componentCls}-solid`]:{backgroundColor:a,borderColor:a,color:e.colorTextLightSolid},[`&${e.componentCls}-filled`]:{backgroundColor:i,color:n}}})),vk=Xa([`Tag`,`preset`],e=>_k(dk(e)),fk);function yk(e){return typeof e==`string`?e.charAt(0).toUpperCase()+e.slice(1):e}var bk=(e,t,n)=>{let r=yk(n);return{[`${e.componentCls}${e.componentCls}-${t}:not(${e.componentCls}-disabled)`]:{[`&${e.componentCls}-outlined`]:{backgroundColor:e[`color${r}Bg`],borderColor:e[`color${r}Border`],color:e[`color${n}`]},[`&${e.componentCls}-solid`]:{backgroundColor:e[`color${n}`],borderColor:e[`color${n}`]},[`&${e.componentCls}-filled`]:{backgroundColor:e[`color${r}Bg`],color:e[`color${n}`]}}}},xk=Xa([`Tag`,`status`],e=>{let t=dk(e);return[bk(t,`success`,`Success`),bk(t,`processing`,`Info`),bk(t,`error`,`Error`),bk(t,`warning`,`Warning`)]},fk),Sk=v.forwardRef((e,t)=>{let{prefixCls:n,className:r,rootClassName:i,style:a,children:o,icon:s,color:c,variant:l,onClose:u,bordered:d,disabled:f,href:p,target:m,styles:h,classNames:g,..._}=e,{getPrefixCls:y,direction:b,className:x,variant:S,style:C,classNames:w,styles:T}=Ze(`tag`),[E,D,O,k,A]=gk(e,S),j=O||k,M=v.useContext(du),N=f??M,{tag:P}=v.useContext(Je),[F,I]=v.useState(!0),L=ue(_,[`closeIcon`,`closable`]),R={...e,color:D,variant:E,disabled:N},[z,B]=Dc([w,g],[T,h],{props:R}),V=v.useMemo(()=>{let e={...B.root,...C,...a};return N||(e={...A,...e}),e},[B.root,C,a,A,N]),H=y(`tag`,n),[U,W]=pk(H),ee=Y(H,x,z.root,`${H}-${E}`,{[`${H}-${D}`]:j,[`${H}-hidden`]:!F,[`${H}-rtl`]:b===`rtl`,[`${H}-disabled`]:N},r,i,U,W),te=e=>{N||(e.stopPropagation(),u?.(e),!e.defaultPrevented&&I(!1))},[,G]=_c(dc(e),dc(P),{closable:!1,closeIconRender:e=>au(e,v.createElement(`span`,{className:`${H}-close-icon`,onClick:te},e),e=>({onClick:t=>{e?.onClick?.(t),te(t)},className:Y(e?.className,`${H}-close-icon`)}))}),ne=typeof _.onClick==`function`||o&&o.type===`a`,re=ou(s,{className:Y(v.isValidElement(s)?s.props?.className:void 0,z.icon),style:B.icon}),ie=re?v.createElement(v.Fragment,null,re,o&&v.createElement(`span`,{className:z.content,style:B.content},o)):o,K=p?`a`:`span`,q=v.createElement(K,{...L,ref:t,className:ee,style:V,href:N?void 0:p,target:m,onClick:N?void 0:L.onClick,...p&&N?{"aria-disabled":!0}:{}},ie,G,O&&v.createElement(vk,{key:`preset`,prefixCls:H}),k&&v.createElement(xk,{key:`status`,prefixCls:H}));return ne?v.createElement(kd,{component:`Tag`},q):q});Sk.CheckableTag=mk,Sk.CheckableTagGroup=hk;var Ck={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z`}}]},name:`delete`,theme:`outlined`};function wk(){return wk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wk.apply(this,arguments)}var Tk=v.forwardRef((e,t)=>v.createElement(So,wk({},e,{ref:t,icon:Ck}))),Ek={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z`}}]},name:`edit`,theme:`outlined`};function Dk(){return Dk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Dk.apply(this,arguments)}var Ok=v.forwardRef((e,t)=>v.createElement(So,Dk({},e,{ref:t,icon:Ek}))),kk={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z`}}]},name:`enter`,theme:`outlined`};function Ak(){return Ak=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ak.apply(this,arguments)}var jk=v.forwardRef((e,t)=>v.createElement(So,Ak({},e,{ref:t,icon:kk}))),Mk=(e,t,n,r)=>{let{titleMarginBottom:i,fontWeightStrong:a}=r;return{marginBottom:i,color:n,fontWeight:a,fontSize:e,lineHeight:t}},Nk=e=>{let t=[1,2,3,4,5],n={};return t.forEach(t=>{n[`
|
|
248
|
+
`]:{display:`inline-block`,minWidth:r(`item-size-actual`),height:r(`item-size-actual`),color:e.colorText,fontFamily:e.fontFamily,lineHeight:r(`item-size-actual`),textAlign:`center`,verticalAlign:`middle`,listStyle:`none`,borderRadius:e.borderRadius,cursor:`pointer`,transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{outline:0,button:{color:e.colorText,cursor:`pointer`,userSelect:`none`},[`${t}-item-link`]:{display:`block`,width:`100%`,height:`100%`,padding:0,fontSize:e.fontSizeSM,textAlign:`center`,backgroundColor:`transparent`,border:`${X(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:`none`,transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:`transparent`}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:`inline-block`,marginInlineStart:e.margin,verticalAlign:`middle`,"&-size-changer":{width:`auto`},"&-quick-jumper":{display:`inline-block`,height:r(`item-size-actual`),marginInlineStart:e.marginXS,lineHeight:r(`item-size-actual`),verticalAlign:`baseline`,input:{...fw(e),...YC(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow}),"&[disabled]":{...JC(e)},width:e.quickJumperInputWidth,height:r(`item-size-actual`),boxSizing:`border-box`,margin:0,marginInlineStart:r(`item-spacing-actual`),marginInlineEnd:r(`item-spacing-actual`)}}}}},aO=e=>{let{componentCls:t,antCls:n}=e,[,r]=Za(n,`pagination`);return{[`${t}-item`]:{display:`inline-block`,minWidth:r(`item-size-actual`),height:r(`item-size-actual`),marginInlineEnd:r(`item-spacing-actual`),fontFamily:e.fontFamily,lineHeight:X(e.calc(r(`item-size-actual`)).sub(2).equal()),textAlign:`center`,verticalAlign:`middle`,listStyle:`none`,backgroundColor:e.itemBg,border:`${X(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:`pointer`,userSelect:`none`,a:{display:`block`,padding:`0 ${X(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:`none`}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.itemActiveColor},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.itemActiveColorHover}}}}},oO=e=>{let{componentCls:t,antCls:n}=e,[r,i]=Za(n,`pagination`);return{[t]:{[r(`item-size-actual`)]:X(e.itemSize),[r(`item-spacing-actual`)]:X(e.marginXS),"&-small":{[r(`item-size-actual`)]:X(e.itemSizeSM),[r(`item-spacing-actual`)]:X(e.marginXXS)},"&-large":{[r(`item-size-actual`)]:X(e.itemSizeLG),[r(`item-spacing-actual`)]:X(e.marginSM)},...za(e),display:`flex`,alignItems:`center`,"&-start":{justifyContent:`start`},"&-center":{justifyContent:`center`},"&-end":{justifyContent:`end`},"ul, ol":{margin:0,padding:0,listStyle:`none`},"&::after":{display:`block`,clear:`both`,height:0,overflow:`hidden`,visibility:`hidden`,content:`""`},[`${t}-total-text`]:{display:`inline-block`,height:i(`item-size-actual`),marginInlineEnd:i(`item-spacing-actual`),lineHeight:X(e.calc(i(`item-size-actual`)).sub(2).equal()),verticalAlign:`middle`},...aO(e),...iO(e),...rO(e),...tO(e),...nO(e),...eO(e),[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:`none`}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:`none`}}},[`&${e.componentCls}-rtl`]:{direction:`rtl`}}},sO=e=>{let{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:{...Ua(e)},[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0},...Ha(e)}},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Ha(e)}}}},cO=e=>({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemSizeLG:e.controlHeightLG,itemActiveBg:e.colorBgContainer,itemActiveColor:e.colorPrimary,itemActiveColorHover:e.colorPrimaryHover,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0,...KC(e)}),lO=e=>si(e,{inputOutlineOffset:0,quickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.25).equal(),paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:`0.13em`},GC(e)),uO=Ja(`Pagination`,e=>{let t=lO(e);return[oO(t),sO(t)]},cO),dO=e=>{let{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${X(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},fO=Xa([`Pagination`,`bordered`],e=>dO(lO(e)),cO);function pO(e){return(0,v.useMemo)(()=>typeof e==`boolean`?[e,{}]:sc(e)?[!0,e]:[void 0,void 0],[e])}var mO=e=>{let{align:t,prefixCls:n,selectPrefixCls:r,className:i,rootClassName:a,style:o,size:s,locale:c,responsive:l,showSizeChanger:u,selectComponentClass:d,pageSizeOptions:f,styles:p,classNames:m,...h}=e,{xs:g}=zb(l),[,_]=La(),{getPrefixCls:y,direction:b,showSizeChanger:x,className:S,style:C,classNames:w,styles:T,totalBoundaryShowSizeChanger:E}=Ze(`pagination`),D=y(`pagination`,n),[O,k]=uO(D),A=Ad(s),j=A===`small`||!!(g&&!A&&l),M={...e,size:A},[N,P]=Dc([w,m],[T,p],{props:M}),[F]=ec(`Pagination`,Ps),I={...F,...c},[L,R]=pO(u),[z,B]=pO(x),V=L??z,H=R??B,U=d||Mb,W=v.useMemo(()=>f?f.map(Number):void 0,[f]),ee=e=>{let{disabled:t,size:n,onSizeChange:r,"aria-label":i,className:a,options:o}=e,{className:s,onChange:c}=H||{},l=o.find(e=>String(e.value)===String(n))?.value;return v.createElement(U,{disabled:t,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:e=>e.parentNode,"aria-label":i,options:o,...H,value:l,onChange:(e,t)=>{r?.(e),c?.(e,t)},size:A,className:Y(a,s)})},te=v.useMemo(()=>{let e=v.createElement(`span`,{className:`${D}-item-ellipsis`},`•••`);return{prevIcon:v.createElement(`button`,{className:`${D}-item-link`,type:`button`,tabIndex:-1},b===`rtl`?v.createElement(Kf,null):v.createElement(Ax,null)),nextIcon:v.createElement(`button`,{className:`${D}-item-link`,type:`button`,tabIndex:-1},b===`rtl`?v.createElement(Ax,null):v.createElement(Kf,null)),jumpPrevIcon:v.createElement(`a`,{className:`${D}-item-link`},v.createElement(`div`,{className:`${D}-item-container`},b===`rtl`?v.createElement(UD,{className:`${D}-item-link-icon`}):v.createElement(BD,{className:`${D}-item-link-icon`}),e)),jumpNextIcon:v.createElement(`a`,{className:`${D}-item-link`},v.createElement(`div`,{className:`${D}-item-container`},b===`rtl`?v.createElement(BD,{className:`${D}-item-link-icon`}):v.createElement(UD,{className:`${D}-item-link-icon`}),e))}},[b,D]),G=y(`select`,r),ne=Y({[`${D}-${t}`]:!!t,[`${D}-${A}`]:A,[`${D}-mini`]:j,[`${D}-rtl`]:b===`rtl`,[`${D}-bordered`]:_.wireframe},S,i,a,N.root,O,k),re={...P.root,...C,...o};return v.createElement(v.Fragment,null,_.wireframe&&v.createElement(fO,{prefixCls:D}),v.createElement($D,{...te,...h,styles:P,classNames:N,style:re,prefixCls:D,selectPrefixCls:G,className:ne,locale:I,pageSizeOptions:W,showSizeChanger:V,totalBoundaryShowSizeChanger:h.totalBoundaryShowSizeChanger??E,sizeChangerRender:ee}))},hO=100,gO=hO/5,_O=hO/2-gO/2,vO=_O*2*Math.PI,yO=50,bO=e=>{let{dotClassName:t,style:n,hasCircleCls:r}=e;return v.createElement(`circle`,{className:Y(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:_O,cx:yO,cy:yO,strokeWidth:gO,style:n})},xO=({percent:e,prefixCls:t})=>{let n=`${t}-dot`,r=`${n}-holder`,i=`${r}-hidden`,[a,o]=v.useState(!1);S(()=>{e!==0&&o(!0)},[e!==0]);let s=Math.max(Math.min(e,100),0);if(!a)return null;let c={strokeDashoffset:`${vO/4}`,strokeDasharray:`${vO*s/100} ${vO*(100-s)/100}`};return v.createElement(`span`,{className:Y(r,`${n}-progress`,{[i]:s<=0})},v.createElement(`svg`,{viewBox:`0 0 ${hO} ${hO}`,role:`progressbar`,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":s},v.createElement(bO,{dotClassName:n,hasCircleCls:!0}),v.createElement(bO,{dotClassName:n,style:c})))};function SO(e){let{prefixCls:t,percent:n=0,className:r,style:i}=e,a=`${t}-dot`,o=`${a}-holder`,s=`${o}-hidden`;return v.createElement(v.Fragment,null,v.createElement(`span`,{className:Y(o,r,n>0&&s),style:i},v.createElement(`span`,{className:Y(a,`${t}-dot-spin`)},[1,2,3,4].map(e=>v.createElement(`i`,{className:`${t}-dot-item`,key:e})))),v.createElement(xO,{prefixCls:t,percent:n}))}function CO(e){let{prefixCls:t,indicator:n,percent:r,className:i,style:a}=e,o=`${t}-dot`;return n&&v.isValidElement(n)?ou(n,e=>({className:Y(e.className,o,i),style:{...e.style,...a},percent:r})):v.createElement(SO,{prefixCls:t,percent:r,className:i,style:a})}var wO=new Or(`antSpinMove`,{to:{opacity:1}}),TO=new Or(`antRotate`,{to:{transform:`rotate(405deg)`}}),EO=e=>{let{componentCls:t}=e,n=`${t}-section`;return{[t]:{...za(e),position:`relative`,"&-rtl":{direction:`rtl`},[`&${n}, ${n}`]:{display:`flex`,alignItems:`center`,flexDirection:`column`,gap:e.paddingSM,color:e.colorPrimary},[`&${n}`]:{display:`inline-flex`},[n]:{position:`absolute`,top:`50%`,left:{_skip_check_:!0,value:`50%`},transform:`translate(-50%, -50%)`,zIndex:1},[`${t}-description`]:{fontSize:e.fontSize,lineHeight:1},[`${t}-container`]:{position:`relative`,transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:`absolute`,top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:`100%`,height:`100%`,background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:`""`,pointerEvents:`none`}},"&-spinning":{[`${t}-description`]:{textShadow:`0 0px 5px ${e.colorBgContainer}`},[`${t}-container`]:{clear:`both`,opacity:.5,userSelect:`none`,pointerEvents:`none`,"&::after":{opacity:.4,pointerEvents:`auto`}}},"&-fullscreen":{position:`fixed`,inset:0,backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,opacity:0,pointerEvents:`none`,transition:`all ${e.motionDurationMid}`,[`&${t}-spinning`]:{opacity:1,pointerEvents:`auto`},[n]:{color:e.colorWhite,[`${t}-description`]:{color:e.colorTextLightSolid}}}}}},DO=e=>{let{componentCls:t,antCls:n,motionDurationSlow:r}=e,[i,a]=Za(n,`spin`);return{[t]:{[i(`dot-holder-size`)]:e.dotSize,[i(`dot-item-size`)]:`calc((${a(`dot-holder-size`)} - ${e.marginXXS} / 2) / 2)`,[`${t}-dot`]:{"&-holder":{width:`1em`,height:`1em`,fontSize:a(`dot-holder-size`),display:`inline-block`,transition:[`transform`,`opacity`].map(e=>`${e} ${r} ease`).join(`, `),transformOrigin:`50% 50%`,lineHeight:1,"&-hidden":{transform:`scale(0.3)`,opacity:0}},position:`relative`,display:`inline-block`,fontSize:a(`dot-holder-size`),width:`1em`,height:`1em`,"&-spin":{transform:`rotate(45deg)`,animationName:TO,animationDuration:`1.2s`,animationIterationCount:`infinite`,animationTimingFunction:`linear`},"&-item":{position:`absolute`,display:`block`,width:a(`dot-item-size`),height:a(`dot-item-size`),background:`currentColor`,borderRadius:`100%`,transform:`scale(0.75)`,transformOrigin:`50% 50%`,opacity:.3,animationName:wO,animationDuration:`1s`,animationIterationCount:`infinite`,animationTimingFunction:`linear`,animationDirection:`alternate`,"&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:`0s`},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:`0.4s`},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:`0.8s`},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:`1.2s`}},"&-progress":{position:`absolute`,left:`50%`,top:0,transform:`translateX(-50%)`},"&-circle":{strokeLinecap:`round`,transition:[`stroke-dashoffset`,`stroke-dasharray`,`stroke`,`stroke-width`,`opacity`].map(e=>`${e} ${r} ease`).join(`,`),fillOpacity:0,stroke:`currentcolor`},"&-circle-bg":{stroke:e.colorFillSecondary}}}}},OO=e=>{let{componentCls:t}=e,[n]=Za(e.antCls,`spin`);return{[t]:{"&-sm":{[n(`dot-holder-size`)]:e.dotSizeSM},"&-lg":{[n(`dot-holder-size`)]:e.dotSizeLG}}}},kO=Ja(`Spin`,e=>{let t=si(e,{spinDotDefault:e.colorTextDescription});return[EO(t),DO(t),OO(t)]},e=>{let{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}}),AO=200,jO=[[30,.05],[70,.03],[96,.01]];function MO(e,t){let[n,r]=v.useState(0),i=v.useRef(null),a=t===`auto`;return v.useEffect(()=>(a&&e&&(r(0),i.current=setInterval(()=>{r(e=>{let t=100-e;for(let n=0;n<jO.length;n+=1){let[r,i]=jO[n];if(e<=r)return e+t*i}return e})},AO)),()=>{i.current&&=(clearInterval(i.current),null)}),[a,e]),a?n:t}var NO;function PO(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}var FO=e=>{let{prefixCls:t,spinning:n=!0,delay:r=0,className:i,rootClassName:a,size:o,tip:s,description:c,wrapperClassName:l,style:u,children:d,fullscreen:f=!1,indicator:p,percent:m,classNames:h,styles:g,..._}=e,{getPrefixCls:y,direction:b,indicator:x,className:S,style:C,classNames:w,styles:T}=Ze(`spin`),E=y(`spin`,t),[D,O]=kO(E),[k,A]=v.useState(()=>n&&!PO(n,r)),j=MO(k,m);v.useEffect(()=>{if(n){let e=BT(r,()=>{A(!0)});return e(),()=>{e?.cancel?.()}}A(!1)},[r,n]);let M=Ad(e=>o??e),N=c??s,P={...e,size:M,spinning:k,tip:N,description:N,fullscreen:f,children:d,percent:j},[F,I]=Dc([w,h],[T,g],{props:P}),L=p??x??NO,R=d!==void 0,z=R||f,B=v.createElement(v.Fragment,null,v.createElement(CO,{className:Y(F.indicator),style:I.indicator,prefixCls:E,indicator:L,percent:j}),N&&v.createElement(`div`,{className:Y(`${E}-description`,F.tip,F.description),style:{...I.tip,...I.description}},N));return v.createElement(`div`,{className:Y(E,{[`${E}-sm`]:M===`small`,[`${E}-lg`]:M===`large`,[`${E}-spinning`]:k,[`${E}-rtl`]:b===`rtl`,[`${E}-fullscreen`]:f},a,F.root,f&&F.mask,z?l:[`${E}-section`,F.section],S,i,D,O),style:{...I.root,...z?{}:I.section,...f?I.mask:{},...C,...u},"aria-live":`polite`,"aria-busy":k,..._},k&&(z?v.createElement(`div`,{className:Y(`${E}-section`,F.section),style:I.section},B):B),R&&v.createElement(`div`,{className:Y(`${E}-container`,F.container),style:I.container},d))};FO.setDefaultIndicator=e=>{NO=e};var IO=v.createContext({});IO.Consumer;var LO=({prefixCls:e,className:t,avatar:n,title:r,description:i,...a})=>{let{getPrefixCls:o}=(0,v.useContext)(Je),s=o(`list`,e),c=Y(`${s}-item-meta`,t),l=v.createElement(`div`,{className:`${s}-item-meta-content`},r&&v.createElement(`h4`,{className:`${s}-item-meta-title`},r),i&&v.createElement(`div`,{className:`${s}-item-meta-description`},i));return v.createElement(`div`,{...a,className:c},n&&v.createElement(`div`,{className:`${s}-item-meta-avatar`},n),(r||i)&&l)},RO=v.forwardRef((e,t)=>{let{prefixCls:n,children:r,actions:i,extra:a,styles:o,className:s,classNames:c,colStyle:l,...u}=e,{grid:d,itemLayout:f}=(0,v.useContext)(IO),{getPrefixCls:p,list:m}=(0,v.useContext)(Je),h=e=>Y(m?.item?.classNames?.[e],c?.[e]),g=e=>({...m?.item?.styles?.[e],...o?.[e]}),_=()=>{let e=de(r);return e.some(e=>typeof e==`string`)&&e.length>1},y=()=>f===`vertical`?!!a:!_(),b=p(`list`,n),x=i&&i.length>0&&v.createElement(`ul`,{className:Y(`${b}-item-action`,h(`actions`)),key:`actions`,style:g(`actions`)},i.map((e,t)=>v.createElement(`li`,{key:`${b}-item-action-${t}`},e,t!==i.length-1&&v.createElement(`em`,{className:`${b}-item-action-split`})))),S=d?`div`:`li`,C=v.createElement(S,{...u,...d?{}:{ref:t},className:Y(`${b}-item`,{[`${b}-item-no-flex`]:!y()},s)},f===`vertical`&&a?[v.createElement(`div`,{className:`${b}-item-main`,key:`content`},r,x),v.createElement(`div`,{className:Y(`${b}-item-extra`,h(`extra`)),key:`extra`,style:g(`extra`)},a)]:[r,x,ou(a,{key:`extra`})]);return d?v.createElement(UT,{ref:t,flex:1,style:l},C):C});RO.Meta=LO;var zO=e=>{let{listBorderedCls:t,componentCls:n,paddingLG:r,margin:i,itemPaddingSM:a,itemPaddingLG:o,marginLG:s,borderRadiusLG:c}=e,l=X(e.calc(c).sub(e.lineWidth).equal());return{[t]:{border:`${X(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:c,[`${n}-header`]:{borderRadius:`${l} ${l} 0 0`},[`${n}-footer`]:{borderRadius:`0 0 ${l} ${l}`},[`${n}-header,${n}-footer,${n}-item`]:{paddingInline:r},[`${n}-pagination`]:{margin:`${X(i)} ${X(s)}`}},[`${t}${n}-sm`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:a}},[`${t}${n}-lg`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:o}}}},BO=e=>{let{componentCls:t,screenSM:n,screenMD:r,marginLG:i,marginSM:a,margin:o}=e;return{[`@media screen and (max-width:${r}px)`]:{[t]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:i}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:i}}}},[`@media screen and (max-width: ${n}px)`]:{[t]:{[`${t}-item`]:{flexWrap:`wrap`,[`${t}-action`]:{marginInlineStart:a}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:`wrap-reverse`,[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${X(o)}`}}}}}},VO=e=>{let{componentCls:t,antCls:n,controlHeight:r,minHeight:i,paddingSM:a,marginLG:o,padding:s,itemPadding:c,colorPrimary:l,itemPaddingSM:u,itemPaddingLG:d,paddingXS:f,margin:p,colorText:m,colorTextDescription:h,motionDurationSlow:g,lineWidth:_,headerBg:v,footerBg:y,emptyTextPadding:b,metaMarginBottom:x,avatarMarginRight:S,titleMarginBottom:C,descriptionFontSize:w}=e;return{[t]:{...za(e),position:`relative`,"--rc-virtual-list-scrollbar-bg":e.colorSplit,"*":{outline:`none`},[`${t}-header`]:{background:v},[`${t}-footer`]:{background:y},[`${t}-header, ${t}-footer`]:{paddingBlock:a},[`${t}-pagination`]:{marginBlockStart:o,[`${n}-pagination-options`]:{textAlign:`start`}},[`${t}-spin`]:{minHeight:i,textAlign:`center`},[`${t}-items`]:{margin:0,padding:0,listStyle:`none`},[`${t}-item`]:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,padding:c,color:m,[`${t}-item-meta`]:{display:`flex`,flex:1,alignItems:`flex-start`,maxWidth:`100%`,[`${t}-item-meta-avatar`]:{marginInlineEnd:S},[`${t}-item-meta-content`]:{flex:`1 0`,width:0,color:m},[`${t}-item-meta-title`]:{margin:`0 0 ${X(e.marginXXS)} 0`,color:m,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:m,transition:`all ${g}`,"&:hover":{color:l}}},[`${t}-item-meta-description`]:{color:h,fontSize:w,lineHeight:e.lineHeight}},[`${t}-item-action`]:{flex:`0 0 auto`,marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:`none`,"& > li":{position:`relative`,display:`inline-block`,padding:`0 ${X(f)}`,color:h,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:`center`,"&:first-child":{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:`absolute`,insetBlockStart:`50%`,insetInlineEnd:0,width:_,height:e.calc(e.fontHeight).sub(e.calc(e.marginXXS).mul(2)).equal(),transform:`translateY(-50%)`,backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${X(s)} 0`,color:h,fontSize:e.fontSizeSM,textAlign:`center`},[`${t}-empty-text`]:{padding:b,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:`center`},[`${t}-item-no-flex`]:{display:`block`}},[`${t}-grid ${n}-col > ${t}-item`]:{display:`block`,maxWidth:`100%`,marginBlockEnd:p,paddingBlock:0,borderBlockEnd:`none`},[`${t}-vertical ${t}-item`]:{alignItems:`initial`,[`${t}-item-main`]:{display:`block`,flex:1},[`${t}-item-extra`]:{marginInlineStart:o},[`${t}-item-meta`]:{marginBlockEnd:x,[`${t}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:C,color:m,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:s,marginInlineStart:`auto`,"> li":{padding:`0 ${X(s)}`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${X(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:`none`}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${X(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${X(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-loading ${t}-spin-nested-loading`]:{minHeight:r},[`${t}-split${t}-something-after-last-item ${n}-spin-container > ${t}-items > ${t}-item:last-child`]:{borderBlockEnd:`${X(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:d},[`${t}-sm ${t}-item`]:{padding:u},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:`right`}}}}},HO=Ja(`List`,e=>{let t=si(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG});return[VO(t),zO(t),BO(t)]},e=>({contentWidth:220,itemPadding:`${X(e.paddingContentVertical)} 0`,itemPaddingSM:`${X(e.paddingContentVerticalSM)} ${X(e.paddingContentHorizontal)}`,itemPaddingLG:`${X(e.paddingContentVerticalLG)} ${X(e.paddingContentHorizontalLG)}`,headerBg:`transparent`,footerBg:`transparent`,emptyTextPadding:e.padding,metaMarginBottom:e.padding,avatarMarginRight:e.padding,titleMarginBottom:e.paddingSM,descriptionFontSize:e.fontSize}),{extraCssVarPrefixCls:({prefixCls:e})=>[`${e}-container`]}),UO=v.forwardRef((e,t)=>{let{pagination:n=!1,prefixCls:r,bordered:i=!1,split:a=!0,className:o,rootClassName:s,style:c,children:l,itemLayout:u,loadMore:d,grid:f,dataSource:p=[],size:m,header:h,footer:g,loading:_=!1,rowKey:y,renderItem:b,locale:x,...S}=e,C=sc(n)?n:{},[w,T]=v.useState(C.defaultCurrent||1),[E,D]=v.useState(C.defaultPageSize||10),{getPrefixCls:O,direction:k,className:A,style:j}=Ze(`list`),{renderEmpty:M}=v.useContext(Je),N={current:1,total:0,position:`bottom`},P=e=>(t,r)=>{T(t),D(r),n&&n?.[e]?.(t,r)},F=P(`onChange`),I=P(`onShowSizeChange`),L=(e,t)=>{if(!b)return null;let n;return n=typeof y==`function`?y(e):y?e[y]:e.key,n||=`list-item-${t}`,v.createElement(v.Fragment,{key:n},b(e,t))},R=!!(d||n||g),z=O(`list`,r),[B,V]=HO(z),H=_;typeof H==`boolean`&&(H={spinning:H});let U=!!H?.spinning,W=Ad(m),ee=``;switch(W){case`large`:ee=`lg`;break;case`small`:ee=`sm`;break;default:break}let te=Y(z,{[`${z}-vertical`]:u===`vertical`,[`${z}-${ee}`]:ee,[`${z}-split`]:a,[`${z}-bordered`]:i,[`${z}-loading`]:U,[`${z}-grid`]:!!f,[`${z}-something-after-last-item`]:R,[`${z}-rtl`]:k===`rtl`},A,o,s,B,V),G=`${z}-container`,ne=rc(N,{total:p.length,current:w,pageSize:E},n||{}),re=Math.ceil(ne.total/ne.pageSize);ne.current=Math.min(ne.current,re);let ie=n&&v.createElement(`div`,{className:Y(`${z}-pagination`)},v.createElement(mO,{align:`end`,...ne,onChange:F,onShowSizeChange:I})),K=ze(p);n&&p.length>(ne.current-1)*ne.pageSize&&(K=ze(p).splice((ne.current-1)*ne.pageSize,ne.pageSize));let q=zb(Object.keys(f||{}).some(e=>Pb.includes(e))),ae=v.useMemo(()=>{for(let e=0;e<Pb.length;e+=1){let t=Pb[e];if(q[t])return t}},[q]),oe=v.useMemo(()=>{if(!f)return;let e=ae&&f[ae]?f[ae]:f.column;if(e)return{width:`${100/e}%`,maxWidth:`${100/e}%`}},[JSON.stringify(f),ae]),se=U&&v.createElement(`div`,{style:{minHeight:53}});if(K.length>0){let e=K.map(L);se=f?v.createElement(KT,{className:Y(G,V),gutter:f.gutter},v.Children.map(e,e=>v.createElement(`div`,{key:e?.key,style:oe},e))):v.createElement(`ul`,{className:Y(`${z}-items`,G,V)},e)}else !l&&!U&&(se=v.createElement(`div`,{className:`${z}-empty-text`},x?.emptyText||M?.(`List`)||v.createElement(rb,{componentName:`List`})));let J=ne.position,ce=v.useMemo(()=>({grid:f,itemLayout:u}),[JSON.stringify(f),u]);return v.createElement(IO.Provider,{value:ce},v.createElement(`div`,{ref:t,style:{...j,...c},className:te,...S},(J===`top`||J===`both`)&&ie,h&&v.createElement(`div`,{className:`${z}-header`},h),v.createElement(FO,{...H},se,l),g&&v.createElement(`div`,{className:`${z}-footer`},g),d||(J===`bottom`||J===`both`)&&ie))});UO.Item=RO;var WO=(e,t={})=>!ic(e)&&t?.skipEmpty?[]:Array.isArray(e)?e:[e],GO=J_(e=>{let{prefixCls:t,className:n,closeIcon:r,closable:i,type:a,title:o,children:s,footer:c,classNames:l,styles:u,...d}=e,{getPrefixCls:f}=v.useContext(Je),{className:p,style:m,classNames:h,styles:g}=Ze(`modal`),_=f(),y=t||f(`modal`),b=Yc(_),[x,S]=qg(y,b),[C,w]=Dc([h,l],[g,u],{props:e}),T=`${y}-confirm`,E={};return E=a?{closable:i??!1,title:``,footer:``,children:v.createElement(Qg,{...e,prefixCls:y,confirmPrefixCls:T,rootPrefixCls:_,content:s})}:{closable:i??!0,title:o,footer:c!==null&&v.createElement(kg,{...e}),children:s},v.createElement(Wp,{prefixCls:y,className:Y(x,`${y}-pure-panel`,a&&T,a&&`${T}-${a}`,n,p,S,b,C.root),style:{...m,...w.root},...d,closeIcon:Og(y,r),closable:i,classNames:C,styles:w,...E})});function KO(e){return a_(o_(e))}var qO=Yg;qO.useModal=h_,qO.info=function(e){return a_(s_(e))},qO.success=function(e){return a_(c_(e))},qO.error=function(e){return a_(l_(e))},qO.warning=KO,qO.warn=KO,qO.confirm=function(e){return a_(u_(e))},qO.destroyAll=function(){for(;t_.length;){let e=t_.pop();e&&e()}},qO.config=d_,qO._InternalPanelDoNotUseOrYouWillBeFired=GO;var JO=Ja(`Popconfirm`,e=>{let{componentCls:t,iconCls:n,antCls:r,zIndexPopup:i,colorText:a,colorWarning:o,marginXXS:s,marginXS:c,fontSize:l,fontWeightStrong:u,colorTextHeading:d}=e;return{[t]:{zIndex:i,[`&${r}-popover`]:{fontSize:l},[`${t}-message`]:{marginBottom:c,display:`flex`,flexWrap:`nowrap`,alignItems:`start`,[`> ${t}-message-icon ${n}`]:{color:o,fontSize:l,lineHeight:1,marginInlineEnd:c},[`${t}-title`]:{fontWeight:u,color:d,"&:only-child":{fontWeight:`normal`}},[`${t}-description`]:{marginTop:s,color:a}},[`${t}-buttons`]:{textAlign:`end`,whiteSpace:`nowrap`,button:{marginInlineStart:c}}}}},e=>{let{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}},{resetStyle:!1}),YO=e=>{let{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:i,description:a,cancelText:o,okText:s,okType:c=`primary`,icon:l=v.createElement(No,null),showCancel:u=!0,close:d,onConfirm:f,onCancel:p,onPopupClick:m,classNames:h,styles:g}=e,{getPrefixCls:_}=v.useContext(Je),[y]=ec(`Popconfirm`,qs.Popconfirm),b=Bb(i),x=Bb(a);return v.createElement(`div`,{className:`${t}-inner-content`,onClick:m},v.createElement(`div`,{className:`${t}-message`},l&&v.createElement(`span`,{className:`${t}-message-icon`},l),v.createElement(`div`,{className:`${t}-message-text`},b&&v.createElement(`div`,{className:Y(`${t}-title`,h?.title),style:g?.title},b),x&&v.createElement(`div`,{className:Y(`${t}-description`,h?.content),style:g?.content},x))),v.createElement(`div`,{className:`${t}-buttons`},u&&v.createElement(_p,{onClick:p,size:`small`,...r},o||y?.cancelText),v.createElement(vp,{buttonProps:{size:`small`,...Vd(c),...n},actionFn:f,close:d,prefixCls:_(`btn`),quitOnNullishReturnValue:!0,emitEvent:!0},s||y?.okText)))},XO=e=>{let{prefixCls:t,placement:n,className:r,style:i,...a}=e,{getPrefixCls:o}=v.useContext(Je),s=o(`popconfirm`,t);return JO(s),v.createElement(Cx,{placement:n,className:Y(s,r),style:i,content:v.createElement(YO,{prefixCls:s,...a})})},ZO=v.forwardRef((e,t)=>{let{prefixCls:n,placement:r=`top`,trigger:i,okType:a=`primary`,icon:o=v.createElement(No,null),children:s,overlayClassName:c,onOpenChange:l,overlayStyle:u,styles:d,arrow:f,classNames:p,...m}=e,{getPrefixCls:h,className:g,style:_,classNames:y,styles:b,arrow:x,trigger:S}=Ze(`popconfirm`),[C,w]=T(e.defaultOpen??!1,e.open),E=ax(f,x),D=i||S||`click`,O=e=>{w(e),l?.(e)},k=()=>{O(!1)},A=t=>e.onConfirm?.call(void 0,t),j=t=>{O(!1),e.onCancel?.call(void 0,t)},M=t=>{let{disabled:n=!1}=e;n||O(t)},N=h(`popconfirm`,n),P={...e,placement:r,trigger:D,okType:a,overlayStyle:u,styles:d,classNames:p},[F,I]=Dc([y,p],[b,d],{props:P}),L=Y(N,g,c,F.root);return JO(N),v.createElement(wx,{arrow:E,...ue(m,[`title`]),trigger:D,placement:r,onOpenChange:M,open:C,ref:t,classNames:{root:L,container:F.container,arrow:F.arrow},styles:{root:{..._,...I.root,...u},container:I.container,arrow:I.arrow},content:v.createElement(YO,{okType:a,icon:o,...e,prefixCls:N,close:k,onConfirm:A,onCancel:j,classNames:F,styles:I}),"data-popover-inject":!0},s)});ZO._InternalPanelDoNotUseOrYouWillBeFired=XO;var QO={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z`}}]},name:`reload`,theme:`outlined`};function $O(){return $O=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$O.apply(this,arguments)}var ek=v.forwardRef((e,t)=>v.createElement(So,$O({},e,{ref:t,icon:QO})));function tk(){return tk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tk.apply(this,arguments)}var nk=v.forwardRef(({prefixCls:e=`rc-switch`,className:t,checked:n,defaultChecked:r,disabled:i,loadingIcon:a,checkedChildren:o,unCheckedChildren:s,onClick:c,onChange:l,onKeyDown:u,styles:d,classNames:f,...p},m)=>{let[h,g]=T(r??!1,n);function _(e,t){let n=h;return i||(n=e,g(n),l?.(n,t)),n}function y(e){e.which===Z.LEFT?_(!1,e):e.which===Z.RIGHT&&_(!0,e),u?.(e)}function b(e){let t=_(!h,e);c?.(t,e)}let x=Y(e,t,{[`${e}-checked`]:h,[`${e}-disabled`]:i});return v.createElement(`button`,tk({},p,{type:`button`,role:`switch`,"aria-checked":h,disabled:i,className:x,ref:m,onKeyDown:y,onClick:b}),a,v.createElement(`span`,{className:`${e}-inner`},v.createElement(`span`,{className:Y(`${e}-inner-checked`,f?.content),style:d?.content},o),v.createElement(`span`,{className:Y(`${e}-inner-unchecked`,f?.content),style:d?.content},s)))});nk.displayName=`Switch`;var rk=e=>{let{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:i,innerMinMarginSM:a,innerMaxMarginSM:o,handleSizeSM:s,calc:c}=e,l=`${t}-inner`,u=X(c(s).add(c(r).mul(2)).equal()),d=X(c(o).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:i,height:n,lineHeight:X(n),[`${t}-inner`]:{paddingInlineStart:o,paddingInlineEnd:a,[`${l}-checked, ${l}-unchecked`]:{minHeight:n},[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${d})`,marginInlineEnd:`calc(100% - ${u} + ${d})`},[`${l}-unchecked`]:{marginTop:c(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:s,height:s},[`${t}-loading-icon`]:{top:c(c(s).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:o,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${d})`,marginInlineEnd:`calc(-100% + ${u} - ${d})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${X(c(s).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${l}`]:{[`${l}-unchecked`]:{marginInlineStart:c(e.marginXXS).div(2).equal(),marginInlineEnd:c(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${l}`]:{[`${l}-checked`]:{marginInlineStart:c(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:c(e.marginXXS).div(2).equal()}}}}}}},ik=e=>{let{componentCls:t,handleSize:n,calc:r}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:`relative`,top:r(r(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:`top`},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},ak=e=>{let{componentCls:t,trackPadding:n,handleBg:r,handleShadow:i,handleSize:a,calc:o}=e,s=`${t}-handle`;return{[t]:{[s]:{position:`absolute`,top:n,insetInlineStart:n,width:a,height:a,transition:`all ${e.switchDuration} ease-in-out`,...xf(),"&::before":{position:`absolute`,top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:o(a).div(2).equal(),boxShadow:i,transition:`all ${e.switchDuration} ease-in-out`,content:`""`,...xf()}},[`&${t}-checked ${s}`]:{insetInlineStart:`calc(100% - ${X(o(a).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${s}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${s}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},ok=e=>{let{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:i,innerMaxMargin:a,handleSize:o,switchDuration:s,calc:c}=e,l=`${t}-inner`,u=X(c(o).add(c(r).mul(2)).equal()),d=X(c(a).mul(2).equal());return{[t]:{[l]:{display:`block`,overflow:`hidden`,borderRadius:100,height:`100%`,paddingInlineStart:a,paddingInlineEnd:i,transition:[`padding-inline-start`,`padding-inline-end`].map(e=>`${e} ${s} ease-in-out`).join(`, `),...xf(),[`${l}-checked, ${l}-unchecked`]:{display:`block`,color:e.colorTextLightSolid,fontSize:e.fontSizeSM,pointerEvents:`none`,minHeight:n,transition:[`margin-inline-start`,`margin-inline-end`].map(e=>`${e} ${s} ease-in-out`).join(`, `),...xf()},[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${d})`,marginInlineEnd:`calc(100% - ${u} + ${d})`},[`${l}-unchecked`]:{marginTop:c(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${l}`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${d})`,marginInlineEnd:`calc(-100% + ${u} - ${d})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${l}`]:{[`${l}-unchecked`]:{marginInlineStart:c(r).mul(2).equal(),marginInlineEnd:c(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${l}`]:{[`${l}-checked`]:{marginInlineStart:c(r).mul(-1).mul(2).equal(),marginInlineEnd:c(r).mul(2).equal()}}}}}},sk=e=>{let{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:{...za(e),position:`relative`,display:`inline-block`,boxSizing:`border-box`,minWidth:r,height:n,lineHeight:X(n),verticalAlign:`middle`,background:e.colorTextQuaternary,border:`0`,borderRadius:100,cursor:`pointer`,transition:`all ${e.motionDurationMid}`,userSelect:`none`,...xf(),[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary},...Ua(e),[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:`not-allowed`,opacity:e.switchDisabledOpacity,"*":{boxShadow:`none`,cursor:`not-allowed`}},[`&${t}-rtl`]:{direction:`rtl`}}}},ck=Ja(`Switch`,e=>{let t=si(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:`-30%`});return[sk(t),ok(t),ak(t),ik(t),rk(t)]},e=>{let{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:i}=e,a=t*n,o=r/2,s=a-4,c=o-4;return{trackHeight:a,trackHeightSM:o,trackMinWidth:s*2+8,trackMinWidthSM:c*2+4,trackPadding:2,handleBg:i,handleSize:s,handleSizeSM:c,handleShadow:`0 2px 4px 0 ${new ki(`#00230b`).setA(.2).toRgbString()}`,innerMinMargin:s/2,innerMaxMargin:s+2+4,innerMinMarginSM:c/2,innerMaxMarginSM:c+2+4}}),lk=v.forwardRef((e,t)=>{let{prefixCls:n,size:r,disabled:i,loading:a,className:o,rootClassName:s,style:c,checked:l,value:u,defaultChecked:d,defaultValue:f,onChange:p,styles:m,classNames:h,...g}=e,[_,y]=T(d??f??!1,l??u),{getPrefixCls:b,direction:x,className:S,style:C,classNames:w,styles:E}=Ze(`switch`),D=v.useContext(du),O=(i??D)||a,k=b(`switch`,n),[A,j]=ck(k),M=Ad(r),N={...e,size:M,disabled:O},[P,F]=Dc([w,h],[E,m],{props:N}),I=v.createElement(`div`,{className:Y(`${k}-handle`,P.indicator),style:F.indicator},a&&v.createElement(Yu,{className:`${k}-loading-icon`})),L=Y(S,{[`${k}-small`]:M===`small`,[`${k}-loading`]:a,[`${k}-rtl`]:x===`rtl`},o,s,P.root,A,j),R={...F.root,...C,...c},z=(...e)=>{y(e[0]),p?.(...e)};return v.createElement(kd,{component:`Switch`,disabled:O},v.createElement(nk,{...g,classNames:P,styles:F,checked:_,onChange:z,prefixCls:k,className:L,style:R,disabled:O,ref:t,loadingIcon:I}))});lk.__ANT_SWITCH=!0;var uk={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z`}}]},name:`file`,theme:`outlined`};function dk(){return dk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dk.apply(this,arguments)}var fk=v.forwardRef((e,t)=>v.createElement(So,dk({},e,{ref:t,icon:uk}))),pk={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z`}}]},name:`folder-open`,theme:`outlined`};function mk(){return mk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mk.apply(this,arguments)}var hk=v.forwardRef((e,t)=>v.createElement(So,mk({},e,{ref:t,icon:pk}))),gk={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z`}}]},name:`folder`,theme:`outlined`};function _k(){return _k=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_k.apply(this,arguments)}var vk=v.forwardRef((e,t)=>v.createElement(So,_k({},e,{ref:t,icon:gk}))),yk=e=>{let{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:i,calc:a}=e,o=a(r).sub(n).equal(),s=a(t).sub(n).equal();return{[i]:{...za(e),display:`inline-block`,height:`auto`,paddingInline:o,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:`nowrap`,backgroundColor:e.defaultBg,border:`${X(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:`start`,position:`relative`,[`&${i}-rtl`]:{direction:`rtl`},"&, a, a:hover":{color:e.defaultColor},[`${i}-close-icon`]:{marginInlineStart:s,fontSize:e.tagIconSize,color:e.colorIcon,cursor:`pointer`,transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},"&-checkable":{backgroundColor:`transparent`,borderColor:`transparent`,cursor:`pointer`,[`&:not(${i}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive},"&-disabled":{cursor:`not-allowed`,[`&:not(${i}-checkable-checked)`]:{color:e.colorTextDisabled,"&:hover":{backgroundColor:`transparent`}},[`&${i}-checkable-checked`]:{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled},"&:hover, &:active":{backgroundColor:e.colorBgContainerDisabled,color:e.colorTextDisabled},[`&:not(${i}-checkable-checked):hover`]:{color:e.colorTextDisabled}},"&-group":{display:`flex`,flexWrap:`wrap`,gap:e.paddingXS}},"&-hidden":{display:`none`},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:o}},[`&${e.componentCls}-solid`]:{borderColor:`transparent`,color:e.colorTextLightSolid,backgroundColor:e.colorBgSolid,[`&${i}-default`]:{color:e.solidTextColor}},[`${i}-filled`]:{borderColor:`transparent`,backgroundColor:e.tagBorderlessBg},[`&${i}-disabled`]:{color:e.colorTextDisabled,cursor:`not-allowed`,backgroundColor:e.colorBgContainerDisabled,a:{cursor:`not-allowed`,pointerEvents:`none`,color:e.colorTextDisabled,"&:hover":{color:e.colorTextDisabled}},"a&":{"&:hover, &:active":{color:e.colorTextDisabled}},[`&${i}-outlined`]:{borderColor:e.colorBorderDisabled},[`&${i}-solid, &${i}-filled`]:{color:e.colorTextDisabled,[`${i}-close-icon`]:{color:e.colorTextDisabled}},[`${i}-close-icon`]:{cursor:`not-allowed`,color:e.colorTextDisabled,"&:hover":{color:e.colorTextDisabled}}}}},bk=e=>{let{lineWidth:t,fontSizeIcon:n,calc:r}=e,i=e.fontSizeSM;return si(e,{tagFontSize:i,tagLineHeight:X(r(e.lineHeightSM).mul(i).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},xk=e=>{let t=Yf(new Uf(e.colorBgSolid),`#fff`)?`#000`:`#fff`;return{defaultBg:new ki(e.colorFillTertiary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText,solidTextColor:t}},Sk=Ja(`Tag`,e=>yk(bk(e)),xk),Ck=v.forwardRef((e,t)=>{let{prefixCls:n,style:r,className:i,checked:a,children:o,icon:s,onChange:c,onClick:l,disabled:u,...d}=e,{getPrefixCls:f,tag:p}=v.useContext(Je),m=v.useContext(du),h=u??m,g=e=>{h||(c?.(!a),l?.(e))},_=f(`tag`,n),[y,b]=Sk(_),x=Y(_,`${_}-checkable`,{[`${_}-checkable-checked`]:a,[`${_}-checkable-disabled`]:h},p?.className,i,y,b);return v.createElement(`span`,{...d,ref:t,style:{...r,...p?.style},className:x,onClick:g},s,v.createElement(`span`,null,o))}),wk=v.forwardRef((e,t)=>{let{id:n,prefixCls:r,rootClassName:i,className:a,style:o,classNames:s,styles:c,disabled:l,options:u,value:d,defaultValue:f,onChange:p,multiple:m,...h}=e,{getPrefixCls:g,direction:_,className:y,style:b,classNames:x,styles:S}=Ze(`tag`),C=g(`tag`,r),w=`${C}-checkable-group`,[E,D]=Sk(C,Yc(C)),[O,k]=Dc([x,s],[S,c],{props:e}),A=(0,v.useMemo)(()=>Array.isArray(u)?u.map(e=>sc(e)?e:{value:e,label:e}):[],[u]),[j,M]=T(f,d),N=(e,t)=>{let n=null;if(m){let r=j||[];n=e?[].concat(ze(r),[t.value]):r.filter(e=>e!==t.value)}else n=e?t.value:null;M(n),p?.(n)},P=v.useRef(null);(0,v.useImperativeHandle)(t,()=>({nativeElement:P.current}));let F=Ns(h,{aria:!0,data:!0});return v.createElement(`div`,{...F,className:Y(w,y,i,{[`${w}-disabled`]:l,[`${w}-rtl`]:_===`rtl`},E,D,a,O.root),style:{...b,...k.root,...o},id:n,ref:P},A.map(e=>v.createElement(Ck,{key:e.value,className:Y(`${w}-item`,O.item),style:k.item,checked:m?(j||[]).includes(e.value):j===e.value,onChange:t=>N(t,e),disabled:l},e.label)))});function Tk(e,t){let{color:n,variant:r,bordered:i}=e;return v.useMemo(()=>{let e=n?.endsWith(`-inverse`),a;a=r||(e?`solid`:i===!1?`filled`:t||`filled`);let o=e?n?.replace(`-inverse`,``):n,s=fx(n),c=px(n),l={};if(!s&&!c&&o)if(a===`solid`)l.backgroundColor=n;else{let e=new ki(o).toHsl();e.l=.95,l.backgroundColor=new ki(e).toHexString(),l.color=n,a===`outlined`&&(l.borderColor=n)}return[a,o,s,c,l]},[n,r,i,t])}var Ek=e=>Qa(e,(t,{textColor:n,lightBorderColor:r,lightColor:i,darkColor:a})=>({[`${e.componentCls}${e.componentCls}-${t}:not(${e.componentCls}-disabled)`]:{[`&${e.componentCls}-outlined`]:{backgroundColor:i,borderColor:r,color:n},[`&${e.componentCls}-solid`]:{backgroundColor:a,borderColor:a,color:e.colorTextLightSolid},[`&${e.componentCls}-filled`]:{backgroundColor:i,color:n}}})),Dk=Xa([`Tag`,`preset`],e=>Ek(bk(e)),xk);function Ok(e){return typeof e==`string`?e.charAt(0).toUpperCase()+e.slice(1):e}var kk=(e,t,n)=>{let r=Ok(n);return{[`${e.componentCls}${e.componentCls}-${t}:not(${e.componentCls}-disabled)`]:{[`&${e.componentCls}-outlined`]:{backgroundColor:e[`color${r}Bg`],borderColor:e[`color${r}Border`],color:e[`color${n}`]},[`&${e.componentCls}-solid`]:{backgroundColor:e[`color${n}`],borderColor:e[`color${n}`]},[`&${e.componentCls}-filled`]:{backgroundColor:e[`color${r}Bg`],color:e[`color${n}`]}}}},Ak=Xa([`Tag`,`status`],e=>{let t=bk(e);return[kk(t,`success`,`Success`),kk(t,`processing`,`Info`),kk(t,`error`,`Error`),kk(t,`warning`,`Warning`)]},xk),jk=v.forwardRef((e,t)=>{let{prefixCls:n,className:r,rootClassName:i,style:a,children:o,icon:s,color:c,variant:l,onClose:u,bordered:d,disabled:f,href:p,target:m,styles:h,classNames:g,..._}=e,{getPrefixCls:y,direction:b,className:x,variant:S,style:C,classNames:w,styles:T}=Ze(`tag`),[E,D,O,k,A]=Tk(e,S),j=O||k,M=v.useContext(du),N=f??M,{tag:P}=v.useContext(Je),[F,I]=v.useState(!0),L=ue(_,[`closeIcon`,`closable`]),R={...e,color:D,variant:E,disabled:N},[z,B]=Dc([w,g],[T,h],{props:R}),V=v.useMemo(()=>{let e={...B.root,...C,...a};return N||(e={...A,...e}),e},[B.root,C,a,A,N]),H=y(`tag`,n),[U,W]=Sk(H),ee=Y(H,x,z.root,`${H}-${E}`,{[`${H}-${D}`]:j,[`${H}-hidden`]:!F,[`${H}-rtl`]:b===`rtl`,[`${H}-disabled`]:N},r,i,U,W),te=e=>{N||(e.stopPropagation(),u?.(e),!e.defaultPrevented&&I(!1))},[,G]=_c(dc(e),dc(P),{closable:!1,closeIconRender:e=>au(e,v.createElement(`span`,{className:`${H}-close-icon`,onClick:te},e),e=>({onClick:t=>{e?.onClick?.(t),te(t)},className:Y(e?.className,`${H}-close-icon`)}))}),ne=typeof _.onClick==`function`||o&&o.type===`a`,re=ou(s,{className:Y(v.isValidElement(s)?s.props?.className:void 0,z.icon),style:B.icon}),ie=re?v.createElement(v.Fragment,null,re,o&&v.createElement(`span`,{className:z.content,style:B.content},o)):o,K=p?`a`:`span`,q=v.createElement(K,{...L,ref:t,className:ee,style:V,href:N?void 0:p,target:m,onClick:N?void 0:L.onClick,...p&&N?{"aria-disabled":!0}:{}},ie,G,O&&v.createElement(Dk,{key:`preset`,prefixCls:H}),k&&v.createElement(Ak,{key:`status`,prefixCls:H}));return ne?v.createElement(kd,{component:`Tag`},q):q});jk.CheckableTag=Ck,jk.CheckableTagGroup=wk;var Mk={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z`}}]},name:`delete`,theme:`outlined`};function Nk(){return Nk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Nk.apply(this,arguments)}var Pk=v.forwardRef((e,t)=>v.createElement(So,Nk({},e,{ref:t,icon:Mk}))),Fk={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z`}}]},name:`edit`,theme:`outlined`};function Ik(){return Ik=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ik.apply(this,arguments)}var Lk=v.forwardRef((e,t)=>v.createElement(So,Ik({},e,{ref:t,icon:Fk}))),Rk={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z`}}]},name:`enter`,theme:`outlined`};function zk(){return zk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zk.apply(this,arguments)}var Bk=v.forwardRef((e,t)=>v.createElement(So,zk({},e,{ref:t,icon:Rk}))),Vk=(e,t,n,r)=>{let{titleMarginBottom:i,fontWeightStrong:a}=r;return{marginBottom:i,color:n,fontWeight:a,fontSize:e,lineHeight:t}},Hk=e=>{let t=[1,2,3,4,5],n={};return t.forEach(t=>{n[`
|
|
249
249
|
h${t}&,
|
|
250
250
|
div&-h${t},
|
|
251
251
|
div&-h${t} > textarea,
|
|
252
252
|
h${t}
|
|
253
|
-
`]=
|
|
253
|
+
`]=Vk(e[`fontSizeHeading${t}`],e[`lineHeightHeading${t}`],e.colorTextHeading,e)}),n},Uk=e=>{let{componentCls:t}=e;return{[`&${`${t}-link`}`]:{...qa(e),userSelect:`text`,[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:`not-allowed`,"&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:`none`,[`${t}-actions`]:{pointerEvents:`auto`}}}}}},Wk=e=>({code:{margin:`0 0.2em`,paddingInline:`0.4em`,paddingBlock:`0.2em 0.1em`,fontSize:`85%`,fontFamily:e.fontFamilyCode,background:`rgba(150, 150, 150, 0.1)`,border:`1px solid rgba(100, 100, 100, 0.2)`,borderRadius:3},kbd:{margin:`0 0.2em`,paddingInline:`0.4em`,paddingBlock:`0.15em 0.1em`,fontSize:`90%`,fontFamily:e.fontFamilyCode,background:`rgba(150, 150, 150, 0.06)`,border:`1px solid rgba(100, 100, 100, 0.2)`,borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:Ki[2]},"u, ins":{textDecoration:`underline`,textDecorationSkipInk:`auto`},"s, del":{textDecoration:`line-through`},strong:{fontWeight:e.fontWeightStrong},"ul, ol":{marginInline:0,marginBlock:`0 1em`,padding:0,li:{marginInline:`20px 0`,marginBlock:0,paddingInline:`4px 0`,paddingBlock:0}},ul:{listStyleType:`circle`,ul:{listStyleType:`disc`}},ol:{listStyleType:`decimal`},"pre, blockquote":{margin:`1em 0`},pre:{padding:`0.4em 0.6em`,whiteSpace:`pre-wrap`,wordWrap:`break-word`,background:`rgba(150, 150, 150, 0.1)`,border:`1px solid rgba(100, 100, 100, 0.2)`,borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:`inline`,margin:0,padding:0,fontSize:`inherit`,fontFamily:`inherit`,background:`transparent`,border:0}},blockquote:{paddingInline:`0.6em 0`,paddingBlock:0,borderInlineStart:`4px solid rgba(100, 100, 100, 0.2)`,opacity:.85}}),Gk=e=>{let{componentCls:t,paddingSM:n}=e,r=n;return{"&-edit-content":{position:`relative`,"div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),insetBlockStart:e.calc(r).div(-2).add(1).equal(),marginBottom:e.calc(r).div(2).sub(2).equal()},[`${t}-edit-content-confirm`]:{position:`absolute`,insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorIcon,fontWeight:`normal`,fontSize:e.fontSize,fontStyle:`normal`,pointerEvents:`none`},textarea:{margin:`0!important`,MozTransition:`none`,height:`1em`}}}},Kk=e=>({[`${e.componentCls}-copy-success`]:{"&, &:hover, &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),qk=()=>({"a&-ellipsis, span&-ellipsis":{display:`inline-block`,maxWidth:`100%`},"&-ellipsis-single-line":{whiteSpace:`nowrap`,overflow:`hidden`,textOverflow:`ellipsis`,"a&, span&":{verticalAlign:`bottom`},"> code":{paddingBlock:0,maxWidth:`calc(100% - 1.2em)`,display:`inline-block`,overflow:`hidden`,textOverflow:`ellipsis`,verticalAlign:`bottom`,boxSizing:`content-box`}},"&-ellipsis-multiple-line":{display:`-webkit-box`,overflow:`hidden`,WebkitLineClamp:3,WebkitBoxOrient:`vertical`}}),Jk=Ja(`Typography`,e=>{let{componentCls:t,titleMarginTop:n}=e;return{[t]:{color:e.colorText,wordBreak:`break-word`,lineHeight:e.lineHeight,[`&${t}-secondary, &${t}-link${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success, &${t}-link${t}-success`]:{color:e.colorSuccessText},[`&${t}-warning, &${t}-link${t}-warning`]:{color:e.colorWarningText},[`&${t}-danger, &${t}-link${t}-danger`]:{color:e.colorErrorText,[`&${t}-link:active, &${t}-link:focus`]:{color:e.colorErrorTextActive},[`&${t}-link:hover`]:{color:e.colorErrorTextHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:`not-allowed`,userSelect:`none`},"div&, p":{marginBottom:`1em`},...Hk(e),[`& + h1${t}, & + h2${t}, & + h3${t}, & + h4${t}, & + h5${t}`]:{marginTop:n},"div, ul, li, p, h1, h2, h3, h4, h5":{"+ h1, + h2, + h3, + h4, + h5":{marginTop:n}},...Wk(e),...Uk(e),[`${t}-actions`]:{display:`inline`},[`
|
|
254
254
|
${t}-expand,
|
|
255
255
|
${t}-collapse,
|
|
256
256
|
${t}-edit,
|
|
257
257
|
${t}-copy
|
|
258
|
-
`]:{...qa(e),marginInlineStart:e.marginXXS},...Ik(e),...Lk(e),...Rk(),"&-rtl":{direction:`rtl`}}}},()=>({titleMarginTop:`1.2em`,titleMarginBottom:`0.5em`})),Bk=e=>{let{prefixCls:t,"aria-label":n,className:r,style:i,direction:a,maxLength:o,autoSize:s=!0,value:c,onSave:l,onCancel:u,onEnd:d,component:f,enterIcon:p=v.createElement(jk,null)}=e,m=v.useRef(null),h=v.useRef(!1),g=v.useRef(null),[_,y]=v.useState(c);v.useEffect(()=>{y(c)},[c]),v.useEffect(()=>{if(m.current?.resizableTextArea){let{textArea:e}=m.current.resizableTextArea;e.focus();let{length:t}=e.value;e.setSelectionRange(t,t)}},[]);let b=({target:e})=>{y(e.value.replace(/[\n\r]/g,``))},x=()=>{h.current=!0},S=()=>{h.current=!1},C=({keyCode:e})=>{h.current||(g.current=e)},w=()=>{l(_.trim())},T=({keyCode:e,ctrlKey:t,altKey:n,metaKey:r,shiftKey:i})=>{g.current!==e||h.current||t||n||r||i||(e===Z.ENTER?(w(),d?.()):e===Z.ESC&&u())},E=()=>{w()},[D,O]=zk(t),k=Y(t,`${t}-edit-content`,{[`${t}-rtl`]:a===`rtl`,[`${t}-${f}`]:!!f},r,D,O);return v.createElement(`div`,{className:k,style:i},v.createElement(DD,{ref:m,maxLength:o,value:_,onChange:b,onKeyDown:C,onKeyUp:T,onCompositionStart:x,onCompositionEnd:S,onBlur:E,"aria-label":n,rows:1,autoSize:s}),p===null?null:ou(p,{className:`${t}-edit-content-confirm`}))},Vk=(e,t)=>{let n=!1,r=r=>{r.stopPropagation(),r.preventDefault(),r.clipboardData?.clearData(),r.clipboardData?.setData(`text/plain`,e),t&&r.clipboardData?.setData(`text/html`,e),n=!0};try{return document.addEventListener(`copy`,r,{capture:!0}),document.execCommand(`copy`),n}catch{return!1}finally{document.removeEventListener(`copy`,r,{capture:!0})}},Hk=async(e,t)=>{try{return t?await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([e],{type:`text/html`}),"text/plain":new Blob([e],{type:`text/plain`})})]):await navigator.clipboard.writeText(e),!0}catch{return!1}};async function Uk(e,t){if(typeof e!=`string`)return!1;let n=t?.format===`text/html`;return!!(await Hk(e,n)||Vk(e,n))}var Wk=({copyConfig:e,children:t})=>{let[n,r]=v.useState(!1),[i,a]=v.useState(!1),o=v.useRef(null),s=()=>{o.current&&clearTimeout(o.current)},c={};return e.format&&(c.format=e.format),v.useEffect(()=>s,[]),{copied:n,copyLoading:i,onClick:y(async n=>{n?.preventDefault(),n?.stopPropagation(),a(!0);try{await Uk((typeof e.text==`function`?await e.text():e.text)||WO(t,{skipEmpty:!0}).join(``)||``,c),a(!1),r(!0),s(),o.current=setTimeout(()=>{r(!1)},3e3),e.onCopy?.(n)}catch(e){throw a(!1),e}})}};function Gk(e,t){return v.useMemo(()=>{let n=!!e;return[n,{...t,...n&&typeof e==`object`?e:null}]},[e])}var Kk=e=>{let t=(0,v.useRef)(void 0);return(0,v.useEffect)(()=>{t.current=e}),t.current},qk=(e,t,n)=>(0,v.useMemo)(()=>e===!0?{title:t??n}:(0,v.isValidElement)(e)?{title:e}:sc(e)?{title:t??n,...e}:{title:e},[e,t,n]),Jk=v.forwardRef((e,t)=>{let{prefixCls:n,component:r=`article`,className:i,rootClassName:a,children:o,direction:s,style:c,...l}=e,{getPrefixCls:u,direction:d,className:f,style:p}=Ze(`typography`),m=s??d,h=u(`typography`,n),[g,_]=zk(h),y=Y(h,f,{[`${h}-rtl`]:m===`rtl`},i,a,g,_),b={...p,...c};return v.createElement(r,{className:y,style:b,ref:t,...l},o)}),Yk={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z`}}]},name:`copy`,theme:`outlined`};function Xk(){return Xk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xk.apply(this,arguments)}var Zk=v.forwardRef((e,t)=>v.createElement(So,Xk({},e,{ref:t,icon:Yk}))),Qk=e=>e===!1?[!1,!1]:WO(e);function $k(e,t,n){return e===!0||e===void 0?t:e||n&&t}function eA(e){let t=document.createElement(`em`);e.appendChild(t);let n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return e.removeChild(t),n.left>r.left||r.right>n.right||n.top>r.top||r.bottom>n.bottom}var tA=e=>[`string`,`number`].includes(typeof e),nA=e=>{let{prefixCls:t,copied:n,locale:r,iconOnly:i,tooltips:a,icon:o,tabIndex:s,onCopy:c,loading:l}=e,u=Qk(a),d=Qk(o),{copied:f,copy:p}=r??{},m=n?f:p,h=$k(u[+!!n],m),g=typeof h==`string`?h:m;return v.createElement(gx,{title:h},v.createElement(`button`,{type:`button`,className:Y(`${t}-copy`,{[`${t}-copy-success`]:n,[`${t}-copy-icon-only`]:i}),onClick:c,"aria-label":g,tabIndex:s},n?$k(d[1],v.createElement(xb,null),!0):$k(d[0],l?v.createElement(Yu,null):v.createElement(Zk,null),!0)))},rA=v.forwardRef(({style:e,children:t},n)=>{let r=v.useRef(null);return v.useImperativeHandle(n,()=>({isExceed:()=>{let e=r.current;return e.scrollHeight>e.clientHeight},getHeight:()=>r.current.clientHeight})),v.createElement(`span`,{"aria-hidden":!0,ref:r,style:{position:`fixed`,display:`block`,left:0,top:0,pointerEvents:`none`,backgroundColor:`rgba(255, 0, 0, 0.65)`,...e}},t)}),iA=e=>e.reduce((e,t)=>e+(tA(t)?String(t).length:1),0);function aA(e,t){let n=0,r=[];for(let i=0;i<e.length;i+=1){if(n===t)return r;let a=e[i],o=tA(a)?String(a).length:1,s=n+o;if(s>t){let e=t-n;return r.push(String(a).slice(0,e)),r}r.push(a),n=s}return e}var oA=0,sA=1,cA=2,lA=3,uA=4,dA={display:`-webkit-box`,overflow:`hidden`,WebkitBoxOrient:`vertical`};function fA(e){let{enableMeasure:t,width:n,text:r,children:i,rows:a,expanded:o,miscDeps:s,onEllipsis:c}=e,l=v.useMemo(()=>de(r),[r]),u=v.useMemo(()=>iA(l),[r]),d=v.useMemo(()=>i(l,!1),[r]),[f,p]=v.useState(null),m=v.useRef(null),h=v.useRef(null),g=v.useRef(null),_=v.useRef(null),y=v.useRef(null),[b,x]=v.useState(!1),[C,w]=v.useState(oA),[T,E]=v.useState(0),[D,O]=v.useState(null);S(()=>{w(t&&n&&u?sA:oA)},[n,r,a,t,l]),S(()=>{if(C===sA)w(cA),O(h.current&&getComputedStyle(h.current).whiteSpace);else if(C===cA){let e=!!g.current?.isExceed();w(e?lA:uA),p(e?[0,u]:null),x(e);let t=g.current?.getHeight()||0,n=a===1?0:_.current?.getHeight()||0,r=y.current?.getHeight()||0;E(Math.max(t,n+r)+1),c(e)}},[C]);let k=f?Math.ceil((f[0]+f[1])/2):0;S(()=>{let[e,t]=f||[0,0];if(e!==t){let n=(m.current?.getHeight()||0)>T,r=k;t-e===1&&(r=n?e:t),p(n?[e,r]:[r,t])}},[f,k]);let A=v.useMemo(()=>{if(!t)return i(l,!1);if(C!==lA||!f||f[0]!==f[1]){let e=i(l,!1);return[uA,oA].includes(C)?e:v.createElement(`span`,{style:{...dA,WebkitLineClamp:a}},e)}return i(o?l:aA(l,f[0]),b)},[o,C,f,l].concat(ze(s))),j={width:n,margin:0,padding:0,whiteSpace:D===`nowrap`?`normal`:`inherit`};return v.createElement(v.Fragment,null,A,C===cA&&v.createElement(v.Fragment,null,v.createElement(rA,{style:{...j,...dA,WebkitLineClamp:a},ref:g},d),v.createElement(rA,{style:{...j,...dA,WebkitLineClamp:a-1},ref:_},d),v.createElement(rA,{style:{...j,...dA,WebkitLineClamp:1},ref:y},i([],!0))),C===lA&&f&&f[0]!==f[1]&&v.createElement(rA,{style:{...j,top:400},ref:m},i(aA(l,k),!0)),C===sA&&v.createElement(`span`,{style:{whiteSpace:`inherit`},ref:h}))}var pA=({enableEllipsis:e,isEllipsis:t,open:n,children:r,tooltipProps:i})=>{if(!i?.title||!e)return r;let a=n&&t;return v.createElement(gx,{open:a,...i},r)};function mA({mark:e,code:t,underline:n,delete:r,strong:i,keyboard:a,italic:o},s){let c=s;function l(e,t){t&&(c=v.createElement(e,{},c))}return l(`strong`,i),l(`u`,n),l(`del`,r),l(`code`,t),l(`mark`,e),l(`kbd`,a),l(`i`,o),c}var hA=`...`,gA=[`delete`,`mark`,`code`,`underline`,`strong`,`keyboard`,`italic`],_A=v.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:i,type:a,disabled:o,children:s,ellipsis:c,editable:l,copyable:u,component:d,title:f,onMouseEnter:p,onMouseLeave:m,...h}=e,{getPrefixCls:g,direction:_}=v.useContext(Je),[y]=ec(`Text`),b=v.useRef(null),x=v.useRef(null),C=g(`typography`,n),w=ue(h,gA),[E,D]=Gk(l),[O,k]=T(!1,D.editing),{triggerType:A=[`icon`]}=D,j=e=>{e&&D.onStart?.(),k(e)},M=Kk(O);S(()=>{!O&&M&&x.current?.focus()},[O]);let N=e=>{e?.preventDefault(),j(!0)},P=e=>{D.onChange?.(e),j(!1)},F=()=>{D.onCancel?.(),j(!1)},[L,R]=Gk(u),{copied:z,copyLoading:B,onClick:V}=Wk({copyConfig:R,children:s}),[H,U]=v.useState(!1),[W,ee]=v.useState(!1),[te,G]=v.useState(!1),[ne,re]=v.useState(!1),[ie,K]=v.useState(!0),[q,ae]=Gk(c,{expandable:!1,symbol:e=>e?y?.collapse:y?.expand}),[oe,se]=T(ae.defaultExpanded||!1,ae.expanded),J=q&&(!oe||ae.expandable===`collapsible`),{rows:ce=1}=ae,le=v.useMemo(()=>J&&(ae.suffix!==void 0||ae.onEllipsis||ae.expandable||E||L),[J,ae,E,L]);S(()=>{q&&!le&&(U(Wh(`webkitLineClamp`)),ee(Wh(`textOverflow`)))},[le,q]);let[fe,pe]=v.useState(J),me=v.useMemo(()=>le?!1:ce===1?W:H,[le,W,H]);S(()=>{pe(me&&J)},[me,J]);let he=qk(ae.tooltip,D.text,s),ge=fe&&!!he.title,_e=J&&(fe?ge&&ne:te),ve=J&&ce===1&&fe,ye=J&&ce>1&&fe,be=(e,t)=>{se(t.expanded),ae.onExpand?.(e,t)},[xe,Se]=v.useState(0),[Ce,we]=v.useState(!1),[Te,Ee]=v.useState(!1),De=({offsetWidth:e})=>{Se(e)},Oe=e=>{G(e),te!==e&&ae.onEllipsis?.(e)};v.useEffect(()=>{let e=b.current;if(q&&ge&&e){let t=eA(e);ne!==t&&re(t)}},[q,ge,s,ye,ie,xe]),v.useEffect(()=>{let e=b.current;if(typeof IntersectionObserver>`u`||!e||!ge||!J)return;let t=new IntersectionObserver(()=>{K(!!e.offsetParent)});return t.observe(e),()=>{t.disconnect()}},[ge,J]);let ke=v.useMemo(()=>{if(!(!q||fe))return[D.text,s,f,he.title].find(tA)},[q,fe,f,he.title,_e]);if(O)return v.createElement(Bk,{value:D.text??(typeof s==`string`?s:``),onSave:P,onCancel:F,onEnd:D.onEnd,prefixCls:C,className:r,style:i,direction:_,component:d,maxLength:D.maxLength,autoSize:D.autoSize,enterIcon:D.enterIcon});let Ae=()=>{let{expandable:e,symbol:t}=ae;return e?v.createElement(`button`,{type:`button`,key:`expand`,className:`${C}-${oe?`collapse`:`expand`}`,onClick:e=>be(e,{expanded:!oe}),"aria-label":oe?y.collapse:y?.expand},typeof t==`function`?t(oe):t):null},je=()=>{if(!E)return;let{icon:e,tooltip:t,tabIndex:n}=D,r=de(t)[0]||y?.edit,i=typeof r==`string`?r:``;return A.includes(`icon`)?v.createElement(gx,{key:`edit`,title:t===!1?``:r},v.createElement(`button`,{type:`button`,ref:x,className:`${C}-edit`,onClick:N,"aria-label":i,tabIndex:n},e||v.createElement(Ok,{role:`button`}))):null},Ne=()=>L?v.createElement(nA,{key:`copy`,...R,prefixCls:C,copied:z,locale:y,onCopy:V,loading:B,iconOnly:!ic(s)}):null,Pe=e=>{let t=e&&Ae(),n=je(),r=Ne();return!t&&!n&&!r?null:v.createElement(`span`,{key:`operations`,className:`${C}-actions`,onMouseEnter:()=>we(!0),onMouseLeave:()=>we(!1)},t,n,r)},Fe=e=>[e&&!oe&&v.createElement(`span`,{"aria-hidden":!0,key:`ellipsis`},hA),ae.suffix,Pe(e)];return v.createElement(Me,{onResize:De,disabled:!J},c=>v.createElement(pA,{tooltipProps:he,enableEllipsis:J,isEllipsis:_e,open:Te&&!Ce},v.createElement(Jk,{onMouseEnter:e=>{Ee(!0),p?.(e)},onMouseLeave:e=>{Ee(!1),m?.(e)},className:Y({[`${C}-${a}`]:a,[`${C}-disabled`]:o,[`${C}-ellipsis`]:q,[`${C}-ellipsis-single-line`]:ve,[`${C}-ellipsis-multiple-line`]:ye,[`${C}-link`]:d===`a`},r),prefixCls:n,style:{...i,WebkitLineClamp:ye?ce:void 0},component:d,ref:I(c,b,t),direction:_,onClick:A.includes(`text`)?N:void 0,"aria-label":ke?.toString(),title:f,...w},v.createElement(fA,{enableMeasure:J&&!fe,text:s,rows:ce,width:xe,onEllipsis:Oe,expanded:oe,miscDeps:[z,oe,B,E,L,y].concat(ze(gA.map(t=>e[t])))},(t,n)=>mA(e,v.createElement(v.Fragment,null,t.length>0&&n&&!oe&&ke?v.createElement(`span`,{key:`show-content`,"aria-hidden":!0},t):t,Fe(n)))))))}),vA=v.forwardRef((e,t)=>{let{ellipsis:n,rel:r,children:i,navigate:a,...o}=e,s={...o,rel:r===void 0&&o.target===`_blank`?`noopener noreferrer`:r};return v.createElement(_A,{...s,ref:t,ellipsis:!!n,component:`a`},i)}),yA=v.forwardRef((e,t)=>{let{children:n,...r}=e;return v.createElement(_A,{ref:t,...r,component:`div`},n)}),bA=v.forwardRef((e,t)=>{let{ellipsis:n,children:r,...i}=e,a=v.useMemo(()=>sc(n)?ue(n,[`expandable`,`rows`]):n,[n]);return v.createElement(_A,{ref:t,...i,ellipsis:a,component:`span`},r)}),xA=[1,2,3,4,5],SA=v.forwardRef((e,t)=>{let{level:n=1,children:r,...i}=e,a=xA.includes(n)?`h${n}`:`h1`;return v.createElement(_A,{ref:t,...i,component:a},r)}),CA=Jk;CA.Text=bA,CA.Link=vA,CA.Title=SA,CA.Paragraph=yA;var wA={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M855 160.1l-189.2 23.5c-6.6.8-9.3 8.8-4.7 13.5l54.7 54.7-153.5 153.5a8.03 8.03 0 000 11.3l45.1 45.1c3.1 3.1 8.2 3.1 11.3 0l153.6-153.6 54.7 54.7a7.94 7.94 0 0013.5-4.7L863.9 169a7.9 7.9 0 00-8.9-8.9zM416.6 562.3a8.03 8.03 0 00-11.3 0L251.8 715.9l-54.7-54.7a7.94 7.94 0 00-13.5 4.7L160.1 855c-.6 5.2 3.7 9.5 8.9 8.9l189.2-23.5c6.6-.8 9.3-8.8 4.7-13.5l-54.7-54.7 153.6-153.6c3.1-3.1 3.1-8.2 0-11.3l-45.2-45z`}}]},name:`arrows-alt`,theme:`outlined`};function TA(){return TA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},TA.apply(this,arguments)}var EA=v.forwardRef((e,t)=>v.createElement(So,TA({},e,{ref:t,icon:wA}))),DA={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M464 512a48 48 0 1096 0 48 48 0 10-96 0zm200 0a48 48 0 1096 0 48 48 0 10-96 0zm-400 0a48 48 0 1096 0 48 48 0 10-96 0zm661.2-173.6c-22.6-53.7-55-101.9-96.3-143.3a444.35 444.35 0 00-143.3-96.3C630.6 75.7 572.2 64 512 64h-2c-60.6.3-119.3 12.3-174.5 35.9a445.35 445.35 0 00-142 96.5c-40.9 41.3-73 89.3-95.2 142.8-23 55.4-34.6 114.3-34.3 174.9A449.4 449.4 0 00112 714v152a46 46 0 0046 46h152.1A449.4 449.4 0 00510 960h2.1c59.9 0 118-11.6 172.7-34.3a444.48 444.48 0 00142.8-95.2c41.3-40.9 73.8-88.7 96.5-142 23.6-55.2 35.6-113.9 35.9-174.5.3-60.9-11.5-120-34.8-175.6zm-151.1 438C704 845.8 611 884 512 884h-1.7c-60.3-.3-120.2-15.3-173.1-43.5l-8.4-4.5H188V695.2l-4.5-8.4C155.3 633.9 140.3 574 140 513.7c-.4-99.7 37.7-193.3 107.6-263.8 69.8-70.5 163.1-109.5 262.8-109.9h1.7c50 0 98.5 9.7 144.2 28.9 44.6 18.7 84.6 45.6 119 80 34.3 34.3 61.3 74.4 80 119 19.4 46.2 29.1 95.2 28.9 145.8-.6 99.6-39.7 192.9-110.1 262.7z`}}]},name:`message`,theme:`outlined`};function OA(){return OA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},OA.apply(this,arguments)}var kA=v.forwardRef((e,t)=>v.createElement(So,OA({},e,{ref:t,icon:DA}))),AA={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`defs`,attrs:{},children:[{tag:`style`,attrs:{}}]},{tag:`path`,attrs:{d:`M640.6 429.8h257.1c7.9 0 14.3-6.4 14.3-14.3V158.3c0-7.9-6.4-14.3-14.3-14.3H640.6c-7.9 0-14.3 6.4-14.3 14.3v92.9H490.6c-3.9 0-7.1 3.2-7.1 7.1v221.5h-85.7v-96.5c0-7.9-6.4-14.3-14.3-14.3H126.3c-7.9 0-14.3 6.4-14.3 14.3v257.2c0 7.9 6.4 14.3 14.3 14.3h257.1c7.9 0 14.3-6.4 14.3-14.3V544h85.7v221.5c0 3.9 3.2 7.1 7.1 7.1h135.7v92.9c0 7.9 6.4 14.3 14.3 14.3h257.1c7.9 0 14.3-6.4 14.3-14.3v-257c0-7.9-6.4-14.3-14.3-14.3h-257c-7.9 0-14.3 6.4-14.3 14.3v100h-78.6v-393h78.6v100c0 7.9 6.4 14.3 14.3 14.3zm53.5-217.9h150V362h-150V211.9zM329.9 587h-150V437h150v150zm364.2 75.1h150v150.1h-150V662.1z`}}]},name:`partition`,theme:`outlined`};function jA(){return jA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jA.apply(this,arguments)}var MA=v.forwardRef((e,t)=>v.createElement(So,jA({},e,{ref:t,icon:AA}))),NA={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M758.2 839.1C851.8 765.9 912 651.9 912 523.9 912 303 733.5 124.3 512.6 124 291.4 123.7 112 302.8 112 523.9c0 125.2 57.5 236.9 147.6 310.2 3.5 2.8 8.6 2.2 11.4-1.3l39.4-50.5c2.7-3.4 2.1-8.3-1.2-11.1-8.1-6.6-15.9-13.7-23.4-21.2a318.64 318.64 0 01-68.6-101.7C200.4 609 192 567.1 192 523.9s8.4-85.1 25.1-124.5c16.1-38.1 39.2-72.3 68.6-101.7 29.4-29.4 63.6-52.5 101.7-68.6C426.9 212.4 468.8 204 512 204s85.1 8.4 124.5 25.1c38.1 16.1 72.3 39.2 101.7 68.6 29.4 29.4 52.5 63.6 68.6 101.7 16.7 39.4 25.1 81.3 25.1 124.5s-8.4 85.1-25.1 124.5a318.64 318.64 0 01-68.6 101.7c-9.3 9.3-19.1 18-29.3 26L668.2 724a8 8 0 00-14.1 3l-39.6 162.2c-1.2 5 2.6 9.9 7.7 9.9l167 .8c6.7 0 10.5-7.7 6.3-12.9l-37.3-47.9z`}}]},name:`redo`,theme:`outlined`};function PA(){return PA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},PA.apply(this,arguments)}var FA=v.forwardRef((e,t)=>v.createElement(So,PA({},e,{ref:t,icon:NA}))),IA={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M881.7 187.4l-45.1-45.1a8.03 8.03 0 00-11.3 0L667.8 299.9l-54.7-54.7a7.94 7.94 0 00-13.5 4.7L576.1 439c-.6 5.2 3.7 9.5 8.9 8.9l189.2-23.5c6.6-.8 9.3-8.8 4.7-13.5l-54.7-54.7 157.6-157.6c3-3 3-8.1-.1-11.2zM439 576.1l-189.2 23.5c-6.6.8-9.3 8.9-4.7 13.5l54.7 54.7-157.5 157.5a8.03 8.03 0 000 11.3l45.1 45.1c3.1 3.1 8.2 3.1 11.3 0l157.6-157.6 54.7 54.7a7.94 7.94 0 0013.5-4.7L447.9 585a7.9 7.9 0 00-8.9-8.9z`}}]},name:`shrink`,theme:`outlined`};function LA(){return LA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},LA.apply(this,arguments)}var RA=v.forwardRef((e,t)=>v.createElement(So,LA({},e,{ref:t,icon:IA}))),zA={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M859.9 780H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM505.7 669a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V176c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8z`}}]},name:`vertical-align-bottom`,theme:`outlined`};function BA(){return BA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},BA.apply(this,arguments)}var VA=v.forwardRef((e,t)=>v.createElement(So,BA({},e,{ref:t,icon:zA}))),HA={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M859.9 474H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zm-353.6-74.7c2.9 3.7 8.5 3.7 11.3 0l100.8-127.5c3.7-4.7.4-11.7-5.7-11.7H550V104c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v156h-62.8c-6 0-9.4 7-5.7 11.7l100.8 127.6zm11.4 225.4a7.14 7.14 0 00-11.3 0L405.6 752.3a7.23 7.23 0 005.7 11.7H474v156c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V764h62.8c6 0 9.4-7 5.7-11.7L517.7 624.7z`}}]},name:`vertical-align-middle`,theme:`outlined`};function UA(){return UA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},UA.apply(this,arguments)}var WA=v.forwardRef((e,t)=>v.createElement(So,UA({},e,{ref:t,icon:HA})));function GA(e){return e.anchor.type===`file`?0:e.anchor.lineNumber}function KA(e,t){return t.filter(t=>t.filePath===e&&t.status!==`resolved`).sort((e,t)=>GA(e)-GA(t)||e.createdAt.localeCompare(t.createdAt))[0]}function qA(e){return e.anchor.type===`diff-line`?`${e.anchor.side}:${e.anchor.lineNumber}`:null}function JA(e,t){return t===`old`?e.oldLines>0?e.oldStart+e.oldLines-1:e.oldStart-1:e.newLines>0?e.newStart+e.newLines-1:e.newStart-1}function YA(e,t){if(!t||e.hunks.length===0)return[];let n=[],r=0,i=0;e.hunks.forEach((t,a)=>{let o=Math.max(0,t.oldStart-r-1),s=Math.max(0,t.newStart-i-1),c=e.status===`added`?`new`:e.status===`deleted`?`old`:`both`,l=c===`old`?o:c===`new`?s:Math.max(o,s);l>0&&n.push({key:`${e.path}-gap-${a}`,mode:c,hiddenCount:l,oldStart:r+1,oldEnd:t.oldStart-1,newStart:i+1,newEnd:t.newStart-1,direction:`up`,position:a}),r=JA(t,`old`),i=JA(t,`new`)});let a=Math.max(0,t.oldTotalLines-r),o=Math.max(0,t.newTotalLines-i),s=e.status===`added`?`new`:e.status===`deleted`?`old`:`both`,c=s===`old`?a:s===`new`?o:Math.max(a,o);return c>0&&n.push({key:`${e.path}-gap-tail`,mode:s,hiddenCount:c,oldStart:r+1,oldEnd:t.oldTotalLines,newStart:i+1,newEnd:t.newTotalLines,direction:`down`,position:`tail`}),n}function XA(e,t,n){if(!e||n<=0)return[];let r=[],i=t.oldStart>0?t.oldStart:1,a=t.oldEnd>0?t.oldEnd:0,o=t.newStart>0?t.newStart:1,s=t.newEnd>0?t.newEnd:0,c=t.direction,l=c===`down`?i:Math.max(i,a-n+1),u=c===`down`?o:Math.max(o,s-n+1);for(let i=0;i<n;i+=1){let n=t.mode===`new`?void 0:l+i,a=t.mode===`old`?void 0:u+i,o=t.mode===`old`?e.oldLines[n?n-1:0]??``:t.mode===`new`?e.newLines[a?a-1:0]??``:e.oldLines[n?n-1:0]??e.newLines[a?a-1:0]??``;r.push({key:`${t.key}-${i}`,line:{type:`context`,content:o,oldLineNumber:n,newLineNumber:a}})}return r}function ZA(e,t){let n=[];e.hunks.forEach((e,r)=>{let i=t.get(r);i&&n.push({type:`gap`,key:i.key,gap:i,nextHunk:e,nextIndex:r}),n.push({type:`hunk`,key:`${e.header}-${r}`,hunk:e,index:r})});let r=t.get(`tail`);return r&&n.push({type:`gap`,key:r.key,gap:r}),n}function QA(e){e.scrollTop=0}function $A(e,t){let n=e.getBoundingClientRect(),r=t.getBoundingClientRect();e.scrollTop+=r.top-n.top}function ej(e){return e===`add`?`+`:e===`remove`?`-`:``}function tj(e){let t=[],n=0;for(;n<e.lines.length;){let r=e.lines[n];if(r.type===`context`){t.push({key:`${e.header}-context-${n}`,oldCell:{lineNumber:r.oldLineNumber,content:r.content,type:`context`,side:`old`},newCell:{lineNumber:r.newLineNumber,content:r.content,type:`context`,side:`new`}}),n+=1;continue}if(r.type===`remove`){let r=[],i=[];for(;n<e.lines.length&&e.lines[n].type===`remove`;)r.push(e.lines[n]),n+=1;for(;n<e.lines.length&&e.lines[n].type===`add`;)i.push(e.lines[n]),n+=1;let a=Math.max(r.length,i.length);for(let o=0;o<a;o+=1){let a=r[o],s=i[o];t.push({key:`${e.header}-change-${n}-${o}`,oldCell:a?{lineNumber:a.oldLineNumber,content:a.content,type:`remove`,side:`old`}:{content:``,type:`empty`,side:`old`},newCell:s?{lineNumber:s.newLineNumber,content:s.content,type:`add`,side:`new`}:{content:``,type:`empty`,side:`new`}})}continue}t.push({key:`${e.header}-add-${n}`,oldCell:{content:``,type:`empty`,side:`old`},newCell:{lineNumber:r.newLineNumber,content:r.content,type:`add`,side:`new`}}),n+=1}return t}function nj(e,t,n){return e.find(e=>{if(e.mode===`new`&&t===`old`||e.mode===`old`&&t===`new`)return!1;let r=t===`old`?e.oldStart:e.newStart,i=t===`old`?e.oldEnd:e.newEnd;return n>=r&&n<=i})??null}function rj(e){let[t,n]=v.useState(null);return v.useEffect(()=>{let t=new AbortController,r=!1;n(null);async function i(){try{let i=await fetch(`/api/diff-file-contents?path=${encodeURIComponent(e)}`,{signal:t.signal});if(!i.ok)return;let a=await i.json();r||n(a)}catch{r||n(null)}}return i(),()=>{r=!0,t.abort()}},[e]),t}function ij({filePath:e,viewMode:t,threads:n,fileContents:r,gapDescriptors:i,expandedGapLines:a,setExpandedGapLines:o,scrollRef:s,autoScrollKeyRef:c}){v.useEffect(()=>{let a=s.current;if(!a)return;let l=`${e}:${t}`;if(c.current===l)return;let u=KA(e,n);window.requestAnimationFrame(()=>{if(!u||u.anchor.type===`file`){QA(a),c.current=l;return}let e=qA(u),t=e?a.querySelector(`[data-review-anchor="${CSS.escape(e)}"]`):null;if(!t){if(!r)return;let e=u.anchor.type===`diff-line`?u.anchor.side:null,t=u.anchor.type===`diff-line`?u.anchor.lineNumber:null;if(e&&t!=null){let n=nj(i,e,t);if(n){o(e=>({...e,[n.key]:n.hiddenCount}));return}}QA(a),c.current=l;return}$A(a,t),c.current=l})},[c,a,r,e,i,s,o,n,t])}function aj({filePath:e,locateTarget:t,viewMode:n,fileContents:r,gapDescriptors:i,expandedGapLines:a,setExpandedGapLines:o,scrollRef:s}){v.useEffect(()=>{let n=s.current;if(!n||!t||t.anchor.filePath!==e)return;if(t.anchor.type===`file`){QA(n);return}if(t.anchor.type!==`diff-line`)return;let{side:a,lineNumber:c}=t.anchor,l=n.querySelector(`[data-review-anchor="${CSS.escape(`${a}:${c}`)}"]`);if(l){$A(n,l);return}if(!r)return;let u=nj(i,a,c);if(u){o(e=>({...e,[u.key]:u.hiddenCount}));return}let d=[...n.querySelectorAll(`[data-review-anchor]`)].map(e=>{let[t,n]=(e.dataset.reviewAnchor??``).split(`:`),r=Number(n);return t!==`old`&&t!==`new`||!Number.isFinite(r)?null:{node:e,side:t,lineNumber:r}}).filter(e=>!!e).filter(e=>e.side===a).sort((e,t)=>Math.abs(e.lineNumber-c)-Math.abs(t.lineNumber-c));d[0]?$A(n,d[0].node):QA(n)},[a,r,e,i,t,s,o,n])}var oj={composer:`_composer_hhgmh_1`},sj=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),Q=o(((e,t)=>{t.exports=sj()}))();function cj({style:e,placeholder:t,onSubmit:n,submitLabel:r=`添加评论`,onCancel:i}){let[a,o]=v.useState(``),[s,c]=v.useState(!1);return(0,Q.jsxs)(`form`,{className:oj.composer,style:e,onSubmit:e=>{e.preventDefault(),a.trim()&&(c(!0),n(a.trim()).then(()=>o(``)).finally(()=>c(!1)))},children:[(0,Q.jsx)(OD.TextArea,{placeholder:t,value:a,onChange:e=>o(e.target.value),autoSize:{minRows:3,maxRows:8}}),(0,Q.jsxs)(qE,{gap:`small`,justify:`end`,children:[(0,Q.jsx)(WC,{htmlType:`submit`,loading:s,type:`primary`,size:`small`,children:r}),i?(0,Q.jsx)(WC,{onClick:i,size:`small`,children:`取消`}):null]})]})}var lj={popover:`_popover_j0rpl_1`};function uj({onCancel:e,onSubmit:t}){return(0,Q.jsx)(`div`,{className:lj.popover,children:(0,Q.jsx)(cj,{placeholder:`请输入行内评论...`,submitLabel:`评论`,onSubmit:t,onCancel:e})})}var dj={submit:`待提交`,replied:`已回复`,resolved:`已解决`};function fj(e,t){return e.filePath===t.path&&e.fileSnapshotHash===t.snapshotHash}function pj(e){return e.status===`resolved`?`resolved`:mj(e)}function mj(e){return e.comments.some(e=>e.author===`agent`)?`replied`:`submit`}function hj(e){return e.length>0&&e.every(e=>pj(e)===`resolved`)?`resolved`:e.some(e=>mj(e)===`replied`)?`replied`:`submit`}var gj={inlineThread:`_inlineThread_1qms3_1`,inlineThreadFileLevel:`_inlineThreadFileLevel_1qms3_8`,inlineThreadHeader:`_inlineThreadHeader_1qms3_8`,inlineThreadBody:`_inlineThreadBody_1qms3_11`,inlineThreadActions:`_inlineThreadActions_1qms3_15`,inlineThreadBorderless:`_inlineThreadBorderless_1qms3_18`,inlineThreadSubmit:`_inlineThreadSubmit_1qms3_30`,inlineThreadReplied:`_inlineThreadReplied_1qms3_35`,inlineThreadResolved:`_inlineThreadResolved_1qms3_40`,inlineThreadSection:`_inlineThreadSection_1qms3_52`,threadTag:`_threadTag_1qms3_58`,threadTagResolved:`_threadTagResolved_1qms3_67`,threadTagSubmit:`_threadTagSubmit_1qms3_72`,threadTagReplied:`_threadTagReplied_1qms3_77`,inlineThreadAgentLabel:`_inlineThreadAgentLabel_1qms3_82`,inlineThreadCommentItem:`_inlineThreadCommentItem_1qms3_89`,inlineThreadCommentItemAgent:`_inlineThreadCommentItemAgent_1qms3_97`,inlineThreadCommentActions:`_inlineThreadCommentActions_1qms3_105`,threadIconBtn:`_threadIconBtn_1qms3_111`,commentRow:`_commentRow_1qms3_118`,commentContent:`_commentContent_1qms3_124`,inlineThreadComposer:`_inlineThreadComposer_1qms3_135`,inlineThreadEdit:`_inlineThreadEdit_1qms3_138`,inlineThreadEditActions:`_inlineThreadEditActions_1qms3_144`,threadActionBtn:`_threadActionBtn_1qms3_157`};function _j({threads:e,onFocus:t,onPatch:n,onDeleteThread:r,onReply:i,onPatchComment:a,onCopy:o,showStatusTag:s=!0,variant:c=`default`}){let[l,u]=v.useState(null),[d,f]=v.useState(null),[p,m]=v.useState(``),h=e[0],g=hj(e),_=bj(e),y=_?pj(_):g,b=y===`resolved`,x=_?.comments.at(-1),S=xj(y,x?.author);if(!h)return null;let C=c===`fileLevel`?gj.inlineThreadFileLevel:c===`borderless`?gj.inlineThreadBorderless:``;return(0,Q.jsxs)(`div`,{className:[gj.inlineThread,vj(g),C].filter(Boolean).join(` `),onClick:()=>t(h.id),children:[(0,Q.jsx)(`div`,{className:gj.inlineThreadHeader,children:s&&g!==`replied`?(0,Q.jsx)(Sk,{className:`${gj.threadTag} ${yj(g)}`,children:dj[g]}):null}),e.map(e=>{let n=pj(e);return(0,Q.jsx)(`div`,{className:gj.inlineThreadSection,onClick:n=>{n.stopPropagation(),t(e.id)},children:e.comments.map(t=>{let r=t.author===`agent`,i=g===`submit`&&n===`submit`&&!r;return(0,Q.jsx)(`div`,{className:`${gj.inlineThreadCommentItem} ${r?gj.inlineThreadCommentItemAgent:``}`,children:(0,Q.jsxs)(`div`,{className:gj.commentRow,children:[(0,Q.jsxs)(`div`,{className:gj.commentContent,children:[r?(0,Q.jsx)(CA.Text,{className:gj.inlineThreadAgentLabel,strong:!0,children:`Agent`}):null,d===t.id?(0,Q.jsxs)(`div`,{className:gj.inlineThreadEdit,children:[(0,Q.jsx)(OD.TextArea,{value:p,autoSize:{minRows:3,maxRows:8},onClick:e=>e.stopPropagation(),onChange:e=>m(e.target.value)}),(0,Q.jsxs)(`div`,{className:gj.inlineThreadEditActions,children:[(0,Q.jsx)(WC,{size:`small`,onClick:e=>{e.stopPropagation(),f(null),m(``)},children:`取消`}),(0,Q.jsx)(WC,{size:`small`,type:`primary`,onClick:async n=>{n.stopPropagation(),await a(e.id,t.id,p),f(null),m(``)},children:`保存`})]})]}):(0,Q.jsx)(CA.Paragraph,{className:gj.inlineThreadBody,children:t.body})]}),i&&d!==t.id?(0,Q.jsx)(`div`,{className:gj.inlineThreadCommentActions,children:(0,Q.jsx)(WC,{className:gj.threadIconBtn,type:`text`,icon:(0,Q.jsx)(Ok,{}),onClick:e=>{e.stopPropagation(),f(t.id),m(t.body)}})}):null]})},t.id)})},e.id)}),_&&l===_.id?(0,Q.jsx)(`div`,{className:gj.inlineThreadComposer,children:(0,Q.jsx)(cj,{placeholder:`继续评论...`,submitLabel:`回复`,onCancel:()=>{u(null)},onSubmit:async e=>{await i(_.id,e),u(null)}})}):null,_?(0,Q.jsxs)(`div`,{className:gj.inlineThreadActions,children:[S?(0,Q.jsx)(WC,{type:`primary`,className:gj.threadActionBtn,icon:(0,Q.jsx)(Zk,{}),onClick:e=>{e.stopPropagation(),o({type:`thread`,threadId:_.id})},children:`复制`}):null,y===`replied`?(0,Q.jsx)(WC,{className:gj.threadActionBtn,icon:(0,Q.jsx)(FA,{}),onClick:e=>{e.stopPropagation(),u(_.id)},children:`要求再改`}):null,y===`replied`?null:(0,Q.jsx)(ZO,{title:e.length>1?`删除这组评论?`:`删除这条评论线程?`,okText:`删除`,cancelText:`取消`,onConfirm:async()=>{for(let t of e)await r(t.id)},children:(0,Q.jsx)(WC,{className:gj.threadActionBtn,icon:(0,Q.jsx)(Tk,{}),danger:!0,onClick:e=>e.stopPropagation(),children:`删除`})}),b?(0,Q.jsx)(WC,{className:gj.threadActionBtn,icon:(0,Q.jsx)(ek,{}),onClick:e=>{e.stopPropagation(),n(_.id,`submit`)},children:`重新打开`}):null,y===`replied`?(0,Q.jsx)(WC,{className:gj.threadActionBtn,icon:(0,Q.jsx)(xb,{}),onClick:e=>{e.stopPropagation(),n(_.id,`resolved`)},children:`确认完成`}):null]}):null]})}function vj(e){return e===`submit`?gj.inlineThreadSubmit:e===`replied`?gj.inlineThreadReplied:gj.inlineThreadResolved}function yj(e){return e===`submit`?gj.threadTagSubmit:e===`replied`?gj.threadTagReplied:gj.threadTagResolved}function bj(e){return e.find(e=>pj(e)===`replied`)??e.find(e=>pj(e)===`submit`)??e[0]}function xj(e,t){return e===`submit`?!0:e===`replied`&&t===`user`}var Sj={inlineThreadStack:`_inlineThreadStack_1qhr1_1`};function Cj({threads:e,onLocateThread:t,onPatchThread:n,onDeleteThread:r,onReplyThread:i,onPatchComment:a,onCopyThread:o}){return e.length===0?null:(0,Q.jsx)(`div`,{className:Sj.inlineThreadStack,children:(0,Q.jsx)(_j,{threads:e,onFocus:t,onPatch:n,onDeleteThread:r,onReply:i,onPatchComment:a,onCopy:o})})}var wj={diffRow:`_diffRow_res6f_1`,add:`_add_res6f_8`,remove:`_remove_res6f_11`,lineNo:`_lineNo_res6f_14`,lineSign:`_lineSign_res6f_24`,signAdd:`_signAdd_res6f_34`,signRemove:`_signRemove_res6f_37`,codeLine:`_codeLine_res6f_40`,commentTrigger:`_commentTrigger_res6f_49`};function Tj({filePath:e,line:t,index:n,hunkKey:r,preferredSide:i,activeLine:a,setActiveLine:o,threads:s,onCreate:c,onLocateThread:l,onPatchThread:u,onDeleteThread:d,onReplyThread:f,onPatchComment:p,onCopyThread:m}){let h=i??(t.type===`remove`?`old`:`new`),g=h===`old`?t.oldLineNumber:t.newLineNumber,_=`${r}-${h}-${g}-${n}`,v=s.filter(t=>t.anchor.type===`diff-line`&&t.anchor.filePath===e&&t.anchor.side===h&&t.anchor.lineNumber===g);return(0,Q.jsxs)(`div`,{className:t.type===`add`?`${wj.diffRow} ${wj.add}`:t.type===`remove`?`${wj.diffRow} ${wj.remove}`:wj.diffRow,"data-review-anchor":`${h}:${g}`,children:[(0,Q.jsx)(`button`,{className:wj.lineNo,onClick:()=>t.oldLineNumber&&o(_),children:t.oldLineNumber??``}),(0,Q.jsx)(`button`,{className:wj.lineNo,onClick:()=>t.newLineNumber&&o(_),children:t.newLineNumber??``}),(0,Q.jsx)(`span`,{className:t.type===`add`?`${wj.lineSign} ${wj.signAdd}`:t.type===`remove`?`${wj.lineSign} ${wj.signRemove}`:wj.lineSign,children:ej(t.type)}),(0,Q.jsx)(`pre`,{className:wj.codeLine,children:t.content||` `}),g&&v.length===0?(0,Q.jsx)(`button`,{className:wj.commentTrigger,type:`button`,"aria-label":`添加行评论`,onClick:()=>o(_),children:(0,Q.jsx)(kA,{})}):null,a===_&&g?(0,Q.jsx)(uj,{onCancel:()=>o(null),onSubmit:async t=>{await c({type:`diff-line`,filePath:e,side:h,lineNumber:g},t),o(null)}}):null,(0,Q.jsx)(Cj,{threads:v,onLocateThread:l,onPatchThread:u,onDeleteThread:d,onReplyThread:f,onPatchComment:p,onCopyThread:m})]})}var Ej={splitCell:`_splitCell_1mqa3_1`,add:`_add_1mqa3_11`,remove:`_remove_1mqa3_14`,emptyCell:`_emptyCell_1mqa3_17`,lineNo:`_lineNo_1mqa3_20`,lineSign:`_lineSign_1mqa3_30`,signAdd:`_signAdd_1mqa3_40`,signRemove:`_signRemove_1mqa3_43`,codeLine:`_codeLine_1mqa3_46`,commentTrigger:`_commentTrigger_1mqa3_55`};function Dj({cell:e,rowKey:t,filePath:n,activeLine:r,setActiveLine:i,threads:a,onCreate:o,onLocateThread:s,onPatchThread:c,onDeleteThread:l,onReplyThread:u,onPatchComment:d,onCopyThread:f}){let p=e.lineNumber?a.filter(t=>t.anchor.type===`diff-line`&&t.anchor.filePath===n&&t.anchor.side===e.side&&t.anchor.lineNumber===e.lineNumber):[],m=`${t}-${e.side}-${e.lineNumber??`empty`}`;return(0,Q.jsxs)(`div`,{className:e.type===`add`?`${Ej.splitCell} ${Ej.add}`:e.type===`remove`?`${Ej.splitCell} ${Ej.remove}`:e.type===`empty`?`${Ej.splitCell} ${Ej.emptyCell}`:Ej.splitCell,"data-review-anchor":e.lineNumber?`${e.side}:${e.lineNumber}`:void 0,children:[(0,Q.jsx)(`button`,{className:Ej.lineNo,onClick:()=>e.lineNumber&&i(m),children:e.lineNumber??``}),(0,Q.jsx)(`span`,{className:e.type===`add`?`${Ej.lineSign} ${Ej.signAdd}`:e.type===`remove`?`${Ej.lineSign} ${Ej.signRemove}`:Ej.lineSign,children:ej(e.type)}),(0,Q.jsx)(`pre`,{className:Ej.codeLine,children:e.content||` `}),e.lineNumber&&p.length===0?(0,Q.jsx)(`button`,{className:Ej.commentTrigger,type:`button`,"aria-label":`添加行评论`,onClick:()=>i(m),children:(0,Q.jsx)(kA,{})}):null,r===m&&e.lineNumber?(0,Q.jsx)(uj,{onCancel:()=>i(null),onSubmit:async t=>{await o({type:`diff-line`,filePath:n,side:e.side,lineNumber:e.lineNumber},t),i(null)}}):null,(0,Q.jsx)(Cj,{threads:p,onLocateThread:s,onPatchThread:c,onDeleteThread:l,onReplyThread:u,onPatchComment:d,onCopyThread:f})]})}var Oj={hunkHeader:`_hunkHeader_1u9fx_1`,hunkHeaderRail:`_hunkHeaderRail_1u9fx_7`,hunkHeaderExpand:`_hunkHeaderExpand_1u9fx_16`,hunkHeaderBody:`_hunkHeaderBody_1u9fx_40`};function kj({headerText:e,position:t,previousGap:n,nextGap:r,getGapVisibleCount:i,getGapHiddenCount:a,onExpandGap:o,onExpandGapAll:s,onExpandGapWithAnchor:c}){function l(){let e=n?i(n)<n.hiddenCount:!1,s=r?i(r)<r.hiddenCount:!1;if(t===`top`&&n&&e){let e=a(n),t=e<=20?`展开全部 ${e} 行隐藏上下文`:`向上展开 20 行隐藏上下文`;return(0,Q.jsx)(`button`,{className:Oj.hunkHeaderExpand,type:`button`,onClick:t=>{c(n,t.currentTarget.closest(`[data-hunk-header="true"]`),{direction:e<=20?void 0:`up`,expandAll:e<=20,alignHeaderToTop:!0})},"aria-label":t,children:(0,Q.jsx)(Dx,{})})}if(t===`middle`&&n&&e){let e=a(n);if(e<=20){let t=`展开全部 ${e} 行隐藏上下文`;return(0,Q.jsx)(`button`,{className:Oj.hunkHeaderExpand,type:`button`,onClick:e=>{c(n,e.currentTarget.closest(`[data-hunk-header="true"]`),{expandAll:!0,alignHeaderToTop:!0})},"aria-label":t,children:(0,Q.jsx)(WA,{})})}return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(`button`,{className:Oj.hunkHeaderExpand,type:`button`,onClick:()=>o(n,`down`),"aria-label":`向下展开 20 行隐藏上下文`,children:(0,Q.jsx)(VA,{})}),(0,Q.jsx)(`button`,{className:Oj.hunkHeaderExpand,type:`button`,onClick:e=>{c(n,e.currentTarget.closest(`[data-hunk-header="true"]`),{direction:`up`,alignHeaderToTop:!0})},"aria-label":`向上展开 20 行隐藏上下文`,children:(0,Q.jsx)(Dx,{})})]})}if(t===`bottom`&&r&&s){let e=a(r);if(e<=20){let t=`展开全部 ${e} 行隐藏上下文`;return(0,Q.jsx)(`button`,{className:Oj.hunkHeaderExpand,type:`button`,onClick:e=>{c(r,e.currentTarget.closest(`[data-hunk-header="true"]`),{expandAll:!0,alignHeaderToTop:!0})},"aria-label":t,children:(0,Q.jsx)(WA,{})})}return(0,Q.jsx)(`button`,{className:Oj.hunkHeaderExpand,type:`button`,onClick:e=>{c(r,e.currentTarget.closest(`[data-hunk-header="true"]`),{direction:`up`,alignHeaderToTop:!0})},"aria-label":`向上展开 20 行隐藏上下文`,children:(0,Q.jsx)(Dx,{})})}return null}return(0,Q.jsxs)(`div`,{className:Oj.hunkHeader,"data-hunk-header":`true`,children:[(0,Q.jsx)(`div`,{className:Oj.hunkHeaderRail,children:l()}),(0,Q.jsx)(`div`,{className:Oj.hunkHeaderBody,children:e})]})}var Aj={splitRow:`_splitRow_1e355_1`,hunkHeader:`_hunkHeader_1e355_5`,hunkHeaderRail:`_hunkHeaderRail_1e355_11`,hunkHeaderExpand:`_hunkHeaderExpand_1e355_20`,hunkHeaderBody:`_hunkHeaderBody_1e355_40`};function jj({gap:e,filePath:t,viewMode:n,fileContents:r,activeLine:i,setActiveLine:a,threads:o,onCreate:s,onLocateThread:c,onPatchThread:l,onDeleteThread:u,onReplyThread:d,onPatchComment:f,onCopyThread:p,getGapDirection:m,getGapVisibleCount:h,onExpandGap:g,onExpandGapAll:_,leadingHunkHeader:y}){let b=Math.min(h(e),e.hiddenCount);e.hiddenCount-b;let x=m(e),S=XA(r,{...e,direction:x},b);return(0,Q.jsxs)(v.Fragment,{children:[y,n===`inline`?S.map(({key:n,line:r},m)=>(0,Q.jsx)(Tj,{filePath:t,line:r,index:m,hunkKey:n,preferredSide:e.mode===`old`?`old`:`new`,activeLine:i,setActiveLine:a,threads:o,onCreate:s,onLocateThread:c,onPatchThread:l,onDeleteThread:u,onReplyThread:d,onPatchComment:f,onCopyThread:p},`${n}-${m}`)):S.map(({key:e,line:n})=>(0,Q.jsxs)(`div`,{className:Aj.splitRow,children:[(0,Q.jsx)(Dj,{cell:n.oldLineNumber?{lineNumber:n.oldLineNumber,content:n.content,type:`context`,side:`old`}:{content:``,type:`empty`,side:`old`},rowKey:e,filePath:t,activeLine:i,setActiveLine:a,threads:o,onCreate:s,onLocateThread:c,onPatchThread:l,onDeleteThread:u,onReplyThread:d,onPatchComment:f,onCopyThread:p}),(0,Q.jsx)(Dj,{cell:n.newLineNumber?{lineNumber:n.newLineNumber,content:n.content,type:`context`,side:`new`}:{content:``,type:`empty`,side:`new`},rowKey:e,filePath:t,activeLine:i,setActiveLine:a,threads:o,onCreate:s,onLocateThread:c,onPatchThread:l,onDeleteThread:u,onReplyThread:d,onPatchComment:f,onCopyThread:p})]},e))]})}var Mj={diffCard:`_diffCard_b316o_1`,hunk:`_hunk_b316o_7`,splitTable:`_splitTable_b316o_14`,splitRow:`_splitRow_b316o_17`};function Nj({file:e,threads:t,locateTarget:n,expandAllRequest:r,onExpandedContextChange:i,onCreate:a,onLocateThread:o,onPatchThread:s,onDeleteThread:c,onReplyThread:l,onPatchComment:u,onCopyThread:d,viewMode:f}){let[p,m]=v.useState(null),[h,g]=v.useState({}),[_,y]=v.useState({}),b=rj(e.path),x=v.useRef(null),S=v.useRef(``),C=v.useRef(``),w=v.useMemo(()=>YA(e,b),[e,b]),T=v.useMemo(()=>{let e=new Map;return w.forEach(t=>{e.set(t.position,t)}),e},[w]),E=v.useMemo(()=>ZA(e,T),[e,T]),D=v.useMemo(()=>w.some(e=>Math.min(h[e.key]??0,e.hiddenCount)>0),[w,h]);v.useEffect(()=>{m(null),g({}),y({}),C.current=``},[e.path]),v.useEffect(()=>{if(!r||r.filePath!==e.path)return;let t=`${r.filePath}:${r.requestId}`;if(C.current!==t){if(C.current=t,D){g({}),y({});return}g(e=>{let t={...e};return w.forEach(e=>{t[e.key]=e.hiddenCount}),t})}},[r,e.path,w,D]),v.useEffect(()=>{i(e.path,D)},[e.path,D,i]),ij({filePath:e.path,viewMode:f,threads:t,fileContents:b,gapDescriptors:w,expandedGapLines:h,setExpandedGapLines:g,scrollRef:x,autoScrollKeyRef:S}),aj({filePath:e.path,locateTarget:n,viewMode:f,fileContents:b,gapDescriptors:w,expandedGapLines:h,setExpandedGapLines:g,scrollRef:x});let O={onLocateThread:o,onPatchThread:s,onDeleteThread:c,onReplyThread:l,onPatchComment:u,onCopyThread:d};function k(e){return Math.min(h[e.key]??0,e.hiddenCount)}function A(e){return _[e.key]??e.direction}function j(e,t,n){let r=x.current,i=n?.alignHeaderToTop??!1;n?.expandAll?N(e,n.direction):M(e,n?.direction),!(!i||!r||!t)&&window.requestAnimationFrame(()=>{let e=r.getBoundingClientRect().top,n=t.getBoundingClientRect().top;r.scrollTop+=n-e})}function M(e,t){t&&y(n=>({...n,[e.key]:t})),g(t=>{let n=Math.min(t[e.key]??0,e.hiddenCount),r=e.hiddenCount-n,i=Math.min(20,r||e.hiddenCount);return{...t,[e.key]:Math.min(e.hiddenCount,n+i)}})}function N(e,t){t&&y(n=>({...n,[e.key]:t})),g(t=>({...t,[e.key]:e.hiddenCount}))}function P(e){return Math.max(0,e.hiddenCount-k(e))}function F(e){let t=T.get(e);return t?P(t)>0:!1}function I(e){let t=T.get(e);return t?k(t)>0&&P(t)>0&&A(t)===`up`:!1}function L(e,t){let n=T.get(t);if(!n)return e.header;let r=k(n),i=P(n);return r<=0?`${e.header} · 已隐藏 ${i} 行上下文`:`${e.header} · 已展开 ${r}/${n.hiddenCount} 行上下文`}function R(t,n){let r=T.get(n),i=n===e.hunks.length-1?T.get(`tail`):T.get(n+1),a=n===0?`top`:`middle`;return(0,Q.jsx)(kj,{headerText:L(t,n),position:a,previousGap:r,nextGap:i,getGapVisibleCount:k,getGapHiddenCount:P,onExpandGap:M,onExpandGapAll:N,onExpandGapWithAnchor:j})}return(0,Q.jsx)(`div`,{className:Mj.diffCard,ref:x,children:E.map(n=>n.type===`gap`?(0,Q.jsx)(jj,{gap:n.gap,filePath:e.path,viewMode:f,fileContents:b,activeLine:p,setActiveLine:m,threads:t,onCreate:a,onLocateThread:o,onPatchThread:s,onDeleteThread:c,onReplyThread:l,onPatchComment:u,onCopyThread:d,getGapDirection:A,getGapVisibleCount:k,onExpandGap:M,onExpandGapAll:N,leadingHunkHeader:n.nextHunk&&n.nextIndex!=null&&I(n.nextIndex)?R(n.nextHunk,n.nextIndex):null},n.key):(0,Q.jsx)(`div`,{className:Mj.hunk,children:(()=>{let r=F(n.index),i=I(n.index);return(0,Q.jsxs)(Q.Fragment,{children:[r&&!i?R(n.hunk,n.index):null,f===`inline`?n.hunk.lines.map((r,i)=>(0,Q.jsx)(Tj,{filePath:e.path,line:r,index:i,hunkKey:n.key,activeLine:p,setActiveLine:m,threads:t,onCreate:a,...O},`${n.key}-${i}`)):(0,Q.jsx)(`div`,{className:Mj.splitTable,children:tj(n.hunk).map(n=>(0,Q.jsxs)(`div`,{className:Mj.splitRow,children:[(0,Q.jsx)(Dj,{cell:n.oldCell,rowKey:n.key,filePath:e.path,activeLine:p,setActiveLine:m,threads:t,onCreate:a,...O}),(0,Q.jsx)(Dj,{cell:n.newCell,rowKey:n.key,filePath:e.path,activeLine:p,setActiveLine:m,threads:t,onCreate:a,...O})]},n.key))})]})})()},n.key))})}var Pj={fileHeader:`_fileHeader_1jgg4_1`,headerTop:`_headerTop_1jgg4_9`,filePathBlock:`_filePathBlock_1jgg4_15`,filePathText:`_filePathText_1jgg4_21`,fileExpandBtn:`_fileExpandBtn_1jgg4_25`,headerActions:`_headerActions_1jgg4_36`,headerAction:`_headerAction_1jgg4_36`,threadCount:`_threadCount_1jgg4_48`,fileLevelInlineThreads:`_fileLevelInlineThreads_1jgg4_51`};function Fj({file:e,threads:t,showToggleAllLines:n,hasExpandedContext:r,onCreate:i,onCopy:a,onToggleAllLines:o,onLocateThread:s,onPatchThread:c,onDeleteThread:l,onReplyThread:u,onPatchComment:d,onCopyThread:f}){let[p,m]=v.useState(!1),h=r?`隐藏当前文件未改动行`:`展开当前文件所有未改动行`,g=r?`隐藏当前文件未改动行`:`展开当前文件所有未改动行`,_=t.filter(t=>t.filePath===e.path&&t.status!==`resolved`),y=t.filter(t=>t.filePath===e.path&&t.anchor.type===`file`);return(0,Q.jsxs)(RT,{className:Pj.fileHeader,children:[(0,Q.jsxs)(`div`,{className:Pj.headerTop,children:[(0,Q.jsxs)(`div`,{className:Pj.filePathBlock,children:[n?(0,Q.jsx)(gx,{title:h,children:(0,Q.jsx)(WC,{className:Pj.fileExpandBtn,type:`text`,icon:r?(0,Q.jsx)(RA,{}):(0,Q.jsx)(EA,{}),"aria-label":g,onClick:()=>o(e.path)})}):null,(0,Q.jsx)(CA.Text,{strong:!0,className:Pj.filePathText,children:e.path})]}),(0,Q.jsxs)(`div`,{className:Pj.headerActions,children:[(0,Q.jsx)(WC,{disabled:_.length===0,type:`primary`,className:Pj.headerAction,icon:(0,Q.jsx)(Zk,{}),onClick:()=>void a({type:`file-unresolved`,filePath:e.path}),children:`批量提交当前文件的review`}),(0,Q.jsx)(WC,{className:Pj.headerAction,icon:(0,Q.jsx)(kA,{}),type:p?`primary`:`default`,onClick:()=>m(e=>!e),children:`文件级评论`})]})]}),p?(0,Q.jsx)(cj,{style:{marginTop:16},placeholder:`请输入文件级审查评论...`,onSubmit:async t=>{await i({type:`file`,filePath:e.path},t),m(!1)},onCancel:()=>m(!1)}):null,_.length>0?(0,Q.jsxs)(Sk,{className:Pj.threadCount,color:`gold`,children:[_.length,` 个评论线程`]}):null,y.length>0?(0,Q.jsx)(`div`,{className:Pj.fileLevelInlineThreads,children:(0,Q.jsx)(_j,{threads:y,variant:`fileLevel`,onFocus:s,onPatch:c,onDeleteThread:l,onReply:u,onPatchComment:d,onCopy:f})}):null]})}function Ij(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}var Lj=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Rj=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,zj={};function Bj(e,t){return((t||zj).jsx?Rj:Lj).test(e)}var Vj=/[ \t\n\f\r]/g;function Hj(e){return typeof e==`object`?e.type===`text`?Uj(e.value):!1:Uj(e)}function Uj(e){return e.replace(Vj,``)===``}var Wj=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};Wj.prototype.normal={},Wj.prototype.property={},Wj.prototype.space=void 0;function Gj(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new Wj(n,r,t)}function Kj(e){return e.toLowerCase()}var qj=class{constructor(e,t){this.attribute=t,this.property=e}};qj.prototype.attribute=``,qj.prototype.booleanish=!1,qj.prototype.boolean=!1,qj.prototype.commaOrSpaceSeparated=!1,qj.prototype.commaSeparated=!1,qj.prototype.defined=!1,qj.prototype.mustUseProperty=!1,qj.prototype.number=!1,qj.prototype.overloadedBoolean=!1,qj.prototype.property=``,qj.prototype.spaceSeparated=!1,qj.prototype.space=void 0;var Jj=s({boolean:()=>Xj,booleanish:()=>Zj,commaOrSpaceSeparated:()=>tM,commaSeparated:()=>eM,number:()=>$,overloadedBoolean:()=>Qj,spaceSeparated:()=>$j}),Yj=0,Xj=nM(),Zj=nM(),Qj=nM(),$=nM(),$j=nM(),eM=nM(),tM=nM();function nM(){return 2**++Yj}var rM=Object.keys(Jj),iM=class extends qj{constructor(e,t,n,r){let i=-1;if(super(e,t),aM(this,`space`,r),typeof n==`number`)for(;++i<rM.length;){let e=rM[i];aM(this,rM[i],(n&Jj[e])===Jj[e])}}};iM.prototype.defined=!0;function aM(e,t,n){n&&(e[t]=n)}function oM(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new iM(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[Kj(r)]=r,n[Kj(a.attribute)]=r}return new Wj(t,n,e.space)}var sM=oM({properties:{ariaActiveDescendant:null,ariaAtomic:Zj,ariaAutoComplete:null,ariaBusy:Zj,ariaChecked:Zj,ariaColCount:$,ariaColIndex:$,ariaColSpan:$,ariaControls:$j,ariaCurrent:null,ariaDescribedBy:$j,ariaDetails:null,ariaDisabled:Zj,ariaDropEffect:$j,ariaErrorMessage:null,ariaExpanded:Zj,ariaFlowTo:$j,ariaGrabbed:Zj,ariaHasPopup:null,ariaHidden:Zj,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:$j,ariaLevel:$,ariaLive:null,ariaModal:Zj,ariaMultiLine:Zj,ariaMultiSelectable:Zj,ariaOrientation:null,ariaOwns:$j,ariaPlaceholder:null,ariaPosInSet:$,ariaPressed:Zj,ariaReadOnly:Zj,ariaRelevant:null,ariaRequired:Zj,ariaRoleDescription:$j,ariaRowCount:$,ariaRowIndex:$,ariaRowSpan:$,ariaSelected:Zj,ariaSetSize:$,ariaSort:null,ariaValueMax:$,ariaValueMin:$,ariaValueNow:$,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function cM(e,t){return t in e?e[t]:t}function lM(e,t){return cM(e,t.toLowerCase())}var uM=oM({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:eM,acceptCharset:$j,accessKey:$j,action:null,allow:null,allowFullScreen:Xj,allowPaymentRequest:Xj,allowUserMedia:Xj,alt:null,as:null,async:Xj,autoCapitalize:null,autoComplete:$j,autoFocus:Xj,autoPlay:Xj,blocking:$j,capture:null,charSet:null,checked:Xj,cite:null,className:$j,cols:$,colSpan:null,content:null,contentEditable:Zj,controls:Xj,controlsList:$j,coords:$|eM,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Xj,defer:Xj,dir:null,dirName:null,disabled:Xj,download:Qj,draggable:Zj,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Xj,formTarget:null,headers:$j,height:$,hidden:Qj,high:$,href:null,hrefLang:null,htmlFor:$j,httpEquiv:$j,id:null,imageSizes:null,imageSrcSet:null,inert:Xj,inputMode:null,integrity:null,is:null,isMap:Xj,itemId:null,itemProp:$j,itemRef:$j,itemScope:Xj,itemType:$j,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Xj,low:$,manifest:null,max:null,maxLength:$,media:null,method:null,min:null,minLength:$,multiple:Xj,muted:Xj,name:null,nonce:null,noModule:Xj,noValidate:Xj,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:Xj,optimum:$,pattern:null,ping:$j,placeholder:null,playsInline:Xj,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Xj,referrerPolicy:null,rel:$j,required:Xj,reversed:Xj,rows:$,rowSpan:$,sandbox:$j,scope:null,scoped:Xj,seamless:Xj,selected:Xj,shadowRootClonable:Xj,shadowRootDelegatesFocus:Xj,shadowRootMode:null,shape:null,size:$,sizes:null,slot:null,span:$,spellCheck:Zj,src:null,srcDoc:null,srcLang:null,srcSet:null,start:$,step:null,style:null,tabIndex:$,target:null,title:null,translate:null,type:null,typeMustMatch:Xj,useMap:null,value:Zj,width:$,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:$j,axis:null,background:null,bgColor:null,border:$,borderColor:null,bottomMargin:$,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Xj,declare:Xj,event:null,face:null,frame:null,frameBorder:null,hSpace:$,leftMargin:$,link:null,longDesc:null,lowSrc:null,marginHeight:$,marginWidth:$,noResize:Xj,noHref:Xj,noShade:Xj,noWrap:Xj,object:null,profile:null,prompt:null,rev:null,rightMargin:$,rules:null,scheme:null,scrolling:Zj,standby:null,summary:null,text:null,topMargin:$,valueType:null,version:null,vAlign:null,vLink:null,vSpace:$,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Xj,disableRemotePlayback:Xj,prefix:null,property:null,results:$,security:null,unselectable:null},space:`html`,transform:lM}),dM=oM({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:tM,accentHeight:$,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:$,amplitude:$,arabicForm:null,ascent:$,attributeName:null,attributeType:null,azimuth:$,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:$,by:null,calcMode:null,capHeight:$,className:$j,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:$,diffuseConstant:$,direction:null,display:null,dur:null,divisor:$,dominantBaseline:null,download:Xj,dx:null,dy:null,edgeMode:null,editable:null,elevation:$,enableBackground:null,end:null,event:null,exponent:$,externalResourcesRequired:null,fill:null,fillOpacity:$,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:eM,g2:eM,glyphName:eM,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:$,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:$,horizOriginX:$,horizOriginY:$,id:null,ideographic:$,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:$,k:$,k1:$,k2:$,k3:$,k4:$,kernelMatrix:tM,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:$,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:$,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:$,overlineThickness:$,paintOrder:null,panose1:null,path:null,pathLength:$,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:$j,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:$,pointsAtY:$,pointsAtZ:$,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:tM,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:tM,rev:tM,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:tM,requiredFeatures:tM,requiredFonts:tM,requiredFormats:tM,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:$,specularExponent:$,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:$,strikethroughThickness:$,string:null,stroke:null,strokeDashArray:tM,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:$,strokeOpacity:$,strokeWidth:null,style:null,surfaceScale:$,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:tM,tabIndex:$,tableValues:null,target:null,targetX:$,targetY:$,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:tM,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:$,underlineThickness:$,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:$,values:null,vAlphabetic:$,vMathematical:$,vectorEffect:null,vHanging:$,vIdeographic:$,version:null,vertAdvY:$,vertOriginX:$,vertOriginY:$,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:$,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:cM}),fM=oM({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()}}),pM=oM({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:lM}),mM=oM({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),hM={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`},gM=/[A-Z]/g,_M=/-[a-z]/g,vM=/^data[-\w.:]+$/i;function yM(e,t){let n=Kj(t),r=t,i=qj;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&vM.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(_M,xM);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!_M.test(e)){let n=e.replace(gM,bM);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=iM}return new i(r,t)}function bM(e){return`-`+e.toLowerCase()}function xM(e){return e.charAt(1).toUpperCase()}var SM=Gj([sM,uM,fM,pM,mM],`html`),CM=Gj([sM,dM,fM,pM,mM],`svg`);function wM(e){return e.join(` `).trim()}var TM=o(((e,t)=>{var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,l=/^\s+|\s+$/g,u=`
|
|
259
|
-
`,d=`/`,f=`*`,p=``,m=`comment`,h=`declaration`;function g(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];t||={};var l=1,g=1;function v(e){var t=e.match(r);t&&(l+=t.length);var n=e.lastIndexOf(u);g=~n?e.length-n:g+e.length}function y(){var e={line:l,column:g};return function(t){return t.position=new b(e),C(),t}}function b(e){this.start=e,this.end={line:l,column:g},this.source=t.source}b.prototype.content=e;function x(n){var r=Error(t.source+`:`+l+`:`+g+`: `+n);if(r.reason=n,r.filename=t.source,r.line=l,r.column=g,r.source=e,!t.silent)throw r}function S(t){var n=t.exec(e);if(n){var r=n[0];return v(r),e=e.slice(r.length),n}}function C(){S(i)}function w(e){var t;for(e||=[];t=T();)t!==!1&&e.push(t);return e}function T(){var t=y();if(!(d!=e.charAt(0)||f!=e.charAt(1))){for(var n=2;p!=e.charAt(n)&&(f!=e.charAt(n)||d!=e.charAt(n+1));)++n;if(n+=2,p===e.charAt(n-1))return x(`End of comment missing`);var r=e.slice(2,n-2);return g+=2,v(r),e=e.slice(n),g+=2,t({type:m,comment:r})}}function E(){var e=y(),t=S(a);if(t){if(T(),!S(o))return x(`property missing ':'`);var r=S(s),i=e({type:h,property:_(t[0].replace(n,p)),value:r?_(r[0].replace(n,p)):p});return S(c),i}}function D(){var e=[];w(e);for(var t;t=E();)t!==!1&&(e.push(t),w(e));return e}return C(),D()}function _(e){return e?e.replace(l,p):p}t.exports=g})),EM=o((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.default=r;var n=t(TM());function r(e,t){let r=null;if(!e||typeof e!=`string`)return r;let i=(0,n.default)(e),a=typeof t==`function`;return i.forEach(e=>{if(e.type!==`declaration`)return;let{property:n,value:i}=e;a?t(n,i,e):i&&(r||={},r[n]=i)}),r}})),DM=o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,o=function(e){return!e||r.test(e)||t.test(e)},s=function(e,t){return t.toUpperCase()},c=function(e,t){return`${t}-`};e.camelCase=function(e,t){return t===void 0&&(t={}),o(e)?e:(e=e.toLowerCase(),e=t.reactCompat?e.replace(a,c):e.replace(i,c),e.replace(n,s))}})),OM=o(((e,t)=>{var n=(e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(EM()),r=DM();function i(e,t){var i={};return!e||typeof e!=`string`||(0,n.default)(e,function(e,n){e&&n&&(i[(0,r.camelCase)(e,t)]=n)}),i}i.default=i,t.exports=i})),kM=jM(`end`),AM=jM(`start`);function jM(e){return t;function t(t){let n=t&&t.position&&t.position[e]||{};if(typeof n.line==`number`&&n.line>0&&typeof n.column==`number`&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset==`number`&&n.offset>-1?n.offset:void 0}}}function MM(e){let t=AM(e),n=kM(e);if(t&&n)return{start:t,end:n}}function NM(e){return!e||typeof e!=`object`?``:`position`in e||`type`in e?FM(e.position):`start`in e||`end`in e?FM(e):`line`in e||`column`in e?PM(e):``}function PM(e){return IM(e&&e.line)+`:`+IM(e&&e.column)}function FM(e){return PM(e&&e.start)+`-`+PM(e&&e.end)}function IM(e){return e&&typeof e==`number`?e:1}var LM=class extends Error{constructor(e,t,n){super(),typeof t==`string`&&(n=t,t=void 0);let r=``,i={},a=!1;if(t&&(i=`line`in t&&`column`in t||`start`in t&&`end`in t?{place:t}:`type`in t?{ancestors:[t],place:t.position}:{...t}),typeof e==`string`?r=e:!i.cause&&e&&(a=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&typeof n==`string`){let e=n.indexOf(`:`);e===-1?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let o=i.place&&`start`in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file=``,this.message=r,this.line=o?o.line:void 0,this.name=NM(i.place)||`1:1`,this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=a&&i.cause&&typeof i.cause.stack==`string`?i.cause.stack:``,this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};LM.prototype.file=``,LM.prototype.name=``,LM.prototype.reason=``,LM.prototype.message=``,LM.prototype.stack=``,LM.prototype.column=void 0,LM.prototype.line=void 0,LM.prototype.ancestors=void 0,LM.prototype.cause=void 0,LM.prototype.fatal=void 0,LM.prototype.place=void 0,LM.prototype.ruleId=void 0,LM.prototype.source=void 0;var RM=l(OM(),1),zM={}.hasOwnProperty,BM=new Map,VM=/[A-Z]/g,HM=new Set([`table`,`tbody`,`thead`,`tfoot`,`tr`]),UM=new Set([`td`,`th`]),WM=`https://github.com/syntax-tree/hast-util-to-jsx-runtime`;function GM(e,t){if(!t||t.Fragment===void 0)throw TypeError("Expected `Fragment` in options");let n=t.filePath||void 0,r;if(t.development){if(typeof t.jsxDEV!=`function`)throw TypeError("Expected `jsxDEV` in options when `development: true`");r=nN(n,t.jsxDEV)}else{if(typeof t.jsx!=`function`)throw TypeError("Expected `jsx` in production options");if(typeof t.jsxs!=`function`)throw TypeError("Expected `jsxs` in production options");r=tN(n,t.jsx,t.jsxs)}let 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`?CM:SM,stylePropertyNameCase:t.stylePropertyNameCase||`dom`,tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=KM(i,e,void 0);return a&&typeof a!=`string`?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function KM(e,t,n){if(t.type===`element`)return qM(e,t,n);if(t.type===`mdxFlowExpression`||t.type===`mdxTextExpression`)return JM(e,t);if(t.type===`mdxJsxFlowElement`||t.type===`mdxJsxTextElement`)return XM(e,t,n);if(t.type===`mdxjsEsm`)return YM(e,t);if(t.type===`root`)return ZM(e,t,n);if(t.type===`text`)return QM(e,t)}function qM(e,t,n){let r=e.schema,i=r;t.tagName.toLowerCase()===`svg`&&r.space===`html`&&(i=CM,e.schema=i),e.ancestors.push(t);let a=cN(e,t.tagName,!1),o=rN(e,t),s=aN(e,t);return HM.has(t.tagName)&&(s=s.filter(function(e){return typeof e==`string`?!Hj(e):!0})),$M(e,o,a,t),eN(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function JM(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}lN(e,t.position)}function YM(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);lN(e,t.position)}function XM(e,t,n){let r=e.schema,i=r;t.name===`svg`&&r.space===`html`&&(i=CM,e.schema=i),e.ancestors.push(t);let a=t.name===null?e.Fragment:cN(e,t.name,!0),o=iN(e,t),s=aN(e,t);return $M(e,o,a,t),eN(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function ZM(e,t,n){let r={};return eN(r,aN(e,t)),e.create(t,e.Fragment,r,n)}function QM(e,t){return t.value}function $M(e,t,n,r){typeof n!=`string`&&n!==e.Fragment&&e.passNode&&(t.node=r)}function eN(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function tN(e,t,n){return r;function r(e,r,i,a){let o=Array.isArray(i.children)?n:t;return a?o(r,i,a):o(r,i)}}function nN(e,t){return n;function n(n,r,i,a){let o=Array.isArray(i.children),s=AM(n);return t(r,i,a,o,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function rN(e,t){let n={},r,i;for(i in t.properties)if(i!==`children`&&zM.call(t.properties,i)){let a=oN(e,i,t.properties[i]);if(a){let[i,o]=a;e.tableCellAlignToStyle&&i===`align`&&typeof o==`string`&&UM.has(t.tagName)?r=o:n[i]=o}}if(r){let t=n.style||={};t[e.stylePropertyNameCase===`css`?`text-align`:`textAlign`]=r}return n}function iN(e,t){let n={};for(let r of t.attributes)if(r.type===`mdxJsxExpressionAttribute`)if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];t.type;let i=t.expression;i.type;let a=i.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else lN(e,t.position);else{let i=r.name,a;if(r.value&&typeof r.value==`object`)if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];t.type,a=e.evaluater.evaluateExpression(t.expression)}else lN(e,t.position);else a=r.value===null?!0:r.value;n[i]=a}return n}function aN(e,t){let n=[],r=-1,i=e.passKeys?new Map:BM;for(;++r<t.children.length;){let a=t.children[r],o;if(e.passKeys){let e=a.type===`element`?a.tagName:a.type===`mdxJsxFlowElement`||a.type===`mdxJsxTextElement`?a.name:void 0;if(e){let t=i.get(e)||0;o=e+`-`+t,i.set(e,t+1)}}let s=KM(e,a,o);s!==void 0&&n.push(s)}return n}function oN(e,t,n){let r=yM(e.schema,t);if(!(n==null||typeof n==`number`&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?Ij(n):wM(n)),r.property===`style`){let t=typeof n==`object`?n:sN(e,String(n));return e.stylePropertyNameCase===`css`&&(t=uN(t)),[`style`,t]}return[e.elementAttributeNameCase===`react`&&r.space?hM[r.property]||r.property:r.attribute,n]}}function sN(e,t){try{return(0,RM.default)(t,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};let n=t,r=new LM("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:`style`,source:`hast-util-to-jsx-runtime`});throw r.file=e.filePath||void 0,r.url=WM+`#cannot-parse-style-attribute`,r}}function cN(e,t,n){let r;if(!n)r={type:`Literal`,value:t};else if(t.includes(`.`)){let e=t.split(`.`),n=-1,i;for(;++n<e.length;){let t=Bj(e[n])?{type:`Identifier`,name:e[n]}:{type:`Literal`,value:e[n]};i=i?{type:`MemberExpression`,object:i,property:t,computed:!!(n&&t.type===`Literal`),optional:!1}:t}r=i}else r=Bj(t)&&!/^[a-z]/.test(t)?{type:`Identifier`,name:t}:{type:`Literal`,value:t};if(r.type===`Literal`){let t=r.value;return zM.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);lN(e)}function lN(e,t){let n=new LM("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=WM+`#cannot-handle-mdx-estrees-without-createevaluater`,n}function uN(e){let t={},n;for(n in e)zM.call(e,n)&&(t[dN(n)]=e[n]);return t}function dN(e){let t=e.replace(VM,fN);return t.slice(0,3)===`ms-`&&(t=`-`+t),t}function fN(e){return`-`+e.toLowerCase()}var pN={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`]},mN={};function hN(e,t){let n=t||mN;return gN(e,typeof n.includeImageAlt==`boolean`?n.includeImageAlt:!0,typeof n.includeHtml==`boolean`?n.includeHtml:!0)}function gN(e,t,n){if(vN(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 _N(e.children,t,n)}return Array.isArray(e)?_N(e,t,n):``}function _N(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=gN(e[i],t,n);return r.join(``)}function vN(e){return!!(e&&typeof e==`object`)}var yN=document.createElement(`i`);function bN(e){let t=`&`+e+`;`;yN.innerHTML=t;let n=yN.textContent;return n.charCodeAt(n.length-1)===59&&e!==`semi`||n===t?!1:n}function xN(e,t,n,r){let i=e.length,a=0,o;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a<r.length;)o=r.slice(a,a+1e4),o.unshift(t,0),e.splice(...o),a+=1e4,t+=1e4}function SN(e,t){return e.length>0?(xN(e,e.length,0,t),e):t}var CN={}.hasOwnProperty;function wN(e){let t={},n=-1;for(;++n<e.length;)TN(t,e[n]);return t}function TN(e,t){let n;for(n in t){let r=(CN.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n],a;if(i)for(a in i){CN.call(r,a)||(r[a]=[]);let e=i[a];EN(r[a],Array.isArray(e)?e:e?[e]:[])}}}function EN(e,t){let n=-1,r=[];for(;++n<t.length;)(t[n].add===`after`?e:r).push(t[n]);xN(e,0,0,r)}function DN(e,t){let 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 ON(e){return e.replace(/[\t\n\r ]+/g,` `).replace(/^ | $/g,``).toLowerCase().toUpperCase()}var kN=VN(/[A-Za-z]/),AN=VN(/[\dA-Za-z]/),jN=VN(/[#-'*+\--9=?A-Z^-~]/);function MN(e){return e!==null&&(e<32||e===127)}var NN=VN(/\d/),PN=VN(/[\dA-Fa-f]/),FN=VN(/[!-/:-@[-`{-~]/);function IN(e){return e!==null&&e<-2}function LN(e){return e!==null&&(e<0||e===32)}function RN(e){return e===-2||e===-1||e===32}var zN=VN(/\p{P}|\p{S}/u),BN=VN(/\s/);function VN(e){return t;function t(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function HN(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let a=e.charCodeAt(n),o=``;if(a===37&&AN(e.charCodeAt(n+1))&&AN(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){let t=e.charCodeAt(n+1);a<56320&&t>56319&&t<57344?(o=String.fromCharCode(a,t),i=1):o=`�`}else o=String.fromCharCode(a);o&&=(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,``),i&&=(n+=i,0)}return t.join(``)+e.slice(r)}function UN(e,t,n,r){let i=r?r-1:1/0,a=0;return o;function o(r){return RN(r)?(e.enter(n),s(r)):t(r)}function s(r){return RN(r)&&a++<i?(e.consume(r),s):(e.exit(n),t(r))}}var WN={tokenize:GN};function GN(e){let t=e.attempt(this.parser.constructs.contentInitial,r,i),n;return t;function r(n){if(n===null){e.consume(n);return}return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),UN(e,t,`linePrefix`)}function i(t){return e.enter(`paragraph`),a(t)}function a(t){let r=e.enter(`chunkText`,{contentType:`text`,previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){if(t===null){e.exit(`chunkText`),e.exit(`paragraph`),e.consume(t);return}return IN(t)?(e.consume(t),e.exit(`chunkText`),a):(e.consume(t),o)}}var KN={tokenize:JN},qN={tokenize:YN};function JN(e){let t=this,n=[],r=0,i,a,o;return s;function s(i){if(r<n.length){let a=n[r];return t.containerState=a[1],e.attempt(a[0].continuation,c,l)(i)}return l(i)}function c(e){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&v();let n=t.events.length,a=n,o;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){o=t.events[a][1].end;break}_(r);let s=n;for(;s<t.events.length;)t.events[s][1].end={...o},s++;return xN(t.events,a+1,0,t.events.slice(n)),t.events.length=s,l(e)}return s(e)}function l(a){if(r===n.length){if(!i)return f(a);if(i.currentConstruct&&i.currentConstruct.concrete)return m(a);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(qN,u,d)(a)}function u(e){return i&&v(),_(r),f(e)}function d(e){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,m(e)}function f(n){return t.containerState={},e.attempt(qN,p,m)(n)}function p(e){return r++,n.push([t.currentConstruct,t.containerState]),f(e)}function m(n){if(n===null){i&&v(),_(0),e.consume(n);return}return i||=t.parser.flow(t.now()),e.enter(`chunkFlow`,{_tokenizer:i,contentType:`flow`,previous:a}),h(n)}function h(n){if(n===null){g(e.exit(`chunkFlow`),!0),_(0),e.consume(n);return}return IN(n)?(e.consume(n),g(e.exit(`chunkFlow`)),r=0,t.interrupt=void 0,s):(e.consume(n),h)}function g(e,n){let s=t.sliceStream(e);if(n&&s.push(null),e.previous=a,a&&(a.next=e),a=e,i.defineSkip(e.start),i.write(s),t.parser.lazy[e.start.line]){let e=i.events.length;for(;e--;)if(i.events[e][1].start.offset<o&&(!i.events[e][1].end||i.events[e][1].end.offset>o))return;let n=t.events.length,a=n,s,c;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){if(s){c=t.events[a][1].end;break}s=!0}for(_(r),e=n;e<t.events.length;)t.events[e][1].end={...c},e++;xN(t.events,a+1,0,t.events.slice(n)),t.events.length=e}}function _(r){let i=n.length;for(;i-- >r;){let r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function v(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function YN(e,t,n){return UN(e,e.attempt(this.parser.constructs.document,t,n),`linePrefix`,this.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)}function XN(e){if(e===null||LN(e)||BN(e))return 1;if(zN(e))return 2}function ZN(e,t,n){let r=[],i=-1;for(;++i<e.length;){let a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}var QN={name:`attention`,resolveAll:$N,tokenize:eP};function $N(e,t){let n=-1,r,i,a,o,s,c,l,u;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;c=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;let d={...e[r][1].end},f={...e[n][1].start};tP(d,-c),tP(f,c),o={type:c>1?`strongSequence`:`emphasisSequence`,start:d,end:{...e[r][1].end}},s={type:c>1?`strongSequence`:`emphasisSequence`,start:{...e[n][1].start},end:f},a={type:c>1?`strongText`:`emphasisText`,start:{...e[r][1].end},end:{...e[n][1].start}},i={type:c>1?`strong`:`emphasis`,start:{...o.start},end:{...s.end}},e[r][1].end={...o.start},e[n][1].start={...s.end},l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=SN(l,[[`enter`,e[r][1],t],[`exit`,e[r][1],t]])),l=SN(l,[[`enter`,i,t],[`enter`,o,t],[`exit`,o,t],[`enter`,a,t]]),l=SN(l,ZN(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=SN(l,[[`exit`,a,t],[`enter`,s,t],[`exit`,s,t],[`exit`,i,t]]),e[n][1].end.offset-e[n][1].start.offset?(u=2,l=SN(l,[[`enter`,e[n][1],t],[`exit`,e[n][1],t]])):u=0,xN(e,r-1,n-r+3,l),n=r+l.length-u-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`attentionSequence`&&(e[n][1].type=`data`);return e}function eP(e,t){let n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=XN(r),a;return o;function o(t){return a=t,e.enter(`attentionSequence`),s(t)}function s(o){if(o===a)return e.consume(o),s;let c=e.exit(`attentionSequence`),l=XN(o),u=!l||l===2&&i||n.includes(o),d=!i||i===2&&l||n.includes(r);return c._open=!!(a===42?u:u&&(i||!d)),c._close=!!(a===42?d:d&&(l||!u)),t(o)}}function tP(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var nP={name:`autolink`,tokenize:rP};function rP(e,t,n){let r=0;return i;function i(t){return e.enter(`autolink`),e.enter(`autolinkMarker`),e.consume(t),e.exit(`autolinkMarker`),e.enter(`autolinkProtocol`),a}function a(t){return kN(t)?(e.consume(t),o):t===64?n(t):l(t)}function o(e){return e===43||e===45||e===46||AN(e)?(r=1,s(e)):l(e)}function s(t){return t===58?(e.consume(t),r=0,c):(t===43||t===45||t===46||AN(t))&&r++<32?(e.consume(t),s):(r=0,l(t))}function c(r){return r===62?(e.exit(`autolinkProtocol`),e.enter(`autolinkMarker`),e.consume(r),e.exit(`autolinkMarker`),e.exit(`autolink`),t):r===null||r===32||r===60||MN(r)?n(r):(e.consume(r),c)}function l(t){return t===64?(e.consume(t),u):jN(t)?(e.consume(t),l):n(t)}function u(e){return AN(e)?d(e):n(e)}function d(n){return n===46?(e.consume(n),r=0,u):n===62?(e.exit(`autolinkProtocol`).type=`autolinkEmail`,e.enter(`autolinkMarker`),e.consume(n),e.exit(`autolinkMarker`),e.exit(`autolink`),t):f(n)}function f(t){if((t===45||AN(t))&&r++<63){let n=t===45?f:d;return e.consume(t),n}return n(t)}}var iP={partial:!0,tokenize:aP};function aP(e,t,n){return r;function r(t){return RN(t)?UN(e,i,`linePrefix`)(t):i(t)}function i(e){return e===null||IN(e)?t(e):n(e)}}var oP={continuation:{tokenize:cP},exit:lP,name:`blockQuote`,tokenize:sP};function sP(e,t,n){let r=this;return i;function i(t){if(t===62){let n=r.containerState;return n.open||=(e.enter(`blockQuote`,{_container:!0}),!0),e.enter(`blockQuotePrefix`),e.enter(`blockQuoteMarker`),e.consume(t),e.exit(`blockQuoteMarker`),a}return n(t)}function a(n){return RN(n)?(e.enter(`blockQuotePrefixWhitespace`),e.consume(n),e.exit(`blockQuotePrefixWhitespace`),e.exit(`blockQuotePrefix`),t):(e.exit(`blockQuotePrefix`),t(n))}}function cP(e,t,n){let r=this;return i;function i(t){return RN(t)?UN(e,a,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):a(t)}function a(r){return e.attempt(oP,t,n)(r)}}function lP(e){e.exit(`blockQuote`)}var uP={name:`characterEscape`,tokenize:dP};function dP(e,t,n){return r;function r(t){return e.enter(`characterEscape`),e.enter(`escapeMarker`),e.consume(t),e.exit(`escapeMarker`),i}function i(r){return FN(r)?(e.enter(`characterEscapeValue`),e.consume(r),e.exit(`characterEscapeValue`),e.exit(`characterEscape`),t):n(r)}}var fP={name:`characterReference`,tokenize:pP};function pP(e,t,n){let r=this,i=0,a,o;return s;function s(t){return e.enter(`characterReference`),e.enter(`characterReferenceMarker`),e.consume(t),e.exit(`characterReferenceMarker`),c}function c(t){return t===35?(e.enter(`characterReferenceMarkerNumeric`),e.consume(t),e.exit(`characterReferenceMarkerNumeric`),l):(e.enter(`characterReferenceValue`),a=31,o=AN,u(t))}function l(t){return t===88||t===120?(e.enter(`characterReferenceMarkerHexadecimal`),e.consume(t),e.exit(`characterReferenceMarkerHexadecimal`),e.enter(`characterReferenceValue`),a=6,o=PN,u):(e.enter(`characterReferenceValue`),a=7,o=NN,u(t))}function u(s){if(s===59&&i){let i=e.exit(`characterReferenceValue`);return o===AN&&!bN(r.sliceSerialize(i))?n(s):(e.enter(`characterReferenceMarker`),e.consume(s),e.exit(`characterReferenceMarker`),e.exit(`characterReference`),t)}return o(s)&&i++<a?(e.consume(s),u):n(s)}}var mP={partial:!0,tokenize:_P},hP={concrete:!0,name:`codeFenced`,tokenize:gP};function gP(e,t,n){let r=this,i={partial:!0,tokenize:x},a=0,o=0,s;return c;function c(e){return l(e)}function l(t){let n=r.events[r.events.length-1];return a=n&&n[1].type===`linePrefix`?n[2].sliceSerialize(n[1],!0).length:0,s=t,e.enter(`codeFenced`),e.enter(`codeFencedFence`),e.enter(`codeFencedFenceSequence`),u(t)}function u(t){return t===s?(o++,e.consume(t),u):o<3?n(t):(e.exit(`codeFencedFenceSequence`),RN(t)?UN(e,d,`whitespace`)(t):d(t))}function d(n){return n===null||IN(n)?(e.exit(`codeFencedFence`),r.interrupt?t(n):e.check(mP,h,b)(n)):(e.enter(`codeFencedFenceInfo`),e.enter(`chunkString`,{contentType:`string`}),f(n))}function f(t){return t===null||IN(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),d(t)):RN(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),UN(e,p,`whitespace`)(t)):t===96&&t===s?n(t):(e.consume(t),f)}function p(t){return t===null||IN(t)?d(t):(e.enter(`codeFencedFenceMeta`),e.enter(`chunkString`,{contentType:`string`}),m(t))}function m(t){return t===null||IN(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceMeta`),d(t)):t===96&&t===s?n(t):(e.consume(t),m)}function h(t){return e.attempt(i,b,g)(t)}function g(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),_}function _(t){return a>0&&RN(t)?UN(e,v,`linePrefix`,a+1)(t):v(t)}function v(t){return t===null||IN(t)?e.check(mP,h,b)(t):(e.enter(`codeFlowValue`),y(t))}function y(t){return t===null||IN(t)?(e.exit(`codeFlowValue`),v(t)):(e.consume(t),y)}function b(n){return e.exit(`codeFenced`),t(n)}function x(e,t,n){let i=0;return a;function a(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c}function c(t){return e.enter(`codeFencedFence`),RN(t)?UN(e,l,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):l(t)}function l(t){return t===s?(e.enter(`codeFencedFenceSequence`),u(t)):n(t)}function u(t){return t===s?(i++,e.consume(t),u):i>=o?(e.exit(`codeFencedFenceSequence`),RN(t)?UN(e,d,`whitespace`)(t):d(t)):n(t)}function d(r){return r===null||IN(r)?(e.exit(`codeFencedFence`),t(r)):n(r)}}}function _P(e,t,n){let r=this;return i;function i(t){return t===null?n(t):(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}var vP={name:`codeIndented`,tokenize:bP},yP={partial:!0,tokenize:xP};function bP(e,t,n){let r=this;return i;function i(t){return e.enter(`codeIndented`),UN(e,a,`linePrefix`,5)(t)}function a(e){let t=r.events[r.events.length-1];return t&&t[1].type===`linePrefix`&&t[2].sliceSerialize(t[1],!0).length>=4?o(e):n(e)}function o(t){return t===null?c(t):IN(t)?e.attempt(yP,o,c)(t):(e.enter(`codeFlowValue`),s(t))}function s(t){return t===null||IN(t)?(e.exit(`codeFlowValue`),o(t)):(e.consume(t),s)}function c(n){return e.exit(`codeIndented`),t(n)}}function xP(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):IN(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),i):UN(e,a,`linePrefix`,5)(t)}function a(e){let a=r.events[r.events.length-1];return a&&a[1].type===`linePrefix`&&a[2].sliceSerialize(a[1],!0).length>=4?t(e):IN(e)?i(e):n(e)}}var SP={name:`codeText`,previous:wP,resolve:CP,tokenize:TP};function CP(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 wP(e){return e!==96||this.events[this.events.length-1][1].type===`characterEscape`}function TP(e,t,n){let r=0,i,a;return o;function o(t){return e.enter(`codeText`),e.enter(`codeTextSequence`),s(t)}function s(t){return t===96?(e.consume(t),r++,s):(e.exit(`codeTextSequence`),c(t))}function c(t){return t===null?n(t):t===32?(e.enter(`space`),e.consume(t),e.exit(`space`),c):t===96?(a=e.enter(`codeTextSequence`),i=0,u(t)):IN(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c):(e.enter(`codeTextData`),l(t))}function l(t){return t===null||t===32||t===96||IN(t)?(e.exit(`codeTextData`),c(t)):(e.consume(t),l)}function u(n){return n===96?(e.consume(n),i++,u):i===r?(e.exit(`codeTextSequence`),e.exit(`codeText`),t(n)):(a.type=`codeTextData`,l(n))}}var EP=class{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=t??1/0;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){let r=t||0;this.setCursor(Math.trunc(e));let i=this.right.splice(this.right.length-r,1/0);return n&&DP(this.left,n),i.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),DP(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),DP(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0))if(e<this.left.length){let t=this.left.splice(e,1/0);DP(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);DP(this.left,t.reverse())}}};function DP(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 OP(e){let t={},n=-1,r,i,a,o,s,c,l,u=new EP(e);for(;++n<u.length;){for(;n in t;)n=t[n];if(r=u.get(n),n&&r[1].type===`chunkFlow`&&u.get(n-1)[1].type===`listItemPrefix`&&(c=r[1]._tokenizer.events,a=0,a<c.length&&c[a][1].type===`lineEndingBlank`&&(a+=2),a<c.length&&c[a][1].type===`content`))for(;++a<c.length&&c[a][1].type!==`content`;)c[a][1].type===`chunkText`&&(c[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]===`enter`)r[1].contentType&&(Object.assign(t,kP(u,n)),n=t[n],l=!0);else if(r[1]._container){for(a=n,i=void 0;a--;)if(o=u.get(a),o[1].type===`lineEnding`||o[1].type===`lineEndingBlank`)o[0]===`enter`&&(i&&(u.get(i)[1].type=`lineEndingBlank`),o[1].type=`lineEnding`,i=a);else if(!(o[1].type===`linePrefix`||o[1].type===`listItemIndent`))break;i&&(r[1].end={...u.get(i)[1].start},s=u.slice(i,n),s.unshift(r),u.splice(i,n-i+1,s))}}return xN(e,0,1/0,u.slice(0)),!l}function kP(e,t){let n=e.get(t)[1],r=e.get(t)[2],i=t-1,a=[],o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));let s=o.events,c=[],l={},u,d,f=-1,p=n,m=0,h=0,g=[h];for(;p;){for(;e.get(++i)[1]!==p;);a.push(i),p._tokenizer||(u=r.sliceStream(p),p.next||u.push(null),d&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(u),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++f<s.length;)s[f][0]===`exit`&&s[f-1][0]===`enter`&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(h=f+1,g.push(h),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):g.pop(),f=g.length;f--;){let t=s.slice(g[f],g[f+1]),n=a.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),f=-1;++f<c.length;)l[m+c[f][0]]=m+c[f][1],m+=c[f][1]-c[f][0]-1;return l}var AP={resolve:MP,tokenize:NP},jP={partial:!0,tokenize:PP};function MP(e){return OP(e),e}function NP(e,t){let n;return r;function r(t){return e.enter(`content`),n=e.enter(`chunkContent`,{contentType:`content`}),i(t)}function i(t){return t===null?a(t):IN(t)?e.check(jP,o,a)(t):(e.consume(t),i)}function a(n){return e.exit(`chunkContent`),e.exit(`content`),t(n)}function o(t){return e.consume(t),e.exit(`chunkContent`),n.next=e.enter(`chunkContent`,{contentType:`content`,previous:n}),n=n.next,i}}function PP(e,t,n){let r=this;return i;function i(t){return e.exit(`chunkContent`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),UN(e,a,`linePrefix`)}function a(i){if(i===null||IN(i))return n(i);let 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(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}function FP(e,t,n,r,i,a,o,s,c){let l=c||1/0,u=0;return d;function d(t){return t===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(t),e.exit(a),f):t===null||t===32||t===41||MN(t)?n(t):(e.enter(r),e.enter(o),e.enter(s),e.enter(`chunkString`,{contentType:`string`}),h(t))}function f(n){return n===62?(e.enter(a),e.consume(n),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter(`chunkString`,{contentType:`string`}),p(n))}function p(t){return t===62?(e.exit(`chunkString`),e.exit(s),f(t)):t===null||t===60||IN(t)?n(t):(e.consume(t),t===92?m:p)}function m(t){return t===60||t===62||t===92?(e.consume(t),p):p(t)}function h(i){return!u&&(i===null||i===41||LN(i))?(e.exit(`chunkString`),e.exit(s),e.exit(o),e.exit(r),t(i)):u<l&&i===40?(e.consume(i),u++,h):i===41?(e.consume(i),u--,h):i===null||i===32||i===40||MN(i)?n(i):(e.consume(i),i===92?g:h)}function g(t){return t===40||t===41||t===92?(e.consume(t),h):h(t)}}function IP(e,t,n,r,i,a){let o=this,s=0,c;return l;function l(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(a),u}function u(l){return s>999||l===null||l===91||l===93&&!c||l===94&&!s&&`_hiddenFootnoteSupport`in o.parser.constructs?n(l):l===93?(e.exit(a),e.enter(i),e.consume(l),e.exit(i),e.exit(r),t):IN(l)?(e.enter(`lineEnding`),e.consume(l),e.exit(`lineEnding`),u):(e.enter(`chunkString`,{contentType:`string`}),d(l))}function d(t){return t===null||t===91||t===93||IN(t)||s++>999?(e.exit(`chunkString`),u(t)):(e.consume(t),c||=!RN(t),t===92?f:d)}function f(t){return t===91||t===92||t===93?(e.consume(t),s++,d):d(t)}}function LP(e,t,n,r,i,a){let o;return s;function s(t){return t===34||t===39||t===40?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),o=t===40?41:t,c):n(t)}function c(n){return n===o?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(a),l(n))}function l(t){return t===o?(e.exit(a),c(o)):t===null?n(t):IN(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),UN(e,l,`linePrefix`)):(e.enter(`chunkString`,{contentType:`string`}),u(t))}function u(t){return t===o||t===null||IN(t)?(e.exit(`chunkString`),l(t)):(e.consume(t),t===92?d:u)}function d(t){return t===o||t===92?(e.consume(t),u):u(t)}}function RP(e,t){let n;return r;function r(i){return IN(i)?(e.enter(`lineEnding`),e.consume(i),e.exit(`lineEnding`),n=!0,r):RN(i)?UN(e,r,n?`linePrefix`:`lineSuffix`)(i):t(i)}}var zP={name:`definition`,tokenize:VP},BP={partial:!0,tokenize:HP};function VP(e,t,n){let r=this,i;return a;function a(t){return e.enter(`definition`),o(t)}function o(t){return IP.call(r,e,s,n,`definitionLabel`,`definitionLabelMarker`,`definitionLabelString`)(t)}function s(t){return i=ON(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),c):n(t)}function c(t){return LN(t)?RP(e,l)(t):l(t)}function l(t){return FP(e,u,n,`definitionDestination`,`definitionDestinationLiteral`,`definitionDestinationLiteralMarker`,`definitionDestinationRaw`,`definitionDestinationString`)(t)}function u(t){return e.attempt(BP,d,d)(t)}function d(t){return RN(t)?UN(e,f,`whitespace`)(t):f(t)}function f(a){return a===null||IN(a)?(e.exit(`definition`),r.parser.defined.push(i),t(a)):n(a)}}function HP(e,t,n){return r;function r(t){return LN(t)?RP(e,i)(t):n(t)}function i(t){return LP(e,a,n,`definitionTitle`,`definitionTitleMarker`,`definitionTitleString`)(t)}function a(t){return RN(t)?UN(e,o,`whitespace`)(t):o(t)}function o(e){return e===null||IN(e)?t(e):n(e)}}var UP={name:`hardBreakEscape`,tokenize:WP};function WP(e,t,n){return r;function r(t){return e.enter(`hardBreakEscape`),e.consume(t),i}function i(r){return IN(r)?(e.exit(`hardBreakEscape`),t(r)):n(r)}}var GP={name:`headingAtx`,resolve:KP,tokenize:qP};function KP(e,t){let n=e.length-2,r=3,i,a;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},a={type:`chunkText`,start:e[r][1].start,end:e[n][1].end,contentType:`text`},xN(e,r,n-r+1,[[`enter`,i,t],[`enter`,a,t],[`exit`,a,t],[`exit`,i,t]])),e}function qP(e,t,n){let r=0;return i;function i(t){return e.enter(`atxHeading`),a(t)}function a(t){return e.enter(`atxHeadingSequence`),o(t)}function o(t){return t===35&&r++<6?(e.consume(t),o):t===null||LN(t)?(e.exit(`atxHeadingSequence`),s(t)):n(t)}function s(n){return n===35?(e.enter(`atxHeadingSequence`),c(n)):n===null||IN(n)?(e.exit(`atxHeading`),t(n)):RN(n)?UN(e,s,`whitespace`)(n):(e.enter(`atxHeadingText`),l(n))}function c(t){return t===35?(e.consume(t),c):(e.exit(`atxHeadingSequence`),s(t))}function l(t){return t===null||t===35||LN(t)?(e.exit(`atxHeadingText`),s(t)):(e.consume(t),l)}}var JP=`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`.split(`.`),YP=[`pre`,`script`,`style`,`textarea`],XP={concrete:!0,name:`htmlFlow`,resolveTo:$P,tokenize:eF},ZP={partial:!0,tokenize:nF},QP={partial:!0,tokenize:tF};function $P(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 eF(e,t,n){let r=this,i,a,o,s,c;return l;function l(e){return u(e)}function u(t){return e.enter(`htmlFlow`),e.enter(`htmlFlowData`),e.consume(t),d}function d(s){return s===33?(e.consume(s),f):s===47?(e.consume(s),a=!0,h):s===63?(e.consume(s),i=3,r.interrupt?t:I):kN(s)?(e.consume(s),o=String.fromCharCode(s),g):n(s)}function f(a){return a===45?(e.consume(a),i=2,p):a===91?(e.consume(a),i=5,s=0,m):kN(a)?(e.consume(a),i=4,r.interrupt?t:I):n(a)}function p(i){return i===45?(e.consume(i),r.interrupt?t:I):n(i)}function m(i){return i===`CDATA[`.charCodeAt(s++)?(e.consume(i),s===6?r.interrupt?t:O:m):n(i)}function h(t){return kN(t)?(e.consume(t),o=String.fromCharCode(t),g):n(t)}function g(s){if(s===null||s===47||s===62||LN(s)){let c=s===47,l=o.toLowerCase();return!c&&!a&&YP.includes(l)?(i=1,r.interrupt?t(s):O(s)):JP.includes(o.toLowerCase())?(i=6,c?(e.consume(s),_):r.interrupt?t(s):O(s)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):a?v(s):y(s))}return s===45||AN(s)?(e.consume(s),o+=String.fromCharCode(s),g):n(s)}function _(i){return i===62?(e.consume(i),r.interrupt?t:O):n(i)}function v(t){return RN(t)?(e.consume(t),v):E(t)}function y(t){return t===47?(e.consume(t),E):t===58||t===95||kN(t)?(e.consume(t),b):RN(t)?(e.consume(t),y):E(t)}function b(t){return t===45||t===46||t===58||t===95||AN(t)?(e.consume(t),b):x(t)}function x(t){return t===61?(e.consume(t),S):RN(t)?(e.consume(t),x):y(t)}function S(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),c=t,C):RN(t)?(e.consume(t),S):w(t)}function C(t){return t===c?(e.consume(t),c=null,T):t===null||IN(t)?n(t):(e.consume(t),C)}function w(t){return t===null||t===34||t===39||t===47||t===60||t===61||t===62||t===96||LN(t)?x(t):(e.consume(t),w)}function T(e){return e===47||e===62||RN(e)?y(e):n(e)}function E(t){return t===62?(e.consume(t),D):n(t)}function D(t){return t===null||IN(t)?O(t):RN(t)?(e.consume(t),D):n(t)}function O(t){return t===45&&i===2?(e.consume(t),M):t===60&&i===1?(e.consume(t),N):t===62&&i===4?(e.consume(t),L):t===63&&i===3?(e.consume(t),I):t===93&&i===5?(e.consume(t),F):IN(t)&&(i===6||i===7)?(e.exit(`htmlFlowData`),e.check(ZP,R,k)(t)):t===null||IN(t)?(e.exit(`htmlFlowData`),k(t)):(e.consume(t),O)}function k(t){return e.check(QP,A,R)(t)}function A(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),j}function j(t){return t===null||IN(t)?k(t):(e.enter(`htmlFlowData`),O(t))}function M(t){return t===45?(e.consume(t),I):O(t)}function N(t){return t===47?(e.consume(t),o=``,P):O(t)}function P(t){if(t===62){let n=o.toLowerCase();return YP.includes(n)?(e.consume(t),L):O(t)}return kN(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),P):O(t)}function F(t){return t===93?(e.consume(t),I):O(t)}function I(t){return t===62?(e.consume(t),L):t===45&&i===2?(e.consume(t),I):O(t)}function L(t){return t===null||IN(t)?(e.exit(`htmlFlowData`),R(t)):(e.consume(t),L)}function R(n){return e.exit(`htmlFlow`),t(n)}}function tF(e,t,n){let r=this;return i;function i(t){return IN(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a):n(t)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}function nF(e,t,n){return r;function r(r){return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),e.attempt(iP,t,n)}}var rF={name:`htmlText`,tokenize:iF};function iF(e,t,n){let r=this,i,a,o;return s;function s(t){return e.enter(`htmlText`),e.enter(`htmlTextData`),e.consume(t),c}function c(t){return t===33?(e.consume(t),l):t===47?(e.consume(t),x):t===63?(e.consume(t),y):kN(t)?(e.consume(t),w):n(t)}function l(t){return t===45?(e.consume(t),u):t===91?(e.consume(t),a=0,m):kN(t)?(e.consume(t),v):n(t)}function u(t){return t===45?(e.consume(t),p):n(t)}function d(t){return t===null?n(t):t===45?(e.consume(t),f):IN(t)?(o=d,N(t)):(e.consume(t),d)}function f(t){return t===45?(e.consume(t),p):d(t)}function p(e){return e===62?M(e):e===45?f(e):d(e)}function m(t){return t===`CDATA[`.charCodeAt(a++)?(e.consume(t),a===6?h:m):n(t)}function h(t){return t===null?n(t):t===93?(e.consume(t),g):IN(t)?(o=h,N(t)):(e.consume(t),h)}function g(t){return t===93?(e.consume(t),_):h(t)}function _(t){return t===62?M(t):t===93?(e.consume(t),_):h(t)}function v(t){return t===null||t===62?M(t):IN(t)?(o=v,N(t)):(e.consume(t),v)}function y(t){return t===null?n(t):t===63?(e.consume(t),b):IN(t)?(o=y,N(t)):(e.consume(t),y)}function b(e){return e===62?M(e):y(e)}function x(t){return kN(t)?(e.consume(t),S):n(t)}function S(t){return t===45||AN(t)?(e.consume(t),S):C(t)}function C(t){return IN(t)?(o=C,N(t)):RN(t)?(e.consume(t),C):M(t)}function w(t){return t===45||AN(t)?(e.consume(t),w):t===47||t===62||LN(t)?T(t):n(t)}function T(t){return t===47?(e.consume(t),M):t===58||t===95||kN(t)?(e.consume(t),E):IN(t)?(o=T,N(t)):RN(t)?(e.consume(t),T):M(t)}function E(t){return t===45||t===46||t===58||t===95||AN(t)?(e.consume(t),E):D(t)}function D(t){return t===61?(e.consume(t),O):IN(t)?(o=D,N(t)):RN(t)?(e.consume(t),D):T(t)}function O(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),i=t,k):IN(t)?(o=O,N(t)):RN(t)?(e.consume(t),O):(e.consume(t),A)}function k(t){return t===i?(e.consume(t),i=void 0,j):t===null?n(t):IN(t)?(o=k,N(t)):(e.consume(t),k)}function A(t){return t===null||t===34||t===39||t===60||t===61||t===96?n(t):t===47||t===62||LN(t)?T(t):(e.consume(t),A)}function j(e){return e===47||e===62||LN(e)?T(e):n(e)}function M(r){return r===62?(e.consume(r),e.exit(`htmlTextData`),e.exit(`htmlText`),t):n(r)}function N(t){return e.exit(`htmlTextData`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),P}function P(t){return RN(t)?UN(e,F,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):F(t)}function F(t){return e.enter(`htmlTextData`),o(t)}}var aF={name:`labelEnd`,resolveAll:lF,resolveTo:uF,tokenize:dF},oF={tokenize:fF},sF={tokenize:pF},cF={tokenize:mF};function lF(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),r.type===`labelImage`||r.type===`labelLink`||r.type===`labelEnd`){let e=r.type===`labelImage`?4:2;r.type=`data`,t+=e}}return e.length!==n.length&&xN(e,0,e.length,n),e}function uF(e,t){let n=e.length,r=0,i,a,o,s;for(;n--;)if(i=e[n][1],a){if(i.type===`link`||i.type===`labelLink`&&i._inactive)break;e[n][0]===`enter`&&i.type===`labelLink`&&(i._inactive=!0)}else if(o){if(e[n][0]===`enter`&&(i.type===`labelImage`||i.type===`labelLink`)&&!i._balanced&&(a=n,i.type!==`labelLink`)){r=2;break}}else i.type===`labelEnd`&&(o=n);let c={type:e[a][1].type===`labelLink`?`link`:`image`,start:{...e[a][1].start},end:{...e[e.length-1][1].end}},l={type:`label`,start:{...e[a][1].start},end:{...e[o][1].end}},u={type:`labelText`,start:{...e[a+r+2][1].end},end:{...e[o-2][1].start}};return s=[[`enter`,c,t],[`enter`,l,t]],s=SN(s,e.slice(a+1,a+r+3)),s=SN(s,[[`enter`,u,t]]),s=SN(s,ZN(t.parser.constructs.insideSpan.null,e.slice(a+r+4,o-3),t)),s=SN(s,[[`exit`,u,t],e[o-2],e[o-1],[`exit`,l,t]]),s=SN(s,e.slice(o+1)),s=SN(s,[[`exit`,c,t]]),xN(e,a,e.length,s),e}function dF(e,t,n){let r=this,i=r.events.length,a,o;for(;i--;)if((r.events[i][1].type===`labelImage`||r.events[i][1].type===`labelLink`)&&!r.events[i][1]._balanced){a=r.events[i][1];break}return s;function s(t){return a?a._inactive?d(t):(o=r.parser.defined.includes(ON(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter(`labelEnd`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelEnd`),c):n(t)}function c(t){return t===40?e.attempt(oF,u,o?u:d)(t):t===91?e.attempt(sF,u,o?l:d)(t):o?u(t):d(t)}function l(t){return e.attempt(cF,u,d)(t)}function u(e){return t(e)}function d(e){return a._balanced=!0,n(e)}}function fF(e,t,n){return r;function r(t){return e.enter(`resource`),e.enter(`resourceMarker`),e.consume(t),e.exit(`resourceMarker`),i}function i(t){return LN(t)?RP(e,a)(t):a(t)}function a(t){return t===41?u(t):FP(e,o,s,`resourceDestination`,`resourceDestinationLiteral`,`resourceDestinationLiteralMarker`,`resourceDestinationRaw`,`resourceDestinationString`,32)(t)}function o(t){return LN(t)?RP(e,c)(t):u(t)}function s(e){return n(e)}function c(t){return t===34||t===39||t===40?LP(e,l,n,`resourceTitle`,`resourceTitleMarker`,`resourceTitleString`)(t):u(t)}function l(t){return LN(t)?RP(e,u)(t):u(t)}function u(r){return r===41?(e.enter(`resourceMarker`),e.consume(r),e.exit(`resourceMarker`),e.exit(`resource`),t):n(r)}}function pF(e,t,n){let r=this;return i;function i(t){return IP.call(r,e,a,o,`reference`,`referenceMarker`,`referenceString`)(t)}function a(e){return r.parser.defined.includes(ON(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}function mF(e,t,n){return r;function r(t){return e.enter(`reference`),e.enter(`referenceMarker`),e.consume(t),e.exit(`referenceMarker`),i}function i(r){return r===93?(e.enter(`referenceMarker`),e.consume(r),e.exit(`referenceMarker`),e.exit(`reference`),t):n(r)}}var hF={name:`labelStartImage`,resolveAll:aF.resolveAll,tokenize:gF};function gF(e,t,n){let r=this;return i;function i(t){return e.enter(`labelImage`),e.enter(`labelImageMarker`),e.consume(t),e.exit(`labelImageMarker`),a}function a(t){return t===91?(e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelImage`),o):n(t)}function o(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):t(e)}}var _F={name:`labelStartLink`,resolveAll:aF.resolveAll,tokenize:vF};function vF(e,t,n){let r=this;return i;function i(t){return e.enter(`labelLink`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelLink`),a}function a(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):t(e)}}var yF={name:`lineEnding`,tokenize:bF};function bF(e,t){return n;function n(n){return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),UN(e,t,`linePrefix`)}}var xF={name:`thematicBreak`,tokenize:SF};function SF(e,t,n){let r=0,i;return a;function a(t){return e.enter(`thematicBreak`),o(t)}function o(e){return i=e,s(e)}function s(a){return a===i?(e.enter(`thematicBreakSequence`),c(a)):r>=3&&(a===null||IN(a))?(e.exit(`thematicBreak`),t(a)):n(a)}function c(t){return t===i?(e.consume(t),r++,c):(e.exit(`thematicBreakSequence`),RN(t)?UN(e,s,`whitespace`)(t):s(t))}}var CF={continuation:{tokenize:DF},exit:kF,name:`list`,tokenize:EF},wF={partial:!0,tokenize:AF},TF={partial:!0,tokenize:OF};function EF(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&i[1].type===`linePrefix`?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(t){let i=r.containerState.type||(t===42||t===43||t===45?`listUnordered`:`listOrdered`);if(i===`listUnordered`?!r.containerState.marker||t===r.containerState.marker:NN(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),i===`listUnordered`)return e.enter(`listItemPrefix`),t===42||t===45?e.check(xF,n,l)(t):l(t);if(!r.interrupt||t===49)return e.enter(`listItemPrefix`),e.enter(`listItemValue`),c(t)}return n(t)}function c(t){return NN(t)&&++o<10?(e.consume(t),c):(!r.interrupt||o<2)&&(r.containerState.marker?t===r.containerState.marker:t===41||t===46)?(e.exit(`listItemValue`),l(t)):n(t)}function l(t){return e.enter(`listItemMarker`),e.consume(t),e.exit(`listItemMarker`),r.containerState.marker=r.containerState.marker||t,e.check(iP,r.interrupt?n:u,e.attempt(wF,f,d))}function u(e){return r.containerState.initialBlankLine=!0,a++,f(e)}function d(t){return RN(t)?(e.enter(`listItemPrefixWhitespace`),e.consume(t),e.exit(`listItemPrefixWhitespace`),f):n(t)}function f(n){return r.containerState.size=a+r.sliceSerialize(e.exit(`listItemPrefix`),!0).length,t(n)}}function DF(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(iP,i,a);function i(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,UN(e,t,`listItemIndent`,r.containerState.size+1)(n)}function a(n){return r.containerState.furtherBlankLines||!RN(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(TF,t,o)(n))}function o(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,UN(e,e.attempt(CF,t,n),`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(i)}}function OF(e,t,n){let r=this;return UN(e,i,`listItemIndent`,r.containerState.size+1);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`listItemIndent`&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)}}function kF(e){e.exit(this.containerState.type)}function AF(e,t,n){let r=this;return UN(e,i,`listItemPrefixWhitespace`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:5);function i(e){let i=r.events[r.events.length-1];return!RN(e)&&i&&i[1].type===`listItemPrefixWhitespace`?t(e):n(e)}}var jF={name:`setextUnderline`,resolveTo:MF,tokenize:NF};function MF(e,t){let n=e.length,r,i,a;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),!a&&e[n][1].type===`definition`&&(a=n);let o={type:`setextHeading`,start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type=`setextHeadingText`,a?(e.splice(i,0,[`enter`,o,t]),e.splice(a+1,0,[`exit`,e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=o,e.push([`exit`,o,t]),e}function NF(e,t,n){let r=this,i;return a;function a(t){let a=r.events.length,s;for(;a--;)if(r.events[a][1].type!==`lineEnding`&&r.events[a][1].type!==`linePrefix`&&r.events[a][1].type!==`content`){s=r.events[a][1].type===`paragraph`;break}return!r.parser.lazy[r.now().line]&&(r.interrupt||s)?(e.enter(`setextHeadingLine`),i=t,o(t)):n(t)}function o(t){return e.enter(`setextHeadingLineSequence`),s(t)}function s(t){return t===i?(e.consume(t),s):(e.exit(`setextHeadingLineSequence`),RN(t)?UN(e,c,`lineSuffix`)(t):c(t))}function c(r){return r===null||IN(r)?(e.exit(`setextHeadingLine`),t(r)):n(r)}}var PF={tokenize:FF};function FF(e){let t=this,n=e.attempt(iP,r,e.attempt(this.parser.constructs.flowInitial,i,UN(e,e.attempt(this.parser.constructs.flow,i,e.attempt(AP,i)),`linePrefix`)));return n;function r(r){if(r===null){e.consume(r);return}return e.enter(`lineEndingBlank`),e.consume(r),e.exit(`lineEndingBlank`),t.currentConstruct=void 0,n}function i(r){if(r===null){e.consume(r);return}return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),t.currentConstruct=void 0,n}}var IF={resolveAll:BF()},LF=zF(`string`),RF=zF(`text`);function zF(e){return{resolveAll:BF(e===`text`?VF:void 0),tokenize:t};function t(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,a,o);return a;function a(e){return c(e)?i(e):o(e)}function o(e){if(e===null){t.consume(e);return}return t.enter(`data`),t.consume(e),s}function s(e){return c(e)?(t.exit(`data`),i(e)):(t.consume(e),s)}function c(e){if(e===null)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}function BF(e){return t;function t(t,n){let r=-1,i;for(;++r<=t.length;)i===void 0?t[r]&&t[r][1].type===`data`&&(i=r,r++):(!t[r]||t[r][1].type!==`data`)&&(r!==i+2&&(t[i][1].end=t[r-1][1].end,t.splice(i+2,r-i-2),r=i+2),i=void 0);return e?e(t,n):t}}function VF(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type===`lineEnding`)&&e[n-1][1].type===`data`){let r=e[n-1][1],i=t.sliceStream(r),a=i.length,o=-1,s=0,c;for(;a--;){let e=i[a];if(typeof e==`string`){for(o=e.length;e.charCodeAt(o-1)===32;)s++,o--;if(o)break;o=-1}else if(e===-2)c=!0,s++;else if(e!==-1){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){let i={type:n===e.length||c||s<2?`lineSuffix`:`hardBreakTrailing`,start:{_bufferIndex:a?o:r.start._bufferIndex+o,_index:r.start._index+a,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...i.start},r.start.offset===r.end.offset?Object.assign(r,i):(e.splice(n,0,[`enter`,i,t],[`exit`,i,t]),n+=2)}n++}return e}var HF=s({attentionMarkers:()=>XF,contentInitial:()=>WF,disable:()=>ZF,document:()=>UF,flow:()=>KF,flowInitial:()=>GF,insideSpan:()=>YF,string:()=>qF,text:()=>JF}),UF={42:CF,43:CF,45:CF,48:CF,49:CF,50:CF,51:CF,52:CF,53:CF,54:CF,55:CF,56:CF,57:CF,62:oP},WF={91:zP},GF={[-2]:vP,[-1]:vP,32:vP},KF={35:GP,42:xF,45:[jF,xF],60:XP,61:jF,95:xF,96:hP,126:hP},qF={38:fP,92:uP},JF={[-5]:yF,[-4]:yF,[-3]:yF,33:hF,38:fP,42:QN,60:[nP,rF],91:_F,92:[UP,uP],93:aF,95:QN,96:SP},YF={null:[QN,IF]},XF={null:[42,95]},ZF={null:[]};function QF(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},a=[],o=[],s=[],c={attempt:C(x),check:C(S),consume:v,enter:y,exit:b,interrupt:C(S,{interrupt:!0})},l={code:null,containerState:{},defineSkip:h,events:[],now:m,parser:e,previous:null,sliceSerialize:f,sliceStream:p,write:d},u=t.tokenize.call(l,c);return t.resolveAll&&a.push(t),l;function d(e){return o=SN(o,e),g(),o[o.length-1]===null?(w(t,0),l.events=ZN(a,l.events,l),l.events):[]}function f(e,t){return eI(p(e),t)}function p(e){return $F(o,e)}function m(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:a}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:a}}function h(e){i[e.line]=e.column,E()}function g(){let e;for(;r._index<o.length;){let t=o[r._index];if(typeof t==`string`)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)_(t.charCodeAt(r._bufferIndex));else _(t)}}function _(e){u=u(e)}function v(e){IN(e)?(r.line++,r.column=1,r.offset+=e===-3?2:1,E()):e!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),l.previous=e}function y(e,t){let n=t||{};return n.type=e,n.start=m(),l.events.push([`enter`,n,l]),s.push(n),n}function b(e){let t=s.pop();return t.end=m(),l.events.push([`exit`,t,l]),t}function x(e,t){w(e,t.from)}function S(e,t){t.restore()}function C(e,t){return n;function n(n,r,i){let a,o,s,u;return Array.isArray(n)?f(n):`tokenize`in n?f([n]):d(n);function d(e){return t;function t(t){let n=t!==null&&e[t],r=t!==null&&e.null;return f([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}function f(e){return a=e,o=0,e.length===0?i:p(e[o])}function p(e){return n;function n(n){return u=T(),s=e,e.partial||(l.currentConstruct=e),e.name&&l.parser.constructs.disable.null.includes(e.name)?h(n):e.tokenize.call(t?Object.assign(Object.create(l),t):l,c,m,h)(n)}}function m(t){return e(s,u),r}function h(e){return u.restore(),++o<a.length?p(a[o]):i}}}function w(e,t){e.resolveAll&&!a.includes(e)&&a.push(e),e.resolve&&xN(l.events,t,l.events.length-t,e.resolve(l.events.slice(t),l)),e.resolveTo&&(l.events=e.resolveTo(l.events,l))}function T(){let e=m(),t=l.previous,n=l.currentConstruct,i=l.events.length,a=Array.from(s);return{from:i,restore:o};function o(){r=e,l.previous=t,l.currentConstruct=n,l.events.length=i,s=a,E()}}function E(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function $F(e,t){let n=t.start._index,r=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex,o;if(n===i)o=[e[n].slice(r,a)];else{if(o=e.slice(n,i),r>-1){let e=o[0];typeof e==`string`?o[0]=e.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function eI(e,t){let n=-1,r=[],i;for(;++n<e.length;){let a=e[n],o;if(typeof a==`string`)o=a;else switch(a){case-5:o=`\r`;break;case-4:o=`
|
|
258
|
+
`]:{...qa(e),marginInlineStart:e.marginXXS},...Gk(e),...Kk(e),...qk(),"&-rtl":{direction:`rtl`}}}},()=>({titleMarginTop:`1.2em`,titleMarginBottom:`0.5em`})),Yk=e=>{let{prefixCls:t,"aria-label":n,className:r,style:i,direction:a,maxLength:o,autoSize:s=!0,value:c,onSave:l,onCancel:u,onEnd:d,component:f,enterIcon:p=v.createElement(Bk,null)}=e,m=v.useRef(null),h=v.useRef(!1),g=v.useRef(null),[_,y]=v.useState(c);v.useEffect(()=>{y(c)},[c]),v.useEffect(()=>{if(m.current?.resizableTextArea){let{textArea:e}=m.current.resizableTextArea;e.focus();let{length:t}=e.value;e.setSelectionRange(t,t)}},[]);let b=({target:e})=>{y(e.value.replace(/[\n\r]/g,``))},x=()=>{h.current=!0},S=()=>{h.current=!1},C=({keyCode:e})=>{h.current||(g.current=e)},w=()=>{l(_.trim())},T=({keyCode:e,ctrlKey:t,altKey:n,metaKey:r,shiftKey:i})=>{g.current!==e||h.current||t||n||r||i||(e===Z.ENTER?(w(),d?.()):e===Z.ESC&&u())},E=()=>{w()},[D,O]=Jk(t),k=Y(t,`${t}-edit-content`,{[`${t}-rtl`]:a===`rtl`,[`${t}-${f}`]:!!f},r,D,O);return v.createElement(`div`,{className:k,style:i},v.createElement(DD,{ref:m,maxLength:o,value:_,onChange:b,onKeyDown:C,onKeyUp:T,onCompositionStart:x,onCompositionEnd:S,onBlur:E,"aria-label":n,rows:1,autoSize:s}),p===null?null:ou(p,{className:`${t}-edit-content-confirm`}))},Xk=(e,t)=>{let n=!1,r=r=>{r.stopPropagation(),r.preventDefault(),r.clipboardData?.clearData(),r.clipboardData?.setData(`text/plain`,e),t&&r.clipboardData?.setData(`text/html`,e),n=!0};try{return document.addEventListener(`copy`,r,{capture:!0}),document.execCommand(`copy`),n}catch{return!1}finally{document.removeEventListener(`copy`,r,{capture:!0})}},Zk=async(e,t)=>{try{return t?await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([e],{type:`text/html`}),"text/plain":new Blob([e],{type:`text/plain`})})]):await navigator.clipboard.writeText(e),!0}catch{return!1}};async function Qk(e,t){if(typeof e!=`string`)return!1;let n=t?.format===`text/html`;return!!(await Zk(e,n)||Xk(e,n))}var $k=({copyConfig:e,children:t})=>{let[n,r]=v.useState(!1),[i,a]=v.useState(!1),o=v.useRef(null),s=()=>{o.current&&clearTimeout(o.current)},c={};return e.format&&(c.format=e.format),v.useEffect(()=>s,[]),{copied:n,copyLoading:i,onClick:y(async n=>{n?.preventDefault(),n?.stopPropagation(),a(!0);try{await Qk((typeof e.text==`function`?await e.text():e.text)||WO(t,{skipEmpty:!0}).join(``)||``,c),a(!1),r(!0),s(),o.current=setTimeout(()=>{r(!1)},3e3),e.onCopy?.(n)}catch(e){throw a(!1),e}})}};function eA(e,t){return v.useMemo(()=>{let n=!!e;return[n,{...t,...n&&typeof e==`object`?e:null}]},[e])}var tA=e=>{let t=(0,v.useRef)(void 0);return(0,v.useEffect)(()=>{t.current=e}),t.current},nA=(e,t,n)=>(0,v.useMemo)(()=>e===!0?{title:t??n}:(0,v.isValidElement)(e)?{title:e}:sc(e)?{title:t??n,...e}:{title:e},[e,t,n]),rA=v.forwardRef((e,t)=>{let{prefixCls:n,component:r=`article`,className:i,rootClassName:a,children:o,direction:s,style:c,...l}=e,{getPrefixCls:u,direction:d,className:f,style:p}=Ze(`typography`),m=s??d,h=u(`typography`,n),[g,_]=Jk(h),y=Y(h,f,{[`${h}-rtl`]:m===`rtl`},i,a,g,_),b={...p,...c};return v.createElement(r,{className:y,style:b,ref:t,...l},o)}),iA={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z`}}]},name:`copy`,theme:`outlined`};function aA(){return aA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},aA.apply(this,arguments)}var oA=v.forwardRef((e,t)=>v.createElement(So,aA({},e,{ref:t,icon:iA}))),sA=e=>e===!1?[!1,!1]:WO(e);function cA(e,t,n){return e===!0||e===void 0?t:e||n&&t}function lA(e){let t=document.createElement(`em`);e.appendChild(t);let n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return e.removeChild(t),n.left>r.left||r.right>n.right||n.top>r.top||r.bottom>n.bottom}var uA=e=>[`string`,`number`].includes(typeof e),dA=e=>{let{prefixCls:t,copied:n,locale:r,iconOnly:i,tooltips:a,icon:o,tabIndex:s,onCopy:c,loading:l}=e,u=sA(a),d=sA(o),{copied:f,copy:p}=r??{},m=n?f:p,h=cA(u[+!!n],m),g=typeof h==`string`?h:m;return v.createElement(gx,{title:h},v.createElement(`button`,{type:`button`,className:Y(`${t}-copy`,{[`${t}-copy-success`]:n,[`${t}-copy-icon-only`]:i}),onClick:c,"aria-label":g,tabIndex:s},n?cA(d[1],v.createElement(xb,null),!0):cA(d[0],l?v.createElement(Yu,null):v.createElement(oA,null),!0)))},fA=v.forwardRef(({style:e,children:t},n)=>{let r=v.useRef(null);return v.useImperativeHandle(n,()=>({isExceed:()=>{let e=r.current;return e.scrollHeight>e.clientHeight},getHeight:()=>r.current.clientHeight})),v.createElement(`span`,{"aria-hidden":!0,ref:r,style:{position:`fixed`,display:`block`,left:0,top:0,pointerEvents:`none`,backgroundColor:`rgba(255, 0, 0, 0.65)`,...e}},t)}),pA=e=>e.reduce((e,t)=>e+(uA(t)?String(t).length:1),0);function mA(e,t){let n=0,r=[];for(let i=0;i<e.length;i+=1){if(n===t)return r;let a=e[i],o=uA(a)?String(a).length:1,s=n+o;if(s>t){let e=t-n;return r.push(String(a).slice(0,e)),r}r.push(a),n=s}return e}var hA=0,gA=1,_A=2,vA=3,yA=4,bA={display:`-webkit-box`,overflow:`hidden`,WebkitBoxOrient:`vertical`};function xA(e){let{enableMeasure:t,width:n,text:r,children:i,rows:a,expanded:o,miscDeps:s,onEllipsis:c}=e,l=v.useMemo(()=>de(r),[r]),u=v.useMemo(()=>pA(l),[r]),d=v.useMemo(()=>i(l,!1),[r]),[f,p]=v.useState(null),m=v.useRef(null),h=v.useRef(null),g=v.useRef(null),_=v.useRef(null),y=v.useRef(null),[b,x]=v.useState(!1),[C,w]=v.useState(hA),[T,E]=v.useState(0),[D,O]=v.useState(null);S(()=>{w(t&&n&&u?gA:hA)},[n,r,a,t,l]),S(()=>{if(C===gA)w(_A),O(h.current&&getComputedStyle(h.current).whiteSpace);else if(C===_A){let e=!!g.current?.isExceed();w(e?vA:yA),p(e?[0,u]:null),x(e);let t=g.current?.getHeight()||0,n=a===1?0:_.current?.getHeight()||0,r=y.current?.getHeight()||0;E(Math.max(t,n+r)+1),c(e)}},[C]);let k=f?Math.ceil((f[0]+f[1])/2):0;S(()=>{let[e,t]=f||[0,0];if(e!==t){let n=(m.current?.getHeight()||0)>T,r=k;t-e===1&&(r=n?e:t),p(n?[e,r]:[r,t])}},[f,k]);let A=v.useMemo(()=>{if(!t)return i(l,!1);if(C!==vA||!f||f[0]!==f[1]){let e=i(l,!1);return[yA,hA].includes(C)?e:v.createElement(`span`,{style:{...bA,WebkitLineClamp:a}},e)}return i(o?l:mA(l,f[0]),b)},[o,C,f,l].concat(ze(s))),j={width:n,margin:0,padding:0,whiteSpace:D===`nowrap`?`normal`:`inherit`};return v.createElement(v.Fragment,null,A,C===_A&&v.createElement(v.Fragment,null,v.createElement(fA,{style:{...j,...bA,WebkitLineClamp:a},ref:g},d),v.createElement(fA,{style:{...j,...bA,WebkitLineClamp:a-1},ref:_},d),v.createElement(fA,{style:{...j,...bA,WebkitLineClamp:1},ref:y},i([],!0))),C===vA&&f&&f[0]!==f[1]&&v.createElement(fA,{style:{...j,top:400},ref:m},i(mA(l,k),!0)),C===gA&&v.createElement(`span`,{style:{whiteSpace:`inherit`},ref:h}))}var SA=({enableEllipsis:e,isEllipsis:t,open:n,children:r,tooltipProps:i})=>{if(!i?.title||!e)return r;let a=n&&t;return v.createElement(gx,{open:a,...i},r)};function CA({mark:e,code:t,underline:n,delete:r,strong:i,keyboard:a,italic:o},s){let c=s;function l(e,t){t&&(c=v.createElement(e,{},c))}return l(`strong`,i),l(`u`,n),l(`del`,r),l(`code`,t),l(`mark`,e),l(`kbd`,a),l(`i`,o),c}var wA=`...`,TA=[`delete`,`mark`,`code`,`underline`,`strong`,`keyboard`,`italic`],EA=v.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:i,type:a,disabled:o,children:s,ellipsis:c,editable:l,copyable:u,component:d,title:f,onMouseEnter:p,onMouseLeave:m,...h}=e,{getPrefixCls:g,direction:_}=v.useContext(Je),[y]=ec(`Text`),b=v.useRef(null),x=v.useRef(null),C=g(`typography`,n),w=ue(h,TA),[E,D]=eA(l),[O,k]=T(!1,D.editing),{triggerType:A=[`icon`]}=D,j=e=>{e&&D.onStart?.(),k(e)},M=tA(O);S(()=>{!O&&M&&x.current?.focus()},[O]);let N=e=>{e?.preventDefault(),j(!0)},P=e=>{D.onChange?.(e),j(!1)},F=()=>{D.onCancel?.(),j(!1)},[L,R]=eA(u),{copied:z,copyLoading:B,onClick:V}=$k({copyConfig:R,children:s}),[H,U]=v.useState(!1),[W,ee]=v.useState(!1),[te,G]=v.useState(!1),[ne,re]=v.useState(!1),[ie,K]=v.useState(!0),[q,ae]=eA(c,{expandable:!1,symbol:e=>e?y?.collapse:y?.expand}),[oe,se]=T(ae.defaultExpanded||!1,ae.expanded),J=q&&(!oe||ae.expandable===`collapsible`),{rows:ce=1}=ae,le=v.useMemo(()=>J&&(ae.suffix!==void 0||ae.onEllipsis||ae.expandable||E||L),[J,ae,E,L]);S(()=>{q&&!le&&(U(Wh(`webkitLineClamp`)),ee(Wh(`textOverflow`)))},[le,q]);let[fe,pe]=v.useState(J),me=v.useMemo(()=>le?!1:ce===1?W:H,[le,W,H]);S(()=>{pe(me&&J)},[me,J]);let he=nA(ae.tooltip,D.text,s),ge=fe&&!!he.title,_e=J&&(fe?ge&&ne:te),ve=J&&ce===1&&fe,ye=J&&ce>1&&fe,be=(e,t)=>{se(t.expanded),ae.onExpand?.(e,t)},[xe,Se]=v.useState(0),[Ce,we]=v.useState(!1),[Te,Ee]=v.useState(!1),De=({offsetWidth:e})=>{Se(e)},Oe=e=>{G(e),te!==e&&ae.onEllipsis?.(e)};v.useEffect(()=>{let e=b.current;if(q&&ge&&e){let t=lA(e);ne!==t&&re(t)}},[q,ge,s,ye,ie,xe]),v.useEffect(()=>{let e=b.current;if(typeof IntersectionObserver>`u`||!e||!ge||!J)return;let t=new IntersectionObserver(()=>{K(!!e.offsetParent)});return t.observe(e),()=>{t.disconnect()}},[ge,J]);let ke=v.useMemo(()=>{if(!(!q||fe))return[D.text,s,f,he.title].find(uA)},[q,fe,f,he.title,_e]);if(O)return v.createElement(Yk,{value:D.text??(typeof s==`string`?s:``),onSave:P,onCancel:F,onEnd:D.onEnd,prefixCls:C,className:r,style:i,direction:_,component:d,maxLength:D.maxLength,autoSize:D.autoSize,enterIcon:D.enterIcon});let Ae=()=>{let{expandable:e,symbol:t}=ae;return e?v.createElement(`button`,{type:`button`,key:`expand`,className:`${C}-${oe?`collapse`:`expand`}`,onClick:e=>be(e,{expanded:!oe}),"aria-label":oe?y.collapse:y?.expand},typeof t==`function`?t(oe):t):null},je=()=>{if(!E)return;let{icon:e,tooltip:t,tabIndex:n}=D,r=de(t)[0]||y?.edit,i=typeof r==`string`?r:``;return A.includes(`icon`)?v.createElement(gx,{key:`edit`,title:t===!1?``:r},v.createElement(`button`,{type:`button`,ref:x,className:`${C}-edit`,onClick:N,"aria-label":i,tabIndex:n},e||v.createElement(Lk,{role:`button`}))):null},Ne=()=>L?v.createElement(dA,{key:`copy`,...R,prefixCls:C,copied:z,locale:y,onCopy:V,loading:B,iconOnly:!ic(s)}):null,Pe=e=>{let t=e&&Ae(),n=je(),r=Ne();return!t&&!n&&!r?null:v.createElement(`span`,{key:`operations`,className:`${C}-actions`,onMouseEnter:()=>we(!0),onMouseLeave:()=>we(!1)},t,n,r)},Fe=e=>[e&&!oe&&v.createElement(`span`,{"aria-hidden":!0,key:`ellipsis`},wA),ae.suffix,Pe(e)];return v.createElement(Me,{onResize:De,disabled:!J},c=>v.createElement(SA,{tooltipProps:he,enableEllipsis:J,isEllipsis:_e,open:Te&&!Ce},v.createElement(rA,{onMouseEnter:e=>{Ee(!0),p?.(e)},onMouseLeave:e=>{Ee(!1),m?.(e)},className:Y({[`${C}-${a}`]:a,[`${C}-disabled`]:o,[`${C}-ellipsis`]:q,[`${C}-ellipsis-single-line`]:ve,[`${C}-ellipsis-multiple-line`]:ye,[`${C}-link`]:d===`a`},r),prefixCls:n,style:{...i,WebkitLineClamp:ye?ce:void 0},component:d,ref:I(c,b,t),direction:_,onClick:A.includes(`text`)?N:void 0,"aria-label":ke?.toString(),title:f,...w},v.createElement(xA,{enableMeasure:J&&!fe,text:s,rows:ce,width:xe,onEllipsis:Oe,expanded:oe,miscDeps:[z,oe,B,E,L,y].concat(ze(TA.map(t=>e[t])))},(t,n)=>CA(e,v.createElement(v.Fragment,null,t.length>0&&n&&!oe&&ke?v.createElement(`span`,{key:`show-content`,"aria-hidden":!0},t):t,Fe(n)))))))}),DA=v.forwardRef((e,t)=>{let{ellipsis:n,rel:r,children:i,navigate:a,...o}=e,s={...o,rel:r===void 0&&o.target===`_blank`?`noopener noreferrer`:r};return v.createElement(EA,{...s,ref:t,ellipsis:!!n,component:`a`},i)}),OA=v.forwardRef((e,t)=>{let{children:n,...r}=e;return v.createElement(EA,{ref:t,...r,component:`div`},n)}),kA=v.forwardRef((e,t)=>{let{ellipsis:n,children:r,...i}=e,a=v.useMemo(()=>sc(n)?ue(n,[`expandable`,`rows`]):n,[n]);return v.createElement(EA,{ref:t,...i,ellipsis:a,component:`span`},r)}),AA=[1,2,3,4,5],jA=v.forwardRef((e,t)=>{let{level:n=1,children:r,...i}=e,a=AA.includes(n)?`h${n}`:`h1`;return v.createElement(EA,{ref:t,...i,component:a},r)}),MA=rA;MA.Text=kA,MA.Link=DA,MA.Title=jA,MA.Paragraph=OA;var NA={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M908 640H804V488c0-4.4-3.6-8-8-8H548v-96h108c8.8 0 16-7.2 16-16V80c0-8.8-7.2-16-16-16H368c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h108v96H228c-4.4 0-8 3.6-8 8v152H116c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h288c8.8 0 16-7.2 16-16V656c0-8.8-7.2-16-16-16H292v-88h440v88H620c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h288c8.8 0 16-7.2 16-16V656c0-8.8-7.2-16-16-16zm-564 76v168H176V716h168zm84-408V140h168v168H428zm420 576H680V716h168v168z`}}]},name:`apartment`,theme:`outlined`};function PA(){return PA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},PA.apply(this,arguments)}var FA=v.forwardRef((e,t)=>v.createElement(So,PA({},e,{ref:t,icon:NA}))),IA={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M855 160.1l-189.2 23.5c-6.6.8-9.3 8.8-4.7 13.5l54.7 54.7-153.5 153.5a8.03 8.03 0 000 11.3l45.1 45.1c3.1 3.1 8.2 3.1 11.3 0l153.6-153.6 54.7 54.7a7.94 7.94 0 0013.5-4.7L863.9 169a7.9 7.9 0 00-8.9-8.9zM416.6 562.3a8.03 8.03 0 00-11.3 0L251.8 715.9l-54.7-54.7a7.94 7.94 0 00-13.5 4.7L160.1 855c-.6 5.2 3.7 9.5 8.9 8.9l189.2-23.5c6.6-.8 9.3-8.8 4.7-13.5l-54.7-54.7 153.6-153.6c3.1-3.1 3.1-8.2 0-11.3l-45.2-45z`}}]},name:`arrows-alt`,theme:`outlined`};function LA(){return LA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},LA.apply(this,arguments)}var RA=v.forwardRef((e,t)=>v.createElement(So,LA({},e,{ref:t,icon:IA}))),zA={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M464 512a48 48 0 1096 0 48 48 0 10-96 0zm200 0a48 48 0 1096 0 48 48 0 10-96 0zm-400 0a48 48 0 1096 0 48 48 0 10-96 0zm661.2-173.6c-22.6-53.7-55-101.9-96.3-143.3a444.35 444.35 0 00-143.3-96.3C630.6 75.7 572.2 64 512 64h-2c-60.6.3-119.3 12.3-174.5 35.9a445.35 445.35 0 00-142 96.5c-40.9 41.3-73 89.3-95.2 142.8-23 55.4-34.6 114.3-34.3 174.9A449.4 449.4 0 00112 714v152a46 46 0 0046 46h152.1A449.4 449.4 0 00510 960h2.1c59.9 0 118-11.6 172.7-34.3a444.48 444.48 0 00142.8-95.2c41.3-40.9 73.8-88.7 96.5-142 23.6-55.2 35.6-113.9 35.9-174.5.3-60.9-11.5-120-34.8-175.6zm-151.1 438C704 845.8 611 884 512 884h-1.7c-60.3-.3-120.2-15.3-173.1-43.5l-8.4-4.5H188V695.2l-4.5-8.4C155.3 633.9 140.3 574 140 513.7c-.4-99.7 37.7-193.3 107.6-263.8 69.8-70.5 163.1-109.5 262.8-109.9h1.7c50 0 98.5 9.7 144.2 28.9 44.6 18.7 84.6 45.6 119 80 34.3 34.3 61.3 74.4 80 119 19.4 46.2 29.1 95.2 28.9 145.8-.6 99.6-39.7 192.9-110.1 262.7z`}}]},name:`message`,theme:`outlined`};function BA(){return BA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},BA.apply(this,arguments)}var VA=v.forwardRef((e,t)=>v.createElement(So,BA({},e,{ref:t,icon:zA}))),HA={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`defs`,attrs:{},children:[{tag:`style`,attrs:{}}]},{tag:`path`,attrs:{d:`M640.6 429.8h257.1c7.9 0 14.3-6.4 14.3-14.3V158.3c0-7.9-6.4-14.3-14.3-14.3H640.6c-7.9 0-14.3 6.4-14.3 14.3v92.9H490.6c-3.9 0-7.1 3.2-7.1 7.1v221.5h-85.7v-96.5c0-7.9-6.4-14.3-14.3-14.3H126.3c-7.9 0-14.3 6.4-14.3 14.3v257.2c0 7.9 6.4 14.3 14.3 14.3h257.1c7.9 0 14.3-6.4 14.3-14.3V544h85.7v221.5c0 3.9 3.2 7.1 7.1 7.1h135.7v92.9c0 7.9 6.4 14.3 14.3 14.3h257.1c7.9 0 14.3-6.4 14.3-14.3v-257c0-7.9-6.4-14.3-14.3-14.3h-257c-7.9 0-14.3 6.4-14.3 14.3v100h-78.6v-393h78.6v100c0 7.9 6.4 14.3 14.3 14.3zm53.5-217.9h150V362h-150V211.9zM329.9 587h-150V437h150v150zm364.2 75.1h150v150.1h-150V662.1z`}}]},name:`partition`,theme:`outlined`};function UA(){return UA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},UA.apply(this,arguments)}var WA=v.forwardRef((e,t)=>v.createElement(So,UA({},e,{ref:t,icon:HA}))),GA={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M758.2 839.1C851.8 765.9 912 651.9 912 523.9 912 303 733.5 124.3 512.6 124 291.4 123.7 112 302.8 112 523.9c0 125.2 57.5 236.9 147.6 310.2 3.5 2.8 8.6 2.2 11.4-1.3l39.4-50.5c2.7-3.4 2.1-8.3-1.2-11.1-8.1-6.6-15.9-13.7-23.4-21.2a318.64 318.64 0 01-68.6-101.7C200.4 609 192 567.1 192 523.9s8.4-85.1 25.1-124.5c16.1-38.1 39.2-72.3 68.6-101.7 29.4-29.4 63.6-52.5 101.7-68.6C426.9 212.4 468.8 204 512 204s85.1 8.4 124.5 25.1c38.1 16.1 72.3 39.2 101.7 68.6 29.4 29.4 52.5 63.6 68.6 101.7 16.7 39.4 25.1 81.3 25.1 124.5s-8.4 85.1-25.1 124.5a318.64 318.64 0 01-68.6 101.7c-9.3 9.3-19.1 18-29.3 26L668.2 724a8 8 0 00-14.1 3l-39.6 162.2c-1.2 5 2.6 9.9 7.7 9.9l167 .8c6.7 0 10.5-7.7 6.3-12.9l-37.3-47.9z`}}]},name:`redo`,theme:`outlined`};function KA(){return KA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},KA.apply(this,arguments)}var qA=v.forwardRef((e,t)=>v.createElement(So,KA({},e,{ref:t,icon:GA}))),JA={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M881.7 187.4l-45.1-45.1a8.03 8.03 0 00-11.3 0L667.8 299.9l-54.7-54.7a7.94 7.94 0 00-13.5 4.7L576.1 439c-.6 5.2 3.7 9.5 8.9 8.9l189.2-23.5c6.6-.8 9.3-8.8 4.7-13.5l-54.7-54.7 157.6-157.6c3-3 3-8.1-.1-11.2zM439 576.1l-189.2 23.5c-6.6.8-9.3 8.9-4.7 13.5l54.7 54.7-157.5 157.5a8.03 8.03 0 000 11.3l45.1 45.1c3.1 3.1 8.2 3.1 11.3 0l157.6-157.6 54.7 54.7a7.94 7.94 0 0013.5-4.7L447.9 585a7.9 7.9 0 00-8.9-8.9z`}}]},name:`shrink`,theme:`outlined`};function YA(){return YA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},YA.apply(this,arguments)}var XA=v.forwardRef((e,t)=>v.createElement(So,YA({},e,{ref:t,icon:JA}))),ZA={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z`}}]},name:`unordered-list`,theme:`outlined`};function QA(){return QA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},QA.apply(this,arguments)}var $A=v.forwardRef((e,t)=>v.createElement(So,QA({},e,{ref:t,icon:ZA}))),ej={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M859.9 780H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM505.7 669a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V176c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8z`}}]},name:`vertical-align-bottom`,theme:`outlined`};function tj(){return tj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tj.apply(this,arguments)}var nj=v.forwardRef((e,t)=>v.createElement(So,tj({},e,{ref:t,icon:ej}))),rj={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M859.9 474H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zm-353.6-74.7c2.9 3.7 8.5 3.7 11.3 0l100.8-127.5c3.7-4.7.4-11.7-5.7-11.7H550V104c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v156h-62.8c-6 0-9.4 7-5.7 11.7l100.8 127.6zm11.4 225.4a7.14 7.14 0 00-11.3 0L405.6 752.3a7.23 7.23 0 005.7 11.7H474v156c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V764h62.8c6 0 9.4-7 5.7-11.7L517.7 624.7z`}}]},name:`vertical-align-middle`,theme:`outlined`};function ij(){return ij=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ij.apply(this,arguments)}var aj=v.forwardRef((e,t)=>v.createElement(So,ij({},e,{ref:t,icon:rj})));function oj(e){return e.anchor.type===`file`?0:e.anchor.lineNumber}function sj(e,t){return t.filter(t=>t.filePath===e&&t.status!==`resolved`).sort((e,t)=>oj(e)-oj(t)||e.createdAt.localeCompare(t.createdAt))[0]}function cj(e){return e.anchor.type===`diff-line`?`${e.anchor.side}:${e.anchor.lineNumber}`:null}function lj(e,t){return t===`old`?e.oldLines>0?e.oldStart+e.oldLines-1:e.oldStart-1:e.newLines>0?e.newStart+e.newLines-1:e.newStart-1}function uj(e,t){if(!t||e.hunks.length===0)return[];let n=[],r=0,i=0;e.hunks.forEach((t,a)=>{let o=Math.max(0,t.oldStart-r-1),s=Math.max(0,t.newStart-i-1),c=e.status===`added`?`new`:e.status===`deleted`?`old`:`both`,l=c===`old`?o:c===`new`?s:Math.max(o,s);l>0&&n.push({key:`${e.path}-gap-${a}`,mode:c,hiddenCount:l,oldStart:r+1,oldEnd:t.oldStart-1,newStart:i+1,newEnd:t.newStart-1,direction:`up`,position:a}),r=lj(t,`old`),i=lj(t,`new`)});let a=Math.max(0,t.oldTotalLines-r),o=Math.max(0,t.newTotalLines-i),s=e.status===`added`?`new`:e.status===`deleted`?`old`:`both`,c=s===`old`?a:s===`new`?o:Math.max(a,o);return c>0&&n.push({key:`${e.path}-gap-tail`,mode:s,hiddenCount:c,oldStart:r+1,oldEnd:t.oldTotalLines,newStart:i+1,newEnd:t.newTotalLines,direction:`down`,position:`tail`}),n}function dj(e,t,n){if(!e||n<=0)return[];let r=[],i=t.oldStart>0?t.oldStart:1,a=t.oldEnd>0?t.oldEnd:0,o=t.newStart>0?t.newStart:1,s=t.newEnd>0?t.newEnd:0,c=t.direction,l=c===`down`?i:Math.max(i,a-n+1),u=c===`down`?o:Math.max(o,s-n+1);for(let i=0;i<n;i+=1){let n=t.mode===`new`?void 0:l+i,a=t.mode===`old`?void 0:u+i,o=t.mode===`old`?e.oldLines[n?n-1:0]??``:t.mode===`new`?e.newLines[a?a-1:0]??``:e.oldLines[n?n-1:0]??e.newLines[a?a-1:0]??``;r.push({key:`${t.key}-${i}`,line:{type:`context`,content:o,oldLineNumber:n,newLineNumber:a}})}return r}function fj(e,t){let n=[];e.hunks.forEach((e,r)=>{let i=t.get(r);i&&n.push({type:`gap`,key:i.key,gap:i,nextHunk:e,nextIndex:r}),n.push({type:`hunk`,key:`${e.header}-${r}`,hunk:e,index:r})});let r=t.get(`tail`);return r&&n.push({type:`gap`,key:r.key,gap:r}),n}function pj(e){e.scrollTop=0}function mj(e,t){let n=e.getBoundingClientRect(),r=t.getBoundingClientRect();e.scrollTop+=r.top-n.top}function hj(e){return e===`add`?`+`:e===`remove`?`-`:``}function gj(e){let t=[],n=0;for(;n<e.lines.length;){let r=e.lines[n];if(r.type===`context`){t.push({key:`${e.header}-context-${n}`,oldCell:{lineNumber:r.oldLineNumber,content:r.content,type:`context`,side:`old`},newCell:{lineNumber:r.newLineNumber,content:r.content,type:`context`,side:`new`}}),n+=1;continue}if(r.type===`remove`){let r=[],i=[];for(;n<e.lines.length&&e.lines[n].type===`remove`;)r.push(e.lines[n]),n+=1;for(;n<e.lines.length&&e.lines[n].type===`add`;)i.push(e.lines[n]),n+=1;let a=Math.max(r.length,i.length);for(let o=0;o<a;o+=1){let a=r[o],s=i[o];t.push({key:`${e.header}-change-${n}-${o}`,oldCell:a?{lineNumber:a.oldLineNumber,content:a.content,type:`remove`,side:`old`}:{content:``,type:`empty`,side:`old`},newCell:s?{lineNumber:s.newLineNumber,content:s.content,type:`add`,side:`new`}:{content:``,type:`empty`,side:`new`}})}continue}t.push({key:`${e.header}-add-${n}`,oldCell:{content:``,type:`empty`,side:`old`},newCell:{lineNumber:r.newLineNumber,content:r.content,type:`add`,side:`new`}}),n+=1}return t}function _j(e,t,n){return e.find(e=>{if(e.mode===`new`&&t===`old`||e.mode===`old`&&t===`new`)return!1;let r=t===`old`?e.oldStart:e.newStart,i=t===`old`?e.oldEnd:e.newEnd;return n>=r&&n<=i})??null}function vj(e){let[t,n]=v.useState(null);return v.useEffect(()=>{let t=new AbortController,r=!1;n(null);async function i(){try{let i=await fetch(`/api/diff-file-contents?path=${encodeURIComponent(e)}`,{signal:t.signal});if(!i.ok)return;let a=await i.json();r||n(a)}catch{r||n(null)}}return i(),()=>{r=!0,t.abort()}},[e]),t}function yj({filePath:e,viewMode:t,threads:n,fileContents:r,gapDescriptors:i,expandedGapLines:a,setExpandedGapLines:o,scrollRef:s,autoScrollKeyRef:c}){v.useLayoutEffect(()=>{let a=s.current;if(!a)return;let l=`${e}:${t}`;if(c.current===l)return;let u=sj(e,n);if(!u||u.anchor.type===`file`){pj(a),c.current=l;return}let d=cj(u),f=d?a.querySelector(`[data-review-anchor="${CSS.escape(d)}"]`):null;if(!f){if(!r)return;let e=u.anchor.type===`diff-line`?u.anchor.side:null,t=u.anchor.type===`diff-line`?u.anchor.lineNumber:null;if(e&&t!=null){let n=_j(i,e,t);if(n){o(e=>({...e,[n.key]:n.hiddenCount}));return}}pj(a),c.current=l;return}mj(a,f),c.current=l},[c,a,r,e,i,s,o,n,t])}function bj({filePath:e,locateTarget:t,viewMode:n,fileContents:r,gapDescriptors:i,expandedGapLines:a,setExpandedGapLines:o,scrollRef:s}){v.useLayoutEffect(()=>{let n=s.current;if(!n||!t||t.anchor.filePath!==e)return;if(t.anchor.type===`file`){pj(n);return}if(t.anchor.type!==`diff-line`)return;let{side:a,lineNumber:c}=t.anchor,l=n.querySelector(`[data-review-anchor="${CSS.escape(`${a}:${c}`)}"]`);if(l){mj(n,l);return}if(!r)return;let u=_j(i,a,c);if(u){o(e=>({...e,[u.key]:u.hiddenCount}));return}let d=[...n.querySelectorAll(`[data-review-anchor]`)].map(e=>{let[t,n]=(e.dataset.reviewAnchor??``).split(`:`),r=Number(n);return t!==`old`&&t!==`new`||!Number.isFinite(r)?null:{node:e,side:t,lineNumber:r}}).filter(e=>!!e).filter(e=>e.side===a).sort((e,t)=>Math.abs(e.lineNumber-c)-Math.abs(t.lineNumber-c));d[0]?mj(n,d[0].node):pj(n)},[a,r,e,i,t,s,o,n])}var xj={composer:`_composer_hhgmh_1`},Sj=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),Q=o(((e,t)=>{t.exports=Sj()}))();function Cj({style:e,placeholder:t,onSubmit:n,submitLabel:r=`添加评论`,onCancel:i}){let[a,o]=v.useState(``),[s,c]=v.useState(!1);return(0,Q.jsxs)(`form`,{className:xj.composer,style:e,onSubmit:e=>{e.preventDefault(),a.trim()&&(c(!0),n(a.trim()).then(()=>o(``)).finally(()=>c(!1)))},children:[(0,Q.jsx)(OD.TextArea,{placeholder:t,value:a,onChange:e=>o(e.target.value),autoSize:{minRows:3,maxRows:8}}),(0,Q.jsxs)(qE,{gap:`small`,justify:`end`,children:[(0,Q.jsx)(WC,{htmlType:`submit`,loading:s,type:`primary`,size:`small`,children:r}),i?(0,Q.jsx)(WC,{onClick:i,size:`small`,children:`取消`}):null]})]})}var wj={popover:`_popover_j0rpl_1`};function Tj({onCancel:e,onSubmit:t}){return(0,Q.jsx)(`div`,{className:wj.popover,children:(0,Q.jsx)(Cj,{placeholder:`请输入行内评论...`,submitLabel:`评论`,onSubmit:t,onCancel:e})})}var Ej={submit:`待提交`,replied:`已回复`,resolved:`已解决`};function Dj(e,t){return e.filePath===t.path&&e.fileSnapshotHash===t.snapshotHash}function Oj(e){return e.status===`resolved`?`resolved`:kj(e)}function kj(e){return e.comments.some(e=>e.author===`agent`)?`replied`:`submit`}function Aj(e){return e.length>0&&e.every(e=>Oj(e)===`resolved`)?`resolved`:e.some(e=>kj(e)===`replied`)?`replied`:`submit`}var jj={inlineThread:`_inlineThread_1qms3_1`,inlineThreadFileLevel:`_inlineThreadFileLevel_1qms3_8`,inlineThreadHeader:`_inlineThreadHeader_1qms3_8`,inlineThreadBody:`_inlineThreadBody_1qms3_11`,inlineThreadActions:`_inlineThreadActions_1qms3_15`,inlineThreadBorderless:`_inlineThreadBorderless_1qms3_18`,inlineThreadSubmit:`_inlineThreadSubmit_1qms3_30`,inlineThreadReplied:`_inlineThreadReplied_1qms3_35`,inlineThreadResolved:`_inlineThreadResolved_1qms3_40`,inlineThreadSection:`_inlineThreadSection_1qms3_52`,threadTag:`_threadTag_1qms3_58`,threadTagResolved:`_threadTagResolved_1qms3_67`,threadTagSubmit:`_threadTagSubmit_1qms3_72`,threadTagReplied:`_threadTagReplied_1qms3_77`,inlineThreadAgentLabel:`_inlineThreadAgentLabel_1qms3_82`,inlineThreadCommentItem:`_inlineThreadCommentItem_1qms3_89`,inlineThreadCommentItemAgent:`_inlineThreadCommentItemAgent_1qms3_97`,inlineThreadCommentActions:`_inlineThreadCommentActions_1qms3_105`,threadIconBtn:`_threadIconBtn_1qms3_111`,commentRow:`_commentRow_1qms3_118`,commentContent:`_commentContent_1qms3_124`,inlineThreadComposer:`_inlineThreadComposer_1qms3_135`,inlineThreadEdit:`_inlineThreadEdit_1qms3_138`,inlineThreadEditActions:`_inlineThreadEditActions_1qms3_144`,threadActionBtn:`_threadActionBtn_1qms3_157`};function Mj({threads:e,onFocus:t,onPatch:n,onDeleteThread:r,onReply:i,onPatchComment:a,onCopy:o,showStatusTag:s=!0,variant:c=`default`}){let[l,u]=v.useState(null),[d,f]=v.useState(null),[p,m]=v.useState(``),h=e[0],g=Aj(e),_=Fj(e),y=_?Oj(_):g,b=y===`resolved`,x=_?.comments.at(-1),S=Ij(y,x?.author);if(!h)return null;let C=c===`fileLevel`?jj.inlineThreadFileLevel:c===`borderless`?jj.inlineThreadBorderless:``;return(0,Q.jsxs)(`div`,{className:[jj.inlineThread,Nj(g),C].filter(Boolean).join(` `),onClick:()=>t(h.id),children:[(0,Q.jsx)(`div`,{className:jj.inlineThreadHeader,children:s&&g!==`replied`?(0,Q.jsx)(jk,{className:`${jj.threadTag} ${Pj(g)}`,children:Ej[g]}):null}),e.map(e=>{let n=Oj(e);return(0,Q.jsx)(`div`,{className:jj.inlineThreadSection,onClick:n=>{n.stopPropagation(),t(e.id)},children:e.comments.map(t=>{let r=t.author===`agent`,i=g===`submit`&&n===`submit`&&!r;return(0,Q.jsx)(`div`,{className:`${jj.inlineThreadCommentItem} ${r?jj.inlineThreadCommentItemAgent:``}`,children:(0,Q.jsxs)(`div`,{className:jj.commentRow,children:[(0,Q.jsxs)(`div`,{className:jj.commentContent,children:[r?(0,Q.jsx)(MA.Text,{className:jj.inlineThreadAgentLabel,strong:!0,children:`Agent`}):null,d===t.id?(0,Q.jsxs)(`div`,{className:jj.inlineThreadEdit,children:[(0,Q.jsx)(OD.TextArea,{value:p,autoSize:{minRows:3,maxRows:8},onClick:e=>e.stopPropagation(),onChange:e=>m(e.target.value)}),(0,Q.jsxs)(`div`,{className:jj.inlineThreadEditActions,children:[(0,Q.jsx)(WC,{size:`small`,onClick:e=>{e.stopPropagation(),f(null),m(``)},children:`取消`}),(0,Q.jsx)(WC,{size:`small`,type:`primary`,onClick:async n=>{n.stopPropagation(),await a(e.id,t.id,p),f(null),m(``)},children:`保存`})]})]}):(0,Q.jsx)(MA.Paragraph,{className:jj.inlineThreadBody,children:t.body})]}),i&&d!==t.id?(0,Q.jsx)(`div`,{className:jj.inlineThreadCommentActions,children:(0,Q.jsx)(WC,{className:jj.threadIconBtn,type:`text`,icon:(0,Q.jsx)(Lk,{}),onClick:e=>{e.stopPropagation(),f(t.id),m(t.body)}})}):null]})},t.id)})},e.id)}),_&&l===_.id?(0,Q.jsx)(`div`,{className:jj.inlineThreadComposer,children:(0,Q.jsx)(Cj,{placeholder:`继续评论...`,submitLabel:`回复`,onCancel:()=>{u(null)},onSubmit:async e=>{await i(_.id,e),u(null)}})}):null,_?(0,Q.jsxs)(`div`,{className:jj.inlineThreadActions,children:[S?(0,Q.jsx)(WC,{type:`primary`,className:jj.threadActionBtn,icon:(0,Q.jsx)(oA,{}),onClick:e=>{e.stopPropagation(),o({type:`thread`,threadId:_.id})},children:`复制`}):null,y===`replied`?(0,Q.jsx)(WC,{className:jj.threadActionBtn,icon:(0,Q.jsx)(qA,{}),onClick:e=>{e.stopPropagation(),u(_.id)},children:`要求再改`}):null,y===`replied`?null:(0,Q.jsx)(ZO,{title:e.length>1?`删除这组评论?`:`删除这条评论线程?`,okText:`删除`,cancelText:`取消`,onConfirm:async()=>{for(let t of e)await r(t.id)},children:(0,Q.jsx)(WC,{className:jj.threadActionBtn,icon:(0,Q.jsx)(Pk,{}),danger:!0,onClick:e=>e.stopPropagation(),children:`删除`})}),b?(0,Q.jsx)(WC,{className:jj.threadActionBtn,icon:(0,Q.jsx)(ek,{}),onClick:e=>{e.stopPropagation(),n(_.id,`submit`)},children:`重新打开`}):null,y===`replied`?(0,Q.jsx)(WC,{className:jj.threadActionBtn,icon:(0,Q.jsx)(xb,{}),onClick:e=>{e.stopPropagation(),n(_.id,`resolved`)},children:`确认完成`}):null]}):null]})}function Nj(e){return e===`submit`?jj.inlineThreadSubmit:e===`replied`?jj.inlineThreadReplied:jj.inlineThreadResolved}function Pj(e){return e===`submit`?jj.threadTagSubmit:e===`replied`?jj.threadTagReplied:jj.threadTagResolved}function Fj(e){return e.find(e=>Oj(e)===`replied`)??e.find(e=>Oj(e)===`submit`)??e[0]}function Ij(e,t){return e===`submit`?!0:e===`replied`&&t===`user`}var Lj={inlineThreadStack:`_inlineThreadStack_1qhr1_1`};function Rj({threads:e,onLocateThread:t,onPatchThread:n,onDeleteThread:r,onReplyThread:i,onPatchComment:a,onCopyThread:o}){return e.length===0?null:(0,Q.jsx)(`div`,{className:Lj.inlineThreadStack,children:(0,Q.jsx)(Mj,{threads:e,onFocus:t,onPatch:n,onDeleteThread:r,onReply:i,onPatchComment:a,onCopy:o})})}var zj={diffRow:`_diffRow_res6f_1`,add:`_add_res6f_8`,remove:`_remove_res6f_11`,lineNo:`_lineNo_res6f_14`,lineSign:`_lineSign_res6f_24`,signAdd:`_signAdd_res6f_34`,signRemove:`_signRemove_res6f_37`,codeLine:`_codeLine_res6f_40`,commentTrigger:`_commentTrigger_res6f_49`};function Bj({filePath:e,line:t,index:n,hunkKey:r,preferredSide:i,activeLine:a,setActiveLine:o,threads:s,onCreate:c,onLocateThread:l,onPatchThread:u,onDeleteThread:d,onReplyThread:f,onPatchComment:p,onCopyThread:m}){let h=i??(t.type===`remove`?`old`:`new`),g=h===`old`?t.oldLineNumber:t.newLineNumber,_=`${r}-${h}-${g}-${n}`,v=s.filter(t=>t.anchor.type===`diff-line`&&t.anchor.filePath===e&&t.anchor.side===h&&t.anchor.lineNumber===g);return(0,Q.jsxs)(`div`,{className:t.type===`add`?`${zj.diffRow} ${zj.add}`:t.type===`remove`?`${zj.diffRow} ${zj.remove}`:zj.diffRow,"data-review-anchor":`${h}:${g}`,children:[(0,Q.jsx)(`button`,{className:zj.lineNo,onClick:()=>t.oldLineNumber&&o(_),children:t.oldLineNumber??``}),(0,Q.jsx)(`button`,{className:zj.lineNo,onClick:()=>t.newLineNumber&&o(_),children:t.newLineNumber??``}),(0,Q.jsx)(`span`,{className:t.type===`add`?`${zj.lineSign} ${zj.signAdd}`:t.type===`remove`?`${zj.lineSign} ${zj.signRemove}`:zj.lineSign,children:hj(t.type)}),(0,Q.jsx)(`pre`,{className:zj.codeLine,children:t.content||` `}),g&&v.length===0?(0,Q.jsx)(`button`,{className:zj.commentTrigger,type:`button`,"aria-label":`添加行评论`,onClick:()=>o(_),children:(0,Q.jsx)(VA,{})}):null,a===_&&g?(0,Q.jsx)(Tj,{onCancel:()=>o(null),onSubmit:async t=>{await c({type:`diff-line`,filePath:e,side:h,lineNumber:g},t),o(null)}}):null,(0,Q.jsx)(Rj,{threads:v,onLocateThread:l,onPatchThread:u,onDeleteThread:d,onReplyThread:f,onPatchComment:p,onCopyThread:m})]})}var Vj={splitCell:`_splitCell_1mqa3_1`,add:`_add_1mqa3_11`,remove:`_remove_1mqa3_14`,emptyCell:`_emptyCell_1mqa3_17`,lineNo:`_lineNo_1mqa3_20`,lineSign:`_lineSign_1mqa3_30`,signAdd:`_signAdd_1mqa3_40`,signRemove:`_signRemove_1mqa3_43`,codeLine:`_codeLine_1mqa3_46`,commentTrigger:`_commentTrigger_1mqa3_55`};function Hj({cell:e,rowKey:t,filePath:n,activeLine:r,setActiveLine:i,threads:a,onCreate:o,onLocateThread:s,onPatchThread:c,onDeleteThread:l,onReplyThread:u,onPatchComment:d,onCopyThread:f}){let p=e.lineNumber?a.filter(t=>t.anchor.type===`diff-line`&&t.anchor.filePath===n&&t.anchor.side===e.side&&t.anchor.lineNumber===e.lineNumber):[],m=`${t}-${e.side}-${e.lineNumber??`empty`}`;return(0,Q.jsxs)(`div`,{className:e.type===`add`?`${Vj.splitCell} ${Vj.add}`:e.type===`remove`?`${Vj.splitCell} ${Vj.remove}`:e.type===`empty`?`${Vj.splitCell} ${Vj.emptyCell}`:Vj.splitCell,"data-review-anchor":e.lineNumber?`${e.side}:${e.lineNumber}`:void 0,children:[(0,Q.jsx)(`button`,{className:Vj.lineNo,onClick:()=>e.lineNumber&&i(m),children:e.lineNumber??``}),(0,Q.jsx)(`span`,{className:e.type===`add`?`${Vj.lineSign} ${Vj.signAdd}`:e.type===`remove`?`${Vj.lineSign} ${Vj.signRemove}`:Vj.lineSign,children:hj(e.type)}),(0,Q.jsx)(`pre`,{className:Vj.codeLine,children:e.content||` `}),e.lineNumber&&p.length===0?(0,Q.jsx)(`button`,{className:Vj.commentTrigger,type:`button`,"aria-label":`添加行评论`,onClick:()=>i(m),children:(0,Q.jsx)(VA,{})}):null,r===m&&e.lineNumber?(0,Q.jsx)(Tj,{onCancel:()=>i(null),onSubmit:async t=>{await o({type:`diff-line`,filePath:n,side:e.side,lineNumber:e.lineNumber},t),i(null)}}):null,(0,Q.jsx)(Rj,{threads:p,onLocateThread:s,onPatchThread:c,onDeleteThread:l,onReplyThread:u,onPatchComment:d,onCopyThread:f})]})}var Uj={splitRow:`_splitRow_w4xv1_1`,hunkHeader:`_hunkHeader_w4xv1_5`,hunkHeaderRail:`_hunkHeaderRail_w4xv1_11`,hunkHeaderExpand:`_hunkHeaderExpand_w4xv1_20`,hunkHeaderBody:`_hunkHeaderBody_w4xv1_43`,shell:`_shell_w4xv1_50`,sidebar:`_sidebar_w4xv1_72`,threadRail:`_threadRail_w4xv1_73`,reviewPane:`_reviewPane_w4xv1_87`,brand:`_brand_w4xv1_95`,brandMark:`_brandMark_w4xv1_101`,brandCopy:`_brandCopy_w4xv1_112`,repoName:`_repoName_w4xv1_117`,productName:`_productName_w4xv1_127`,sideCard:`_sideCard_w4xv1_131`,threadRailHeader:`_threadRailHeader_w4xv1_140`,topToolbar:`_topToolbar_w4xv1_141`,threadRailTitle:`_threadRailTitle_w4xv1_149`,viewModeSwitcher:`_viewModeSwitcher_w4xv1_158`,reviewSurface:`_reviewSurface_w4xv1_164`,threadRailBody:`_threadRailBody_w4xv1_175`,emptyStateCard:`_emptyStateCard_w4xv1_180`};function Wj({headerText:e,position:t,previousGap:n,nextGap:r,getGapVisibleCount:i,getGapHiddenCount:a,onExpandGap:o,onExpandGapWithAnchor:s}){function c(){let e=n?i(n)<n.hiddenCount:!1,c=r?i(r)<r.hiddenCount:!1;if(t===`top`&&n&&e){let e=a(n),t=e<=20?`展开全部 ${e} 行隐藏上下文`:`向上展开 20 行隐藏上下文`;return(0,Q.jsx)(`button`,{className:Uj.hunkHeaderExpand,type:`button`,onClick:t=>{s(n,t.currentTarget.closest(`[data-hunk-header="true"]`),{direction:e<=20?void 0:`up`,expandAll:e<=20,alignHeaderToTop:!0})},"aria-label":t,children:(0,Q.jsx)(Dx,{})})}if(t===`middle`&&n&&e){let e=a(n);if(e<=20){let t=`展开全部 ${e} 行隐藏上下文`;return(0,Q.jsx)(`button`,{className:Uj.hunkHeaderExpand,type:`button`,onClick:e=>{s(n,e.currentTarget.closest(`[data-hunk-header="true"]`),{expandAll:!0,alignHeaderToTop:!0})},"aria-label":t,children:(0,Q.jsx)(aj,{})})}return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(`button`,{className:Uj.hunkHeaderExpand,type:`button`,onClick:()=>o(n,`down`),"aria-label":`向下展开 20 行隐藏上下文`,children:(0,Q.jsx)(nj,{})}),(0,Q.jsx)(`button`,{className:Uj.hunkHeaderExpand,type:`button`,onClick:e=>{s(n,e.currentTarget.closest(`[data-hunk-header="true"]`),{direction:`up`,alignHeaderToTop:!0})},"aria-label":`向上展开 20 行隐藏上下文`,children:(0,Q.jsx)(Dx,{})})]})}if(t===`bottom`&&r&&c){let e=a(r);if(e<=20){let t=`展开全部 ${e} 行隐藏上下文`;return(0,Q.jsx)(`button`,{className:Uj.hunkHeaderExpand,type:`button`,onClick:e=>{s(r,e.currentTarget.closest(`[data-hunk-header="true"]`),{expandAll:!0,alignHeaderToTop:!0})},"aria-label":t,children:(0,Q.jsx)(aj,{})})}return(0,Q.jsx)(`button`,{className:Uj.hunkHeaderExpand,type:`button`,onClick:e=>{s(r,e.currentTarget.closest(`[data-hunk-header="true"]`),{direction:`up`,alignHeaderToTop:!0})},"aria-label":`向上展开 20 行隐藏上下文`,children:(0,Q.jsx)(Dx,{})})}return null}return(0,Q.jsxs)(`div`,{className:Uj.hunkHeader,"data-hunk-header":`true`,children:[(0,Q.jsx)(`div`,{className:Uj.hunkHeaderRail,children:c()}),(0,Q.jsx)(`div`,{className:Uj.hunkHeaderBody,children:e})]})}function Gj({gap:e,filePath:t,viewMode:n,fileContents:r,activeLine:i,setActiveLine:a,threads:o,onCreate:s,onLocateThread:c,onPatchThread:l,onDeleteThread:u,onReplyThread:d,onPatchComment:f,onCopyThread:p,getGapDirection:m,getGapVisibleCount:h,onExpandGap:g,onExpandGapAll:_,leadingHunkHeader:y}){let b=Math.min(h(e),e.hiddenCount);e.hiddenCount-b;let x=m(e),S=dj(r,{...e,direction:x},b);return(0,Q.jsxs)(v.Fragment,{children:[y,n===`inline`?S.map(({key:n,line:r},m)=>(0,Q.jsx)(Bj,{filePath:t,line:r,index:m,hunkKey:n,preferredSide:e.mode===`old`?`old`:`new`,activeLine:i,setActiveLine:a,threads:o,onCreate:s,onLocateThread:c,onPatchThread:l,onDeleteThread:u,onReplyThread:d,onPatchComment:f,onCopyThread:p},`${n}-${m}`)):S.map(({key:e,line:n})=>(0,Q.jsxs)(`div`,{className:Uj.splitRow,children:[(0,Q.jsx)(Hj,{cell:n.oldLineNumber?{lineNumber:n.oldLineNumber,content:n.content,type:`context`,side:`old`}:{content:``,type:`empty`,side:`old`},rowKey:e,filePath:t,activeLine:i,setActiveLine:a,threads:o,onCreate:s,onLocateThread:c,onPatchThread:l,onDeleteThread:u,onReplyThread:d,onPatchComment:f,onCopyThread:p}),(0,Q.jsx)(Hj,{cell:n.newLineNumber?{lineNumber:n.newLineNumber,content:n.content,type:`context`,side:`new`}:{content:``,type:`empty`,side:`new`},rowKey:e,filePath:t,activeLine:i,setActiveLine:a,threads:o,onCreate:s,onLocateThread:c,onPatchThread:l,onDeleteThread:u,onReplyThread:d,onPatchComment:f,onCopyThread:p})]},e))]})}var Kj={diffCard:`_diffCard_b316o_1`,hunk:`_hunk_b316o_7`,splitTable:`_splitTable_b316o_14`,splitRow:`_splitRow_b316o_17`};function qj({file:e,threads:t,locateTarget:n,expandAllRequest:r,onExpandedContextChange:i,onCreate:a,onLocateThread:o,onPatchThread:s,onDeleteThread:c,onReplyThread:l,onPatchComment:u,onCopyThread:d,viewMode:f}){let[p,m]=v.useState(null),[h,g]=v.useState({}),[_,y]=v.useState({}),b=vj(e.path),x=v.useRef(null),S=v.useRef(``),C=v.useRef(``),w=v.useMemo(()=>uj(e,b),[e,b]),T=v.useMemo(()=>{let e=new Map;return w.forEach(t=>{e.set(t.position,t)}),e},[w]),E=v.useMemo(()=>fj(e,T),[e,T]),D=v.useMemo(()=>w.some(e=>Math.min(h[e.key]??0,e.hiddenCount)>0),[w,h]);v.useLayoutEffect(()=>{x.current&&pj(x.current),m(null),g({}),y({}),C.current=``},[e.path]),v.useEffect(()=>{if(!r||r.filePath!==e.path)return;let t=`${r.filePath}:${r.requestId}`;if(C.current!==t){if(C.current=t,D){g({}),y({});return}g(e=>{let t={...e};return w.forEach(e=>{t[e.key]=e.hiddenCount}),t})}},[r,e.path,w,D]),v.useEffect(()=>{i(e.path,D)},[e.path,D,i]),yj({filePath:e.path,viewMode:f,threads:t,fileContents:b,gapDescriptors:w,expandedGapLines:h,setExpandedGapLines:g,scrollRef:x,autoScrollKeyRef:S}),bj({filePath:e.path,locateTarget:n,viewMode:f,fileContents:b,gapDescriptors:w,expandedGapLines:h,setExpandedGapLines:g,scrollRef:x});let O={onLocateThread:o,onPatchThread:s,onDeleteThread:c,onReplyThread:l,onPatchComment:u,onCopyThread:d};function k(e){return Math.min(h[e.key]??0,e.hiddenCount)}function A(e){return _[e.key]??e.direction}function j(e,t,n){let r=x.current,i=n?.alignHeaderToTop??!1;n?.expandAll?N(e,n.direction):M(e,n?.direction),!(!i||!r||!t)&&window.requestAnimationFrame(()=>{let e=r.getBoundingClientRect().top,n=t.getBoundingClientRect().top;r.scrollTop+=n-e})}function M(e,t){t&&y(n=>({...n,[e.key]:t})),g(t=>{let n=Math.min(t[e.key]??0,e.hiddenCount),r=e.hiddenCount-n,i=Math.min(20,r||e.hiddenCount);return{...t,[e.key]:Math.min(e.hiddenCount,n+i)}})}function N(e,t){t&&y(n=>({...n,[e.key]:t})),g(t=>({...t,[e.key]:e.hiddenCount}))}function P(e){return Math.max(0,e.hiddenCount-k(e))}function F(e){let t=T.get(e);return t?P(t)>0:!1}function I(e){let t=T.get(e);return t?k(t)>0&&P(t)>0&&A(t)===`up`:!1}function L(e,t){let n=T.get(t);if(!n)return e.header;let r=k(n),i=P(n);return r<=0?`${e.header} · 已隐藏 ${i} 行上下文`:`${e.header} · 已展开 ${r}/${n.hiddenCount} 行上下文`}function R(t,n){let r=T.get(n),i=n===e.hunks.length-1?T.get(`tail`):T.get(n+1),a=n===0?`top`:`middle`;return(0,Q.jsx)(Wj,{headerText:L(t,n),position:a,previousGap:r,nextGap:i,getGapVisibleCount:k,getGapHiddenCount:P,onExpandGap:M,onExpandGapWithAnchor:j})}return(0,Q.jsx)(`div`,{className:Kj.diffCard,ref:x,children:E.map(n=>n.type===`gap`?(0,Q.jsx)(Gj,{gap:n.gap,filePath:e.path,viewMode:f,fileContents:b,activeLine:p,setActiveLine:m,threads:t,onCreate:a,onLocateThread:o,onPatchThread:s,onDeleteThread:c,onReplyThread:l,onPatchComment:u,onCopyThread:d,getGapDirection:A,getGapVisibleCount:k,onExpandGap:M,onExpandGapAll:N,leadingHunkHeader:n.nextHunk&&n.nextIndex!=null&&I(n.nextIndex)?R(n.nextHunk,n.nextIndex):null},n.key):(0,Q.jsx)(`div`,{className:Kj.hunk,children:(()=>{let r=F(n.index),i=I(n.index);return(0,Q.jsxs)(Q.Fragment,{children:[r&&!i?R(n.hunk,n.index):null,f===`inline`?n.hunk.lines.map((r,i)=>(0,Q.jsx)(Bj,{filePath:e.path,line:r,index:i,hunkKey:n.key,activeLine:p,setActiveLine:m,threads:t,onCreate:a,...O},`${n.key}-${i}`)):(0,Q.jsx)(`div`,{className:Kj.splitTable,children:gj(n.hunk).map(n=>(0,Q.jsxs)(`div`,{className:Kj.splitRow,children:[(0,Q.jsx)(Hj,{cell:n.oldCell,rowKey:n.key,filePath:e.path,activeLine:p,setActiveLine:m,threads:t,onCreate:a,...O}),(0,Q.jsx)(Hj,{cell:n.newCell,rowKey:n.key,filePath:e.path,activeLine:p,setActiveLine:m,threads:t,onCreate:a,...O})]},n.key))})]})})()},n.key))})}var Jj={fileRailHeader:`_fileRailHeader_wfmc7_1`,fileRailModeSwitcher:`_fileRailModeSwitcher_wfmc7_8`,fileList:`_fileList_wfmc7_15`,fileItem:`_fileItem_wfmc7_21`,fileItemActive:`_fileItemActive_wfmc7_31`,lineItemActive:`_lineItemActive_wfmc7_35`,fileTree:`_fileTree_wfmc7_39`,fileTreeDirectory:`_fileTreeDirectory_wfmc7_42`,fileTreeChevron:`_fileTreeChevron_wfmc7_59`,fileTreeFolderIcon:`_fileTreeFolderIcon_wfmc7_65`,fileIcon:`_fileIcon_wfmc7_70`,fileTreeDirectoryName:`_fileTreeDirectoryName_wfmc7_73`,fileMeta:`_fileMeta_wfmc7_81`,fileName:`_fileName_wfmc7_91`,fileStats:`_fileStats_wfmc7_100`,fileStatAdd:`_fileStatAdd_wfmc7_103`,fileStatDelete:`_fileStatDelete_wfmc7_107`,fileThreadCount:`_fileThreadCount_wfmc7_111`},Yj=36,Xj=18,Zj=18;function Qj(e,t,n){if(e.length<=t)return e;let r=Math.min(n,t-4),i=t-r-3;return`${e.slice(0,i)}...${e.slice(-r)}`}function $j(e){let t={name:``,path:``,isDirectory:!0,children:[]};e.forEach(e=>{let n=e.path.split(`/`).filter(Boolean),r=t;n.forEach((t,i)=>{let a=i===n.length-1,o=n.slice(0,i+1).join(`/`);r.children??=[];let s=r.children.find(e=>e.name===t);s||(s={name:t,path:o,isDirectory:!a,children:a?void 0:[],file:a?e:void 0},r.children.push(s)),r=s})});let n=e=>{if(!e.isDirectory||!e.children)return e;let t=e.children.map(n);if(e.name&&t.length===1&&t[0]?.isDirectory&&t[0].children){let n=t[0];return{...e,name:`${e.name}/${n.name}`,path:n.path,children:n.children}}return{...e,children:t}};return n(t)}function eM(e){return!e.isDirectory||!e.children?[]:[...e.path?[e.path]:[],...e.children.flatMap(e=>eM(e))]}function tM(e,t){return e.file?t.get(e.file.path)??0:e.children?.reduce((e,n)=>e+tM(n,t),0)??0}function nM({files:e,threads:t,selectedPath:n,onSelectFile:r}){let[i,a]=v.useState(`list`),[o,s]=v.useState(()=>new Set),c=v.useMemo(()=>$j(e),[e]),l=v.useMemo(()=>{let n=new Map;return e.forEach(e=>{n.set(e.path,t.filter(t=>Dj(t,e)&&t.status!==`resolved`).length)}),n},[e,t]);v.useEffect(()=>{s(new Set(eM(c)))},[c]);function u(e){s(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})}function d(e,t=e.path,i=!1){let a=e.path===n,o=l.get(e.path)??0,s=[Jj.fileItem,a&&i?Jj.fileItemActive:``,a&&!i?Jj.lineItemActive:``].filter(Boolean).join(` `);return(0,Q.jsx)(UO.Item,{className:s,onClick:()=>r(e.path),children:(0,Q.jsxs)(`div`,{className:Jj.fileMeta,children:[i?(0,Q.jsx)(fk,{className:Jj.fileIcon}):null,(0,Q.jsx)(gx,{title:i?void 0:e.path,children:(0,Q.jsx)(MA.Text,{strong:!0,className:Jj.fileName,title:e.path,children:i?t:Qj(e.path,Yj,Xj)})}),(0,Q.jsxs)(MA.Text,{className:Jj.fileStats,type:`secondary`,children:[(0,Q.jsxs)(`span`,{className:Jj.fileStatAdd,children:[`+`,e.additions]}),` / `,(0,Q.jsxs)(`span`,{className:Jj.fileStatDelete,children:[`-`,e.deletions]})]}),o>0?(0,Q.jsx)(jk,{className:Jj.fileThreadCount,icon:(0,Q.jsx)(VA,{}),children:o}):null]})})}function f(e,t=0){if(e.file)return(0,Q.jsx)(`div`,{style:{paddingLeft:t*Zj},children:d(e.file,e.name,!0)},e.file.path);if(!e.children?.length)return null;if(!e.path)return e.children.map(e=>f(e,t));let n=o.has(e.path),r=tM(e,l);return(0,Q.jsxs)(`div`,{children:[(0,Q.jsxs)(`button`,{type:`button`,className:Jj.fileTreeDirectory,style:{paddingLeft:t*Zj+8},onClick:()=>u(e.path),children:[n?(0,Q.jsx)(wb,{className:Jj.fileTreeChevron}):(0,Q.jsx)(Kf,{className:Jj.fileTreeChevron}),n?(0,Q.jsx)(hk,{className:Jj.fileTreeFolderIcon}):(0,Q.jsx)(vk,{className:Jj.fileTreeFolderIcon}),(0,Q.jsx)(MA.Text,{strong:!0,className:Jj.fileTreeDirectoryName,title:e.path,children:e.name}),r>0?(0,Q.jsx)(jk,{className:Jj.fileThreadCount,icon:(0,Q.jsx)(VA,{}),children:r}):null]}),n?e.children.map(e=>f(e,t+1)):null]},e.path)}return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsxs)(`div`,{className:Jj.fileRailHeader,children:[(0,Q.jsx)(MA.Text,{strong:!0,children:`文件列表`}),(0,Q.jsx)(oE,{className:Jj.fileRailModeSwitcher,size:`small`,options:[{value:`list`,icon:(0,Q.jsx)($A,{})},{value:`tree`,icon:(0,Q.jsx)(FA,{})}],value:i,onChange:e=>a(e)})]}),i===`list`?(0,Q.jsx)(UO,{className:Jj.fileList,dataSource:e,renderItem:e=>d(e)}):(0,Q.jsx)(`div`,{className:`${Jj.fileList} ${Jj.fileTree}`,role:`tree`,children:f(c)})]})}var rM={fileHeader:`_fileHeader_1jgg4_1`,headerTop:`_headerTop_1jgg4_9`,filePathBlock:`_filePathBlock_1jgg4_15`,filePathText:`_filePathText_1jgg4_21`,fileExpandBtn:`_fileExpandBtn_1jgg4_25`,headerActions:`_headerActions_1jgg4_36`,headerAction:`_headerAction_1jgg4_36`,threadCount:`_threadCount_1jgg4_48`,fileLevelInlineThreads:`_fileLevelInlineThreads_1jgg4_51`};function iM({file:e,threads:t,showToggleAllLines:n,hasExpandedContext:r,onCreate:i,onCopy:a,onToggleAllLines:o,onLocateThread:s,onPatchThread:c,onDeleteThread:l,onReplyThread:u,onPatchComment:d,onCopyThread:f}){let[p,m]=v.useState(!1),h=r?`隐藏当前文件未改动行`:`展开当前文件所有未改动行`,g=r?`隐藏当前文件未改动行`:`展开当前文件所有未改动行`,_=t.filter(t=>t.filePath===e.path&&t.status!==`resolved`),y=t.filter(t=>t.filePath===e.path&&t.anchor.type===`file`);return(0,Q.jsxs)(RT,{className:rM.fileHeader,children:[(0,Q.jsxs)(`div`,{className:rM.headerTop,children:[(0,Q.jsxs)(`div`,{className:rM.filePathBlock,children:[n?(0,Q.jsx)(gx,{title:h,children:(0,Q.jsx)(WC,{className:rM.fileExpandBtn,type:`text`,icon:r?(0,Q.jsx)(XA,{}):(0,Q.jsx)(RA,{}),"aria-label":g,onClick:()=>o(e.path)})}):null,(0,Q.jsx)(MA.Text,{strong:!0,className:rM.filePathText,children:e.path})]}),(0,Q.jsxs)(`div`,{className:rM.headerActions,children:[(0,Q.jsx)(WC,{disabled:_.length===0,type:`primary`,className:rM.headerAction,icon:(0,Q.jsx)(oA,{}),onClick:()=>void a({type:`file-unresolved`,filePath:e.path}),children:`批量提交当前文件的review`}),(0,Q.jsx)(WC,{className:rM.headerAction,icon:(0,Q.jsx)(VA,{}),type:p?`primary`:`default`,onClick:()=>m(e=>!e),children:`文件级评论`})]})]}),p?(0,Q.jsx)(Cj,{style:{marginTop:16},placeholder:`请输入文件级审查评论...`,onSubmit:async t=>{await i({type:`file`,filePath:e.path},t),m(!1)},onCancel:()=>m(!1)}):null,_.length>0?(0,Q.jsxs)(jk,{className:rM.threadCount,color:`gold`,children:[_.length,` 个评论线程`]}):null,y.length>0?(0,Q.jsx)(`div`,{className:rM.fileLevelInlineThreads,children:(0,Q.jsx)(Mj,{threads:y,variant:`fileLevel`,onFocus:s,onPatch:c,onDeleteThread:l,onReply:u,onPatchComment:d,onCopy:f})}):null]})}function aM(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}var oM=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,sM=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,cM={};function lM(e,t){return((t||cM).jsx?sM:oM).test(e)}var uM=/[ \t\n\f\r]/g;function dM(e){return typeof e==`object`?e.type===`text`?fM(e.value):!1:fM(e)}function fM(e){return e.replace(uM,``)===``}var pM=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};pM.prototype.normal={},pM.prototype.property={},pM.prototype.space=void 0;function mM(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new pM(n,r,t)}function hM(e){return e.toLowerCase()}var gM=class{constructor(e,t){this.attribute=t,this.property=e}};gM.prototype.attribute=``,gM.prototype.booleanish=!1,gM.prototype.boolean=!1,gM.prototype.commaOrSpaceSeparated=!1,gM.prototype.commaSeparated=!1,gM.prototype.defined=!1,gM.prototype.mustUseProperty=!1,gM.prototype.number=!1,gM.prototype.overloadedBoolean=!1,gM.prototype.property=``,gM.prototype.spaceSeparated=!1,gM.prototype.space=void 0;var _M=s({boolean:()=>yM,booleanish:()=>bM,commaOrSpaceSeparated:()=>wM,commaSeparated:()=>CM,number:()=>$,overloadedBoolean:()=>xM,spaceSeparated:()=>SM}),vM=0,yM=TM(),bM=TM(),xM=TM(),$=TM(),SM=TM(),CM=TM(),wM=TM();function TM(){return 2**++vM}var EM=Object.keys(_M),DM=class extends gM{constructor(e,t,n,r){let i=-1;if(super(e,t),OM(this,`space`,r),typeof n==`number`)for(;++i<EM.length;){let e=EM[i];OM(this,EM[i],(n&_M[e])===_M[e])}}};DM.prototype.defined=!0;function OM(e,t,n){n&&(e[t]=n)}function kM(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new DM(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[hM(r)]=r,n[hM(a.attribute)]=r}return new pM(t,n,e.space)}var AM=kM({properties:{ariaActiveDescendant:null,ariaAtomic:bM,ariaAutoComplete:null,ariaBusy:bM,ariaChecked:bM,ariaColCount:$,ariaColIndex:$,ariaColSpan:$,ariaControls:SM,ariaCurrent:null,ariaDescribedBy:SM,ariaDetails:null,ariaDisabled:bM,ariaDropEffect:SM,ariaErrorMessage:null,ariaExpanded:bM,ariaFlowTo:SM,ariaGrabbed:bM,ariaHasPopup:null,ariaHidden:bM,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:SM,ariaLevel:$,ariaLive:null,ariaModal:bM,ariaMultiLine:bM,ariaMultiSelectable:bM,ariaOrientation:null,ariaOwns:SM,ariaPlaceholder:null,ariaPosInSet:$,ariaPressed:bM,ariaReadOnly:bM,ariaRelevant:null,ariaRequired:bM,ariaRoleDescription:SM,ariaRowCount:$,ariaRowIndex:$,ariaRowSpan:$,ariaSelected:bM,ariaSetSize:$,ariaSort:null,ariaValueMax:$,ariaValueMin:$,ariaValueNow:$,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function jM(e,t){return t in e?e[t]:t}function MM(e,t){return jM(e,t.toLowerCase())}var NM=kM({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:CM,acceptCharset:SM,accessKey:SM,action:null,allow:null,allowFullScreen:yM,allowPaymentRequest:yM,allowUserMedia:yM,alt:null,as:null,async:yM,autoCapitalize:null,autoComplete:SM,autoFocus:yM,autoPlay:yM,blocking:SM,capture:null,charSet:null,checked:yM,cite:null,className:SM,cols:$,colSpan:null,content:null,contentEditable:bM,controls:yM,controlsList:SM,coords:$|CM,crossOrigin:null,data:null,dateTime:null,decoding:null,default:yM,defer:yM,dir:null,dirName:null,disabled:yM,download:xM,draggable:bM,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:yM,formTarget:null,headers:SM,height:$,hidden:xM,high:$,href:null,hrefLang:null,htmlFor:SM,httpEquiv:SM,id:null,imageSizes:null,imageSrcSet:null,inert:yM,inputMode:null,integrity:null,is:null,isMap:yM,itemId:null,itemProp:SM,itemRef:SM,itemScope:yM,itemType:SM,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:yM,low:$,manifest:null,max:null,maxLength:$,media:null,method:null,min:null,minLength:$,multiple:yM,muted:yM,name:null,nonce:null,noModule:yM,noValidate:yM,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:yM,optimum:$,pattern:null,ping:SM,placeholder:null,playsInline:yM,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:yM,referrerPolicy:null,rel:SM,required:yM,reversed:yM,rows:$,rowSpan:$,sandbox:SM,scope:null,scoped:yM,seamless:yM,selected:yM,shadowRootClonable:yM,shadowRootDelegatesFocus:yM,shadowRootMode:null,shape:null,size:$,sizes:null,slot:null,span:$,spellCheck:bM,src:null,srcDoc:null,srcLang:null,srcSet:null,start:$,step:null,style:null,tabIndex:$,target:null,title:null,translate:null,type:null,typeMustMatch:yM,useMap:null,value:bM,width:$,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:SM,axis:null,background:null,bgColor:null,border:$,borderColor:null,bottomMargin:$,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:yM,declare:yM,event:null,face:null,frame:null,frameBorder:null,hSpace:$,leftMargin:$,link:null,longDesc:null,lowSrc:null,marginHeight:$,marginWidth:$,noResize:yM,noHref:yM,noShade:yM,noWrap:yM,object:null,profile:null,prompt:null,rev:null,rightMargin:$,rules:null,scheme:null,scrolling:bM,standby:null,summary:null,text:null,topMargin:$,valueType:null,version:null,vAlign:null,vLink:null,vSpace:$,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:yM,disableRemotePlayback:yM,prefix:null,property:null,results:$,security:null,unselectable:null},space:`html`,transform:MM}),PM=kM({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:wM,accentHeight:$,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:$,amplitude:$,arabicForm:null,ascent:$,attributeName:null,attributeType:null,azimuth:$,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:$,by:null,calcMode:null,capHeight:$,className:SM,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:$,diffuseConstant:$,direction:null,display:null,dur:null,divisor:$,dominantBaseline:null,download:yM,dx:null,dy:null,edgeMode:null,editable:null,elevation:$,enableBackground:null,end:null,event:null,exponent:$,externalResourcesRequired:null,fill:null,fillOpacity:$,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:CM,g2:CM,glyphName:CM,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:$,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:$,horizOriginX:$,horizOriginY:$,id:null,ideographic:$,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:$,k:$,k1:$,k2:$,k3:$,k4:$,kernelMatrix:wM,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:$,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:$,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:$,overlineThickness:$,paintOrder:null,panose1:null,path:null,pathLength:$,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:SM,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:$,pointsAtY:$,pointsAtZ:$,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:wM,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:wM,rev:wM,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:wM,requiredFeatures:wM,requiredFonts:wM,requiredFormats:wM,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:$,specularExponent:$,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:$,strikethroughThickness:$,string:null,stroke:null,strokeDashArray:wM,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:$,strokeOpacity:$,strokeWidth:null,style:null,surfaceScale:$,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:wM,tabIndex:$,tableValues:null,target:null,targetX:$,targetY:$,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:wM,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:$,underlineThickness:$,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:$,values:null,vAlphabetic:$,vMathematical:$,vectorEffect:null,vHanging:$,vIdeographic:$,version:null,vertAdvY:$,vertOriginX:$,vertOriginY:$,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:$,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:jM}),FM=kM({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()}}),IM=kM({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:MM}),LM=kM({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),RM={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`},zM=/[A-Z]/g,BM=/-[a-z]/g,VM=/^data[-\w.:]+$/i;function HM(e,t){let n=hM(t),r=t,i=gM;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&VM.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(BM,WM);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!BM.test(e)){let n=e.replace(zM,UM);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=DM}return new i(r,t)}function UM(e){return`-`+e.toLowerCase()}function WM(e){return e.charAt(1).toUpperCase()}var GM=mM([AM,NM,FM,IM,LM],`html`),KM=mM([AM,PM,FM,IM,LM],`svg`);function qM(e){return e.join(` `).trim()}var JM=o(((e,t)=>{var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,l=/^\s+|\s+$/g,u=`
|
|
259
|
+
`,d=`/`,f=`*`,p=``,m=`comment`,h=`declaration`;function g(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];t||={};var l=1,g=1;function v(e){var t=e.match(r);t&&(l+=t.length);var n=e.lastIndexOf(u);g=~n?e.length-n:g+e.length}function y(){var e={line:l,column:g};return function(t){return t.position=new b(e),C(),t}}function b(e){this.start=e,this.end={line:l,column:g},this.source=t.source}b.prototype.content=e;function x(n){var r=Error(t.source+`:`+l+`:`+g+`: `+n);if(r.reason=n,r.filename=t.source,r.line=l,r.column=g,r.source=e,!t.silent)throw r}function S(t){var n=t.exec(e);if(n){var r=n[0];return v(r),e=e.slice(r.length),n}}function C(){S(i)}function w(e){var t;for(e||=[];t=T();)t!==!1&&e.push(t);return e}function T(){var t=y();if(!(d!=e.charAt(0)||f!=e.charAt(1))){for(var n=2;p!=e.charAt(n)&&(f!=e.charAt(n)||d!=e.charAt(n+1));)++n;if(n+=2,p===e.charAt(n-1))return x(`End of comment missing`);var r=e.slice(2,n-2);return g+=2,v(r),e=e.slice(n),g+=2,t({type:m,comment:r})}}function E(){var e=y(),t=S(a);if(t){if(T(),!S(o))return x(`property missing ':'`);var r=S(s),i=e({type:h,property:_(t[0].replace(n,p)),value:r?_(r[0].replace(n,p)):p});return S(c),i}}function D(){var e=[];w(e);for(var t;t=E();)t!==!1&&(e.push(t),w(e));return e}return C(),D()}function _(e){return e?e.replace(l,p):p}t.exports=g})),YM=o((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.default=r;var n=t(JM());function r(e,t){let r=null;if(!e||typeof e!=`string`)return r;let i=(0,n.default)(e),a=typeof t==`function`;return i.forEach(e=>{if(e.type!==`declaration`)return;let{property:n,value:i}=e;a?t(n,i,e):i&&(r||={},r[n]=i)}),r}})),XM=o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,o=function(e){return!e||r.test(e)||t.test(e)},s=function(e,t){return t.toUpperCase()},c=function(e,t){return`${t}-`};e.camelCase=function(e,t){return t===void 0&&(t={}),o(e)?e:(e=e.toLowerCase(),e=t.reactCompat?e.replace(a,c):e.replace(i,c),e.replace(n,s))}})),ZM=o(((e,t)=>{var n=(e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(YM()),r=XM();function i(e,t){var i={};return!e||typeof e!=`string`||(0,n.default)(e,function(e,n){e&&n&&(i[(0,r.camelCase)(e,t)]=n)}),i}i.default=i,t.exports=i})),QM=eN(`end`),$M=eN(`start`);function eN(e){return t;function t(t){let n=t&&t.position&&t.position[e]||{};if(typeof n.line==`number`&&n.line>0&&typeof n.column==`number`&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset==`number`&&n.offset>-1?n.offset:void 0}}}function tN(e){let t=$M(e),n=QM(e);if(t&&n)return{start:t,end:n}}function nN(e){return!e||typeof e!=`object`?``:`position`in e||`type`in e?iN(e.position):`start`in e||`end`in e?iN(e):`line`in e||`column`in e?rN(e):``}function rN(e){return aN(e&&e.line)+`:`+aN(e&&e.column)}function iN(e){return rN(e&&e.start)+`-`+rN(e&&e.end)}function aN(e){return e&&typeof e==`number`?e:1}var oN=class extends Error{constructor(e,t,n){super(),typeof t==`string`&&(n=t,t=void 0);let r=``,i={},a=!1;if(t&&(i=`line`in t&&`column`in t||`start`in t&&`end`in t?{place:t}:`type`in t?{ancestors:[t],place:t.position}:{...t}),typeof e==`string`?r=e:!i.cause&&e&&(a=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&typeof n==`string`){let e=n.indexOf(`:`);e===-1?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let o=i.place&&`start`in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file=``,this.message=r,this.line=o?o.line:void 0,this.name=nN(i.place)||`1:1`,this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=a&&i.cause&&typeof i.cause.stack==`string`?i.cause.stack:``,this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};oN.prototype.file=``,oN.prototype.name=``,oN.prototype.reason=``,oN.prototype.message=``,oN.prototype.stack=``,oN.prototype.column=void 0,oN.prototype.line=void 0,oN.prototype.ancestors=void 0,oN.prototype.cause=void 0,oN.prototype.fatal=void 0,oN.prototype.place=void 0,oN.prototype.ruleId=void 0,oN.prototype.source=void 0;var sN=l(ZM(),1),cN={}.hasOwnProperty,lN=new Map,uN=/[A-Z]/g,dN=new Set([`table`,`tbody`,`thead`,`tfoot`,`tr`]),fN=new Set([`td`,`th`]),pN=`https://github.com/syntax-tree/hast-util-to-jsx-runtime`;function mN(e,t){if(!t||t.Fragment===void 0)throw TypeError("Expected `Fragment` in options");let n=t.filePath||void 0,r;if(t.development){if(typeof t.jsxDEV!=`function`)throw TypeError("Expected `jsxDEV` in options when `development: true`");r=TN(n,t.jsxDEV)}else{if(typeof t.jsx!=`function`)throw TypeError("Expected `jsx` in production options");if(typeof t.jsxs!=`function`)throw TypeError("Expected `jsxs` in production options");r=wN(n,t.jsx,t.jsxs)}let 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`?KM:GM,stylePropertyNameCase:t.stylePropertyNameCase||`dom`,tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=hN(i,e,void 0);return a&&typeof a!=`string`?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function hN(e,t,n){if(t.type===`element`)return gN(e,t,n);if(t.type===`mdxFlowExpression`||t.type===`mdxTextExpression`)return _N(e,t);if(t.type===`mdxJsxFlowElement`||t.type===`mdxJsxTextElement`)return yN(e,t,n);if(t.type===`mdxjsEsm`)return vN(e,t);if(t.type===`root`)return bN(e,t,n);if(t.type===`text`)return xN(e,t)}function gN(e,t,n){let r=e.schema,i=r;t.tagName.toLowerCase()===`svg`&&r.space===`html`&&(i=KM,e.schema=i),e.ancestors.push(t);let a=jN(e,t.tagName,!1),o=EN(e,t),s=ON(e,t);return dN.has(t.tagName)&&(s=s.filter(function(e){return typeof e==`string`?!dM(e):!0})),SN(e,o,a,t),CN(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function _N(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}MN(e,t.position)}function vN(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);MN(e,t.position)}function yN(e,t,n){let r=e.schema,i=r;t.name===`svg`&&r.space===`html`&&(i=KM,e.schema=i),e.ancestors.push(t);let a=t.name===null?e.Fragment:jN(e,t.name,!0),o=DN(e,t),s=ON(e,t);return SN(e,o,a,t),CN(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function bN(e,t,n){let r={};return CN(r,ON(e,t)),e.create(t,e.Fragment,r,n)}function xN(e,t){return t.value}function SN(e,t,n,r){typeof n!=`string`&&n!==e.Fragment&&e.passNode&&(t.node=r)}function CN(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function wN(e,t,n){return r;function r(e,r,i,a){let o=Array.isArray(i.children)?n:t;return a?o(r,i,a):o(r,i)}}function TN(e,t){return n;function n(n,r,i,a){let o=Array.isArray(i.children),s=$M(n);return t(r,i,a,o,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function EN(e,t){let n={},r,i;for(i in t.properties)if(i!==`children`&&cN.call(t.properties,i)){let a=kN(e,i,t.properties[i]);if(a){let[i,o]=a;e.tableCellAlignToStyle&&i===`align`&&typeof o==`string`&&fN.has(t.tagName)?r=o:n[i]=o}}if(r){let t=n.style||={};t[e.stylePropertyNameCase===`css`?`text-align`:`textAlign`]=r}return n}function DN(e,t){let n={};for(let r of t.attributes)if(r.type===`mdxJsxExpressionAttribute`)if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];t.type;let i=t.expression;i.type;let a=i.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else MN(e,t.position);else{let i=r.name,a;if(r.value&&typeof r.value==`object`)if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];t.type,a=e.evaluater.evaluateExpression(t.expression)}else MN(e,t.position);else a=r.value===null?!0:r.value;n[i]=a}return n}function ON(e,t){let n=[],r=-1,i=e.passKeys?new Map:lN;for(;++r<t.children.length;){let a=t.children[r],o;if(e.passKeys){let e=a.type===`element`?a.tagName:a.type===`mdxJsxFlowElement`||a.type===`mdxJsxTextElement`?a.name:void 0;if(e){let t=i.get(e)||0;o=e+`-`+t,i.set(e,t+1)}}let s=hN(e,a,o);s!==void 0&&n.push(s)}return n}function kN(e,t,n){let r=HM(e.schema,t);if(!(n==null||typeof n==`number`&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?aM(n):qM(n)),r.property===`style`){let t=typeof n==`object`?n:AN(e,String(n));return e.stylePropertyNameCase===`css`&&(t=NN(t)),[`style`,t]}return[e.elementAttributeNameCase===`react`&&r.space?RM[r.property]||r.property:r.attribute,n]}}function AN(e,t){try{return(0,sN.default)(t,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};let n=t,r=new oN("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:`style`,source:`hast-util-to-jsx-runtime`});throw r.file=e.filePath||void 0,r.url=pN+`#cannot-parse-style-attribute`,r}}function jN(e,t,n){let r;if(!n)r={type:`Literal`,value:t};else if(t.includes(`.`)){let e=t.split(`.`),n=-1,i;for(;++n<e.length;){let t=lM(e[n])?{type:`Identifier`,name:e[n]}:{type:`Literal`,value:e[n]};i=i?{type:`MemberExpression`,object:i,property:t,computed:!!(n&&t.type===`Literal`),optional:!1}:t}r=i}else r=lM(t)&&!/^[a-z]/.test(t)?{type:`Identifier`,name:t}:{type:`Literal`,value:t};if(r.type===`Literal`){let t=r.value;return cN.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);MN(e)}function MN(e,t){let n=new oN("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=pN+`#cannot-handle-mdx-estrees-without-createevaluater`,n}function NN(e){let t={},n;for(n in e)cN.call(e,n)&&(t[PN(n)]=e[n]);return t}function PN(e){let t=e.replace(uN,FN);return t.slice(0,3)===`ms-`&&(t=`-`+t),t}function FN(e){return`-`+e.toLowerCase()}var IN={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`]},LN={};function RN(e,t){let n=t||LN;return zN(e,typeof n.includeImageAlt==`boolean`?n.includeImageAlt:!0,typeof n.includeHtml==`boolean`?n.includeHtml:!0)}function zN(e,t,n){if(VN(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 BN(e.children,t,n)}return Array.isArray(e)?BN(e,t,n):``}function BN(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=zN(e[i],t,n);return r.join(``)}function VN(e){return!!(e&&typeof e==`object`)}var HN=document.createElement(`i`);function UN(e){let t=`&`+e+`;`;HN.innerHTML=t;let n=HN.textContent;return n.charCodeAt(n.length-1)===59&&e!==`semi`||n===t?!1:n}function WN(e,t,n,r){let i=e.length,a=0,o;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a<r.length;)o=r.slice(a,a+1e4),o.unshift(t,0),e.splice(...o),a+=1e4,t+=1e4}function GN(e,t){return e.length>0?(WN(e,e.length,0,t),e):t}var KN={}.hasOwnProperty;function qN(e){let t={},n=-1;for(;++n<e.length;)JN(t,e[n]);return t}function JN(e,t){let n;for(n in t){let r=(KN.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n],a;if(i)for(a in i){KN.call(r,a)||(r[a]=[]);let e=i[a];YN(r[a],Array.isArray(e)?e:e?[e]:[])}}}function YN(e,t){let n=-1,r=[];for(;++n<t.length;)(t[n].add===`after`?e:r).push(t[n]);WN(e,0,0,r)}function XN(e,t){let 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 ZN(e){return e.replace(/[\t\n\r ]+/g,` `).replace(/^ | $/g,``).toLowerCase().toUpperCase()}var QN=uP(/[A-Za-z]/),$N=uP(/[\dA-Za-z]/),eP=uP(/[#-'*+\--9=?A-Z^-~]/);function tP(e){return e!==null&&(e<32||e===127)}var nP=uP(/\d/),rP=uP(/[\dA-Fa-f]/),iP=uP(/[!-/:-@[-`{-~]/);function aP(e){return e!==null&&e<-2}function oP(e){return e!==null&&(e<0||e===32)}function sP(e){return e===-2||e===-1||e===32}var cP=uP(/\p{P}|\p{S}/u),lP=uP(/\s/);function uP(e){return t;function t(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function dP(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let a=e.charCodeAt(n),o=``;if(a===37&&$N(e.charCodeAt(n+1))&&$N(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){let t=e.charCodeAt(n+1);a<56320&&t>56319&&t<57344?(o=String.fromCharCode(a,t),i=1):o=`�`}else o=String.fromCharCode(a);o&&=(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,``),i&&=(n+=i,0)}return t.join(``)+e.slice(r)}function fP(e,t,n,r){let i=r?r-1:1/0,a=0;return o;function o(r){return sP(r)?(e.enter(n),s(r)):t(r)}function s(r){return sP(r)&&a++<i?(e.consume(r),s):(e.exit(n),t(r))}}var pP={tokenize:mP};function mP(e){let t=e.attempt(this.parser.constructs.contentInitial,r,i),n;return t;function r(n){if(n===null){e.consume(n);return}return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),fP(e,t,`linePrefix`)}function i(t){return e.enter(`paragraph`),a(t)}function a(t){let r=e.enter(`chunkText`,{contentType:`text`,previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){if(t===null){e.exit(`chunkText`),e.exit(`paragraph`),e.consume(t);return}return aP(t)?(e.consume(t),e.exit(`chunkText`),a):(e.consume(t),o)}}var hP={tokenize:_P},gP={tokenize:vP};function _P(e){let t=this,n=[],r=0,i,a,o;return s;function s(i){if(r<n.length){let a=n[r];return t.containerState=a[1],e.attempt(a[0].continuation,c,l)(i)}return l(i)}function c(e){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&v();let n=t.events.length,a=n,o;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){o=t.events[a][1].end;break}_(r);let s=n;for(;s<t.events.length;)t.events[s][1].end={...o},s++;return WN(t.events,a+1,0,t.events.slice(n)),t.events.length=s,l(e)}return s(e)}function l(a){if(r===n.length){if(!i)return f(a);if(i.currentConstruct&&i.currentConstruct.concrete)return m(a);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(gP,u,d)(a)}function u(e){return i&&v(),_(r),f(e)}function d(e){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,m(e)}function f(n){return t.containerState={},e.attempt(gP,p,m)(n)}function p(e){return r++,n.push([t.currentConstruct,t.containerState]),f(e)}function m(n){if(n===null){i&&v(),_(0),e.consume(n);return}return i||=t.parser.flow(t.now()),e.enter(`chunkFlow`,{_tokenizer:i,contentType:`flow`,previous:a}),h(n)}function h(n){if(n===null){g(e.exit(`chunkFlow`),!0),_(0),e.consume(n);return}return aP(n)?(e.consume(n),g(e.exit(`chunkFlow`)),r=0,t.interrupt=void 0,s):(e.consume(n),h)}function g(e,n){let s=t.sliceStream(e);if(n&&s.push(null),e.previous=a,a&&(a.next=e),a=e,i.defineSkip(e.start),i.write(s),t.parser.lazy[e.start.line]){let e=i.events.length;for(;e--;)if(i.events[e][1].start.offset<o&&(!i.events[e][1].end||i.events[e][1].end.offset>o))return;let n=t.events.length,a=n,s,c;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){if(s){c=t.events[a][1].end;break}s=!0}for(_(r),e=n;e<t.events.length;)t.events[e][1].end={...c},e++;WN(t.events,a+1,0,t.events.slice(n)),t.events.length=e}}function _(r){let i=n.length;for(;i-- >r;){let r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function v(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function vP(e,t,n){return fP(e,e.attempt(this.parser.constructs.document,t,n),`linePrefix`,this.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)}function yP(e){if(e===null||oP(e)||lP(e))return 1;if(cP(e))return 2}function bP(e,t,n){let r=[],i=-1;for(;++i<e.length;){let a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}var xP={name:`attention`,resolveAll:SP,tokenize:CP};function SP(e,t){let n=-1,r,i,a,o,s,c,l,u;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;c=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;let d={...e[r][1].end},f={...e[n][1].start};wP(d,-c),wP(f,c),o={type:c>1?`strongSequence`:`emphasisSequence`,start:d,end:{...e[r][1].end}},s={type:c>1?`strongSequence`:`emphasisSequence`,start:{...e[n][1].start},end:f},a={type:c>1?`strongText`:`emphasisText`,start:{...e[r][1].end},end:{...e[n][1].start}},i={type:c>1?`strong`:`emphasis`,start:{...o.start},end:{...s.end}},e[r][1].end={...o.start},e[n][1].start={...s.end},l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=GN(l,[[`enter`,e[r][1],t],[`exit`,e[r][1],t]])),l=GN(l,[[`enter`,i,t],[`enter`,o,t],[`exit`,o,t],[`enter`,a,t]]),l=GN(l,bP(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=GN(l,[[`exit`,a,t],[`enter`,s,t],[`exit`,s,t],[`exit`,i,t]]),e[n][1].end.offset-e[n][1].start.offset?(u=2,l=GN(l,[[`enter`,e[n][1],t],[`exit`,e[n][1],t]])):u=0,WN(e,r-1,n-r+3,l),n=r+l.length-u-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`attentionSequence`&&(e[n][1].type=`data`);return e}function CP(e,t){let n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=yP(r),a;return o;function o(t){return a=t,e.enter(`attentionSequence`),s(t)}function s(o){if(o===a)return e.consume(o),s;let c=e.exit(`attentionSequence`),l=yP(o),u=!l||l===2&&i||n.includes(o),d=!i||i===2&&l||n.includes(r);return c._open=!!(a===42?u:u&&(i||!d)),c._close=!!(a===42?d:d&&(l||!u)),t(o)}}function wP(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var TP={name:`autolink`,tokenize:EP};function EP(e,t,n){let r=0;return i;function i(t){return e.enter(`autolink`),e.enter(`autolinkMarker`),e.consume(t),e.exit(`autolinkMarker`),e.enter(`autolinkProtocol`),a}function a(t){return QN(t)?(e.consume(t),o):t===64?n(t):l(t)}function o(e){return e===43||e===45||e===46||$N(e)?(r=1,s(e)):l(e)}function s(t){return t===58?(e.consume(t),r=0,c):(t===43||t===45||t===46||$N(t))&&r++<32?(e.consume(t),s):(r=0,l(t))}function c(r){return r===62?(e.exit(`autolinkProtocol`),e.enter(`autolinkMarker`),e.consume(r),e.exit(`autolinkMarker`),e.exit(`autolink`),t):r===null||r===32||r===60||tP(r)?n(r):(e.consume(r),c)}function l(t){return t===64?(e.consume(t),u):eP(t)?(e.consume(t),l):n(t)}function u(e){return $N(e)?d(e):n(e)}function d(n){return n===46?(e.consume(n),r=0,u):n===62?(e.exit(`autolinkProtocol`).type=`autolinkEmail`,e.enter(`autolinkMarker`),e.consume(n),e.exit(`autolinkMarker`),e.exit(`autolink`),t):f(n)}function f(t){if((t===45||$N(t))&&r++<63){let n=t===45?f:d;return e.consume(t),n}return n(t)}}var DP={partial:!0,tokenize:OP};function OP(e,t,n){return r;function r(t){return sP(t)?fP(e,i,`linePrefix`)(t):i(t)}function i(e){return e===null||aP(e)?t(e):n(e)}}var kP={continuation:{tokenize:jP},exit:MP,name:`blockQuote`,tokenize:AP};function AP(e,t,n){let r=this;return i;function i(t){if(t===62){let n=r.containerState;return n.open||=(e.enter(`blockQuote`,{_container:!0}),!0),e.enter(`blockQuotePrefix`),e.enter(`blockQuoteMarker`),e.consume(t),e.exit(`blockQuoteMarker`),a}return n(t)}function a(n){return sP(n)?(e.enter(`blockQuotePrefixWhitespace`),e.consume(n),e.exit(`blockQuotePrefixWhitespace`),e.exit(`blockQuotePrefix`),t):(e.exit(`blockQuotePrefix`),t(n))}}function jP(e,t,n){let r=this;return i;function i(t){return sP(t)?fP(e,a,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):a(t)}function a(r){return e.attempt(kP,t,n)(r)}}function MP(e){e.exit(`blockQuote`)}var NP={name:`characterEscape`,tokenize:PP};function PP(e,t,n){return r;function r(t){return e.enter(`characterEscape`),e.enter(`escapeMarker`),e.consume(t),e.exit(`escapeMarker`),i}function i(r){return iP(r)?(e.enter(`characterEscapeValue`),e.consume(r),e.exit(`characterEscapeValue`),e.exit(`characterEscape`),t):n(r)}}var FP={name:`characterReference`,tokenize:IP};function IP(e,t,n){let r=this,i=0,a,o;return s;function s(t){return e.enter(`characterReference`),e.enter(`characterReferenceMarker`),e.consume(t),e.exit(`characterReferenceMarker`),c}function c(t){return t===35?(e.enter(`characterReferenceMarkerNumeric`),e.consume(t),e.exit(`characterReferenceMarkerNumeric`),l):(e.enter(`characterReferenceValue`),a=31,o=$N,u(t))}function l(t){return t===88||t===120?(e.enter(`characterReferenceMarkerHexadecimal`),e.consume(t),e.exit(`characterReferenceMarkerHexadecimal`),e.enter(`characterReferenceValue`),a=6,o=rP,u):(e.enter(`characterReferenceValue`),a=7,o=nP,u(t))}function u(s){if(s===59&&i){let i=e.exit(`characterReferenceValue`);return o===$N&&!UN(r.sliceSerialize(i))?n(s):(e.enter(`characterReferenceMarker`),e.consume(s),e.exit(`characterReferenceMarker`),e.exit(`characterReference`),t)}return o(s)&&i++<a?(e.consume(s),u):n(s)}}var LP={partial:!0,tokenize:BP},RP={concrete:!0,name:`codeFenced`,tokenize:zP};function zP(e,t,n){let r=this,i={partial:!0,tokenize:x},a=0,o=0,s;return c;function c(e){return l(e)}function l(t){let n=r.events[r.events.length-1];return a=n&&n[1].type===`linePrefix`?n[2].sliceSerialize(n[1],!0).length:0,s=t,e.enter(`codeFenced`),e.enter(`codeFencedFence`),e.enter(`codeFencedFenceSequence`),u(t)}function u(t){return t===s?(o++,e.consume(t),u):o<3?n(t):(e.exit(`codeFencedFenceSequence`),sP(t)?fP(e,d,`whitespace`)(t):d(t))}function d(n){return n===null||aP(n)?(e.exit(`codeFencedFence`),r.interrupt?t(n):e.check(LP,h,b)(n)):(e.enter(`codeFencedFenceInfo`),e.enter(`chunkString`,{contentType:`string`}),f(n))}function f(t){return t===null||aP(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),d(t)):sP(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),fP(e,p,`whitespace`)(t)):t===96&&t===s?n(t):(e.consume(t),f)}function p(t){return t===null||aP(t)?d(t):(e.enter(`codeFencedFenceMeta`),e.enter(`chunkString`,{contentType:`string`}),m(t))}function m(t){return t===null||aP(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceMeta`),d(t)):t===96&&t===s?n(t):(e.consume(t),m)}function h(t){return e.attempt(i,b,g)(t)}function g(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),_}function _(t){return a>0&&sP(t)?fP(e,v,`linePrefix`,a+1)(t):v(t)}function v(t){return t===null||aP(t)?e.check(LP,h,b)(t):(e.enter(`codeFlowValue`),y(t))}function y(t){return t===null||aP(t)?(e.exit(`codeFlowValue`),v(t)):(e.consume(t),y)}function b(n){return e.exit(`codeFenced`),t(n)}function x(e,t,n){let i=0;return a;function a(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c}function c(t){return e.enter(`codeFencedFence`),sP(t)?fP(e,l,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):l(t)}function l(t){return t===s?(e.enter(`codeFencedFenceSequence`),u(t)):n(t)}function u(t){return t===s?(i++,e.consume(t),u):i>=o?(e.exit(`codeFencedFenceSequence`),sP(t)?fP(e,d,`whitespace`)(t):d(t)):n(t)}function d(r){return r===null||aP(r)?(e.exit(`codeFencedFence`),t(r)):n(r)}}}function BP(e,t,n){let r=this;return i;function i(t){return t===null?n(t):(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}var VP={name:`codeIndented`,tokenize:UP},HP={partial:!0,tokenize:WP};function UP(e,t,n){let r=this;return i;function i(t){return e.enter(`codeIndented`),fP(e,a,`linePrefix`,5)(t)}function a(e){let t=r.events[r.events.length-1];return t&&t[1].type===`linePrefix`&&t[2].sliceSerialize(t[1],!0).length>=4?o(e):n(e)}function o(t){return t===null?c(t):aP(t)?e.attempt(HP,o,c)(t):(e.enter(`codeFlowValue`),s(t))}function s(t){return t===null||aP(t)?(e.exit(`codeFlowValue`),o(t)):(e.consume(t),s)}function c(n){return e.exit(`codeIndented`),t(n)}}function WP(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):aP(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),i):fP(e,a,`linePrefix`,5)(t)}function a(e){let a=r.events[r.events.length-1];return a&&a[1].type===`linePrefix`&&a[2].sliceSerialize(a[1],!0).length>=4?t(e):aP(e)?i(e):n(e)}}var GP={name:`codeText`,previous:qP,resolve:KP,tokenize:JP};function KP(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 qP(e){return e!==96||this.events[this.events.length-1][1].type===`characterEscape`}function JP(e,t,n){let r=0,i,a;return o;function o(t){return e.enter(`codeText`),e.enter(`codeTextSequence`),s(t)}function s(t){return t===96?(e.consume(t),r++,s):(e.exit(`codeTextSequence`),c(t))}function c(t){return t===null?n(t):t===32?(e.enter(`space`),e.consume(t),e.exit(`space`),c):t===96?(a=e.enter(`codeTextSequence`),i=0,u(t)):aP(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c):(e.enter(`codeTextData`),l(t))}function l(t){return t===null||t===32||t===96||aP(t)?(e.exit(`codeTextData`),c(t)):(e.consume(t),l)}function u(n){return n===96?(e.consume(n),i++,u):i===r?(e.exit(`codeTextSequence`),e.exit(`codeText`),t(n)):(a.type=`codeTextData`,l(n))}}var YP=class{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=t??1/0;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){let r=t||0;this.setCursor(Math.trunc(e));let i=this.right.splice(this.right.length-r,1/0);return n&&XP(this.left,n),i.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),XP(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),XP(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0))if(e<this.left.length){let t=this.left.splice(e,1/0);XP(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);XP(this.left,t.reverse())}}};function XP(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 ZP(e){let t={},n=-1,r,i,a,o,s,c,l,u=new YP(e);for(;++n<u.length;){for(;n in t;)n=t[n];if(r=u.get(n),n&&r[1].type===`chunkFlow`&&u.get(n-1)[1].type===`listItemPrefix`&&(c=r[1]._tokenizer.events,a=0,a<c.length&&c[a][1].type===`lineEndingBlank`&&(a+=2),a<c.length&&c[a][1].type===`content`))for(;++a<c.length&&c[a][1].type!==`content`;)c[a][1].type===`chunkText`&&(c[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]===`enter`)r[1].contentType&&(Object.assign(t,QP(u,n)),n=t[n],l=!0);else if(r[1]._container){for(a=n,i=void 0;a--;)if(o=u.get(a),o[1].type===`lineEnding`||o[1].type===`lineEndingBlank`)o[0]===`enter`&&(i&&(u.get(i)[1].type=`lineEndingBlank`),o[1].type=`lineEnding`,i=a);else if(!(o[1].type===`linePrefix`||o[1].type===`listItemIndent`))break;i&&(r[1].end={...u.get(i)[1].start},s=u.slice(i,n),s.unshift(r),u.splice(i,n-i+1,s))}}return WN(e,0,1/0,u.slice(0)),!l}function QP(e,t){let n=e.get(t)[1],r=e.get(t)[2],i=t-1,a=[],o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));let s=o.events,c=[],l={},u,d,f=-1,p=n,m=0,h=0,g=[h];for(;p;){for(;e.get(++i)[1]!==p;);a.push(i),p._tokenizer||(u=r.sliceStream(p),p.next||u.push(null),d&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(u),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++f<s.length;)s[f][0]===`exit`&&s[f-1][0]===`enter`&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(h=f+1,g.push(h),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):g.pop(),f=g.length;f--;){let t=s.slice(g[f],g[f+1]),n=a.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),f=-1;++f<c.length;)l[m+c[f][0]]=m+c[f][1],m+=c[f][1]-c[f][0]-1;return l}var $P={resolve:tF,tokenize:nF},eF={partial:!0,tokenize:rF};function tF(e){return ZP(e),e}function nF(e,t){let n;return r;function r(t){return e.enter(`content`),n=e.enter(`chunkContent`,{contentType:`content`}),i(t)}function i(t){return t===null?a(t):aP(t)?e.check(eF,o,a)(t):(e.consume(t),i)}function a(n){return e.exit(`chunkContent`),e.exit(`content`),t(n)}function o(t){return e.consume(t),e.exit(`chunkContent`),n.next=e.enter(`chunkContent`,{contentType:`content`,previous:n}),n=n.next,i}}function rF(e,t,n){let r=this;return i;function i(t){return e.exit(`chunkContent`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),fP(e,a,`linePrefix`)}function a(i){if(i===null||aP(i))return n(i);let 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(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}function iF(e,t,n,r,i,a,o,s,c){let l=c||1/0,u=0;return d;function d(t){return t===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(t),e.exit(a),f):t===null||t===32||t===41||tP(t)?n(t):(e.enter(r),e.enter(o),e.enter(s),e.enter(`chunkString`,{contentType:`string`}),h(t))}function f(n){return n===62?(e.enter(a),e.consume(n),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter(`chunkString`,{contentType:`string`}),p(n))}function p(t){return t===62?(e.exit(`chunkString`),e.exit(s),f(t)):t===null||t===60||aP(t)?n(t):(e.consume(t),t===92?m:p)}function m(t){return t===60||t===62||t===92?(e.consume(t),p):p(t)}function h(i){return!u&&(i===null||i===41||oP(i))?(e.exit(`chunkString`),e.exit(s),e.exit(o),e.exit(r),t(i)):u<l&&i===40?(e.consume(i),u++,h):i===41?(e.consume(i),u--,h):i===null||i===32||i===40||tP(i)?n(i):(e.consume(i),i===92?g:h)}function g(t){return t===40||t===41||t===92?(e.consume(t),h):h(t)}}function aF(e,t,n,r,i,a){let o=this,s=0,c;return l;function l(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(a),u}function u(l){return s>999||l===null||l===91||l===93&&!c||l===94&&!s&&`_hiddenFootnoteSupport`in o.parser.constructs?n(l):l===93?(e.exit(a),e.enter(i),e.consume(l),e.exit(i),e.exit(r),t):aP(l)?(e.enter(`lineEnding`),e.consume(l),e.exit(`lineEnding`),u):(e.enter(`chunkString`,{contentType:`string`}),d(l))}function d(t){return t===null||t===91||t===93||aP(t)||s++>999?(e.exit(`chunkString`),u(t)):(e.consume(t),c||=!sP(t),t===92?f:d)}function f(t){return t===91||t===92||t===93?(e.consume(t),s++,d):d(t)}}function oF(e,t,n,r,i,a){let o;return s;function s(t){return t===34||t===39||t===40?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),o=t===40?41:t,c):n(t)}function c(n){return n===o?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(a),l(n))}function l(t){return t===o?(e.exit(a),c(o)):t===null?n(t):aP(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),fP(e,l,`linePrefix`)):(e.enter(`chunkString`,{contentType:`string`}),u(t))}function u(t){return t===o||t===null||aP(t)?(e.exit(`chunkString`),l(t)):(e.consume(t),t===92?d:u)}function d(t){return t===o||t===92?(e.consume(t),u):u(t)}}function sF(e,t){let n;return r;function r(i){return aP(i)?(e.enter(`lineEnding`),e.consume(i),e.exit(`lineEnding`),n=!0,r):sP(i)?fP(e,r,n?`linePrefix`:`lineSuffix`)(i):t(i)}}var cF={name:`definition`,tokenize:uF},lF={partial:!0,tokenize:dF};function uF(e,t,n){let r=this,i;return a;function a(t){return e.enter(`definition`),o(t)}function o(t){return aF.call(r,e,s,n,`definitionLabel`,`definitionLabelMarker`,`definitionLabelString`)(t)}function s(t){return i=ZN(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),c):n(t)}function c(t){return oP(t)?sF(e,l)(t):l(t)}function l(t){return iF(e,u,n,`definitionDestination`,`definitionDestinationLiteral`,`definitionDestinationLiteralMarker`,`definitionDestinationRaw`,`definitionDestinationString`)(t)}function u(t){return e.attempt(lF,d,d)(t)}function d(t){return sP(t)?fP(e,f,`whitespace`)(t):f(t)}function f(a){return a===null||aP(a)?(e.exit(`definition`),r.parser.defined.push(i),t(a)):n(a)}}function dF(e,t,n){return r;function r(t){return oP(t)?sF(e,i)(t):n(t)}function i(t){return oF(e,a,n,`definitionTitle`,`definitionTitleMarker`,`definitionTitleString`)(t)}function a(t){return sP(t)?fP(e,o,`whitespace`)(t):o(t)}function o(e){return e===null||aP(e)?t(e):n(e)}}var fF={name:`hardBreakEscape`,tokenize:pF};function pF(e,t,n){return r;function r(t){return e.enter(`hardBreakEscape`),e.consume(t),i}function i(r){return aP(r)?(e.exit(`hardBreakEscape`),t(r)):n(r)}}var mF={name:`headingAtx`,resolve:hF,tokenize:gF};function hF(e,t){let n=e.length-2,r=3,i,a;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},a={type:`chunkText`,start:e[r][1].start,end:e[n][1].end,contentType:`text`},WN(e,r,n-r+1,[[`enter`,i,t],[`enter`,a,t],[`exit`,a,t],[`exit`,i,t]])),e}function gF(e,t,n){let r=0;return i;function i(t){return e.enter(`atxHeading`),a(t)}function a(t){return e.enter(`atxHeadingSequence`),o(t)}function o(t){return t===35&&r++<6?(e.consume(t),o):t===null||oP(t)?(e.exit(`atxHeadingSequence`),s(t)):n(t)}function s(n){return n===35?(e.enter(`atxHeadingSequence`),c(n)):n===null||aP(n)?(e.exit(`atxHeading`),t(n)):sP(n)?fP(e,s,`whitespace`)(n):(e.enter(`atxHeadingText`),l(n))}function c(t){return t===35?(e.consume(t),c):(e.exit(`atxHeadingSequence`),s(t))}function l(t){return t===null||t===35||oP(t)?(e.exit(`atxHeadingText`),s(t)):(e.consume(t),l)}}var _F=`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`.split(`.`),vF=[`pre`,`script`,`style`,`textarea`],yF={concrete:!0,name:`htmlFlow`,resolveTo:SF,tokenize:CF},bF={partial:!0,tokenize:TF},xF={partial:!0,tokenize:wF};function SF(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 CF(e,t,n){let r=this,i,a,o,s,c;return l;function l(e){return u(e)}function u(t){return e.enter(`htmlFlow`),e.enter(`htmlFlowData`),e.consume(t),d}function d(s){return s===33?(e.consume(s),f):s===47?(e.consume(s),a=!0,h):s===63?(e.consume(s),i=3,r.interrupt?t:I):QN(s)?(e.consume(s),o=String.fromCharCode(s),g):n(s)}function f(a){return a===45?(e.consume(a),i=2,p):a===91?(e.consume(a),i=5,s=0,m):QN(a)?(e.consume(a),i=4,r.interrupt?t:I):n(a)}function p(i){return i===45?(e.consume(i),r.interrupt?t:I):n(i)}function m(i){return i===`CDATA[`.charCodeAt(s++)?(e.consume(i),s===6?r.interrupt?t:O:m):n(i)}function h(t){return QN(t)?(e.consume(t),o=String.fromCharCode(t),g):n(t)}function g(s){if(s===null||s===47||s===62||oP(s)){let c=s===47,l=o.toLowerCase();return!c&&!a&&vF.includes(l)?(i=1,r.interrupt?t(s):O(s)):_F.includes(o.toLowerCase())?(i=6,c?(e.consume(s),_):r.interrupt?t(s):O(s)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):a?v(s):y(s))}return s===45||$N(s)?(e.consume(s),o+=String.fromCharCode(s),g):n(s)}function _(i){return i===62?(e.consume(i),r.interrupt?t:O):n(i)}function v(t){return sP(t)?(e.consume(t),v):E(t)}function y(t){return t===47?(e.consume(t),E):t===58||t===95||QN(t)?(e.consume(t),b):sP(t)?(e.consume(t),y):E(t)}function b(t){return t===45||t===46||t===58||t===95||$N(t)?(e.consume(t),b):x(t)}function x(t){return t===61?(e.consume(t),S):sP(t)?(e.consume(t),x):y(t)}function S(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),c=t,C):sP(t)?(e.consume(t),S):w(t)}function C(t){return t===c?(e.consume(t),c=null,T):t===null||aP(t)?n(t):(e.consume(t),C)}function w(t){return t===null||t===34||t===39||t===47||t===60||t===61||t===62||t===96||oP(t)?x(t):(e.consume(t),w)}function T(e){return e===47||e===62||sP(e)?y(e):n(e)}function E(t){return t===62?(e.consume(t),D):n(t)}function D(t){return t===null||aP(t)?O(t):sP(t)?(e.consume(t),D):n(t)}function O(t){return t===45&&i===2?(e.consume(t),M):t===60&&i===1?(e.consume(t),N):t===62&&i===4?(e.consume(t),L):t===63&&i===3?(e.consume(t),I):t===93&&i===5?(e.consume(t),F):aP(t)&&(i===6||i===7)?(e.exit(`htmlFlowData`),e.check(bF,R,k)(t)):t===null||aP(t)?(e.exit(`htmlFlowData`),k(t)):(e.consume(t),O)}function k(t){return e.check(xF,A,R)(t)}function A(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),j}function j(t){return t===null||aP(t)?k(t):(e.enter(`htmlFlowData`),O(t))}function M(t){return t===45?(e.consume(t),I):O(t)}function N(t){return t===47?(e.consume(t),o=``,P):O(t)}function P(t){if(t===62){let n=o.toLowerCase();return vF.includes(n)?(e.consume(t),L):O(t)}return QN(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),P):O(t)}function F(t){return t===93?(e.consume(t),I):O(t)}function I(t){return t===62?(e.consume(t),L):t===45&&i===2?(e.consume(t),I):O(t)}function L(t){return t===null||aP(t)?(e.exit(`htmlFlowData`),R(t)):(e.consume(t),L)}function R(n){return e.exit(`htmlFlow`),t(n)}}function wF(e,t,n){let r=this;return i;function i(t){return aP(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a):n(t)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}function TF(e,t,n){return r;function r(r){return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),e.attempt(DP,t,n)}}var EF={name:`htmlText`,tokenize:DF};function DF(e,t,n){let r=this,i,a,o;return s;function s(t){return e.enter(`htmlText`),e.enter(`htmlTextData`),e.consume(t),c}function c(t){return t===33?(e.consume(t),l):t===47?(e.consume(t),x):t===63?(e.consume(t),y):QN(t)?(e.consume(t),w):n(t)}function l(t){return t===45?(e.consume(t),u):t===91?(e.consume(t),a=0,m):QN(t)?(e.consume(t),v):n(t)}function u(t){return t===45?(e.consume(t),p):n(t)}function d(t){return t===null?n(t):t===45?(e.consume(t),f):aP(t)?(o=d,N(t)):(e.consume(t),d)}function f(t){return t===45?(e.consume(t),p):d(t)}function p(e){return e===62?M(e):e===45?f(e):d(e)}function m(t){return t===`CDATA[`.charCodeAt(a++)?(e.consume(t),a===6?h:m):n(t)}function h(t){return t===null?n(t):t===93?(e.consume(t),g):aP(t)?(o=h,N(t)):(e.consume(t),h)}function g(t){return t===93?(e.consume(t),_):h(t)}function _(t){return t===62?M(t):t===93?(e.consume(t),_):h(t)}function v(t){return t===null||t===62?M(t):aP(t)?(o=v,N(t)):(e.consume(t),v)}function y(t){return t===null?n(t):t===63?(e.consume(t),b):aP(t)?(o=y,N(t)):(e.consume(t),y)}function b(e){return e===62?M(e):y(e)}function x(t){return QN(t)?(e.consume(t),S):n(t)}function S(t){return t===45||$N(t)?(e.consume(t),S):C(t)}function C(t){return aP(t)?(o=C,N(t)):sP(t)?(e.consume(t),C):M(t)}function w(t){return t===45||$N(t)?(e.consume(t),w):t===47||t===62||oP(t)?T(t):n(t)}function T(t){return t===47?(e.consume(t),M):t===58||t===95||QN(t)?(e.consume(t),E):aP(t)?(o=T,N(t)):sP(t)?(e.consume(t),T):M(t)}function E(t){return t===45||t===46||t===58||t===95||$N(t)?(e.consume(t),E):D(t)}function D(t){return t===61?(e.consume(t),O):aP(t)?(o=D,N(t)):sP(t)?(e.consume(t),D):T(t)}function O(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),i=t,k):aP(t)?(o=O,N(t)):sP(t)?(e.consume(t),O):(e.consume(t),A)}function k(t){return t===i?(e.consume(t),i=void 0,j):t===null?n(t):aP(t)?(o=k,N(t)):(e.consume(t),k)}function A(t){return t===null||t===34||t===39||t===60||t===61||t===96?n(t):t===47||t===62||oP(t)?T(t):(e.consume(t),A)}function j(e){return e===47||e===62||oP(e)?T(e):n(e)}function M(r){return r===62?(e.consume(r),e.exit(`htmlTextData`),e.exit(`htmlText`),t):n(r)}function N(t){return e.exit(`htmlTextData`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),P}function P(t){return sP(t)?fP(e,F,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):F(t)}function F(t){return e.enter(`htmlTextData`),o(t)}}var OF={name:`labelEnd`,resolveAll:MF,resolveTo:NF,tokenize:PF},kF={tokenize:FF},AF={tokenize:IF},jF={tokenize:LF};function MF(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),r.type===`labelImage`||r.type===`labelLink`||r.type===`labelEnd`){let e=r.type===`labelImage`?4:2;r.type=`data`,t+=e}}return e.length!==n.length&&WN(e,0,e.length,n),e}function NF(e,t){let n=e.length,r=0,i,a,o,s;for(;n--;)if(i=e[n][1],a){if(i.type===`link`||i.type===`labelLink`&&i._inactive)break;e[n][0]===`enter`&&i.type===`labelLink`&&(i._inactive=!0)}else if(o){if(e[n][0]===`enter`&&(i.type===`labelImage`||i.type===`labelLink`)&&!i._balanced&&(a=n,i.type!==`labelLink`)){r=2;break}}else i.type===`labelEnd`&&(o=n);let c={type:e[a][1].type===`labelLink`?`link`:`image`,start:{...e[a][1].start},end:{...e[e.length-1][1].end}},l={type:`label`,start:{...e[a][1].start},end:{...e[o][1].end}},u={type:`labelText`,start:{...e[a+r+2][1].end},end:{...e[o-2][1].start}};return s=[[`enter`,c,t],[`enter`,l,t]],s=GN(s,e.slice(a+1,a+r+3)),s=GN(s,[[`enter`,u,t]]),s=GN(s,bP(t.parser.constructs.insideSpan.null,e.slice(a+r+4,o-3),t)),s=GN(s,[[`exit`,u,t],e[o-2],e[o-1],[`exit`,l,t]]),s=GN(s,e.slice(o+1)),s=GN(s,[[`exit`,c,t]]),WN(e,a,e.length,s),e}function PF(e,t,n){let r=this,i=r.events.length,a,o;for(;i--;)if((r.events[i][1].type===`labelImage`||r.events[i][1].type===`labelLink`)&&!r.events[i][1]._balanced){a=r.events[i][1];break}return s;function s(t){return a?a._inactive?d(t):(o=r.parser.defined.includes(ZN(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter(`labelEnd`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelEnd`),c):n(t)}function c(t){return t===40?e.attempt(kF,u,o?u:d)(t):t===91?e.attempt(AF,u,o?l:d)(t):o?u(t):d(t)}function l(t){return e.attempt(jF,u,d)(t)}function u(e){return t(e)}function d(e){return a._balanced=!0,n(e)}}function FF(e,t,n){return r;function r(t){return e.enter(`resource`),e.enter(`resourceMarker`),e.consume(t),e.exit(`resourceMarker`),i}function i(t){return oP(t)?sF(e,a)(t):a(t)}function a(t){return t===41?u(t):iF(e,o,s,`resourceDestination`,`resourceDestinationLiteral`,`resourceDestinationLiteralMarker`,`resourceDestinationRaw`,`resourceDestinationString`,32)(t)}function o(t){return oP(t)?sF(e,c)(t):u(t)}function s(e){return n(e)}function c(t){return t===34||t===39||t===40?oF(e,l,n,`resourceTitle`,`resourceTitleMarker`,`resourceTitleString`)(t):u(t)}function l(t){return oP(t)?sF(e,u)(t):u(t)}function u(r){return r===41?(e.enter(`resourceMarker`),e.consume(r),e.exit(`resourceMarker`),e.exit(`resource`),t):n(r)}}function IF(e,t,n){let r=this;return i;function i(t){return aF.call(r,e,a,o,`reference`,`referenceMarker`,`referenceString`)(t)}function a(e){return r.parser.defined.includes(ZN(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}function LF(e,t,n){return r;function r(t){return e.enter(`reference`),e.enter(`referenceMarker`),e.consume(t),e.exit(`referenceMarker`),i}function i(r){return r===93?(e.enter(`referenceMarker`),e.consume(r),e.exit(`referenceMarker`),e.exit(`reference`),t):n(r)}}var RF={name:`labelStartImage`,resolveAll:OF.resolveAll,tokenize:zF};function zF(e,t,n){let r=this;return i;function i(t){return e.enter(`labelImage`),e.enter(`labelImageMarker`),e.consume(t),e.exit(`labelImageMarker`),a}function a(t){return t===91?(e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelImage`),o):n(t)}function o(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):t(e)}}var BF={name:`labelStartLink`,resolveAll:OF.resolveAll,tokenize:VF};function VF(e,t,n){let r=this;return i;function i(t){return e.enter(`labelLink`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelLink`),a}function a(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):t(e)}}var HF={name:`lineEnding`,tokenize:UF};function UF(e,t){return n;function n(n){return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),fP(e,t,`linePrefix`)}}var WF={name:`thematicBreak`,tokenize:GF};function GF(e,t,n){let r=0,i;return a;function a(t){return e.enter(`thematicBreak`),o(t)}function o(e){return i=e,s(e)}function s(a){return a===i?(e.enter(`thematicBreakSequence`),c(a)):r>=3&&(a===null||aP(a))?(e.exit(`thematicBreak`),t(a)):n(a)}function c(t){return t===i?(e.consume(t),r++,c):(e.exit(`thematicBreakSequence`),sP(t)?fP(e,s,`whitespace`)(t):s(t))}}var KF={continuation:{tokenize:XF},exit:QF,name:`list`,tokenize:YF},qF={partial:!0,tokenize:$F},JF={partial:!0,tokenize:ZF};function YF(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&i[1].type===`linePrefix`?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(t){let i=r.containerState.type||(t===42||t===43||t===45?`listUnordered`:`listOrdered`);if(i===`listUnordered`?!r.containerState.marker||t===r.containerState.marker:nP(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),i===`listUnordered`)return e.enter(`listItemPrefix`),t===42||t===45?e.check(WF,n,l)(t):l(t);if(!r.interrupt||t===49)return e.enter(`listItemPrefix`),e.enter(`listItemValue`),c(t)}return n(t)}function c(t){return nP(t)&&++o<10?(e.consume(t),c):(!r.interrupt||o<2)&&(r.containerState.marker?t===r.containerState.marker:t===41||t===46)?(e.exit(`listItemValue`),l(t)):n(t)}function l(t){return e.enter(`listItemMarker`),e.consume(t),e.exit(`listItemMarker`),r.containerState.marker=r.containerState.marker||t,e.check(DP,r.interrupt?n:u,e.attempt(qF,f,d))}function u(e){return r.containerState.initialBlankLine=!0,a++,f(e)}function d(t){return sP(t)?(e.enter(`listItemPrefixWhitespace`),e.consume(t),e.exit(`listItemPrefixWhitespace`),f):n(t)}function f(n){return r.containerState.size=a+r.sliceSerialize(e.exit(`listItemPrefix`),!0).length,t(n)}}function XF(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(DP,i,a);function i(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,fP(e,t,`listItemIndent`,r.containerState.size+1)(n)}function a(n){return r.containerState.furtherBlankLines||!sP(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(JF,t,o)(n))}function o(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,fP(e,e.attempt(KF,t,n),`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(i)}}function ZF(e,t,n){let r=this;return fP(e,i,`listItemIndent`,r.containerState.size+1);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`listItemIndent`&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)}}function QF(e){e.exit(this.containerState.type)}function $F(e,t,n){let r=this;return fP(e,i,`listItemPrefixWhitespace`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:5);function i(e){let i=r.events[r.events.length-1];return!sP(e)&&i&&i[1].type===`listItemPrefixWhitespace`?t(e):n(e)}}var eI={name:`setextUnderline`,resolveTo:tI,tokenize:nI};function tI(e,t){let n=e.length,r,i,a;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),!a&&e[n][1].type===`definition`&&(a=n);let o={type:`setextHeading`,start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type=`setextHeadingText`,a?(e.splice(i,0,[`enter`,o,t]),e.splice(a+1,0,[`exit`,e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=o,e.push([`exit`,o,t]),e}function nI(e,t,n){let r=this,i;return a;function a(t){let a=r.events.length,s;for(;a--;)if(r.events[a][1].type!==`lineEnding`&&r.events[a][1].type!==`linePrefix`&&r.events[a][1].type!==`content`){s=r.events[a][1].type===`paragraph`;break}return!r.parser.lazy[r.now().line]&&(r.interrupt||s)?(e.enter(`setextHeadingLine`),i=t,o(t)):n(t)}function o(t){return e.enter(`setextHeadingLineSequence`),s(t)}function s(t){return t===i?(e.consume(t),s):(e.exit(`setextHeadingLineSequence`),sP(t)?fP(e,c,`lineSuffix`)(t):c(t))}function c(r){return r===null||aP(r)?(e.exit(`setextHeadingLine`),t(r)):n(r)}}var rI={tokenize:iI};function iI(e){let t=this,n=e.attempt(DP,r,e.attempt(this.parser.constructs.flowInitial,i,fP(e,e.attempt(this.parser.constructs.flow,i,e.attempt($P,i)),`linePrefix`)));return n;function r(r){if(r===null){e.consume(r);return}return e.enter(`lineEndingBlank`),e.consume(r),e.exit(`lineEndingBlank`),t.currentConstruct=void 0,n}function i(r){if(r===null){e.consume(r);return}return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),t.currentConstruct=void 0,n}}var aI={resolveAll:lI()},oI=cI(`string`),sI=cI(`text`);function cI(e){return{resolveAll:lI(e===`text`?uI:void 0),tokenize:t};function t(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,a,o);return a;function a(e){return c(e)?i(e):o(e)}function o(e){if(e===null){t.consume(e);return}return t.enter(`data`),t.consume(e),s}function s(e){return c(e)?(t.exit(`data`),i(e)):(t.consume(e),s)}function c(e){if(e===null)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}function lI(e){return t;function t(t,n){let r=-1,i;for(;++r<=t.length;)i===void 0?t[r]&&t[r][1].type===`data`&&(i=r,r++):(!t[r]||t[r][1].type!==`data`)&&(r!==i+2&&(t[i][1].end=t[r-1][1].end,t.splice(i+2,r-i-2),r=i+2),i=void 0);return e?e(t,n):t}}function uI(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type===`lineEnding`)&&e[n-1][1].type===`data`){let r=e[n-1][1],i=t.sliceStream(r),a=i.length,o=-1,s=0,c;for(;a--;){let e=i[a];if(typeof e==`string`){for(o=e.length;e.charCodeAt(o-1)===32;)s++,o--;if(o)break;o=-1}else if(e===-2)c=!0,s++;else if(e!==-1){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){let i={type:n===e.length||c||s<2?`lineSuffix`:`hardBreakTrailing`,start:{_bufferIndex:a?o:r.start._bufferIndex+o,_index:r.start._index+a,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...i.start},r.start.offset===r.end.offset?Object.assign(r,i):(e.splice(n,0,[`enter`,i,t],[`exit`,i,t]),n+=2)}n++}return e}var dI=s({attentionMarkers:()=>yI,contentInitial:()=>pI,disable:()=>bI,document:()=>fI,flow:()=>hI,flowInitial:()=>mI,insideSpan:()=>vI,string:()=>gI,text:()=>_I}),fI={42:KF,43:KF,45:KF,48:KF,49:KF,50:KF,51:KF,52:KF,53:KF,54:KF,55:KF,56:KF,57:KF,62:kP},pI={91:cF},mI={[-2]:VP,[-1]:VP,32:VP},hI={35:mF,42:WF,45:[eI,WF],60:yF,61:eI,95:WF,96:RP,126:RP},gI={38:FP,92:NP},_I={[-5]:HF,[-4]:HF,[-3]:HF,33:RF,38:FP,42:xP,60:[TP,EF],91:BF,92:[fF,NP],93:OF,95:xP,96:GP},vI={null:[xP,aI]},yI={null:[42,95]},bI={null:[]};function xI(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},a=[],o=[],s=[],c={attempt:C(x),check:C(S),consume:v,enter:y,exit:b,interrupt:C(S,{interrupt:!0})},l={code:null,containerState:{},defineSkip:h,events:[],now:m,parser:e,previous:null,sliceSerialize:f,sliceStream:p,write:d},u=t.tokenize.call(l,c);return t.resolveAll&&a.push(t),l;function d(e){return o=GN(o,e),g(),o[o.length-1]===null?(w(t,0),l.events=bP(a,l.events,l),l.events):[]}function f(e,t){return CI(p(e),t)}function p(e){return SI(o,e)}function m(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:a}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:a}}function h(e){i[e.line]=e.column,E()}function g(){let e;for(;r._index<o.length;){let t=o[r._index];if(typeof t==`string`)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)_(t.charCodeAt(r._bufferIndex));else _(t)}}function _(e){u=u(e)}function v(e){aP(e)?(r.line++,r.column=1,r.offset+=e===-3?2:1,E()):e!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),l.previous=e}function y(e,t){let n=t||{};return n.type=e,n.start=m(),l.events.push([`enter`,n,l]),s.push(n),n}function b(e){let t=s.pop();return t.end=m(),l.events.push([`exit`,t,l]),t}function x(e,t){w(e,t.from)}function S(e,t){t.restore()}function C(e,t){return n;function n(n,r,i){let a,o,s,u;return Array.isArray(n)?f(n):`tokenize`in n?f([n]):d(n);function d(e){return t;function t(t){let n=t!==null&&e[t],r=t!==null&&e.null;return f([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}function f(e){return a=e,o=0,e.length===0?i:p(e[o])}function p(e){return n;function n(n){return u=T(),s=e,e.partial||(l.currentConstruct=e),e.name&&l.parser.constructs.disable.null.includes(e.name)?h(n):e.tokenize.call(t?Object.assign(Object.create(l),t):l,c,m,h)(n)}}function m(t){return e(s,u),r}function h(e){return u.restore(),++o<a.length?p(a[o]):i}}}function w(e,t){e.resolveAll&&!a.includes(e)&&a.push(e),e.resolve&&WN(l.events,t,l.events.length-t,e.resolve(l.events.slice(t),l)),e.resolveTo&&(l.events=e.resolveTo(l.events,l))}function T(){let e=m(),t=l.previous,n=l.currentConstruct,i=l.events.length,a=Array.from(s);return{from:i,restore:o};function o(){r=e,l.previous=t,l.currentConstruct=n,l.events.length=i,s=a,E()}}function E(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function SI(e,t){let n=t.start._index,r=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex,o;if(n===i)o=[e[n].slice(r,a)];else{if(o=e.slice(n,i),r>-1){let e=o[0];typeof e==`string`?o[0]=e.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function CI(e,t){let n=-1,r=[],i;for(;++n<e.length;){let a=e[n],o;if(typeof a==`string`)o=a;else switch(a){case-5:o=`\r`;break;case-4:o=`
|
|
260
260
|
`;break;case-3:o=`\r
|
|
261
|
-
`;break;case-2:o=t?` `:` `;break;case-1:if(!t&&i)continue;o=` `;break;default:o=String.fromCharCode(a)}i=a===-2,r.push(o)}return r.join(``)}function tI(e){let t={constructs:wN([HF,...(e||{}).extensions||[]]),content:n(WN),defined:[],document:n(KN),flow:n(PF),lazy:{},string:n(LF),text:n(RF)};return t;function n(e){return n;function n(n){return QF(t,e,n)}}}function nI(e){for(;!OP(e););return e}var rI=/[\0\t\n\r]/g;function iI(){let e=1,t=``,n=!0,r;return i;function i(i,a,o){let s=[],c,l,u,d,f;for(i=t+(typeof i==`string`?i.toString():new TextDecoder(a||void 0).decode(i)),u=0,t=``,n&&=(i.charCodeAt(0)===65279&&u++,void 0);u<i.length;){if(rI.lastIndex=u,c=rI.exec(i),d=c&&c.index!==void 0?c.index:i.length,f=i.charCodeAt(d),!c){t=i.slice(u);break}if(f===10&&u===d&&r)s.push(-3),r=void 0;else switch(r&&=(s.push(-5),void 0),u<d&&(s.push(i.slice(u,d)),e+=d-u),f){case 0:s.push(65533),e++;break;case 9:for(l=Math.ceil(e/4)*4,s.push(-2);e++<l;)s.push(-1);break;case 10:s.push(-4),e=1;break;default:r=!0,e=1}u=d+1}return o&&(r&&s.push(-5),t&&s.push(t),s.push(null)),s}}var aI=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function oI(e){return e.replace(aI,sI)}function sI(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){let e=n.charCodeAt(1),t=e===120||e===88;return DN(n.slice(t?2:1),t?16:10)}return bN(n)||e}var cI={}.hasOwnProperty;function lI(e,t,n){return t&&typeof t==`object`&&(n=t,t=void 0),uI(n)(nI(tI(n).document().write(iI()(e,t,!0))))}function uI(e){let t={transforms:[],canContainEols:[`emphasis`,`fragment`,`heading`,`paragraph`,`strong`],enter:{autolink:a(se),autolinkProtocol:T,autolinkEmail:T,atxHeading:a(K),blockQuote:a(te),characterEscape:T,characterReference:T,codeFenced:a(G),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:a(G,o),codeText:a(ne,o),codeTextData:T,data:T,codeFlowValue:T,definition:a(re),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:a(ie),hardBreakEscape:a(q),hardBreakTrailing:a(q),htmlFlow:a(ae,o),htmlFlowData:T,htmlText:a(ae,o),htmlTextData:T,image:a(oe),label:o,link:a(se),listItem:a(ce),listItemValue:f,listOrdered:a(J,d),listUnordered:a(J),paragraph:a(le),reference:z,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:a(K),strong:a(ue),thematicBreak:a(fe)},exit:{atxHeading:c(),atxHeadingSequence:x,autolink:c(),autolinkEmail:ee,autolinkProtocol:W,blockQuote:c(),characterEscapeValue:E,characterReferenceMarkerHexadecimal:V,characterReferenceMarkerNumeric:V,characterReferenceValue:H,characterReference:U,codeFenced:c(g),codeFencedFence:h,codeFencedFenceInfo:p,codeFencedFenceMeta:m,codeFlowValue:E,codeIndented:c(_),codeText:c(j),codeTextData:E,data:E,definition:c(),definitionDestinationString:b,definitionLabelString:v,definitionTitleString:y,emphasis:c(),hardBreakEscape:c(O),hardBreakTrailing:c(O),htmlFlow:c(k),htmlFlowData:E,htmlText:c(A),htmlTextData:E,image:c(N),label:F,labelText:P,lineEnding:D,link:c(M),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:B,resourceDestinationString:I,resourceTitleString:L,resource:R,setextHeading:c(w),setextHeadingLineSequence:C,setextHeadingText:S,strong:c(),thematicBreak:c()}};fI(t,(e||{}).mdastExtensions||[]);let n={};return r;function r(e){let r={type:`root`,children:[]},a={stack:[r],tokenStack:[],config:t,enter:s,exit:l,buffer:o,resume:u,data:n},c=[],d=-1;for(;++d<e.length;)(e[d][1].type===`listOrdered`||e[d][1].type===`listUnordered`)&&(e[d][0]===`enter`?c.push(d):d=i(e,c.pop(),d));for(d=-1;++d<e.length;){let n=t[e[d][0]];cI.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},a),e[d][1])}if(a.tokenStack.length>0){let e=a.tokenStack[a.tokenStack.length-1];(e[1]||mI).call(a,void 0,e[0])}for(r.position={start:dI(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:dI(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)r=t.transforms[d](r)||r;return r}function i(e,t,n){let r=t-1,i=-1,a=!1,o,s,c,l;for(;++r<=n;){let t=e[r];switch(t[1].type){case`listUnordered`:case`listOrdered`:case`blockQuote`:t[0]===`enter`?i++:i--,l=void 0;break;case`lineEndingBlank`:t[0]===`enter`&&(o&&!l&&!i&&!c&&(c=r),l=void 0);break;case`linePrefix`:case`listItemValue`:case`listItemMarker`:case`listItemPrefix`:case`listItemPrefixWhitespace`:break;default:l=void 0}if(!i&&t[0]===`enter`&&t[1].type===`listItemPrefix`||i===-1&&t[0]===`exit`&&(t[1].type===`listUnordered`||t[1].type===`listOrdered`)){if(o){let i=r;for(s=void 0;i--;){let t=e[i];if(t[1].type===`lineEnding`||t[1].type===`lineEndingBlank`){if(t[0]===`exit`)continue;s&&(e[s][1].type=`lineEndingBlank`,a=!0),t[1].type=`lineEnding`,s=i}else if(!(t[1].type===`linePrefix`||t[1].type===`blockQuotePrefix`||t[1].type===`blockQuotePrefixWhitespace`||t[1].type===`blockQuoteMarker`||t[1].type===`listItemIndent`))break}c&&(!s||c<s)&&(o._spread=!0),o.end=Object.assign({},s?e[s][1].start:t[1].end),e.splice(s||r,0,[`exit`,o,t[2]]),r++,n++}if(t[1].type===`listItemPrefix`){let i={type:`listItem`,_spread:!1,start:Object.assign({},t[1].start),end:void 0};o=i,e.splice(r,0,[`enter`,i,t[2]]),r++,n++,c=void 0,l=!0}}}return e[t][1]._spread=a,n}function a(e,t){return n;function n(n){s.call(this,e(n),n),t&&t.call(this,n)}}function o(){this.stack.push({type:`fragment`,children:[]})}function s(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:dI(t.start),end:void 0}}function c(e){return t;function t(t){e&&e.call(this,t),l.call(this,t)}}function l(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(r)r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||mI).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+NM({start:e.start,end:e.end})+`): it’s not open`);n.position.end=dI(e.end)}function u(){return hN(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function f(e){if(this.data.expectingFirstListItemValue){let t=this.stack[this.stack.length-2];t.start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function p(){let e=this.resume(),t=this.stack[this.stack.length-1];t.lang=e}function m(){let e=this.resume(),t=this.stack[this.stack.length-1];t.meta=e}function h(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function g(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,``),this.data.flowCodeInside=void 0}function _(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/(\r?\n|\r)$/g,``)}function v(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=ON(this.sliceSerialize(e)).toLowerCase()}function y(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function b(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function x(e){let t=this.stack[this.stack.length-1];t.depth||=this.sliceSerialize(e).length}function S(){this.data.setextHeadingSlurpLineEnding=!0}function C(e){let t=this.stack[this.stack.length-1];t.depth=this.sliceSerialize(e).codePointAt(0)===61?1:2}function w(){this.data.setextHeadingSlurpLineEnding=void 0}function T(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];(!n||n.type!==`text`)&&(n=de(),n.position={start:dI(e.start),end:void 0},t.push(n)),this.stack.push(n)}function E(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=dI(e.end)}function D(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){let t=n.children[n.children.length-1];t.position.end=dI(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(T.call(this,e),E.call(this,e))}function O(){this.data.atHardBreak=!0}function k(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function A(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function j(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function M(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function N(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function P(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=oI(t),n.identifier=ON(t).toLowerCase()}function F(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,n.type===`link`?n.children=e.children:n.alt=t}function I(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function L(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function R(){this.data.inReference=void 0}function z(){this.data.referenceType=`collapsed`}function B(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=ON(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType=`full`}function V(e){this.data.characterReferenceType=e.type}function H(e){let t=this.sliceSerialize(e),n=this.data.characterReferenceType,r;n?(r=DN(t,n===`characterReferenceMarkerNumeric`?10:16),this.data.characterReferenceType=void 0):r=bN(t);let i=this.stack[this.stack.length-1];i.value+=r}function U(e){let t=this.stack.pop();t.position.end=dI(e.end)}function W(e){E.call(this,e);let t=this.stack[this.stack.length-1];t.url=this.sliceSerialize(e)}function ee(e){E.call(this,e);let t=this.stack[this.stack.length-1];t.url=`mailto:`+this.sliceSerialize(e)}function te(){return{type:`blockquote`,children:[]}}function G(){return{type:`code`,lang:null,meta:null,value:``}}function ne(){return{type:`inlineCode`,value:``}}function re(){return{type:`definition`,identifier:``,label:null,title:null,url:``}}function ie(){return{type:`emphasis`,children:[]}}function K(){return{type:`heading`,depth:0,children:[]}}function q(){return{type:`break`}}function ae(){return{type:`html`,value:``}}function oe(){return{type:`image`,title:null,url:``,alt:null}}function se(){return{type:`link`,title:null,url:``,children:[]}}function J(e){return{type:`list`,ordered:e.type===`listOrdered`,start:null,spread:e._spread,children:[]}}function ce(e){return{type:`listItem`,spread:e._spread,checked:null,children:[]}}function le(){return{type:`paragraph`,children:[]}}function ue(){return{type:`strong`,children:[]}}function de(){return{type:`text`,value:``}}function fe(){return{type:`thematicBreak`}}}function dI(e){return{line:e.line,column:e.column,offset:e.offset}}function fI(e,t){let n=-1;for(;++n<t.length;){let r=t[n];Array.isArray(r)?fI(e,r):pI(e,r)}}function pI(e,t){let n;for(n in t)if(cI.call(t,n))switch(n){case`canContainEols`:{let r=t[n];r&&e[n].push(...r);break}case`transforms`:{let r=t[n];r&&e[n].push(...r);break}case`enter`:case`exit`:{let r=t[n];r&&Object.assign(e[n],r);break}}}function mI(e,t){throw Error(e?"Cannot close `"+e.type+"` ("+NM({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+NM({start:t.start,end:t.end})+`) is open`:"Cannot close document, a token (`"+t.type+"`, "+NM({start:t.start,end:t.end})+`) is still open`)}function hI(e){let t=this;t.parser=n;function n(n){return lI(n,{...t.data(`settings`),...e,extensions:t.data(`micromarkExtensions`)||[],mdastExtensions:t.data(`fromMarkdownExtensions`)||[]})}}function gI(e,t){let n={type:`element`,tagName:`blockquote`,properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function _I(e,t){let n={type:`element`,tagName:`br`,properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:`text`,value:`
|
|
262
|
-
`}]}function
|
|
263
|
-
`:``,r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=[`language-`+i[0]]);let a={type:`element`,tagName:`code`,properties:r,children:[{type:`text`,value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:`element`,tagName:`pre`,properties:{},children:[a]},e.patch(t,a),a}function
|
|
261
|
+
`;break;case-2:o=t?` `:` `;break;case-1:if(!t&&i)continue;o=` `;break;default:o=String.fromCharCode(a)}i=a===-2,r.push(o)}return r.join(``)}function wI(e){let t={constructs:qN([dI,...(e||{}).extensions||[]]),content:n(pP),defined:[],document:n(hP),flow:n(rI),lazy:{},string:n(oI),text:n(sI)};return t;function n(e){return n;function n(n){return xI(t,e,n)}}}function TI(e){for(;!ZP(e););return e}var EI=/[\0\t\n\r]/g;function DI(){let e=1,t=``,n=!0,r;return i;function i(i,a,o){let s=[],c,l,u,d,f;for(i=t+(typeof i==`string`?i.toString():new TextDecoder(a||void 0).decode(i)),u=0,t=``,n&&=(i.charCodeAt(0)===65279&&u++,void 0);u<i.length;){if(EI.lastIndex=u,c=EI.exec(i),d=c&&c.index!==void 0?c.index:i.length,f=i.charCodeAt(d),!c){t=i.slice(u);break}if(f===10&&u===d&&r)s.push(-3),r=void 0;else switch(r&&=(s.push(-5),void 0),u<d&&(s.push(i.slice(u,d)),e+=d-u),f){case 0:s.push(65533),e++;break;case 9:for(l=Math.ceil(e/4)*4,s.push(-2);e++<l;)s.push(-1);break;case 10:s.push(-4),e=1;break;default:r=!0,e=1}u=d+1}return o&&(r&&s.push(-5),t&&s.push(t),s.push(null)),s}}var OI=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function kI(e){return e.replace(OI,AI)}function AI(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){let e=n.charCodeAt(1),t=e===120||e===88;return XN(n.slice(t?2:1),t?16:10)}return UN(n)||e}var jI={}.hasOwnProperty;function MI(e,t,n){return t&&typeof t==`object`&&(n=t,t=void 0),NI(n)(TI(wI(n).document().write(DI()(e,t,!0))))}function NI(e){let t={transforms:[],canContainEols:[`emphasis`,`fragment`,`heading`,`paragraph`,`strong`],enter:{autolink:a(se),autolinkProtocol:T,autolinkEmail:T,atxHeading:a(K),blockQuote:a(te),characterEscape:T,characterReference:T,codeFenced:a(G),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:a(G,o),codeText:a(ne,o),codeTextData:T,data:T,codeFlowValue:T,definition:a(re),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:a(ie),hardBreakEscape:a(q),hardBreakTrailing:a(q),htmlFlow:a(ae,o),htmlFlowData:T,htmlText:a(ae,o),htmlTextData:T,image:a(oe),label:o,link:a(se),listItem:a(ce),listItemValue:f,listOrdered:a(J,d),listUnordered:a(J),paragraph:a(le),reference:z,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:a(K),strong:a(ue),thematicBreak:a(fe)},exit:{atxHeading:c(),atxHeadingSequence:x,autolink:c(),autolinkEmail:ee,autolinkProtocol:W,blockQuote:c(),characterEscapeValue:E,characterReferenceMarkerHexadecimal:V,characterReferenceMarkerNumeric:V,characterReferenceValue:H,characterReference:U,codeFenced:c(g),codeFencedFence:h,codeFencedFenceInfo:p,codeFencedFenceMeta:m,codeFlowValue:E,codeIndented:c(_),codeText:c(j),codeTextData:E,data:E,definition:c(),definitionDestinationString:b,definitionLabelString:v,definitionTitleString:y,emphasis:c(),hardBreakEscape:c(O),hardBreakTrailing:c(O),htmlFlow:c(k),htmlFlowData:E,htmlText:c(A),htmlTextData:E,image:c(N),label:F,labelText:P,lineEnding:D,link:c(M),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:B,resourceDestinationString:I,resourceTitleString:L,resource:R,setextHeading:c(w),setextHeadingLineSequence:C,setextHeadingText:S,strong:c(),thematicBreak:c()}};FI(t,(e||{}).mdastExtensions||[]);let n={};return r;function r(e){let r={type:`root`,children:[]},a={stack:[r],tokenStack:[],config:t,enter:s,exit:l,buffer:o,resume:u,data:n},c=[],d=-1;for(;++d<e.length;)(e[d][1].type===`listOrdered`||e[d][1].type===`listUnordered`)&&(e[d][0]===`enter`?c.push(d):d=i(e,c.pop(),d));for(d=-1;++d<e.length;){let n=t[e[d][0]];jI.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},a),e[d][1])}if(a.tokenStack.length>0){let e=a.tokenStack[a.tokenStack.length-1];(e[1]||LI).call(a,void 0,e[0])}for(r.position={start:PI(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:PI(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)r=t.transforms[d](r)||r;return r}function i(e,t,n){let r=t-1,i=-1,a=!1,o,s,c,l;for(;++r<=n;){let t=e[r];switch(t[1].type){case`listUnordered`:case`listOrdered`:case`blockQuote`:t[0]===`enter`?i++:i--,l=void 0;break;case`lineEndingBlank`:t[0]===`enter`&&(o&&!l&&!i&&!c&&(c=r),l=void 0);break;case`linePrefix`:case`listItemValue`:case`listItemMarker`:case`listItemPrefix`:case`listItemPrefixWhitespace`:break;default:l=void 0}if(!i&&t[0]===`enter`&&t[1].type===`listItemPrefix`||i===-1&&t[0]===`exit`&&(t[1].type===`listUnordered`||t[1].type===`listOrdered`)){if(o){let i=r;for(s=void 0;i--;){let t=e[i];if(t[1].type===`lineEnding`||t[1].type===`lineEndingBlank`){if(t[0]===`exit`)continue;s&&(e[s][1].type=`lineEndingBlank`,a=!0),t[1].type=`lineEnding`,s=i}else if(!(t[1].type===`linePrefix`||t[1].type===`blockQuotePrefix`||t[1].type===`blockQuotePrefixWhitespace`||t[1].type===`blockQuoteMarker`||t[1].type===`listItemIndent`))break}c&&(!s||c<s)&&(o._spread=!0),o.end=Object.assign({},s?e[s][1].start:t[1].end),e.splice(s||r,0,[`exit`,o,t[2]]),r++,n++}if(t[1].type===`listItemPrefix`){let i={type:`listItem`,_spread:!1,start:Object.assign({},t[1].start),end:void 0};o=i,e.splice(r,0,[`enter`,i,t[2]]),r++,n++,c=void 0,l=!0}}}return e[t][1]._spread=a,n}function a(e,t){return n;function n(n){s.call(this,e(n),n),t&&t.call(this,n)}}function o(){this.stack.push({type:`fragment`,children:[]})}function s(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:PI(t.start),end:void 0}}function c(e){return t;function t(t){e&&e.call(this,t),l.call(this,t)}}function l(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(r)r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||LI).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+nN({start:e.start,end:e.end})+`): it’s not open`);n.position.end=PI(e.end)}function u(){return RN(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function f(e){if(this.data.expectingFirstListItemValue){let t=this.stack[this.stack.length-2];t.start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function p(){let e=this.resume(),t=this.stack[this.stack.length-1];t.lang=e}function m(){let e=this.resume(),t=this.stack[this.stack.length-1];t.meta=e}function h(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function g(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,``),this.data.flowCodeInside=void 0}function _(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/(\r?\n|\r)$/g,``)}function v(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=ZN(this.sliceSerialize(e)).toLowerCase()}function y(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function b(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function x(e){let t=this.stack[this.stack.length-1];t.depth||=this.sliceSerialize(e).length}function S(){this.data.setextHeadingSlurpLineEnding=!0}function C(e){let t=this.stack[this.stack.length-1];t.depth=this.sliceSerialize(e).codePointAt(0)===61?1:2}function w(){this.data.setextHeadingSlurpLineEnding=void 0}function T(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];(!n||n.type!==`text`)&&(n=de(),n.position={start:PI(e.start),end:void 0},t.push(n)),this.stack.push(n)}function E(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=PI(e.end)}function D(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){let t=n.children[n.children.length-1];t.position.end=PI(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(T.call(this,e),E.call(this,e))}function O(){this.data.atHardBreak=!0}function k(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function A(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function j(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function M(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function N(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function P(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=kI(t),n.identifier=ZN(t).toLowerCase()}function F(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,n.type===`link`?n.children=e.children:n.alt=t}function I(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function L(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function R(){this.data.inReference=void 0}function z(){this.data.referenceType=`collapsed`}function B(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=ZN(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType=`full`}function V(e){this.data.characterReferenceType=e.type}function H(e){let t=this.sliceSerialize(e),n=this.data.characterReferenceType,r;n?(r=XN(t,n===`characterReferenceMarkerNumeric`?10:16),this.data.characterReferenceType=void 0):r=UN(t);let i=this.stack[this.stack.length-1];i.value+=r}function U(e){let t=this.stack.pop();t.position.end=PI(e.end)}function W(e){E.call(this,e);let t=this.stack[this.stack.length-1];t.url=this.sliceSerialize(e)}function ee(e){E.call(this,e);let t=this.stack[this.stack.length-1];t.url=`mailto:`+this.sliceSerialize(e)}function te(){return{type:`blockquote`,children:[]}}function G(){return{type:`code`,lang:null,meta:null,value:``}}function ne(){return{type:`inlineCode`,value:``}}function re(){return{type:`definition`,identifier:``,label:null,title:null,url:``}}function ie(){return{type:`emphasis`,children:[]}}function K(){return{type:`heading`,depth:0,children:[]}}function q(){return{type:`break`}}function ae(){return{type:`html`,value:``}}function oe(){return{type:`image`,title:null,url:``,alt:null}}function se(){return{type:`link`,title:null,url:``,children:[]}}function J(e){return{type:`list`,ordered:e.type===`listOrdered`,start:null,spread:e._spread,children:[]}}function ce(e){return{type:`listItem`,spread:e._spread,checked:null,children:[]}}function le(){return{type:`paragraph`,children:[]}}function ue(){return{type:`strong`,children:[]}}function de(){return{type:`text`,value:``}}function fe(){return{type:`thematicBreak`}}}function PI(e){return{line:e.line,column:e.column,offset:e.offset}}function FI(e,t){let n=-1;for(;++n<t.length;){let r=t[n];Array.isArray(r)?FI(e,r):II(e,r)}}function II(e,t){let n;for(n in t)if(jI.call(t,n))switch(n){case`canContainEols`:{let r=t[n];r&&e[n].push(...r);break}case`transforms`:{let r=t[n];r&&e[n].push(...r);break}case`enter`:case`exit`:{let r=t[n];r&&Object.assign(e[n],r);break}}}function LI(e,t){throw Error(e?"Cannot close `"+e.type+"` ("+nN({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+nN({start:t.start,end:t.end})+`) is open`:"Cannot close document, a token (`"+t.type+"`, "+nN({start:t.start,end:t.end})+`) is still open`)}function RI(e){let t=this;t.parser=n;function n(n){return MI(n,{...t.data(`settings`),...e,extensions:t.data(`micromarkExtensions`)||[],mdastExtensions:t.data(`fromMarkdownExtensions`)||[]})}}function zI(e,t){let n={type:`element`,tagName:`blockquote`,properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function BI(e,t){let n={type:`element`,tagName:`br`,properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:`text`,value:`
|
|
262
|
+
`}]}function VI(e,t){let n=t.value?t.value+`
|
|
263
|
+
`:``,r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=[`language-`+i[0]]);let a={type:`element`,tagName:`code`,properties:r,children:[{type:`text`,value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:`element`,tagName:`pre`,properties:{},children:[a]},e.patch(t,a),a}function HI(e,t){let n={type:`element`,tagName:`del`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function UI(e,t){let n={type:`element`,tagName:`em`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function WI(e,t){let n=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,r=String(t.identifier).toUpperCase(),i=dP(r.toLowerCase()),a=e.footnoteOrder.indexOf(r),o,s=e.footnoteCounts.get(r);s===void 0?(s=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=a+1,s+=1,e.footnoteCounts.set(r,s);let c={type:`element`,tagName:`a`,properties:{href:`#`+n+`fn-`+i,id:n+`fnref-`+i+(s>1?`-`+s:``),dataFootnoteRef:!0,ariaDescribedBy:[`footnote-label`]},children:[{type:`text`,value:String(o)}]};e.patch(t,c);let l={type:`element`,tagName:`sup`,properties:{},children:[c]};return e.patch(t,l),e.applyData(t,l)}function GI(e,t){let n={type:`element`,tagName:`h`+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function KI(e,t){if(e.options.allowDangerousHtml){let n={type:`raw`,value:t.value};return e.patch(t,n),e.applyData(t,n)}}function qI(e,t){let n=t.referenceType,r=`]`;if(n===`collapsed`?r+=`[]`:n===`full`&&(r+=`[`+(t.label||t.identifier)+`]`),t.type===`imageReference`)return[{type:`text`,value:`![`+t.alt+r}];let i=e.all(t),a=i[0];a&&a.type===`text`?a.value=`[`+a.value:i.unshift({type:`text`,value:`[`});let o=i[i.length-1];return o&&o.type===`text`?o.value+=r:i.push({type:`text`,value:r}),i}function JI(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return qI(e,t);let i={src:dP(r.url||``),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);let a={type:`element`,tagName:`img`,properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function YI(e,t){let n={src:dP(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);let r={type:`element`,tagName:`img`,properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function XI(e,t){let n={type:`text`,value:t.value.replace(/\r?\n|\r/g,` `)};e.patch(t,n);let r={type:`element`,tagName:`code`,properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function ZI(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return qI(e,t);let i={href:dP(r.url||``)};r.title!==null&&r.title!==void 0&&(i.title=r.title);let a={type:`element`,tagName:`a`,properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function QI(e,t){let n={href:dP(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);let r={type:`element`,tagName:`a`,properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function $I(e,t,n){let r=e.all(t),i=n?eL(n):tL(t),a={},o=[];if(typeof t.checked==`boolean`){let e=r[0],n;e&&e.type===`element`&&e.tagName===`p`?n=e:(n={type:`element`,tagName:`p`,properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:`text`,value:` `}),n.children.unshift({type:`element`,tagName:`input`,properties:{type:`checkbox`,checked:t.checked,disabled:!0},children:[]}),a.className=[`task-list-item`]}let s=-1;for(;++s<r.length;){let e=r[s];(i||s!==0||e.type!==`element`||e.tagName!==`p`)&&o.push({type:`text`,value:`
|
|
264
264
|
`}),e.type===`element`&&e.tagName===`p`&&!i?o.push(...e.children):o.push(e)}let c=r[r.length-1];c&&(i||c.type!==`element`||c.tagName!==`p`)&&o.push({type:`text`,value:`
|
|
265
|
-
`});let l={type:`element`,tagName:`li`,properties:a,children:o};return e.patch(t,l),e.applyData(t,l)}function
|
|
265
|
+
`});let l={type:`element`,tagName:`li`,properties:a,children:o};return e.patch(t,l),e.applyData(t,l)}function eL(e){let t=!1;if(e.type===`list`){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r<n.length;)t=tL(n[r])}return t}function tL(e){return e.spread??e.children.length>1}function nL(e,t){let n={},r=e.all(t),i=-1;for(typeof t.start==`number`&&t.start!==1&&(n.start=t.start);++i<r.length;){let e=r[i];if(e.type===`element`&&e.tagName===`li`&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes(`task-list-item`)){n.className=[`contains-task-list`];break}}let a={type:`element`,tagName:t.ordered?`ol`:`ul`,properties:n,children:e.wrap(r,!0)};return e.patch(t,a),e.applyData(t,a)}function rL(e,t){let n={type:`element`,tagName:`p`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function iL(e,t){let n={type:`root`,children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function aL(e,t){let n={type:`element`,tagName:`strong`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function oL(e,t){let n=e.all(t),r=n.shift(),i=[];if(r){let n={type:`element`,tagName:`thead`,properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){let r={type:`element`,tagName:`tbody`,properties:{},children:e.wrap(n,!0)},a=$M(t.children[1]),o=QM(t.children[t.children.length-1]);a&&o&&(r.position={start:a,end:o}),i.push(r)}let a={type:`element`,tagName:`table`,properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function sL(e,t,n){let r=n?n.children:void 0,i=(r?r.indexOf(t):1)===0?`th`:`td`,a=n&&n.type===`table`?n.align:void 0,o=a?a.length:t.children.length,s=-1,c=[];for(;++s<o;){let n=t.children[s],r={},o=a?a[s]:void 0;o&&(r.align=o);let l={type:`element`,tagName:i,properties:r,children:[]};n&&(l.children=e.all(n),e.patch(n,l),l=e.applyData(n,l)),c.push(l)}let l={type:`element`,tagName:`tr`,properties:{},children:e.wrap(c,!0)};return e.patch(t,l),e.applyData(t,l)}function cL(e,t){let n={type:`element`,tagName:`td`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}var lL=9,uL=32;function dL(e){let t=String(e),n=/\r?\n|\r/g,r=n.exec(t),i=0,a=[];for(;r;)a.push(fL(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(fL(t.slice(i),i>0,!1)),a.join(``)}function fL(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;t===lL||t===uL;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;t===lL||t===uL;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):``}function pL(e,t){let n={type:`text`,value:dL(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function mL(e,t){let n={type:`element`,tagName:`hr`,properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}var hL={blockquote:zI,break:BI,code:VI,delete:HI,emphasis:UI,footnoteReference:WI,heading:GI,html:KI,imageReference:JI,image:YI,inlineCode:XI,linkReference:ZI,link:QI,listItem:$I,list:nL,paragraph:rL,root:iL,strong:aL,table:oL,tableCell:cL,tableRow:sL,text:pL,thematicBreak:mL,toml:gL,yaml:gL,definition:gL,footnoteDefinition:gL};function gL(){}var _L=typeof self==`object`?self:globalThis,vL=(e,t)=>{switch(e){case`Function`:case`SharedWorker`:case`Worker`:case`eval`:case`setInterval`:case`setTimeout`:throw TypeError(`unable to deserialize `+e)}return new _L[e](t)},yL=(e,t)=>{let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[a,o]=t[i];switch(a){case 0:case-1:return n(o,i);case 1:{let e=n([],i);for(let t of o)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of o)e[r(t)]=r(n);return e}case 3:return n(new Date(o),i);case 4:{let{source:e,flags:t}=o;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of o)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of o)e.add(r(t));return e}case 7:{let{name:e,message:t}=o;return n(vL(e,t),i)}case 8:return n(BigInt(o),i);case`BigInt`:return n(Object(BigInt(o)),i);case`ArrayBuffer`:return n(new Uint8Array(o).buffer,o);case`DataView`:{let{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}}return n(vL(a,o),i)};return r},bL=e=>yL(new Map,e)(0),xL=``,{toString:SL}={},{keys:CL}=Object,wL=e=>{let t=typeof e;if(t!==`object`||!e)return[0,t];let n=SL.call(e).slice(8,-1);switch(n){case`Array`:return[1,xL];case`Object`:return[2,xL];case`Date`:return[3,xL];case`RegExp`:return[4,xL];case`Map`:return[5,xL];case`Set`:return[6,xL];case`DataView`:return[1,n]}return n.includes(`Array`)?[1,n]:n.includes(`Error`)?[7,n]:[2,n]},TL=([e,t])=>e===0&&(t===`function`||t===`symbol`),EL=(e,t,n,r)=>{let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},a=r=>{if(n.has(r))return n.get(r);let[o,s]=wL(r);switch(o){case 0:{let t=r;switch(s){case`bigint`:o=8,t=r.toString();break;case`function`:case`symbol`:if(e)throw TypeError(`unable to serialize `+s);t=null;break;case`undefined`:return i([-1],r)}return i([o,t],r)}case 1:{if(s){let e=r;return s===`DataView`?e=new Uint8Array(r.buffer):s===`ArrayBuffer`&&(e=new Uint8Array(r)),i([s,[...e]],r)}let e=[],t=i([o,e],r);for(let t of r)e.push(a(t));return t}case 2:{if(s)switch(s){case`BigInt`:return i([s,r.toString()],r);case`Boolean`:case`Number`:case`String`:return i([s,r.valueOf()],r)}if(t&&`toJSON`in r)return a(r.toJSON());let n=[],c=i([o,n],r);for(let t of CL(r))(e||!TL(wL(r[t])))&&n.push([a(t),a(r[t])]);return c}case 3:return i([o,r.toISOString()],r);case 4:{let{source:e,flags:t}=r;return i([o,{source:e,flags:t}],r)}case 5:{let t=[],n=i([o,t],r);for(let[n,i]of r)(e||!(TL(wL(n))||TL(wL(i))))&&t.push([a(n),a(i)]);return n}case 6:{let t=[],n=i([o,t],r);for(let n of r)(e||!TL(wL(n)))&&t.push(a(n));return n}}let{message:c}=r;return i([o,{name:s,message:c}],r)};return a},DL=(e,{json:t,lossy:n}={})=>{let r=[];return EL(!(t||n),!!t,new Map,r)(e),r},OL=typeof structuredClone==`function`?(e,t)=>t&&(`json`in t||`lossy`in t)?bL(DL(e,t)):structuredClone(e):(e,t)=>bL(DL(e,t));function kL(e,t){let n=[{type:`text`,value:`↩`}];return t>1&&n.push({type:`element`,tagName:`sup`,properties:{},children:[{type:`text`,value:String(t)}]}),n}function AL(e,t){return`Back to reference `+(e+1)+(t>1?`-`+t:``)}function jL(e){let t=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,n=e.options.footnoteBackContent||kL,r=e.options.footnoteBackLabel||AL,i=e.options.footnoteLabel||`Footnotes`,a=e.options.footnoteLabelTagName||`h2`,o=e.options.footnoteLabelProperties||{className:[`sr-only`]},s=[],c=-1;for(;++c<e.footnoteOrder.length;){let i=e.footnoteById.get(e.footnoteOrder[c]);if(!i)continue;let a=e.all(i),o=String(i.identifier).toUpperCase(),l=dP(o.toLowerCase()),u=0,d=[],f=e.footnoteCounts.get(o);for(;f!==void 0&&++u<=f;){d.length>0&&d.push({type:`text`,value:` `});let e=typeof n==`string`?n:n(c,u);typeof e==`string`&&(e={type:`text`,value:e}),d.push({type:`element`,tagName:`a`,properties:{href:`#`+t+`fnref-`+l+(u>1?`-`+u:``),dataFootnoteBackref:``,ariaLabel:typeof r==`string`?r:r(c,u),className:[`data-footnote-backref`]},children:Array.isArray(e)?e:[e]})}let p=a[a.length-1];if(p&&p.type===`element`&&p.tagName===`p`){let e=p.children[p.children.length-1];e&&e.type===`text`?e.value+=` `:p.children.push({type:`text`,value:` `}),p.children.push(...d)}else a.push(...d);let m={type:`element`,tagName:`li`,properties:{id:t+`fn-`+l},children:e.wrap(a,!0)};e.patch(i,m),s.push(m)}if(s.length!==0)return{type:`element`,tagName:`section`,properties:{dataFootnotes:!0,className:[`footnotes`]},children:[{type:`element`,tagName:a,properties:{...OL(o),id:`footnote-label`},children:[{type:`text`,value:i}]},{type:`text`,value:`
|
|
266
266
|
`},{type:`element`,tagName:`ol`,properties:{},children:e.wrap(s,!0)},{type:`text`,value:`
|
|
267
|
-
`}]}}var
|
|
267
|
+
`}]}}var ML=(function(e){if(e==null)return LL;if(typeof e==`function`)return IL(e);if(typeof e==`object`)return Array.isArray(e)?NL(e):PL(e);if(typeof e==`string`)return FL(e);throw Error(`Expected function, string, or object as test`)});function NL(e){let t=[],n=-1;for(;++n<e.length;)t[n]=ML(e[n]);return IL(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}function PL(e){let t=e;return IL(n);function n(n){let r=n,i;for(i in e)if(r[i]!==t[i])return!1;return!0}}function FL(e){return IL(t);function t(t){return t&&t.type===e}}function IL(e){return t;function t(t,n,r){return!!(RL(t)&&e.call(this,t,typeof n==`number`?n:void 0,r||void 0))}}function LL(){return!0}function RL(e){return typeof e==`object`&&!!e&&`type`in e}function zL(e){return e}var BL=[];function VL(e,t,n,r){let i;typeof t==`function`&&typeof n!=`function`?(r=n,n=t):i=t;let a=ML(i),o=r?-1:1;s(e,void 0,[])();function s(e,i,c){let l=e&&typeof e==`object`?e:{};if(typeof l.type==`string`){let t=typeof l.tagName==`string`?l.tagName:typeof l.name==`string`?l.name:void 0;Object.defineProperty(u,`name`,{value:`node (`+zL(e.type+(t?`<`+t+`>`:``))+`)`})}return u;function u(){let l=BL,u,d,f;if((!t||a(e,i,c[c.length-1]||void 0))&&(l=HL(n(e,c)),l[0]===!1))return l;if(`children`in e&&e.children){let t=e;if(t.children&&l[0]!==`skip`)for(d=(r?t.children.length:-1)+o,f=c.concat(t);d>-1&&d<t.children.length;){let e=t.children[d];if(u=s(e,d,f)(),u[0]===!1)return u;d=typeof u[1]==`number`?u[1]:d+o}}return l}}}function HL(e){return Array.isArray(e)?e:typeof e==`number`?[!0,e]:e==null?BL:[e]}function UL(e,t,n,r){let i,a,o;typeof t==`function`&&typeof n!=`function`?(a=void 0,o=t,i=n):(a=t,o=n,i=r),VL(e,a,s,i);function s(e,t){let n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return o(e,r,n)}}var WL={}.hasOwnProperty,GL={};function KL(e,t){let n=t||GL,r=new Map,i=new Map,a={all:s,applyData:JL,definitionById:r,footnoteById:i,footnoteCounts:new Map,footnoteOrder:[],handlers:{...hL,...n.handlers},one:o,options:n,patch:qL,wrap:XL};return UL(e,function(e){if(e.type===`definition`||e.type===`footnoteDefinition`){let t=e.type===`definition`?r:i,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),a;function o(e,t){let n=e.type,r=a.handlers[n];if(WL.call(a.handlers,n)&&r)return r(a,e,t);if(a.options.passThrough&&a.options.passThrough.includes(n)){if(`children`in e){let{children:t,...n}=e,r=OL(n);return r.children=a.all(e),r}return OL(e)}return(a.options.unknownHandler||YL)(a,e,t)}function s(e){let t=[];if(`children`in e){let n=e.children,r=-1;for(;++r<n.length;){let i=a.one(n[r],e);if(i){if(r&&n[r-1].type===`break`&&(!Array.isArray(i)&&i.type===`text`&&(i.value=ZL(i.value)),!Array.isArray(i)&&i.type===`element`)){let e=i.children[0];e&&e.type===`text`&&(e.value=ZL(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t}}function qL(e,t){e.position&&(t.position=tN(e))}function JL(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;typeof t==`string`&&(n.type===`element`?n.tagName=t:n={type:`element`,tagName:t,properties:{},children:`children`in n?n.children:[n]}),n.type===`element`&&i&&Object.assign(n.properties,OL(i)),`children`in n&&n.children&&r!=null&&(n.children=r)}return n}function YL(e,t){let n=t.data||{},r=`value`in t&&!(WL.call(n,`hProperties`)||WL.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 XL(e,t){let n=[],r=-1;for(t&&n.push({type:`text`,value:`
|
|
268
268
|
`});++r<e.length;)r&&n.push({type:`text`,value:`
|
|
269
269
|
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:`text`,value:`
|
|
270
|
-
`}),n}function
|
|
271
|
-
`},i)),a}function AL(e,t){return e&&`run`in e?async function(n,r){let i=kL(n,{file:r,...t});await e.run(i,r)}:function(n,r){return kL(n,{file:r,...e||t})}}function jL(e){if(e)throw e}var ML=o(((e,t)=>{var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=function(e){return typeof Array.isArray==`function`?Array.isArray(e):r.call(e)===`[object Array]`},s=function(e){if(!e||r.call(e)!==`[object Object]`)return!1;var t=n.call(e,`constructor`),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,`isPrototypeOf`);if(e.constructor&&!t&&!i)return!1;for(var a in e);return a===void 0||n.call(e,a)},c=function(e,t){i&&t.name===`__proto__`?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,t){if(t===`__proto__`){if(!n.call(e,t))return;if(a)return a(e,t).value}return e[t]};t.exports=function e(){var t,n,r,i,a,u,d=arguments[0],f=1,p=arguments.length,m=!1;for(typeof d==`boolean`&&(m=d,d=arguments[1]||{},f=2),(d==null||typeof d!=`object`&&typeof d!=`function`)&&(d={});f<p;++f)if(t=arguments[f],t!=null)for(n in t)r=l(d,n),i=l(t,n),d!==i&&(m&&i&&(s(i)||(a=o(i)))?(a?(a=!1,u=r&&o(r)?r:[]):u=r&&s(r)?r:{},c(d,{name:n,newValue:e(m,u,i)})):i!==void 0&&c(d,{name:n,newValue:i}));return d}}));function NL(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function PL(){let e=[],t={run:n,use:r};return t;function n(...t){let n=-1,r=t.pop();if(typeof r!=`function`)throw TypeError(`Expected function as last argument, not `+r);i(null,...t);function i(a,...o){let s=e[++n],c=-1;if(a){r(a);return}for(;++c<t.length;)(o[c]===null||o[c]===void 0)&&(o[c]=t[c]);t=o,s?FL(s,i)(...o):r(null,...o)}}function r(n){if(typeof n!=`function`)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}}function FL(e,t){let n;return r;function r(...t){let r=e.length>t.length,o;r&&t.push(i);try{o=e.apply(this,t)}catch(e){let t=e;if(r&&n)throw t;return i(t)}r||(o&&o.then&&typeof o.then==`function`?o.then(a,i):o instanceof Error?i(o):a(o))}function i(e,...r){n||(n=!0,t(e,...r))}function a(e){i(null,e)}}var IL={basename:LL,dirname:RL,extname:zL,join:BL,sep:`/`};function LL(e,t){if(t!==void 0&&typeof t!=`string`)throw TypeError(`"ext" argument must be a string`);UL(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?``:e.slice(n,r)}if(t===e)return``;let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function RL(e){if(UL(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||=!0;return t<0?e.codePointAt(0)===47?`/`:`.`:t===1&&e.codePointAt(0)===47?`//`:e.slice(0,t)}function zL(e){UL(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){let s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?``:e.slice(i,n)}function BL(...e){let t=-1,n;for(;++t<e.length;)UL(e[t]),e[t]&&(n=n===void 0?e[t]:n+`/`+e[t]);return n===void 0?`.`:VL(n)}function VL(e){UL(e);let t=e.codePointAt(0)===47,n=HL(e,!t);return n.length===0&&!t&&(n=`.`),n.length>0&&e.codePointAt(e.length-1)===47&&(n+=`/`),t?`/`+n:n}function HL(e,t){let n=``,r=0,i=-1,a=0,o=-1,s,c;for(;++o<=e.length;){if(o<e.length)s=e.codePointAt(o);else if(s===47)break;else s=47;if(s===47){if(!(i===o-1||a===1))if(i!==o-1&&a===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(c=n.lastIndexOf(`/`),c!==n.length-1){c<0?(n=``,r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf(`/`)),i=o,a=0;continue}}else if(n.length>0){n=``,r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+`/..`:`..`,r=2)}else n.length>0?n+=`/`+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,a=0}else s===46&&a>-1?a++:a=-1}return n}function UL(e){if(typeof e!=`string`)throw TypeError(`Path must be a string. Received `+JSON.stringify(e))}var WL={cwd:GL};function GL(){return`/`}function KL(e){return!!(typeof e==`object`&&e&&`href`in e&&e.href&&`protocol`in e&&e.protocol&&e.auth===void 0)}function qL(e){if(typeof e==`string`)e=new URL(e);else if(!KL(e)){let t=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:`){let e=TypeError(`The URL must be of scheme file`);throw e.code=`ERR_INVALID_URL_SCHEME`,e}return JL(e)}function JL(e){if(e.hostname!==``){let e=TypeError(`File URL host must be "localhost" or empty on darwin`);throw e.code=`ERR_INVALID_FILE_URL_HOST`,e}let t=e.pathname,n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){let e=t.codePointAt(n+2);if(e===70||e===102){let e=TypeError(`File URL path must not include encoded / characters`);throw e.code=`ERR_INVALID_FILE_URL_PATH`,e}}return decodeURIComponent(t)}var YL=[`history`,`path`,`basename`,`stem`,`extname`,`dirname`],XL=class{constructor(e){let t;t=e?KL(e)?{path:e}:typeof e==`string`||eR(e)?{value:e}:e:{},this.cwd=`cwd`in t?``:WL.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<YL.length;){let e=YL[n];e in t&&t[e]!==void 0&&t[e]!==null&&(this[e]=e===`history`?[...t[e]]:t[e])}let r;for(r in t)YL.includes(r)||(this[r]=t[r])}get basename(){return typeof this.path==`string`?IL.basename(this.path):void 0}set basename(e){QL(e,`basename`),ZL(e,`basename`),this.path=IL.join(this.dirname||``,e)}get dirname(){return typeof this.path==`string`?IL.dirname(this.path):void 0}set dirname(e){$L(this.basename,`dirname`),this.path=IL.join(e||``,this.basename)}get extname(){return typeof this.path==`string`?IL.extname(this.path):void 0}set extname(e){if(ZL(e,`extname`),$L(this.dirname,`extname`),e){if(e.codePointAt(0)!==46)throw Error("`extname` must start with `.`");if(e.includes(`.`,1))throw Error("`extname` cannot contain multiple dots")}this.path=IL.join(this.dirname,this.stem+(e||``))}get path(){return this.history[this.history.length-1]}set path(e){KL(e)&&(e=qL(e)),QL(e,`path`),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path==`string`?IL.basename(this.path,this.extname):void 0}set stem(e){QL(e,`stem`),ZL(e,`stem`),this.path=IL.join(this.dirname||``,e+(this.extname||``))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let r=new LM(e,t,n);return this.path&&(r.name=this.path+`:`+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return this.value===void 0?``:typeof this.value==`string`?this.value:new TextDecoder(e||void 0).decode(this.value)}};function ZL(e,t){if(e&&e.includes(IL.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+IL.sep+"`")}function QL(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function $L(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}function eR(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var tR=(function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r}),nR=l(ML(),1),rR={}.hasOwnProperty,iR=new class e extends tR{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=PL()}copy(){let t=new e,n=-1;for(;++n<this.attachers.length;){let e=this.attachers[n];t.use(...e)}return t.data((0,nR.default)(!0,{},this.namespace)),t}data(e,t){return typeof e==`string`?arguments.length===2?(sR(`data`,this.frozen),this.namespace[e]=t,this):rR.call(this.namespace,e)&&this.namespace[e]||void 0:e?(sR(`data`,this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;let e=this;for(;++this.freezeIndex<this.attachers.length;){let[t,...n]=this.attachers[this.freezeIndex];if(n[0]===!1)continue;n[0]===!0&&(n[0]=void 0);let r=t.call(e,...n);typeof r==`function`&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=1/0,this}parse(e){this.freeze();let t=uR(e),n=this.parser||this.Parser;return aR(`parse`,n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),aR(`process`,this.parser||this.Parser),oR(`process`,this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let a=uR(e),o=n.parse(a);n.run(o,a,function(e,t,r){if(e||!t||!r)return s(e);let i=t,a=n.stringify(i,r);fR(a)?r.value=a:r.result=a,s(e,r)});function s(e,n){e||!n?i(e):r?r(n):t(void 0,n)}}}processSync(e){let t=!1,n;return this.freeze(),aR(`processSync`,this.parser||this.Parser),oR(`processSync`,this.compiler||this.Compiler),this.process(e,r),lR(`processSync`,`process`,t),n;function r(e,r){t=!0,jL(e),n=r}}run(e,t,n){cR(e),this.freeze();let r=this.transformers;return!n&&typeof t==`function`&&(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,a){let o=uR(t);r.run(e,o,s);function s(t,r,o){let s=r||e;t?a(t):i?i(s):n(void 0,s,o)}}}runSync(e,t){let n=!1,r;return this.run(e,t,i),lR(`runSync`,`run`,n),r;function i(e,t){jL(e),r=t,n=!0}}stringify(e,t){this.freeze();let n=uR(t),r=this.compiler||this.Compiler;return oR(`stringify`,r),cR(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(sR(`use`,this.frozen),e!=null)if(typeof e==`function`)s(e,t);else if(typeof e==`object`)Array.isArray(e)?o(e):a(e);else throw TypeError("Expected usable value, not `"+e+"`");return this;function i(e){if(typeof e==`function`)s(e,[]);else if(typeof e==`object`)if(Array.isArray(e)){let[t,...n]=e;s(t,n)}else a(e);else throw TypeError("Expected usable value, not `"+e+"`")}function a(e){if(!(`plugins`in e)&&!(`settings`in e))throw 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");o(e.plugins),e.settings&&(r.settings=(0,nR.default)(!0,r.settings,e.settings))}function o(e){let t=-1;if(e!=null)if(Array.isArray(e))for(;++t<e.length;){let n=e[t];i(n)}else throw TypeError("Expected a list of plugins, not `"+e+"`")}function s(e,t){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===e){i=r;break}if(i===-1)n.push([e,...t]);else if(t.length>0){let[r,...a]=t,o=n[i][1];NL(o)&&NL(r)&&(r=(0,nR.default)(!0,o,r)),n[i]=[e,r,...a]}}}}().freeze();function aR(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `parser`")}function oR(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `compiler`")}function sR(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function cR(e){if(!NL(e)||typeof e.type!=`string`)throw TypeError("Expected node, got `"+e+"`")}function lR(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function uR(e){return dR(e)?e:new XL(e)}function dR(e){return!!(e&&typeof e==`object`&&`message`in e&&`messages`in e)}function fR(e){return typeof e==`string`||pR(e)}function pR(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var mR=[],hR={allowDangerousHtml:!0},gR=/^(https?|ircs?|mailto|xmpp)$/i,_R=[{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 vR(e){let t=yR(e),n=bR(e);return xR(t.runSync(t.parse(n),n),e)}function yR(e){let t=e.rehypePlugins||mR,n=e.remarkPlugins||mR,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...hR}:hR;return iR().use(hI).use(n).use(AL,r).use(t)}function bR(e){let t=e.children||``,n=new XL;return typeof t==`string`?n.value=t:``+t,n}function xR(e,t){let n=t.allowedElements,r=t.allowElement,i=t.components,a=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,c=t.urlTransform||SR;for(let e of _R)Object.hasOwn(t,e.from)&&``+e.from+(e.to?"use `"+e.to+"` instead":`remove it`)+e.id;return bL(e,l),GM(e,{Fragment:Q.Fragment,components:i,ignoreInvalidStyle:!0,jsx:Q.jsx,jsxs:Q.jsxs,passKeys:!0,passNode:!0});function l(e,t,i){if(e.type===`raw`&&i&&typeof t==`number`)return o?i.children.splice(t,1):i.children[t]={type:`text`,value:e.value},t;if(e.type===`element`){let t;for(t in pN)if(Object.hasOwn(pN,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=pN[t];(r===null||r.includes(e.tagName))&&(e.properties[t]=c(String(n||``),t,e))}}if(e.type===`element`){let o=n?!n.includes(e.tagName):a?a.includes(e.tagName):!1;if(!o&&r&&typeof t==`number`&&(o=!r(e,t,i)),o&&i&&typeof t==`number`)return s&&e.children?i.children.splice(t,1,...e.children):i.children.splice(t,1),t}}}function SR(e){let 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||gR.test(e.slice(0,t))?e:``}var CR=l(o(((e,t)=>{(function(){var e=t===void 0?function(){return this||(0,eval)(`this`)}():t.exports=i;e.format=i,e.vsprintf=r,typeof console<`u`&&typeof console.log==`function`&&(e.printf=n);function n(){console.log(i.apply(null,arguments))}function r(e,t){return i.apply(null,[e].concat(t))}function i(e){for(var t=1,n=[].slice.call(arguments),r=0,i=e.length,a=``,o,s=!1,c,l,u=!1,d,f=function(){return n[t++]},p=function(){for(var t=``;/\d/.test(e[r]);)t+=e[r++],o=e[r];return t.length>0?parseInt(t):null};r<i;++r)if(o=e[r],s)switch(s=!1,o==`.`?(u=!1,o=e[++r]):o==`0`&&e[r+1]==`.`?(u=!0,r+=2,o=e[r]):u=!0,d=p(),o){case`b`:a+=parseInt(f(),10).toString(2);break;case`c`:c=f(),typeof c==`string`||c instanceof String?a+=c:a+=String.fromCharCode(parseInt(c,10));break;case`d`:a+=parseInt(f(),10);break;case`f`:l=String(parseFloat(f()).toFixed(d||6)),a+=u?l:l.replace(/^0/,``);break;case`j`:a+=JSON.stringify(f());break;case`o`:a+=`0`+parseInt(f(),10).toString(8);break;case`s`:a+=f();break;case`x`:a+=`0x`+parseInt(f(),10).toString(16);break;case`X`:a+=`0x`+parseInt(f(),10).toString(16).toUpperCase();break;default:a+=o;break}else o===`%`?s=!0:a+=o;return a}})()}))(),1),wR=Object.assign(TR(Error),{eval:TR(EvalError),range:TR(RangeError),reference:TR(ReferenceError),syntax:TR(SyntaxError),type:TR(TypeError),uri:TR(URIError)});function TR(e){return t.displayName=e.displayName||e.name,t;function t(t,...n){return new e(t&&(0,CR.default)(t,...n))}}var ER={}.hasOwnProperty,DR={yaml:`-`,toml:`+`};function OR(e){let t=[],n=-1,r=Array.isArray(e)?e:e?[e]:[`yaml`];for(;++n<r.length;)t[n]=kR(r[n]);return t}function kR(e){let t=e;if(typeof t==`string`){if(!ER.call(DR,t))throw wR("Missing matter definition for `%s`",t);t={type:t,marker:DR[t]}}else if(typeof t!=`object`)throw wR("Expected matter to be an object, not `%j`",t);if(!ER.call(t,`type`))throw wR("Missing `type` in matter `%j`",t);if(!ER.call(t,`fence`)&&!ER.call(t,`marker`))throw wR("Missing `marker` or `fence` in matter `%j`",t);return t}function AR(e){let t=OR(e),n={},r=-1;for(;++r<t.length;){let e=t[r],i=MR(e,`open`).charCodeAt(0),a=jR(e),o=n[i];Array.isArray(o)?o.push(a):n[i]=[a]}return{flow:n}}function jR(e){let t=e.anywhere,n=e.type,r=n+`Fence`,i=r+`Sequence`,a=n+`Value`,o={tokenize:u,partial:!0},s,c=0;return{tokenize:l,concrete:!0};function l(l,u,d){let f=this;return p;function p(a){let o=f.now();return o.column===1&&(o.line===1||t)&&(s=MR(e,`open`),c=0,a===s.charCodeAt(c))?(l.enter(n),l.enter(r),l.enter(i),m(a)):d(a)}function m(e){return c===s.length?(l.exit(i),RN(e)?(l.enter(`whitespace`),h(e)):g(e)):e===s.charCodeAt(c++)?(l.consume(e),m):d(e)}function h(e){return RN(e)?(l.consume(e),h):(l.exit(`whitespace`),g(e))}function g(t){return IN(t)?(l.exit(r),l.enter(`lineEnding`),l.consume(t),l.exit(`lineEnding`),s=MR(e,`close`),c=0,l.attempt(o,b,_)):d(t)}function _(e){return e===null||IN(e)?y(e):(l.enter(a),v(e))}function v(e){return e===null||IN(e)?(l.exit(a),y(e)):(l.consume(e),v)}function y(e){return e===null?d(e):(l.enter(`lineEnding`),l.consume(e),l.exit(`lineEnding`),l.attempt(o,b,_))}function b(e){return l.exit(n),u(e)}}function u(e,t,n){let a=0;return o;function o(t){return t===s.charCodeAt(a)?(e.enter(r),e.enter(i),c(t)):n(t)}function c(t){return a===s.length?(e.exit(i),RN(t)?(e.enter(`whitespace`),l(t)):u(t)):t===s.charCodeAt(a++)?(e.consume(t),c):n(t)}function l(t){return RN(t)?(e.consume(t),l):(e.exit(`whitespace`),u(t))}function u(i){return i===null||IN(i)?(e.exit(r),t(i)):n(i)}}}function MR(e,t){return e.marker?NR(e.marker,t).repeat(3):NR(e.fence,t)}function NR(e,t){return typeof e==`string`?e:e[t]}function PR(e){if(typeof e!=`string`)throw TypeError(`Expected a string`);return e.replace(/[|\\{}()[\]^$+*?.]/g,`\\$&`).replace(/-/g,`\\x2d`)}function FR(e){let t=OR(e),n={},r={},i=-1;for(;++i<t.length;){let e=t[i];n[e.type]=IR(e),r[e.type]=LR,r[e.type+`Value`]=RR}return{enter:n,exit:r}}function IR(e){return t;function t(t){this.enter({type:e.type,value:``},t),this.buffer()}}function LR(e){let t=this.resume(),n=this.stack[this.stack.length-1];`value`in n,this.exit(e),n.value=t.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,``)}function RR(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function zR(e){let t=[],n={},r=OR(e),i=-1;for(;++i<r.length;){let e=r[i];n[e.type]=BR(e);let a=VR(e,`open`);t.push({atBreak:!0,character:a.charAt(0),after:PR(a.charAt(1))})}return{unsafe:t,handlers:n}}function BR(e){let t=VR(e,`open`),n=VR(e,`close`);return r;function r(e){return t+(e.value?`
|
|
270
|
+
`}),n}function ZL(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function QL(e,t){let n=KL(e,t),r=n.one(e,void 0),i=jL(n),a=Array.isArray(r)?{type:`root`,children:r}:r||{type:`root`,children:[]};return i&&(`children`in a,a.children.push({type:`text`,value:`
|
|
271
|
+
`},i)),a}function $L(e,t){return e&&`run`in e?async function(n,r){let i=QL(n,{file:r,...t});await e.run(i,r)}:function(n,r){return QL(n,{file:r,...e||t})}}function eR(e){if(e)throw e}var tR=o(((e,t)=>{var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=function(e){return typeof Array.isArray==`function`?Array.isArray(e):r.call(e)===`[object Array]`},s=function(e){if(!e||r.call(e)!==`[object Object]`)return!1;var t=n.call(e,`constructor`),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,`isPrototypeOf`);if(e.constructor&&!t&&!i)return!1;for(var a in e);return a===void 0||n.call(e,a)},c=function(e,t){i&&t.name===`__proto__`?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,t){if(t===`__proto__`){if(!n.call(e,t))return;if(a)return a(e,t).value}return e[t]};t.exports=function e(){var t,n,r,i,a,u,d=arguments[0],f=1,p=arguments.length,m=!1;for(typeof d==`boolean`&&(m=d,d=arguments[1]||{},f=2),(d==null||typeof d!=`object`&&typeof d!=`function`)&&(d={});f<p;++f)if(t=arguments[f],t!=null)for(n in t)r=l(d,n),i=l(t,n),d!==i&&(m&&i&&(s(i)||(a=o(i)))?(a?(a=!1,u=r&&o(r)?r:[]):u=r&&s(r)?r:{},c(d,{name:n,newValue:e(m,u,i)})):i!==void 0&&c(d,{name:n,newValue:i}));return d}}));function nR(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function rR(){let e=[],t={run:n,use:r};return t;function n(...t){let n=-1,r=t.pop();if(typeof r!=`function`)throw TypeError(`Expected function as last argument, not `+r);i(null,...t);function i(a,...o){let s=e[++n],c=-1;if(a){r(a);return}for(;++c<t.length;)(o[c]===null||o[c]===void 0)&&(o[c]=t[c]);t=o,s?iR(s,i)(...o):r(null,...o)}}function r(n){if(typeof n!=`function`)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}}function iR(e,t){let n;return r;function r(...t){let r=e.length>t.length,o;r&&t.push(i);try{o=e.apply(this,t)}catch(e){let t=e;if(r&&n)throw t;return i(t)}r||(o&&o.then&&typeof o.then==`function`?o.then(a,i):o instanceof Error?i(o):a(o))}function i(e,...r){n||(n=!0,t(e,...r))}function a(e){i(null,e)}}var aR={basename:oR,dirname:sR,extname:cR,join:lR,sep:`/`};function oR(e,t){if(t!==void 0&&typeof t!=`string`)throw TypeError(`"ext" argument must be a string`);fR(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?``:e.slice(n,r)}if(t===e)return``;let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function sR(e){if(fR(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||=!0;return t<0?e.codePointAt(0)===47?`/`:`.`:t===1&&e.codePointAt(0)===47?`//`:e.slice(0,t)}function cR(e){fR(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){let s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?``:e.slice(i,n)}function lR(...e){let t=-1,n;for(;++t<e.length;)fR(e[t]),e[t]&&(n=n===void 0?e[t]:n+`/`+e[t]);return n===void 0?`.`:uR(n)}function uR(e){fR(e);let t=e.codePointAt(0)===47,n=dR(e,!t);return n.length===0&&!t&&(n=`.`),n.length>0&&e.codePointAt(e.length-1)===47&&(n+=`/`),t?`/`+n:n}function dR(e,t){let n=``,r=0,i=-1,a=0,o=-1,s,c;for(;++o<=e.length;){if(o<e.length)s=e.codePointAt(o);else if(s===47)break;else s=47;if(s===47){if(!(i===o-1||a===1))if(i!==o-1&&a===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(c=n.lastIndexOf(`/`),c!==n.length-1){c<0?(n=``,r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf(`/`)),i=o,a=0;continue}}else if(n.length>0){n=``,r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+`/..`:`..`,r=2)}else n.length>0?n+=`/`+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,a=0}else s===46&&a>-1?a++:a=-1}return n}function fR(e){if(typeof e!=`string`)throw TypeError(`Path must be a string. Received `+JSON.stringify(e))}var pR={cwd:mR};function mR(){return`/`}function hR(e){return!!(typeof e==`object`&&e&&`href`in e&&e.href&&`protocol`in e&&e.protocol&&e.auth===void 0)}function gR(e){if(typeof e==`string`)e=new URL(e);else if(!hR(e)){let t=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:`){let e=TypeError(`The URL must be of scheme file`);throw e.code=`ERR_INVALID_URL_SCHEME`,e}return _R(e)}function _R(e){if(e.hostname!==``){let e=TypeError(`File URL host must be "localhost" or empty on darwin`);throw e.code=`ERR_INVALID_FILE_URL_HOST`,e}let t=e.pathname,n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){let e=t.codePointAt(n+2);if(e===70||e===102){let e=TypeError(`File URL path must not include encoded / characters`);throw e.code=`ERR_INVALID_FILE_URL_PATH`,e}}return decodeURIComponent(t)}var vR=[`history`,`path`,`basename`,`stem`,`extname`,`dirname`],yR=class{constructor(e){let t;t=e?hR(e)?{path:e}:typeof e==`string`||CR(e)?{value:e}:e:{},this.cwd=`cwd`in t?``:pR.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<vR.length;){let e=vR[n];e in t&&t[e]!==void 0&&t[e]!==null&&(this[e]=e===`history`?[...t[e]]:t[e])}let r;for(r in t)vR.includes(r)||(this[r]=t[r])}get basename(){return typeof this.path==`string`?aR.basename(this.path):void 0}set basename(e){xR(e,`basename`),bR(e,`basename`),this.path=aR.join(this.dirname||``,e)}get dirname(){return typeof this.path==`string`?aR.dirname(this.path):void 0}set dirname(e){SR(this.basename,`dirname`),this.path=aR.join(e||``,this.basename)}get extname(){return typeof this.path==`string`?aR.extname(this.path):void 0}set extname(e){if(bR(e,`extname`),SR(this.dirname,`extname`),e){if(e.codePointAt(0)!==46)throw Error("`extname` must start with `.`");if(e.includes(`.`,1))throw Error("`extname` cannot contain multiple dots")}this.path=aR.join(this.dirname,this.stem+(e||``))}get path(){return this.history[this.history.length-1]}set path(e){hR(e)&&(e=gR(e)),xR(e,`path`),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path==`string`?aR.basename(this.path,this.extname):void 0}set stem(e){xR(e,`stem`),bR(e,`stem`),this.path=aR.join(this.dirname||``,e+(this.extname||``))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let r=new oN(e,t,n);return this.path&&(r.name=this.path+`:`+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return this.value===void 0?``:typeof this.value==`string`?this.value:new TextDecoder(e||void 0).decode(this.value)}};function bR(e,t){if(e&&e.includes(aR.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+aR.sep+"`")}function xR(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function SR(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}function CR(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var wR=(function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r}),TR=l(tR(),1),ER={}.hasOwnProperty,DR=new class e extends wR{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=rR()}copy(){let t=new e,n=-1;for(;++n<this.attachers.length;){let e=this.attachers[n];t.use(...e)}return t.data((0,TR.default)(!0,{},this.namespace)),t}data(e,t){return typeof e==`string`?arguments.length===2?(AR(`data`,this.frozen),this.namespace[e]=t,this):ER.call(this.namespace,e)&&this.namespace[e]||void 0:e?(AR(`data`,this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;let e=this;for(;++this.freezeIndex<this.attachers.length;){let[t,...n]=this.attachers[this.freezeIndex];if(n[0]===!1)continue;n[0]===!0&&(n[0]=void 0);let r=t.call(e,...n);typeof r==`function`&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=1/0,this}parse(e){this.freeze();let t=NR(e),n=this.parser||this.Parser;return OR(`parse`,n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),OR(`process`,this.parser||this.Parser),kR(`process`,this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let a=NR(e),o=n.parse(a);n.run(o,a,function(e,t,r){if(e||!t||!r)return s(e);let i=t,a=n.stringify(i,r);FR(a)?r.value=a:r.result=a,s(e,r)});function s(e,n){e||!n?i(e):r?r(n):t(void 0,n)}}}processSync(e){let t=!1,n;return this.freeze(),OR(`processSync`,this.parser||this.Parser),kR(`processSync`,this.compiler||this.Compiler),this.process(e,r),MR(`processSync`,`process`,t),n;function r(e,r){t=!0,eR(e),n=r}}run(e,t,n){jR(e),this.freeze();let r=this.transformers;return!n&&typeof t==`function`&&(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,a){let o=NR(t);r.run(e,o,s);function s(t,r,o){let s=r||e;t?a(t):i?i(s):n(void 0,s,o)}}}runSync(e,t){let n=!1,r;return this.run(e,t,i),MR(`runSync`,`run`,n),r;function i(e,t){eR(e),r=t,n=!0}}stringify(e,t){this.freeze();let n=NR(t),r=this.compiler||this.Compiler;return kR(`stringify`,r),jR(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(AR(`use`,this.frozen),e!=null)if(typeof e==`function`)s(e,t);else if(typeof e==`object`)Array.isArray(e)?o(e):a(e);else throw TypeError("Expected usable value, not `"+e+"`");return this;function i(e){if(typeof e==`function`)s(e,[]);else if(typeof e==`object`)if(Array.isArray(e)){let[t,...n]=e;s(t,n)}else a(e);else throw TypeError("Expected usable value, not `"+e+"`")}function a(e){if(!(`plugins`in e)&&!(`settings`in e))throw 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");o(e.plugins),e.settings&&(r.settings=(0,TR.default)(!0,r.settings,e.settings))}function o(e){let t=-1;if(e!=null)if(Array.isArray(e))for(;++t<e.length;){let n=e[t];i(n)}else throw TypeError("Expected a list of plugins, not `"+e+"`")}function s(e,t){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===e){i=r;break}if(i===-1)n.push([e,...t]);else if(t.length>0){let[r,...a]=t,o=n[i][1];nR(o)&&nR(r)&&(r=(0,TR.default)(!0,o,r)),n[i]=[e,r,...a]}}}}().freeze();function OR(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `parser`")}function kR(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `compiler`")}function AR(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function jR(e){if(!nR(e)||typeof e.type!=`string`)throw TypeError("Expected node, got `"+e+"`")}function MR(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function NR(e){return PR(e)?e:new yR(e)}function PR(e){return!!(e&&typeof e==`object`&&`message`in e&&`messages`in e)}function FR(e){return typeof e==`string`||IR(e)}function IR(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var LR=[],RR={allowDangerousHtml:!0},zR=/^(https?|ircs?|mailto|xmpp)$/i,BR=[{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 VR(e){let t=HR(e),n=UR(e);return WR(t.runSync(t.parse(n),n),e)}function HR(e){let t=e.rehypePlugins||LR,n=e.remarkPlugins||LR,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...RR}:RR;return DR().use(RI).use(n).use($L,r).use(t)}function UR(e){let t=e.children||``,n=new yR;return typeof t==`string`?n.value=t:``+t,n}function WR(e,t){let n=t.allowedElements,r=t.allowElement,i=t.components,a=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,c=t.urlTransform||GR;for(let e of BR)Object.hasOwn(t,e.from)&&``+e.from+(e.to?"use `"+e.to+"` instead":`remove it`)+e.id;return UL(e,l),mN(e,{Fragment:Q.Fragment,components:i,ignoreInvalidStyle:!0,jsx:Q.jsx,jsxs:Q.jsxs,passKeys:!0,passNode:!0});function l(e,t,i){if(e.type===`raw`&&i&&typeof t==`number`)return o?i.children.splice(t,1):i.children[t]={type:`text`,value:e.value},t;if(e.type===`element`){let t;for(t in IN)if(Object.hasOwn(IN,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=IN[t];(r===null||r.includes(e.tagName))&&(e.properties[t]=c(String(n||``),t,e))}}if(e.type===`element`){let o=n?!n.includes(e.tagName):a?a.includes(e.tagName):!1;if(!o&&r&&typeof t==`number`&&(o=!r(e,t,i)),o&&i&&typeof t==`number`)return s&&e.children?i.children.splice(t,1,...e.children):i.children.splice(t,1),t}}}function GR(e){let 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||zR.test(e.slice(0,t))?e:``}var KR=l(o(((e,t)=>{(function(){var e=t===void 0?function(){return this||(0,eval)(`this`)}():t.exports=i;e.format=i,e.vsprintf=r,typeof console<`u`&&typeof console.log==`function`&&(e.printf=n);function n(){console.log(i.apply(null,arguments))}function r(e,t){return i.apply(null,[e].concat(t))}function i(e){for(var t=1,n=[].slice.call(arguments),r=0,i=e.length,a=``,o,s=!1,c,l,u=!1,d,f=function(){return n[t++]},p=function(){for(var t=``;/\d/.test(e[r]);)t+=e[r++],o=e[r];return t.length>0?parseInt(t):null};r<i;++r)if(o=e[r],s)switch(s=!1,o==`.`?(u=!1,o=e[++r]):o==`0`&&e[r+1]==`.`?(u=!0,r+=2,o=e[r]):u=!0,d=p(),o){case`b`:a+=parseInt(f(),10).toString(2);break;case`c`:c=f(),typeof c==`string`||c instanceof String?a+=c:a+=String.fromCharCode(parseInt(c,10));break;case`d`:a+=parseInt(f(),10);break;case`f`:l=String(parseFloat(f()).toFixed(d||6)),a+=u?l:l.replace(/^0/,``);break;case`j`:a+=JSON.stringify(f());break;case`o`:a+=`0`+parseInt(f(),10).toString(8);break;case`s`:a+=f();break;case`x`:a+=`0x`+parseInt(f(),10).toString(16);break;case`X`:a+=`0x`+parseInt(f(),10).toString(16).toUpperCase();break;default:a+=o;break}else o===`%`?s=!0:a+=o;return a}})()}))(),1),qR=Object.assign(JR(Error),{eval:JR(EvalError),range:JR(RangeError),reference:JR(ReferenceError),syntax:JR(SyntaxError),type:JR(TypeError),uri:JR(URIError)});function JR(e){return t.displayName=e.displayName||e.name,t;function t(t,...n){return new e(t&&(0,KR.default)(t,...n))}}var YR={}.hasOwnProperty,XR={yaml:`-`,toml:`+`};function ZR(e){let t=[],n=-1,r=Array.isArray(e)?e:e?[e]:[`yaml`];for(;++n<r.length;)t[n]=QR(r[n]);return t}function QR(e){let t=e;if(typeof t==`string`){if(!YR.call(XR,t))throw qR("Missing matter definition for `%s`",t);t={type:t,marker:XR[t]}}else if(typeof t!=`object`)throw qR("Expected matter to be an object, not `%j`",t);if(!YR.call(t,`type`))throw qR("Missing `type` in matter `%j`",t);if(!YR.call(t,`fence`)&&!YR.call(t,`marker`))throw qR("Missing `marker` or `fence` in matter `%j`",t);return t}function $R(e){let t=ZR(e),n={},r=-1;for(;++r<t.length;){let e=t[r],i=tz(e,`open`).charCodeAt(0),a=ez(e),o=n[i];Array.isArray(o)?o.push(a):n[i]=[a]}return{flow:n}}function ez(e){let t=e.anywhere,n=e.type,r=n+`Fence`,i=r+`Sequence`,a=n+`Value`,o={tokenize:u,partial:!0},s,c=0;return{tokenize:l,concrete:!0};function l(l,u,d){let f=this;return p;function p(a){let o=f.now();return o.column===1&&(o.line===1||t)&&(s=tz(e,`open`),c=0,a===s.charCodeAt(c))?(l.enter(n),l.enter(r),l.enter(i),m(a)):d(a)}function m(e){return c===s.length?(l.exit(i),sP(e)?(l.enter(`whitespace`),h(e)):g(e)):e===s.charCodeAt(c++)?(l.consume(e),m):d(e)}function h(e){return sP(e)?(l.consume(e),h):(l.exit(`whitespace`),g(e))}function g(t){return aP(t)?(l.exit(r),l.enter(`lineEnding`),l.consume(t),l.exit(`lineEnding`),s=tz(e,`close`),c=0,l.attempt(o,b,_)):d(t)}function _(e){return e===null||aP(e)?y(e):(l.enter(a),v(e))}function v(e){return e===null||aP(e)?(l.exit(a),y(e)):(l.consume(e),v)}function y(e){return e===null?d(e):(l.enter(`lineEnding`),l.consume(e),l.exit(`lineEnding`),l.attempt(o,b,_))}function b(e){return l.exit(n),u(e)}}function u(e,t,n){let a=0;return o;function o(t){return t===s.charCodeAt(a)?(e.enter(r),e.enter(i),c(t)):n(t)}function c(t){return a===s.length?(e.exit(i),sP(t)?(e.enter(`whitespace`),l(t)):u(t)):t===s.charCodeAt(a++)?(e.consume(t),c):n(t)}function l(t){return sP(t)?(e.consume(t),l):(e.exit(`whitespace`),u(t))}function u(i){return i===null||aP(i)?(e.exit(r),t(i)):n(i)}}}function tz(e,t){return e.marker?nz(e.marker,t).repeat(3):nz(e.fence,t)}function nz(e,t){return typeof e==`string`?e:e[t]}function rz(e){if(typeof e!=`string`)throw TypeError(`Expected a string`);return e.replace(/[|\\{}()[\]^$+*?.]/g,`\\$&`).replace(/-/g,`\\x2d`)}function iz(e){let t=ZR(e),n={},r={},i=-1;for(;++i<t.length;){let e=t[i];n[e.type]=az(e),r[e.type]=oz,r[e.type+`Value`]=sz}return{enter:n,exit:r}}function az(e){return t;function t(t){this.enter({type:e.type,value:``},t),this.buffer()}}function oz(e){let t=this.resume(),n=this.stack[this.stack.length-1];`value`in n,this.exit(e),n.value=t.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,``)}function sz(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function cz(e){let t=[],n={},r=ZR(e),i=-1;for(;++i<r.length;){let e=r[i];n[e.type]=lz(e);let a=uz(e,`open`);t.push({atBreak:!0,character:a.charAt(0),after:rz(a.charAt(1))})}return{unsafe:t,handlers:n}}function lz(e){let t=uz(e,`open`),n=uz(e,`close`);return r;function r(e){return t+(e.value?`
|
|
272
272
|
`+e.value:``)+`
|
|
273
|
-
`+n}}function
|
|
274
|
-
`:` `)+r.indentLines(r.containerFlow(e,a.current()),t?
|
|
275
|
-
`)}function
|
|
276
|
-
`&&
|
|
277
|
-
`}function
|
|
273
|
+
`+n}}function uz(e,t){return e.marker?dz(e.marker,t).repeat(3):dz(e.fence,t)}function dz(e,t){return typeof e==`string`?e:e[t]}var fz=`yaml`;function pz(e){let t=this,n=e||fz,r=t.data(),i=r.micromarkExtensions||=[],a=r.fromMarkdownExtensions||=[],o=r.toMarkdownExtensions||=[];i.push($R(n)),a.push(iz(n)),o.push(cz(n))}function mz(e,t){let n=String(e);if(typeof t!=`string`)throw TypeError(`Expected character`);let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function hz(e,t,n){let r=ML((n||{}).ignore||[]),i=gz(t),a=-1;for(;++a<i.length;)VL(e,`text`,o);function o(e,t){let n=-1,i;for(;++n<t.length;){let e=t[n],a=i?i.children:void 0;if(r(e,a?a.indexOf(e):void 0,i))return;i=e}if(i)return s(e,t)}function s(e,t){let n=t[t.length-1],r=i[a][0],o=i[a][1],s=0,c=n.children.indexOf(e),l=!1,u=[];r.lastIndex=0;let d=r.exec(e.value);for(;d;){let n=d.index,i={index:d.index,input:d.input,stack:[...t,e]},a=o(...d,i);if(typeof a==`string`&&(a=a.length>0?{type:`text`,value:a}:void 0),a===!1?r.lastIndex=n+1:(s!==n&&u.push({type:`text`,value:e.value.slice(s,n)}),Array.isArray(a)?u.push(...a):a&&u.push(a),s=n+d[0].length,l=!0),!r.global)break;d=r.exec(e.value)}return l?(s<e.value.length&&u.push({type:`text`,value:e.value.slice(s)}),n.children.splice(c,1,...u)):u=[e],c+u.length}}function gz(e){let t=[];if(!Array.isArray(e))throw TypeError(`Expected find and replace tuple or list of tuples`);let n=!e[0]||Array.isArray(e[0])?e:[e],r=-1;for(;++r<n.length;){let e=n[r];t.push([_z(e[0]),vz(e[1])])}return t}function _z(e){return typeof e==`string`?new RegExp(rz(e),`g`):e}function vz(e){return typeof e==`function`?e:function(){return e}}var yz=`phrasing`,bz=[`autolink`,`link`,`image`,`label`];function xz(){return{transforms:[kz],enter:{literalAutolink:Cz,literalAutolinkEmail:wz,literalAutolinkHttp:wz,literalAutolinkWww:wz},exit:{literalAutolink:Oz,literalAutolinkEmail:Dz,literalAutolinkHttp:Tz,literalAutolinkWww:Ez}}}function Sz(){return{unsafe:[{character:`@`,before:`[+\\-.\\w]`,after:`[\\-.\\w]`,inConstruct:yz,notInConstruct:bz},{character:`.`,before:`[Ww]`,after:`[\\-.\\w]`,inConstruct:yz,notInConstruct:bz},{character:`:`,before:`[ps]`,after:`\\/`,inConstruct:yz,notInConstruct:bz}]}}function Cz(e){this.enter({type:`link`,title:null,url:``,children:[]},e)}function wz(e){this.config.enter.autolinkProtocol.call(this,e)}function Tz(e){this.config.exit.autolinkProtocol.call(this,e)}function Ez(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];t.type,t.url=`http://`+this.sliceSerialize(e)}function Dz(e){this.config.exit.autolinkEmail.call(this,e)}function Oz(e){this.exit(e)}function kz(e){hz(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Az],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,jz]],{ignore:[`link`,`linkReference`]})}function Az(e,t,n,r,i){let a=``;if(!Pz(i)||(/^w/i.test(t)&&(n=t+n,t=``,a=`http://`),!Mz(n)))return!1;let o=Nz(n+r);if(!o[0])return!1;let s={type:`link`,title:null,url:a+t+o[0],children:[{type:`text`,value:t+o[0]}]};return o[1]?[s,{type:`text`,value:o[1]}]:s}function jz(e,t,n,r){return!Pz(r,!0)||/[-\d_]$/.test(n)?!1:{type:`link`,title:null,url:`mailto:`+t+`@`+n,children:[{type:`text`,value:t+`@`+n}]}}function Mz(e){let 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 Nz(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(`)`),i=mz(e,`(`),a=mz(e,`)`);for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(`)`),a++;return[e,n]}function Pz(e,t){let n=e.input.charCodeAt(e.index-1);return(e.index===0||lP(n)||cP(n))&&(!t||n!==47)}Wz.peek=Uz;function Fz(){this.buffer()}function Iz(e){this.enter({type:`footnoteReference`,identifier:``,label:``},e)}function Lz(){this.buffer()}function Rz(e){this.enter({type:`footnoteDefinition`,identifier:``,label:``,children:[]},e)}function zz(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=ZN(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Bz(e){this.exit(e)}function Vz(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=ZN(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Hz(e){this.exit(e)}function Uz(){return`[`}function Wz(e,t,n,r){let i=n.createTracker(r),a=i.move(`[^`),o=n.enter(`footnoteReference`),s=n.enter(`reference`);return a+=i.move(n.safe(n.associationId(e),{after:`]`,before:a})),s(),o(),a+=i.move(`]`),a}function Gz(){return{enter:{gfmFootnoteCallString:Fz,gfmFootnoteCall:Iz,gfmFootnoteDefinitionLabelString:Lz,gfmFootnoteDefinition:Rz},exit:{gfmFootnoteCallString:zz,gfmFootnoteCall:Bz,gfmFootnoteDefinitionLabelString:Vz,gfmFootnoteDefinition:Hz}}}function Kz(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:Wz},unsafe:[{character:`[`,inConstruct:[`label`,`phrasing`,`reference`]}]};function n(e,n,r,i){let a=r.createTracker(i),o=a.move(`[^`),s=r.enter(`footnoteDefinition`),c=r.enter(`label`);return o+=a.move(r.safe(r.associationId(e),{before:o,after:`]`})),c(),o+=a.move(`]:`),e.children&&e.children.length>0&&(a.shift(4),o+=a.move((t?`
|
|
274
|
+
`:` `)+r.indentLines(r.containerFlow(e,a.current()),t?Jz:qz))),s(),o}}function qz(e,t,n){return t===0?e:Jz(e,t,n)}function Jz(e,t,n){return(n?``:` `)+e}var Yz=[`autolink`,`destinationLiteral`,`destinationRaw`,`reference`,`titleQuote`,`titleApostrophe`];eB.peek=tB;function Xz(){return{canContainEols:[`delete`],enter:{strikethrough:Qz},exit:{strikethrough:$z}}}function Zz(){return{unsafe:[{character:`~`,inConstruct:`phrasing`,notInConstruct:Yz}],handlers:{delete:eB}}}function Qz(e){this.enter({type:`delete`,children:[]},e)}function $z(e){this.exit(e)}function eB(e,t,n,r){let i=n.createTracker(r),a=n.enter(`strikethrough`),o=i.move(`~~`);return o+=n.containerPhrasing(e,{...i.current(),before:o,after:`~`}),o+=i.move(`~~`),a(),o}function tB(){return`~`}function nB(e){return e.length}function rB(e,t){let n=t||{},r=(n.align||[]).concat(),i=n.stringLength||nB,a=[],o=[],s=[],c=[],l=0,u=-1;for(;++u<e.length;){let t=[],r=[],a=-1;for(e[u].length>l&&(l=e[u].length);++a<e[u].length;){let o=iB(e[u][a]);if(n.alignDelimiters!==!1){let e=i(o);r[a]=e,(c[a]===void 0||e>c[a])&&(c[a]=e)}t.push(o)}o[u]=t,s[u]=r}let d=-1;if(typeof r==`object`&&`length`in r)for(;++d<l;)a[d]=aB(r[d]);else{let e=aB(r);for(;++d<l;)a[d]=e}d=-1;let f=[],p=[];for(;++d<l;){let e=a[d],t=``,r=``;e===99?(t=`:`,r=`:`):e===108?t=`:`:e===114&&(r=`:`);let i=n.alignDelimiters===!1?1:Math.max(1,c[d]-t.length-r.length),o=t+`-`.repeat(i)+r;n.alignDelimiters!==!1&&(i=t.length+i+r.length,i>c[d]&&(c[d]=i),p[d]=i),f[d]=o}o.splice(1,0,f),s.splice(1,0,p),u=-1;let m=[];for(;++u<o.length;){let e=o[u],t=s[u];d=-1;let r=[];for(;++d<l;){let i=e[d]||``,o=``,s=``;if(n.alignDelimiters!==!1){let e=c[d]-(t[d]||0),n=a[d];n===114?o=` `.repeat(e):n===99?e%2?(o=` `.repeat(e/2+.5),s=` `.repeat(e/2-.5)):(o=` `.repeat(e/2),s=o):s=` `.repeat(e)}n.delimiterStart!==!1&&!d&&r.push(`|`),n.padding!==!1&&!(n.alignDelimiters===!1&&i===``)&&(n.delimiterStart!==!1||d)&&r.push(` `),n.alignDelimiters!==!1&&r.push(o),r.push(i),n.alignDelimiters!==!1&&r.push(s),n.padding!==!1&&r.push(` `),(n.delimiterEnd!==!1||d!==l-1)&&r.push(`|`)}m.push(n.delimiterEnd===!1?r.join(``).replace(/ +$/,``):r.join(``))}return m.join(`
|
|
275
|
+
`)}function iB(e){return e==null?``:String(e)}function aB(e){let t=typeof e==`string`?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function oB(e,t,n,r){let i=n.enter(`blockquote`),a=n.createTracker(r);a.move(`> `),a.shift(2);let o=n.indentLines(n.containerFlow(e,a.current()),sB);return i(),o}function sB(e,t,n){return`>`+(n?``:` `)+e}function cB(e,t){return lB(e,t.inConstruct,!0)&&!lB(e,t.notInConstruct,!1)}function lB(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 uB(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
|
|
276
|
+
`&&cB(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?``:` `;return`\\
|
|
277
|
+
`}function dB(e,t){let n=String(e),r=n.indexOf(t),i=r,a=0,o=0;if(typeof t!=`string`)throw TypeError(`Expected substring`);for(;r!==-1;)r===i?++a>o&&(o=a):a=1,i=r+t.length,r=n.indexOf(t,i);return o}function fB(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 pB(e){let t=e.options.fence||"`";if(t!=="`"&&t!==`~`)throw Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function mB(e,t,n,r){let i=pB(n),a=e.value||``,o=i==="`"?`GraveAccent`:`Tilde`;if(fB(e,n)){let e=n.enter(`codeIndented`),t=n.indentLines(a,hB);return e(),t}let s=n.createTracker(r),c=i.repeat(Math.max(dB(a,i)+1,3)),l=n.enter(`codeFenced`),u=s.move(c);if(e.lang){let t=n.enter(`codeFencedLang${o}`);u+=s.move(n.safe(e.lang,{before:u,after:` `,encode:["`"],...s.current()})),t()}if(e.lang&&e.meta){let t=n.enter(`codeFencedMeta${o}`);u+=s.move(` `),u+=s.move(n.safe(e.meta,{before:u,after:`
|
|
278
278
|
`,encode:["`"],...s.current()})),t()}return u+=s.move(`
|
|
279
279
|
`),a&&(u+=s.move(a+`
|
|
280
|
-
`)),u+=s.move(c),l(),u}function
|
|
281
|
-
`,...c.current()}))),s(),e.title&&(s=n.enter(`title${a}`),l+=c.move(` `+i),l+=c.move(n.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),o(),l}function
|
|
280
|
+
`)),u+=s.move(c),l(),u}function hB(e,t,n){return(n?``:` `)+e}function gB(e){let t=e.options.quote||`"`;if(t!==`"`&&t!==`'`)throw Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function _B(e,t,n,r){let i=gB(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.enter(`definition`),s=n.enter(`label`),c=n.createTracker(r),l=c.move(`[`);return l+=c.move(n.safe(n.associationId(e),{before:l,after:`]`,...c.current()})),l+=c.move(`]: `),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter(`destinationLiteral`),l+=c.move(`<`),l+=c.move(n.safe(e.url,{before:l,after:`>`,...c.current()})),l+=c.move(`>`)):(s=n.enter(`destinationRaw`),l+=c.move(n.safe(e.url,{before:l,after:e.title?` `:`
|
|
281
|
+
`,...c.current()}))),s(),e.title&&(s=n.enter(`title${a}`),l+=c.move(` `+i),l+=c.move(n.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),o(),l}function vB(e){let t=e.options.emphasis||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function yB(e){return`&#x`+e.toString(16).toUpperCase()+`;`}function bB(e,t,n){let r=yP(e),i=yP(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}}xB.peek=SB;function xB(e,t,n,r){let i=vB(n),a=n.enter(`emphasis`),o=n.createTracker(r),s=o.move(i),c=o.move(n.containerPhrasing(e,{after:i,before:s,...o.current()})),l=c.charCodeAt(0),u=bB(r.before.charCodeAt(r.before.length-1),l,i);u.inside&&(c=yB(l)+c.slice(1));let d=c.charCodeAt(c.length-1),f=bB(r.after.charCodeAt(0),d,i);f.inside&&(c=c.slice(0,-1)+yB(d));let p=o.move(i);return a(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},s+c+p}function SB(e,t,n){return n.options.emphasis||`*`}function CB(e,t){let n=!1;return UL(e,function(e){if(`value`in e&&/\r?\n|\r/.test(e.value)||e.type===`break`)return n=!0,!1}),!!((!e.depth||e.depth<3)&&RN(e)&&(t.options.setext||n))}function wB(e,t,n,r){let i=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(CB(e,n)){let t=n.enter(`headingSetext`),r=n.enter(`phrasing`),o=n.containerPhrasing(e,{...a.current(),before:`
|
|
282
282
|
`,after:`
|
|
283
283
|
`});return r(),t(),o+`
|
|
284
284
|
`+(i===1?`=`:`-`).repeat(o.length-(Math.max(o.lastIndexOf(`\r`),o.lastIndexOf(`
|
|
285
285
|
`))+1))}let o=`#`.repeat(i),s=n.enter(`headingAtx`),c=n.enter(`phrasing`);a.move(o+` `);let l=n.containerPhrasing(e,{before:`# `,after:`
|
|
286
|
-
`,...a.current()});return/^[\t ]/.test(l)&&(l=
|
|
286
|
+
`,...a.current()});return/^[\t ]/.test(l)&&(l=yB(l.charCodeAt(0))+l.slice(1)),l=l?o+` `+l:o,n.options.closeAtx&&(l+=` `+o),c(),s(),l}TB.peek=EB;function TB(e){return e.value||``}function EB(){return`<`}DB.peek=OB;function DB(e,t,n,r){let i=gB(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.enter(`image`),s=n.enter(`label`),c=n.createTracker(r),l=c.move(`![`);return l+=c.move(n.safe(e.alt,{before:l,after:`]`,...c.current()})),l+=c.move(`](`),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter(`destinationLiteral`),l+=c.move(`<`),l+=c.move(n.safe(e.url,{before:l,after:`>`,...c.current()})),l+=c.move(`>`)):(s=n.enter(`destinationRaw`),l+=c.move(n.safe(e.url,{before:l,after:e.title?` `:`)`,...c.current()}))),s(),e.title&&(s=n.enter(`title${a}`),l+=c.move(` `+i),l+=c.move(n.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),l+=c.move(`)`),o(),l}function OB(){return`!`}kB.peek=AB;function kB(e,t,n,r){let i=e.referenceType,a=n.enter(`imageReference`),o=n.enter(`label`),s=n.createTracker(r),c=s.move(`![`),l=n.safe(e.alt,{before:c,after:`]`,...s.current()});c+=s.move(l+`][`),o();let u=n.stack;n.stack=[],o=n.enter(`reference`);let d=n.safe(n.associationId(e),{before:c,after:`]`,...s.current()});return o(),n.stack=u,a(),i===`full`||!l||l!==d?c+=s.move(d+`]`):i===`shortcut`?c=c.slice(0,-1):c+=s.move(`]`),c}function AB(){return`!`}jB.peek=MB;function jB(e,t,n){let r=e.value||``,i="`",a=-1;for(;RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=` `+r+` `);++a<n.unsafe.length;){let e=n.unsafe[a],t=n.compilePattern(e),i;if(e.atBreak)for(;i=t.exec(r);){let e=i.index;r.charCodeAt(e)===10&&r.charCodeAt(e-1)===13&&e--,r=r.slice(0,e)+` `+r.slice(i.index+1)}}return i+r+i}function MB(){return"`"}function NB(e,t){let n=RN(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))}PB.peek=FB;function PB(e,t,n,r){let i=gB(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.createTracker(r),s,c;if(NB(e,n)){let t=n.stack;n.stack=[],s=n.enter(`autolink`);let r=o.move(`<`);return r+=o.move(n.containerPhrasing(e,{before:r,after:`>`,...o.current()})),r+=o.move(`>`),s(),n.stack=t,r}s=n.enter(`link`),c=n.enter(`label`);let l=o.move(`[`);return l+=o.move(n.containerPhrasing(e,{before:l,after:`](`,...o.current()})),l+=o.move(`](`),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter(`destinationLiteral`),l+=o.move(`<`),l+=o.move(n.safe(e.url,{before:l,after:`>`,...o.current()})),l+=o.move(`>`)):(c=n.enter(`destinationRaw`),l+=o.move(n.safe(e.url,{before:l,after:e.title?` `:`)`,...o.current()}))),c(),e.title&&(c=n.enter(`title${a}`),l+=o.move(` `+i),l+=o.move(n.safe(e.title,{before:l,after:i,...o.current()})),l+=o.move(i),c()),l+=o.move(`)`),s(),l}function FB(e,t,n){return NB(e,n)?`<`:`[`}IB.peek=LB;function IB(e,t,n,r){let i=e.referenceType,a=n.enter(`linkReference`),o=n.enter(`label`),s=n.createTracker(r),c=s.move(`[`),l=n.containerPhrasing(e,{before:c,after:`]`,...s.current()});c+=s.move(l+`][`),o();let u=n.stack;n.stack=[],o=n.enter(`reference`);let d=n.safe(n.associationId(e),{before:c,after:`]`,...s.current()});return o(),n.stack=u,a(),i===`full`||!l||l!==d?c+=s.move(d+`]`):i===`shortcut`?c=c.slice(0,-1):c+=s.move(`]`),c}function LB(){return`[`}function RB(e){let t=e.options.bullet||`*`;if(t!==`*`&&t!==`+`&&t!==`-`)throw Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function zB(e){let t=RB(e),n=e.options.bulletOther;if(!n)return t===`*`?`-`:`*`;if(n!==`*`&&n!==`+`&&n!==`-`)throw Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function BB(e){let t=e.options.bulletOrdered||`.`;if(t!==`.`&&t!==`)`)throw Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function VB(e){let t=e.options.rule||`*`;if(t!==`*`&&t!==`-`&&t!==`_`)throw Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function HB(e,t,n,r){let i=n.enter(`list`),a=n.bulletCurrent,o=e.ordered?BB(n):RB(n),s=e.ordered?o===`.`?`)`:`.`:zB(n),c=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){let t=e.children?e.children[0]:void 0;if((o===`*`||o===`-`)&&t&&(!t.children||!t.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&&(c=!0),VB(n)===o&&t){let t=-1;for(;++t<e.children.length;){let n=e.children[t];if(n&&n.type===`listItem`&&n.children&&n.children[0]&&n.children[0].type===`thematicBreak`){c=!0;break}}}}c&&(o=s),n.bulletCurrent=o;let l=n.containerFlow(e,r);return n.bulletLastUsed=o,n.bulletCurrent=a,i(),l}function UB(e){let t=e.options.listItemIndent||`one`;if(t!==`tab`&&t!==`one`&&t!==`mixed`)throw Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function WB(e,t,n,r){let i=UB(n),a=n.bulletCurrent||RB(n);t&&t.type===`list`&&t.ordered&&(a=(typeof t.start==`number`&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let o=a.length+1;(i===`tab`||i===`mixed`&&(t&&t.type===`list`&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);let s=n.createTracker(r);s.move(a+` `.repeat(o-a.length)),s.shift(o);let c=n.enter(`listItem`),l=n.indentLines(n.containerFlow(e,s.current()),u);return c(),l;function u(e,t,n){return t?(n?``:` `.repeat(o))+e:(n?a:a+` `.repeat(o-a.length))+e}}function GB(e,t,n,r){let i=n.enter(`paragraph`),a=n.enter(`phrasing`),o=n.containerPhrasing(e,r);return a(),i(),o}var KB=ML([`break`,`delete`,`emphasis`,`footnote`,`footnoteReference`,`image`,`imageReference`,`inlineCode`,`inlineMath`,`link`,`linkReference`,`mdxJsxTextElement`,`mdxTextExpression`,`strong`,`text`,`textDirective`]);function qB(e,t,n,r){return(e.children.some(function(e){return KB(e)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function JB(e){let t=e.options.strong||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}YB.peek=XB;function YB(e,t,n,r){let i=JB(n),a=n.enter(`strong`),o=n.createTracker(r),s=o.move(i+i),c=o.move(n.containerPhrasing(e,{after:i,before:s,...o.current()})),l=c.charCodeAt(0),u=bB(r.before.charCodeAt(r.before.length-1),l,i);u.inside&&(c=yB(l)+c.slice(1));let d=c.charCodeAt(c.length-1),f=bB(r.after.charCodeAt(0),d,i);f.inside&&(c=c.slice(0,-1)+yB(d));let p=o.move(i+i);return a(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},s+c+p}function XB(e,t,n){return n.options.strong||`*`}function ZB(e,t,n,r){return n.safe(e.value,r)}function QB(e){let t=e.options.ruleRepetition||3;if(t<3)throw Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function $B(e,t,n){let r=(VB(n)+(n.options.ruleSpaces?` `:``)).repeat(QB(n));return n.options.ruleSpaces?r.slice(0,-1):r}var eV={blockquote:oB,break:uB,code:mB,definition:_B,emphasis:xB,hardBreak:uB,heading:wB,html:TB,image:DB,imageReference:kB,inlineCode:jB,link:PB,linkReference:IB,list:HB,listItem:WB,paragraph:GB,root:qB,strong:YB,text:ZB,thematicBreak:$B};function tV(){return{enter:{table:nV,tableData:oV,tableHeader:oV,tableRow:iV},exit:{codeText:sV,table:rV,tableData:aV,tableHeader:aV,tableRow:aV}}}function nV(e){let t=e._align;this.enter({type:`table`,align:t.map(function(e){return e===`none`?null:e}),children:[]},e),this.data.inTable=!0}function rV(e){this.exit(e),this.data.inTable=void 0}function iV(e){this.enter({type:`tableRow`,children:[]},e)}function aV(e){this.exit(e)}function oV(e){this.enter({type:`tableCell`,children:[]},e)}function sV(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,cV));let n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function cV(e,t){return t===`|`?t:e}function lV(e){let t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?` `:`|`;return{unsafe:[{character:`\r`,inConstruct:`tableCell`},{character:`
|
|
287
287
|
`,inConstruct:`tableCell`},{atBreak:!0,character:`|`,after:`[ :-]`},{character:`|`,inConstruct:`tableCell`},{atBreak:!0,character:`:`,after:`-`},{atBreak:!0,character:`-`,after:`[:|-]`}],handlers:{inlineCode:f,table:o,tableCell:c,tableRow:s}};function o(e,t,n,r){return l(u(e,n,r),e.align)}function s(e,t,n,r){let i=l([d(e,n,r)]);return i.slice(0,i.indexOf(`
|
|
288
|
-
`))}function c(e,t,n,r){let i=n.enter(`tableCell`),o=n.enter(`phrasing`),s=n.containerPhrasing(e,{...r,before:a,after:a});return o(),i(),s}function l(e,t){return Pz(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function u(e,t,n){let r=e.children,i=-1,a=[],o=t.enter(`table`);for(;++i<r.length;)a[i]=d(r[i],t,n);return o(),a}function d(e,t,n){let r=e.children,i=-1,a=[],o=t.enter(`tableRow`);for(;++i<r.length;)a[i]=c(r[i],e,t,n);return o(),a}function f(e,t,n){let r=jB.inlineCode(e,t,n);return n.stack.includes(`tableCell`)&&(r=r.replace(/\|/g,`\\$&`)),r}}function VB(){return{exit:{taskListCheckValueChecked:UB,taskListCheckValueUnchecked:UB,paragraph:WB}}}function HB(){return{unsafe:[{atBreak:!0,character:`-`,after:`[:|-]`}],handlers:{listItem:GB}}}function UB(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type===`taskListCheckValueChecked`}function WB(e){let t=this.stack[this.stack.length-2];if(t&&t.type===`listItem`&&typeof t.checked==`boolean`){let e=this.stack[this.stack.length-1];e.type;let n=e.children[0];if(n&&n.type===`text`){let r=t.children,i=-1,a;for(;++i<r.length;){let e=r[i];if(e.type===`paragraph`){a=e;break}}a===e&&(n.value=n.value.slice(1),n.value.length===0?e.children.shift():e.position&&n.position&&typeof n.position.start.offset==`number`&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function GB(e,t,n,r){let i=e.children[0],a=typeof e.checked==`boolean`&&i&&i.type===`paragraph`,o=`[`+(e.checked?`x`:` `)+`] `,s=n.createTracker(r);a&&s.move(o);let c=jB.listItem(e,t,n,{...r,...s.current()});return a&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,l)),c;function l(e){return e+o}}function KB(){return[QR(),Sz(),Dz(),MB(),VB()]}function qB(e){return{extensions:[$R(),Cz(e),Oz(),BB(e),HB()]}}var JB={tokenize:cV,partial:!0},YB={tokenize:lV,partial:!0},XB={tokenize:uV,partial:!0},ZB={tokenize:dV,partial:!0},QB={tokenize:fV,partial:!0},$B={name:`wwwAutolink`,tokenize:oV,previous:pV},eV={name:`protocolAutolink`,tokenize:sV,previous:mV},tV={name:`emailAutolink`,tokenize:aV,previous:hV},nV={};function rV(){return{text:nV}}for(var iV=48;iV<123;)nV[iV]=tV,iV++,iV===58?iV=65:iV===91&&(iV=97);nV[43]=tV,nV[45]=tV,nV[46]=tV,nV[95]=tV,nV[72]=[tV,eV],nV[104]=[tV,eV],nV[87]=[tV,$B],nV[119]=[tV,$B];function aV(e,t,n){let r=this,i,a;return o;function o(t){return!gV(t)||!hV.call(r,r.previous)||_V(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkEmail`),s(t))}function s(t){return gV(t)?(e.consume(t),s):t===64?(e.consume(t),c):n(t)}function c(t){return t===46?e.check(QB,u,l)(t):t===45||t===95||AN(t)?(a=!0,e.consume(t),c):u(t)}function l(t){return e.consume(t),i=!0,c}function u(o){return a&&i&&kN(r.previous)?(e.exit(`literalAutolinkEmail`),e.exit(`literalAutolink`),t(o)):n(o)}}function oV(e,t,n){let r=this;return i;function i(t){return t!==87&&t!==119||!pV.call(r,r.previous)||_V(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkWww`),e.check(JB,e.attempt(YB,e.attempt(XB,a),n),n)(t))}function a(n){return e.exit(`literalAutolinkWww`),e.exit(`literalAutolink`),t(n)}}function sV(e,t,n){let r=this,i=``,a=!1;return o;function o(t){return(t===72||t===104)&&mV.call(r,r.previous)&&!_V(r.events)?(e.enter(`literalAutolink`),e.enter(`literalAutolinkHttp`),i+=String.fromCodePoint(t),e.consume(t),s):n(t)}function s(t){if(kN(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),s;if(t===58){let n=i.toLowerCase();if(n===`http`||n===`https`)return e.consume(t),c}return n(t)}function c(t){return t===47?(e.consume(t),a?l:(a=!0,c)):n(t)}function l(t){return t===null||MN(t)||LN(t)||BN(t)||zN(t)?n(t):e.attempt(YB,e.attempt(XB,u),n)(t)}function u(n){return e.exit(`literalAutolinkHttp`),e.exit(`literalAutolink`),t(n)}}function cV(e,t,n){let r=0;return i;function i(t){return(t===87||t===119)&&r<3?(r++,e.consume(t),i):t===46&&r===3?(e.consume(t),a):n(t)}function a(e){return e===null?n(e):t(e)}}function lV(e,t,n){let r,i,a;return o;function o(t){return t===46||t===95?e.check(ZB,c,s)(t):t===null||LN(t)||BN(t)||t!==45&&zN(t)?c(t):(a=!0,e.consume(t),o)}function s(t){return t===95?r=!0:(i=r,r=void 0),e.consume(t),o}function c(e){return i||r||!a?n(e):t(e)}}function uV(e,t){let n=0,r=0;return i;function i(o){return o===40?(n++,e.consume(o),i):o===41&&r<n?a(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(ZB,t,a)(o):o===null||LN(o)||BN(o)?t(o):(e.consume(o),i)}function a(t){return t===41&&r++,e.consume(t),i}}function dV(e,t,n){return r;function r(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(e.consume(o),r):o===38?(e.consume(o),a):o===93?(e.consume(o),i):o===60||o===null||LN(o)||BN(o)?t(o):n(o)}function i(e){return e===null||e===40||e===91||LN(e)||BN(e)?t(e):r(e)}function a(e){return kN(e)?o(e):n(e)}function o(t){return t===59?(e.consume(t),r):kN(t)?(e.consume(t),o):n(t)}}function fV(e,t,n){return r;function r(t){return e.consume(t),i}function i(e){return AN(e)?n(e):t(e)}}function pV(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||LN(e)}function mV(e){return!kN(e)}function hV(e){return!(e===47||gV(e))}function gV(e){return e===43||e===45||e===46||e===95||AN(e)}function _V(e){let t=e.length,n=!1;for(;t--;){let 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}var vV={tokenize:EV,partial:!0};function yV(){return{document:{91:{name:`gfmFootnoteDefinition`,tokenize:CV,continuation:{tokenize:wV},exit:TV}},text:{91:{name:`gfmFootnoteCall`,tokenize:SV},93:{name:`gfmPotentialFootnoteCall`,add:`after`,tokenize:bV,resolveTo:xV}}}}function bV(e,t,n){let r=this,i=r.events.length,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),o;for(;i--;){let e=r.events[i][1];if(e.type===`labelImage`){o=e;break}if(e.type===`gfmFootnoteCall`||e.type===`labelLink`||e.type===`label`||e.type===`image`||e.type===`link`)break}return s;function s(i){if(!o||!o._balanced)return n(i);let s=ON(r.sliceSerialize({start:o.end,end:r.now()}));return s.codePointAt(0)!==94||!a.includes(s.slice(1))?n(i):(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(i),e.exit(`gfmFootnoteCallLabelMarker`),t(i))}}function xV(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`;let 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++;let a={type:`gfmFootnoteCallString`,start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:`chunkString`,contentType:`string`,start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],[`enter`,r,t],e[n+3],e[n+4],[`enter`,i,t],[`exit`,i,t],[`enter`,a,t],[`enter`,o,t],[`exit`,o,t],[`exit`,a,t],e[e.length-2],e[e.length-1],[`exit`,r,t]];return e.splice(n,e.length-n+1,...s),e}function SV(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a=0,o;return s;function s(t){return e.enter(`gfmFootnoteCall`),e.enter(`gfmFootnoteCallLabelMarker`),e.consume(t),e.exit(`gfmFootnoteCallLabelMarker`),c}function c(t){return t===94?(e.enter(`gfmFootnoteCallMarker`),e.consume(t),e.exit(`gfmFootnoteCallMarker`),e.enter(`gfmFootnoteCallString`),e.enter(`chunkString`).contentType=`string`,l):n(t)}function l(s){if(a>999||s===93&&!o||s===null||s===91||LN(s))return n(s);if(s===93){e.exit(`chunkString`);let a=e.exit(`gfmFootnoteCallString`);return i.includes(ON(r.sliceSerialize(a)))?(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(s),e.exit(`gfmFootnoteCallLabelMarker`),e.exit(`gfmFootnoteCall`),t):n(s)}return LN(s)||(o=!0),a++,e.consume(s),s===92?u:l}function u(t){return t===91||t===92||t===93?(e.consume(t),a++,l):l(t)}}function CV(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a,o=0,s;return c;function c(t){return e.enter(`gfmFootnoteDefinition`)._container=!0,e.enter(`gfmFootnoteDefinitionLabel`),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),l}function l(t){return t===94?(e.enter(`gfmFootnoteDefinitionMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionMarker`),e.enter(`gfmFootnoteDefinitionLabelString`),e.enter(`chunkString`).contentType=`string`,u):n(t)}function u(t){if(o>999||t===93&&!s||t===null||t===91||LN(t))return n(t);if(t===93){e.exit(`chunkString`);let n=e.exit(`gfmFootnoteDefinitionLabelString`);return a=ON(r.sliceSerialize(n)),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),e.exit(`gfmFootnoteDefinitionLabel`),f}return LN(t)||(s=!0),o++,e.consume(t),t===92?d:u}function d(t){return t===91||t===92||t===93?(e.consume(t),o++,u):u(t)}function f(t){return t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),i.includes(a)||i.push(a),UN(e,p,`gfmFootnoteDefinitionWhitespace`)):n(t)}function p(e){return t(e)}}function wV(e,t,n){return e.check(iP,t,e.attempt(vV,t,n))}function TV(e){e.exit(`gfmFootnoteDefinition`)}function EV(e,t,n){let r=this;return UN(e,i,`gfmFootnoteDefinitionIndent`,5);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`gfmFootnoteDefinitionIndent`&&i[2].sliceSerialize(i[1],!0).length===4?t(e):n(e)}}function DV(e){let t=(e||{}).singleTilde,n={name:`strikethrough`,tokenize:i,resolveAll:r};return t??=!0,{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function r(e,t){let n=-1;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`strikethroughSequenceTemporary`&&e[n][1]._close){let r=n;for(;r--;)if(e[r][0]===`exit`&&e[r][1].type===`strikethroughSequenceTemporary`&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset===e[r][1].end.offset-e[r][1].start.offset){e[n][1].type=`strikethroughSequence`,e[r][1].type=`strikethroughSequence`;let i={type:`strikethrough`,start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},a={type:`strikethroughText`,start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},o=[[`enter`,i,t],[`enter`,e[r][1],t],[`exit`,e[r][1],t],[`enter`,a,t]],s=t.parser.constructs.insideSpan.null;s&&xN(o,o.length,0,ZN(s,e.slice(r+1,n),t)),xN(o,o.length,0,[[`exit`,a,t],[`enter`,e[n][1],t],[`exit`,e[n][1],t],[`exit`,i,t]]),xN(e,r-1,n-r+3,o),n=r+o.length-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`strikethroughSequenceTemporary`&&(e[n][1].type=`data`);return e}function i(e,n,r){let i=this.previous,a=this.events,o=0;return s;function s(t){return i===126&&a[a.length-1][1].type!==`characterEscape`?r(t):(e.enter(`strikethroughSequenceTemporary`),c(t))}function c(a){let s=XN(i);if(a===126)return o>1?r(a):(e.consume(a),o++,c);if(o<2&&!t)return r(a);let l=e.exit(`strikethroughSequenceTemporary`),u=XN(a);return l._open=!u||u===2&&!!s,l._close=!s||s===2&&!!u,n(a)}}}var OV=class{constructor(){this.map=[]}add(e,t,n){kV(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),this.map.length===0)return;let t=this.map.length,n=[];for(;t>0;)--t,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0}};function kV(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 AV(e,t){let n=!1,r=[];for(;t<e.length;){let 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`){let e=r.length-1;r[e]=r[e]===`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 jV(){return{flow:{null:{name:`table`,tokenize:MV,resolveAll:NV}}}}function MV(e,t,n){let r=this,i=0,a=0,o;return s;function s(e){let t=r.events.length-1;for(;t>-1;){let e=r.events[t][1].type;if(e===`lineEnding`||e===`linePrefix`)t--;else break}let i=t>-1?r.events[t][1].type:null,a=i===`tableHead`||i===`tableRow`?S:c;return a===S&&r.parser.lazy[r.now().line]?n(e):a(e)}function c(t){return e.enter(`tableHead`),e.enter(`tableRow`),l(t)}function l(e){return e===124?u(e):(o=!0,a+=1,u(e))}function u(t){return t===null?n(t):IN(t)?a>1?(a=0,r.interrupt=!0,e.exit(`tableRow`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),p):n(t):RN(t)?UN(e,u,`whitespace`)(t):(a+=1,o&&(o=!1,i+=1),t===124?(e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),o=!0,u):(e.enter(`data`),d(t)))}function d(t){return t===null||t===124||LN(t)?(e.exit(`data`),u(t)):(e.consume(t),t===92?f:d)}function f(t){return t===92||t===124?(e.consume(t),d):d(t)}function p(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter(`tableDelimiterRow`),o=!1,RN(t)?UN(e,m,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):m(t))}function m(t){return t===45||t===58?g(t):t===124?(o=!0,e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),h):x(t)}function h(t){return RN(t)?UN(e,g,`whitespace`)(t):g(t)}function g(t){return t===58?(a+=1,o=!0,e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),_):t===45?(a+=1,_(t)):t===null||IN(t)?b(t):x(t)}function _(t){return t===45?(e.enter(`tableDelimiterFiller`),v(t)):x(t)}function v(t){return t===45?(e.consume(t),v):t===58?(o=!0,e.exit(`tableDelimiterFiller`),e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),y):(e.exit(`tableDelimiterFiller`),y(t))}function y(t){return RN(t)?UN(e,b,`whitespace`)(t):b(t)}function b(n){return n===124?m(n):n===null||IN(n)?!o||i!==a?x(n):(e.exit(`tableDelimiterRow`),e.exit(`tableHead`),t(n)):x(n)}function x(e){return n(e)}function S(t){return e.enter(`tableRow`),C(t)}function C(n){return n===124?(e.enter(`tableCellDivider`),e.consume(n),e.exit(`tableCellDivider`),C):n===null||IN(n)?(e.exit(`tableRow`),t(n)):RN(n)?UN(e,C,`whitespace`)(n):(e.enter(`data`),w(n))}function w(t){return t===null||t===124||LN(t)?(e.exit(`data`),C(t)):(e.consume(t),t===92?T:w)}function T(t){return t===92||t===124?(e.consume(t),w):w(t)}}function NV(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,c=0,l,u,d,f=new OV;for(;++n<e.length;){let p=e[n],m=p[1];p[0]===`enter`?m.type===`tableHead`?(s=!1,c!==0&&(FV(f,t,c,l,u),u=void 0,c=0),l={type:`table`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,l,t]])):m.type===`tableRow`||m.type===`tableDelimiterRow`?(r=!0,d=void 0,a=[0,0,0,0],o=[0,n+1,0,0],s&&(s=!1,u={type:`tableBody`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,u,t]])),i=m.type===`tableDelimiterRow`?2:u?3:1):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)?(r=!1,o[2]===0&&(a[1]!==0&&(o[0]=o[1],d=PV(f,t,a,i,void 0,d),a=[0,0,0,0]),o[2]=n)):m.type===`tableCellDivider`&&(r?r=!1:(a[1]!==0&&(o[0]=o[1],d=PV(f,t,a,i,void 0,d)),a=o,o=[a[1],n,0,0])):m.type===`tableHead`?(s=!0,c=n):m.type===`tableRow`||m.type===`tableDelimiterRow`?(c=n,a[1]===0?o[1]!==0&&(d=PV(f,t,o,i,n,d)):(o[0]=o[1],d=PV(f,t,a,i,n,d)),i=0):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)&&(o[3]=n)}for(c!==0&&FV(f,t,c,l,u),f.consume(t.events),n=-1;++n<t.events.length;){let e=t.events[n];e[0]===`enter`&&e[1].type===`table`&&(e[1]._align=AV(t.events,n))}return e}function PV(e,t,n,r,i,a){let o=r===1?`tableHeader`:r===2?`tableDelimiter`:`tableData`;n[0]!==0&&(a.end=Object.assign({},IV(t.events,n[0])),e.add(n[0],0,[[`exit`,a,t]]));let s=IV(t.events,n[1]);if(a={type:o,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[[`enter`,a,t]]),n[2]!==0){let i=IV(t.events,n[2]),a=IV(t.events,n[3]),o={type:`tableContent`,start:Object.assign({},i),end:Object.assign({},a)};if(e.add(n[2],0,[[`enter`,o,t]]),r!==2){let r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type=`chunkText`,r[1].contentType=`text`,n[3]>n[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[[`exit`,o,t]])}return i!==void 0&&(a.end=Object.assign({},IV(t.events,i)),e.add(i,0,[[`exit`,a,t]]),a=void 0),a}function FV(e,t,n,r,i){let a=[],o=IV(t.events,n);i&&(i.end=Object.assign({},o),a.push([`exit`,i,t])),r.end=Object.assign({},o),a.push([`exit`,r,t]),e.add(n+1,0,a)}function IV(e,t){let n=e[t],r=n[0]===`enter`?`start`:`end`;return n[1][r]}var LV={name:`tasklistCheck`,tokenize:zV};function RV(){return{text:{91:LV}}}function zV(e,t,n){let r=this;return i;function i(t){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(t):(e.enter(`taskListCheck`),e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),a)}function a(t){return LN(t)?(e.enter(`taskListCheckValueUnchecked`),e.consume(t),e.exit(`taskListCheckValueUnchecked`),o):t===88||t===120?(e.enter(`taskListCheckValueChecked`),e.consume(t),e.exit(`taskListCheckValueChecked`),o):n(t)}function o(t){return t===93?(e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),e.exit(`taskListCheck`),s):n(t)}function s(r){return IN(r)?t(r):RN(r)?e.check({tokenize:BV},t,n)(r):n(r)}}function BV(e,t,n){return UN(e,r,`whitespace`);function r(e){return e===null?n(e):t(e)}}function VV(e){return wN([rV(),yV(),DV(e),jV(),RV()])}var HV={};function UV(e){let t=this,n=e||HV,r=t.data(),i=r.micromarkExtensions||=[],a=r.fromMarkdownExtensions||=[],o=r.toMarkdownExtensions||=[];i.push(VV(n)),a.push(KB()),o.push(qB(n))}var WV={markdownLoading:`_markdownLoading_1owo7_1`,markdownShell:`_markdownShell_1owo7_6`,deletedBanner:`_deletedBanner_1owo7_12`,markdownArticle:`_markdownArticle_1owo7_15`,markdownBody:`_markdownBody_1owo7_21`,markdownInlineCode:`_markdownInlineCode_1owo7_43`,markdownPre:`_markdownPre_1owo7_53`,markdownTableScroll:`_markdownTableScroll_1owo7_95`},GV={markdownCommentBlock:`_markdownCommentBlock_dpohk_1`,markdownCommentContent:`_markdownCommentContent_dpohk_7`,commentTrigger:`_commentTrigger_dpohk_11`,inlineThreadStack:`_inlineThreadStack_dpohk_37`},KV=v.memo(function({lineNumber:e,filePath:t,lineThreads:n,children:r,onCreate:i,onLocateThread:a,onPatchThread:o,onDeleteThread:s,onReplyThread:c,onPatchComment:l,onCopyThread:u}){let[d,f]=v.useState(!1);return(0,Q.jsxs)(`div`,{className:GV.markdownCommentBlock,"data-review-anchor":`line:${e}`,"data-review-line":e,children:[(0,Q.jsx)(`div`,{className:GV.markdownCommentContent,children:r}),n.length===0?(0,Q.jsx)(`button`,{className:GV.commentTrigger,type:`button`,"aria-label":`添加行评论`,onClick:()=>f(!0),children:(0,Q.jsx)(kA,{})}):null,d?(0,Q.jsx)(uj,{onCancel:()=>f(!1),onSubmit:async n=>{await i({type:`markdown-line`,filePath:t,lineNumber:e,blockId:`line-${e}`},n),f(!1)}}):null,n.length>0?(0,Q.jsx)(`div`,{className:GV.inlineThreadStack,children:(0,Q.jsx)(_j,{threads:n,onFocus:a,onPatch:o,onDeleteThread:s,onReply:c,onPatchComment:l,onCopy:u})}):null]})}),qV={mermaidDiagram:`_mermaidDiagram_3tdz3_1`,mermaidLoading:`_mermaidLoading_3tdz3_2`,mermaidFallback:`_mermaidFallback_3tdz3_3`,mermaidError:`_mermaidError_3tdz3_29`},JV=`modulepreload`,YV=function(e){return`/`+e},XV={},ZV=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=o(t.map(t=>{if(t=YV(t,n),t in XV)return;XV[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:JV,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})};function QV({chart:e}){let t=v.useId(),n=v.useMemo(()=>`mermaid-${t.replace(/[^a-zA-Z0-9_-]/g,``)}`,[t]),[r,i]=v.useState(``),[a,o]=v.useState(``);return v.useEffect(()=>{let t=!0;async function r(){try{let r=(await ZV(async()=>{let{default:e}=await import(`./mermaid.core-KAJOx9iv.js`);return{default:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]))).default;r.initialize({startOnLoad:!1,securityLevel:`strict`,theme:`default`});let a=await r.render(n,e);if(!t)return;i(a.svg),o(``)}catch(e){if(!t)return;i(``),o(e instanceof Error?e.message:`Mermaid 图表渲染失败`)}}return r(),()=>{t=!1}},[e,n]),a?(0,Q.jsxs)(`div`,{className:qV.mermaidFallback,children:[(0,Q.jsxs)(`div`,{className:qV.mermaidError,children:[`Mermaid 渲染失败:`,a]}),(0,Q.jsx)(`pre`,{children:(0,Q.jsx)(`code`,{children:e})})]}):r?(0,Q.jsx)(`div`,{className:qV.mermaidDiagram,dangerouslySetInnerHTML:{__html:r}}):(0,Q.jsx)(`div`,{className:qV.mermaidLoading,children:`正在渲染图表...`})}var $V=[WR,UV];function eH(e){return e.anchor.type===`file`?0:e.anchor.type===`markdown-line`?e.anchor.lineNumber:2**53-1}function tH(e,t){return t.filter(t=>t.filePath===e&&t.status!==`resolved`).sort((e,t)=>eH(e)-eH(t)||e.createdAt.localeCompare(t.createdAt))[0]}function nH(e){e.scrollTop=0}function rH(e,t){let n=e.getBoundingClientRect(),r=t.getBoundingClientRect();e.scrollTop+=r.top-n.top}function iH(e,t){let n=[...e.querySelectorAll(`[data-review-line]`)];return n.filter(e=>Number(e.dataset.reviewLine)<=t).at(-1)??n.find(e=>Number(e.dataset.reviewLine)>=t)??null}function aH(e,t){let n=e.blocks.find(e=>t>=e.startLine&&t<=e.endLine);return n?n.startLine:e.blocks.find(e=>e.startLine>=t)?.startLine??e.blocks.at(-1)?.startLine??t}function oH(e){return/^(https?:|mailto:|#|\.{0,2}\/|\/)/i.test(e.trim())}function sH(e){let t=e.split(`/`).filter(e=>e.length>0&&e!==`.`),n=[];for(let e of t){if(e===`..`){n.pop();continue}n.push(e)}return n}function cH(e,t){if(!t||/^https?:|^mailto:|^#/i.test(t)||t.startsWith(`/`))return t;let n=t.split(`#`)[0]?.split(`?`)[0]??t,r=sH(e);r.pop();let i=sH(n),a=[...r,...i].join(`/`);return a?`/api/markdown-asset?path=${encodeURIComponent(a)}`:t}function lH(e){return typeof e==`string`||typeof e==`number`?String(e):Array.isArray(e)?e.map(lH).join(``):v.isValidElement(e)?lH(e.props.children):``}function uH(e){return Array.isArray(e)?e.filter(e=>typeof e==`string`).join(` `):typeof e==`string`?e:``}function dH(e){return v.isValidElement(e)&&!!(e.props.className||e.props.children)}function fH(e){let t=e?.position?.start?.line;return typeof t==`number`?t:void 0}function pH(e){let t=e?.children?.find(e=>e.tagName===`code`);return uH(t?.properties?.className)}function mH(e){return e?e.type===`text`?e.value??``:e.children?.map(mH).join(``)??``:``}function hH(e){let t=e?.children?.find(e=>e.tagName===`code`);return mH(t)}function gH({file:e,threads:t,locateTarget:n,onCreate:r,onLocateThread:i,onPatchThread:a,onDeleteThread:o,onReplyThread:s,onPatchComment:c,onCopyThread:l}){let[u,d]=v.useState(null),f=v.useRef(null),p=v.useRef(``);v.useEffect(()=>{d(null),fetch(`/api/markdown-preview?path=${encodeURIComponent(e.path)}`).then(e=>e.json()).then(e=>d(e)).catch(()=>d(null))},[e.path]),v.useEffect(()=>{let n=f.current;if(!n||!u||u.filePath!==e.path||p.current===e.path)return;p.current=e.path;let r=tH(e.path,t);window.requestAnimationFrame(()=>{if(!r||r.anchor.type===`file`||r.anchor.type!==`markdown-line`){nH(n);return}let e=aH(u,r.anchor.lineNumber),t=n.querySelector(`[data-review-line="${e}"]`)??iH(n,e);if(!t){nH(n);return}rH(n,t)})},[e.path,u,t]),v.useEffect(()=>{let t=f.current;if(!t||!u||!n||n.anchor.filePath!==e.path)return;if(n.anchor.type===`file`){nH(t);return}if(n.anchor.type!==`markdown-line`)return;let r=aH(u,n.anchor.lineNumber),i=t.querySelector(`[data-review-line="${r}"]`)??iH(t,r);i?rH(t,i):nH(t)},[e.path,n,u]);let m=v.useMemo(()=>{let n=new Map;for(let r of t){if(r.anchor.type!==`markdown-line`||r.anchor.filePath!==e.path)continue;let t=u?.blocks.find(e=>r.anchor.type===`markdown-line`&&r.anchor.lineNumber>=e.startLine&&r.anchor.lineNumber<=e.endLine)?.startLine??r.anchor.lineNumber,i=n.get(t)??[];i.push(r),n.set(t,i)}return n},[e.path,u?.blocks,t]),h=v.useCallback((t,n)=>t?(0,Q.jsx)(KV,{lineNumber:t,filePath:e.path,lineThreads:m.get(t)??[],onCreate:r,onLocateThread:i,onPatchThread:a,onDeleteThread:o,onReplyThread:s,onPatchComment:c,onCopyThread:l,children:n}):n,[e.path,l,r,o,i,c,a,s,m]),g=v.useMemo(()=>({h1({children:e,node:t,...n}){return h(fH(t),(0,Q.jsx)(`h1`,{...n,children:e}))},h2({children:e,node:t,...n}){return h(fH(t),(0,Q.jsx)(`h2`,{...n,children:e}))},h3({children:e,node:t,...n}){return h(fH(t),(0,Q.jsx)(`h3`,{...n,children:e}))},h4({children:e,node:t,...n}){return h(fH(t),(0,Q.jsx)(`h4`,{...n,children:e}))},h5({children:e,node:t,...n}){return h(fH(t),(0,Q.jsx)(`h5`,{...n,children:e}))},h6({children:e,node:t,...n}){return h(fH(t),(0,Q.jsx)(`h6`,{...n,children:e}))},p({children:e,node:t,...n}){return h(fH(t),(0,Q.jsx)(`p`,{...n,children:e}))},blockquote({children:e,node:t,...n}){return h(fH(t),(0,Q.jsx)(`blockquote`,{...n,children:e}))},pre({children:e,node:t,...n}){let r=v.Children.toArray(e).find(dH),i=lH(r??e)||hH(t),a=r?.props.className??pH(t),o=/language-(\S+)/.exec(a)?.[1],s=i.replace(/\n$/,``),c=fH(t);return o===`mermaid`&&s.trim()?h(c,(0,Q.jsx)(QV,{chart:s})):h(c,(0,Q.jsx)(`pre`,{className:WV.markdownPre,...n,children:e}))},code({className:e,children:t,node:n,...r}){return e?(0,Q.jsx)(`code`,{className:e,...r,children:t}):(0,Q.jsx)(`code`,{className:WV.markdownInlineCode,...r,children:t})},table({children:e,node:t,...n}){return h(fH(t),(0,Q.jsx)(`div`,{className:WV.markdownTableScroll,children:(0,Q.jsx)(`table`,{...n,children:e})}))},a({href:e,children:t,node:n,...r}){let i=e??``;if(!i||!oH(i))return(0,Q.jsx)(`span`,{children:t});let a=/^https?:/i.test(i);return(0,Q.jsx)(`a`,{href:i,target:a?`_blank`:void 0,rel:a?`noreferrer`:void 0,...r,children:t})},img({src:t,alt:n,node:r,...i}){let a=t??``;return!a||!oH(a)?null:(0,Q.jsx)(`img`,{src:cH(e.path,a),alt:n??``,loading:`lazy`,...i})}}),[e.path,h]);return u?(0,Q.jsxs)(`div`,{className:WV.markdownShell,ref:f,children:[u.deleted?(0,Q.jsx)(Jc,{className:WV.deletedBanner,message:`该文件已删除,仅展示删除前预览`,type:`warning`,showIcon:!0}):null,(0,Q.jsx)(`article`,{className:WV.markdownArticle,children:(0,Q.jsx)(`div`,{className:WV.markdownBody,children:(0,Q.jsx)(vR,{remarkPlugins:$V,urlTransform:e=>oH(e)?e:``,components:g,children:u.content})})})]}):(0,Q.jsx)(`div`,{className:WV.markdownLoading,children:(0,Q.jsx)(FO,{})})}function _H(e){return e.mode.kind===`revision`?`范围:${e.mode.base}..${e.mode.target}`:e.mode.kind===`staged`?`范围:暂存区`:e.mode.kind===`working`?`范围:工作区`:`范围:未知`}function vH(e){return e.anchor.type===`file`?e.filePath:`${e.filePath}:${e.anchor.lineNumber}`}function yH(e){return e===`added`?`A`:e===`modified`?`M`:e===`deleted`?`D`:e===`renamed`?`R`:e}var bH={threads:`_threads_1i06v_1`,threadScopeBar:`_threadScopeBar_1i06v_5`,threadScopeLabel:`_threadScopeLabel_1i06v_15`,threadScopeSwitchRow:`_threadScopeSwitchRow_1i06v_22`,threadScopeSwitchRowDisabled:`_threadScopeSwitchRowDisabled_1i06v_32`,threadScopeOption:`_threadScopeOption_1i06v_35`,threadScopeOptionActive:`_threadScopeOptionActive_1i06v_57`,threadScopeSwitch:`_threadScopeSwitch_1i06v_22`,threadListToolbar:`_threadListToolbar_1i06v_69`,threadFilterWrap:`_threadFilterWrap_1i06v_78`,threadBatchButton:`_threadBatchButton_1i06v_89`,thread:`_thread_1i06v_1`,threadFocused:`_threadFocused_1i06v_133`,submit:`_submit_1i06v_138`,replied:`_replied_1i06v_142`,resolved:`_resolved_1i06v_146`,threadLocateFlash:`_threadLocateFlash_1i06v_150`,threadTopButton:`_threadTopButton_1i06v_156`,threadTop:`_threadTop_1i06v_156`,threadAnchor:`_threadAnchor_1i06v_178`,threadTag:`_threadTag_1i06v_185`,threadTagResolved:`_threadTagResolved_1i06v_194`,threadTagSubmit:`_threadTagSubmit_1i06v_199`,threadTagReplied:`_threadTagReplied_1i06v_204`,threadEmpty:`_threadEmpty_1i06v_209`},xH={submit:0,replied:1,resolved:2};function SH({threads:e,currentFiles:t,currentFilePath:n,focusedThreadId:r,onLocateThread:i,onPatch:a,onDeleteThread:o,onReply:s,onPatchComment:c,onCopy:l}){let[u,d]=v.useState(`all`),[f,p]=v.useState(`current-file`),[m,h]=v.useState(null),g=v.useRef({}),_=v.useMemo(()=>n?e.filter(e=>e.filePath===n).length:0,[n,e]),y=v.useMemo(()=>f===`all-diff`?e:n?e.filter(e=>e.filePath===n):[],[n,f,e]),b=v.useMemo(()=>y.map(e=>({key:e.id,thread:e})),[y]),x=v.useMemo(()=>b.filter(e=>{let t=pj(e.thread);return u===`resolved`?t===`resolved`:u===`pending`?t!==`resolved`:!0}).sort((e,t)=>{let n=pj(e.thread),r=pj(t.thread);return xH[n]-xH[r]}),[u,b]),S=v.useMemo(()=>({resolved:y.filter(e=>pj(e)===`resolved`),submit:y.filter(e=>pj(e)===`submit`)}),[y]),C=v.useCallback(async e=>{let t=[];e===`delete-resolved`&&(t=S.resolved),e===`delete-submit`&&(t=S.submit),e===`delete-all`&&(t=y);for(let e of t)await o(e.id)},[S.resolved,S.submit,o,y]),w=v.useCallback(e=>{let t=e===`delete-resolved`?S.resolved.length:e===`delete-submit`?S.submit.length:y.length,n=e===`delete-resolved`?`删除全部已解决评论(${t})?`:e===`delete-submit`?`删除全部 submit 评论(${t})?`:`清空全部评论(${t})?`,r=e===`delete-all`?`清空`:`删除`;qO.confirm({title:n,okText:r,cancelText:`取消`,okButtonProps:e===`delete-all`?{danger:!0}:void 0,onOk:async()=>C(e)})},[S.resolved.length,S.submit.length,C,y.length]);return v.useEffect(()=>{n||p(`all-diff`)},[n]),v.useEffect(()=>{if(!r)return;let e=x.find(e=>e.thread.id===r);e&&g.current[e.key]?.scrollIntoView({block:`start`,behavior:`smooth`})},[r,x]),v.useEffect(()=>{if(!r)return;h(r);let e=window.setTimeout(()=>{h(e=>e===r?null:e)},1400);return()=>window.clearTimeout(e)},[r]),(0,Q.jsxs)(`div`,{children:[(0,Q.jsxs)(`div`,{className:bH.threadScopeBar,children:[(0,Q.jsx)(CA.Text,{className:bH.threadScopeLabel,children:`查看范围`}),(0,Q.jsxs)(`div`,{className:n?bH.threadScopeSwitchRow:`${bH.threadScopeSwitchRow} ${bH.threadScopeSwitchRowDisabled}`,children:[(0,Q.jsxs)(`button`,{type:`button`,className:f===`current-file`?`${bH.threadScopeOption} ${bH.threadScopeOptionActive}`:bH.threadScopeOption,onClick:()=>p(`current-file`),disabled:!n,children:[`当前文件 (`,_,`)`]}),(0,Q.jsx)(lk,{className:bH.threadScopeSwitch,checked:f===`all-diff`,onChange:e=>p(e?`all-diff`:`current-file`),disabled:!n,size:`small`}),(0,Q.jsxs)(`button`,{type:`button`,className:f===`all-diff`?`${bH.threadScopeOption} ${bH.threadScopeOptionActive}`:bH.threadScopeOption,onClick:()=>p(`all-diff`),disabled:!n,children:[`全部评论 (`,e.length,`)`]})]})]}),(0,Q.jsxs)(`div`,{className:bH.threadListToolbar,children:[(0,Q.jsx)(`div`,{className:bH.threadFilterWrap,children:(0,Q.jsx)(oE,{value:u,onChange:e=>d(e),options:[{label:`全部 (${b.length})`,value:`all`},{label:`未解决 (${b.filter(e=>pj(e.thread)!==`resolved`).length})`,value:`pending`},{label:`已解决 (${b.filter(e=>pj(e.thread)===`resolved`).length})`,value:`resolved`}],size:`small`})}),(0,Q.jsx)(NE,{menu:{items:[{key:`delete-resolved`,label:`删除已解决(${S.resolved.length})`,disabled:S.resolved.length===0},{key:`delete-submit`,label:`删除待提交(${S.submit.length})`,disabled:S.submit.length===0},{type:`divider`},{key:`delete-all`,label:`清空全部(${y.length})`,danger:!0,disabled:y.length===0}],onClick:({key:e})=>{(e===`delete-resolved`||e===`delete-submit`||e===`delete-all`)&&w(e)}},trigger:[`click`],children:(0,Q.jsxs)(WC,{size:`small`,className:bH.threadBatchButton,children:[`批量操作 `,(0,Q.jsx)(wb,{})]})})]}),x.length===0?(0,Q.jsx)(nb,{className:bH.threadEmpty,description:`暂无评论,悬停到行右侧或添加文件级评论即可开始。`}):(0,Q.jsx)(`div`,{className:bH.threads,children:x.map(e=>{let n=e.thread,u=pj(n),d=r===n.id,f=!t.some(e=>fj(n,e));return(0,Q.jsxs)(RT,{className:[bH.thread,wH(u),d?bH.threadFocused:``,m===n.id?bH.threadLocateFlash:``].filter(Boolean).join(` `),ref:t=>{g.current[e.key]=t},children:[(0,Q.jsx)(`button`,{type:`button`,className:bH.threadTopButton,onClick:()=>i(n.id),children:(0,Q.jsxs)(jE,{className:bH.threadTop,align:`start`,size:8,children:[(0,Q.jsx)(CA.Text,{className:bH.threadAnchor,strong:!0,children:vH(n)}),(0,Q.jsxs)(qE,{gap:`small`,children:[u===`replied`?null:(0,Q.jsx)(Sk,{className:`${bH.threadTag} ${CH(u)}`,children:dj[u]}),f?(0,Q.jsx)(Sk,{className:bH.threadTag,children:`历史快照`}):null]})]})}),(0,Q.jsx)(`div`,{children:(0,Q.jsx)(_j,{threads:[n],variant:`borderless`,showStatusTag:!1,onFocus:i,onPatch:a,onDeleteThread:o,onReply:s,onPatchComment:c,onCopy:l})})]},e.key)})})]})}function CH(e){return e===`submit`?bH.threadTagSubmit:e===`replied`?bH.threadTagReplied:bH.threadTagResolved}function wH(e){return e===`submit`?bH.submit:e===`replied`?bH.replied:bH.resolved}var TH={shell:`_shell_109ez_1`,sidebar:`_sidebar_109ez_23`,threadRail:`_threadRail_109ez_24`,reviewPane:`_reviewPane_109ez_38`,brand:`_brand_109ez_46`,brandMark:`_brandMark_109ez_52`,brandCopy:`_brandCopy_109ez_63`,repoName:`_repoName_109ez_68`,productName:`_productName_109ez_78`,sideCard:`_sideCard_109ez_82`,fileRailHeader:`_fileRailHeader_109ez_91`,threadRailHeader:`_threadRailHeader_109ez_92`,topToolbar:`_topToolbar_109ez_93`,threadRailTitle:`_threadRailTitle_109ez_101`,fileList:`_fileList_109ez_108`,fileItem:`_fileItem_109ez_114`,fileItemActive:`_fileItemActive_109ez_124`,fileMeta:`_fileMeta_109ez_128`,fileName:`_fileName_109ez_138`,fileStats:`_fileStats_109ez_147`,fileStatAdd:`_fileStatAdd_109ez_150`,fileStatDelete:`_fileStatDelete_109ez_154`,fileThreadCount:`_fileThreadCount_109ez_158`,viewModeSwitcher:`_viewModeSwitcher_109ez_166`,reviewSurface:`_reviewSurface_109ez_172`,threadRailBody:`_threadRailBody_109ez_183`,emptyStateCard:`_emptyStateCard_109ez_188`},EH=36,DH=18;function OH(e,t,n){if(e.length<=t)return e;let r=Math.min(n,t-4),i=t-r-3;return`${e.slice(0,i)}...${e.slice(-r)}`}function kH(e){return/\.(avif|bmp|gif|heic|heif|ico|jpe?g|png|svg|tiff?|webp)$/i.test(e)}function AH(e){return e?e.repoName||e.repoRoot.split(/[\\/]/).filter(Boolean).at(-1)||e.repoRoot:`正在加载仓库`}function jH(e,t){return e===t?!0:e.length===t.length?JSON.stringify(e)===JSON.stringify(t):!1}function MH(){let{message:e}=q_.useApp(),[t,n]=v.useState(null),[r,i]=v.useState([]),[a,o]=v.useState([]),[s,c]=v.useState(``),[l,u]=v.useState(`split`),[d,f]=v.useState(null),[p,m]=v.useState(null),[h,g]=v.useState(null),[_,y]=v.useState({}),b=r.find(e=>e.path===s)??r[0],x=v.useMemo(()=>a.filter(e=>r.some(t=>fj(e,t))),[r,a]),S=v.useMemo(()=>b?x.filter(e=>fj(e,b)):[],[x,b]),C=x.filter(e=>e.status!==`resolved`).length;v.useEffect(()=>{w()},[]),v.useEffect(()=>{let e=()=>{document.visibilityState===`visible`&&T()},t=window.setInterval(e,2500);return window.addEventListener(`focus`,e),document.addEventListener(`visibilitychange`,e),()=>{window.clearInterval(t),window.removeEventListener(`focus`,e),document.removeEventListener(`visibilitychange`,e)}},[d,t?.id]);async function w(){await T(!0)}async function T(e=!1){let r=await(await fetch(`/api/review-state`)).json();(e||t?.id!==r.session.id)&&(n(r.session),i(r.files),c(e=>r.files.some(t=>t.path===e)?e:r.files[0]?.path??``)),o(e=>jH(e,r.threads)?e:r.threads),d&&!r.threads.some(e=>e.id===d)&&f(null)}async function E(e,t){await fetch(`/api/threads`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({filePath:e.filePath,anchor:e,body:t})}),await T()}async function D(e,t){let n=await fetch(`/api/threads/${e}`,{method:`PATCH`,headers:{"Content-Type":`application/json`},body:JSON.stringify({status:t})});if(!n.ok){let e=await n.json().catch(()=>({error:`更新评论状态失败`}));throw Error(e.error??`更新评论状态失败`)}await T()}async function O(e){await fetch(`/api/threads/${e}`,{method:`DELETE`}),await T()}async function k(e,t){await fetch(`/api/threads/${e}/comments`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({body:t,author:`user`})}),await T()}async function A(e,t,n){if(!t)throw Error(`Comment id is required`);let r=await fetch(`/api/threads/${e}/comments/${t}`,{method:`PATCH`,headers:{"Content-Type":`application/json`},body:JSON.stringify({body:n})});if(!r.ok){let e=await r.json().catch(()=>({error:`编辑评论失败`}));throw Error(e.error??`编辑评论失败`)}await T()}async function j(t){let n=await(await fetch(`/api/prompt`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(t)})).json();await navigator.clipboard.writeText(n.prompt),e.success(`提示词已复制到剪贴板`)}function M(e){let t=a.find(t=>t.id===e);t&&(r.some(e=>e.path===t.filePath)&&c(t.filePath),m({threadId:e,anchor:t.anchor})),f(e)}function N(e){g(t=>({filePath:e,requestId:(t?.requestId??0)+1}))}function P(e,t){y(n=>(n[e]??!1)===t?n:{...n,[e]:t})}return v.useEffect(()=>{f(null)},[s]),(0,Q.jsxs)(LD,{className:TH.shell,children:[(0,Q.jsxs)(`aside`,{className:TH.sidebar,children:[(0,Q.jsxs)(`div`,{className:TH.brand,children:[(0,Q.jsx)(`div`,{className:TH.brandMark,children:`DR`}),(0,Q.jsxs)(`div`,{className:TH.brandCopy,children:[(0,Q.jsx)(CA.Text,{className:TH.repoName,title:t?.repoRoot,children:AH(t)}),(0,Q.jsx)(CA.Text,{className:TH.productName,children:`Diff 审查台`}),(0,Q.jsx)(CA.Text,{type:`secondary`,children:t?_H(t):`正在加载会话`})]})]}),(0,Q.jsx)(RT,{className:TH.sideCard,bordered:!1,children:(0,Q.jsxs)(jE,{size:8,wrap:!0,children:[(0,Q.jsx)(Sk,{color:`blue`,children:t?.mode.kind===`revision`?`混合模式`:`本地模式`}),(0,Q.jsxs)(Sk,{color:`gold`,children:[r.length,` files`]})]})}),(0,Q.jsx)(`div`,{className:TH.fileRailHeader,children:(0,Q.jsx)(CA.Text,{strong:!0,children:`文件列表`})}),(0,Q.jsx)(UO,{className:TH.fileList,dataSource:r,renderItem:e=>{let t=e.path===b?.path,n=x.filter(t=>fj(t,e)&&t.status!==`resolved`);return(0,Q.jsxs)(UO.Item,{className:t?`${TH.fileItem} ${TH.fileItemActive}`:TH.fileItem,onClick:()=>c(e.path),children:[(0,Q.jsxs)(`div`,{className:TH.fileMeta,children:[(0,Q.jsx)(Sk,{color:e.status===`deleted`?`error`:e.status===`added`?`green`:`processing`,children:yH(e.status)}),(0,Q.jsx)(CA.Text,{strong:!0,className:TH.fileName,title:e.path,children:OH(e.path,EH,DH)})]}),(0,Q.jsxs)(CA.Text,{className:TH.fileStats,type:`secondary`,children:[(0,Q.jsxs)(`span`,{className:TH.fileStatAdd,children:[`+`,e.additions]}),` / `,(0,Q.jsxs)(`span`,{className:TH.fileStatDelete,children:[`-`,e.deletions]})]}),n.length>0?(0,Q.jsx)(Sk,{className:TH.fileThreadCount,icon:(0,Q.jsx)(kA,{}),children:n.length}):null]})}})]}),(0,Q.jsx)(`section`,{className:TH.reviewPane,children:b?(0,Q.jsxs)(Q.Fragment,{children:[b.isMarkdown?null:(0,Q.jsx)(`div`,{className:TH.topToolbar,children:(0,Q.jsx)(oE,{className:TH.viewModeSwitcher,options:[{label:`Side by side`,value:`split`,icon:(0,Q.jsx)(MA,{})},{label:`Inline`,value:`inline`,icon:(0,Q.jsx)(oD,{})}],value:l,onChange:e=>u(e)})}),(0,Q.jsxs)(`div`,{className:TH.reviewSurface,children:[(0,Q.jsx)(Fj,{file:b,threads:S,showToggleAllLines:!b.isMarkdown&&!kH(b.path),hasExpandedContext:b?_[b.path]??!1:!1,onCreate:E,onCopy:j,onToggleAllLines:N,onLocateThread:M,onPatchThread:D,onDeleteThread:O,onReplyThread:k,onPatchComment:A,onCopyThread:j}),b.isMarkdown?(0,Q.jsx)(gH,{file:b,threads:S,locateTarget:p,onCreate:E,onLocateThread:M,onPatchThread:D,onDeleteThread:O,onReplyThread:k,onPatchComment:A,onCopyThread:j},t?.id):(0,Q.jsx)(Nj,{file:b,threads:S,locateTarget:p,expandAllRequest:h,onExpandedContextChange:P,onCreate:E,onLocateThread:M,onPatchThread:D,onDeleteThread:O,onReplyThread:k,onPatchComment:A,onCopyThread:j,viewMode:l},t?.id)]})]}):(0,Q.jsx)(RT,{className:TH.emptyStateCard,bordered:!1,children:(0,Q.jsx)(CA.Text,{type:`secondary`,children:`未发现变更,当前工作区很安静。`})})}),(0,Q.jsxs)(`aside`,{className:TH.threadRail,children:[(0,Q.jsxs)(`div`,{className:TH.threadRailHeader,children:[(0,Q.jsxs)(CA.Title,{className:TH.threadRailTitle,level:4,children:[`评论 (`,C,`)`]}),(0,Q.jsx)(WC,{disabled:C===0,icon:(0,Q.jsx)(Zk,{}),type:`primary`,onClick:()=>void j({type:`all-unresolved`}),children:`批量提交给 Agent`})]}),(0,Q.jsx)(`div`,{className:TH.threadRailBody,children:(0,Q.jsx)(SH,{threads:a,currentFiles:r,currentFilePath:b?.path??``,focusedThreadId:d,onLocateThread:M,onPatch:D,onDeleteThread:O,onReply:k,onPatchComment:A,onCopy:j})})]})]})}(0,ud.createRoot)(document.getElementById(`root`)).render((0,Q.jsx)(v.StrictMode,{children:(0,Q.jsx)(ju,{theme:{token:{colorPrimary:`#2f6fed`,colorSuccess:`#2f8f63`,colorWarning:`#d59b2a`,colorTextBase:`#16181d`,colorBgBase:`#f4f6fa`,fontFamily:`"SF Pro Text", "PingFang SC", "Helvetica Neue", sans-serif`,borderRadius:14}},children:(0,Q.jsx)(q_,{children:(0,Q.jsx)(MH,{})})})}));export{er as a,pn as c,un as d,o as f,sr as i,cn as l,cr as n,an as o,l as p,or as r,fn as s,ZV as t,mn as u};
|
|
288
|
+
`))}function c(e,t,n,r){let i=n.enter(`tableCell`),o=n.enter(`phrasing`),s=n.containerPhrasing(e,{...r,before:a,after:a});return o(),i(),s}function l(e,t){return rB(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function u(e,t,n){let r=e.children,i=-1,a=[],o=t.enter(`table`);for(;++i<r.length;)a[i]=d(r[i],t,n);return o(),a}function d(e,t,n){let r=e.children,i=-1,a=[],o=t.enter(`tableRow`);for(;++i<r.length;)a[i]=c(r[i],e,t,n);return o(),a}function f(e,t,n){let r=eV.inlineCode(e,t,n);return n.stack.includes(`tableCell`)&&(r=r.replace(/\|/g,`\\$&`)),r}}function uV(){return{exit:{taskListCheckValueChecked:fV,taskListCheckValueUnchecked:fV,paragraph:pV}}}function dV(){return{unsafe:[{atBreak:!0,character:`-`,after:`[:|-]`}],handlers:{listItem:mV}}}function fV(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type===`taskListCheckValueChecked`}function pV(e){let t=this.stack[this.stack.length-2];if(t&&t.type===`listItem`&&typeof t.checked==`boolean`){let e=this.stack[this.stack.length-1];e.type;let n=e.children[0];if(n&&n.type===`text`){let r=t.children,i=-1,a;for(;++i<r.length;){let e=r[i];if(e.type===`paragraph`){a=e;break}}a===e&&(n.value=n.value.slice(1),n.value.length===0?e.children.shift():e.position&&n.position&&typeof n.position.start.offset==`number`&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function mV(e,t,n,r){let i=e.children[0],a=typeof e.checked==`boolean`&&i&&i.type===`paragraph`,o=`[`+(e.checked?`x`:` `)+`] `,s=n.createTracker(r);a&&s.move(o);let c=eV.listItem(e,t,n,{...r,...s.current()});return a&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,l)),c;function l(e){return e+o}}function hV(){return[xz(),Gz(),Xz(),tV(),uV()]}function gV(e){return{extensions:[Sz(),Kz(e),Zz(),lV(e),dV()]}}var _V={tokenize:jV,partial:!0},vV={tokenize:MV,partial:!0},yV={tokenize:NV,partial:!0},bV={tokenize:PV,partial:!0},xV={tokenize:FV,partial:!0},SV={name:`wwwAutolink`,tokenize:kV,previous:IV},CV={name:`protocolAutolink`,tokenize:AV,previous:LV},wV={name:`emailAutolink`,tokenize:OV,previous:RV},TV={};function EV(){return{text:TV}}for(var DV=48;DV<123;)TV[DV]=wV,DV++,DV===58?DV=65:DV===91&&(DV=97);TV[43]=wV,TV[45]=wV,TV[46]=wV,TV[95]=wV,TV[72]=[wV,CV],TV[104]=[wV,CV],TV[87]=[wV,SV],TV[119]=[wV,SV];function OV(e,t,n){let r=this,i,a;return o;function o(t){return!zV(t)||!RV.call(r,r.previous)||BV(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkEmail`),s(t))}function s(t){return zV(t)?(e.consume(t),s):t===64?(e.consume(t),c):n(t)}function c(t){return t===46?e.check(xV,u,l)(t):t===45||t===95||$N(t)?(a=!0,e.consume(t),c):u(t)}function l(t){return e.consume(t),i=!0,c}function u(o){return a&&i&&QN(r.previous)?(e.exit(`literalAutolinkEmail`),e.exit(`literalAutolink`),t(o)):n(o)}}function kV(e,t,n){let r=this;return i;function i(t){return t!==87&&t!==119||!IV.call(r,r.previous)||BV(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkWww`),e.check(_V,e.attempt(vV,e.attempt(yV,a),n),n)(t))}function a(n){return e.exit(`literalAutolinkWww`),e.exit(`literalAutolink`),t(n)}}function AV(e,t,n){let r=this,i=``,a=!1;return o;function o(t){return(t===72||t===104)&&LV.call(r,r.previous)&&!BV(r.events)?(e.enter(`literalAutolink`),e.enter(`literalAutolinkHttp`),i+=String.fromCodePoint(t),e.consume(t),s):n(t)}function s(t){if(QN(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),s;if(t===58){let n=i.toLowerCase();if(n===`http`||n===`https`)return e.consume(t),c}return n(t)}function c(t){return t===47?(e.consume(t),a?l:(a=!0,c)):n(t)}function l(t){return t===null||tP(t)||oP(t)||lP(t)||cP(t)?n(t):e.attempt(vV,e.attempt(yV,u),n)(t)}function u(n){return e.exit(`literalAutolinkHttp`),e.exit(`literalAutolink`),t(n)}}function jV(e,t,n){let r=0;return i;function i(t){return(t===87||t===119)&&r<3?(r++,e.consume(t),i):t===46&&r===3?(e.consume(t),a):n(t)}function a(e){return e===null?n(e):t(e)}}function MV(e,t,n){let r,i,a;return o;function o(t){return t===46||t===95?e.check(bV,c,s)(t):t===null||oP(t)||lP(t)||t!==45&&cP(t)?c(t):(a=!0,e.consume(t),o)}function s(t){return t===95?r=!0:(i=r,r=void 0),e.consume(t),o}function c(e){return i||r||!a?n(e):t(e)}}function NV(e,t){let n=0,r=0;return i;function i(o){return o===40?(n++,e.consume(o),i):o===41&&r<n?a(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(bV,t,a)(o):o===null||oP(o)||lP(o)?t(o):(e.consume(o),i)}function a(t){return t===41&&r++,e.consume(t),i}}function PV(e,t,n){return r;function r(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(e.consume(o),r):o===38?(e.consume(o),a):o===93?(e.consume(o),i):o===60||o===null||oP(o)||lP(o)?t(o):n(o)}function i(e){return e===null||e===40||e===91||oP(e)||lP(e)?t(e):r(e)}function a(e){return QN(e)?o(e):n(e)}function o(t){return t===59?(e.consume(t),r):QN(t)?(e.consume(t),o):n(t)}}function FV(e,t,n){return r;function r(t){return e.consume(t),i}function i(e){return $N(e)?n(e):t(e)}}function IV(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||oP(e)}function LV(e){return!QN(e)}function RV(e){return!(e===47||zV(e))}function zV(e){return e===43||e===45||e===46||e===95||$N(e)}function BV(e){let t=e.length,n=!1;for(;t--;){let 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}var VV={tokenize:YV,partial:!0};function HV(){return{document:{91:{name:`gfmFootnoteDefinition`,tokenize:KV,continuation:{tokenize:qV},exit:JV}},text:{91:{name:`gfmFootnoteCall`,tokenize:GV},93:{name:`gfmPotentialFootnoteCall`,add:`after`,tokenize:UV,resolveTo:WV}}}}function UV(e,t,n){let r=this,i=r.events.length,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),o;for(;i--;){let e=r.events[i][1];if(e.type===`labelImage`){o=e;break}if(e.type===`gfmFootnoteCall`||e.type===`labelLink`||e.type===`label`||e.type===`image`||e.type===`link`)break}return s;function s(i){if(!o||!o._balanced)return n(i);let s=ZN(r.sliceSerialize({start:o.end,end:r.now()}));return s.codePointAt(0)!==94||!a.includes(s.slice(1))?n(i):(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(i),e.exit(`gfmFootnoteCallLabelMarker`),t(i))}}function WV(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`;let 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++;let a={type:`gfmFootnoteCallString`,start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:`chunkString`,contentType:`string`,start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],[`enter`,r,t],e[n+3],e[n+4],[`enter`,i,t],[`exit`,i,t],[`enter`,a,t],[`enter`,o,t],[`exit`,o,t],[`exit`,a,t],e[e.length-2],e[e.length-1],[`exit`,r,t]];return e.splice(n,e.length-n+1,...s),e}function GV(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a=0,o;return s;function s(t){return e.enter(`gfmFootnoteCall`),e.enter(`gfmFootnoteCallLabelMarker`),e.consume(t),e.exit(`gfmFootnoteCallLabelMarker`),c}function c(t){return t===94?(e.enter(`gfmFootnoteCallMarker`),e.consume(t),e.exit(`gfmFootnoteCallMarker`),e.enter(`gfmFootnoteCallString`),e.enter(`chunkString`).contentType=`string`,l):n(t)}function l(s){if(a>999||s===93&&!o||s===null||s===91||oP(s))return n(s);if(s===93){e.exit(`chunkString`);let a=e.exit(`gfmFootnoteCallString`);return i.includes(ZN(r.sliceSerialize(a)))?(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(s),e.exit(`gfmFootnoteCallLabelMarker`),e.exit(`gfmFootnoteCall`),t):n(s)}return oP(s)||(o=!0),a++,e.consume(s),s===92?u:l}function u(t){return t===91||t===92||t===93?(e.consume(t),a++,l):l(t)}}function KV(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a,o=0,s;return c;function c(t){return e.enter(`gfmFootnoteDefinition`)._container=!0,e.enter(`gfmFootnoteDefinitionLabel`),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),l}function l(t){return t===94?(e.enter(`gfmFootnoteDefinitionMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionMarker`),e.enter(`gfmFootnoteDefinitionLabelString`),e.enter(`chunkString`).contentType=`string`,u):n(t)}function u(t){if(o>999||t===93&&!s||t===null||t===91||oP(t))return n(t);if(t===93){e.exit(`chunkString`);let n=e.exit(`gfmFootnoteDefinitionLabelString`);return a=ZN(r.sliceSerialize(n)),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),e.exit(`gfmFootnoteDefinitionLabel`),f}return oP(t)||(s=!0),o++,e.consume(t),t===92?d:u}function d(t){return t===91||t===92||t===93?(e.consume(t),o++,u):u(t)}function f(t){return t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),i.includes(a)||i.push(a),fP(e,p,`gfmFootnoteDefinitionWhitespace`)):n(t)}function p(e){return t(e)}}function qV(e,t,n){return e.check(DP,t,e.attempt(VV,t,n))}function JV(e){e.exit(`gfmFootnoteDefinition`)}function YV(e,t,n){let r=this;return fP(e,i,`gfmFootnoteDefinitionIndent`,5);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`gfmFootnoteDefinitionIndent`&&i[2].sliceSerialize(i[1],!0).length===4?t(e):n(e)}}function XV(e){let t=(e||{}).singleTilde,n={name:`strikethrough`,tokenize:i,resolveAll:r};return t??=!0,{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function r(e,t){let n=-1;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`strikethroughSequenceTemporary`&&e[n][1]._close){let r=n;for(;r--;)if(e[r][0]===`exit`&&e[r][1].type===`strikethroughSequenceTemporary`&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset===e[r][1].end.offset-e[r][1].start.offset){e[n][1].type=`strikethroughSequence`,e[r][1].type=`strikethroughSequence`;let i={type:`strikethrough`,start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},a={type:`strikethroughText`,start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},o=[[`enter`,i,t],[`enter`,e[r][1],t],[`exit`,e[r][1],t],[`enter`,a,t]],s=t.parser.constructs.insideSpan.null;s&&WN(o,o.length,0,bP(s,e.slice(r+1,n),t)),WN(o,o.length,0,[[`exit`,a,t],[`enter`,e[n][1],t],[`exit`,e[n][1],t],[`exit`,i,t]]),WN(e,r-1,n-r+3,o),n=r+o.length-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`strikethroughSequenceTemporary`&&(e[n][1].type=`data`);return e}function i(e,n,r){let i=this.previous,a=this.events,o=0;return s;function s(t){return i===126&&a[a.length-1][1].type!==`characterEscape`?r(t):(e.enter(`strikethroughSequenceTemporary`),c(t))}function c(a){let s=yP(i);if(a===126)return o>1?r(a):(e.consume(a),o++,c);if(o<2&&!t)return r(a);let l=e.exit(`strikethroughSequenceTemporary`),u=yP(a);return l._open=!u||u===2&&!!s,l._close=!s||s===2&&!!u,n(a)}}}var ZV=class{constructor(){this.map=[]}add(e,t,n){QV(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),this.map.length===0)return;let t=this.map.length,n=[];for(;t>0;)--t,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0}};function QV(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 $V(e,t){let n=!1,r=[];for(;t<e.length;){let 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`){let e=r.length-1;r[e]=r[e]===`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 eH(){return{flow:{null:{name:`table`,tokenize:tH,resolveAll:nH}}}}function tH(e,t,n){let r=this,i=0,a=0,o;return s;function s(e){let t=r.events.length-1;for(;t>-1;){let e=r.events[t][1].type;if(e===`lineEnding`||e===`linePrefix`)t--;else break}let i=t>-1?r.events[t][1].type:null,a=i===`tableHead`||i===`tableRow`?S:c;return a===S&&r.parser.lazy[r.now().line]?n(e):a(e)}function c(t){return e.enter(`tableHead`),e.enter(`tableRow`),l(t)}function l(e){return e===124?u(e):(o=!0,a+=1,u(e))}function u(t){return t===null?n(t):aP(t)?a>1?(a=0,r.interrupt=!0,e.exit(`tableRow`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),p):n(t):sP(t)?fP(e,u,`whitespace`)(t):(a+=1,o&&(o=!1,i+=1),t===124?(e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),o=!0,u):(e.enter(`data`),d(t)))}function d(t){return t===null||t===124||oP(t)?(e.exit(`data`),u(t)):(e.consume(t),t===92?f:d)}function f(t){return t===92||t===124?(e.consume(t),d):d(t)}function p(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter(`tableDelimiterRow`),o=!1,sP(t)?fP(e,m,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):m(t))}function m(t){return t===45||t===58?g(t):t===124?(o=!0,e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),h):x(t)}function h(t){return sP(t)?fP(e,g,`whitespace`)(t):g(t)}function g(t){return t===58?(a+=1,o=!0,e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),_):t===45?(a+=1,_(t)):t===null||aP(t)?b(t):x(t)}function _(t){return t===45?(e.enter(`tableDelimiterFiller`),v(t)):x(t)}function v(t){return t===45?(e.consume(t),v):t===58?(o=!0,e.exit(`tableDelimiterFiller`),e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),y):(e.exit(`tableDelimiterFiller`),y(t))}function y(t){return sP(t)?fP(e,b,`whitespace`)(t):b(t)}function b(n){return n===124?m(n):n===null||aP(n)?!o||i!==a?x(n):(e.exit(`tableDelimiterRow`),e.exit(`tableHead`),t(n)):x(n)}function x(e){return n(e)}function S(t){return e.enter(`tableRow`),C(t)}function C(n){return n===124?(e.enter(`tableCellDivider`),e.consume(n),e.exit(`tableCellDivider`),C):n===null||aP(n)?(e.exit(`tableRow`),t(n)):sP(n)?fP(e,C,`whitespace`)(n):(e.enter(`data`),w(n))}function w(t){return t===null||t===124||oP(t)?(e.exit(`data`),C(t)):(e.consume(t),t===92?T:w)}function T(t){return t===92||t===124?(e.consume(t),w):w(t)}}function nH(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,c=0,l,u,d,f=new ZV;for(;++n<e.length;){let p=e[n],m=p[1];p[0]===`enter`?m.type===`tableHead`?(s=!1,c!==0&&(iH(f,t,c,l,u),u=void 0,c=0),l={type:`table`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,l,t]])):m.type===`tableRow`||m.type===`tableDelimiterRow`?(r=!0,d=void 0,a=[0,0,0,0],o=[0,n+1,0,0],s&&(s=!1,u={type:`tableBody`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,u,t]])),i=m.type===`tableDelimiterRow`?2:u?3:1):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)?(r=!1,o[2]===0&&(a[1]!==0&&(o[0]=o[1],d=rH(f,t,a,i,void 0,d),a=[0,0,0,0]),o[2]=n)):m.type===`tableCellDivider`&&(r?r=!1:(a[1]!==0&&(o[0]=o[1],d=rH(f,t,a,i,void 0,d)),a=o,o=[a[1],n,0,0])):m.type===`tableHead`?(s=!0,c=n):m.type===`tableRow`||m.type===`tableDelimiterRow`?(c=n,a[1]===0?o[1]!==0&&(d=rH(f,t,o,i,n,d)):(o[0]=o[1],d=rH(f,t,a,i,n,d)),i=0):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)&&(o[3]=n)}for(c!==0&&iH(f,t,c,l,u),f.consume(t.events),n=-1;++n<t.events.length;){let e=t.events[n];e[0]===`enter`&&e[1].type===`table`&&(e[1]._align=$V(t.events,n))}return e}function rH(e,t,n,r,i,a){let o=r===1?`tableHeader`:r===2?`tableDelimiter`:`tableData`;n[0]!==0&&(a.end=Object.assign({},aH(t.events,n[0])),e.add(n[0],0,[[`exit`,a,t]]));let s=aH(t.events,n[1]);if(a={type:o,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[[`enter`,a,t]]),n[2]!==0){let i=aH(t.events,n[2]),a=aH(t.events,n[3]),o={type:`tableContent`,start:Object.assign({},i),end:Object.assign({},a)};if(e.add(n[2],0,[[`enter`,o,t]]),r!==2){let r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type=`chunkText`,r[1].contentType=`text`,n[3]>n[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[[`exit`,o,t]])}return i!==void 0&&(a.end=Object.assign({},aH(t.events,i)),e.add(i,0,[[`exit`,a,t]]),a=void 0),a}function iH(e,t,n,r,i){let a=[],o=aH(t.events,n);i&&(i.end=Object.assign({},o),a.push([`exit`,i,t])),r.end=Object.assign({},o),a.push([`exit`,r,t]),e.add(n+1,0,a)}function aH(e,t){let n=e[t],r=n[0]===`enter`?`start`:`end`;return n[1][r]}var oH={name:`tasklistCheck`,tokenize:cH};function sH(){return{text:{91:oH}}}function cH(e,t,n){let r=this;return i;function i(t){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(t):(e.enter(`taskListCheck`),e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),a)}function a(t){return oP(t)?(e.enter(`taskListCheckValueUnchecked`),e.consume(t),e.exit(`taskListCheckValueUnchecked`),o):t===88||t===120?(e.enter(`taskListCheckValueChecked`),e.consume(t),e.exit(`taskListCheckValueChecked`),o):n(t)}function o(t){return t===93?(e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),e.exit(`taskListCheck`),s):n(t)}function s(r){return aP(r)?t(r):sP(r)?e.check({tokenize:lH},t,n)(r):n(r)}}function lH(e,t,n){return fP(e,r,`whitespace`);function r(e){return e===null?n(e):t(e)}}function uH(e){return qN([EV(),HV(),XV(e),eH(),sH()])}var dH={};function fH(e){let t=this,n=e||dH,r=t.data(),i=r.micromarkExtensions||=[],a=r.fromMarkdownExtensions||=[],o=r.toMarkdownExtensions||=[];i.push(uH(n)),a.push(hV()),o.push(gV(n))}var pH={markdownLoading:`_markdownLoading_1owo7_1`,markdownShell:`_markdownShell_1owo7_6`,deletedBanner:`_deletedBanner_1owo7_12`,markdownArticle:`_markdownArticle_1owo7_15`,markdownBody:`_markdownBody_1owo7_21`,markdownInlineCode:`_markdownInlineCode_1owo7_43`,markdownPre:`_markdownPre_1owo7_53`,markdownTableScroll:`_markdownTableScroll_1owo7_95`},mH={markdownCommentBlock:`_markdownCommentBlock_dpohk_1`,markdownCommentContent:`_markdownCommentContent_dpohk_7`,commentTrigger:`_commentTrigger_dpohk_11`,inlineThreadStack:`_inlineThreadStack_dpohk_37`},hH=v.memo(function({lineNumber:e,filePath:t,lineThreads:n,children:r,onCreate:i,onLocateThread:a,onPatchThread:o,onDeleteThread:s,onReplyThread:c,onPatchComment:l,onCopyThread:u}){let[d,f]=v.useState(!1);return(0,Q.jsxs)(`div`,{className:mH.markdownCommentBlock,"data-review-anchor":`line:${e}`,"data-review-line":e,children:[(0,Q.jsx)(`div`,{className:mH.markdownCommentContent,children:r}),n.length===0?(0,Q.jsx)(`button`,{className:mH.commentTrigger,type:`button`,"aria-label":`添加行评论`,onClick:()=>f(!0),children:(0,Q.jsx)(VA,{})}):null,d?(0,Q.jsx)(Tj,{onCancel:()=>f(!1),onSubmit:async n=>{await i({type:`markdown-line`,filePath:t,lineNumber:e,blockId:`line-${e}`},n),f(!1)}}):null,n.length>0?(0,Q.jsx)(`div`,{className:mH.inlineThreadStack,children:(0,Q.jsx)(Mj,{threads:n,onFocus:a,onPatch:o,onDeleteThread:s,onReply:c,onPatchComment:l,onCopy:u})}):null]})}),gH={mermaidDiagram:`_mermaidDiagram_3tdz3_1`,mermaidLoading:`_mermaidLoading_3tdz3_2`,mermaidFallback:`_mermaidFallback_3tdz3_3`,mermaidError:`_mermaidError_3tdz3_29`},_H=`modulepreload`,vH=function(e){return`/`+e},yH={},bH=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=o(t.map(t=>{if(t=vH(t,n),t in yH)return;yH[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:_H,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})};function xH({chart:e}){let t=v.useId(),n=v.useMemo(()=>`mermaid-${t.replace(/[^a-zA-Z0-9_-]/g,``)}`,[t]),[r,i]=v.useState(``),[a,o]=v.useState(``);return v.useEffect(()=>{let t=!0;async function r(){try{let r=(await bH(async()=>{let{default:e}=await import(`./mermaid.core-KWVajzzH.js`);return{default:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]))).default;r.initialize({startOnLoad:!1,securityLevel:`strict`,theme:`default`});let a=await r.render(n,e);if(!t)return;i(a.svg),o(``)}catch(e){if(!t)return;i(``),o(e instanceof Error?e.message:`Mermaid 图表渲染失败`)}}return r(),()=>{t=!1}},[e,n]),a?(0,Q.jsxs)(`div`,{className:gH.mermaidFallback,children:[(0,Q.jsxs)(`div`,{className:gH.mermaidError,children:[`Mermaid 渲染失败:`,a]}),(0,Q.jsx)(`pre`,{children:(0,Q.jsx)(`code`,{children:e})})]}):r?(0,Q.jsx)(`div`,{className:gH.mermaidDiagram,dangerouslySetInnerHTML:{__html:r}}):(0,Q.jsx)(`div`,{className:gH.mermaidLoading,children:`正在渲染图表...`})}var SH=[pz,fH];function CH(e){return e.anchor.type===`file`?0:e.anchor.type===`markdown-line`?e.anchor.lineNumber:2**53-1}function wH(e,t){return t.filter(t=>t.filePath===e&&t.status!==`resolved`).sort((e,t)=>CH(e)-CH(t)||e.createdAt.localeCompare(t.createdAt))[0]}function TH(e){e.scrollTop=0}function EH(e,t){let n=e.getBoundingClientRect(),r=t.getBoundingClientRect();e.scrollTop+=r.top-n.top}function DH(e,t){let n=[...e.querySelectorAll(`[data-review-line]`)];return n.filter(e=>Number(e.dataset.reviewLine)<=t).at(-1)??n.find(e=>Number(e.dataset.reviewLine)>=t)??null}function OH(e,t){let n=e.blocks.find(e=>t>=e.startLine&&t<=e.endLine);return n?n.startLine:e.blocks.find(e=>e.startLine>=t)?.startLine??e.blocks.at(-1)?.startLine??t}function kH(e){return/^(https?:|mailto:|#|\.{0,2}\/|\/)/i.test(e.trim())}function AH(e){let t=e.split(`/`).filter(e=>e.length>0&&e!==`.`),n=[];for(let e of t){if(e===`..`){n.pop();continue}n.push(e)}return n}function jH(e,t){if(!t||/^https?:|^mailto:|^#/i.test(t)||t.startsWith(`/`))return t;let n=t.split(`#`)[0]?.split(`?`)[0]??t,r=AH(e);r.pop();let i=AH(n),a=[...r,...i].join(`/`);return a?`/api/markdown-asset?path=${encodeURIComponent(a)}`:t}function MH(e){return typeof e==`string`||typeof e==`number`?String(e):Array.isArray(e)?e.map(MH).join(``):v.isValidElement(e)?MH(e.props.children):``}function NH(e){return Array.isArray(e)?e.filter(e=>typeof e==`string`).join(` `):typeof e==`string`?e:``}function PH(e){return v.isValidElement(e)&&!!(e.props.className||e.props.children)}function FH(e){let t=e?.position?.start?.line;return typeof t==`number`?t:void 0}function IH(e){let t=e?.children?.find(e=>e.tagName===`code`);return NH(t?.properties?.className)}function LH(e){return e?e.type===`text`?e.value??``:e.children?.map(LH).join(``)??``:``}function RH(e){let t=e?.children?.find(e=>e.tagName===`code`);return LH(t)}function zH({file:e,threads:t,locateTarget:n,onCreate:r,onLocateThread:i,onPatchThread:a,onDeleteThread:o,onReplyThread:s,onPatchComment:c,onCopyThread:l}){let[u,d]=v.useState(null),f=v.useRef(null),p=v.useRef(``);v.useEffect(()=>{d(null),fetch(`/api/markdown-preview?path=${encodeURIComponent(e.path)}`).then(e=>e.json()).then(e=>d(e)).catch(()=>d(null))},[e.path]),v.useEffect(()=>{let n=f.current;if(!n||!u||u.filePath!==e.path||p.current===e.path)return;p.current=e.path;let r=wH(e.path,t);window.requestAnimationFrame(()=>{if(!r||r.anchor.type===`file`||r.anchor.type!==`markdown-line`){TH(n);return}let e=OH(u,r.anchor.lineNumber),t=n.querySelector(`[data-review-line="${e}"]`)??DH(n,e);if(!t){TH(n);return}EH(n,t)})},[e.path,u,t]),v.useEffect(()=>{let t=f.current;if(!t||!u||!n||n.anchor.filePath!==e.path)return;if(n.anchor.type===`file`){TH(t);return}if(n.anchor.type!==`markdown-line`)return;let r=OH(u,n.anchor.lineNumber),i=t.querySelector(`[data-review-line="${r}"]`)??DH(t,r);i?EH(t,i):TH(t)},[e.path,n,u]);let m=v.useMemo(()=>{let n=new Map;for(let r of t){if(r.anchor.type!==`markdown-line`||r.anchor.filePath!==e.path)continue;let t=u?.blocks.find(e=>r.anchor.type===`markdown-line`&&r.anchor.lineNumber>=e.startLine&&r.anchor.lineNumber<=e.endLine)?.startLine??r.anchor.lineNumber,i=n.get(t)??[];i.push(r),n.set(t,i)}return n},[e.path,u?.blocks,t]),h=v.useCallback((t,n)=>t?(0,Q.jsx)(hH,{lineNumber:t,filePath:e.path,lineThreads:m.get(t)??[],onCreate:r,onLocateThread:i,onPatchThread:a,onDeleteThread:o,onReplyThread:s,onPatchComment:c,onCopyThread:l,children:n}):n,[e.path,l,r,o,i,c,a,s,m]),g=v.useMemo(()=>({h1({children:e,node:t,...n}){return h(FH(t),(0,Q.jsx)(`h1`,{...n,children:e}))},h2({children:e,node:t,...n}){return h(FH(t),(0,Q.jsx)(`h2`,{...n,children:e}))},h3({children:e,node:t,...n}){return h(FH(t),(0,Q.jsx)(`h3`,{...n,children:e}))},h4({children:e,node:t,...n}){return h(FH(t),(0,Q.jsx)(`h4`,{...n,children:e}))},h5({children:e,node:t,...n}){return h(FH(t),(0,Q.jsx)(`h5`,{...n,children:e}))},h6({children:e,node:t,...n}){return h(FH(t),(0,Q.jsx)(`h6`,{...n,children:e}))},p({children:e,node:t,...n}){return h(FH(t),(0,Q.jsx)(`p`,{...n,children:e}))},blockquote({children:e,node:t,...n}){return h(FH(t),(0,Q.jsx)(`blockquote`,{...n,children:e}))},pre({children:e,node:t,...n}){let r=v.Children.toArray(e).find(PH),i=MH(r??e)||RH(t),a=r?.props.className??IH(t),o=/language-(\S+)/.exec(a)?.[1],s=i.replace(/\n$/,``),c=FH(t);return o===`mermaid`&&s.trim()?h(c,(0,Q.jsx)(xH,{chart:s})):h(c,(0,Q.jsx)(`pre`,{className:pH.markdownPre,...n,children:e}))},code({className:e,children:t,node:n,...r}){return e?(0,Q.jsx)(`code`,{className:e,...r,children:t}):(0,Q.jsx)(`code`,{className:pH.markdownInlineCode,...r,children:t})},table({children:e,node:t,...n}){return h(FH(t),(0,Q.jsx)(`div`,{className:pH.markdownTableScroll,children:(0,Q.jsx)(`table`,{...n,children:e})}))},a({href:e,children:t,node:n,...r}){let i=e??``;if(!i||!kH(i))return(0,Q.jsx)(`span`,{children:t});let a=/^https?:/i.test(i);return(0,Q.jsx)(`a`,{href:i,target:a?`_blank`:void 0,rel:a?`noreferrer`:void 0,...r,children:t})},img({src:t,alt:n,node:r,...i}){let a=t??``;return!a||!kH(a)?null:(0,Q.jsx)(`img`,{src:jH(e.path,a),alt:n??``,loading:`lazy`,...i})}}),[e.path,h]);return u?(0,Q.jsxs)(`div`,{className:pH.markdownShell,ref:f,children:[u.deleted?(0,Q.jsx)(Jc,{className:pH.deletedBanner,message:`该文件已删除,仅展示删除前预览`,type:`warning`,showIcon:!0}):null,(0,Q.jsx)(`article`,{className:pH.markdownArticle,children:(0,Q.jsx)(`div`,{className:pH.markdownBody,children:(0,Q.jsx)(VR,{remarkPlugins:SH,urlTransform:e=>kH(e)?e:``,components:g,children:u.content})})})]}):(0,Q.jsx)(`div`,{className:pH.markdownLoading,children:(0,Q.jsx)(FO,{})})}function BH(e){return e.mode.kind===`revision`?`范围:${e.mode.base}..${e.mode.target}`:e.mode.kind===`staged`?`范围:暂存区`:e.mode.kind===`working`?`范围:工作区`:`范围:未知`}function VH(e){return e.anchor.type===`file`?e.filePath:`${e.filePath}:${e.anchor.lineNumber}`}var HH={threads:`_threads_1i06v_1`,threadScopeBar:`_threadScopeBar_1i06v_5`,threadScopeLabel:`_threadScopeLabel_1i06v_15`,threadScopeSwitchRow:`_threadScopeSwitchRow_1i06v_22`,threadScopeSwitchRowDisabled:`_threadScopeSwitchRowDisabled_1i06v_32`,threadScopeOption:`_threadScopeOption_1i06v_35`,threadScopeOptionActive:`_threadScopeOptionActive_1i06v_57`,threadScopeSwitch:`_threadScopeSwitch_1i06v_22`,threadListToolbar:`_threadListToolbar_1i06v_69`,threadFilterWrap:`_threadFilterWrap_1i06v_78`,threadBatchButton:`_threadBatchButton_1i06v_89`,thread:`_thread_1i06v_1`,threadFocused:`_threadFocused_1i06v_133`,submit:`_submit_1i06v_138`,replied:`_replied_1i06v_142`,resolved:`_resolved_1i06v_146`,threadLocateFlash:`_threadLocateFlash_1i06v_150`,threadTopButton:`_threadTopButton_1i06v_156`,threadTop:`_threadTop_1i06v_156`,threadAnchor:`_threadAnchor_1i06v_178`,threadTag:`_threadTag_1i06v_185`,threadTagResolved:`_threadTagResolved_1i06v_194`,threadTagSubmit:`_threadTagSubmit_1i06v_199`,threadTagReplied:`_threadTagReplied_1i06v_204`,threadEmpty:`_threadEmpty_1i06v_209`},UH={submit:0,replied:1,resolved:2};function WH({threads:e,currentFiles:t,currentFilePath:n,focusedThreadId:r,onLocateThread:i,onPatch:a,onDeleteThread:o,onReply:s,onPatchComment:c,onCopy:l}){let[u,d]=v.useState(`all`),[f,p]=v.useState(`current-file`),[m,h]=v.useState(null),g=v.useRef({}),_=v.useMemo(()=>n?e.filter(e=>e.filePath===n).length:0,[n,e]),y=v.useMemo(()=>f===`all-diff`?e:n?e.filter(e=>e.filePath===n):[],[n,f,e]),b=v.useMemo(()=>y.map(e=>({key:e.id,thread:e})),[y]),x=v.useMemo(()=>b.filter(e=>{let t=Oj(e.thread);return u===`resolved`?t===`resolved`:u===`pending`?t!==`resolved`:!0}).sort((e,t)=>{let n=Oj(e.thread),r=Oj(t.thread);return UH[n]-UH[r]}),[u,b]),S=v.useMemo(()=>({resolved:y.filter(e=>Oj(e)===`resolved`),submit:y.filter(e=>Oj(e)===`submit`)}),[y]),C=v.useCallback(async e=>{let t=[];e===`delete-resolved`&&(t=S.resolved),e===`delete-submit`&&(t=S.submit),e===`delete-all`&&(t=y);for(let e of t)await o(e.id)},[S.resolved,S.submit,o,y]),w=v.useCallback(e=>{let t=e===`delete-resolved`?S.resolved.length:e===`delete-submit`?S.submit.length:y.length,n=e===`delete-resolved`?`删除全部已解决评论(${t})?`:e===`delete-submit`?`删除全部 submit 评论(${t})?`:`清空全部评论(${t})?`,r=e===`delete-all`?`清空`:`删除`;qO.confirm({title:n,okText:r,cancelText:`取消`,okButtonProps:e===`delete-all`?{danger:!0}:void 0,onOk:async()=>C(e)})},[S.resolved.length,S.submit.length,C,y.length]);return v.useEffect(()=>{n||p(`all-diff`)},[n]),v.useEffect(()=>{if(!r)return;let e=x.find(e=>e.thread.id===r);e&&g.current[e.key]?.scrollIntoView({block:`start`,behavior:`smooth`})},[r,x]),v.useEffect(()=>{if(!r)return;h(r);let e=window.setTimeout(()=>{h(e=>e===r?null:e)},1400);return()=>window.clearTimeout(e)},[r]),(0,Q.jsxs)(`div`,{children:[(0,Q.jsxs)(`div`,{className:HH.threadScopeBar,children:[(0,Q.jsx)(MA.Text,{className:HH.threadScopeLabel,children:`查看范围`}),(0,Q.jsxs)(`div`,{className:n?HH.threadScopeSwitchRow:`${HH.threadScopeSwitchRow} ${HH.threadScopeSwitchRowDisabled}`,children:[(0,Q.jsxs)(`button`,{type:`button`,className:f===`current-file`?`${HH.threadScopeOption} ${HH.threadScopeOptionActive}`:HH.threadScopeOption,onClick:()=>p(`current-file`),disabled:!n,children:[`当前文件 (`,_,`)`]}),(0,Q.jsx)(lk,{className:HH.threadScopeSwitch,checked:f===`all-diff`,onChange:e=>p(e?`all-diff`:`current-file`),disabled:!n,size:`small`}),(0,Q.jsxs)(`button`,{type:`button`,className:f===`all-diff`?`${HH.threadScopeOption} ${HH.threadScopeOptionActive}`:HH.threadScopeOption,onClick:()=>p(`all-diff`),disabled:!n,children:[`全部评论 (`,e.length,`)`]})]})]}),(0,Q.jsxs)(`div`,{className:HH.threadListToolbar,children:[(0,Q.jsx)(`div`,{className:HH.threadFilterWrap,children:(0,Q.jsx)(oE,{value:u,onChange:e=>d(e),options:[{label:`全部 (${b.length})`,value:`all`},{label:`未解决 (${b.filter(e=>Oj(e.thread)!==`resolved`).length})`,value:`pending`},{label:`已解决 (${b.filter(e=>Oj(e.thread)===`resolved`).length})`,value:`resolved`}],size:`small`})}),(0,Q.jsx)(NE,{menu:{items:[{key:`delete-resolved`,label:`删除已解决(${S.resolved.length})`,disabled:S.resolved.length===0},{key:`delete-submit`,label:`删除待提交(${S.submit.length})`,disabled:S.submit.length===0},{type:`divider`},{key:`delete-all`,label:`清空全部(${y.length})`,danger:!0,disabled:y.length===0}],onClick:({key:e})=>{(e===`delete-resolved`||e===`delete-submit`||e===`delete-all`)&&w(e)}},trigger:[`click`],children:(0,Q.jsxs)(WC,{size:`small`,className:HH.threadBatchButton,children:[`批量操作 `,(0,Q.jsx)(wb,{})]})})]}),x.length===0?(0,Q.jsx)(nb,{className:HH.threadEmpty,description:`暂无评论,悬停到行右侧或添加文件级评论即可开始。`}):(0,Q.jsx)(`div`,{className:HH.threads,children:x.map(e=>{let n=e.thread,u=Oj(n),d=r===n.id,f=!t.some(e=>Dj(n,e));return(0,Q.jsxs)(RT,{className:[HH.thread,KH(u),d?HH.threadFocused:``,m===n.id?HH.threadLocateFlash:``].filter(Boolean).join(` `),ref:t=>{g.current[e.key]=t},children:[(0,Q.jsx)(`button`,{type:`button`,className:HH.threadTopButton,onClick:()=>i(n.id),children:(0,Q.jsxs)(jE,{className:HH.threadTop,align:`start`,size:8,children:[(0,Q.jsx)(MA.Text,{className:HH.threadAnchor,strong:!0,children:VH(n)}),(0,Q.jsxs)(qE,{gap:`small`,children:[u===`replied`?null:(0,Q.jsx)(jk,{className:`${HH.threadTag} ${GH(u)}`,children:Ej[u]}),f?(0,Q.jsx)(jk,{className:HH.threadTag,children:`历史快照`}):null]})]})}),(0,Q.jsx)(`div`,{children:(0,Q.jsx)(Mj,{threads:[n],variant:`borderless`,showStatusTag:!1,onFocus:i,onPatch:a,onDeleteThread:o,onReply:s,onPatchComment:c,onCopy:l})})]},e.key)})})]})}function GH(e){return e===`submit`?HH.threadTagSubmit:e===`replied`?HH.threadTagReplied:HH.threadTagResolved}function KH(e){return e===`submit`?HH.submit:e===`replied`?HH.replied:HH.resolved}function qH(e){return/\.(avif|bmp|gif|heic|heif|ico|jpe?g|png|svg|tiff?|webp)$/i.test(e)}function JH(e){return e?e.repoName||e.repoRoot.split(/[\\/]/).filter(Boolean).at(-1)||e.repoRoot:`正在加载仓库`}function YH(e,t){return e===t?!0:e.length===t.length?JSON.stringify(e)===JSON.stringify(t):!1}function XH(){let{message:e}=q_.useApp(),[t,n]=v.useState(null),[r,i]=v.useState([]),[a,o]=v.useState([]),[s,c]=v.useState(``),[l,u]=v.useState(`split`),[d,f]=v.useState(null),[p,m]=v.useState(null),[h,g]=v.useState(null),[_,y]=v.useState({}),b=r.find(e=>e.path===s)??r[0],x=v.useMemo(()=>a.filter(e=>r.some(t=>Dj(e,t))),[r,a]),S=v.useMemo(()=>b?x.filter(e=>Dj(e,b)):[],[x,b]),C=x.filter(e=>e.status!==`resolved`).length;v.useEffect(()=>{w()},[]),v.useEffect(()=>{let e=()=>{document.visibilityState===`visible`&&T()},t=window.setInterval(e,2500);return window.addEventListener(`focus`,e),document.addEventListener(`visibilitychange`,e),()=>{window.clearInterval(t),window.removeEventListener(`focus`,e),document.removeEventListener(`visibilitychange`,e)}},[d,t?.id]);async function w(){await T(!0)}async function T(e=!1){let r=await(await fetch(`/api/review-state`)).json();(e||t?.id!==r.session.id)&&(n(r.session),i(r.files),c(e=>r.files.some(t=>t.path===e)?e:r.files[0]?.path??``)),o(e=>YH(e,r.threads)?e:r.threads),d&&!r.threads.some(e=>e.id===d)&&f(null)}async function E(e,t){await fetch(`/api/threads`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({filePath:e.filePath,anchor:e,body:t})}),await T()}async function D(e,t){let n=await fetch(`/api/threads/${e}`,{method:`PATCH`,headers:{"Content-Type":`application/json`},body:JSON.stringify({status:t})});if(!n.ok){let e=await n.json().catch(()=>({error:`更新评论状态失败`}));throw Error(e.error??`更新评论状态失败`)}await T()}async function O(e){await fetch(`/api/threads/${e}`,{method:`DELETE`}),await T()}async function k(e,t){await fetch(`/api/threads/${e}/comments`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({body:t,author:`user`})}),await T()}async function A(e,t,n){if(!t)throw Error(`Comment id is required`);let r=await fetch(`/api/threads/${e}/comments/${t}`,{method:`PATCH`,headers:{"Content-Type":`application/json`},body:JSON.stringify({body:n})});if(!r.ok){let e=await r.json().catch(()=>({error:`编辑评论失败`}));throw Error(e.error??`编辑评论失败`)}await T()}async function j(t){let n=await(await fetch(`/api/prompt`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(t)})).json();await navigator.clipboard.writeText(n.prompt),e.success(`提示词已复制到剪贴板`)}function M(e){let t=a.find(t=>t.id===e);t&&(r.some(e=>e.path===t.filePath)&&c(t.filePath),m({threadId:e,anchor:t.anchor})),f(e)}function N(e){g(t=>({filePath:e,requestId:(t?.requestId??0)+1}))}function P(e,t){y(n=>(n[e]??!1)===t?n:{...n,[e]:t})}return v.useEffect(()=>{f(null)},[s]),(0,Q.jsxs)(LD,{className:Uj.shell,children:[(0,Q.jsxs)(`aside`,{className:Uj.sidebar,children:[(0,Q.jsxs)(`div`,{className:Uj.brand,children:[(0,Q.jsx)(`div`,{className:Uj.brandMark,children:`DR`}),(0,Q.jsxs)(`div`,{className:Uj.brandCopy,children:[(0,Q.jsx)(MA.Text,{className:Uj.repoName,title:t?.repoRoot,children:JH(t)}),(0,Q.jsx)(MA.Text,{className:Uj.productName,children:`Diff 审查台`}),(0,Q.jsx)(MA.Text,{type:`secondary`,children:t?BH(t):`正在加载会话`})]})]}),(0,Q.jsx)(RT,{className:Uj.sideCard,children:(0,Q.jsxs)(jE,{size:8,wrap:!0,children:[(0,Q.jsx)(jk,{color:`blue`,children:t?.mode.kind===`revision`?`混合模式`:`本地模式`}),(0,Q.jsxs)(jk,{color:`gold`,children:[r.length,` files`]})]})}),(0,Q.jsx)(nM,{files:r,threads:x,selectedPath:b?.path??``,onSelectFile:c})]}),(0,Q.jsx)(`section`,{className:Uj.reviewPane,children:b?(0,Q.jsxs)(Q.Fragment,{children:[b.isMarkdown?null:(0,Q.jsx)(`div`,{className:Uj.topToolbar,children:(0,Q.jsx)(oE,{className:Uj.viewModeSwitcher,options:[{label:`Side by side`,value:`split`,icon:(0,Q.jsx)(WA,{})},{label:`Inline`,value:`inline`,icon:(0,Q.jsx)(oD,{})}],value:l,onChange:e=>u(e)})}),(0,Q.jsxs)(`div`,{className:Uj.reviewSurface,children:[(0,Q.jsx)(iM,{file:b,threads:S,showToggleAllLines:!b.isMarkdown&&!qH(b.path),hasExpandedContext:b?_[b.path]??!1:!1,onCreate:E,onCopy:j,onToggleAllLines:N,onLocateThread:M,onPatchThread:D,onDeleteThread:O,onReplyThread:k,onPatchComment:A,onCopyThread:j}),b.isMarkdown?(0,Q.jsx)(zH,{file:b,threads:S,locateTarget:p,onCreate:E,onLocateThread:M,onPatchThread:D,onDeleteThread:O,onReplyThread:k,onPatchComment:A,onCopyThread:j},t?.id):(0,Q.jsx)(qj,{file:b,threads:S,locateTarget:p,expandAllRequest:h,onExpandedContextChange:P,onCreate:E,onLocateThread:M,onPatchThread:D,onDeleteThread:O,onReplyThread:k,onPatchComment:A,onCopyThread:j,viewMode:l},t?.id)]})]}):(0,Q.jsx)(RT,{className:Uj.emptyStateCard,bordered:!1,children:(0,Q.jsx)(MA.Text,{type:`secondary`,children:`未发现变更,当前工作区很安静。`})})}),(0,Q.jsxs)(`aside`,{className:Uj.threadRail,children:[(0,Q.jsxs)(`div`,{className:Uj.threadRailHeader,children:[(0,Q.jsxs)(MA.Title,{className:Uj.threadRailTitle,level:4,children:[`评论 (`,C,`)`]}),(0,Q.jsx)(WC,{disabled:C===0,icon:(0,Q.jsx)(oA,{}),type:`primary`,onClick:()=>void j({type:`all-unresolved`}),children:`批量提交给 Agent`})]}),(0,Q.jsx)(`div`,{className:Uj.threadRailBody,children:(0,Q.jsx)(WH,{threads:a,currentFiles:r,currentFilePath:b?.path??``,focusedThreadId:d,onLocateThread:M,onPatch:D,onDeleteThread:O,onReply:k,onPatchComment:A,onCopy:j})})]})]})}(0,ud.createRoot)(document.getElementById(`root`)).render((0,Q.jsx)(v.StrictMode,{children:(0,Q.jsx)(ju,{theme:{token:{colorPrimary:`#2f6fed`,colorSuccess:`#2f8f63`,colorWarning:`#d59b2a`,colorTextBase:`#16181d`,colorBgBase:`#f4f6fa`,fontFamily:`"SF Pro Text", "PingFang SC", "Helvetica Neue", sans-serif`,borderRadius:14}},children:(0,Q.jsx)(q_,{children:(0,Q.jsx)(XH,{})})})}));export{er as a,pn as c,un as d,o as f,sr as i,cn as l,cr as n,an as o,l as p,or as r,fn as s,bH as t,mn as u};
|