local-diff-reviewer 2.0.3 → 2.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cli/start.js +57 -0
- package/dist/web/assets/{arc-D-670Kn4.js → arc-C1LfqnQj.js} +1 -1
- package/dist/web/assets/{architectureDiagram-3BPJPVTR-BzwTHU5z.js → architectureDiagram-3BPJPVTR-CS0CIxyc.js} +1 -1
- package/dist/web/assets/{blockDiagram-GPEHLZMM-BdDwnuAb.js → blockDiagram-GPEHLZMM-7lcMQVcJ.js} +1 -1
- package/dist/web/assets/{c4Diagram-AAUBKEIU-CXEqG_GU.js → c4Diagram-AAUBKEIU-Dtur5jY6.js} +1 -1
- package/dist/web/assets/channel-BCzDp0xU.js +1 -0
- package/dist/web/assets/{chunk-2J33WTMH-CZ4V4veG.js → chunk-2J33WTMH-CUphoLg3.js} +1 -1
- package/dist/web/assets/{chunk-3OPIFGDE-CSbZWMMk.js → chunk-3OPIFGDE-CJlnkH7A.js} +1 -1
- package/dist/web/assets/{chunk-4BX2VUAB-DQKSnAKr.js → chunk-4BX2VUAB-C7C7iSBt.js} +1 -1
- package/dist/web/assets/{chunk-55IACEB6-D8bwvdHN.js → chunk-55IACEB6-DVT73F1u.js} +1 -1
- package/dist/web/assets/{chunk-5ZQYHXKU-DvtLcgxK.js → chunk-5ZQYHXKU-BCdAy2Av.js} +1 -1
- package/dist/web/assets/{chunk-727SXJPM-H3vpTuXt.js → chunk-727SXJPM-CEBrkXNB.js} +1 -1
- package/dist/web/assets/{chunk-AQP2D5EJ-gvn0I0el.js → chunk-AQP2D5EJ-gDFNaZ5u.js} +1 -1
- package/dist/web/assets/{chunk-BSJP7CBP-0tfc4u9P.js → chunk-BSJP7CBP-Billgaob.js} +1 -1
- package/dist/web/assets/{chunk-CSCIHK7Q-CmUNorU_.js → chunk-CSCIHK7Q-C4mJfPsd.js} +1 -1
- package/dist/web/assets/{chunk-FMBD7UC4-wQoZCxnn.js → chunk-FMBD7UC4-gXNxUaZH.js} +1 -1
- package/dist/web/assets/{chunk-KSCS5N6A-C99WFWps.js → chunk-KSCS5N6A-BKVQKRzM.js} +1 -1
- package/dist/web/assets/{chunk-L5ZTLDWV-C19pdXo3.js → chunk-L5ZTLDWV-BTFbg-fF.js} +1 -1
- package/dist/web/assets/{chunk-LZXEDZCA-DEg-msWi.js → chunk-LZXEDZCA-DHjgkf3p.js} +2 -2
- package/dist/web/assets/{chunk-ND2GUHAM-KEtB8AkU.js → chunk-ND2GUHAM-DOQ6r_hF.js} +1 -1
- package/dist/web/assets/{chunk-NZK2D7GU-DmtZJoF8.js → chunk-NZK2D7GU-BCySDXIh.js} +1 -1
- package/dist/web/assets/{chunk-O5CBEL6O-Cx3xql2c.js → chunk-O5CBEL6O-D-p8TXq4.js} +1 -1
- package/dist/web/assets/chunk-QZHKN3VN-fDyf2aIa.js +1 -0
- package/dist/web/assets/chunk-WU5MYG2G-BnCHHp_R.js +1 -0
- package/dist/web/assets/{chunk-XPW4576I-D7PZzhoh.js → chunk-XPW4576I-CXxG7FT6.js} +1 -1
- package/dist/web/assets/classDiagram-4FO5ZUOK-DoQlfcGs.js +1 -0
- package/dist/web/assets/classDiagram-v2-Q7XG4LA2-C9WXX2G5.js +1 -0
- package/dist/web/assets/{cose-bilkent-S5V4N54A-M9qjyQx9.js → cose-bilkent-S5V4N54A-y5KS6LHF.js} +1 -1
- package/dist/web/assets/{dagre-BM42HDAG-D5nWlspM.js → dagre-BM42HDAG-DWOmEcp4.js} +1 -1
- package/dist/web/assets/{diagram-2AECGRRQ-BhTAme0Q.js → diagram-2AECGRRQ-BjLV1KvM.js} +1 -1
- package/dist/web/assets/{diagram-5GNKFQAL-Dc1hSI_F.js → diagram-5GNKFQAL-CfnbR-6R.js} +1 -1
- package/dist/web/assets/{diagram-KO2AKTUF-IAnRJdmD.js → diagram-KO2AKTUF-D4JWdCCe.js} +1 -1
- package/dist/web/assets/{diagram-LMA3HP47-DHVHjnnV.js → diagram-LMA3HP47-CUFMEc1T.js} +1 -1
- package/dist/web/assets/{diagram-OG6HWLK6-C_H7osqu.js → diagram-OG6HWLK6-BHK7LBvY.js} +1 -1
- package/dist/web/assets/{dist-BG1gu1Ss.js → dist-rYMgVM7u.js} +1 -1
- package/dist/web/assets/{erDiagram-TEJ5UH35-DLllKoDy.js → erDiagram-TEJ5UH35-DuAlUiuD.js} +1 -1
- package/dist/web/assets/{flowDiagram-I6XJVG4X-D30CzWi4.js → flowDiagram-I6XJVG4X-Bw9s0pK6.js} +1 -1
- package/dist/web/assets/{ganttDiagram-6RSMTGT7-CUYze69W.js → ganttDiagram-6RSMTGT7-CxsSgKuD.js} +1 -1
- package/dist/web/assets/{gitGraphDiagram-PVQCEYII-DqnAgTPL.js → gitGraphDiagram-PVQCEYII-JhVl25Ua.js} +1 -1
- package/dist/web/assets/{index-Bj-SGY1j.js → index-Beb3YD1D.js} +34 -34
- package/dist/web/assets/index-d_43MU8e.css +1 -0
- package/dist/web/assets/{infoDiagram-5YYISTIA-DLByNsQT.js → infoDiagram-5YYISTIA-Bg3Buo_8.js} +1 -1
- package/dist/web/assets/{ishikawaDiagram-YF4QCWOH-Cfqh-ASX.js → ishikawaDiagram-YF4QCWOH-BpitbvFG.js} +1 -1
- package/dist/web/assets/{journeyDiagram-JHISSGLW--6a-6EC4.js → journeyDiagram-JHISSGLW-Dmn612rN.js} +1 -1
- package/dist/web/assets/{kanban-definition-UN3LZRKU-DqC73u-B.js → kanban-definition-UN3LZRKU-BZc--aOJ.js} +1 -1
- package/dist/web/assets/{line-DLfo_7hP.js → line-CE8FywkX.js} +1 -1
- package/dist/web/assets/{linear-DjJbe9Qt.js → linear-BZJmlPIB.js} +1 -1
- package/dist/web/assets/{mermaid-parser.core-BgcI22sk.js → mermaid-parser.core-g4eHJB5T.js} +1 -1
- package/dist/web/assets/{mermaid.core-BcjNq9LF.js → mermaid.core-sLgwusnq.js} +3 -3
- package/dist/web/assets/{mindmap-definition-RKZ34NQL-hyOI_Nvs.js → mindmap-definition-RKZ34NQL-jMIrHQbc.js} +1 -1
- package/dist/web/assets/{pieDiagram-4H26LBE5-DIRyMqsX.js → pieDiagram-4H26LBE5-BbsNErwP.js} +1 -1
- package/dist/web/assets/{quadrantDiagram-W4KKPZXB-D0Ngh6Zm.js → quadrantDiagram-W4KKPZXB-TAAf-krj.js} +1 -1
- package/dist/web/assets/{requirementDiagram-4Y6WPE33-CWgQtiKO.js → requirementDiagram-4Y6WPE33-DmtnJao4.js} +1 -1
- package/dist/web/assets/{sankeyDiagram-5OEKKPKP-BhD0ArVz.js → sankeyDiagram-5OEKKPKP-AsVbhELP.js} +1 -1
- package/dist/web/assets/{sequenceDiagram-3UESZ5HK-DfJPUW4m.js → sequenceDiagram-3UESZ5HK-Ba8D9Bb1.js} +1 -1
- package/dist/web/assets/{src-DNwcy7qQ.js → src-CGljw68o.js} +1 -1
- package/dist/web/assets/{stateDiagram-AJRCARHV-Cl55-mV_.js → stateDiagram-AJRCARHV-D0aLVTLA.js} +1 -1
- package/dist/web/assets/stateDiagram-v2-BHNVJYJU-IBEP5b2C.js +1 -0
- package/dist/web/assets/{timeline-definition-PNZ67QCA-C09jbMhf.js → timeline-definition-PNZ67QCA-Di2VlsLx.js} +1 -1
- package/dist/web/assets/{vennDiagram-CIIHVFJN-ClTgJwJ3.js → vennDiagram-CIIHVFJN-C4c521Ry.js} +1 -1
- package/dist/web/assets/{wardleyDiagram-YWT4CUSO-BPhiawQp.js → wardleyDiagram-YWT4CUSO-CO1thfrU.js} +1 -1
- package/dist/web/assets/{xychartDiagram-2RQKCTM6-D_s4kTlT.js → xychartDiagram-2RQKCTM6-C-7j4JCA.js} +1 -1
- package/dist/web/index.html +2 -2
- package/docs/images/diff-review-ui.jpg +0 -0
- package/package.json +1 -1
- package/dist/web/assets/channel-CcPqlxfZ.js +0 -1
- package/dist/web/assets/chunk-QZHKN3VN-C4n2vK6k.js +0 -1
- package/dist/web/assets/chunk-WU5MYG2G-D7WrkCVH.js +0 -1
- package/dist/web/assets/classDiagram-4FO5ZUOK-CQky5FXy.js +0 -1
- package/dist/web/assets/classDiagram-v2-Q7XG4LA2-CkiVtIc_.js +0 -1
- package/dist/web/assets/index-BM79LMhf.css +0 -1
- package/dist/web/assets/stateDiagram-v2-BHNVJYJU-DFN-iZGL.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-sLgwusnq.js","assets/chunk-O5CBEL6O-D-p8TXq4.js","assets/src-CGljw68o.js","assets/chunk-5ZQYHXKU-BCdAy2Av.js","assets/dist-rYMgVM7u.js","assets/chunk-CSCIHK7Q-C4mJfPsd.js","assets/chunk-3OPIFGDE-CJlnkH7A.js","assets/chunk-L5ZTLDWV-BTFbg-fF.js","assets/chunk-NZK2D7GU-BCySDXIh.js","assets/rough.esm-KjoEK0it.js","assets/chunk-BSJP7CBP-Billgaob.js","assets/chunk-KSCS5N6A-BKVQKRzM.js","assets/line-CE8FywkX.js","assets/path-BJQEcSo7.js","assets/array-yLZkcI6Y.js","assets/chunk-LZXEDZCA-DHjgkf3p.js","assets/chunk-WU5MYG2G-BnCHHp_R.js","assets/chunk-XPW4576I-CXxG7FT6.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),ne=V(null);function re(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)?Wd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Wd(t),e=Gd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}H(W),U(W,e)}function ie(){H(W),H(ee),H(te)}function ae(e){e.memoizedState!==null&&U(ne,e);var t=W.current,n=Gd(t,e.type);t!==n&&(U(ee,e),U(W,n))}function G(e){ee.current===e&&(H(W),H(ee)),ne.current===e&&(H(ne),tp._currentValue=R)}var K,oe;function se(e){if(K===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);K=t&&t[1]||``,oe=-1<e.stack.indexOf(`
|
|
3
3
|
at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
|
|
4
4
|
`+K+e+oe}var ce=!1;function q(e,t){if(!e||ce)return``;ce=!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(`
|
|
@@ -173,19 +173,19 @@ html body {
|
|
|
173
173
|
${o}${s}topLeft,
|
|
174
174
|
${o}${s}topRight
|
|
175
175
|
`]:{animationName:hf},"&-hidden":{display:`none`},[r]:{...cb(e),cursor:`pointer`,transition:`background-color ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:`default`},"&-option":{display:`flex`,"&-content":{flex:`auto`,...za},"&-state":{flex:`none`,display:`flex`,alignItems:`center`},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:`not-allowed`},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":{...cb(e),color:e.colorTextDisabled}},[`${c}:has(+ ${c})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${c}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:`rtl`}}},xf(e,`slide-up`),xf(e,`slide-down`),df(e,`move-up`),df(e,`move-down`)]},ub=e=>{let{componentCls:t}=e;return{[`&${t}-customize`]:{border:0,padding:0,fontSize:`inherit`,lineHeight:`inherit`,[`${t}-placeholder`]:{display:`none`},[`${t}-content`]:{margin:0,padding:0,"&-value":{display:`none`}}}}},db=4,fb=e=>{let{componentCls:t,calc:n,iconCls:r,paddingXS:i,paddingXXS:a,INTERNAL_FIXED_ITEM_MARGIN:o,lineWidth:s,colorIcon:c,colorIconHover:l,inputPaddingHorizontalBase:u,antCls:d}=e,[f,p]=Qa(d,`select`);return{"&-multiple":{[f(`multi-item-background`)]:e.multipleItemBg,[f(`multi-item-border-color`)]:`transparent`,[f(`multi-item-border-radius`)]:e.borderRadiusSM,[f(`multi-item-height`)]:e.multipleItemHeight,[f(`multi-padding-base`)]:`calc((${p(`height`)} - ${p(`multi-item-height`)}) / 2)`,[f(`multi-padding-vertical`)]:`calc(${p(`multi-padding-base`)} - ${o} - ${s})`,[f(`multi-item-padding-horizontal`)]:`calc(${u} - ${p(`multi-padding-vertical`)} - ${s} * 2)`,paddingBlock:p(`multi-padding-vertical`),paddingInlineStart:`calc(${p(`multi-padding-base`)} - ${s})`,[`${t}-prefix`]:{marginInlineStart:p(`multi-item-padding-horizontal`)},[`${t}-prefix + ${t}-content`]:{[`${t}-placeholder`]:{insetInlineStart:0},[`${t}-content-item${t}-content-item-suffix`]:{marginInlineStart:0}},[`${t}-placeholder`]:{position:`absolute`,lineHeight:p(`line-height`),insetInlineStart:p(`multi-item-padding-horizontal`),width:`calc(100% - ${p(`multi-item-padding-horizontal`)})`,top:`50%`,transform:`translateY(-50%)`},[`${t}-content`]:{flexWrap:`wrap`,alignItems:`center`,lineHeight:1,"&-item-prefix":{height:p(`font-size`)},"&-item":{lineHeight:1,maxWidth:`calc(100% - ${db}px)`},[`${t}-content-item-prefix + ${t}-content-item-suffix,
|
|
176
|
-
${t}-content-item-suffix:first-child`]:{marginInlineStart:p(`multi-item-padding-horizontal`)},[`${t}-selection-item`]:{lineHeight:`calc(${p(`multi-item-height`)} - ${s} * 2)`,border:`${s} solid ${p(`multi-item-border-color`)}`,display:`flex`,marginBlock:o,marginInlineEnd:n(o).mul(2).equal(),background:p(`multi-item-background`),borderRadius:p(`multi-item-border-radius`),paddingInlineStart:i,paddingInlineEnd:a,transition:[`height`,`line-height`,`padding`].map(t=>`${t} ${e.motionDurationSlow}`).join(`,`),"&-content":{...za,marginInlineEnd:a},"&-remove":{...Va(),display:`inline-flex`,alignItems:`center`,color:c,fontWeight:`bold`,fontSize:10,lineHeight:`inherit`,cursor:`pointer`,[`> ${r}`]:{verticalAlign:`-0.2em`},"&:hover":{color:l}}},[`${t}-input`]:{lineHeight:n(o).mul(2).add(p(`multi-item-height`)).equal(),width:`calc(var(--select-input-width, 0) * 1px)`,minWidth:db,maxWidth:`100%`,transition:`line-height ${e.motionDurationSlow}`}},[`&${t}-sm`]:{[f(`multi-item-height`)]:e.multipleItemHeightSM,[f(`multi-item-border-radius`)]:e.borderRadiusXS},[`&${t}-lg`]:{[f(`multi-item-height`)]:e.multipleItemHeightLG,[f(`multi-item-border-radius`)]:e.borderRadius},[`&${t}-filled`]:{[f(`multi-item-border-color`)]:e.colorSplit,[f(`multi-item-background`)]:e.colorBgContainer,[`&${t}-disabled`]:{[f(`multi-item-border-color`)]:`transparent`}}}}},pb=(e,t)=>{let{componentCls:n,antCls:r}=e,[i]=Qa(r,`select`),{border:a,borderHover:o,borderActive:s,borderOutline:c}=t,l=t.background||e.selectorBg||e.colorBgContainer;return{[i(`border-color`)]:a,[i(`background-color`)]:l,[i(`color`)]:t.color||e.colorText,[`&:not(${n}-disabled)`]:{"&:hover":{[i(`border-color`)]:o,[i(`background-color`)]:t.backgroundHover||l},[`&${n}-focused`]:{[i(`border-color`)]:s,[i(`background-color`)]:t.backgroundActive||l,boxShadow:`0 0 0 ${Y(e.controlOutlineWidth)} ${c}`}},[`&${n}-disabled`]:{[i(`border-color`)]:t.borderDisabled||t.border,[i(`background-color`)]:t.backgroundDisabled||t.background}}},mb=(e,t,n,r={},i={},a)=>{let{componentCls:o}=e;return{[`&${o}-${t}`]:[pb(e,n),{[`&${o}-status-error`]:pb(e,{...n,color:r.color||e.colorError,...r}),[`&${o}-status-warning`]:pb(e,{...n,color:i.color||e.colorWarning,...i})},a]}},hb=e=>{let{componentCls:t,fontHeight:n,controlHeight:r,iconCls:i,antCls:a,calc:o}=e,[s,c]=Qa(a,`select`);return{[t]:[{[s(`border-radius`)]:e.borderRadius,[s(`border-color`)]:`#000`,[s(`border-size`)]:e.lineWidth,[s(`background-color`)]:e.colorBgContainer,[s(`font-size`)]:e.fontSize,[s(`line-height`)]:e.lineHeight,[s(`font-height`)]:n,[s(`color`)]:e.colorText,[s(`height`)]:r,[s(`padding-horizontal`)]:o(e.paddingSM).sub(e.lineWidth).equal(),[s(`padding-vertical`)]:`calc((${c(`height`)} - ${c(`font-height`)}) / 2 - ${c(`border-size`)})`,...Ba(e,!0),display:`inline-flex`,flexWrap:`nowrap`,position:`relative`,transition:`all ${e.motionDurationSlow}`,alignItems:`flex-start`,outline:0,cursor:`pointer`,borderRadius:c(`border-radius`),borderWidth:c(`border-size`),borderStyle:e.lineType,borderColor:c(`border-color`),background:c(`background-color`),fontSize:c(`font-size`),lineHeight:c(`line-height`),color:c(`color`),paddingInline:c(`padding-horizontal`),paddingBlock:c(`padding-vertical`),[`${t}-prefix`]:{flex:`none`,lineHeight:1},[`${t}-placeholder`]:{...za,color:e.colorTextPlaceholder,pointerEvents:`none`,zIndex:1},[`${t}-content`]:{flex:`auto`,minWidth:0,position:`relative`,display:`flex`,marginInlineEnd:o(e.paddingXXS).mul(1.5).equal(),"&:before":{content:`"\\a0"`,width:0,overflow:`hidden`},"&-value":{visibility:`inherit`},"input[readonly]":{cursor:`inherit`,caretColor:`transparent`}},[`${t}-suffix`]:{flex:`none`,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,"> :not(:last-child)":{marginInlineEnd:e.marginXS}},[`${t}-prefix, ${t}-suffix`]:{alignSelf:`center`,[i]:{verticalAlign:`top`}},"&-disabled":{background:e.colorBgContainerDisabled,color:e.colorTextDisabled,cursor:`not-allowed`,input:{cursor:`not-allowed`}},"&-sm":{[s(`height`)]:e.controlHeightSM,[s(`padding-horizontal`)]:o(e.paddingXS).sub(e.lineWidth).equal(),[s(`border-radius`)]:e.borderRadiusSM,[`${t}-clear`]:{insetInlineEnd:c(`padding-horizontal`)}},"&-lg":{[s(`height`)]:e.controlHeightLG,[s(`font-size`)]:e.fontSizeLG,[s(`line-height`)]:e.lineHeightLG,[s(`font-height`)]:e.fontHeightLG,[s(`border-radius`)]:e.borderRadiusLG}},{[`&:not(${t}-customize)`]:{[`${t}-input`]:{outline:`none`,background:`transparent`,appearance:`none`,border:0,margin:0,padding:0,color:c(`color`),"&::-webkit-search-cancel-button":{display:`none`,appearance:`none`}}}},{[`&-single:not(${t}-customize)`]:{[`${t}-input`]:{position:`absolute`,inset:0,lineHeight:`calc(${c(`font-height`)} + ${c(`padding-vertical`)} * 2)`},[`${t}-content`]:{...za,alignSelf:`center`,"&-has-value":{display:`block`,"&:before":{display:`none`}},"&-has-search-value":{color:`transparent`},"&-value":{transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,zIndex:1}},[`&${t}-open ${t}-content`]:{color:e.colorTextPlaceholder,"&-has-search-value":{color:`transparent`}}}},{[`&-show-search:not(${t}-customize-input):not(${t}-disabled)`]:{cursor:`text`}},fb(e),mb(e,`outlined`,{border:e.colorBorder,borderHover:e.hoverBorderColor,borderActive:e.activeBorderColor,borderOutline:e.activeOutlineColor,borderDisabled:e.colorBorderDisabled},{border:e.colorError,borderHover:e.colorErrorHover,borderActive:e.colorError,borderOutline:e.colorErrorOutline},{border:e.colorWarning,borderHover:e.colorWarningHover,borderActive:e.colorWarning,borderOutline:e.colorWarningOutline}),mb(e,`filled`,{border:`transparent`,borderHover:`transparent`,borderActive:e.activeBorderColor,borderOutline:`transparent`,borderDisabled:e.colorBorderDisabled,background:e.colorFillTertiary,backgroundHover:e.colorFillSecondary,backgroundActive:e.colorBgContainer},{background:e.colorErrorBg,backgroundHover:e.colorErrorBgHover,borderActive:e.colorError},{background:e.colorWarningBg,backgroundHover:e.colorWarningBgHover,borderActive:e.colorWarning}),mb(e,`borderless`,{border:`transparent`,borderHover:`transparent`,borderActive:`transparent`,borderOutline:`transparent`,background:`transparent`}),mb(e,`underlined`,{border:e.colorBorder,borderHover:e.hoverBorderColor,borderActive:e.activeBorderColor,borderOutline:`transparent`},{border:e.colorError,borderHover:e.colorErrorHover,borderActive:e.colorError},{border:e.colorWarning,borderHover:e.colorWarningHover,borderActive:e.colorWarning},{borderRadius:0,borderTopColor:`transparent`,borderInlineColor:`transparent`}),ub(e)]}},gb=e=>{let{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:i,controlHeightSM:a,controlHeightLG:o,paddingXXS:s,controlPaddingHorizontal:c,zIndexPopupBase:l,colorText:u,fontWeightStrong:d,controlItemBgActive:f,controlItemBgHover:p,colorBgContainer:m,colorFillSecondary:h,colorBgContainerDisabled:g,colorTextDisabled:_,colorPrimaryHover:v,colorPrimary:y,controlOutline:b}=e,x=s*2,S=r*2,C=Math.min(i-x,i-S),w=Math.min(a-x,a-S),T=Math.min(o-x,o-S);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:l+50,optionSelectedColor:u,optionSelectedFontWeight:d,optionSelectedBg:f,optionActiveBg:p,optionPadding:`${(i-t*n)/2}px ${c}px`,optionFontSize:t,optionLineHeight:n,optionHeight:i,selectorBg:m,clearBg:m,singleItemHeightLG:o,multipleItemBg:h,multipleItemBorderColor:`transparent`,multipleItemHeight:C,multipleItemHeightSM:w,multipleItemHeightLG:T,multipleSelectorBgDisabled:g,multipleItemColorDisabled:_,multipleItemBorderColorDisabled:`transparent`,showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:v,activeBorderColor:y,activeOutlineColor:b,selectAffixPadding:s}},_b=e=>{let{antCls:t,componentCls:n,motionDurationMid:r,inputPaddingHorizontalBase:i}=e,a={[`${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:`50%`}};return{[n]:{...Ba(e),[`${n}-selection-item`]:{flex:1,fontWeight:`normal`,position:`relative`,userSelect:`none`,...za,[`> ${t}-typography`]:{display:`inline`}},[`${n}-prefix`]:{flex:`none`,marginInlineEnd:e.selectAffixPadding},[`${n}-clear`]:{position:`absolute`,top:`50%`,insetInlineStart:`auto`,insetInlineEnd:i,zIndex:1,display:`inline-block`,width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:`normal`,lineHeight:1,textAlign:`center`,textTransform:`none`,cursor:`pointer`,opacity:0,transition:[`color`,`opacity`].map(e=>`${e} ${r} ease`).join(`, `),textRendering:`auto`,transform:`translateZ(0)`,"&:before":{display:`block`},"&:hover":{color:e.colorIcon}},"@media(hover:none)":a,"&:hover":a},[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(i).add(e.fontSize).add(e.paddingXS).equal()}}}}}},vb=e=>{let{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:`100%`}}},_b(e),lb(e),{[`${t}-rtl`]:{direction:`rtl`}},up(e,{focusElCls:`${t}-focused`})]},yb=Ya(`Select`,(e,{rootPrefixCls:t})=>{let n=ci(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(e.lineWidth).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[vb(n),hb(n)]},gb,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}}),bb={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z`}}]},name:`check`,theme:`outlined`};function xb(){return xb=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},xb.apply(this,arguments)}var Sb=v.forwardRef((e,t)=>v.createElement(Co,xb({},e,{ref:t,icon:bb}))),Cb={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z`}}]},name:`down`,theme:`outlined`};function wb(){return wb=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},wb.apply(this,arguments)}var Tb=v.forwardRef((e,t)=>v.createElement(Co,wb({},e,{ref:t,icon:Cb}))),Eb={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z`}}]},name:`search`,theme:`outlined`};function Db(){return Db=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},Db.apply(this,arguments)}var Ob=v.forwardRef((e,t)=>v.createElement(Co,Db({},e,{ref:t,icon:Eb})));function kb({suffixIcon:e,clearIcon:t,menuItemSelectedIcon:n,removeIcon:r,loading:i,loadingIcon:a,multiple:o,hasFeedback:s,showSuffixIcon:c,feedbackIcon:l,showArrow:u,componentName:d}){let f=t??v.createElement(Oo,null),p=t=>e===null&&!s&&!u?null:v.createElement(v.Fragment,null,c!==!1&&t,s&&l),m=null;m=e===void 0?i?p(a??v.createElement(Xu,{spin:!0})):({open:e,showSearch:t})=>p(e&&t?v.createElement(Ob,null):v.createElement(Tb,null)):p(e);let h=null;h=n===void 0?o?v.createElement(Sb,null):null:n;let g=null;return g=r===void 0?v.createElement(jo,null):r,{clearIcon:f,suffixIcon:m,itemIcon:h,removeIcon:g}}function Ab(e){return v.useMemo(()=>{if(e)return(...t)=>v.createElement(Hh,{space:!0},e.apply(void 0,t))},[e])}function jb(e,t){return t===void 0?e!==null:t}var Mb=`SECRET_COMBOBOX_MODE_DO_NOT_USE`,Nb=v.forwardRef((e,t)=>{let{prefixCls:n,bordered:r,className:i,rootClassName:a,getPopupContainer:o,popupClassName:s,dropdownClassName:c,listHeight:l=256,placement:u,listItemHeight:d,size:f,disabled:p,notFoundContent:m,status:h,builtinPlacements:g,dropdownMatchSelectWidth:_,popupMatchSelectWidth:y,direction:b,style:x,allowClear:S,variant:C,popupStyle:w,dropdownStyle:T,transitionName:E,tagRender:D,maxCount:O,prefix:k,dropdownRender:A,popupRender:j,onDropdownVisibleChange:M,onOpenChange:N,styles:P,classNames:F,...I}=e,{getPopupContainer:L,getPrefixCls:R,renderEmpty:z,direction:B,virtual:V,popupMatchSelectWidth:H,popupOverflow:U}=v.useContext(Ye),{showSearch:W,style:ee,styles:te,className:ne,classNames:re}=Qe(`select`),[,ie]=Ra(),ae=d??ie?.controlHeight,G=R(`select`,n),K=R(),oe=b??B,{compactSize:se,compactItemClassnames:ce}=Pd(G,oe),[q,le]=ab(`select`,C,r),ue=Xc(G),[fe,pe]=yb(G,ue),me=v.useMemo(()=>{let{mode:t}=e;if(t!==`combobox`)return t===Mb?`combobox`:t},[e.mode]),he=me===`multiple`||me===`tags`,ge=jb(e.suffixIcon,e.showArrow),_e=y??_??H,ve=Ab(j||A),ye=N||M,{status:be,hasFeedback:xe,isFormItemInput:Se,feedbackIcon:Ce}=v.useContext(zh),we=Xy(be,h),Te;Te=m===void 0?me===`combobox`?null:z?.(`Select`)||v.createElement(ib,{componentName:`Select`}):m;let{suffixIcon:Ee,itemIcon:De,removeIcon:Oe,clearIcon:ke}=kb({...I,multiple:he,hasFeedback:xe,feedbackIcon:Ce,showSuffixIcon:ge,prefixCls:G,componentName:`Select`}),Ae=S===!0?{clearIcon:ke}:S,je=de(I,[`suffixIcon`,`itemIcon`]),Me=jd(e=>f??se??e),Ne=v.useContext(fu),Pe=p??Ne,Fe={...e,variant:q,status:we,disabled:Pe,size:Me},[Ie,Le]=Oc([re,F],[te,P],{props:Fe},{popup:{_default:`root`}}),Re=J(Ie.popup?.root,s,c,{[`${G}-dropdown-${oe}`]:oe===`rtl`},a,pe,ue,fe),ze={...Le.popup?.root,...w??T},Be=J({[`${G}-lg`]:Me===`large`,[`${G}-sm`]:Me===`small`,[`${G}-rtl`]:oe===`rtl`,[`${G}-${q}`]:le,[`${G}-in-form-item`]:Se},Yy(G,we,xe),ce,ne,i,Ie.root,a,pe,ue,fe),Ve=v.useMemo(()=>u===void 0?oe===`rtl`?`bottomRight`:`bottomLeft`:u,[u,oe]),[He]=Rc(`SelectLike`,Le.popup?.root?.zIndex??ze?.zIndex);return v.createElement(Jy,{ref:t,virtual:V,classNames:Ie,styles:Le,showSearch:W,...je,style:{...Le.root,...ee,...x},popupMatchSelectWidth:_e,transitionName:xd(K,`slide-up`,E),builtinPlacements:sb(g,U),listHeight:l,listItemHeight:ae,mode:me,prefixCls:G,placement:Ve,direction:oe,prefix:k,suffixIcon:Ee,menuItemSelectedIcon:De,removeIcon:Oe,allowClear:Ae,notFoundContent:Te,className:Be,getPopupContainer:o||L,popupClassName:Re,disabled:Pe,popupStyle:{...Le.popup?.root,...ze,zIndex:He},maxCount:he?O:void 0,tagRender:he?D:void 0,popupRender:ve,onPopupVisibleChange:ye})}),Pb=X_(Nb,`popupAlign`);Nb.SECRET_COMBOBOX_MODE_DO_NOT_USE=Mb,Nb.Option=iy,Nb.OptGroup=ry,Nb._InternalPanelDoNotUseOrYouWillBeFired=Pb;var Fb=[`xxxl`,`xxl`,`xl`,`lg`,`md`,`sm`,`xs`],Ib=[].concat(Fb).reverse(),Lb=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`,xxxl:`(min-width: ${e.screenXXXL}px)`}),Rb=e=>{let t=e,n=[].concat(Fb).reverse();return n.forEach((e,r)=>{let i=e.toUpperCase(),a=`screen${i}Min`,o=`screen${i}`;if(!(t[a]<=t[o]))throw Error(`${a}<=${o} fails : !(${t[a]}<=${t[o]})`);if(r<n.length-1){let e=`screen${i}Max`;if(!(t[o]<=t[e]))throw Error(`${o}<=${e} fails : !(${t[o]}<=${t[e]})`);let a=`screen${n[r+1].toUpperCase()}Min`;if(!(t[e]<=t[a]))throw Error(`${e}<=${a} fails : !(${t[e]}<=${t[a]})`)}}),e},zb=()=>{let[,e]=Ra(),t=Lb(Rb(e));return v.useMemo(()=>{let e=new Map,n=-1,r={};return{responsiveMap:t,matchHandlers:{},dispatch(t){return r=t,e.forEach(e=>{e(r)}),e.size>=1},subscribe(t){return e.size||this.register(),n+=1,e.set(n,t),t(r),n},unsubscribe(t){e.delete(t),e.size||this.unregister()},register(){Object.entries(t).forEach(([e,t])=>{let n=({matches:t})=>{this.dispatch({...r,[e]:t})},i=window.matchMedia(t);typeof i?.addEventListener==`function`&&i.addEventListener(`change`,n),this.matchHandlers[t]={mql:i,listener:n},n(i)})},unregister(){Object.values(t).forEach(e=>{let t=this.matchHandlers[e];typeof t?.mql?.removeEventListener==`function`&&t.mql.removeEventListener(`change`,t?.listener)}),e.clear()}}},[t])};function Bb(e=!0,t={}){let n=(0,v.useRef)(t),[,r]=yc(),i=zb();return S(()=>{let t=i.subscribe(t=>{n.current=t,e&&r()});return()=>i.unsubscribe(t)},[]),n.current}var Vb=e=>e?typeof e==`function`?e():e:null,Hb=e=>{let{children:t,prefixCls:n,id:r,classNames:i,styles:a,className:o,style:s}=e;return v.createElement(`div`,{id:r,className:J(`${n}-container`,i?.container,o),style:{...a?.container,...s},role:`tooltip`},typeof t==`function`?t():t)},Ub={shiftX:64,adjustY:1},Wb={adjustX:1,shiftY:!0},Gb=[0,0],Kb={left:{points:[`cr`,`cl`],overflow:Wb,offset:[-4,0],targetOffset:Gb},right:{points:[`cl`,`cr`],overflow:Wb,offset:[4,0],targetOffset:Gb},top:{points:[`bc`,`tc`],overflow:Ub,offset:[0,-4],targetOffset:Gb},bottom:{points:[`tc`,`bc`],overflow:Ub,offset:[0,4],targetOffset:Gb},topLeft:{points:[`bl`,`tl`],overflow:Ub,offset:[0,-4],targetOffset:Gb},leftTop:{points:[`tr`,`tl`],overflow:Wb,offset:[-4,0],targetOffset:Gb},topRight:{points:[`br`,`tr`],overflow:Ub,offset:[0,-4],targetOffset:Gb},rightTop:{points:[`tl`,`tr`],overflow:Wb,offset:[4,0],targetOffset:Gb},bottomRight:{points:[`tr`,`br`],overflow:Ub,offset:[0,4],targetOffset:Gb},rightBottom:{points:[`bl`,`br`],overflow:Wb,offset:[4,0],targetOffset:Gb},bottomLeft:{points:[`tl`,`bl`],overflow:Ub,offset:[0,4],targetOffset:Gb},leftBottom:{points:[`br`,`bl`],overflow:Wb,offset:[-4,0],targetOffset:Gb}};function qb(){return qb=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},qb.apply(this,arguments)}var Jb=v.forwardRef((e,t)=>{let{trigger:n=[`hover`],mouseEnterDelay:r=0,mouseLeaveDelay:i=.1,prefixCls:a=`rc-tooltip`,children:o,onVisibleChange:s,afterVisibleChange:c,motion:l,placement:u=`right`,align:d={},destroyOnHidden:f=!1,defaultVisible:p,getTooltipContainer:m,arrowContent:h,overlay:g,id:_,showArrow:y=!0,classNames:b,styles:x,...S}=e,C=fl(_),w=(0,v.useRef)(null);(0,v.useImperativeHandle)(t,()=>w.current);let T={...S};`visible`in e&&(T.popupVisible=e.visible);let E=v.useMemo(()=>{if(!y)return!1;let e=y===!0?{}:y;return{...e,className:J(e.className,b?.arrow),style:{...e.style,...x?.arrow},content:e.content??h}},[y,b?.arrow,x?.arrow,h]);return v.createElement(iu,qb({popupClassName:b?.root,prefixCls:a,popup:v.createElement(Hb,{key:`content`,prefixCls:a,id:C,classNames:b,styles:x},g),action:n,builtinPlacements:Kb,popupPlacement:u,ref:w,popupAlign:d,getPopupContainer:m,onOpenChange:s,afterOpenChange:c,popupMotion:l,defaultPopupVisible:p,autoDestroy:f,mouseLeaveDelay:i,popupStyle:x?.root,mouseEnterDelay:r,arrow:E,uniqueContainerClassName:b?.uniqueContainer,uniqueContainerStyle:x?.uniqueContainer},T),({open:e})=>{let t=v.Children.only(o),n={"aria-describedby":g&&e?C:void 0};return v.cloneElement(t,n)})});function Yb(e){let{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,i=t/2,a=i,o=r*1/Math.sqrt(2),s=i-r*(1-1/Math.sqrt(2)),c=i-1/Math.sqrt(2)*n,l=r*(Math.sqrt(2)-1)+1/Math.sqrt(2)*n,u=2*i-c,d=l,f=2*i-o,p=s,m=2*i-0,h=a,g=i*Math.sqrt(2)+r*(Math.sqrt(2)-2),_=r*(Math.sqrt(2)-1),v=`polygon(${_}px 100%, 50% ${_}px, ${2*i-_}px 100%, ${_}px 100%)`;return{arrowShadowWidth:g,arrowPath:`path('M 0 ${a} A ${r} ${r} 0 0 0 ${o} ${s} L ${c} ${l} A ${n} ${n} 0 0 1 ${u} ${d} L ${f} ${p} A ${r} ${r} 0 0 0 ${m} ${h} Z')`,arrowPolygon:v}}var Xb=(e,t,n)=>{let{sizePopupArrow:r,arrowPolygon:i,arrowPath:a,arrowShadowWidth:o,borderRadiusXS:s,calc:c}=e;return{pointerEvents:`none`,width:r,height:r,overflow:`hidden`,"&::before":{position:`absolute`,bottom:0,insetInlineStart:0,width:r,height:c(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[i,a]},content:`""`},"&::after":{content:`""`,position:`absolute`,width:o,height:o,bottom:0,insetInline:0,margin:`auto`,borderRadius:{_skip_check_:!0,value:`0 0 ${Y(s)} 0`},transform:`translateY(50%) rotate(-135deg)`,boxShadow:n,zIndex:0,background:`transparent`}}};function Zb(e){let{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?8:r}}function Qb(e,t){return e?t:{}}var $b=(e,t,n)=>{let{componentCls:r,boxShadowPopoverArrow:i,arrowOffsetVertical:a,arrowOffsetHorizontal:o,antCls:s}=e,[c]=Qa(s,`tooltip`),{arrowDistance:l=0,arrowPlacement:u={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:{[`${r}-arrow`]:[{position:`absolute`,zIndex:1,display:`block`,...Xb(e,t,i),"&:before":{background:t}}],...Qb(!!u.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(`,`)]:{bottom:l,transform:`translateY(100%) rotate(180deg)`},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:`50%`},transform:`translateX(-50%) translateY(100%) rotate(180deg)`},"&-placement-topLeft":{[c(`arrow-offset-x`)]:o,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:o}}},"&-placement-topRight":{[c(`arrow-offset-x`)]:`calc(100% - ${Y(o)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:o}}}}),...Qb(!!u.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(`,`)]:{top:l,transform:`translateY(-100%)`},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:`50%`},transform:`translateX(-50%) translateY(-100%)`},"&-placement-bottomLeft":{[c(`arrow-offset-x`)]:o,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:o}}},"&-placement-bottomRight":{[c(`arrow-offset-x`)]:`calc(100% - ${Y(o)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:o}}}}),...Qb(!!u.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(`,`)]:{right:{_skip_check_:!0,value:l},transform:`translateX(100%) rotate(90deg)`},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:`50%`},transform:`translateY(-50%) translateX(100%) rotate(90deg)`},[`&-placement-leftTop > ${r}-arrow`]:{top:a},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:a}}),...Qb(!!u.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(`,`)]:{left:{_skip_check_:!0,value:l},transform:`translateX(-100%) rotate(-90deg)`},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:`50%`},transform:`translateY(-50%) translateX(-100%) rotate(-90deg)`},[`&-placement-rightTop > ${r}-arrow`]:{top:a},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:a}})}}};function ex(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};let i=cc(r)?r:{},a={};switch(e){case`top`:case`bottom`:a.shiftX=t.arrowOffsetHorizontal*2+n,a.shiftY=!0,a.adjustY=!0;break;case`left`:case`right`:a.shiftY=t.arrowOffsetVertical*2+n,a.shiftX=!0,a.adjustX=!0;break}let o={...a,...i};return o.shiftX||(o.adjustX=!0),o.shiftY||(o.adjustY=!0),o}var tx={left:{points:[`cr`,`cl`]},right:{points:[`cl`,`cr`]},top:{points:[`bc`,`tc`]},bottom:{points:[`tc`,`bc`]},topLeft:{points:[`bl`,`tl`]},leftTop:{points:[`tr`,`tl`]},topRight:{points:[`br`,`tr`]},rightTop:{points:[`tl`,`tr`]},bottomRight:{points:[`tr`,`br`]},rightBottom:{points:[`bl`,`br`]},bottomLeft:{points:[`tl`,`bl`]},leftBottom:{points:[`br`,`bl`]}},nx={topLeft:{points:[`bl`,`tc`]},leftTop:{points:[`tr`,`cl`]},topRight:{points:[`br`,`tc`]},rightTop:{points:[`tl`,`cr`]},bottomRight:{points:[`tr`,`bc`]},rightBottom:{points:[`bl`,`cr`]},bottomLeft:{points:[`tl`,`bc`]},leftBottom:{points:[`br`,`cl`]}},rx=new Set([`topLeft`,`topRight`,`bottomLeft`,`bottomRight`,`leftTop`,`leftBottom`,`rightTop`,`rightBottom`]);function ix(e){let{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:i,borderRadius:a,visibleFirst:o}=e,s=t/2,c={},l=Zb({contentRadius:a,limitVerticalRadius:!0});return Object.keys(tx).forEach(e=>{let a={...r&&nx[e]||tx[e],offset:[0,0],dynamicInset:!0};switch(c[e]=a,rx.has(e)&&(a.autoArrow=!1),e){case`top`:case`topLeft`:case`topRight`:a.offset[1]=-s-i;break;case`bottom`:case`bottomLeft`:case`bottomRight`:a.offset[1]=s+i;break;case`left`:case`leftTop`:case`leftBottom`:a.offset[0]=-s-i;break;case`right`:case`rightTop`:case`rightBottom`:a.offset[0]=s+i;break}if(r)switch(e){case`topLeft`:case`bottomLeft`:a.offset[0]=-l.arrowOffsetHorizontal-s;break;case`topRight`:case`bottomRight`:a.offset[0]=l.arrowOffsetHorizontal+s;break;case`leftTop`:case`rightTop`:a.offset[1]=-l.arrowOffsetHorizontal*2+s;break;case`leftBottom`:case`rightBottom`:a.offset[1]=l.arrowOffsetHorizontal*2-s;break}a.overflow=ex(e,l,t,n),o&&(a.htmlRegion=`visibleFirst`)}),c}var ax=v.createContext(!1),ox=(e,t)=>{let n=e=>typeof e==`boolean`?{show:e}:e||{};return v.useMemo(()=>{let r=n(e),i=n(t);return{...i,...r,show:r.show??i.show??!0}},[e,t])},sx=`50%`,cx=e=>{let{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:i,tooltipBg:a,tooltipBorderRadius:o,zIndexPopup:s,controlHeight:c,boxShadowSecondary:l,paddingSM:u,paddingXS:d,arrowOffsetHorizontal:f,sizePopupArrow:p,antCls:m}=e,[h,g]=Qa(m,`tooltip`),_=t(o).add(p).add(f).equal(),v={minWidth:t(o).mul(2).add(p).equal(),minHeight:c,padding:`${Y(e.calc(u).div(2).equal())} ${Y(d)}`,color:g(`overlay-color`,i),textAlign:`start`,textDecoration:`none`,wordWrap:`break-word`,backgroundColor:a,borderRadius:o,boxShadow:l,boxSizing:`border-box`},y={[h(`valid-offset-x`)]:g(`arrow-offset-x`,`var(--arrow-x)`),transformOrigin:[g(`valid-offset-x`,sx),`var(--arrow-y, ${sx})`].join(` `)};return[{[n]:{...Ba(e),position:`absolute`,zIndex:s,display:`block`,width:`max-content`,maxWidth:r,visibility:`visible`,...y,"&-hidden":{display:`none`},[h(`arrow-background-color`)]:a,[`${n}-container`]:[v,nf(e,!0)],[`&:has(~ ${n}-unique-container)`]:{[`${n}-container`]:{border:`none`,background:`transparent`,boxShadow:`none`}},[[`&-placement-topLeft`,`&-placement-topRight`,`&-placement-bottomLeft`,`&-placement-bottomRight`].join(`,`)]:{minWidth:_},[[`&-placement-left`,`&-placement-leftTop`,`&-placement-leftBottom`,`&-placement-right`,`&-placement-rightTop`,`&-placement-rightBottom`].join(`,`)]:{[`${n}-inner`]:{borderRadius:e.min(o,8)}},[`${n}-content`]:{position:`relative`},...$a(e,(e,{darkColor:t})=>({[`&${n}-${e}`]:{[`${n}-container`]:{backgroundColor:t},[`${n}-arrow`]:{[h(`arrow-background-color`)]:t}}})),"&-rtl":{direction:`rtl`}}},$b(e,g(`arrow-background-color`)),{[`${n}-pure`]:{position:`relative`,maxWidth:`none`,margin:e.sizePopupArrow}},{[`${n}-unique-container`]:{...v,...y,position:`absolute`,zIndex:t(s).sub(1).equal(),"&-hidden":{display:`none`},"&-visible":{transition:`all ${e.motionDurationSlow}`}}}]},lx=e=>({zIndexPopup:e.zIndexPopupBase+70,maxWidth:250,...Zb({contentRadius:e.borderRadius,limitVerticalRadius:!0}),...Yb(ci(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))}),ux=(e,t,n=!0)=>Ya(`Tooltip`,e=>{let{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:r,maxWidth:i}=e;return[cx(ci(e,{tooltipMaxWidth:i,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:r})),If(e,`zoom-big-fast`)]},lx,{resetStyle:!1,injectStyle:n})(e,t),dx=yi.map(e=>`${e}-inverse`),fx=[`success`,`processing`,`error`,`default`,`warning`];function px(e,t=!0){return t?[].concat(Be(dx),Be(yi)).includes(e):yi.includes(e)}function mx(e){return fx.includes(e)}var hx=(e,t,n)=>{let r=px(n),[i]=Qa(e,`tooltip`),a=J({[`${t}-${n}`]:n&&r}),o={},s={},c=Yf(n).toRgb(),l=(.299*c.r+.587*c.g+.114*c.b)/255<.5?`#FFF`:`#000`;return n&&!r&&(o.background=n,o[i(`overlay-color`)]=l,s[i(`arrow-background-color`)]=n),{className:a,overlayStyle:o,arrowStyle:s}},gx=e=>{let{prefixCls:t,className:n,placement:r=`top`,title:i,color:a,overlayInnerStyle:o,classNames:s,styles:c}=e,{getPrefixCls:l}=v.useContext(Ye),u=l(`tooltip`,t),d=l(),f=Xc(u),[p,m]=ux(u,f),h=hx(d,u,a),g=h.arrowStyle,_=v.useMemo(()=>({container:{...o,...h.overlayStyle}}),[o,h.overlayStyle]),y={...e,placement:r},[b,x]=Oc([s],[_,c],{props:y}),S=J(f,p,m,u,`${u}-pure`,`${u}-placement-${r}`,n,h.className);return v.createElement(`div`,{className:S,style:g},v.createElement(`div`,{className:`${u}-arrow`}),v.createElement(Hb,{...e,className:p,prefixCls:u,classNames:b,styles:x},i))},_x=v.forwardRef((e,t)=>{let{prefixCls:n,openClassName:r,getTooltipContainer:i,color:a,children:o,afterOpenChange:s,arrow:c,destroyTooltipOnHide:l,destroyOnHidden:u,title:d,overlay:f,trigger:p,builtinPlacements:m,autoAdjustOverflow:h=!0,motion:g,getPopupContainer:_,placement:y=`top`,mouseEnterDelay:b=.1,mouseLeaveDelay:x=.1,rootClassName:S,styles:C,classNames:w,onOpenChange:E,overlayInnerStyle:D,overlayStyle:O,overlayClassName:k,...A}=e,[,j]=Ra(),M=e[`data-popover-inject`],{getPopupContainer:N,getPrefixCls:P,direction:F,...I}=Qe(`tooltip`),{className:L,style:R,classNames:z,styles:B,arrow:V,trigger:H}=M?{}:I,U=ox(c,V),W=U.show,ee=p||H||`hover`,te=_||N,ne=u??!!l,re=v.useContext(ax);ge(`Tooltip`);let ie=v.useRef(null),ae=()=>{ie.current?.forceAlign()};v.useImperativeHandle(t,()=>({forceAlign:ae,nativeElement:ie.current?.nativeElement,popupElement:ie.current?.popupElement}));let[G,K]=T(e.defaultOpen??!1,e.open),oe=!d&&!f&&d!==0,se=e=>{K(oe?!1:e),!oe&&E&&E(e)},ce=v.useMemo(()=>m||ix({arrowPointAtCenter:U?.pointAtCenter??!1,autoAdjustOverflow:h,arrowWidth:W?j.sizePopupArrow:0,borderRadius:j.borderRadius,offset:j.marginXXS,visibleFirst:!0}),[U,m,j,W,h]),q=v.useMemo(()=>d===0?d:f||d||``,[f,d]),le=v.createElement(Hh,{space:!0,form:!0},typeof q==`function`?q():q),ue={...e,trigger:ee,builtinPlacements:ce,getPopupContainer:te,destroyOnHidden:ne},[de,fe]=Oc([z,w],[B,C],{props:ue}),pe=P(`tooltip`,n),me=P(),he=G;(!(`open`in e)&&oe||re)&&(he=!1);let _e=v.isValidElement(o)&&!au(o)?o:v.createElement(`span`,null,o),ve=_e.props,ye=!ve.className||typeof ve.className==`string`?J(ve.className,r||`${pe}-open`):ve.className,be=Xc(pe),[xe,Se]=ux(pe,be,!M),Ce=hx(me,pe,a),we=Ce.arrowStyle,Te=J(be,xe,Se),Ee=J(k,{[`${pe}-rtl`]:F===`rtl`},Ce.className,S,Te,L,de.root),[De,Oe]=Rc(`Tooltip`,A.zIndex),ke={...fe.container,...D,...Ce.overlayStyle},Ae=v.createElement(Jb,{unique:!0,...A,zIndex:De,showArrow:W,placement:y,mouseEnterDelay:b,mouseLeaveDelay:x,prefixCls:pe,classNames:{root:Ee,container:de.container,arrow:de.arrow,uniqueContainer:J(Te,de.container)},styles:{root:{...we,...fe.root,...R,...O},container:ke,uniqueContainer:ke,arrow:fe.arrow},ref:ie,overlay:le,visible:he,onVisibleChange:se,afterVisibleChange:s,arrowContent:v.createElement(`span`,{className:`${pe}-arrow-content`}),motion:{motionName:xd(me,`zoom-big-fast`,typeof g?.motionName==`string`?g?.motionName:void 0),motionDeadline:1e3},trigger:ee,builtinPlacements:ce,getTooltipContainer:te,destroyOnHidden:ne},he?su(_e,{className:ye}):_e);return v.createElement(Mc.Provider,{value:Oe},Ae)});_x._InternalPanelDoNotUseOrYouWillBeFired=gx,_x.UniqueProvider=du;var vx=`50%`,yx=e=>{let{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:i,innerPadding:a,boxShadowSecondary:o,colorTextHeading:s,borderRadiusLG:c,zIndexPopup:l,titleMarginBottom:u,colorBgElevated:d,popoverBg:f,titleBorderBottom:p,innerContentPadding:m,titlePadding:h,antCls:g}=e,[_,v]=Qa(g,`tooltip`);return[{[t]:{...Ba(e),position:`absolute`,top:0,left:{_skip_check_:!0,value:0},zIndex:l,fontWeight:`normal`,whiteSpace:`normal`,textAlign:`start`,cursor:`auto`,userSelect:`text`,[_(`valid-offset-x`)]:v(`arrow-offset-x`,`var(--arrow-x)`),transformOrigin:[v(`valid-offset-x`,vx),`var(--arrow-y, ${vx})`].join(` `),[_(`arrow-background-color`)]:d,width:`max-content`,maxWidth:`100vw`,"&-rtl":{direction:`rtl`},"&-hidden":{display:`none`},[`${t}-content`]:{position:`relative`},[`${t}-container`]:{backgroundColor:f,backgroundClip:`padding-box`,borderRadius:c,boxShadow:o,padding:a},[`${t}-title`]:{minWidth:r,marginBottom:u,color:s,fontWeight:i,borderBottom:p,padding:h},[`${t}-content`]:{color:n,padding:m}}},$b(e,v(`arrow-background-color`)),{[`${t}-pure`]:{position:`relative`,maxWidth:`none`,margin:e.sizePopupArrow,display:`inline-block`}}]},bx=e=>{let{componentCls:t,antCls:n}=e,[r]=Qa(n,`tooltip`);return{[t]:yi.map(n=>{let i=e[`${n}6`];return{[`&${t}-${n}`]:{[r(`arrow-background-color`)]:i,[`${t}-inner`]:{backgroundColor:i},[`${t}-arrow`]:{background:`transparent`}}}})}},xx=Ya(`Popover`,e=>{let{colorBgElevated:t,colorText:n}=e,r=ci(e,{popoverBg:t,popoverColor:n});return[yx(r),bx(r),If(r,`zoom-big`)]},e=>{let{lineWidth:t,controlHeight:n,fontHeight:r,padding:i,wireframe:a,zIndexPopupBase:o,borderRadiusLG:s,marginXS:c,lineType:l,colorSplit:u,paddingSM:d}=e,f=n-r,p=f/2,m=f/2-t,h=i;return{titleMinWidth:177,zIndexPopup:o+30,...Yb(e),...Zb({contentRadius:s,limitVerticalRadius:!0}),innerPadding:a?0:12,titleMarginBottom:a?0:c,titlePadding:a?`${p}px ${h}px ${m}px`:0,titleBorderBottom:a?`${t}px ${l} ${u}`:`none`,innerContentPadding:a?`${d}px ${h}px`:0}},{resetStyle:!1,deprecatedTokens:[[`width`,`titleMinWidth`],[`minWidth`,`titleMinWidth`]]}),Sx=e=>{let{title:t,content:n,prefixCls:r,classNames:i,styles:a}=e;return!t&&!n?null:v.createElement(v.Fragment,null,t&&v.createElement(`div`,{className:J(`${r}-title`,i?.title),style:a?.title},t),n&&v.createElement(`div`,{className:J(`${r}-content`,i?.content),style:a?.content},n))},Cx=e=>{let{hashId:t,prefixCls:n,className:r,style:i,placement:a=`top`,title:o,content:s,children:c,classNames:l,styles:u}=e,d=Vb(o),f=Vb(s),p={...e,placement:a},[m,h]=Oc([l],[u],{props:p}),g=J(t,n,`${n}-pure`,`${n}-placement-${a}`,r);return v.createElement(`div`,{className:g,style:i},v.createElement(`div`,{className:`${n}-arrow`}),v.createElement(Hb,{...e,className:t,prefixCls:n,classNames:m,styles:h},c||v.createElement(Sx,{prefixCls:n,title:d,content:f,classNames:m,styles:h})))},wx=e=>{let{prefixCls:t,className:n,...r}=e,{getPrefixCls:i}=v.useContext(Ye),a=i(`popover`,t),[o,s]=xx(a);return v.createElement(Cx,{...r,prefixCls:a,hashId:o,className:J(n,s)})},Tx=v.forwardRef((e,t)=>{let{prefixCls:n,title:r,content:i,overlayClassName:a,placement:o=`top`,trigger:s,children:c,mouseEnterDelay:l=.1,mouseLeaveDelay:u=.1,onOpenChange:d,overlayStyle:f={},styles:p,classNames:m,motion:h,arrow:g,..._}=e,{getPrefixCls:y,className:b,style:x,classNames:S,styles:C,arrow:w,trigger:E}=Qe(`popover`),D=y(`popover`,n),[O,k]=xx(D),A=y(),j=ox(g,w),M=s||E||`hover`,N={...e,placement:o,trigger:M,mouseEnterDelay:l,mouseLeaveDelay:u,overlayStyle:f,styles:p,classNames:m},[P,F]=Oc([S,m],[C,p],{props:N}),I=J(a,O,k,b,P.root),[L,R]=T(e.defaultOpen??!1,e.open),z=e=>{R(e),d?.(e)},B=Vb(r),V=Vb(i);return v.createElement(_x,{unique:!1,arrow:j,placement:o,trigger:M,mouseEnterDelay:l,mouseLeaveDelay:u,..._,prefixCls:D,classNames:{root:I,container:P.container,arrow:P.arrow},styles:{root:{...F.root,...x,...f},container:F.container,arrow:F.arrow},ref:t,open:L,onOpenChange:z,overlay:B||V?v.createElement(Sx,{prefixCls:D,title:B,content:V,classNames:P,styles:F}):null,motion:{motionName:xd(A,`zoom-big`,typeof h?.motionName==`string`?h?.motionName:void 0)},"data-popover-inject":!0},c)});Tx._InternalPanelDoNotUseOrYouWillBeFired=wx;var Ex={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z`}}]},name:`left`,theme:`outlined`};function Dx(){return Dx=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},Dx.apply(this,arguments)}var Ox=v.forwardRef((e,t)=>v.createElement(Co,Dx({},e,{ref:t,icon:Ex}))),{ESC:kx,TAB:Ax}=X;function jx({visible:e,triggerRef:t,onVisibleChange:n,autoFocus:r,overlayRef:i}){let a=v.useRef(!1),o=()=>{e&&(t.current?.focus?.(),n?.(!1))},s=()=>i.current?.focus?(i.current.focus(),a.current=!0,!0):!1,c=e=>{switch(e.keyCode){case kx:o();break;case Ax:{let t=!1;a.current||(t=s()),t?e.preventDefault():o();break}}};v.useEffect(()=>e?(window.addEventListener(`keydown`,c),r&&Ke(s,3),()=>{window.removeEventListener(`keydown`,c),a.current=!1}):()=>{a.current=!1},[e])}var Mx=(0,v.forwardRef)((e,t)=>{let{overlay:n,arrow:r,prefixCls:i}=e,a=(0,v.useMemo)(()=>{let e;return e=typeof n==`function`?n():n,e},[n]),o=I(t,V(a));return v.createElement(v.Fragment,null,r&&v.createElement(`div`,{className:`${i}-arrow`}),v.cloneElement(a,{ref:R(a)?o:void 0}))}),Nx={adjustX:1,adjustY:1},Px=[0,0],Fx={topLeft:{points:[`bl`,`tl`],overflow:Nx,offset:[0,-4],targetOffset:Px},top:{points:[`bc`,`tc`],overflow:Nx,offset:[0,-4],targetOffset:Px},topRight:{points:[`br`,`tr`],overflow:Nx,offset:[0,-4],targetOffset:Px},bottomLeft:{points:[`tl`,`bl`],overflow:Nx,offset:[0,4],targetOffset:Px},bottom:{points:[`tc`,`bc`],overflow:Nx,offset:[0,4],targetOffset:Px},bottomRight:{points:[`tr`,`br`],overflow:Nx,offset:[0,4],targetOffset:Px}};function Ix(){return Ix=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},Ix.apply(this,arguments)}var Lx=v.forwardRef((e,t)=>{let{arrow:n=!1,prefixCls:r=`rc-dropdown`,transitionName:i,animation:a,align:o,placement:s=`bottomLeft`,placements:c=Fx,getPopupContainer:l,showAction:u,hideAction:d,overlayClassName:f,overlayStyle:p,visible:m,trigger:h=[`hover`],autoFocus:g,overlay:_,children:y,onVisibleChange:b,...x}=e,[S,C]=v.useState(),w=`visible`in e?m:S,T=a?`${r}-${a}`:i,E=v.useRef(null),D=v.useRef(null),O=v.useRef(null);v.useImperativeHandle(t,()=>E.current);let k=e=>{C(e),b?.(e)};jx({visible:w,triggerRef:O,onVisibleChange:k,autoFocus:g,overlayRef:D});let A=t=>{let{onOverlayClick:n}=e;C(!1),n&&n(t)},j=()=>v.createElement(Mx,{ref:D,overlay:_,prefixCls:r,arrow:n}),M=()=>typeof _==`function`?j:j(),N=()=>{let{minOverlayWidthMatchTrigger:t,alignPoint:n}=e;return`minOverlayWidthMatchTrigger`in e?t:!n},P=v.cloneElement(y,{className:J(y.props?.className,w&&(()=>{let{openClassName:t}=e;return t===void 0?`${r}-open`:t})()),ref:R(y)?I(O,V(y)):void 0}),F=d;return!F&&h.indexOf(`contextMenu`)!==-1&&(F=[`click`]),v.createElement(iu,Ix({builtinPlacements:c},x,{prefixCls:r,ref:E,popupClassName:J(f,{[`${r}-show-arrow`]:n}),popupStyle:p,action:h,showAction:u,hideAction:F,popupPlacement:s,popupAlign:o,popupMotion:{motionName:T},popupVisible:w,stretch:N()?`minWidth`:``,popup:M(),onOpenChange:k,onPopupClick:A,getPopupContainer:l}),P)}),Rx=v.createContext(null);function zx(e,t){return`${e}-${t}`}function Bx(e){return zx(v.useContext(Rx),e)}var Vx=v.createContext(null);function Hx(e,t){let n={...e};return Object.keys(t).forEach(e=>{let r=t[e];r!==void 0&&(n[e]=r)}),n}function Ux({children:e,locked:t,...n}){let r=v.useContext(Vx),i=O(()=>Hx(r,n),[r,n],(e,n)=>!t&&(e[0]!==n[0]||!mt(e[1],n[1],!0)));return v.createElement(Vx.Provider,{value:i},e)}var Wx=[],Gx=v.createContext(null);function Kx(){return v.useContext(Gx)}var qx=v.createContext(Wx);function Jx(e){let t=v.useContext(qx);return v.useMemo(()=>e===void 0?t:[...t,e],[t,e])}var Yx=v.createContext(null),Xx=v.createContext({}),{LEFT:Zx,RIGHT:Qx,UP:$x,DOWN:eS,ENTER:tS,ESC:nS,HOME:rS,END:iS}=X,aS=[$x,eS,Zx,Qx];function oS(e,t,n,r){let i=`prev`,a=`next`,o=`children`,s=`parent`;if(e===`inline`&&r===tS)return{inlineTrigger:!0};let c={[$x]:i,[eS]:a},l={[Zx]:n?a:i,[Qx]:n?i:a,[eS]:o,[tS]:o},u={[$x]:i,[eS]:a,[tS]:o,[nS]:s,[Zx]:n?o:s,[Qx]:n?s:o};switch({inline:c,horizontal:l,vertical:u,inlineSub:c,horizontalSub:u,verticalSub:u}[`${e}${t?``:`Sub`}`]?.[r]){case i:return{offset:-1,sibling:!0};case a:return{offset:1,sibling:!0};case s:return{offset:-1,sibling:!1};case o:return{offset:1,sibling:!1};default:return null}}function sS(e){let t=e;for(;t;){if(t.getAttribute(`data-menu-list`))return t;t=t.parentElement}return null}function cS(e,t){let n=e||document.activeElement;for(;n;){if(t.has(n))return n;n=n.parentElement}return null}function lS(e,t){return kp(e,!0).filter(e=>t.has(e))}function uS(e,t,n,r=1){if(!e)return null;let i=lS(e,t),a=i.length,o=i.findIndex(e=>n===e);return r<0?o===-1?o=a-1:--o:r>0&&(o+=1),o=(o+a)%a,i[o]}var dS=(e,t)=>{let n=new Set,r=new Map,i=new Map;return e.forEach(e=>{let a=document.querySelector(`[data-menu-id='${zx(t,e)}']`);a&&(n.add(a),i.set(a,e),r.set(e,a))}),{elements:n,key2element:r,element2key:i}};function fS(e,t,n,r,i,a,o,s,c,l){let u=v.useRef(),d=v.useRef();d.current=t;let f=()=>{Ke.cancel(u.current)};return v.useEffect(()=>()=>{f()},[]),p=>{let{which:m}=p;if([...aS,tS,nS,rS,iS].includes(m)){let l=a(),h=dS(l,r),{elements:g,key2element:_,element2key:v}=h,y=cS(_.get(t),g),b=v.get(y),x=oS(e,o(b,!0).length===1,n,m);if(!x&&m!==rS&&m!==iS)return;(aS.includes(m)||[rS,iS].includes(m))&&p.preventDefault();let S=e=>{if(e){let t=e,n=e.querySelector(`a`);n?.getAttribute(`href`)&&(t=n);let r=v.get(e);s(r),f(),u.current=Ke(()=>{d.current===r&&t.focus()})}};if([rS,iS].includes(m)||x.sibling||!y){let t;t=!y||e===`inline`?i.current:sS(y);let n,r=lS(t,g);n=m===rS?r[0]:m===iS?r[r.length-1]:uS(t,g,y,x.offset),S(n)}else if(x.inlineTrigger)c(b);else if(x.offset>0)c(b,!0),f(),u.current=Ke(()=>{h=dS(l,r);let e=y.getAttribute(`aria-controls`);S(uS(document.getElementById(e),h.elements))},5);else if(x.offset<0){let e=o(b,!0),t=e[e.length-2],n=_.get(t);c(t,!1),S(n)}}l?.(p)}}function pS(e){Promise.resolve().then(e)}var mS=`__RC_UTIL_PATH_SPLIT__`,hS=e=>e.join(mS),gS=e=>e.split(mS),_S=`rc-menu-more`;function vS(){let[,e]=v.useState({}),t=(0,v.useRef)(new Map),n=(0,v.useRef)(new Map),[r,i]=v.useState([]),a=(0,v.useRef)(0),o=(0,v.useRef)(!1),s=()=>{o.current||e({})},c=(0,v.useCallback)((e,r)=>{let i=hS(r);n.current.set(i,e),t.current.set(e,i),a.current+=1;let o=a.current;pS(()=>{o===a.current&&s()})},[]),l=(0,v.useCallback)((e,r)=>{let i=hS(r);n.current.delete(i),t.current.delete(e)},[]),u=(0,v.useCallback)(e=>{i(e)},[]),d=(0,v.useCallback)((e,n)=>{let i=gS(t.current.get(e)||``);return n&&r.includes(i[0])&&i.unshift(_S),i},[r]),f=(0,v.useCallback)((e,t)=>e.filter(e=>e!==void 0).some(e=>d(e,!0).includes(t)),[d]),p=()=>{let e=[...t.current.keys()];return r.length&&e.push(_S),e},m=(0,v.useCallback)(e=>{let r=`${t.current.get(e)}${mS}`,i=new Set;return[...n.current.keys()].forEach(e=>{e.startsWith(r)&&i.add(n.current.get(e))}),i},[]);return v.useEffect(()=>()=>{o.current=!0},[]),{registerPath:c,unregisterPath:l,refreshOverflowKeys:u,isSubPathKey:f,getKeyPath:d,getKeys:p,getSubPathKeys:m}}function yS(e){let t=v.useRef(e);t.current=e;let n=v.useCallback((...e)=>t.current?.(...e),[]);return e?n:void 0}function bS(e,t,n,r){let{activeKey:i,onActive:a,onInactive:o}=v.useContext(Vx),s={active:i===e};return t||(s.onMouseEnter=t=>{n?.({key:e,domEvent:t}),a(e)},s.onMouseLeave=t=>{r?.({key:e,domEvent:t}),o(e)}),s}function xS(e){let{mode:t,rtl:n,inlineIndent:r}=v.useContext(Vx);if(t!==`inline`)return null;let i=e;return n?{paddingRight:i*r}:{paddingLeft:i*r}}function SS({icon:e,props:t,children:n}){let r;return e===null||e===!1?null:(typeof e==`function`?r=v.createElement(e,{...t}):typeof e!=`boolean`&&(r=e),r||n||null)}function CS({item:e,...t}){return Object.defineProperty(t,`item`,{get:()=>(le(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),e)}),t}function wS(){return wS=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},wS.apply(this,arguments)}var TS=class extends v.Component{render(){let{title:e,attribute:t,elementRef:n,...r}=this.props,i=de(r,[`eventKey`,`popupClassName`,`popupOffset`,`onTitleClick`]);return le(!t,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),v.createElement(Hv.Item,wS({},t,{title:typeof e==`string`?e:void 0},i,{ref:n}))}},ES=v.forwardRef((e,t)=>{let{style:n,className:r,eventKey:i,warnKey:a,disabled:o,itemIcon:s,children:c,role:l,onMouseEnter:u,onMouseLeave:d,onClick:f,onKeyDown:p,onFocus:m,...h}=e,g=Bx(i),{prefixCls:_,onItemClick:y,disabled:b,overflowDisabled:x,itemIcon:S,selectedKeys:C,onActive:w}=v.useContext(Vx),{_internalRenderMenuItem:T}=v.useContext(Xx),E=`${_}-item`,D=v.useRef(),O=v.useRef(),k=b||o,A=L(t,O),j=Jx(i),M=e=>({key:i,keyPath:[...j].reverse(),item:D.current,domEvent:e}),N=s||S,{active:P,...F}=bS(i,k,u,d),I=C.includes(i),R=xS(j.length),z=e=>{if(k)return;let t=M(e);f?.(CS(t)),y(t)},B=e=>{if(p?.(e),e.which===X.ENTER){let t=M(e);f?.(CS(t)),y(t)}},V=e=>{w(i),m?.(e)},H={};e.role===`option`&&(H[`aria-selected`]=I);let U=v.createElement(TS,wS({ref:D,elementRef:A,role:l===null?`none`:l||`menuitem`,tabIndex:o?null:-1,"data-menu-id":x&&g?null:g},de(h,[`extra`]),F,H,{component:`li`,"aria-disabled":o,style:{...R,...n},className:J(E,{[`${E}-active`]:P,[`${E}-selected`]:I,[`${E}-disabled`]:k},r),onClick:z,onKeyDown:B,onFocus:V}),c,v.createElement(SS,{props:{...e,isSelected:I},icon:N}));return T&&(U=T(U,e,{selected:I})),U});function DS(e,t){let{eventKey:n}=e,r=Kx(),i=Jx(n);return v.useEffect(()=>{if(r)return r.registerPath(n,i),()=>{r.unregisterPath(n,i)}},[i]),r?null:v.createElement(ES,wS({},e,{ref:t}))}var OS=v.forwardRef(DS);function kS(){return kS=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},kS.apply(this,arguments)}var AS=v.forwardRef(({className:e,children:t,...n},r)=>{let{prefixCls:i,mode:a,rtl:o}=v.useContext(Vx);return v.createElement(`ul`,kS({className:J(i,o&&`${i}-rtl`,`${i}-sub`,`${i}-${a===`inline`?`inline`:`vertical`}`,e),role:`menu`},n,{"data-menu-list":!0,ref:r}),t)});function jS(e,t){return fe(e).map((e,n)=>{if(v.isValidElement(e)){let{key:r}=e,i=e.props?.eventKey??r;i??=`tmp_key-${[...t,n].join(`-`)}`;let a={key:i,eventKey:i};return v.cloneElement(e,a)}return e})}var MS={adjustX:1,adjustY:1},NS={topLeft:{points:[`bl`,`tl`],overflow:MS},topRight:{points:[`br`,`tr`],overflow:MS},bottomLeft:{points:[`tl`,`bl`],overflow:MS},bottomRight:{points:[`tr`,`br`],overflow:MS},leftTop:{points:[`tr`,`tl`],overflow:MS},leftBottom:{points:[`br`,`bl`],overflow:MS},rightTop:{points:[`tl`,`tr`],overflow:MS},rightBottom:{points:[`bl`,`br`],overflow:MS}},PS={topLeft:{points:[`bl`,`tl`],overflow:MS},topRight:{points:[`br`,`tr`],overflow:MS},bottomLeft:{points:[`tl`,`bl`],overflow:MS},bottomRight:{points:[`tr`,`br`],overflow:MS},rightTop:{points:[`tr`,`tl`],overflow:MS},rightBottom:{points:[`br`,`bl`],overflow:MS},leftTop:{points:[`tl`,`tr`],overflow:MS},leftBottom:{points:[`bl`,`br`],overflow:MS}};function FS(e,t,n){if(t)return t;if(n)return n[e]||n.other}var IS={horizontal:`bottomLeft`,vertical:`rightTop`,"vertical-left":`rightTop`,"vertical-right":`leftTop`};function LS({prefixCls:e,visible:t,children:n,popup:r,popupStyle:i,popupClassName:a,popupOffset:o,disabled:s,mode:c,onVisibleChange:l}){let{getPopupContainer:u,rtl:d,subMenuOpenDelay:f,subMenuCloseDelay:p,builtinPlacements:m,triggerSubMenuAction:h,forceSubMenuRender:g,rootClassName:_,motion:y,defaultMotions:b}=v.useContext(Vx),[x,S]=v.useState(!1),C=d?{...PS,...m}:{...NS,...m},w=IS[c],T=FS(c,y,b),E=v.useRef(T);c!==`inline`&&(E.current=T);let D={...E.current,leavedClassName:`${e}-hidden`,removeOnLeave:!1,motionAppear:!0},O=v.useRef();return v.useEffect(()=>(O.current=Ke(()=>{S(t)}),()=>{Ke.cancel(O.current)}),[t]),v.createElement(iu,{prefixCls:e,popupClassName:J(`${e}-popup`,{[`${e}-rtl`]:d},a,_),stretch:c===`horizontal`?`minWidth`:null,getPopupContainer:u,builtinPlacements:C,popupPlacement:w,popupVisible:x,popup:r,popupStyle:i,popupAlign:o&&{offset:o},action:s?[]:[h],mouseEnterDelay:f,mouseLeaveDelay:p,onPopupVisibleChange:l,forceRender:g,popupMotion:D,fresh:!0},n)}function RS(){return RS=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},RS.apply(this,arguments)}function zS({id:e,open:t,keyPath:n,children:r}){let i=`inline`,{prefixCls:a,forceSubMenuRender:o,motion:s,defaultMotions:c,mode:l}=v.useContext(Vx),u=v.useRef(!1);u.current=l===i;let[d,f]=v.useState(!u.current),p=u.current?t:!1;v.useEffect(()=>{u.current&&f(!1)},[l]);let m={...FS(i,s,c)};n.length>1&&(m.motionAppear=!1);let h=m.onVisibleChanged;return m.onVisibleChanged=e=>(!u.current&&!e&&f(!0),h?.(e)),d?null:v.createElement(Ux,{mode:i,locked:!u.current},v.createElement(ks,RS({visible:p},m,{forceRender:o,removeOnLeave:!1,leavedClassName:`${a}-hidden`}),({className:t,style:n})=>v.createElement(AS,{id:e,className:t,style:n},r)))}function BS(){return BS=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},BS.apply(this,arguments)}var VS=v.forwardRef((e,t)=>{let{style:n,className:r,styles:i,classNames:a,title:o,eventKey:s,warnKey:c,disabled:l,internalPopupClose:u,children:d,itemIcon:f,expandIcon:p,popupClassName:m,popupOffset:h,popupStyle:g,onClick:_,onMouseEnter:y,onMouseLeave:b,onTitleClick:x,onTitleMouseEnter:S,onTitleMouseLeave:C,popupRender:w,...T}=e,E=Bx(s),{prefixCls:D,mode:O,openKeys:k,disabled:A,overflowDisabled:j,activeKey:M,selectedKeys:N,itemIcon:P,expandIcon:F,onItemClick:I,onOpenChange:L,onActive:R,popupRender:z}=v.useContext(Vx),{_internalRenderSubMenuItem:B}=v.useContext(Xx),{isSubPathKey:V}=v.useContext(Yx),H=Jx(),U=`${D}-submenu`,W=A||l,ee=v.useRef(),te=v.useRef(),ne=f??P,re=p??F,ie=k.includes(s),ae=!j&&ie,G=V(N,s),{active:K,...oe}=bS(s,W,S,C),[se,ce]=v.useState(!1),q=e=>{W||ce(e)},le=e=>{q(!0),y?.({key:s,domEvent:e})},ue=e=>{q(!1),b?.({key:s,domEvent:e})},de=v.useMemo(()=>K||(O===`inline`?!1:se||V([M],s)),[O,K,M,se,s,V]),fe=xS(H.length),pe=e=>{W||(x?.({key:s,domEvent:e}),O===`inline`&&L(s,!ie))},me=yS(e=>{_?.(CS(e)),I(e)}),he=e=>{O!==`inline`&&L(s,e)},ge=()=>{R(s)},_e=E&&`${E}-popup`,ve=v.useMemo(()=>v.createElement(SS,{icon:O===`horizontal`?void 0:re,props:{...e,isOpen:ae,isSubMenu:!0}},v.createElement(`i`,{className:`${U}-arrow`})),[O,re,e,ae,U]),ye=v.createElement(`div`,BS({role:`menuitem`,style:fe,className:`${U}-title`,tabIndex:W?null:-1,ref:ee,title:typeof o==`string`?o:null,"data-menu-id":j&&E?null:E,"aria-expanded":ae,"aria-haspopup":!0,"aria-controls":_e,"aria-disabled":W,onClick:pe,onFocus:ge},oe),o,ve),be=v.useRef(O);O!==`inline`&&H.length>1?be.current=`vertical`:be.current=O;let xe=be.current,Se=v.useMemo(()=>{let t=v.createElement(Ux,{classNames:a,styles:i,mode:xe===`horizontal`?`vertical`:xe},v.createElement(AS,{id:_e,ref:te},d)),n=w||z;return n?n(t,{item:e,keys:H}):t},[w,z,H,_e,d,e,xe]);if(!j){let e=be.current;ye=v.createElement(LS,{mode:e,prefixCls:U,visible:!u&&ae&&O!==`inline`,popupClassName:m,popupOffset:h,popupStyle:g,popup:Se,disabled:W,onVisibleChange:he},ye)}let Ce=v.createElement(Hv.Item,BS({ref:t,role:`none`},T,{component:`li`,style:n,className:J(U,`${U}-${O}`,r,{[`${U}-open`]:ae,[`${U}-active`]:de,[`${U}-selected`]:G,[`${U}-disabled`]:W}),onMouseEnter:le,onMouseLeave:ue}),ye,!j&&v.createElement(zS,{id:_e,open:ae,keyPath:H},d));return B&&(Ce=B(Ce,e,{selected:G,active:de,open:ae,disabled:W})),v.createElement(Ux,{classNames:a,styles:i,onItemClick:me,mode:O===`horizontal`?`vertical`:O,itemIcon:ne,expandIcon:re},Ce)}),HS=v.forwardRef((e,t)=>{let{eventKey:n,children:r}=e,i=Jx(n),a=jS(r,i),o=Kx();v.useEffect(()=>{if(o)return o.registerPath(n,i),()=>{o.unregisterPath(n,i)}},[i]);let s;return s=o?a:v.createElement(VS,BS({ref:t},e),a),v.createElement(qx.Provider,{value:i},s)});function US({className:e,style:t}){let{prefixCls:n}=v.useContext(Vx);return Kx()?null:v.createElement(`li`,{role:`separator`,className:J(`${n}-item-divider`,e),style:t})}function WS(){return WS=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},WS.apply(this,arguments)}var GS=v.forwardRef((e,t)=>{let{className:n,title:r,eventKey:i,children:a,...o}=e,{prefixCls:s,classNames:c,styles:l}=v.useContext(Vx),u=`${s}-item-group`;return v.createElement(`li`,WS({ref:t,role:`presentation`},o,{onClick:e=>e.stopPropagation(),className:J(u,n)}),v.createElement(`div`,{role:`presentation`,className:J(`${u}-title`,c?.listTitle),style:l?.listTitle,title:typeof r==`string`?r:void 0},r),v.createElement(`ul`,{role:`group`,className:J(`${u}-list`,c?.list),style:l?.list},a))}),KS=v.forwardRef((e,t)=>{let{eventKey:n,children:r}=e,i=jS(r,Jx(n));return Kx()?i:v.createElement(GS,WS({ref:t},de(e,[`warnKey`])),i)});function qS(){return qS=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},qS.apply(this,arguments)}function JS(e,t,n){let{item:r,group:i,submenu:a,divider:o}=t;return(e||[]).map((e,s)=>{if(e&&typeof e==`object`){let{label:c,children:l,key:u,type:d,extra:f,...p}=e,m=u??`tmp-${s}`;return l||d===`group`?d===`group`?v.createElement(i,qS({key:m},p,{title:c}),JS(l,t,n)):v.createElement(a,qS({key:m},p,{title:c}),JS(l,t,n)):d===`divider`?v.createElement(o,qS({key:m},p)):v.createElement(r,qS({key:m},p,{extra:f}),c,(!!f||f===0)&&v.createElement(`span`,{className:`${n}-item-extra`},f))}return null}).filter(e=>e)}function YS(e,t,n,r,i){let a=e,o={divider:US,item:OS,group:KS,submenu:HS,...r};return t&&(a=JS(t,o,i)),jS(a,n)}function XS(){return XS=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},XS.apply(this,arguments)}var ZS=[],QS=v.forwardRef((e,t)=>{let{prefixCls:n=`rc-menu`,rootClassName:r,style:i,className:a,styles:o,classNames:s,tabIndex:c=0,items:l,children:u,direction:d,id:f,mode:p=`vertical`,inlineCollapsed:m,disabled:h,disabledOverflow:g,subMenuOpenDelay:_=.1,subMenuCloseDelay:y=.1,forceSubMenuRender:b,defaultOpenKeys:x,openKeys:S,activeKey:C,defaultActiveFirst:w,selectable:E=!0,multiple:D=!1,defaultSelectedKeys:O,selectedKeys:k,onSelect:A,onDeselect:j,inlineIndent:M=24,motion:N,defaultMotions:P,triggerSubMenuAction:F=`hover`,builtinPlacements:I,itemIcon:L,expandIcon:R,overflowedIndicator:z=`...`,overflowedIndicatorPopupClassName:B,getPopupContainer:V,onClick:H,onOpenChange:U,onKeyDown:W,openAnimation:ee,openTransitionName:te,_internalRenderMenuItem:ne,_internalRenderSubMenuItem:re,_internalComponents:ie,popupRender:ae,...G}=e,[K,oe]=v.useMemo(()=>[YS(u,l,ZS,ie,n),YS(u,l,ZS,{},n)],[u,l,ie]),[se,ce]=v.useState(!1),q=v.useRef(),le=fl(f?`rc-menu-uuid-${f}`:`rc-menu-uuid`),ue=d===`rtl`,[de,fe]=T(x,S),pe=de||ZS,me=(e,t=!1)=>{function n(){fe(e),U?.(e)}t?(0,xl.flushSync)(n):n()},[he,ge]=v.useState(pe),_e=v.useRef(!1),[ve,ye]=v.useMemo(()=>(p===`inline`||p===`vertical`)&&m?[`vertical`,m]:[p,!1],[p,m]),be=ve===`inline`,[xe,Se]=v.useState(ve),[Ce,we]=v.useState(ye);v.useEffect(()=>{Se(ve),we(ye),_e.current&&(be?fe(he):me(ZS))},[ve,ye]);let[Te,Ee]=v.useState(0),De=Te>=K.length-1||xe!==`horizontal`||g;v.useEffect(()=>{be&&ge(pe)},[pe]),v.useEffect(()=>(_e.current=!0,()=>{_e.current=!1}),[]);let{registerPath:Oe,unregisterPath:ke,refreshOverflowKeys:Ae,isSubPathKey:je,getKeyPath:Me,getKeys:Ne,getSubPathKeys:Pe}=vS(),Fe=v.useMemo(()=>({registerPath:Oe,unregisterPath:ke}),[Oe,ke]),Ie=v.useMemo(()=>({isSubPathKey:je}),[je]);v.useEffect(()=>{Ae(De?ZS:K.slice(Te+1).map(e=>e.key))},[Te,De]);let[Le,Re]=T(C||w&&K[0]?.key,C),ze=yS(e=>{Re(e)}),Be=yS(()=>{Re(void 0)});(0,v.useImperativeHandle)(t,()=>({list:q.current,focus:e=>{let t=Ne(),{elements:n,key2element:r,element2key:i}=dS(t,le),a=lS(q.current,n),o;o=Le&&t.includes(Le)?Le:a[0]?i.get(a[0]):K.find(e=>!e.props.disabled)?.key;let s=r.get(o);o&&s&&s?.focus?.(e)},findItem:({key:e})=>{let{key2element:t}=dS(Ne(),le);return t.get(e)||null}}));let[Ve,He]=T(O||[],k),Ue=v.useMemo(()=>Array.isArray(Ve)?Ve:Ve==null?ZS:[Ve],[Ve]),We=e=>{if(E){let{key:t}=e,n=Ue.includes(t),r;r=D?n?Ue.filter(e=>e!==t):[...Ue,t]:[t],He(r);let i={...e,selectedKeys:r};n?j?.(i):A?.(i)}!D&&pe.length&&xe!==`inline`&&me(ZS)},Ge=yS(e=>{H?.(CS(e)),We(e)}),Ke=yS((e,t)=>{let n=pe.filter(t=>t!==e);if(t)n.push(e);else if(xe!==`inline`){let t=Pe(e);n=n.filter(e=>!t.has(e))}mt(pe,n,!0)||me(n,!0)}),qe=fS(xe,Le,ue,le,q,Ne,Me,Re,(e,t)=>{Ke(e,t??!pe.includes(e))},W);v.useEffect(()=>{ce(!0)},[]);let Je=v.useMemo(()=>({_internalRenderMenuItem:ne,_internalRenderSubMenuItem:re}),[ne,re]),Ye=xe!==`horizontal`||g?K:K.map((e,t)=>v.createElement(Ux,{key:e.key,overflowDisabled:t>Te,classNames:s,styles:o},e)),Xe=v.createElement(Hv,XS({id:f,ref:q,prefixCls:`${n}-overflow`,component:`ul`,itemComponent:OS,className:J(n,`${n}-root`,`${n}-${xe}`,a,{[`${n}-inline-collapsed`]:Ce,[`${n}-rtl`]:ue},r),dir:d,style:i,role:`menu`,tabIndex:c,data:Ye,renderRawItem:e=>e,renderRawRest:e=>{let t=e.length,n=t?K.slice(-t):null;return v.createElement(HS,{eventKey:_S,title:z,disabled:De,internalPopupClose:t===0,popupClassName:B},n)},maxCount:xe!==`horizontal`||g?Hv.INVALIDATE:Hv.RESPONSIVE,ssr:`full`,"data-menu-list":!0,onVisibleChange:e=>{Ee(e)},onKeyDown:qe},G));return v.createElement(Xx.Provider,{value:Je},v.createElement(Rx.Provider,{value:le},v.createElement(Ux,{prefixCls:n,rootClassName:r,classNames:s,styles:o,mode:xe,openKeys:pe,rtl:ue,disabled:h,motion:se?N:null,defaultMotions:se?P:null,activeKey:Le,onActive:ze,onInactive:Be,selectedKeys:Ue,inlineIndent:M,subMenuOpenDelay:_,subMenuCloseDelay:y,forceSubMenuRender:b,builtinPlacements:I,triggerSubMenuAction:F,getPopupContainer:V,itemIcon:L,expandIcon:R,onItemClick:Ge,onOpenChange:Ke,popupRender:ae},v.createElement(Yx.Provider,{value:Ie},Xe),v.createElement(`div`,{style:{display:`none`},"aria-hidden":!0},v.createElement(Gx.Provider,{value:Fe},oe)))))});QS.Item=OS,QS.SubMenu=HS,QS.ItemGroup=KS,QS.Divider=US;var $S={icon:{tag:`svg`,attrs:{viewBox:`0 0 1024 1024`,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:`bars`,theme:`outlined`};function eC(){return eC=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},eC.apply(this,arguments)}var tC=v.forwardRef((e,t)=>v.createElement(Co,eC({},e,{ref:t,icon:$S}))),nC=v.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),rC=e=>{let{antCls:t,componentCls:n,colorText:r,footerBg:i,headerHeight:a,headerPadding:o,headerColor:s,footerPadding:c,fontSize:l,bodyBg:u,headerBg:d}=e;return{[n]:{display:`flex`,flex:`auto`,flexDirection:`column`,minHeight:0,background:u,"&, *":{boxSizing:`border-box`},[`&${n}-has-sider`]:{flexDirection:`row`,[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:`0 0 auto`},"&-rtl":{direction:`rtl`}},[`${n}-header`]:{height:a,padding:o,color:s,lineHeight:Y(a),background:d,[`${t}-menu`]:{lineHeight:`inherit`}},[`${n}-footer`]:{padding:c,color:r,fontSize:l,background:i},[`${n}-content`]:{flex:`auto`,color:r,minHeight:0}}},iC=e=>{let{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:i,controlHeightSM:a,marginXXS:o,colorTextLightSolid:s,colorBgContainer:c}=e,l=r*1.25;return{colorBgHeader:`#001529`,colorBgBody:t,colorBgTrigger:`#002140`,bodyBg:t,headerBg:`#001529`,headerHeight:n*2,headerPadding:`0 ${l}px`,headerColor:i,footerPadding:`${a}px ${l}px`,footerBg:t,siderBg:`#001529`,triggerHeight:r+o*2,triggerBg:`#002140`,triggerColor:s,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:c,lightTriggerBg:c,lightTriggerColor:i}},aC=[[`colorBgBody`,`bodyBg`],[`colorBgHeader`,`headerBg`],[`colorBgTrigger`,`triggerBg`]],oC=Ya(`Layout`,rC,iC,{deprecatedTokens:aC}),sC=Ya([`Layout`,`Sider`],e=>{let{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:i,antCls:a,triggerHeight:o,triggerColor:s,triggerBg:c,headerHeight:l,zeroTriggerWidth:u,zeroTriggerHeight:d,borderRadiusLG:f,lightSiderBg:p,lightTriggerColor:m,lightTriggerBg:h,bodyBg:g}=e;return{[t]:{position:`relative`,minWidth:0,background:n,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:o},"&-right":{order:1},[`${t}-children`]:{height:`100%`,marginTop:-.1,paddingTop:.1,[`${a}-menu${a}-menu-inline-collapsed`]:{width:`auto`}},[`&-zero-width ${t}-children`]:{overflow:`hidden`},[`${t}-trigger`]:{position:`fixed`,bottom:0,zIndex:1,height:o,color:s,lineHeight:Y(o),textAlign:`center`,background:c,cursor:`pointer`,transition:`all ${r}`},[`${t}-zero-width-trigger`]:{position:`absolute`,top:l,insetInlineEnd:e.calc(u).mul(-1).equal(),zIndex:1,width:u,height:d,color:s,fontSize:e.fontSizeXL,display:`flex`,alignItems:`center`,justifyContent:`center`,background:n,borderRadius:`0 ${Y(f)} ${Y(f)} 0`,cursor:`pointer`,transition:`background-color ${i} ease`,"&::after":{position:`absolute`,inset:0,background:`transparent`,transition:`all ${i}`,content:`""`},"&:hover::after":{background:`rgba(255, 255, 255, 0.2)`},"&-right":{insetInlineStart:e.calc(u).mul(-1).equal(),borderRadius:`${Y(f)} 0 0 ${Y(f)}`}},"&-light":{background:p,[`${t}-trigger`]:{color:m,background:h},[`${t}-zero-width-trigger`]:{color:m,background:h,border:`1px solid ${g}`,borderInlineStart:0}}}}},iC,{deprecatedTokens:aC}),cC={xs:`479.98px`,sm:`575.98px`,md:`767.98px`,lg:`991.98px`,xl:`1199.98px`,xxl:`1599.98px`,xxxl:`1839.98px`},lC=e=>!Number.isNaN(Number.parseFloat(e))&&Number.isFinite(Number(e)),uC=v.createContext({}),dC=(()=>{let e=0;return(t=``)=>(e+=1,`${t}${e}`)})(),fC=v.forwardRef((e,t)=>{let{prefixCls:n,className:r,trigger:i,children:a,defaultCollapsed:o=!1,theme:s=`dark`,style:c={},collapsible:l=!1,reverseArrow:u=!1,width:d=200,collapsedWidth:f=80,zeroWidthTriggerStyle:p,breakpoint:m,onCollapse:h,onBreakpoint:g,..._}=e,{siderHook:y}=(0,v.useContext)(nC),[b,x]=(0,v.useState)(`collapsed`in e?e.collapsed:o),[S,C]=(0,v.useState)(!1);(0,v.useEffect)(()=>{`collapsed`in e&&x(e.collapsed)},[e.collapsed]);let w=(t,n)=>{`collapsed`in e||x(t),h?.(t,n)},{getPrefixCls:T,direction:E}=(0,v.useContext)(Ye),D=T(`layout-sider`,n),[O,k]=sC(D),A=(0,v.useRef)(null);A.current=e=>{C(e.matches),g?.(e.matches),b!==e.matches&&w(e.matches,`responsive`)},(0,v.useEffect)(()=>{function e(e){return A.current?.(e)}let t;return window?.matchMedia!==void 0&&m&&m in cC&&(t=window.matchMedia(`screen and (max-width: ${cC[m]})`),typeof t?.addEventListener==`function`&&t.addEventListener(`change`,e),e(t)),()=>{typeof t?.removeEventListener==`function`&&t.removeEventListener(`change`,e)}},[m]),(0,v.useEffect)(()=>{let e=dC(`ant-sider-`);return y.addSider(e),()=>y.removeSider(e)},[]);let j=()=>{w(!b,`clickTrigger`)},M=de(_,[`collapsed`]),N=b?f:d,P=lC(N)?`${N}px`:String(N),F=Number.parseFloat(String(f||0))===0?v.createElement(`span`,{onClick:j,className:J(`${D}-zero-width-trigger`,`${D}-zero-width-trigger-${u?`right`:`left`}`),style:p},i||v.createElement(tC,null)):null,I=E===`rtl`==!u,L={expanded:I?v.createElement(qf,null):v.createElement(Ox,null),collapsed:I?v.createElement(Ox,null):v.createElement(qf,null)}[b?`collapsed`:`expanded`],R=i===null?null:F||v.createElement(`div`,{className:`${D}-trigger`,onClick:j,style:{width:P}},i||L),z={...c,flex:`0 0 ${P}`,maxWidth:P,minWidth:P,width:P},B=J(D,`${D}-${s}`,{[`${D}-collapsed`]:!!b,[`${D}-has-trigger`]:l&&i!==null&&!F,[`${D}-below`]:!!S,[`${D}-zero-width`]:Number.parseFloat(P)===0},r,O,k),V=v.useMemo(()=>({siderCollapsed:b}),[b]);return v.createElement(uC.Provider,{value:V},v.createElement(`aside`,{className:B,...M,style:z,ref:t},v.createElement(`div`,{className:`${D}-children`},a),l||S&&F?R:null))}),pC={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z`}}]},name:`ellipsis`,theme:`outlined`};function mC(){return mC=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},mC.apply(this,arguments)}var hC=v.forwardRef((e,t)=>v.createElement(Co,mC({},e,{ref:t,icon:pC}))),gC=(0,v.createContext)({prefixCls:``,firstLevel:!0,inlineCollapsed:!1,styles:null,classNames:null}),_C=e=>{let{prefixCls:t,className:n,dashed:r,...i}=e,{getPrefixCls:a}=v.useContext(Ye),o=J({[`${a(`menu`,t)}-item-divider-dashed`]:!!r},n);return v.createElement(US,{className:o,...i})},vC=e=>{let{className:t,children:n,icon:r,title:i,danger:a,extra:o}=e,{prefixCls:s,firstLevel:c,direction:l,disableMenuItemTitleTooltip:u,tooltip:d,inlineCollapsed:f,styles:p,classNames:m}=v.useContext(gC),h=e=>{let t=n?.[0],i=v.createElement(`span`,{className:J(`${s}-title-content`,c?m?.itemContent:m?.subMenu?.itemContent,{[`${s}-title-content-with-extra`]:!!o||o===0}),style:c?p?.itemContent:p?.subMenu?.itemContent},n);return(!r||v.isValidElement(n)&&n.type===`span`)&&n&&e&&c&&typeof t==`string`?v.createElement(`div`,{className:`${s}-inline-collapsed-noicon`},t.charAt(0)):i},{siderCollapsed:g}=v.useContext(uC),_=i;i===void 0?_=c?n:``:i===!1&&(_=``);let y=d===!1?void 0:d,b=y&&y.title!==void 0?y.title:_,x={...y??null,title:b};!g&&!f&&(x.title=null,x.open=!1);let S=fe(n).length,C=v.createElement(OS,{...de(e,[`title`,`icon`,`danger`]),className:J(c?m?.item:m?.subMenu?.item,{[`${s}-item-danger`]:a,[`${s}-item-only-child`]:(r?S+1:S)===1},t),style:{...c?p?.item:p?.subMenu?.item,...e.style},title:typeof i==`string`?i:void 0},su(r,e=>({className:J(`${s}-item-icon`,c?m?.itemIcon:m?.subMenu?.itemIcon,e.className),style:{...c?p?.itemIcon:p?.subMenu?.itemIcon,...e.style}})),h(f));if(!u&&d!==!1){let e=y&&y.placement?y.placement:l===`rtl`?`left`:`right`,t=`${s}-inline-collapsed-tooltip`,n=e=>({...e,root:J(t,e?.root)}),r=y&&typeof y.classNames==`function`?e=>n(y.classNames(e)):n(y?.classNames);C=v.createElement(_x,{...x,placement:e,classNames:r},C)}return C},yC=v.createContext(null),bC=v.forwardRef((e,t)=>{let{children:n,...r}=e,i=v.useContext(yC),a=v.useMemo(()=>({...i,...r}),[i,r.prefixCls,r.mode,r.selectable,r.rootClassName]),o=B(n),s=L(t,o?V(n):null);return v.createElement(yC.Provider,{value:a},v.createElement(Hh,{space:!0},o?v.cloneElement(n,{ref:s}):n))}),xC=e=>{let{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:i,lineWidth:a,lineType:o,itemPaddingInline:s}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${Y(a)} ${o} ${i}`,boxShadow:`none`,"&::after":{display:`block`,clear:`both`,height:0,content:`"\\20"`},[`${t}-item, ${t}-submenu`]:{position:`relative`,display:`inline-block`,verticalAlign:`bottom`,paddingInline:s},[`> ${t}-item:hover,
|
|
176
|
+
${t}-content-item-suffix:first-child`]:{marginInlineStart:p(`multi-item-padding-horizontal`)},[`${t}-selection-item`]:{lineHeight:`calc(${p(`multi-item-height`)} - ${s} * 2)`,border:`${s} solid ${p(`multi-item-border-color`)}`,display:`flex`,marginBlock:o,marginInlineEnd:n(o).mul(2).equal(),background:p(`multi-item-background`),borderRadius:p(`multi-item-border-radius`),paddingInlineStart:i,paddingInlineEnd:a,transition:[`height`,`line-height`,`padding`].map(t=>`${t} ${e.motionDurationSlow}`).join(`,`),"&-content":{...za,marginInlineEnd:a},"&-remove":{...Va(),display:`inline-flex`,alignItems:`center`,color:c,fontWeight:`bold`,fontSize:10,lineHeight:`inherit`,cursor:`pointer`,[`> ${r}`]:{verticalAlign:`-0.2em`},"&:hover":{color:l}}},[`${t}-input`]:{lineHeight:n(o).mul(2).add(p(`multi-item-height`)).equal(),width:`calc(var(--select-input-width, 0) * 1px)`,minWidth:db,maxWidth:`100%`,transition:`line-height ${e.motionDurationSlow}`}},[`&${t}-sm`]:{[f(`multi-item-height`)]:e.multipleItemHeightSM,[f(`multi-item-border-radius`)]:e.borderRadiusXS},[`&${t}-lg`]:{[f(`multi-item-height`)]:e.multipleItemHeightLG,[f(`multi-item-border-radius`)]:e.borderRadius},[`&${t}-filled`]:{[f(`multi-item-border-color`)]:e.colorSplit,[f(`multi-item-background`)]:e.colorBgContainer,[`&${t}-disabled`]:{[f(`multi-item-border-color`)]:`transparent`}}}}},pb=(e,t)=>{let{componentCls:n,antCls:r}=e,[i]=Qa(r,`select`),{border:a,borderHover:o,borderActive:s,borderOutline:c}=t,l=t.background||e.selectorBg||e.colorBgContainer;return{[i(`border-color`)]:a,[i(`background-color`)]:l,[i(`color`)]:t.color||e.colorText,[`&:not(${n}-disabled)`]:{"&:hover":{[i(`border-color`)]:o,[i(`background-color`)]:t.backgroundHover||l},[`&${n}-focused`]:{[i(`border-color`)]:s,[i(`background-color`)]:t.backgroundActive||l,boxShadow:`0 0 0 ${Y(e.controlOutlineWidth)} ${c}`}},[`&${n}-disabled`]:{[i(`border-color`)]:t.borderDisabled||t.border,[i(`background-color`)]:t.backgroundDisabled||t.background}}},mb=(e,t,n,r={},i={},a)=>{let{componentCls:o}=e;return{[`&${o}-${t}`]:[pb(e,n),{[`&${o}-status-error`]:pb(e,{...n,color:r.color||e.colorError,...r}),[`&${o}-status-warning`]:pb(e,{...n,color:i.color||e.colorWarning,...i})},a]}},hb=e=>{let{componentCls:t,fontHeight:n,controlHeight:r,iconCls:i,antCls:a,calc:o}=e,[s,c]=Qa(a,`select`);return{[t]:[{[s(`border-radius`)]:e.borderRadius,[s(`border-color`)]:`#000`,[s(`border-size`)]:e.lineWidth,[s(`background-color`)]:e.colorBgContainer,[s(`font-size`)]:e.fontSize,[s(`line-height`)]:e.lineHeight,[s(`font-height`)]:n,[s(`color`)]:e.colorText,[s(`height`)]:r,[s(`padding-horizontal`)]:o(e.paddingSM).sub(e.lineWidth).equal(),[s(`padding-vertical`)]:`calc((${c(`height`)} - ${c(`font-height`)}) / 2 - ${c(`border-size`)})`,...Ba(e,!0),display:`inline-flex`,flexWrap:`nowrap`,position:`relative`,transition:`all ${e.motionDurationSlow}`,alignItems:`flex-start`,outline:0,cursor:`pointer`,borderRadius:c(`border-radius`),borderWidth:c(`border-size`),borderStyle:e.lineType,borderColor:c(`border-color`),background:c(`background-color`),fontSize:c(`font-size`),lineHeight:c(`line-height`),color:c(`color`),paddingInline:c(`padding-horizontal`),paddingBlock:c(`padding-vertical`),[`${t}-prefix`]:{flex:`none`,lineHeight:1},[`${t}-placeholder`]:{...za,color:e.colorTextPlaceholder,pointerEvents:`none`,zIndex:1},[`${t}-content`]:{flex:`auto`,minWidth:0,position:`relative`,display:`flex`,marginInlineEnd:o(e.paddingXXS).mul(1.5).equal(),"&:before":{content:`"\\a0"`,width:0,overflow:`hidden`},"&-value":{visibility:`inherit`},"input[readonly]":{cursor:`inherit`,caretColor:`transparent`}},[`${t}-suffix`]:{flex:`none`,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,"> :not(:last-child)":{marginInlineEnd:e.marginXS}},[`${t}-prefix, ${t}-suffix`]:{alignSelf:`center`,[i]:{verticalAlign:`top`}},"&-disabled":{background:e.colorBgContainerDisabled,color:e.colorTextDisabled,cursor:`not-allowed`,input:{cursor:`not-allowed`}},"&-sm":{[s(`height`)]:e.controlHeightSM,[s(`padding-horizontal`)]:o(e.paddingXS).sub(e.lineWidth).equal(),[s(`border-radius`)]:e.borderRadiusSM,[`${t}-clear`]:{insetInlineEnd:c(`padding-horizontal`)}},"&-lg":{[s(`height`)]:e.controlHeightLG,[s(`font-size`)]:e.fontSizeLG,[s(`line-height`)]:e.lineHeightLG,[s(`font-height`)]:e.fontHeightLG,[s(`border-radius`)]:e.borderRadiusLG}},{[`&:not(${t}-customize)`]:{[`${t}-input`]:{outline:`none`,background:`transparent`,appearance:`none`,border:0,margin:0,padding:0,color:c(`color`),"&::-webkit-search-cancel-button":{display:`none`,appearance:`none`}}}},{[`&-single:not(${t}-customize)`]:{[`${t}-input`]:{position:`absolute`,inset:0,lineHeight:`calc(${c(`font-height`)} + ${c(`padding-vertical`)} * 2)`},[`${t}-content`]:{...za,alignSelf:`center`,"&-has-value":{display:`block`,"&:before":{display:`none`}},"&-has-search-value":{color:`transparent`},"&-value":{transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,zIndex:1}},[`&${t}-open ${t}-content`]:{color:e.colorTextPlaceholder,"&-has-search-value":{color:`transparent`}}}},{[`&-show-search:not(${t}-customize-input):not(${t}-disabled)`]:{cursor:`text`}},fb(e),mb(e,`outlined`,{border:e.colorBorder,borderHover:e.hoverBorderColor,borderActive:e.activeBorderColor,borderOutline:e.activeOutlineColor,borderDisabled:e.colorBorderDisabled},{border:e.colorError,borderHover:e.colorErrorHover,borderActive:e.colorError,borderOutline:e.colorErrorOutline},{border:e.colorWarning,borderHover:e.colorWarningHover,borderActive:e.colorWarning,borderOutline:e.colorWarningOutline}),mb(e,`filled`,{border:`transparent`,borderHover:`transparent`,borderActive:e.activeBorderColor,borderOutline:`transparent`,borderDisabled:e.colorBorderDisabled,background:e.colorFillTertiary,backgroundHover:e.colorFillSecondary,backgroundActive:e.colorBgContainer},{background:e.colorErrorBg,backgroundHover:e.colorErrorBgHover,borderActive:e.colorError},{background:e.colorWarningBg,backgroundHover:e.colorWarningBgHover,borderActive:e.colorWarning}),mb(e,`borderless`,{border:`transparent`,borderHover:`transparent`,borderActive:`transparent`,borderOutline:`transparent`,background:`transparent`}),mb(e,`underlined`,{border:e.colorBorder,borderHover:e.hoverBorderColor,borderActive:e.activeBorderColor,borderOutline:`transparent`},{border:e.colorError,borderHover:e.colorErrorHover,borderActive:e.colorError},{border:e.colorWarning,borderHover:e.colorWarningHover,borderActive:e.colorWarning},{borderRadius:0,borderTopColor:`transparent`,borderInlineColor:`transparent`}),ub(e)]}},gb=e=>{let{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:i,controlHeightSM:a,controlHeightLG:o,paddingXXS:s,controlPaddingHorizontal:c,zIndexPopupBase:l,colorText:u,fontWeightStrong:d,controlItemBgActive:f,controlItemBgHover:p,colorBgContainer:m,colorFillSecondary:h,colorBgContainerDisabled:g,colorTextDisabled:_,colorPrimaryHover:v,colorPrimary:y,controlOutline:b}=e,x=s*2,S=r*2,C=Math.min(i-x,i-S),w=Math.min(a-x,a-S),T=Math.min(o-x,o-S);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:l+50,optionSelectedColor:u,optionSelectedFontWeight:d,optionSelectedBg:f,optionActiveBg:p,optionPadding:`${(i-t*n)/2}px ${c}px`,optionFontSize:t,optionLineHeight:n,optionHeight:i,selectorBg:m,clearBg:m,singleItemHeightLG:o,multipleItemBg:h,multipleItemBorderColor:`transparent`,multipleItemHeight:C,multipleItemHeightSM:w,multipleItemHeightLG:T,multipleSelectorBgDisabled:g,multipleItemColorDisabled:_,multipleItemBorderColorDisabled:`transparent`,showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:v,activeBorderColor:y,activeOutlineColor:b,selectAffixPadding:s}},_b=e=>{let{antCls:t,componentCls:n,motionDurationMid:r,inputPaddingHorizontalBase:i}=e,a={[`${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:`50%`}};return{[n]:{...Ba(e),[`${n}-selection-item`]:{flex:1,fontWeight:`normal`,position:`relative`,userSelect:`none`,...za,[`> ${t}-typography`]:{display:`inline`}},[`${n}-prefix`]:{flex:`none`,marginInlineEnd:e.selectAffixPadding},[`${n}-clear`]:{position:`absolute`,top:`50%`,insetInlineStart:`auto`,insetInlineEnd:i,zIndex:1,display:`inline-block`,width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:`normal`,lineHeight:1,textAlign:`center`,textTransform:`none`,cursor:`pointer`,opacity:0,transition:[`color`,`opacity`].map(e=>`${e} ${r} ease`).join(`, `),textRendering:`auto`,transform:`translateZ(0)`,"&:before":{display:`block`},"&:hover":{color:e.colorIcon}},"@media(hover:none)":a,"&:hover":a},[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(i).add(e.fontSize).add(e.paddingXS).equal()}}}}}},vb=e=>{let{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:`100%`}}},_b(e),lb(e),{[`${t}-rtl`]:{direction:`rtl`}},up(e,{focusElCls:`${t}-focused`})]},yb=Ya(`Select`,(e,{rootPrefixCls:t})=>{let n=ci(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(e.lineWidth).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[vb(n),hb(n)]},gb,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}}),bb={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z`}}]},name:`check`,theme:`outlined`};function xb(){return xb=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},xb.apply(this,arguments)}var Sb=v.forwardRef((e,t)=>v.createElement(Co,xb({},e,{ref:t,icon:bb}))),Cb={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z`}}]},name:`down`,theme:`outlined`};function wb(){return wb=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},wb.apply(this,arguments)}var Tb=v.forwardRef((e,t)=>v.createElement(Co,wb({},e,{ref:t,icon:Cb}))),Eb={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z`}}]},name:`search`,theme:`outlined`};function Db(){return Db=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},Db.apply(this,arguments)}var Ob=v.forwardRef((e,t)=>v.createElement(Co,Db({},e,{ref:t,icon:Eb})));function kb({suffixIcon:e,clearIcon:t,menuItemSelectedIcon:n,removeIcon:r,loading:i,loadingIcon:a,multiple:o,hasFeedback:s,showSuffixIcon:c,feedbackIcon:l,showArrow:u,componentName:d}){let f=t??v.createElement(Oo,null),p=t=>e===null&&!s&&!u?null:v.createElement(v.Fragment,null,c!==!1&&t,s&&l),m=null;m=e===void 0?i?p(a??v.createElement(Xu,{spin:!0})):({open:e,showSearch:t})=>p(e&&t?v.createElement(Ob,null):v.createElement(Tb,null)):p(e);let h=null;h=n===void 0?o?v.createElement(Sb,null):null:n;let g=null;return g=r===void 0?v.createElement(jo,null):r,{clearIcon:f,suffixIcon:m,itemIcon:h,removeIcon:g}}function Ab(e){return v.useMemo(()=>{if(e)return(...t)=>v.createElement(Hh,{space:!0},e.apply(void 0,t))},[e])}function jb(e,t){return t===void 0?e!==null:t}var Mb=`SECRET_COMBOBOX_MODE_DO_NOT_USE`,Nb=v.forwardRef((e,t)=>{let{prefixCls:n,bordered:r,className:i,rootClassName:a,getPopupContainer:o,popupClassName:s,dropdownClassName:c,listHeight:l=256,placement:u,listItemHeight:d,size:f,disabled:p,notFoundContent:m,status:h,builtinPlacements:g,dropdownMatchSelectWidth:_,popupMatchSelectWidth:y,direction:b,style:x,allowClear:S,variant:C,popupStyle:w,dropdownStyle:T,transitionName:E,tagRender:D,maxCount:O,prefix:k,dropdownRender:A,popupRender:j,onDropdownVisibleChange:M,onOpenChange:N,styles:P,classNames:F,...I}=e,{getPopupContainer:L,getPrefixCls:R,renderEmpty:z,direction:B,virtual:V,popupMatchSelectWidth:H,popupOverflow:U}=v.useContext(Ye),{showSearch:W,style:ee,styles:te,className:ne,classNames:re}=Qe(`select`),[,ie]=Ra(),ae=d??ie?.controlHeight,G=R(`select`,n),K=R(),oe=b??B,{compactSize:se,compactItemClassnames:ce}=Pd(G,oe),[q,le]=ab(`select`,C,r),ue=Xc(G),[fe,pe]=yb(G,ue),me=v.useMemo(()=>{let{mode:t}=e;if(t!==`combobox`)return t===Mb?`combobox`:t},[e.mode]),he=me===`multiple`||me===`tags`,ge=jb(e.suffixIcon,e.showArrow),_e=y??_??H,ve=Ab(j||A),ye=N||M,{status:be,hasFeedback:xe,isFormItemInput:Se,feedbackIcon:Ce}=v.useContext(zh),we=Xy(be,h),Te;Te=m===void 0?me===`combobox`?null:z?.(`Select`)||v.createElement(ib,{componentName:`Select`}):m;let{suffixIcon:Ee,itemIcon:De,removeIcon:Oe,clearIcon:ke}=kb({...I,multiple:he,hasFeedback:xe,feedbackIcon:Ce,showSuffixIcon:ge,prefixCls:G,componentName:`Select`}),Ae=S===!0?{clearIcon:ke}:S,je=de(I,[`suffixIcon`,`itemIcon`]),Me=jd(e=>f??se??e),Ne=v.useContext(fu),Pe=p??Ne,Fe={...e,variant:q,status:we,disabled:Pe,size:Me},[Ie,Le]=Oc([re,F],[te,P],{props:Fe},{popup:{_default:`root`}}),Re=J(Ie.popup?.root,s,c,{[`${G}-dropdown-${oe}`]:oe===`rtl`},a,pe,ue,fe),ze={...Le.popup?.root,...w??T},Be=J({[`${G}-lg`]:Me===`large`,[`${G}-sm`]:Me===`small`,[`${G}-rtl`]:oe===`rtl`,[`${G}-${q}`]:le,[`${G}-in-form-item`]:Se},Yy(G,we,xe),ce,ne,i,Ie.root,a,pe,ue,fe),Ve=v.useMemo(()=>u===void 0?oe===`rtl`?`bottomRight`:`bottomLeft`:u,[u,oe]),[He]=Rc(`SelectLike`,Le.popup?.root?.zIndex??ze?.zIndex);return v.createElement(Jy,{ref:t,virtual:V,classNames:Ie,styles:Le,showSearch:W,...je,style:{...Le.root,...ee,...x},popupMatchSelectWidth:_e,transitionName:xd(K,`slide-up`,E),builtinPlacements:sb(g,U),listHeight:l,listItemHeight:ae,mode:me,prefixCls:G,placement:Ve,direction:oe,prefix:k,suffixIcon:Ee,menuItemSelectedIcon:De,removeIcon:Oe,allowClear:Ae,notFoundContent:Te,className:Be,getPopupContainer:o||L,popupClassName:Re,disabled:Pe,popupStyle:{...Le.popup?.root,...ze,zIndex:He},maxCount:he?O:void 0,tagRender:he?D:void 0,popupRender:ve,onPopupVisibleChange:ye})}),Pb=X_(Nb,`popupAlign`);Nb.SECRET_COMBOBOX_MODE_DO_NOT_USE=Mb,Nb.Option=iy,Nb.OptGroup=ry,Nb._InternalPanelDoNotUseOrYouWillBeFired=Pb;var Fb=[`xxxl`,`xxl`,`xl`,`lg`,`md`,`sm`,`xs`],Ib=[].concat(Fb).reverse(),Lb=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`,xxxl:`(min-width: ${e.screenXXXL}px)`}),Rb=e=>{let t=e,n=[].concat(Fb).reverse();return n.forEach((e,r)=>{let i=e.toUpperCase(),a=`screen${i}Min`,o=`screen${i}`;if(!(t[a]<=t[o]))throw Error(`${a}<=${o} fails : !(${t[a]}<=${t[o]})`);if(r<n.length-1){let e=`screen${i}Max`;if(!(t[o]<=t[e]))throw Error(`${o}<=${e} fails : !(${t[o]}<=${t[e]})`);let a=`screen${n[r+1].toUpperCase()}Min`;if(!(t[e]<=t[a]))throw Error(`${e}<=${a} fails : !(${t[e]}<=${t[a]})`)}}),e},zb=()=>{let[,e]=Ra(),t=Lb(Rb(e));return v.useMemo(()=>{let e=new Map,n=-1,r={};return{responsiveMap:t,matchHandlers:{},dispatch(t){return r=t,e.forEach(e=>{e(r)}),e.size>=1},subscribe(t){return e.size||this.register(),n+=1,e.set(n,t),t(r),n},unsubscribe(t){e.delete(t),e.size||this.unregister()},register(){Object.entries(t).forEach(([e,t])=>{let n=({matches:t})=>{this.dispatch({...r,[e]:t})},i=window.matchMedia(t);typeof i?.addEventListener==`function`&&i.addEventListener(`change`,n),this.matchHandlers[t]={mql:i,listener:n},n(i)})},unregister(){Object.values(t).forEach(e=>{let t=this.matchHandlers[e];typeof t?.mql?.removeEventListener==`function`&&t.mql.removeEventListener(`change`,t?.listener)}),e.clear()}}},[t])};function Bb(e=!0,t={}){let n=(0,v.useRef)(t),[,r]=yc(),i=zb();return S(()=>{let t=i.subscribe(t=>{n.current=t,e&&r()});return()=>i.unsubscribe(t)},[]),n.current}var Vb=e=>e?typeof e==`function`?e():e:null,Hb=e=>{let{children:t,prefixCls:n,id:r,classNames:i,styles:a,className:o,style:s}=e;return v.createElement(`div`,{id:r,className:J(`${n}-container`,i?.container,o),style:{...a?.container,...s},role:`tooltip`},typeof t==`function`?t():t)},Ub={shiftX:64,adjustY:1},Wb={adjustX:1,shiftY:!0},Gb=[0,0],Kb={left:{points:[`cr`,`cl`],overflow:Wb,offset:[-4,0],targetOffset:Gb},right:{points:[`cl`,`cr`],overflow:Wb,offset:[4,0],targetOffset:Gb},top:{points:[`bc`,`tc`],overflow:Ub,offset:[0,-4],targetOffset:Gb},bottom:{points:[`tc`,`bc`],overflow:Ub,offset:[0,4],targetOffset:Gb},topLeft:{points:[`bl`,`tl`],overflow:Ub,offset:[0,-4],targetOffset:Gb},leftTop:{points:[`tr`,`tl`],overflow:Wb,offset:[-4,0],targetOffset:Gb},topRight:{points:[`br`,`tr`],overflow:Ub,offset:[0,-4],targetOffset:Gb},rightTop:{points:[`tl`,`tr`],overflow:Wb,offset:[4,0],targetOffset:Gb},bottomRight:{points:[`tr`,`br`],overflow:Ub,offset:[0,4],targetOffset:Gb},rightBottom:{points:[`bl`,`br`],overflow:Wb,offset:[4,0],targetOffset:Gb},bottomLeft:{points:[`tl`,`bl`],overflow:Ub,offset:[0,4],targetOffset:Gb},leftBottom:{points:[`br`,`bl`],overflow:Wb,offset:[-4,0],targetOffset:Gb}};function qb(){return qb=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},qb.apply(this,arguments)}var Jb=v.forwardRef((e,t)=>{let{trigger:n=[`hover`],mouseEnterDelay:r=0,mouseLeaveDelay:i=.1,prefixCls:a=`rc-tooltip`,children:o,onVisibleChange:s,afterVisibleChange:c,motion:l,placement:u=`right`,align:d={},destroyOnHidden:f=!1,defaultVisible:p,getTooltipContainer:m,arrowContent:h,overlay:g,id:_,showArrow:y=!0,classNames:b,styles:x,...S}=e,C=fl(_),w=(0,v.useRef)(null);(0,v.useImperativeHandle)(t,()=>w.current);let T={...S};`visible`in e&&(T.popupVisible=e.visible);let E=v.useMemo(()=>{if(!y)return!1;let e=y===!0?{}:y;return{...e,className:J(e.className,b?.arrow),style:{...e.style,...x?.arrow},content:e.content??h}},[y,b?.arrow,x?.arrow,h]);return v.createElement(iu,qb({popupClassName:b?.root,prefixCls:a,popup:v.createElement(Hb,{key:`content`,prefixCls:a,id:C,classNames:b,styles:x},g),action:n,builtinPlacements:Kb,popupPlacement:u,ref:w,popupAlign:d,getPopupContainer:m,onOpenChange:s,afterOpenChange:c,popupMotion:l,defaultPopupVisible:p,autoDestroy:f,mouseLeaveDelay:i,popupStyle:x?.root,mouseEnterDelay:r,arrow:E,uniqueContainerClassName:b?.uniqueContainer,uniqueContainerStyle:x?.uniqueContainer},T),({open:e})=>{let t=v.Children.only(o),n={"aria-describedby":g&&e?C:void 0};return v.cloneElement(t,n)})});function Yb(e){let{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,i=t/2,a=i,o=r*1/Math.sqrt(2),s=i-r*(1-1/Math.sqrt(2)),c=i-1/Math.sqrt(2)*n,l=r*(Math.sqrt(2)-1)+1/Math.sqrt(2)*n,u=2*i-c,d=l,f=2*i-o,p=s,m=2*i-0,h=a,g=i*Math.sqrt(2)+r*(Math.sqrt(2)-2),_=r*(Math.sqrt(2)-1),v=`polygon(${_}px 100%, 50% ${_}px, ${2*i-_}px 100%, ${_}px 100%)`;return{arrowShadowWidth:g,arrowPath:`path('M 0 ${a} A ${r} ${r} 0 0 0 ${o} ${s} L ${c} ${l} A ${n} ${n} 0 0 1 ${u} ${d} L ${f} ${p} A ${r} ${r} 0 0 0 ${m} ${h} Z')`,arrowPolygon:v}}var Xb=(e,t,n)=>{let{sizePopupArrow:r,arrowPolygon:i,arrowPath:a,arrowShadowWidth:o,borderRadiusXS:s,calc:c}=e;return{pointerEvents:`none`,width:r,height:r,overflow:`hidden`,"&::before":{position:`absolute`,bottom:0,insetInlineStart:0,width:r,height:c(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[i,a]},content:`""`},"&::after":{content:`""`,position:`absolute`,width:o,height:o,bottom:0,insetInline:0,margin:`auto`,borderRadius:{_skip_check_:!0,value:`0 0 ${Y(s)} 0`},transform:`translateY(50%) rotate(-135deg)`,boxShadow:n,zIndex:0,background:`transparent`}}};function Zb(e){let{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?8:r}}function Qb(e,t){return e?t:{}}var $b=(e,t,n)=>{let{componentCls:r,boxShadowPopoverArrow:i,arrowOffsetVertical:a,arrowOffsetHorizontal:o,antCls:s}=e,[c]=Qa(s,`tooltip`),{arrowDistance:l=0,arrowPlacement:u={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:{[`${r}-arrow`]:[{position:`absolute`,zIndex:1,display:`block`,...Xb(e,t,i),"&:before":{background:t}}],...Qb(!!u.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(`,`)]:{bottom:l,transform:`translateY(100%) rotate(180deg)`},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:`50%`},transform:`translateX(-50%) translateY(100%) rotate(180deg)`},"&-placement-topLeft":{[c(`arrow-offset-x`)]:o,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:o}}},"&-placement-topRight":{[c(`arrow-offset-x`)]:`calc(100% - ${Y(o)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:o}}}}),...Qb(!!u.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(`,`)]:{top:l,transform:`translateY(-100%)`},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:`50%`},transform:`translateX(-50%) translateY(-100%)`},"&-placement-bottomLeft":{[c(`arrow-offset-x`)]:o,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:o}}},"&-placement-bottomRight":{[c(`arrow-offset-x`)]:`calc(100% - ${Y(o)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:o}}}}),...Qb(!!u.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(`,`)]:{right:{_skip_check_:!0,value:l},transform:`translateX(100%) rotate(90deg)`},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:`50%`},transform:`translateY(-50%) translateX(100%) rotate(90deg)`},[`&-placement-leftTop > ${r}-arrow`]:{top:a},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:a}}),...Qb(!!u.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(`,`)]:{left:{_skip_check_:!0,value:l},transform:`translateX(-100%) rotate(-90deg)`},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:`50%`},transform:`translateY(-50%) translateX(-100%) rotate(-90deg)`},[`&-placement-rightTop > ${r}-arrow`]:{top:a},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:a}})}}};function ex(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};let i=cc(r)?r:{},a={};switch(e){case`top`:case`bottom`:a.shiftX=t.arrowOffsetHorizontal*2+n,a.shiftY=!0,a.adjustY=!0;break;case`left`:case`right`:a.shiftY=t.arrowOffsetVertical*2+n,a.shiftX=!0,a.adjustX=!0;break}let o={...a,...i};return o.shiftX||(o.adjustX=!0),o.shiftY||(o.adjustY=!0),o}var tx={left:{points:[`cr`,`cl`]},right:{points:[`cl`,`cr`]},top:{points:[`bc`,`tc`]},bottom:{points:[`tc`,`bc`]},topLeft:{points:[`bl`,`tl`]},leftTop:{points:[`tr`,`tl`]},topRight:{points:[`br`,`tr`]},rightTop:{points:[`tl`,`tr`]},bottomRight:{points:[`tr`,`br`]},rightBottom:{points:[`bl`,`br`]},bottomLeft:{points:[`tl`,`bl`]},leftBottom:{points:[`br`,`bl`]}},nx={topLeft:{points:[`bl`,`tc`]},leftTop:{points:[`tr`,`cl`]},topRight:{points:[`br`,`tc`]},rightTop:{points:[`tl`,`cr`]},bottomRight:{points:[`tr`,`bc`]},rightBottom:{points:[`bl`,`cr`]},bottomLeft:{points:[`tl`,`bc`]},leftBottom:{points:[`br`,`cl`]}},rx=new Set([`topLeft`,`topRight`,`bottomLeft`,`bottomRight`,`leftTop`,`leftBottom`,`rightTop`,`rightBottom`]);function ix(e){let{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:i,borderRadius:a,visibleFirst:o}=e,s=t/2,c={},l=Zb({contentRadius:a,limitVerticalRadius:!0});return Object.keys(tx).forEach(e=>{let a={...r&&nx[e]||tx[e],offset:[0,0],dynamicInset:!0};switch(c[e]=a,rx.has(e)&&(a.autoArrow=!1),e){case`top`:case`topLeft`:case`topRight`:a.offset[1]=-s-i;break;case`bottom`:case`bottomLeft`:case`bottomRight`:a.offset[1]=s+i;break;case`left`:case`leftTop`:case`leftBottom`:a.offset[0]=-s-i;break;case`right`:case`rightTop`:case`rightBottom`:a.offset[0]=s+i;break}if(r)switch(e){case`topLeft`:case`bottomLeft`:a.offset[0]=-l.arrowOffsetHorizontal-s;break;case`topRight`:case`bottomRight`:a.offset[0]=l.arrowOffsetHorizontal+s;break;case`leftTop`:case`rightTop`:a.offset[1]=-l.arrowOffsetHorizontal*2+s;break;case`leftBottom`:case`rightBottom`:a.offset[1]=l.arrowOffsetHorizontal*2-s;break}a.overflow=ex(e,l,t,n),o&&(a.htmlRegion=`visibleFirst`)}),c}var ax=v.createContext(!1),ox=(e,t)=>{let n=e=>typeof e==`boolean`?{show:e}:e||{};return v.useMemo(()=>{let r=n(e),i=n(t);return{...i,...r,show:r.show??i.show??!0}},[e,t])},sx=`50%`,cx=e=>{let{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:i,tooltipBg:a,tooltipBorderRadius:o,zIndexPopup:s,controlHeight:c,boxShadowSecondary:l,paddingSM:u,paddingXS:d,arrowOffsetHorizontal:f,sizePopupArrow:p,antCls:m}=e,[h,g]=Qa(m,`tooltip`),_=t(o).add(p).add(f).equal(),v={minWidth:t(o).mul(2).add(p).equal(),minHeight:c,padding:`${Y(e.calc(u).div(2).equal())} ${Y(d)}`,color:g(`overlay-color`,i),textAlign:`start`,textDecoration:`none`,wordWrap:`break-word`,backgroundColor:a,borderRadius:o,boxShadow:l,boxSizing:`border-box`},y={[h(`valid-offset-x`)]:g(`arrow-offset-x`,`var(--arrow-x)`),transformOrigin:[g(`valid-offset-x`,sx),`var(--arrow-y, ${sx})`].join(` `)};return[{[n]:{...Ba(e),position:`absolute`,zIndex:s,display:`block`,width:`max-content`,maxWidth:r,visibility:`visible`,...y,"&-hidden":{display:`none`},[h(`arrow-background-color`)]:a,[`${n}-container`]:[v,nf(e,!0)],[`&:has(~ ${n}-unique-container)`]:{[`${n}-container`]:{border:`none`,background:`transparent`,boxShadow:`none`}},[[`&-placement-topLeft`,`&-placement-topRight`,`&-placement-bottomLeft`,`&-placement-bottomRight`].join(`,`)]:{minWidth:_},[[`&-placement-left`,`&-placement-leftTop`,`&-placement-leftBottom`,`&-placement-right`,`&-placement-rightTop`,`&-placement-rightBottom`].join(`,`)]:{[`${n}-inner`]:{borderRadius:e.min(o,8)}},[`${n}-content`]:{position:`relative`},...$a(e,(e,{darkColor:t})=>({[`&${n}-${e}`]:{[`${n}-container`]:{backgroundColor:t},[`${n}-arrow`]:{[h(`arrow-background-color`)]:t}}})),"&-rtl":{direction:`rtl`}}},$b(e,g(`arrow-background-color`)),{[`${n}-pure`]:{position:`relative`,maxWidth:`none`,margin:e.sizePopupArrow}},{[`${n}-unique-container`]:{...v,...y,position:`absolute`,zIndex:t(s).sub(1).equal(),"&-hidden":{display:`none`},"&-visible":{transition:`all ${e.motionDurationSlow}`}}}]},lx=e=>({zIndexPopup:e.zIndexPopupBase+70,maxWidth:250,...Zb({contentRadius:e.borderRadius,limitVerticalRadius:!0}),...Yb(ci(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))}),ux=(e,t,n=!0)=>Ya(`Tooltip`,e=>{let{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:r,maxWidth:i}=e;return[cx(ci(e,{tooltipMaxWidth:i,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:r})),If(e,`zoom-big-fast`)]},lx,{resetStyle:!1,injectStyle:n})(e,t),dx=yi.map(e=>`${e}-inverse`),fx=[`success`,`processing`,`error`,`default`,`warning`];function px(e,t=!0){return t?[].concat(Be(dx),Be(yi)).includes(e):yi.includes(e)}function mx(e){return fx.includes(e)}var hx=(e,t,n)=>{let r=px(n),[i]=Qa(e,`tooltip`),a=J({[`${t}-${n}`]:n&&r}),o={},s={},c=Yf(n).toRgb(),l=(.299*c.r+.587*c.g+.114*c.b)/255<.5?`#FFF`:`#000`;return n&&!r&&(o.background=n,o[i(`overlay-color`)]=l,s[i(`arrow-background-color`)]=n),{className:a,overlayStyle:o,arrowStyle:s}},gx=e=>{let{prefixCls:t,className:n,placement:r=`top`,title:i,color:a,overlayInnerStyle:o,classNames:s,styles:c}=e,{getPrefixCls:l}=v.useContext(Ye),u=l(`tooltip`,t),d=l(),f=Xc(u),[p,m]=ux(u,f),h=hx(d,u,a),g=h.arrowStyle,_=v.useMemo(()=>({container:{...o,...h.overlayStyle}}),[o,h.overlayStyle]),y={...e,placement:r},[b,x]=Oc([s],[_,c],{props:y}),S=J(f,p,m,u,`${u}-pure`,`${u}-placement-${r}`,n,h.className);return v.createElement(`div`,{className:S,style:g},v.createElement(`div`,{className:`${u}-arrow`}),v.createElement(Hb,{...e,className:p,prefixCls:u,classNames:b,styles:x},i))},_x=v.forwardRef((e,t)=>{let{prefixCls:n,openClassName:r,getTooltipContainer:i,color:a,children:o,afterOpenChange:s,arrow:c,destroyTooltipOnHide:l,destroyOnHidden:u,title:d,overlay:f,trigger:p,builtinPlacements:m,autoAdjustOverflow:h=!0,motion:g,getPopupContainer:_,placement:y=`top`,mouseEnterDelay:b=.1,mouseLeaveDelay:x=.1,rootClassName:S,styles:C,classNames:w,onOpenChange:E,overlayInnerStyle:D,overlayStyle:O,overlayClassName:k,...A}=e,[,j]=Ra(),M=e[`data-popover-inject`],{getPopupContainer:N,getPrefixCls:P,direction:F,...I}=Qe(`tooltip`),{className:L,style:R,classNames:z,styles:B,arrow:V,trigger:H}=M?{}:I,U=ox(c,V),W=U.show,ee=p||H||`hover`,te=_||N,ne=u??!!l,re=v.useContext(ax);ge(`Tooltip`);let ie=v.useRef(null),ae=()=>{ie.current?.forceAlign()};v.useImperativeHandle(t,()=>({forceAlign:ae,nativeElement:ie.current?.nativeElement,popupElement:ie.current?.popupElement}));let[G,K]=T(e.defaultOpen??!1,e.open),oe=!d&&!f&&d!==0,se=e=>{K(oe?!1:e),!oe&&E&&E(e)},ce=v.useMemo(()=>m||ix({arrowPointAtCenter:U?.pointAtCenter??!1,autoAdjustOverflow:h,arrowWidth:W?j.sizePopupArrow:0,borderRadius:j.borderRadius,offset:j.marginXXS,visibleFirst:!0}),[U,m,j,W,h]),q=v.useMemo(()=>d===0?d:f||d||``,[f,d]),le=v.createElement(Hh,{space:!0,form:!0},typeof q==`function`?q():q),ue={...e,trigger:ee,builtinPlacements:ce,getPopupContainer:te,destroyOnHidden:ne},[de,fe]=Oc([z,w],[B,C],{props:ue}),pe=P(`tooltip`,n),me=P(),he=G;(!(`open`in e)&&oe||re)&&(he=!1);let _e=v.isValidElement(o)&&!au(o)?o:v.createElement(`span`,null,o),ve=_e.props,ye=!ve.className||typeof ve.className==`string`?J(ve.className,r||`${pe}-open`):ve.className,be=Xc(pe),[xe,Se]=ux(pe,be,!M),Ce=hx(me,pe,a),we=Ce.arrowStyle,Te=J(be,xe,Se),Ee=J(k,{[`${pe}-rtl`]:F===`rtl`},Ce.className,S,Te,L,de.root),[De,Oe]=Rc(`Tooltip`,A.zIndex),ke={...fe.container,...D,...Ce.overlayStyle},Ae=v.createElement(Jb,{unique:!0,...A,zIndex:De,showArrow:W,placement:y,mouseEnterDelay:b,mouseLeaveDelay:x,prefixCls:pe,classNames:{root:Ee,container:de.container,arrow:de.arrow,uniqueContainer:J(Te,de.container)},styles:{root:{...we,...fe.root,...R,...O},container:ke,uniqueContainer:ke,arrow:fe.arrow},ref:ie,overlay:le,visible:he,onVisibleChange:se,afterVisibleChange:s,arrowContent:v.createElement(`span`,{className:`${pe}-arrow-content`}),motion:{motionName:xd(me,`zoom-big-fast`,typeof g?.motionName==`string`?g?.motionName:void 0),motionDeadline:1e3},trigger:ee,builtinPlacements:ce,getTooltipContainer:te,destroyOnHidden:ne},he?su(_e,{className:ye}):_e);return v.createElement(Mc.Provider,{value:Oe},Ae)});_x._InternalPanelDoNotUseOrYouWillBeFired=gx,_x.UniqueProvider=du;var vx=`50%`,yx=e=>{let{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:i,innerPadding:a,boxShadowSecondary:o,colorTextHeading:s,borderRadiusLG:c,zIndexPopup:l,titleMarginBottom:u,colorBgElevated:d,popoverBg:f,titleBorderBottom:p,innerContentPadding:m,titlePadding:h,antCls:g}=e,[_,v]=Qa(g,`tooltip`);return[{[t]:{...Ba(e),position:`absolute`,top:0,left:{_skip_check_:!0,value:0},zIndex:l,fontWeight:`normal`,whiteSpace:`normal`,textAlign:`start`,cursor:`auto`,userSelect:`text`,[_(`valid-offset-x`)]:v(`arrow-offset-x`,`var(--arrow-x)`),transformOrigin:[v(`valid-offset-x`,vx),`var(--arrow-y, ${vx})`].join(` `),[_(`arrow-background-color`)]:d,width:`max-content`,maxWidth:`100vw`,"&-rtl":{direction:`rtl`},"&-hidden":{display:`none`},[`${t}-content`]:{position:`relative`},[`${t}-container`]:{backgroundColor:f,backgroundClip:`padding-box`,borderRadius:c,boxShadow:o,padding:a},[`${t}-title`]:{minWidth:r,marginBottom:u,color:s,fontWeight:i,borderBottom:p,padding:h},[`${t}-content`]:{color:n,padding:m}}},$b(e,v(`arrow-background-color`)),{[`${t}-pure`]:{position:`relative`,maxWidth:`none`,margin:e.sizePopupArrow,display:`inline-block`}}]},bx=e=>{let{componentCls:t,antCls:n}=e,[r]=Qa(n,`tooltip`);return{[t]:yi.map(n=>{let i=e[`${n}6`];return{[`&${t}-${n}`]:{[r(`arrow-background-color`)]:i,[`${t}-inner`]:{backgroundColor:i},[`${t}-arrow`]:{background:`transparent`}}}})}},xx=Ya(`Popover`,e=>{let{colorBgElevated:t,colorText:n}=e,r=ci(e,{popoverBg:t,popoverColor:n});return[yx(r),bx(r),If(r,`zoom-big`)]},e=>{let{lineWidth:t,controlHeight:n,fontHeight:r,padding:i,wireframe:a,zIndexPopupBase:o,borderRadiusLG:s,marginXS:c,lineType:l,colorSplit:u,paddingSM:d}=e,f=n-r,p=f/2,m=f/2-t,h=i;return{titleMinWidth:177,zIndexPopup:o+30,...Yb(e),...Zb({contentRadius:s,limitVerticalRadius:!0}),innerPadding:a?0:12,titleMarginBottom:a?0:c,titlePadding:a?`${p}px ${h}px ${m}px`:0,titleBorderBottom:a?`${t}px ${l} ${u}`:`none`,innerContentPadding:a?`${d}px ${h}px`:0}},{resetStyle:!1,deprecatedTokens:[[`width`,`titleMinWidth`],[`minWidth`,`titleMinWidth`]]}),Sx=e=>{let{title:t,content:n,prefixCls:r,classNames:i,styles:a}=e;return!t&&!n?null:v.createElement(v.Fragment,null,t&&v.createElement(`div`,{className:J(`${r}-title`,i?.title),style:a?.title},t),n&&v.createElement(`div`,{className:J(`${r}-content`,i?.content),style:a?.content},n))},Cx=e=>{let{hashId:t,prefixCls:n,className:r,style:i,placement:a=`top`,title:o,content:s,children:c,classNames:l,styles:u}=e,d=Vb(o),f=Vb(s),p={...e,placement:a},[m,h]=Oc([l],[u],{props:p}),g=J(t,n,`${n}-pure`,`${n}-placement-${a}`,r);return v.createElement(`div`,{className:g,style:i},v.createElement(`div`,{className:`${n}-arrow`}),v.createElement(Hb,{...e,className:t,prefixCls:n,classNames:m,styles:h},c||v.createElement(Sx,{prefixCls:n,title:d,content:f,classNames:m,styles:h})))},wx=e=>{let{prefixCls:t,className:n,...r}=e,{getPrefixCls:i}=v.useContext(Ye),a=i(`popover`,t),[o,s]=xx(a);return v.createElement(Cx,{...r,prefixCls:a,hashId:o,className:J(n,s)})},Tx=v.forwardRef((e,t)=>{let{prefixCls:n,title:r,content:i,overlayClassName:a,placement:o=`top`,trigger:s,children:c,mouseEnterDelay:l=.1,mouseLeaveDelay:u=.1,onOpenChange:d,overlayStyle:f={},styles:p,classNames:m,motion:h,arrow:g,..._}=e,{getPrefixCls:y,className:b,style:x,classNames:S,styles:C,arrow:w,trigger:E}=Qe(`popover`),D=y(`popover`,n),[O,k]=xx(D),A=y(),j=ox(g,w),M=s||E||`hover`,N={...e,placement:o,trigger:M,mouseEnterDelay:l,mouseLeaveDelay:u,overlayStyle:f,styles:p,classNames:m},[P,F]=Oc([S,m],[C,p],{props:N}),I=J(a,O,k,b,P.root),[L,R]=T(e.defaultOpen??!1,e.open),z=e=>{R(e),d?.(e)},B=Vb(r),V=Vb(i);return v.createElement(_x,{unique:!1,arrow:j,placement:o,trigger:M,mouseEnterDelay:l,mouseLeaveDelay:u,..._,prefixCls:D,classNames:{root:I,container:P.container,arrow:P.arrow},styles:{root:{...F.root,...x,...f},container:F.container,arrow:F.arrow},ref:t,open:L,onOpenChange:z,overlay:B||V?v.createElement(Sx,{prefixCls:D,title:B,content:V,classNames:P,styles:F}):null,motion:{motionName:xd(A,`zoom-big`,typeof h?.motionName==`string`?h?.motionName:void 0)},"data-popover-inject":!0},c)});Tx._InternalPanelDoNotUseOrYouWillBeFired=wx;var Ex={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M859.9 168H164.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-8zM518.3 355a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V848c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V509.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 355z`}}]},name:`vertical-align-top`,theme:`outlined`};function Dx(){return Dx=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},Dx.apply(this,arguments)}var Ox=v.forwardRef((e,t)=>v.createElement(Co,Dx({},e,{ref:t,icon:Ex}))),kx={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z`}}]},name:`left`,theme:`outlined`};function Ax(){return Ax=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},Ax.apply(this,arguments)}var jx=v.forwardRef((e,t)=>v.createElement(Co,Ax({},e,{ref:t,icon:kx}))),{ESC:Mx,TAB:Nx}=X;function Px({visible:e,triggerRef:t,onVisibleChange:n,autoFocus:r,overlayRef:i}){let a=v.useRef(!1),o=()=>{e&&(t.current?.focus?.(),n?.(!1))},s=()=>i.current?.focus?(i.current.focus(),a.current=!0,!0):!1,c=e=>{switch(e.keyCode){case Mx:o();break;case Nx:{let t=!1;a.current||(t=s()),t?e.preventDefault():o();break}}};v.useEffect(()=>e?(window.addEventListener(`keydown`,c),r&&Ke(s,3),()=>{window.removeEventListener(`keydown`,c),a.current=!1}):()=>{a.current=!1},[e])}var Fx=(0,v.forwardRef)((e,t)=>{let{overlay:n,arrow:r,prefixCls:i}=e,a=(0,v.useMemo)(()=>{let e;return e=typeof n==`function`?n():n,e},[n]),o=I(t,V(a));return v.createElement(v.Fragment,null,r&&v.createElement(`div`,{className:`${i}-arrow`}),v.cloneElement(a,{ref:R(a)?o:void 0}))}),Ix={adjustX:1,adjustY:1},Lx=[0,0],Rx={topLeft:{points:[`bl`,`tl`],overflow:Ix,offset:[0,-4],targetOffset:Lx},top:{points:[`bc`,`tc`],overflow:Ix,offset:[0,-4],targetOffset:Lx},topRight:{points:[`br`,`tr`],overflow:Ix,offset:[0,-4],targetOffset:Lx},bottomLeft:{points:[`tl`,`bl`],overflow:Ix,offset:[0,4],targetOffset:Lx},bottom:{points:[`tc`,`bc`],overflow:Ix,offset:[0,4],targetOffset:Lx},bottomRight:{points:[`tr`,`br`],overflow:Ix,offset:[0,4],targetOffset:Lx}};function zx(){return zx=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},zx.apply(this,arguments)}var Bx=v.forwardRef((e,t)=>{let{arrow:n=!1,prefixCls:r=`rc-dropdown`,transitionName:i,animation:a,align:o,placement:s=`bottomLeft`,placements:c=Rx,getPopupContainer:l,showAction:u,hideAction:d,overlayClassName:f,overlayStyle:p,visible:m,trigger:h=[`hover`],autoFocus:g,overlay:_,children:y,onVisibleChange:b,...x}=e,[S,C]=v.useState(),w=`visible`in e?m:S,T=a?`${r}-${a}`:i,E=v.useRef(null),D=v.useRef(null),O=v.useRef(null);v.useImperativeHandle(t,()=>E.current);let k=e=>{C(e),b?.(e)};Px({visible:w,triggerRef:O,onVisibleChange:k,autoFocus:g,overlayRef:D});let A=t=>{let{onOverlayClick:n}=e;C(!1),n&&n(t)},j=()=>v.createElement(Fx,{ref:D,overlay:_,prefixCls:r,arrow:n}),M=()=>typeof _==`function`?j:j(),N=()=>{let{minOverlayWidthMatchTrigger:t,alignPoint:n}=e;return`minOverlayWidthMatchTrigger`in e?t:!n},P=v.cloneElement(y,{className:J(y.props?.className,w&&(()=>{let{openClassName:t}=e;return t===void 0?`${r}-open`:t})()),ref:R(y)?I(O,V(y)):void 0}),F=d;return!F&&h.indexOf(`contextMenu`)!==-1&&(F=[`click`]),v.createElement(iu,zx({builtinPlacements:c},x,{prefixCls:r,ref:E,popupClassName:J(f,{[`${r}-show-arrow`]:n}),popupStyle:p,action:h,showAction:u,hideAction:F,popupPlacement:s,popupAlign:o,popupMotion:{motionName:T},popupVisible:w,stretch:N()?`minWidth`:``,popup:M(),onOpenChange:k,onPopupClick:A,getPopupContainer:l}),P)}),Vx=v.createContext(null);function Hx(e,t){return`${e}-${t}`}function Ux(e){return Hx(v.useContext(Vx),e)}var Wx=v.createContext(null);function Gx(e,t){let n={...e};return Object.keys(t).forEach(e=>{let r=t[e];r!==void 0&&(n[e]=r)}),n}function Kx({children:e,locked:t,...n}){let r=v.useContext(Wx),i=O(()=>Gx(r,n),[r,n],(e,n)=>!t&&(e[0]!==n[0]||!mt(e[1],n[1],!0)));return v.createElement(Wx.Provider,{value:i},e)}var qx=[],Jx=v.createContext(null);function Yx(){return v.useContext(Jx)}var Xx=v.createContext(qx);function Zx(e){let t=v.useContext(Xx);return v.useMemo(()=>e===void 0?t:[...t,e],[t,e])}var Qx=v.createContext(null),$x=v.createContext({}),{LEFT:eS,RIGHT:tS,UP:nS,DOWN:rS,ENTER:iS,ESC:aS,HOME:oS,END:sS}=X,cS=[nS,rS,eS,tS];function lS(e,t,n,r){let i=`prev`,a=`next`,o=`children`,s=`parent`;if(e===`inline`&&r===iS)return{inlineTrigger:!0};let c={[nS]:i,[rS]:a},l={[eS]:n?a:i,[tS]:n?i:a,[rS]:o,[iS]:o},u={[nS]:i,[rS]:a,[iS]:o,[aS]:s,[eS]:n?o:s,[tS]:n?s:o};switch({inline:c,horizontal:l,vertical:u,inlineSub:c,horizontalSub:u,verticalSub:u}[`${e}${t?``:`Sub`}`]?.[r]){case i:return{offset:-1,sibling:!0};case a:return{offset:1,sibling:!0};case s:return{offset:-1,sibling:!1};case o:return{offset:1,sibling:!1};default:return null}}function uS(e){let t=e;for(;t;){if(t.getAttribute(`data-menu-list`))return t;t=t.parentElement}return null}function dS(e,t){let n=e||document.activeElement;for(;n;){if(t.has(n))return n;n=n.parentElement}return null}function fS(e,t){return kp(e,!0).filter(e=>t.has(e))}function pS(e,t,n,r=1){if(!e)return null;let i=fS(e,t),a=i.length,o=i.findIndex(e=>n===e);return r<0?o===-1?o=a-1:--o:r>0&&(o+=1),o=(o+a)%a,i[o]}var mS=(e,t)=>{let n=new Set,r=new Map,i=new Map;return e.forEach(e=>{let a=document.querySelector(`[data-menu-id='${Hx(t,e)}']`);a&&(n.add(a),i.set(a,e),r.set(e,a))}),{elements:n,key2element:r,element2key:i}};function hS(e,t,n,r,i,a,o,s,c,l){let u=v.useRef(),d=v.useRef();d.current=t;let f=()=>{Ke.cancel(u.current)};return v.useEffect(()=>()=>{f()},[]),p=>{let{which:m}=p;if([...cS,iS,aS,oS,sS].includes(m)){let l=a(),h=mS(l,r),{elements:g,key2element:_,element2key:v}=h,y=dS(_.get(t),g),b=v.get(y),x=lS(e,o(b,!0).length===1,n,m);if(!x&&m!==oS&&m!==sS)return;(cS.includes(m)||[oS,sS].includes(m))&&p.preventDefault();let S=e=>{if(e){let t=e,n=e.querySelector(`a`);n?.getAttribute(`href`)&&(t=n);let r=v.get(e);s(r),f(),u.current=Ke(()=>{d.current===r&&t.focus()})}};if([oS,sS].includes(m)||x.sibling||!y){let t;t=!y||e===`inline`?i.current:uS(y);let n,r=fS(t,g);n=m===oS?r[0]:m===sS?r[r.length-1]:pS(t,g,y,x.offset),S(n)}else if(x.inlineTrigger)c(b);else if(x.offset>0)c(b,!0),f(),u.current=Ke(()=>{h=mS(l,r);let e=y.getAttribute(`aria-controls`);S(pS(document.getElementById(e),h.elements))},5);else if(x.offset<0){let e=o(b,!0),t=e[e.length-2],n=_.get(t);c(t,!1),S(n)}}l?.(p)}}function gS(e){Promise.resolve().then(e)}var _S=`__RC_UTIL_PATH_SPLIT__`,vS=e=>e.join(_S),yS=e=>e.split(_S),bS=`rc-menu-more`;function xS(){let[,e]=v.useState({}),t=(0,v.useRef)(new Map),n=(0,v.useRef)(new Map),[r,i]=v.useState([]),a=(0,v.useRef)(0),o=(0,v.useRef)(!1),s=()=>{o.current||e({})},c=(0,v.useCallback)((e,r)=>{let i=vS(r);n.current.set(i,e),t.current.set(e,i),a.current+=1;let o=a.current;gS(()=>{o===a.current&&s()})},[]),l=(0,v.useCallback)((e,r)=>{let i=vS(r);n.current.delete(i),t.current.delete(e)},[]),u=(0,v.useCallback)(e=>{i(e)},[]),d=(0,v.useCallback)((e,n)=>{let i=yS(t.current.get(e)||``);return n&&r.includes(i[0])&&i.unshift(bS),i},[r]),f=(0,v.useCallback)((e,t)=>e.filter(e=>e!==void 0).some(e=>d(e,!0).includes(t)),[d]),p=()=>{let e=[...t.current.keys()];return r.length&&e.push(bS),e},m=(0,v.useCallback)(e=>{let r=`${t.current.get(e)}${_S}`,i=new Set;return[...n.current.keys()].forEach(e=>{e.startsWith(r)&&i.add(n.current.get(e))}),i},[]);return v.useEffect(()=>()=>{o.current=!0},[]),{registerPath:c,unregisterPath:l,refreshOverflowKeys:u,isSubPathKey:f,getKeyPath:d,getKeys:p,getSubPathKeys:m}}function SS(e){let t=v.useRef(e);t.current=e;let n=v.useCallback((...e)=>t.current?.(...e),[]);return e?n:void 0}function CS(e,t,n,r){let{activeKey:i,onActive:a,onInactive:o}=v.useContext(Wx),s={active:i===e};return t||(s.onMouseEnter=t=>{n?.({key:e,domEvent:t}),a(e)},s.onMouseLeave=t=>{r?.({key:e,domEvent:t}),o(e)}),s}function wS(e){let{mode:t,rtl:n,inlineIndent:r}=v.useContext(Wx);if(t!==`inline`)return null;let i=e;return n?{paddingRight:i*r}:{paddingLeft:i*r}}function TS({icon:e,props:t,children:n}){let r;return e===null||e===!1?null:(typeof e==`function`?r=v.createElement(e,{...t}):typeof e!=`boolean`&&(r=e),r||n||null)}function ES({item:e,...t}){return Object.defineProperty(t,`item`,{get:()=>(le(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),e)}),t}function DS(){return DS=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},DS.apply(this,arguments)}var OS=class extends v.Component{render(){let{title:e,attribute:t,elementRef:n,...r}=this.props,i=de(r,[`eventKey`,`popupClassName`,`popupOffset`,`onTitleClick`]);return le(!t,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),v.createElement(Hv.Item,DS({},t,{title:typeof e==`string`?e:void 0},i,{ref:n}))}},kS=v.forwardRef((e,t)=>{let{style:n,className:r,eventKey:i,warnKey:a,disabled:o,itemIcon:s,children:c,role:l,onMouseEnter:u,onMouseLeave:d,onClick:f,onKeyDown:p,onFocus:m,...h}=e,g=Ux(i),{prefixCls:_,onItemClick:y,disabled:b,overflowDisabled:x,itemIcon:S,selectedKeys:C,onActive:w}=v.useContext(Wx),{_internalRenderMenuItem:T}=v.useContext($x),E=`${_}-item`,D=v.useRef(),O=v.useRef(),k=b||o,A=L(t,O),j=Zx(i),M=e=>({key:i,keyPath:[...j].reverse(),item:D.current,domEvent:e}),N=s||S,{active:P,...F}=CS(i,k,u,d),I=C.includes(i),R=wS(j.length),z=e=>{if(k)return;let t=M(e);f?.(ES(t)),y(t)},B=e=>{if(p?.(e),e.which===X.ENTER){let t=M(e);f?.(ES(t)),y(t)}},V=e=>{w(i),m?.(e)},H={};e.role===`option`&&(H[`aria-selected`]=I);let U=v.createElement(OS,DS({ref:D,elementRef:A,role:l===null?`none`:l||`menuitem`,tabIndex:o?null:-1,"data-menu-id":x&&g?null:g},de(h,[`extra`]),F,H,{component:`li`,"aria-disabled":o,style:{...R,...n},className:J(E,{[`${E}-active`]:P,[`${E}-selected`]:I,[`${E}-disabled`]:k},r),onClick:z,onKeyDown:B,onFocus:V}),c,v.createElement(TS,{props:{...e,isSelected:I},icon:N}));return T&&(U=T(U,e,{selected:I})),U});function AS(e,t){let{eventKey:n}=e,r=Yx(),i=Zx(n);return v.useEffect(()=>{if(r)return r.registerPath(n,i),()=>{r.unregisterPath(n,i)}},[i]),r?null:v.createElement(kS,DS({},e,{ref:t}))}var jS=v.forwardRef(AS);function MS(){return MS=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},MS.apply(this,arguments)}var NS=v.forwardRef(({className:e,children:t,...n},r)=>{let{prefixCls:i,mode:a,rtl:o}=v.useContext(Wx);return v.createElement(`ul`,MS({className:J(i,o&&`${i}-rtl`,`${i}-sub`,`${i}-${a===`inline`?`inline`:`vertical`}`,e),role:`menu`},n,{"data-menu-list":!0,ref:r}),t)});function PS(e,t){return fe(e).map((e,n)=>{if(v.isValidElement(e)){let{key:r}=e,i=e.props?.eventKey??r;i??=`tmp_key-${[...t,n].join(`-`)}`;let a={key:i,eventKey:i};return v.cloneElement(e,a)}return e})}var FS={adjustX:1,adjustY:1},IS={topLeft:{points:[`bl`,`tl`],overflow:FS},topRight:{points:[`br`,`tr`],overflow:FS},bottomLeft:{points:[`tl`,`bl`],overflow:FS},bottomRight:{points:[`tr`,`br`],overflow:FS},leftTop:{points:[`tr`,`tl`],overflow:FS},leftBottom:{points:[`br`,`bl`],overflow:FS},rightTop:{points:[`tl`,`tr`],overflow:FS},rightBottom:{points:[`bl`,`br`],overflow:FS}},LS={topLeft:{points:[`bl`,`tl`],overflow:FS},topRight:{points:[`br`,`tr`],overflow:FS},bottomLeft:{points:[`tl`,`bl`],overflow:FS},bottomRight:{points:[`tr`,`br`],overflow:FS},rightTop:{points:[`tr`,`tl`],overflow:FS},rightBottom:{points:[`br`,`bl`],overflow:FS},leftTop:{points:[`tl`,`tr`],overflow:FS},leftBottom:{points:[`bl`,`br`],overflow:FS}};function RS(e,t,n){if(t)return t;if(n)return n[e]||n.other}var zS={horizontal:`bottomLeft`,vertical:`rightTop`,"vertical-left":`rightTop`,"vertical-right":`leftTop`};function BS({prefixCls:e,visible:t,children:n,popup:r,popupStyle:i,popupClassName:a,popupOffset:o,disabled:s,mode:c,onVisibleChange:l}){let{getPopupContainer:u,rtl:d,subMenuOpenDelay:f,subMenuCloseDelay:p,builtinPlacements:m,triggerSubMenuAction:h,forceSubMenuRender:g,rootClassName:_,motion:y,defaultMotions:b}=v.useContext(Wx),[x,S]=v.useState(!1),C=d?{...LS,...m}:{...IS,...m},w=zS[c],T=RS(c,y,b),E=v.useRef(T);c!==`inline`&&(E.current=T);let D={...E.current,leavedClassName:`${e}-hidden`,removeOnLeave:!1,motionAppear:!0},O=v.useRef();return v.useEffect(()=>(O.current=Ke(()=>{S(t)}),()=>{Ke.cancel(O.current)}),[t]),v.createElement(iu,{prefixCls:e,popupClassName:J(`${e}-popup`,{[`${e}-rtl`]:d},a,_),stretch:c===`horizontal`?`minWidth`:null,getPopupContainer:u,builtinPlacements:C,popupPlacement:w,popupVisible:x,popup:r,popupStyle:i,popupAlign:o&&{offset:o},action:s?[]:[h],mouseEnterDelay:f,mouseLeaveDelay:p,onPopupVisibleChange:l,forceRender:g,popupMotion:D,fresh:!0},n)}function VS(){return VS=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},VS.apply(this,arguments)}function HS({id:e,open:t,keyPath:n,children:r}){let i=`inline`,{prefixCls:a,forceSubMenuRender:o,motion:s,defaultMotions:c,mode:l}=v.useContext(Wx),u=v.useRef(!1);u.current=l===i;let[d,f]=v.useState(!u.current),p=u.current?t:!1;v.useEffect(()=>{u.current&&f(!1)},[l]);let m={...RS(i,s,c)};n.length>1&&(m.motionAppear=!1);let h=m.onVisibleChanged;return m.onVisibleChanged=e=>(!u.current&&!e&&f(!0),h?.(e)),d?null:v.createElement(Kx,{mode:i,locked:!u.current},v.createElement(ks,VS({visible:p},m,{forceRender:o,removeOnLeave:!1,leavedClassName:`${a}-hidden`}),({className:t,style:n})=>v.createElement(NS,{id:e,className:t,style:n},r)))}function US(){return US=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},US.apply(this,arguments)}var WS=v.forwardRef((e,t)=>{let{style:n,className:r,styles:i,classNames:a,title:o,eventKey:s,warnKey:c,disabled:l,internalPopupClose:u,children:d,itemIcon:f,expandIcon:p,popupClassName:m,popupOffset:h,popupStyle:g,onClick:_,onMouseEnter:y,onMouseLeave:b,onTitleClick:x,onTitleMouseEnter:S,onTitleMouseLeave:C,popupRender:w,...T}=e,E=Ux(s),{prefixCls:D,mode:O,openKeys:k,disabled:A,overflowDisabled:j,activeKey:M,selectedKeys:N,itemIcon:P,expandIcon:F,onItemClick:I,onOpenChange:L,onActive:R,popupRender:z}=v.useContext(Wx),{_internalRenderSubMenuItem:B}=v.useContext($x),{isSubPathKey:V}=v.useContext(Qx),H=Zx(),U=`${D}-submenu`,W=A||l,ee=v.useRef(),te=v.useRef(),ne=f??P,re=p??F,ie=k.includes(s),ae=!j&&ie,G=V(N,s),{active:K,...oe}=CS(s,W,S,C),[se,ce]=v.useState(!1),q=e=>{W||ce(e)},le=e=>{q(!0),y?.({key:s,domEvent:e})},ue=e=>{q(!1),b?.({key:s,domEvent:e})},de=v.useMemo(()=>K||(O===`inline`?!1:se||V([M],s)),[O,K,M,se,s,V]),fe=wS(H.length),pe=e=>{W||(x?.({key:s,domEvent:e}),O===`inline`&&L(s,!ie))},me=SS(e=>{_?.(ES(e)),I(e)}),he=e=>{O!==`inline`&&L(s,e)},ge=()=>{R(s)},_e=E&&`${E}-popup`,ve=v.useMemo(()=>v.createElement(TS,{icon:O===`horizontal`?void 0:re,props:{...e,isOpen:ae,isSubMenu:!0}},v.createElement(`i`,{className:`${U}-arrow`})),[O,re,e,ae,U]),ye=v.createElement(`div`,US({role:`menuitem`,style:fe,className:`${U}-title`,tabIndex:W?null:-1,ref:ee,title:typeof o==`string`?o:null,"data-menu-id":j&&E?null:E,"aria-expanded":ae,"aria-haspopup":!0,"aria-controls":_e,"aria-disabled":W,onClick:pe,onFocus:ge},oe),o,ve),be=v.useRef(O);O!==`inline`&&H.length>1?be.current=`vertical`:be.current=O;let xe=be.current,Se=v.useMemo(()=>{let t=v.createElement(Kx,{classNames:a,styles:i,mode:xe===`horizontal`?`vertical`:xe},v.createElement(NS,{id:_e,ref:te},d)),n=w||z;return n?n(t,{item:e,keys:H}):t},[w,z,H,_e,d,e,xe]);if(!j){let e=be.current;ye=v.createElement(BS,{mode:e,prefixCls:U,visible:!u&&ae&&O!==`inline`,popupClassName:m,popupOffset:h,popupStyle:g,popup:Se,disabled:W,onVisibleChange:he},ye)}let Ce=v.createElement(Hv.Item,US({ref:t,role:`none`},T,{component:`li`,style:n,className:J(U,`${U}-${O}`,r,{[`${U}-open`]:ae,[`${U}-active`]:de,[`${U}-selected`]:G,[`${U}-disabled`]:W}),onMouseEnter:le,onMouseLeave:ue}),ye,!j&&v.createElement(HS,{id:_e,open:ae,keyPath:H},d));return B&&(Ce=B(Ce,e,{selected:G,active:de,open:ae,disabled:W})),v.createElement(Kx,{classNames:a,styles:i,onItemClick:me,mode:O===`horizontal`?`vertical`:O,itemIcon:ne,expandIcon:re},Ce)}),GS=v.forwardRef((e,t)=>{let{eventKey:n,children:r}=e,i=Zx(n),a=PS(r,i),o=Yx();v.useEffect(()=>{if(o)return o.registerPath(n,i),()=>{o.unregisterPath(n,i)}},[i]);let s;return s=o?a:v.createElement(WS,US({ref:t},e),a),v.createElement(Xx.Provider,{value:i},s)});function KS({className:e,style:t}){let{prefixCls:n}=v.useContext(Wx);return Yx()?null:v.createElement(`li`,{role:`separator`,className:J(`${n}-item-divider`,e),style:t})}function qS(){return qS=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},qS.apply(this,arguments)}var JS=v.forwardRef((e,t)=>{let{className:n,title:r,eventKey:i,children:a,...o}=e,{prefixCls:s,classNames:c,styles:l}=v.useContext(Wx),u=`${s}-item-group`;return v.createElement(`li`,qS({ref:t,role:`presentation`},o,{onClick:e=>e.stopPropagation(),className:J(u,n)}),v.createElement(`div`,{role:`presentation`,className:J(`${u}-title`,c?.listTitle),style:l?.listTitle,title:typeof r==`string`?r:void 0},r),v.createElement(`ul`,{role:`group`,className:J(`${u}-list`,c?.list),style:l?.list},a))}),YS=v.forwardRef((e,t)=>{let{eventKey:n,children:r}=e,i=PS(r,Zx(n));return Yx()?i:v.createElement(JS,qS({ref:t},de(e,[`warnKey`])),i)});function XS(){return XS=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},XS.apply(this,arguments)}function ZS(e,t,n){let{item:r,group:i,submenu:a,divider:o}=t;return(e||[]).map((e,s)=>{if(e&&typeof e==`object`){let{label:c,children:l,key:u,type:d,extra:f,...p}=e,m=u??`tmp-${s}`;return l||d===`group`?d===`group`?v.createElement(i,XS({key:m},p,{title:c}),ZS(l,t,n)):v.createElement(a,XS({key:m},p,{title:c}),ZS(l,t,n)):d===`divider`?v.createElement(o,XS({key:m},p)):v.createElement(r,XS({key:m},p,{extra:f}),c,(!!f||f===0)&&v.createElement(`span`,{className:`${n}-item-extra`},f))}return null}).filter(e=>e)}function QS(e,t,n,r,i){let a=e,o={divider:KS,item:jS,group:YS,submenu:GS,...r};return t&&(a=ZS(t,o,i)),PS(a,n)}function $S(){return $S=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},$S.apply(this,arguments)}var eC=[],tC=v.forwardRef((e,t)=>{let{prefixCls:n=`rc-menu`,rootClassName:r,style:i,className:a,styles:o,classNames:s,tabIndex:c=0,items:l,children:u,direction:d,id:f,mode:p=`vertical`,inlineCollapsed:m,disabled:h,disabledOverflow:g,subMenuOpenDelay:_=.1,subMenuCloseDelay:y=.1,forceSubMenuRender:b,defaultOpenKeys:x,openKeys:S,activeKey:C,defaultActiveFirst:w,selectable:E=!0,multiple:D=!1,defaultSelectedKeys:O,selectedKeys:k,onSelect:A,onDeselect:j,inlineIndent:M=24,motion:N,defaultMotions:P,triggerSubMenuAction:F=`hover`,builtinPlacements:I,itemIcon:L,expandIcon:R,overflowedIndicator:z=`...`,overflowedIndicatorPopupClassName:B,getPopupContainer:V,onClick:H,onOpenChange:U,onKeyDown:W,openAnimation:ee,openTransitionName:te,_internalRenderMenuItem:ne,_internalRenderSubMenuItem:re,_internalComponents:ie,popupRender:ae,...G}=e,[K,oe]=v.useMemo(()=>[QS(u,l,eC,ie,n),QS(u,l,eC,{},n)],[u,l,ie]),[se,ce]=v.useState(!1),q=v.useRef(),le=fl(f?`rc-menu-uuid-${f}`:`rc-menu-uuid`),ue=d===`rtl`,[de,fe]=T(x,S),pe=de||eC,me=(e,t=!1)=>{function n(){fe(e),U?.(e)}t?(0,xl.flushSync)(n):n()},[he,ge]=v.useState(pe),_e=v.useRef(!1),[ve,ye]=v.useMemo(()=>(p===`inline`||p===`vertical`)&&m?[`vertical`,m]:[p,!1],[p,m]),be=ve===`inline`,[xe,Se]=v.useState(ve),[Ce,we]=v.useState(ye);v.useEffect(()=>{Se(ve),we(ye),_e.current&&(be?fe(he):me(eC))},[ve,ye]);let[Te,Ee]=v.useState(0),De=Te>=K.length-1||xe!==`horizontal`||g;v.useEffect(()=>{be&&ge(pe)},[pe]),v.useEffect(()=>(_e.current=!0,()=>{_e.current=!1}),[]);let{registerPath:Oe,unregisterPath:ke,refreshOverflowKeys:Ae,isSubPathKey:je,getKeyPath:Me,getKeys:Ne,getSubPathKeys:Pe}=xS(),Fe=v.useMemo(()=>({registerPath:Oe,unregisterPath:ke}),[Oe,ke]),Ie=v.useMemo(()=>({isSubPathKey:je}),[je]);v.useEffect(()=>{Ae(De?eC:K.slice(Te+1).map(e=>e.key))},[Te,De]);let[Le,Re]=T(C||w&&K[0]?.key,C),ze=SS(e=>{Re(e)}),Be=SS(()=>{Re(void 0)});(0,v.useImperativeHandle)(t,()=>({list:q.current,focus:e=>{let t=Ne(),{elements:n,key2element:r,element2key:i}=mS(t,le),a=fS(q.current,n),o;o=Le&&t.includes(Le)?Le:a[0]?i.get(a[0]):K.find(e=>!e.props.disabled)?.key;let s=r.get(o);o&&s&&s?.focus?.(e)},findItem:({key:e})=>{let{key2element:t}=mS(Ne(),le);return t.get(e)||null}}));let[Ve,He]=T(O||[],k),Ue=v.useMemo(()=>Array.isArray(Ve)?Ve:Ve==null?eC:[Ve],[Ve]),We=e=>{if(E){let{key:t}=e,n=Ue.includes(t),r;r=D?n?Ue.filter(e=>e!==t):[...Ue,t]:[t],He(r);let i={...e,selectedKeys:r};n?j?.(i):A?.(i)}!D&&pe.length&&xe!==`inline`&&me(eC)},Ge=SS(e=>{H?.(ES(e)),We(e)}),Ke=SS((e,t)=>{let n=pe.filter(t=>t!==e);if(t)n.push(e);else if(xe!==`inline`){let t=Pe(e);n=n.filter(e=>!t.has(e))}mt(pe,n,!0)||me(n,!0)}),qe=hS(xe,Le,ue,le,q,Ne,Me,Re,(e,t)=>{Ke(e,t??!pe.includes(e))},W);v.useEffect(()=>{ce(!0)},[]);let Je=v.useMemo(()=>({_internalRenderMenuItem:ne,_internalRenderSubMenuItem:re}),[ne,re]),Ye=xe!==`horizontal`||g?K:K.map((e,t)=>v.createElement(Kx,{key:e.key,overflowDisabled:t>Te,classNames:s,styles:o},e)),Xe=v.createElement(Hv,$S({id:f,ref:q,prefixCls:`${n}-overflow`,component:`ul`,itemComponent:jS,className:J(n,`${n}-root`,`${n}-${xe}`,a,{[`${n}-inline-collapsed`]:Ce,[`${n}-rtl`]:ue},r),dir:d,style:i,role:`menu`,tabIndex:c,data:Ye,renderRawItem:e=>e,renderRawRest:e=>{let t=e.length,n=t?K.slice(-t):null;return v.createElement(GS,{eventKey:bS,title:z,disabled:De,internalPopupClose:t===0,popupClassName:B},n)},maxCount:xe!==`horizontal`||g?Hv.INVALIDATE:Hv.RESPONSIVE,ssr:`full`,"data-menu-list":!0,onVisibleChange:e=>{Ee(e)},onKeyDown:qe},G));return v.createElement($x.Provider,{value:Je},v.createElement(Vx.Provider,{value:le},v.createElement(Kx,{prefixCls:n,rootClassName:r,classNames:s,styles:o,mode:xe,openKeys:pe,rtl:ue,disabled:h,motion:se?N:null,defaultMotions:se?P:null,activeKey:Le,onActive:ze,onInactive:Be,selectedKeys:Ue,inlineIndent:M,subMenuOpenDelay:_,subMenuCloseDelay:y,forceSubMenuRender:b,builtinPlacements:I,triggerSubMenuAction:F,getPopupContainer:V,itemIcon:L,expandIcon:R,onItemClick:Ge,onOpenChange:Ke,popupRender:ae},v.createElement(Qx.Provider,{value:Ie},Xe),v.createElement(`div`,{style:{display:`none`},"aria-hidden":!0},v.createElement(Jx.Provider,{value:Fe},oe)))))});tC.Item=jS,tC.SubMenu=GS,tC.ItemGroup=YS,tC.Divider=KS;var nC={icon:{tag:`svg`,attrs:{viewBox:`0 0 1024 1024`,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:`bars`,theme:`outlined`};function rC(){return rC=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},rC.apply(this,arguments)}var iC=v.forwardRef((e,t)=>v.createElement(Co,rC({},e,{ref:t,icon:nC}))),aC=v.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),oC=e=>{let{antCls:t,componentCls:n,colorText:r,footerBg:i,headerHeight:a,headerPadding:o,headerColor:s,footerPadding:c,fontSize:l,bodyBg:u,headerBg:d}=e;return{[n]:{display:`flex`,flex:`auto`,flexDirection:`column`,minHeight:0,background:u,"&, *":{boxSizing:`border-box`},[`&${n}-has-sider`]:{flexDirection:`row`,[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:`0 0 auto`},"&-rtl":{direction:`rtl`}},[`${n}-header`]:{height:a,padding:o,color:s,lineHeight:Y(a),background:d,[`${t}-menu`]:{lineHeight:`inherit`}},[`${n}-footer`]:{padding:c,color:r,fontSize:l,background:i},[`${n}-content`]:{flex:`auto`,color:r,minHeight:0}}},sC=e=>{let{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:i,controlHeightSM:a,marginXXS:o,colorTextLightSolid:s,colorBgContainer:c}=e,l=r*1.25;return{colorBgHeader:`#001529`,colorBgBody:t,colorBgTrigger:`#002140`,bodyBg:t,headerBg:`#001529`,headerHeight:n*2,headerPadding:`0 ${l}px`,headerColor:i,footerPadding:`${a}px ${l}px`,footerBg:t,siderBg:`#001529`,triggerHeight:r+o*2,triggerBg:`#002140`,triggerColor:s,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:c,lightTriggerBg:c,lightTriggerColor:i}},cC=[[`colorBgBody`,`bodyBg`],[`colorBgHeader`,`headerBg`],[`colorBgTrigger`,`triggerBg`]],lC=Ya(`Layout`,oC,sC,{deprecatedTokens:cC}),uC=Ya([`Layout`,`Sider`],e=>{let{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:i,antCls:a,triggerHeight:o,triggerColor:s,triggerBg:c,headerHeight:l,zeroTriggerWidth:u,zeroTriggerHeight:d,borderRadiusLG:f,lightSiderBg:p,lightTriggerColor:m,lightTriggerBg:h,bodyBg:g}=e;return{[t]:{position:`relative`,minWidth:0,background:n,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:o},"&-right":{order:1},[`${t}-children`]:{height:`100%`,marginTop:-.1,paddingTop:.1,[`${a}-menu${a}-menu-inline-collapsed`]:{width:`auto`}},[`&-zero-width ${t}-children`]:{overflow:`hidden`},[`${t}-trigger`]:{position:`fixed`,bottom:0,zIndex:1,height:o,color:s,lineHeight:Y(o),textAlign:`center`,background:c,cursor:`pointer`,transition:`all ${r}`},[`${t}-zero-width-trigger`]:{position:`absolute`,top:l,insetInlineEnd:e.calc(u).mul(-1).equal(),zIndex:1,width:u,height:d,color:s,fontSize:e.fontSizeXL,display:`flex`,alignItems:`center`,justifyContent:`center`,background:n,borderRadius:`0 ${Y(f)} ${Y(f)} 0`,cursor:`pointer`,transition:`background-color ${i} ease`,"&::after":{position:`absolute`,inset:0,background:`transparent`,transition:`all ${i}`,content:`""`},"&:hover::after":{background:`rgba(255, 255, 255, 0.2)`},"&-right":{insetInlineStart:e.calc(u).mul(-1).equal(),borderRadius:`${Y(f)} 0 0 ${Y(f)}`}},"&-light":{background:p,[`${t}-trigger`]:{color:m,background:h},[`${t}-zero-width-trigger`]:{color:m,background:h,border:`1px solid ${g}`,borderInlineStart:0}}}}},sC,{deprecatedTokens:cC}),dC={xs:`479.98px`,sm:`575.98px`,md:`767.98px`,lg:`991.98px`,xl:`1199.98px`,xxl:`1599.98px`,xxxl:`1839.98px`},fC=e=>!Number.isNaN(Number.parseFloat(e))&&Number.isFinite(Number(e)),pC=v.createContext({}),mC=(()=>{let e=0;return(t=``)=>(e+=1,`${t}${e}`)})(),hC=v.forwardRef((e,t)=>{let{prefixCls:n,className:r,trigger:i,children:a,defaultCollapsed:o=!1,theme:s=`dark`,style:c={},collapsible:l=!1,reverseArrow:u=!1,width:d=200,collapsedWidth:f=80,zeroWidthTriggerStyle:p,breakpoint:m,onCollapse:h,onBreakpoint:g,..._}=e,{siderHook:y}=(0,v.useContext)(aC),[b,x]=(0,v.useState)(`collapsed`in e?e.collapsed:o),[S,C]=(0,v.useState)(!1);(0,v.useEffect)(()=>{`collapsed`in e&&x(e.collapsed)},[e.collapsed]);let w=(t,n)=>{`collapsed`in e||x(t),h?.(t,n)},{getPrefixCls:T,direction:E}=(0,v.useContext)(Ye),D=T(`layout-sider`,n),[O,k]=uC(D),A=(0,v.useRef)(null);A.current=e=>{C(e.matches),g?.(e.matches),b!==e.matches&&w(e.matches,`responsive`)},(0,v.useEffect)(()=>{function e(e){return A.current?.(e)}let t;return window?.matchMedia!==void 0&&m&&m in dC&&(t=window.matchMedia(`screen and (max-width: ${dC[m]})`),typeof t?.addEventListener==`function`&&t.addEventListener(`change`,e),e(t)),()=>{typeof t?.removeEventListener==`function`&&t.removeEventListener(`change`,e)}},[m]),(0,v.useEffect)(()=>{let e=mC(`ant-sider-`);return y.addSider(e),()=>y.removeSider(e)},[]);let j=()=>{w(!b,`clickTrigger`)},M=de(_,[`collapsed`]),N=b?f:d,P=fC(N)?`${N}px`:String(N),F=Number.parseFloat(String(f||0))===0?v.createElement(`span`,{onClick:j,className:J(`${D}-zero-width-trigger`,`${D}-zero-width-trigger-${u?`right`:`left`}`),style:p},i||v.createElement(iC,null)):null,I=E===`rtl`==!u,L={expanded:I?v.createElement(qf,null):v.createElement(jx,null),collapsed:I?v.createElement(jx,null):v.createElement(qf,null)}[b?`collapsed`:`expanded`],R=i===null?null:F||v.createElement(`div`,{className:`${D}-trigger`,onClick:j,style:{width:P}},i||L),z={...c,flex:`0 0 ${P}`,maxWidth:P,minWidth:P,width:P},B=J(D,`${D}-${s}`,{[`${D}-collapsed`]:!!b,[`${D}-has-trigger`]:l&&i!==null&&!F,[`${D}-below`]:!!S,[`${D}-zero-width`]:Number.parseFloat(P)===0},r,O,k),V=v.useMemo(()=>({siderCollapsed:b}),[b]);return v.createElement(pC.Provider,{value:V},v.createElement(`aside`,{className:B,...M,style:z,ref:t},v.createElement(`div`,{className:`${D}-children`},a),l||S&&F?R:null))}),gC={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z`}}]},name:`ellipsis`,theme:`outlined`};function _C(){return _C=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},_C.apply(this,arguments)}var vC=v.forwardRef((e,t)=>v.createElement(Co,_C({},e,{ref:t,icon:gC}))),yC=(0,v.createContext)({prefixCls:``,firstLevel:!0,inlineCollapsed:!1,styles:null,classNames:null}),bC=e=>{let{prefixCls:t,className:n,dashed:r,...i}=e,{getPrefixCls:a}=v.useContext(Ye),o=J({[`${a(`menu`,t)}-item-divider-dashed`]:!!r},n);return v.createElement(KS,{className:o,...i})},xC=e=>{let{className:t,children:n,icon:r,title:i,danger:a,extra:o}=e,{prefixCls:s,firstLevel:c,direction:l,disableMenuItemTitleTooltip:u,tooltip:d,inlineCollapsed:f,styles:p,classNames:m}=v.useContext(yC),h=e=>{let t=n?.[0],i=v.createElement(`span`,{className:J(`${s}-title-content`,c?m?.itemContent:m?.subMenu?.itemContent,{[`${s}-title-content-with-extra`]:!!o||o===0}),style:c?p?.itemContent:p?.subMenu?.itemContent},n);return(!r||v.isValidElement(n)&&n.type===`span`)&&n&&e&&c&&typeof t==`string`?v.createElement(`div`,{className:`${s}-inline-collapsed-noicon`},t.charAt(0)):i},{siderCollapsed:g}=v.useContext(pC),_=i;i===void 0?_=c?n:``:i===!1&&(_=``);let y=d===!1?void 0:d,b=y&&y.title!==void 0?y.title:_,x={...y??null,title:b};!g&&!f&&(x.title=null,x.open=!1);let S=fe(n).length,C=v.createElement(jS,{...de(e,[`title`,`icon`,`danger`]),className:J(c?m?.item:m?.subMenu?.item,{[`${s}-item-danger`]:a,[`${s}-item-only-child`]:(r?S+1:S)===1},t),style:{...c?p?.item:p?.subMenu?.item,...e.style},title:typeof i==`string`?i:void 0},su(r,e=>({className:J(`${s}-item-icon`,c?m?.itemIcon:m?.subMenu?.itemIcon,e.className),style:{...c?p?.itemIcon:p?.subMenu?.itemIcon,...e.style}})),h(f));if(!u&&d!==!1){let e=y&&y.placement?y.placement:l===`rtl`?`left`:`right`,t=`${s}-inline-collapsed-tooltip`,n=e=>({...e,root:J(t,e?.root)}),r=y&&typeof y.classNames==`function`?e=>n(y.classNames(e)):n(y?.classNames);C=v.createElement(_x,{...x,placement:e,classNames:r},C)}return C},SC=v.createContext(null),CC=v.forwardRef((e,t)=>{let{children:n,...r}=e,i=v.useContext(SC),a=v.useMemo(()=>({...i,...r}),[i,r.prefixCls,r.mode,r.selectable,r.rootClassName]),o=B(n),s=L(t,o?V(n):null);return v.createElement(SC.Provider,{value:a},v.createElement(Hh,{space:!0},o?v.cloneElement(n,{ref:s}):n))}),wC=e=>{let{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:i,lineWidth:a,lineType:o,itemPaddingInline:s}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${Y(a)} ${o} ${i}`,boxShadow:`none`,"&::after":{display:`block`,clear:`both`,height:0,content:`"\\20"`},[`${t}-item, ${t}-submenu`]:{position:`relative`,display:`inline-block`,verticalAlign:`bottom`,paddingInline:s},[`> ${t}-item:hover,
|
|
177
177
|
> ${t}-item-active,
|
|
178
|
-
> ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:`transparent`},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color`,`background-color`].map(e=>`${e} ${n}`).join(`,`)},[`${t}-submenu-arrow`]:{display:`none`}}}},
|
|
179
|
-
${e}-submenu-rtl ${e}-vertical`]:{[`${e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${Y(n(t).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${Y(t)})`}}}}),
|
|
178
|
+
> ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:`transparent`},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color`,`background-color`].map(e=>`${e} ${n}`).join(`,`)},[`${t}-submenu-arrow`]:{display:`none`}}}},TC=({componentCls:e,menuArrowOffset:t,calc:n})=>({[`${e}-rtl`]:{direction:`rtl`},[`${e}-submenu-rtl`]:{transformOrigin:`100% 0`},[`${e}-rtl${e}-vertical,
|
|
179
|
+
${e}-submenu-rtl ${e}-vertical`]:{[`${e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${Y(n(t).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${Y(t)})`}}}}),EC=e=>Ua(e),DC=(e,t)=>{let{componentCls:n,itemColor:r,itemSelectedColor:i,subMenuItemSelectedColor:a,groupTitleColor:o,itemBg:s,subMenuItemBg:c,itemSelectedBg:l,activeBarHeight:u,activeBarWidth:d,activeBarBorderWidth:f,motionDurationSlow:p,motionEaseInOut:m,motionEaseOut:h,itemPaddingInline:g,motionDurationMid:_,itemHoverColor:v,lineType:y,colorSplit:b,itemDisabledColor:x,dangerItemColor:S,dangerItemHoverColor:C,dangerItemSelectedColor:w,dangerItemActiveBg:T,dangerItemSelectedBg:E,popupBg:D,itemHoverBg:O,itemActiveBg:k,menuSubMenuBg:A,horizontalItemSelectedColor:j,horizontalItemSelectedBg:M,horizontalItemBorderRadius:N,horizontalItemHoverBg:P}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:s,[`&${n}-root:focus-visible`]:{...EC(e)},[`${n}-item`]:{"&-group-title, &-extra":{color:o}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:a},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:{...EC(e)}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${x} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:v}},[`${n}-submenu:not(${n}-submenu-selected)`]:{[`> ${n}-submenu-title:hover`]:{color:v}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:O},"&:active":{backgroundColor:k}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:O},"&:active":{backgroundColor:k}}},[`${n}-item-danger`]:{color:S,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:C}},[`&${n}-item:active`]:{background:T}},[`${n}-item a`]:{"&, &:hover":{color:`inherit`}},[`${n}-item-selected`]:{color:i,[`&${n}-item-danger`]:{color:w},"a, a:hover":{color:`inherit`}},[`& ${n}-item-selected`]:{backgroundColor:l,[`&${n}-item-danger`]:{backgroundColor:E}},[`&${n}-submenu > ${n}`]:{backgroundColor:A},[`&${n}-popup > ${n}`]:{backgroundColor:D},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:D},[`&${n}-horizontal`]:{...t===`dark`?{borderBottom:0}:{},[`> ${n}-item, > ${n}-submenu`]:{top:f,marginTop:e.calc(f).mul(-1).equal(),marginBottom:0,borderRadius:N,"&::after":{position:`absolute`,insetInline:g,bottom:0,borderBottom:`${Y(u)} solid transparent`,transition:`border-color ${p} ${m}`,content:`""`},"&:hover, &-active, &-open":{background:P,"&::after":{borderBottomWidth:u,borderBottomColor:j}},"&-selected":{color:j,backgroundColor:M,"&:hover":{backgroundColor:M},"&::after":{borderBottomWidth:u,borderBottomColor:j}}}},[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${Y(f)} ${y} ${b}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:c},[`${n}-item`]:{position:`relative`,"&::after":{position:`absolute`,insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Y(d)} solid ${i}`,transform:`scaleY(0.0001)`,opacity:0,transition:[`transform`,`opacity`].map(e=>`${e} ${_} ${h}`).join(`,`),content:`""`},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:w}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:`scaleY(1)`,opacity:1,transition:[`transform`,`opacity`].map(e=>`${e} ${_} ${m}`).join(`,`)}}}}}},OC=e=>{let{componentCls:t,itemHeight:n,itemMarginInline:r,padding:i,menuArrowSize:a,marginXS:o,itemMarginBlock:s,itemWidth:c,itemPaddingInline:l}=e,u=e.calc(a).add(i).add(o).equal();return{[`${t}-item`]:{position:`relative`,overflow:`hidden`},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:Y(n),paddingInline:l,overflow:`hidden`,textOverflow:`ellipsis`,marginInline:r,marginBlock:s,width:c},[`> ${t}-item,
|
|
180
180
|
> ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:Y(n)},[`${t}-item-group-list ${t}-submenu-title,
|
|
181
|
-
${t}-submenu-title`]:{paddingInlineEnd:u}}},
|
|
181
|
+
${t}-submenu-title`]:{paddingInlineEnd:u}}},kC=e=>{let{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:i,dropdownWidth:a,controlHeightLG:o,motionEaseOut:s,paddingXL:c,itemMarginInline:l,fontSizeLG:u,motionDurationFast:d,motionDurationSlow:f,paddingXS:p,boxShadowSecondary:m,collapsedWidth:h,collapsedIconSize:g}=e,_={height:r,lineHeight:Y(r),listStylePosition:`inside`,listStyleType:`disc`};return[{[t]:{"&-inline, &-vertical":{[`&${t}-root`]:{boxShadow:`none`},...OC(e)}},[`${t}-submenu-popup`]:{[`${t}-vertical`]:{...OC(e),boxShadow:m}}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:a,maxHeight:`calc(100vh - ${Y(e.calc(o).mul(2.5).equal())})`,padding:`0`,overflow:`hidden`,borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:`hidden`,overflowY:`auto`}}},{[`${t}-inline`]:{width:`100%`,[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:`flex`,alignItems:`center`,transition:[`border-color ${f}`,`background-color ${f}`,`padding ${d} ${s}`].join(`,`),[`> ${t}-title-content`]:{flex:`auto`,minWidth:0,overflow:`hidden`,textOverflow:`ellipsis`},"> *":{flex:`none`}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:`none`,[`& > ${t}-submenu > ${t}-submenu-title`]:_,[`& ${t}-item-group-title`]:{paddingInlineStart:c}},[`${t}-item`]:_}},{[`${t}-inline-collapsed`]:{width:h,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:u,textAlign:`center`}}},[`> ${t}-item,
|
|
182
182
|
> ${t}-item-group > ${t}-item-group-list > ${t}-item,
|
|
183
183
|
> ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,
|
|
184
184
|
> ${t}-submenu > ${t}-submenu-title`]:{display:`flex`,alignItems:`center`,justifyContent:`center`,insetInlineStart:0,paddingInline:`calc(50% - ${Y(e.calc(g).div(2).equal())} - ${Y(l)})`,textOverflow:`clip`,[`
|
|
185
185
|
${t}-submenu-arrow,
|
|
186
186
|
${t}-submenu-expand-icon
|
|
187
|
-
`]:{opacity:0},[`> ${t}-title-content`]:{width:0,opacity:0,overflow:`hidden`},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:g,lineHeight:Y(r),"+ span":{display:`inline-block`,width:0,opacity:0,overflow:`hidden`,marginInlineStart:0}}},[`${t}-item-icon, ${n}`]:{display:`inline-block`},"&-tooltip":{pointerEvents:`none`,[`${t}-item-icon, ${n}`]:{display:`none`},"a, a:hover":{color:i}},[`${t}-item-group-title`]:{...za,paddingInline:p}}}]},
|
|
188
|
-
&-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Y(h)})`},"&::after":{transform:`rotate(45deg) translateX(${Y(e.calc(h).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${Y(e.calc(m).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${Y(e.calc(h).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${Y(h)})`}}}},{[`${t}-layout-header`]:{[n]:{lineHeight:`inherit`}}}]},
|
|
187
|
+
`]:{opacity:0},[`> ${t}-title-content`]:{width:0,opacity:0,overflow:`hidden`},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:g,lineHeight:Y(r),"+ span":{display:`inline-block`,width:0,opacity:0,overflow:`hidden`,marginInlineStart:0}}},[`${t}-item-icon, ${n}`]:{display:`inline-block`},"&-tooltip":{pointerEvents:`none`,[`${t}-item-icon, ${n}`]:{display:`none`},"a, a:hover":{color:i}},[`${t}-item-group-title`]:{...za,paddingInline:p}}}]},AC=e=>{let{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:i,motionEaseOut:a,iconCls:o,iconSize:s,iconMarginInlineEnd:c}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:`relative`,display:`block`,margin:0,whiteSpace:`nowrap`,cursor:`pointer`,transition:[`border-color ${n}`,`background-color ${n}`,`padding calc(${n} + 0.1s) ${i}`].join(`,`),[`${t}-item-icon, ${o}`]:{minWidth:s,fontSize:s,transition:[`font-size ${r} ${a}`,`margin ${n} ${i}`,`color ${n}`].join(`,`),"+ span":{marginInlineStart:c,opacity:1,transition:[`opacity ${n} ${i}`,`margin ${n}`,`color ${n}`].join(`,`)}},[`${t}-item-icon`]:{...Va()},[`&${t}-item-only-child`]:{[`> ${o}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:`none !important`,cursor:`not-allowed`,"&::after":{borderColor:`transparent !important`},a:{color:`inherit !important`,cursor:`not-allowed`,pointerEvents:`none`},[`> ${t}-submenu-title`]:{color:`inherit !important`,cursor:`not-allowed`}}}},jC=e=>{let{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:i,menuArrowSize:a,menuArrowOffset:o}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:`absolute`,top:`50%`,insetInlineEnd:e.margin,width:a,color:`currentcolor`,transform:`translateY(-50%)`,transition:[`transform`,`opacity`].map(e=>`${e} ${n}`).join(`,`)},"&-arrow":{"&::before, &::after":{position:`absolute`,width:e.calc(a).mul(.6).equal(),height:e.calc(a).mul(.15).equal(),backgroundColor:`currentcolor`,borderRadius:i,transition:[`background-color`,`transform`,`top`,`color`].map(e=>`${e} ${n} ${r}`).join(`,`),content:`""`},"&::before":{transform:`rotate(45deg) translateY(${Y(e.calc(o).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${Y(o)})`}}}}},MC=e=>{let{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:i,motionDurationMid:a,motionEaseInOut:o,paddingXS:s,padding:c,colorSplit:l,lineWidth:u,zIndexPopup:d,borderRadiusLG:f,subMenuItemBorderRadius:p,menuArrowSize:m,menuArrowOffset:h,lineType:g,groupTitleLineHeight:_,groupTitleFontSize:v}=e;return[{"":{[n]:{...Ha(),"&-hidden":{display:`none`}}},[`${n}-submenu-hidden`]:{display:`none`}},{[n]:{...Ba(e),...Ha(),marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:`none`,outline:`none`,transition:`width ${i} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:`none`},"&-overflow":{display:`flex`,[`${n}-item`]:{flex:`none`}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${Y(s)} ${Y(c)}`,fontSize:v,lineHeight:_,transition:`all ${i}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color`,`background-color`].map(e=>`${e} ${i} ${o}`).join(`,`)},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${i}`,`background-color ${i}`,`padding ${a}`].map(e=>`${e} ${o}`).join(`,`)},[`${n}-submenu ${n}-sub`]:{cursor:`initial`,transition:[`background-color`,`padding`].map(e=>`${e} ${i} ${o}`).join(`,`)},[`${n}-title-content`]:{transition:`color ${i}`,"&-with-extra":{display:`inline-flex`,alignItems:`center`,width:`100%`},[`> ${t}-typography-ellipsis-single-line`]:{display:`inline`,verticalAlign:`unset`},[`${n}-item-extra`]:{marginInlineStart:`auto`,paddingInlineStart:e.padding}},[`${n}-item a`]:{"&::before":{position:`absolute`,inset:0,backgroundColor:`transparent`,content:`""`}},[`${n}-item-divider`]:{overflow:`hidden`,lineHeight:0,borderColor:l,borderStyle:g,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:`dashed`}},...AC(e),[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${Y(e.calc(r).mul(2).equal())} ${Y(c)}`}}},"&-submenu":{"&-popup":{position:`absolute`,zIndex:d,borderRadius:f,boxShadow:`none`,transformOrigin:`0 0`,[`&${n}-submenu`]:{background:`transparent`},"&::before":{position:`absolute`,inset:0,zIndex:-1,width:`100%`,height:`100%`,opacity:0,content:`""`},[`> ${n}`]:{borderRadius:f,...AC(e),...jC(e),[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:p},[`${n}-submenu-title::after`]:{transition:`transform ${i} ${o}`}}},"&-placement-leftTop, &-placement-bottomRight":{transformOrigin:`100% 0`},"&-placement-leftBottom, &-placement-topRight":{transformOrigin:`100% 100%`},"&-placement-rightBottom, &-placement-topLeft":{transformOrigin:`0 100%`},"&-placement-bottomLeft, &-placement-rightTop":{transformOrigin:`0 0`},"&-placement-leftTop, &-placement-leftBottom":{paddingInlineEnd:e.paddingXS},"&-placement-rightTop, &-placement-rightBottom":{paddingInlineStart:e.paddingXS},"&-placement-topRight, &-placement-topLeft":{paddingBottom:e.paddingXS},"&-placement-bottomRight, &-placement-bottomLeft":{paddingTop:e.paddingXS}},...jC(e),[`&-inline-collapsed ${n}-submenu-arrow,
|
|
188
|
+
&-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Y(h)})`},"&::after":{transform:`rotate(45deg) translateX(${Y(e.calc(h).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${Y(e.calc(m).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${Y(e.calc(h).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${Y(h)})`}}}},{[`${t}-layout-header`]:{[n]:{lineHeight:`inherit`}}}]},NC=e=>{let{colorPrimary:t,colorError:n,colorTextDisabled:r,colorErrorBg:i,colorText:a,colorTextDescription:o,colorBgContainer:s,colorFillAlter:c,colorFillContent:l,lineWidth:u,lineWidthBold:d,controlItemBgActive:f,colorBgTextHover:p,controlHeightLG:m,lineHeight:h,colorBgElevated:g,marginXXS:_,padding:v,fontSize:y,controlHeightSM:b,fontSizeLG:x,colorTextLightSolid:S,colorErrorHover:C}=e,w=e.activeBarWidth??0,T=e.activeBarBorderWidth??u,E=e.itemMarginInline??e.marginXXS,D=new Ai(S).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:a,itemColor:a,colorItemTextHover:a,itemHoverColor:a,colorItemTextHoverHorizontal:t,horizontalItemHoverColor:t,colorGroupTitle:o,groupTitleColor:o,colorItemTextSelected:t,itemSelectedColor:t,subMenuItemSelectedColor:t,colorItemTextSelectedHorizontal:t,horizontalItemSelectedColor:t,colorItemBg:s,itemBg:s,colorItemBgHover:p,itemHoverBg:p,colorItemBgActive:l,itemActiveBg:f,colorSubItemBg:c,subMenuItemBg:c,colorItemBgSelected:f,itemSelectedBg:f,colorItemBgSelectedHorizontal:`transparent`,horizontalItemSelectedBg:`transparent`,colorActiveBarWidth:0,activeBarWidth:w,colorActiveBarHeight:d,activeBarHeight:d,colorActiveBarBorderSize:u,activeBarBorderWidth:T,colorItemTextDisabled:r,itemDisabledColor:r,colorDangerItemText:n,dangerItemColor:n,colorDangerItemTextHover:n,dangerItemHoverColor:n,colorDangerItemTextSelected:n,dangerItemSelectedColor:n,colorDangerItemBgActive:i,dangerItemActiveBg:i,colorDangerItemBgSelected:i,dangerItemSelectedBg:i,itemMarginInline:E,horizontalItemBorderRadius:0,horizontalItemHoverBg:`transparent`,itemHeight:m,groupTitleLineHeight:h,collapsedWidth:m*2,popupBg:g,itemMarginBlock:_,itemPaddingInline:v,horizontalLineHeight:`${m*1.15}px`,iconSize:y,iconMarginInlineEnd:b-y,collapsedIconSize:x,groupTitleFontSize:y,darkItemDisabledColor:new Ai(S).setA(.25).toRgbString(),darkItemColor:D,darkDangerItemColor:n,darkItemBg:`#001529`,darkPopupBg:`#001529`,darkSubMenuItemBg:`#000c17`,darkItemSelectedColor:S,darkItemSelectedBg:t,darkDangerItemSelectedBg:n,darkItemHoverBg:`transparent`,darkGroupTitleColor:D,darkItemHoverColor:S,darkDangerItemHoverColor:C,darkDangerItemSelectedColor:S,darkDangerItemActiveBg:n,itemWidth:w?`calc(100% + ${T}px)`:`calc(100% - ${E*2}px)`}},PC=(e,t=e,n=!0)=>Ya(`Menu`,e=>{let{colorBgElevated:t,controlHeightLG:n,fontSize:r,darkItemColor:i,darkDangerItemColor:a,darkItemBg:o,darkSubMenuItemBg:s,darkItemSelectedColor:c,darkItemSelectedBg:l,darkDangerItemSelectedBg:u,darkItemHoverBg:d,darkGroupTitleColor:f,darkItemHoverColor:p,darkItemDisabledColor:m,darkDangerItemHoverColor:h,darkDangerItemSelectedColor:g,darkDangerItemActiveBg:_,popupBg:v,darkPopupBg:y}=e,b=e.calc(r).div(7).mul(5).equal(),x=ci(e,{menuArrowSize:b,menuHorizontalHeight:e.calc(n).mul(1.15).equal(),menuArrowOffset:e.calc(b).mul(.25).equal(),menuSubMenuBg:t,calc:e.calc,popupBg:v}),S=ci(x,{itemColor:i,itemHoverColor:p,groupTitleColor:f,itemSelectedColor:c,subMenuItemSelectedColor:c,itemBg:o,popupBg:y,subMenuItemBg:s,itemActiveBg:`transparent`,itemSelectedBg:l,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:d,itemDisabledColor:m,dangerItemColor:a,dangerItemHoverColor:h,dangerItemSelectedColor:g,dangerItemActiveBg:_,dangerItemSelectedBg:u,menuSubMenuBg:s,horizontalItemSelectedColor:c,horizontalItemSelectedBg:l});return[MC(x),wC(x),kC(x),DC(x,`light`),DC(S,`dark`),TC(x),Zd(x),xf(x,`slide-up`),xf(x,`slide-down`),If(x,`zoom-big`)]},NC,{deprecatedTokens:[[`colorGroupTitle`,`groupTitleColor`],[`radiusItem`,`itemBorderRadius`],[`radiusSubMenuItem`,`subMenuItemBorderRadius`],[`colorItemText`,`itemColor`],[`colorItemTextHover`,`itemHoverColor`],[`colorItemTextHoverHorizontal`,`horizontalItemHoverColor`],[`colorItemTextSelected`,`itemSelectedColor`],[`colorItemTextSelectedHorizontal`,`horizontalItemSelectedColor`],[`colorItemTextDisabled`,`itemDisabledColor`],[`colorDangerItemText`,`dangerItemColor`],[`colorDangerItemTextHover`,`dangerItemHoverColor`],[`colorDangerItemTextSelected`,`dangerItemSelectedColor`],[`colorDangerItemBgActive`,`dangerItemActiveBg`],[`colorDangerItemBgSelected`,`dangerItemSelectedBg`],[`colorItemBg`,`itemBg`],[`colorItemBgHover`,`itemHoverBg`],[`colorSubItemBg`,`subMenuItemBg`],[`colorItemBgActive`,`itemActiveBg`],[`colorItemBgSelectedHorizontal`,`horizontalItemSelectedBg`],[`colorActiveBarWidth`,`activeBarWidth`],[`colorActiveBarHeight`,`activeBarHeight`],[`colorActiveBarBorderSize`,`activeBarBorderWidth`],[`colorItemBgSelected`,`itemSelectedBg`]],injectStyle:n,unitless:{groupTitleLineHeight:!0}})(e,t),FC=e=>{let{popupClassName:t,icon:n,title:r,theme:i}=e,a=v.useContext(yC),{prefixCls:o,inlineCollapsed:s,theme:c,classNames:l,styles:u}=a,d=Zx(),f;if(!n)f=s&&!d.length&&r&&typeof r==`string`?v.createElement(`div`,{className:`${o}-inline-collapsed-noicon`},r.charAt(0)):v.createElement(`span`,{className:`${o}-title-content`},r);else{let e=v.isValidElement(r)&&r.type===`span`;f=v.createElement(v.Fragment,null,su(n,e=>({className:J(e.className,`${o}-item-icon`,l?.itemIcon),style:{...e.style,...u?.itemIcon}})),e?r:v.createElement(`span`,{className:`${o}-title-content`},r))}let p=v.useMemo(()=>({...a,firstLevel:!1}),[a]),[m]=Rc(`Menu`);return v.createElement(yC.Provider,{value:p},v.createElement(GS,{...de(e,[`icon`]),title:f,classNames:{list:l?.subMenu?.list,listTitle:l?.subMenu?.itemTitle},styles:{list:u?.subMenu?.list,listTitle:u?.subMenu?.itemTitle},popupClassName:J(o,t,l?.popup?.root,`${o}-${i||c}`),popupStyle:{zIndex:m,...e.popupStyle,...u?.popup?.root}}))};function IC(e){return e===null||e===!1}var LC={item:xC,submenu:FC,divider:bC},RC=(0,v.forwardRef)((e,t)=>{let n=v.useContext(SC),r=n||{},{prefixCls:i,className:a,style:o,theme:s=`light`,expandIcon:c,_internalDisableMenuItemTitleTooltip:l,tooltip:u,inlineCollapsed:d,siderCollapsed:f,rootClassName:p,mode:m,selectable:h,onClick:g,overflowedIndicatorPopupClassName:_,classNames:b,styles:x,...S}=e,{menu:C}=v.useContext(Ye),{getPrefixCls:w,getPopupContainer:T,direction:E,className:D,style:O,classNames:k,styles:A}=Qe(`menu`),j=w(),M=de(S,[`collapsedWidth`]);r.validator?.({mode:m});let N=y((...e)=>{g?.(...e),r.onClick?.()}),P=r.mode||m,F=h??r.selectable,I=d??f,L={...e,mode:P,inlineCollapsed:I,selectable:F,theme:s},[R,z]=Oc([k,b],[A,x],{props:L},{popup:{_default:`root`},subMenu:{_default:`item`}}),B={horizontal:{motionName:`${j}-slide-up`},inline:bd(j),other:{motionName:`${j}-zoom-big`}},V=w(`menu`,i||r.prefixCls),H=Xc(V),[U,W]=PC(V,H,!n),ee=J(`${V}-${s}`,D,a),te=v.useMemo(()=>{if(typeof c==`function`||IC(c))return c||null;if(typeof r.expandIcon==`function`||IC(r.expandIcon))return r.expandIcon||null;if(typeof C?.expandIcon==`function`||IC(C?.expandIcon))return C?.expandIcon||null;let e=c??r?.expandIcon??C?.expandIcon;return su(e,{className:J(`${V}-submenu-expand-icon`,v.isValidElement(e)?e.props?.className:void 0)})},[c,r?.expandIcon,C?.expandIcon,V]),ne=v.useMemo(()=>({prefixCls:V,inlineCollapsed:I||!1,direction:E,firstLevel:!0,theme:s,mode:P,disableMenuItemTitleTooltip:l,tooltip:u,classNames:R,styles:z}),[V,I,E,l,s,P,R,z,u]);return v.createElement(SC.Provider,{value:null},v.createElement(yC.Provider,{value:ne},v.createElement(tC,{getPopupContainer:T,overflowedIndicator:v.createElement(vC,null),overflowedIndicatorPopupClassName:J(V,`${V}-${s}`,_),classNames:{list:R.list,listTitle:R.itemTitle},styles:{list:z.list,listTitle:z.itemTitle},mode:P,selectable:F,onClick:N,...M,inlineCollapsed:I,style:{...z.root,...O,...o},className:ee,prefixCls:V,direction:E,defaultMotions:B,expandIcon:te,ref:t,rootClassName:J(p,U,r.rootClassName,W,H,R.root),_internalComponents:LC})))}),zC=(0,v.forwardRef)((e,t)=>{let n=(0,v.useRef)(null),r=v.useContext(pC);return(0,v.useImperativeHandle)(t,()=>({menu:n.current,focus:e=>{n.current?.focus(e)}})),v.createElement(RC,{ref:n,...e,...r})});zC.Item=xC,zC.SubMenu=FC,zC.Divider=bC,zC.ItemGroup=YS;var BC=e=>{let{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:i}=e,a=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${a}`]:{[`&${a}-danger:not(${a}-disabled)`]:{color:r,"&:hover":{color:i,backgroundColor:r}}}}}},VC=e=>{let{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:i,sizePopupArrow:a,antCls:o,iconCls:s,motionDurationMid:c,paddingBlock:l,fontSize:u,dropdownEdgeChildPadding:d,colorTextDisabled:f,fontSizeIcon:p,controlPaddingHorizontal:m,colorBgElevated:h}=e;return[{[t]:{position:`absolute`,top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:`block`,"&::before":{position:`absolute`,insetBlock:e.calc(a).div(2).sub(i).equal(),zIndex:-9999,opacity:1e-4,content:`""`},"&-menu-vertical":{maxHeight:`100vh`,overflowY:`auto`},[`&-trigger${o}-btn`]:{[`& > ${s}-down, & > ${o}-btn-icon > ${s}-down`]:{fontSize:p}},[`${t}-wrap`]:{position:`relative`,[`${o}-btn > ${s}-down`]:{fontSize:p},[`${s}-down::before`]:{transition:`transform ${c}`}},[`${t}-wrap-open`]:{[`${s}-down::before`]:{transform:`rotate(180deg)`}},"&-hidden, &-menu-hidden, &-menu-submenu-hidden":{display:`none`},[`&${o}-slide-down-enter${o}-slide-down-enter-active${t}-placement-bottomLeft,
|
|
189
189
|
&${o}-slide-down-appear${o}-slide-down-appear-active${t}-placement-bottomLeft,
|
|
190
190
|
&${o}-slide-down-enter${o}-slide-down-enter-active${t}-placement-bottom,
|
|
191
191
|
&${o}-slide-down-appear${o}-slide-down-appear-active${t}-placement-bottom,
|
|
@@ -199,7 +199,7 @@ html body {
|
|
|
199
199
|
&${o}-slide-down-leave${o}-slide-down-leave-active${t}-placement-bottom,
|
|
200
200
|
&${o}-slide-down-leave${o}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:pf},[`&${o}-slide-up-leave${o}-slide-up-leave-active${t}-placement-topLeft,
|
|
201
201
|
&${o}-slide-up-leave${o}-slide-up-leave-active${t}-placement-top,
|
|
202
|
-
&${o}-slide-up-leave${o}-slide-up-leave-active${t}-placement-topRight`]:{animationName:hf}}},$b(e,h,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:`relative`,margin:0},[`${n}-submenu-popup`]:{position:`absolute`,zIndex:r,background:`transparent`,boxShadow:`none`,transformOrigin:`0 0`,"ul, li":{listStyle:`none`,margin:0}},[`${t}, ${t}-menu-submenu`]:{...Ba(e),[n]:{padding:d,listStyleType:`none`,backgroundColor:h,backgroundClip:`padding-box`,borderRadius:e.borderRadiusLG,outline:`none`,boxShadow:e.boxShadowSecondary,...Wa(e),"&:empty":{padding:0,boxShadow:`none`},[`${n}-item-group-title`]:{padding:`${Y(l)} ${Y(m)}`,color:e.colorTextDescription,transition:`all ${c}`},[`${n}-item`]:{position:`relative`,display:`flex`,alignItems:`center`},[`${n}-item-icon`]:{minWidth:u,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:`auto`,"&-with-extra":{display:`inline-flex`,alignItems:`center`,width:`100%`},"> a":{color:`inherit`,transition:`all ${c}`,"&:hover":{color:`inherit`},"&::after":{position:`absolute`,inset:0,content:`""`}},[`${n}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:`auto`,fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${n}-item, ${n}-submenu-title`]:{display:`flex`,margin:0,padding:`${Y(l)} ${Y(m)}`,color:e.colorText,fontWeight:`normal`,fontSize:u,lineHeight:e.lineHeight,cursor:`pointer`,transition:`all ${c}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover},...Wa(e),"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:f,cursor:`not-allowed`,"&:hover":{color:f,backgroundColor:h,cursor:`not-allowed`},a:{pointerEvents:`none`}},"&-divider":{height:1,margin:`${Y(e.marginXXS)} 0`,overflow:`hidden`,lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:`absolute`,insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:`0 !important`,color:e.colorIcon,fontSize:p,fontStyle:`normal`}}},[`${n}-item-group-list`]:{margin:`0 ${Y(e.marginXS)}`,padding:0,listStyle:`none`},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(m).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:`relative`},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:f,backgroundColor:h,cursor:`not-allowed`}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}}}},[xf(e,`slide-up`),xf(e,`slide-down`),df(e,`move-up`),df(e,`move-down`),If(e,`zoom-big`)]]},zC=Ya(`Dropdown`,e=>{let{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:i}=e,a=ci(e,{menuCls:`${i}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[RC(a),LC(a)]},e=>({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2,...Zb({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0}),...Yb(e)}),{resetStyle:!1}),BC=e=>{let{menu:t,arrow:n,prefixCls:r,children:i,trigger:a,disabled:o,dropdownRender:s,popupRender:c,getPopupContainer:l,overlayClassName:u,rootClassName:d,overlayStyle:f,open:p,onOpenChange:m,mouseEnterDelay:h=.15,mouseLeaveDelay:g=.1,autoAdjustOverflow:_=!0,placement:b=``,transitionName:x,classNames:S,styles:C,destroyPopupOnHide:w,destroyOnHidden:E}=e,{getPrefixCls:D,direction:O,getPopupContainer:k,className:A,style:j,classNames:M,styles:N}=Qe(`dropdown`),P={...e,mouseEnterDelay:h,mouseLeaveDelay:g,autoAdjustOverflow:_},[F,I]=Oc([M,S],[N,C],{props:P}),L={...j,...f,...I.root},R=c||s;ge(`Dropdown`);let z=v.useMemo(()=>{let e=D();return x===void 0?b.includes(`top`)?`${e}-slide-down`:`${e}-slide-up`:x},[D,b,x]),B=v.useMemo(()=>b?b.includes(`Center`)?b.slice(0,b.indexOf(`Center`)):b:O===`rtl`?`bottomRight`:`bottomLeft`,[b,O]),V=D(`dropdown`,r),H=Xc(V),[U,W]=zC(V,H),[,ee]=Ra(),te=v.Children.only(dc(i)?v.createElement(`span`,null,i):i),ne=su(te,{className:J(`${V}-trigger`,{[`${V}-rtl`]:O===`rtl`},te.props.className),disabled:te.props.disabled??o}),re=o?[]:a,ie=!!re?.includes(`contextMenu`),[ae,G]=T(!1,p),K=y(e=>{m?.(e,{source:`trigger`}),G(e)}),oe=J(u,d,U,W,H,A,F.root,{[`${V}-rtl`]:O===`rtl`}),se=ix({arrowPointAtCenter:cc(n)&&n.pointAtCenter,autoAdjustOverflow:_,offset:ee.marginXXS,arrowWidth:n?ee.sizePopupArrow:0,borderRadius:ee.borderRadius}),ce=y(()=>{t?.selectable&&t?.multiple||(m?.(!1,{source:`menu`}),G(!1))}),q=()=>{let e=de(F,[`root`]),n=de(I,[`root`]),r;return t?.items&&(r=v.createElement(IC,{...t,classNames:{...e,subMenu:{...e}},styles:{...n,subMenu:{...n}}})),R&&(r=R(r)),r=v.Children.only(typeof r==`string`?v.createElement(`span`,null,r):r),v.createElement(bC,{prefixCls:`${V}-menu`,rootClassName:J(W,H),expandIcon:v.createElement(`span`,{className:`${V}-menu-submenu-arrow`},O===`rtl`?v.createElement(Ox,{className:`${V}-menu-submenu-arrow-icon`}):v.createElement(qf,{className:`${V}-menu-submenu-arrow-icon`})),mode:`vertical`,selectable:!1,onClick:ce,validator:({mode:e})=>{}},r)},[le,ue]=Rc(`Dropdown`,L.zIndex),fe=v.createElement(Lx,{alignPoint:ie,...de(e,[`rootClassName`,`onOpenChange`]),mouseEnterDelay:h,mouseLeaveDelay:g,visible:ae,builtinPlacements:se,arrow:!!n,overlayClassName:oe,prefixCls:V,getPopupContainer:l||k,transitionName:z,trigger:re,overlay:q,placement:B,onVisibleChange:K,overlayStyle:{...L,zIndex:le},autoDestroy:E??w},ne);return le&&(fe=v.createElement(Mc.Provider,{value:ue},fe)),fe},VC=X_(BC,`align`,void 0,`dropdown`,e=>e);BC._InternalPanelDoNotUseOrYouWillBeFired=e=>v.createElement(VC,{...e},v.createElement(`span`,null));var HC=vp;function UC(e){return ci(e,{inputAffixPadding:e.paddingXXS})}var WC=e=>{let{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:i,controlHeightSM:a,controlHeightLG:o,fontSizeLG:s,lineHeightLG:c,paddingSM:l,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:f,colorPrimaryHover:p,colorPrimary:m,controlOutlineWidth:h,controlOutline:g,colorErrorOutline:_,colorWarningOutline:v,colorBgContainer:y,inputFontSize:b,inputFontSizeLG:x,inputFontSizeSM:S}=e,C=b||n,w=S||C,T=x||s,E=Math.round((t-C*r)/2*10)/10-i,D=Math.round((a-w*r)/2*10)/10-i,O=Math.ceil((o-T*c)/2*10)/10-i;return{paddingBlock:Math.max(E,0),paddingBlockSM:Math.max(D,0),paddingBlockLG:Math.max(O,0),paddingInline:l-i,paddingInlineSM:u-i,paddingInlineLG:d-i,addonBg:f,activeBorderColor:m,hoverBorderColor:p,activeShadow:`0 0 0 ${h}px ${g}`,errorActiveShadow:`0 0 0 ${h}px ${_}`,warningActiveShadow:`0 0 0 ${h}px ${v}`,hoverBg:y,activeBg:y,inputFontSize:C,inputFontSizeLG:T,inputFontSizeSM:w}},GC=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),KC=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorderDisabled,boxShadow:`none`,cursor:`not-allowed`,opacity:1,"input[disabled], textarea[disabled]":{cursor:`not-allowed`},"&:hover:not([disabled])":{...GC(ci(e,{hoverBorderColor:e.colorBorderDisabled,hoverBg:e.colorBgContainerDisabled}))}}),qC=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),JC=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...qC(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}},[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),YC=(e,t)=>({"&-outlined":{...qC(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow}),[`&${e.componentCls}-disabled, &[disabled]`]:{...KC(e)},...JC(e,{status:`error`,borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError}),...JC(e,{status:`warning`,borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning}),...t}}),XC=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),ZC=e=>({"&-outlined":{[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${Y(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},...XC(e,{status:`error`,addonBorderColor:e.colorError,addonColor:e.colorErrorText}),...XC(e,{status:`warning`,addonBorderColor:e.colorWarning,addonColor:e.colorWarningText}),[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:{...KC(e)}}}}),QC=(e,t)=>{let{componentCls:n}=e;return{"&-borderless":{background:`transparent`,border:`none`,paddingBlock:e.calc(e.paddingBlock).add(e.lineWidth).equal(),[`&${n}-sm, &${n}-affix-wrapper-sm`]:{paddingBlock:e.calc(e.paddingBlockSM).add(e.lineWidth).equal()},[`&${n}-lg, &${n}-affix-wrapper-lg`]:{paddingBlock:e.calc(e.paddingBlockLG).add(e.lineWidth).equal()},"&:focus, &:focus-within":{outline:`none`},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:`not-allowed`},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}},...t}}},$C=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:`transparent`,"input&, & input, textarea&, & textarea":{color:t?.inputColor??`unset`},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),ew=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...$C(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}}),tw=(e,t)=>({"&-filled":{...$C(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,inputColor:e.colorText}),[`&${e.componentCls}-disabled, &[disabled]`]:{...KC(e)},...ew(e,{status:`error`,bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError}),...ew(e,{status:`warning`,bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning}),...t}}),nw=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),rw=e=>({"&-filled":{[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:`static`}},...nw(e,{status:`error`,addonBg:e.colorErrorBg,addonColor:e.colorErrorText}),...nw(e,{status:`warning`,addonBg:e.colorWarningBg,addonColor:e.colorWarningText}),[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${Y(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Y(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Y(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${Y(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Y(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Y(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}}}),iw=(e,t)=>({background:e.colorBgContainer,borderWidth:`${Y(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.hoverBorderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.activeBorderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),aw=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...iw(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}},[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:`transparent transparent ${t.borderColor} transparent`}}),ow=(e,t)=>({"&-underlined":{...iw(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow}),[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled,boxShadow:`none`,cursor:`not-allowed`,"&:hover":{borderColor:`transparent transparent ${e.colorBorder} transparent`}},"input[disabled], textarea[disabled]":{cursor:`not-allowed`},...aw(e,{status:`error`,borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError}),...aw(e,{status:`warning`,borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning}),...t}}),sw=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:`none`},"&:placeholder-shown":{textOverflow:`ellipsis`}}),cw=e=>{let{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:i}=e;return{padding:`${Y(t)} ${Y(i)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},lw=e=>({padding:`${Y(e.paddingBlockSM)} ${Y(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),uw=(e,t={})=>({position:`relative`,display:`inline-block`,width:`100%`,minWidth:0,padding:`${Y(e.paddingBlock)} ${Y(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`,...sw(e.colorTextPlaceholder),"&-lg":{...cw(e),...t.largeStyle},"&-sm":{...lw(e),...t.smallStyle},"&-rtl, &-textarea-rtl":{direction:`rtl`}}),dw=e=>{let{componentCls:t,antCls:n}=e;return{position:`relative`,display:`table`,width:`100%`,borderCollapse:`separate`,borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:{...cw(e)},[`&-sm ${t}, &-sm > ${t}-group-addon`]:{...lw(e)},[`&-lg ${n}-select-single`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single`]:{height:e.controlHeightSM},[`> ${t}`]:{display:`table-cell`,"&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:`table-cell`,width:1,whiteSpace:`nowrap`,verticalAlign:`middle`,"&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:`block !important`},"&-addon":{position:`relative`,padding:`0 ${Y(e.paddingInline)}`,color:e.colorText,fontWeight:`normal`,fontSize:e.inputFontSize,textAlign:`center`,borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${Y(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${Y(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{backgroundColor:`inherit`,border:`${Y(e.lineWidth)} ${e.lineType} transparent`,boxShadow:`none`}},[`${n}-cascader-picker`]:{margin:`-9px ${Y(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:`transparent`,[`${n}-cascader-input`]:{textAlign:`start`,border:0,boxShadow:`none`}}}},[t]:{width:`100%`,marginBottom:0,textAlign:`inherit`,"&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0},"&:not(:first-child)":{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:{display:`block`,...Ha(),[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:`inline-flex`,float:`none`,verticalAlign:`top`,borderRadius:0},[`
|
|
202
|
+
&${o}-slide-up-leave${o}-slide-up-leave-active${t}-placement-topRight`]:{animationName:hf}}},$b(e,h,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:`relative`,margin:0},[`${n}-submenu-popup`]:{position:`absolute`,zIndex:r,background:`transparent`,boxShadow:`none`,transformOrigin:`0 0`,"ul, li":{listStyle:`none`,margin:0}},[`${t}, ${t}-menu-submenu`]:{...Ba(e),[n]:{padding:d,listStyleType:`none`,backgroundColor:h,backgroundClip:`padding-box`,borderRadius:e.borderRadiusLG,outline:`none`,boxShadow:e.boxShadowSecondary,...Wa(e),"&:empty":{padding:0,boxShadow:`none`},[`${n}-item-group-title`]:{padding:`${Y(l)} ${Y(m)}`,color:e.colorTextDescription,transition:`all ${c}`},[`${n}-item`]:{position:`relative`,display:`flex`,alignItems:`center`},[`${n}-item-icon`]:{minWidth:u,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:`auto`,"&-with-extra":{display:`inline-flex`,alignItems:`center`,width:`100%`},"> a":{color:`inherit`,transition:`all ${c}`,"&:hover":{color:`inherit`},"&::after":{position:`absolute`,inset:0,content:`""`}},[`${n}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:`auto`,fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${n}-item, ${n}-submenu-title`]:{display:`flex`,margin:0,padding:`${Y(l)} ${Y(m)}`,color:e.colorText,fontWeight:`normal`,fontSize:u,lineHeight:e.lineHeight,cursor:`pointer`,transition:`all ${c}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover},...Wa(e),"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:f,cursor:`not-allowed`,"&:hover":{color:f,backgroundColor:h,cursor:`not-allowed`},a:{pointerEvents:`none`}},"&-divider":{height:1,margin:`${Y(e.marginXXS)} 0`,overflow:`hidden`,lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:`absolute`,insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:`0 !important`,color:e.colorIcon,fontSize:p,fontStyle:`normal`}}},[`${n}-item-group-list`]:{margin:`0 ${Y(e.marginXS)}`,padding:0,listStyle:`none`},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(m).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:`relative`},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:f,backgroundColor:h,cursor:`not-allowed`}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}}}},[xf(e,`slide-up`),xf(e,`slide-down`),df(e,`move-up`),df(e,`move-down`),If(e,`zoom-big`)]]},HC=Ya(`Dropdown`,e=>{let{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:i}=e,a=ci(e,{menuCls:`${i}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[VC(a),BC(a)]},e=>({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2,...Zb({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0}),...Yb(e)}),{resetStyle:!1}),UC=e=>{let{menu:t,arrow:n,prefixCls:r,children:i,trigger:a,disabled:o,dropdownRender:s,popupRender:c,getPopupContainer:l,overlayClassName:u,rootClassName:d,overlayStyle:f,open:p,onOpenChange:m,mouseEnterDelay:h=.15,mouseLeaveDelay:g=.1,autoAdjustOverflow:_=!0,placement:b=``,transitionName:x,classNames:S,styles:C,destroyPopupOnHide:w,destroyOnHidden:E}=e,{getPrefixCls:D,direction:O,getPopupContainer:k,className:A,style:j,classNames:M,styles:N}=Qe(`dropdown`),P={...e,mouseEnterDelay:h,mouseLeaveDelay:g,autoAdjustOverflow:_},[F,I]=Oc([M,S],[N,C],{props:P}),L={...j,...f,...I.root},R=c||s;ge(`Dropdown`);let z=v.useMemo(()=>{let e=D();return x===void 0?b.includes(`top`)?`${e}-slide-down`:`${e}-slide-up`:x},[D,b,x]),B=v.useMemo(()=>b?b.includes(`Center`)?b.slice(0,b.indexOf(`Center`)):b:O===`rtl`?`bottomRight`:`bottomLeft`,[b,O]),V=D(`dropdown`,r),H=Xc(V),[U,W]=HC(V,H),[,ee]=Ra(),te=v.Children.only(dc(i)?v.createElement(`span`,null,i):i),ne=su(te,{className:J(`${V}-trigger`,{[`${V}-rtl`]:O===`rtl`},te.props.className),disabled:te.props.disabled??o}),re=o?[]:a,ie=!!re?.includes(`contextMenu`),[ae,G]=T(!1,p),K=y(e=>{m?.(e,{source:`trigger`}),G(e)}),oe=J(u,d,U,W,H,A,F.root,{[`${V}-rtl`]:O===`rtl`}),se=ix({arrowPointAtCenter:cc(n)&&n.pointAtCenter,autoAdjustOverflow:_,offset:ee.marginXXS,arrowWidth:n?ee.sizePopupArrow:0,borderRadius:ee.borderRadius}),ce=y(()=>{t?.selectable&&t?.multiple||(m?.(!1,{source:`menu`}),G(!1))}),q=()=>{let e=de(F,[`root`]),n=de(I,[`root`]),r;return t?.items&&(r=v.createElement(zC,{...t,classNames:{...e,subMenu:{...e}},styles:{...n,subMenu:{...n}}})),R&&(r=R(r)),r=v.Children.only(typeof r==`string`?v.createElement(`span`,null,r):r),v.createElement(CC,{prefixCls:`${V}-menu`,rootClassName:J(W,H),expandIcon:v.createElement(`span`,{className:`${V}-menu-submenu-arrow`},O===`rtl`?v.createElement(jx,{className:`${V}-menu-submenu-arrow-icon`}):v.createElement(qf,{className:`${V}-menu-submenu-arrow-icon`})),mode:`vertical`,selectable:!1,onClick:ce,validator:({mode:e})=>{}},r)},[le,ue]=Rc(`Dropdown`,L.zIndex),fe=v.createElement(Bx,{alignPoint:ie,...de(e,[`rootClassName`,`onOpenChange`]),mouseEnterDelay:h,mouseLeaveDelay:g,visible:ae,builtinPlacements:se,arrow:!!n,overlayClassName:oe,prefixCls:V,getPopupContainer:l||k,transitionName:z,trigger:re,overlay:q,placement:B,onVisibleChange:K,overlayStyle:{...L,zIndex:le},autoDestroy:E??w},ne);return le&&(fe=v.createElement(Mc.Provider,{value:ue},fe)),fe},WC=X_(UC,`align`,void 0,`dropdown`,e=>e);UC._InternalPanelDoNotUseOrYouWillBeFired=e=>v.createElement(WC,{...e},v.createElement(`span`,null));var GC=vp;function KC(e){return ci(e,{inputAffixPadding:e.paddingXXS})}var qC=e=>{let{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:i,controlHeightSM:a,controlHeightLG:o,fontSizeLG:s,lineHeightLG:c,paddingSM:l,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:f,colorPrimaryHover:p,colorPrimary:m,controlOutlineWidth:h,controlOutline:g,colorErrorOutline:_,colorWarningOutline:v,colorBgContainer:y,inputFontSize:b,inputFontSizeLG:x,inputFontSizeSM:S}=e,C=b||n,w=S||C,T=x||s,E=Math.round((t-C*r)/2*10)/10-i,D=Math.round((a-w*r)/2*10)/10-i,O=Math.ceil((o-T*c)/2*10)/10-i;return{paddingBlock:Math.max(E,0),paddingBlockSM:Math.max(D,0),paddingBlockLG:Math.max(O,0),paddingInline:l-i,paddingInlineSM:u-i,paddingInlineLG:d-i,addonBg:f,activeBorderColor:m,hoverBorderColor:p,activeShadow:`0 0 0 ${h}px ${g}`,errorActiveShadow:`0 0 0 ${h}px ${_}`,warningActiveShadow:`0 0 0 ${h}px ${v}`,hoverBg:y,activeBg:y,inputFontSize:C,inputFontSizeLG:T,inputFontSizeSM:w}},JC=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),YC=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorderDisabled,boxShadow:`none`,cursor:`not-allowed`,opacity:1,"input[disabled], textarea[disabled]":{cursor:`not-allowed`},"&:hover:not([disabled])":{...JC(ci(e,{hoverBorderColor:e.colorBorderDisabled,hoverBg:e.colorBgContainerDisabled}))}}),XC=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),ZC=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...XC(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}},[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),QC=(e,t)=>({"&-outlined":{...XC(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow}),[`&${e.componentCls}-disabled, &[disabled]`]:{...YC(e)},...ZC(e,{status:`error`,borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError}),...ZC(e,{status:`warning`,borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning}),...t}}),$C=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),ew=e=>({"&-outlined":{[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${Y(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},...$C(e,{status:`error`,addonBorderColor:e.colorError,addonColor:e.colorErrorText}),...$C(e,{status:`warning`,addonBorderColor:e.colorWarning,addonColor:e.colorWarningText}),[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:{...YC(e)}}}}),tw=(e,t)=>{let{componentCls:n}=e;return{"&-borderless":{background:`transparent`,border:`none`,paddingBlock:e.calc(e.paddingBlock).add(e.lineWidth).equal(),[`&${n}-sm, &${n}-affix-wrapper-sm`]:{paddingBlock:e.calc(e.paddingBlockSM).add(e.lineWidth).equal()},[`&${n}-lg, &${n}-affix-wrapper-lg`]:{paddingBlock:e.calc(e.paddingBlockLG).add(e.lineWidth).equal()},"&:focus, &:focus-within":{outline:`none`},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:`not-allowed`},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}},...t}}},nw=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:`transparent`,"input&, & input, textarea&, & textarea":{color:t?.inputColor??`unset`},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),rw=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...nw(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}}),iw=(e,t)=>({"&-filled":{...nw(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,inputColor:e.colorText}),[`&${e.componentCls}-disabled, &[disabled]`]:{...YC(e)},...rw(e,{status:`error`,bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError}),...rw(e,{status:`warning`,bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning}),...t}}),aw=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),ow=e=>({"&-filled":{[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:`static`}},...aw(e,{status:`error`,addonBg:e.colorErrorBg,addonColor:e.colorErrorText}),...aw(e,{status:`warning`,addonBg:e.colorWarningBg,addonColor:e.colorWarningText}),[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${Y(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Y(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Y(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${Y(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Y(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Y(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}}}),sw=(e,t)=>({background:e.colorBgContainer,borderWidth:`${Y(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.hoverBorderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.activeBorderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),cw=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...sw(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}},[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:`transparent transparent ${t.borderColor} transparent`}}),lw=(e,t)=>({"&-underlined":{...sw(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow}),[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled,boxShadow:`none`,cursor:`not-allowed`,"&:hover":{borderColor:`transparent transparent ${e.colorBorder} transparent`}},"input[disabled], textarea[disabled]":{cursor:`not-allowed`},...cw(e,{status:`error`,borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError}),...cw(e,{status:`warning`,borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning}),...t}}),uw=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:`none`},"&:placeholder-shown":{textOverflow:`ellipsis`}}),dw=e=>{let{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:i}=e;return{padding:`${Y(t)} ${Y(i)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},fw=e=>({padding:`${Y(e.paddingBlockSM)} ${Y(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),pw=(e,t={})=>({position:`relative`,display:`inline-block`,width:`100%`,minWidth:0,padding:`${Y(e.paddingBlock)} ${Y(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`,...uw(e.colorTextPlaceholder),"&-lg":{...dw(e),...t.largeStyle},"&-sm":{...fw(e),...t.smallStyle},"&-rtl, &-textarea-rtl":{direction:`rtl`}}),mw=e=>{let{componentCls:t,antCls:n}=e;return{position:`relative`,display:`table`,width:`100%`,borderCollapse:`separate`,borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:{...dw(e)},[`&-sm ${t}, &-sm > ${t}-group-addon`]:{...fw(e)},[`&-lg ${n}-select-single`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single`]:{height:e.controlHeightSM},[`> ${t}`]:{display:`table-cell`,"&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:`table-cell`,width:1,whiteSpace:`nowrap`,verticalAlign:`middle`,"&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:`block !important`},"&-addon":{position:`relative`,padding:`0 ${Y(e.paddingInline)}`,color:e.colorText,fontWeight:`normal`,fontSize:e.inputFontSize,textAlign:`center`,borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${Y(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${Y(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{backgroundColor:`inherit`,border:`${Y(e.lineWidth)} ${e.lineType} transparent`,boxShadow:`none`}},[`${n}-cascader-picker`]:{margin:`-9px ${Y(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:`transparent`,[`${n}-cascader-input`]:{textAlign:`start`,border:0,boxShadow:`none`}}}},[t]:{width:`100%`,marginBottom:0,textAlign:`inherit`,"&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0},"&:not(:first-child)":{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:{display:`block`,...Ha(),[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:`inline-flex`,float:`none`,verticalAlign:`top`,borderRadius:0},[`
|
|
203
203
|
& > ${t}-affix-wrapper,
|
|
204
204
|
& > ${t}-number-affix-wrapper,
|
|
205
205
|
& > ${n}-picker-range
|
|
@@ -212,17 +212,17 @@ html body {
|
|
|
212
212
|
& > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
|
|
213
213
|
& > ${n}-select:last-child,
|
|
214
214
|
& > ${n}-cascader-picker:last-child ${t},
|
|
215
|
-
& > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:`top`},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{}}}}},fw=e=>{let{componentCls:t,controlHeightSM:n,lineWidth:r,calc:i}=e,a=i(n).sub(i(r).mul(2)).sub(16).div(2).equal();return{[t]:{...Ba(e),...uw(e),...YC(e),...tw(e),...QC(e),...ow(e),'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:a,paddingBottom:a}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:`none`}}}},pw=e=>{let{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:`pointer`,transition:`color ${e.motionDurationSlow}`,border:`none`,outline:`none`,backgroundColor:`transparent`,"&:hover":{color:e.colorIcon},"&:focus-visible":{color:e.colorIcon,borderRadius:e.borderRadiusSM,...Ua(e)},"&:active":{color:e.colorText},"&-hidden":{visibility:`hidden`},"&-has-suffix":{margin:`0 ${Y(e.inputAffixPadding)}`}}}},mw=e=>{let{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:i,colorIcon:a,colorIconHover:o,iconCls:s}=e,c=`${t}-affix-wrapper`,l=`${t}-affix-wrapper-disabled`;return{[c]:{...uw(e),display:`inline-flex`,"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:`inherit`,border:`none`,borderRadius:0,outline:`none`,background:`transparent`,color:`inherit`,"&::-ms-reveal":{display:`none`},"&:focus":{boxShadow:`none !important`}},"&::before":{display:`inline-block`,width:0,visibility:`hidden`,content:`"\\a0"`},[t]:{"&-prefix, &-suffix":{display:`flex`,flex:`none`,alignItems:`center`,"> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r,direction:`ltr`},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}},...pw(e),[`${s}${t}-password-icon`]:{color:a,cursor:`pointer`,transition:`all ${i}`,"&:hover":{color:o}}},[`${t}-underlined`]:{borderRadius:0},[l]:{[`${s}${t}-password-icon`]:{color:a,cursor:`not-allowed`,"&:hover":{color:a}}}}},hw=e=>{let{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:{...Ba(e),...dw(e),"&-rtl":{direction:`rtl`},"&-wrapper":{display:`inline-block`,width:`100%`,textAlign:`start`,verticalAlign:`top`,"&-rtl":{direction:`rtl`},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}},...ZC(e),...rw(e),[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}}},gw=e=>{let{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},_w=Ya([`Input`,`Shared`],e=>{let t=ci(e,UC(e));return[fw(t),mw(t)]},WC,{resetFont:!1}),vw=Ya([`Input`,`Component`],e=>{let t=ci(e,UC(e));return[hw(t),gw(t),up(t,{focus:!0,focusElCls:`${t.componentCls}-affix-wrapper-focused`})]},WC,{resetFont:!1}),yw={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z`}},{tag:`path`,attrs:{d:`M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z`}}]},name:`plus`,theme:`outlined`};function bw(){return bw=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},bw.apply(this,arguments)}var xw=v.forwardRef((e,t)=>v.createElement(Co,bw({},e,{ref:t,icon:yw}))),Sw=l(o(((e,t)=>{t.exports=a,t.exports.isMobile=a,t.exports.default=a;var n=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|redmi|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,r=/CrOS/,i=/android|ipad|playbook|silk/i;function a(e){e||={};let t=e.ua;if(!t&&typeof navigator<`u`&&(t=navigator.userAgent),t&&t.headers&&typeof t.headers[`user-agent`]==`string`&&(t=t.headers[`user-agent`]),typeof t!=`string`)return!1;let a=n.test(t)&&!r.test(t)||!!e.tablet&&i.test(t);return!a&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&t.indexOf(`Macintosh`)!==-1&&t.indexOf(`Safari`)!==-1&&(a=!0),a}}))()),Cw,ww=()=>(Cw===void 0&&(Cw=(0,Sw.default)()),Cw),Tw=(0,v.createContext)(null),Ew=e=>{let{activeTabOffset:t,horizontal:n,rtl:r,indicator:i={}}=e,{size:a,align:o=`center`}=i,[s,c]=(0,v.useState)(),l=(0,v.useRef)(),u=v.useCallback(e=>typeof a==`function`?a(e):typeof a==`number`?a:e,[a]);function d(){Ke.cancel(l.current)}return(0,v.useEffect)(()=>{let e={};if(t)if(n){e.width=u(t.width);let n=r?`right`:`left`;o===`start`&&(e[n]=t[n]),o===`center`&&(e[n]=t[n]+t.width/2,e.transform=r?`translateX(50%)`:`translateX(-50%)`),o===`end`&&(e[n]=t[n]+t.width,e.transform=`translateX(-100%)`)}else e.height=u(t.height),o===`start`&&(e.top=t.top),o===`center`&&(e.top=t.top+t.height/2,e.transform=`translateY(-50%)`),o===`end`&&(e.top=t.top+t.height,e.transform=`translateY(-100%)`);return d(),l.current=Ke(()=>{s&&e&&Object.keys(e).every(t=>{let n=e[t],r=s[t];return typeof n==`number`&&typeof r==`number`?Math.round(n)===Math.round(r):n===r})||c(e)}),d},[JSON.stringify(t),n,r,o,u]),{style:s}},Dw={width:0,height:0,left:0,top:0};function Ow(e,t,n){return(0,v.useMemo)(()=>{let n=new Map,r=t.get(e[0]?.key)||Dw,i=r.left+r.width;for(let r=0;r<e.length;r+=1){let{key:a}=e[r],o=t.get(a);o||=t.get(e[r-1]?.key)||Dw;let s=n.get(a)||{...o};s.right=i-s.left-s.width,n.set(a,s)}return n},[e.map(e=>e.key).join(`_`),t,n])}function kw(e,t){let n=v.useRef(e),[,r]=v.useState({});function i(e){let i=typeof e==`function`?e(n.current):e;i!==n.current&&t(i,n.current),n.current=i,r({})}return[n.current,i]}var Aw=.1,jw=.01,Mw=20,Nw=.995**Mw;function Pw(e,t){let[n,r]=(0,v.useState)(),[i,a]=(0,v.useState)(0),[o,s]=(0,v.useState)(0),[c,l]=(0,v.useState)(),u=(0,v.useRef)();function d(e){let{screenX:t,screenY:n}=e.touches[0];r({x:t,y:n}),window.clearInterval(u.current)}function f(e){if(!n)return;let{screenX:o,screenY:c}=e.touches[0];r({x:o,y:c});let u=o-n.x,d=c-n.y;t(u,d);let f=Date.now();a(f),s(f-i),l({x:u,y:d})}function p(){if(n&&(r(null),l(null),c)){let e=c.x/o,n=c.y/o;if(Math.max(Math.abs(e),Math.abs(n))<Aw)return;let r=e,i=n;u.current=window.setInterval(()=>{if(Math.abs(r)<jw&&Math.abs(i)<jw){window.clearInterval(u.current);return}r*=Nw,i*=Nw,t(r*Mw,i*Mw)},Mw)}}let m=(0,v.useRef)();function h(e){let{deltaX:n,deltaY:r}=e,i=0,a=Math.abs(n),o=Math.abs(r);a===o?i=m.current===`x`?n:r:a>o?(i=n,m.current=`x`):(i=r,m.current=`y`),t(-i,-i)&&e.preventDefault()}let g=(0,v.useRef)(null);g.current={onTouchStart:d,onTouchMove:f,onTouchEnd:p,onWheel:h},v.useEffect(()=>{function t(e){g.current.onTouchStart(e)}function n(e){g.current.onTouchMove(e)}function r(e){g.current.onTouchEnd(e)}function i(e){g.current.onWheel(e)}return document.addEventListener(`touchmove`,n,{passive:!1}),document.addEventListener(`touchend`,r,{passive:!0}),e.current.addEventListener(`touchstart`,t,{passive:!0}),e.current.addEventListener(`wheel`,i,{passive:!1}),()=>{document.removeEventListener(`touchmove`,n),document.removeEventListener(`touchend`,r)}},[])}function Fw(e){let[t,n]=(0,v.useState)(0),r=(0,v.useRef)(0),i=(0,v.useRef)();return i.current=e,C(()=>{i.current?.()},[t]),()=>{r.current===t&&(r.current+=1,n(r.current))}}function Iw(e){let t=(0,v.useRef)([]),[,n]=(0,v.useState)({}),r=(0,v.useRef)(typeof e==`function`?e():e),i=Fw(()=>{let e=r.current;t.current.forEach(t=>{e=t(e)}),t.current=[],r.current=e,n({})});function a(e){t.current.push(e),i()}return[r.current,a]}var Lw={width:0,height:0,left:0,top:0,right:0};function Rw(e,t,n,r,i,a,{tabs:o,tabPosition:s,rtl:c}){let l,u,d;return[`top`,`bottom`].includes(s)?(l=`width`,u=c?`right`:`left`,d=Math.abs(n)):(l=`height`,u=`top`,d=-n),(0,v.useMemo)(()=>{if(!o.length)return[0,0];let n=o.length,r=n;for(let i=0;i<n;i+=1){let n=e.get(o[i].key)||Lw;if(Math.floor(n[u]+n[l])>Math.floor(d+t)){r=i-1;break}}let i=0;for(let t=n-1;t>=0;--t)if((e.get(o[t].key)||Lw)[u]<d){i=t+1;break}return i>r?[0,-1]:[i,r]},[e,t,r,i,a,d,s,o.map(e=>e.key).join(`_`),c])}function zw(e){let t;return e instanceof Map?(t={},e.forEach((e,n)=>{t[n]=e})):t=e,JSON.stringify(t)}var Bw=`TABS_DQ`;function Vw(e){return String(e).replace(/"/g,Bw)}function Hw(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var Uw=v.forwardRef((e,t)=>{let{prefixCls:n,editable:r,locale:i,style:a}=e;return!r||r.showAdd===!1?null:v.createElement(`button`,{ref:t,type:`button`,className:`${n}-nav-add`,style:a,"aria-label":i?.addAriaLabel||`Add tab`,onClick:e=>{r.onEdit(`add`,{event:e})}},r.addIcon||`+`)}),Ww=v.forwardRef((e,t)=>{let{position:n,prefixCls:r,extra:i}=e;if(!i)return null;let a,o={};return typeof i==`object`&&!v.isValidElement(i)?o=i:o.right=i,n===`right`&&(a=o.right),n===`left`&&(a=o.left),a?v.createElement(`div`,{className:`${r}-extra-content`,ref:t},a):null});function Gw(){return Gw=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},Gw.apply(this,arguments)}var Kw=v.forwardRef((e,t)=>{let{prefixCls:n,id:r,tabs:i,locale:a,mobile:o,more:s={},style:c,className:l,editable:u,tabBarGutter:d,rtl:f,removeAriaLabel:p,onTabClick:m,getPopupContainer:h,popupClassName:g,popupStyle:_}=e,[y,b]=(0,v.useState)(!1),[x,S]=(0,v.useState)(null),{icon:C=`More`}=s,w=`${r}-more-popup`,T=`${n}-dropdown`,E=x===null?null:`${w}-${x}`,D=a?.dropdownAriaLabel;function O(e,t){e.preventDefault(),e.stopPropagation(),u.onEdit(`remove`,{key:t,event:e})}let k=v.createElement(QS,{onClick:({key:e,domEvent:t})=>{m(e,t),b(!1)},prefixCls:`${T}-menu`,id:w,tabIndex:-1,role:`listbox`,"aria-activedescendant":E,selectedKeys:[x],"aria-label":D===void 0?`expanded dropdown`:D},i.map(e=>{let{closable:t,disabled:n,closeIcon:i,key:a,label:o}=e,s=Hw(t,i,u,n);return v.createElement(OS,{key:a,id:`${w}-${a}`,role:`option`,"aria-controls":r&&`${r}-panel-${a}`,disabled:n},v.createElement(`span`,null,o),s&&v.createElement(`button`,{type:`button`,"aria-label":p||`remove`,tabIndex:0,className:`${T}-menu-item-remove`,onClick:e=>{e.stopPropagation(),O(e,a)}},i||u.removeIcon||`×`))}));function A(e){let t=i.filter(e=>!e.disabled),n=t.findIndex(e=>e.key===x)||0,r=t.length;for(let i=0;i<r;i+=1){n=(n+e+r)%r;let i=t[n];if(!i.disabled){S(i.key);return}}}function j(e){let{which:t}=e;if(!y){[X.DOWN,X.SPACE,X.ENTER].includes(t)&&(b(!0),e.preventDefault());return}switch(t){case X.UP:A(-1),e.preventDefault();break;case X.DOWN:A(1),e.preventDefault();break;case X.ESC:b(!1);break;case X.SPACE:case X.ENTER:x!==null&&m(x,e);break}}(0,v.useEffect)(()=>{let e=document.getElementById(E);e?.scrollIntoView&&e.scrollIntoView(!1)},[E,x]),(0,v.useEffect)(()=>{y||S(null)},[y]);let M={marginInlineStart:d};i.length||(M.visibility=`hidden`,M.order=1);let N=J(g,{[`${T}-rtl`]:f}),P=o?null:v.createElement(Lx,Gw({prefixCls:T,overlay:k,visible:i.length?y:!1,onVisibleChange:b,overlayClassName:N,overlayStyle:_,mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:h},s),v.createElement(`button`,{type:`button`,className:`${n}-nav-more`,style:M,"aria-haspopup":`listbox`,"aria-controls":w,id:`${r}-more`,"aria-expanded":y,onKeyDown:j},C));return v.createElement(`div`,{className:J(`${n}-nav-operations`,l),style:c,ref:t},P,v.createElement(Uw,{prefixCls:n,locale:a,editable:u}))}),qw=v.memo(Kw,(e,t)=>t.tabMoving),Jw=e=>{let{prefixCls:t,id:n,active:r,focus:i,tab:{key:a,label:o,disabled:s,closeIcon:c,icon:l},closable:u,renderWrapper:d,removeAriaLabel:f,editable:p,onClick:m,onFocus:h,onBlur:g,onKeyDown:_,onMouseDown:y,onMouseUp:b,style:x,className:S,tabCount:C,currentPosition:w}=e,T=`${t}-tab`,E=Hw(u,c,p,s);function D(e){s||m(e)}function O(e){e.preventDefault(),e.stopPropagation(),p.onEdit(`remove`,{key:a,event:e})}let k=v.useMemo(()=>l&&typeof o==`string`?v.createElement(`span`,null,o):o,[o,l]),A=v.useRef(null);v.useEffect(()=>{i&&A.current&&A.current.focus()},[i]);let j=v.createElement(`div`,{key:a,"data-node-key":Vw(a),className:J(T,S,{[`${T}-with-remove`]:E,[`${T}-active`]:r,[`${T}-disabled`]:s,[`${T}-focus`]:i}),style:x,onClick:D},v.createElement(`div`,{ref:A,role:`tab`,"aria-selected":r,id:n&&`${n}-tab-${a}`,className:`${T}-btn`,"aria-controls":n&&`${n}-panel-${a}`,"aria-disabled":s,tabIndex:s?null:r?0:-1,onClick:e=>{e.stopPropagation(),D(e)},onKeyDown:_,onMouseDown:y,onMouseUp:b,onFocus:h,onBlur:g},i&&v.createElement(`div`,{"aria-live":`polite`,style:{width:0,height:0,position:`absolute`,overflow:`hidden`,opacity:0}},`Tab ${w} of ${C}`),l&&v.createElement(`span`,{className:`${T}-icon`},l),o&&k),E&&v.createElement(`button`,{type:`button`,"aria-label":f||`remove`,tabIndex:r?0:-1,className:`${T}-remove`,onClick:e=>{e.stopPropagation(),O(e)}},c||p.removeIcon||`×`));return d?d(j):j};function Yw(){return Yw=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},Yw.apply(this,arguments)}var Xw=(e,t)=>{let{offsetWidth:n,offsetHeight:r,offsetTop:i,offsetLeft:a}=e,{width:o,height:s,left:c,top:l}=e.getBoundingClientRect();return Math.abs(o-n)<1?[o,s,c-t.left,l-t.top]:[n,r,a,i]},Zw=e=>{let{offsetWidth:t=0,offsetHeight:n=0}=e.current||{};if(e.current){let{width:n,height:r}=e.current.getBoundingClientRect();if(Math.abs(n-t)<1)return[n,r]}return[t,n]},Qw=(e,t)=>e[+!t],$w=v.forwardRef((e,t)=>{let{className:n,style:r,id:i,animated:a,activeKey:o,rtl:s,extra:c,editable:l,locale:u,tabPosition:d,tabBarGutter:f,children:p,onTabClick:m,onTabScroll:h,indicator:g,classNames:_,styles:b}=e,{prefixCls:x,tabs:S}=v.useContext(Tw),C=(0,v.useRef)(null),w=(0,v.useRef)(null),T=(0,v.useRef)(null),E=(0,v.useRef)(null),D=(0,v.useRef)(null),O=(0,v.useRef)(null),k=(0,v.useRef)(null),A=d===`top`||d===`bottom`,[j,M]=kw(0,(e,t)=>{A&&h&&h({direction:e>t?`left`:`right`})}),[N,P]=kw(0,(e,t)=>{!A&&h&&h({direction:e>t?`top`:`bottom`})}),[F,I]=(0,v.useState)([0,0]),[R,z]=(0,v.useState)([0,0]),[B,V]=(0,v.useState)([0,0]),[H,U]=(0,v.useState)([0,0]),[W,ee]=Iw(new Map),te=Ow(S,W,R[0]),ne=Qw(F,A),re=Qw(R,A),ie=Qw(B,A),ae=Qw(H,A),G=Math.floor(ne)<Math.floor(re+ie),K=G?ne-ae:ne-ie,oe=`${x}-nav-operations-hidden`,se=0,ce=0;A&&s?(se=0,ce=Math.max(0,re-K)):(se=Math.min(0,K-re),ce=0);function q(e){return e<se?se:e>ce?ce:e}let le=(0,v.useRef)(null),[ue,de]=(0,v.useState)();function fe(){de(Date.now())}function pe(){le.current&&clearTimeout(le.current)}Pw(E,(e,t)=>{function n(e,t){e(e=>q(e+t))}return G?(A?n(M,e):n(P,t),pe(),fe(),!0):!1}),(0,v.useEffect)(()=>(pe(),ue&&(le.current=setTimeout(()=>{de(0)},100)),pe),[ue]);let[me,he]=Rw(te,K,A?j:N,re,ie,ae,{...e,tabs:S}),ge=y((e=o)=>{let t=te.get(e)||{width:0,height:0,left:0,right:0,top:0};if(A){let e=j;s?t.right<j?e=t.right:t.right+t.width>j+K&&(e=t.right+t.width-K):t.left<-j?e=-t.left:t.left+t.width>-j+K&&(e=-(t.left+t.width-K)),P(0),M(q(e))}else{let e=N;t.top<-N?e=-t.top:t.top+t.height>-N+K&&(e=-(t.top+t.height-K)),M(0),P(q(e))}}),[_e,ve]=(0,v.useState)(),[ye,be]=(0,v.useState)(!1),xe=S.filter(e=>!e.disabled).map(e=>e.key),Se=e=>{let t=xe.indexOf(_e||o),n=xe.length,r=xe[(t+e+n)%n];ve(r)},Ce=(e,t)=>{let n=xe.indexOf(e),r=S.find(t=>t.key===e);Hw(r?.closable,r?.closeIcon,l,r?.disabled)&&(t.preventDefault(),t.stopPropagation(),l.onEdit(`remove`,{key:e,event:t}),n===xe.length-1?Se(-1):Se(1))},we=(e,t)=>{be(!0),t.button===1&&Ce(e,t)},Te=e=>{let{code:t}=e,n=s&&A,r=xe[0],i=xe[xe.length-1];switch(t){case`ArrowLeft`:A&&Se(n?1:-1);break;case`ArrowRight`:A&&Se(n?-1:1);break;case`ArrowUp`:e.preventDefault(),A||Se(-1);break;case`ArrowDown`:e.preventDefault(),A||Se(1);break;case`Home`:e.preventDefault(),ve(r);break;case`End`:e.preventDefault(),ve(i);break;case`Enter`:case`Space`:e.preventDefault(),m(_e??o,e);break;case`Backspace`:case`Delete`:Ce(_e,e);break}},Ee={};A?Ee.marginInlineStart=f:Ee.marginTop=f;let De=S.map((e,t)=>{let{key:n}=e;return v.createElement(Jw,{id:i,prefixCls:x,key:n,tab:e,className:_?.item,style:t===0?b?.item:{...Ee,...b?.item},closable:e.closable,editable:l,active:n===o,focus:n===_e,renderWrapper:p,removeAriaLabel:u?.removeAriaLabel,tabCount:xe.length,currentPosition:t+1,onClick:e=>{m(n,e)},onKeyDown:Te,onFocus:()=>{ye||ve(n),ge(n),fe(),E.current&&(s||(E.current.scrollLeft=0),E.current.scrollTop=0)},onBlur:()=>{ve(void 0)},onMouseDown:e=>we(n,e),onMouseUp:()=>{be(!1)}})}),Oe=()=>ee(()=>{let e=new Map,t=D.current?.getBoundingClientRect();return S.forEach(({key:n})=>{let r=D.current?.querySelector(`[data-node-key="${Vw(n)}"]`);if(r){let[i,a,o,s]=Xw(r,t);e.set(n,{width:i,height:a,left:o,top:s})}}),e});(0,v.useEffect)(()=>{Oe()},[S.map(e=>e.key).join(`_`)]);let ke=Fw(()=>{let e=Zw(C),t=Zw(w),n=Zw(T);I([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);let r=Zw(k);V(r),U(Zw(O));let i=Zw(D);z([i[0]-r[0],i[1]-r[1]]),Oe()}),Ae=S.slice(0,me),je=S.slice(he+1),Me=[...Ae,...je],Pe=te.get(o),{style:Fe}=Ew({activeTabOffset:Pe,horizontal:A,indicator:g,rtl:s});(0,v.useEffect)(()=>{ge()},[o,se,ce,zw(Pe),zw(te),A]),(0,v.useEffect)(()=>{ke()},[s]);let Ie=!!Me.length,Le=`${x}-nav-wrap`,Re,ze,Be,Ve;return A?s?(ze=j>0,Re=j!==ce):(Re=j<0,ze=j!==se):(Be=N<0,Ve=N!==se),v.createElement(Ne,{onResize:ke},v.createElement(`div`,{ref:L(t,C),role:`tablist`,"aria-orientation":A?`horizontal`:`vertical`,className:J(`${x}-nav`,n,_?.header),style:{...b?.header,...r},onKeyDown:()=>{fe()}},v.createElement(Ww,{ref:w,position:`left`,extra:c,prefixCls:x}),v.createElement(Ne,{onResize:ke},v.createElement(`div`,{className:J(Le,{[`${Le}-ping-left`]:Re,[`${Le}-ping-right`]:ze,[`${Le}-ping-top`]:Be,[`${Le}-ping-bottom`]:Ve}),ref:E},v.createElement(Ne,{onResize:ke},v.createElement(`div`,{ref:D,className:`${x}-nav-list`,style:{transform:`translate(${j}px, ${N}px)`,transition:ue?`none`:void 0}},De,v.createElement(Uw,{ref:k,prefixCls:x,locale:u,editable:l,style:{...De.length===0?void 0:Ee,visibility:Ie?`hidden`:null}}),v.createElement(`div`,{className:J(`${x}-ink-bar`,_?.indicator,{[`${x}-ink-bar-animated`]:a.inkBar}),style:{...Fe,...b?.indicator}}))))),v.createElement(qw,Yw({},e,{removeAriaLabel:u?.removeAriaLabel,ref:O,prefixCls:x,tabs:Me,className:!Ie&&oe,popupStyle:b?.popup,tabMoving:!!ue})),v.createElement(Ww,{ref:T,position:`right`,extra:c,prefixCls:x})))}),eT=({renderTabBar:e,...t})=>e?e(t,$w):v.createElement($w,t),tT=v.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:i,id:a,active:o,tabKey:s,children:c}=e,l=v.Children.count(c)>0;return v.createElement(`div`,{id:a&&`${a}-panel-${s}`,role:`tabpanel`,tabIndex:o&&l?0:-1,"aria-labelledby":a&&`${a}-tab-${s}`,"aria-hidden":!o,style:i,className:J(n,o&&`${n}-active`,r),ref:t},c)});function nT(){return nT=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},nT.apply(this,arguments)}var rT=e=>{let{id:t,activeKey:n,animated:r,tabPosition:i,destroyOnHidden:a,contentStyle:o,contentClassName:s}=e,{prefixCls:c,tabs:l}=v.useContext(Tw),u=r.tabPane,d=`${c}-tabpane`;return v.createElement(`div`,{className:J(`${c}-content-holder`)},v.createElement(`div`,{className:J(`${c}-content`,`${c}-content-${i}`,{[`${c}-content-animated`]:u})},l.map(e=>{let{key:i,forceRender:c,style:l,className:f,destroyOnHidden:p,...m}=e,h=i===n;return v.createElement(ks,nT({key:i,visible:h,forceRender:c,removeOnLeave:!!(a??p),leavedClassName:`${d}-hidden`},r.tabPaneMotion),({style:e,className:n},r)=>v.createElement(tT,nT({},m,{prefixCls:d,id:t,tabKey:i,animated:u,active:h,style:{...o,...l,...e},className:J(s,f,n),ref:r})))})))};function iT(e={inkBar:!0,tabPane:!1}){let t;return t=e===!1?{inkBar:!1,tabPane:!1}:e===!0?{inkBar:!0,tabPane:!1}:{inkBar:!0,...typeof e==`object`?e:{}},t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}function aT(){return aT=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},aT.apply(this,arguments)}var oT=0,sT=v.forwardRef((e,t)=>{let{id:n,prefixCls:r=`rc-tabs`,className:i,items:a,direction:o,activeKey:s,defaultActiveKey:c,editable:l,animated:u,tabPosition:d=`top`,tabBarGutter:f,tabBarStyle:p,tabBarExtraContent:m,locale:h,more:g,destroyOnHidden:_,renderTabBar:y,onChange:b,onTabClick:x,onTabScroll:S,getPopupContainer:C,popupClassName:w,indicator:E,classNames:D,styles:O,...k}=e,A=v.useMemo(()=>(a||[]).filter(e=>e&&typeof e==`object`&&`key`in e),[a]),j=o===`rtl`,M=iT(u),[N,P]=(0,v.useState)(!1);(0,v.useEffect)(()=>{P(ww())},[]);let[F,I]=T(c??A[0]?.key,s),[L,R]=(0,v.useState)(()=>A.findIndex(e=>e.key===F));(0,v.useEffect)(()=>{let e=A.findIndex(e=>e.key===F);e===-1&&(e=Math.max(0,Math.min(L,A.length-1)),I(A[e]?.key)),R(e)},[A.map(e=>e.key).join(`_`),F,L]);let[z,B]=T(null,n);(0,v.useEffect)(()=>{n||(B(`rc-tabs-${oT}`),oT+=1)},[]);function V(e,t){x?.(e,t);let n=e!==F;I(e),n&&b?.(e)}let H={id:z,activeKey:F,animated:M,tabPosition:d,rtl:j,mobile:N},U={...H,editable:l,locale:h,more:g,tabBarGutter:f,onTabClick:V,onTabScroll:S,extra:m,style:p,getPopupContainer:C,popupClassName:J(w,D?.popup),indicator:E,styles:O,classNames:D},W=v.useMemo(()=>({tabs:A,prefixCls:r}),[A,r]);return v.createElement(Tw.Provider,{value:W},v.createElement(`div`,aT({ref:t,id:n,className:J(r,`${r}-${d}`,{[`${r}-mobile`]:N,[`${r}-editable`]:l,[`${r}-rtl`]:j},i)},k),v.createElement(eT,aT({},U,{renderTabBar:y})),v.createElement(rT,aT({destroyOnHidden:_},H,{contentStyle:O?.content,contentClassName:D?.content,animated:M}))))}),cT={motionAppear:!1,motionEnter:!0,motionLeave:!0};function lT(e,t={inkBar:!0,tabPane:!1}){let n;return n=t===!1?{inkBar:!1,tabPane:!1}:t===!0?{inkBar:!0,tabPane:!0}:{inkBar:!0,...cc(t)?t:{}},n.tabPane&&(n.tabPaneMotion={...cT,motionName:xd(e,`switch`)}),n}function uT(e){return e.filter(e=>e)}function dT(e,t){return e?e.map(e=>({...e,destroyOnHidden:e.destroyOnHidden??e.destroyInactiveTabPane})):uT(fe(t).map(e=>{if(v.isValidElement(e)){let{key:t,props:n}=e,{tab:r,...i}=n||{};return{key:String(t),...i,label:r}}return null}))}var fT=e=>{let{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:`none`,"&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:`absolute`,transition:`none`,inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[xf(e,`slide-up`),xf(e,`slide-down`)]]},pT=e=>{let{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:i,colorBorderSecondary:a,itemSelectedColor:o}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${Y(e.lineWidth)} ${e.lineType} ${a}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:o,background:e.colorBgContainer},[`${t}-tab-focus:has(${t}-tab-btn:focus-visible)`]:Ua(e,-3),[`& ${t}-tab${t}-tab-focus ${t}-tab-btn:focus-visible`]:{outline:`none`},[`${t}-ink-bar`]:{visibility:`hidden`}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:Y(i)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${Y(e.borderRadiusLG)} ${Y(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${Y(e.borderRadiusLG)} ${Y(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:Y(i)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Y(e.borderRadiusLG)} 0 0 ${Y(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Y(e.borderRadiusLG)} ${Y(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},mT=e=>{let{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:{...Ba(e),position:`absolute`,top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:`block`,"&-hidden":{display:`none`},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${Y(r)} 0`,overflowX:`hidden`,overflowY:`auto`,textAlign:{_skip_check_:!0,value:`left`},listStyleType:`none`,backgroundColor:e.colorBgContainer,backgroundClip:`padding-box`,borderRadius:e.borderRadiusLG,outline:`none`,boxShadow:e.boxShadowSecondary,"&-item":{...za,display:`flex`,alignItems:`center`,minWidth:e.tabsDropdownWidth,margin:0,padding:`${Y(e.paddingXXS)} ${Y(e.paddingSM)}`,color:e.colorText,fontWeight:`normal`,fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:`pointer`,transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:`nowrap`},"&-remove":{flex:`none`,marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorIcon,fontSize:e.fontSizeSM,background:`transparent`,border:0,cursor:`pointer`,"&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:`transparent`,cursor:`not-allowed`}}}}}}},hT=e=>{let{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:i,verticalItemPadding:a,verticalItemMargin:o,motionDurationSlow:s,calc:c}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:`column`,[`> ${t}-nav, > div > ${t}-nav`]:{margin:i,"&::before":{position:`absolute`,right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${Y(e.lineWidth)} ${e.lineType} ${r}`,content:`''`},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:[`width`,`left`,`right`].map(e=>`${e} ${s}`).join(`, `)}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,
|
|
216
|
-
> div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:`column`,minWidth:c(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:a,textAlign:`center`},[`${t}-tab + ${t}-tab`]:{margin:o},[`${t}-nav-wrap`]:{flexDirection:`column`,"&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:[`height`,`top`].map(e=>`${e} ${s}`).join(`, `)}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:`1 0 auto`,flexDirection:`column`}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:Y(c(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${Y(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:c(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${Y(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},gT=e=>{let{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,cardHeightSM:i,cardHeightLG:a,horizontalItemPaddingSM:o,horizontalItemPaddingLG:s}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:s,fontSize:e.titleFontSizeLG,lineHeight:e.lineHeightLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n},[`${t}-nav-add`]:{minWidth:i,minHeight:i}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${Y(e.borderRadius)} ${Y(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${Y(e.borderRadius)} ${Y(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Y(e.borderRadius)} ${Y(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Y(e.borderRadius)} 0 0 ${Y(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r},[`${t}-nav-add`]:{minWidth:a,minHeight:a}}}}}},_T=e=>{let{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:i,tabsHorizontalItemMargin:a,horizontalItemPadding:o,itemSelectedColor:s,itemColor:c}=e,l=`${t}-tab`;return{[l]:{position:`relative`,WebkitTouchCallout:`none`,WebkitTapHighlightColor:`transparent`,display:`inline-flex`,alignItems:`center`,padding:o,fontSize:e.titleFontSize,background:`transparent`,border:0,outline:`none`,cursor:`pointer`,color:c,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:`none`,transition:`all ${e.motionDurationSlow}`,[`${l}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:`none`,lineHeight:1,marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorIcon,fontSize:e.fontSizeSM,background:`transparent`,border:`none`,outline:`none`,cursor:`pointer`,transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading},...Wa(e)},"&:hover":{color:r},[`&${l}-active ${l}-btn`]:{color:s},[`&${l}-focus ${l}-btn:focus-visible`]:Ua(e),[`&${l}-disabled`]:{color:e.colorTextDisabled,cursor:`not-allowed`},[`&${l}-disabled ${l}-btn, &${l}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${l}-remove ${i}`]:{margin:0,verticalAlign:`middle`},[`${i}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${l} + ${l}`]:{margin:{_skip_check_:!0,value:a}}}},vT=e=>{let{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:i,calc:a}=e;return{[`${t}-rtl`]:{direction:`rtl`,[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:e.marginSM}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:e.marginXS},marginLeft:{_skip_check_:!0,value:a(e.marginXXS).mul(-1).equal()},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:i},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:`rtl`},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:`right`}}}}},yT=e=>{let{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:i,itemHoverColor:a,itemActiveColor:o,colorBorderSecondary:s}=e;return{[t]:{...Ba(e),display:`flex`,[`> ${t}-nav, > div > ${t}-nav`]:{position:`relative`,display:`flex`,flex:`none`,alignItems:`center`,[`${t}-nav-wrap`]:{position:`relative`,display:`flex`,flex:`auto`,alignSelf:`stretch`,overflow:`hidden`,whiteSpace:`nowrap`,transform:`translate(0)`,"&::before, &::after":{position:`absolute`,zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:`''`,pointerEvents:`none`}},[`${t}-nav-list`]:{position:`relative`,display:`flex`,transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:`flex`,alignSelf:`stretch`},[`${t}-nav-operations-hidden`]:{position:`absolute`,visibility:`hidden`,pointerEvents:`none`},[`${t}-nav-more`]:{position:`relative`,padding:n,background:`transparent`,border:0,color:e.colorText,"&::after":{position:`absolute`,right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:`translateY(100%)`,content:`''`}},[`${t}-nav-add`]:{minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:i},background:`transparent`,border:`${Y(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${Y(e.borderRadiusLG)} ${Y(e.borderRadiusLG)} 0 0`,outline:`none`,cursor:`pointer`,color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:a},"&:active, &:focus:not(:focus-visible)":{color:o},...Wa(e,-3)}},[`${t}-extra-content`]:{flex:`none`},[`${t}-ink-bar`]:{position:`absolute`,background:e.inkBarColor,pointerEvents:`none`},..._T(e),[`${t}-content`]:{position:`relative`,width:`100%`},[`${t}-content-holder`]:{flex:`auto`,minWidth:0,minHeight:0},[`${t}-tabpane`]:{...Wa(e),"&-hidden":{display:`none`}}},[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping']) > ${t}-nav-list`]:{margin:`auto`}}}}}},bT=Ya(`Tabs`,e=>{let t=ci(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${Y(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${Y(e.horizontalItemGutter)}`});return[gT(t),vT(t),hT(t),mT(t),pT(t),yT(t),fT(t)]},e=>{let{cardHeight:t,cardHeightSM:n,cardHeightLG:r,controlHeight:i,controlHeightLG:a}=e,o=t||a,s=n||i,c=r||a+8;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:o,cardHeightSM:s,cardHeightLG:c,cardPadding:`${(o-e.fontHeight)/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${(s-e.fontHeight)/2-e.lineWidth}px ${e.paddingXS}px`,cardPaddingLG:`${(c-e.fontHeightLG)/2-e.lineWidth}px ${e.padding}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:``,horizontalItemMarginRTL:``,horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}}),xT=()=>null,ST=v.forwardRef((e,t)=>{let{type:n,className:r,rootClassName:i,size:a,onEdit:o,hideAdd:s,centered:c,addIcon:l,removeIcon:u,moreIcon:d,more:f,popupClassName:p,children:m,items:h,animated:g,style:_,indicatorSize:y,indicator:b,classNames:x,styles:S,destroyInactiveTabPane:C,destroyOnHidden:w,tabPlacement:T,tabPosition:E,...D}=e,{prefixCls:O}=D,{getPrefixCls:k,direction:A,getPopupContainer:j,className:M,style:N,classNames:P,styles:F}=Qe(`tabs`),{tabs:I}=v.useContext(Ye),L=k(`tabs`,O),R=Xc(L),[z,B]=bT(L,R),V=v.useRef(null);v.useImperativeHandle(t,()=>({nativeElement:V.current}));let H;n===`editable-card`&&(H={onEdit:(e,{key:t,event:n})=>{o?.(e===`add`?n:t,e)},removeIcon:u??I?.removeIcon??v.createElement(jo,null),addIcon:(l??I?.addIcon)||v.createElement(xw,null),showAdd:s!==!0});let U=k(),W=jd(a),ee=dT(h,m),te=lT(L,g),ne={align:b?.align??I?.indicator?.align,size:b?.size??y??I?.indicator?.size??I?.indicatorSize},re=v.useMemo(()=>{let e=T??E??void 0,t=A===`rtl`;switch(e){case`start`:return t?`right`:`left`;case`end`:return t?`left`:`right`;default:return e}},[T,E,A]),ie={...e,size:W,tabPlacement:re,items:ee},[ae,G]=Oc([P,x],[F,S],{props:ie},{popup:{_default:`root`}});return v.createElement(sT,{ref:V,direction:A,getPopupContainer:j,...D,items:ee,className:J({[`${L}-large`]:W===`large`,[`${L}-small`]:W===`small`,[`${L}-card`]:[`card`,`editable-card`].includes(n),[`${L}-editable-card`]:n===`editable-card`,[`${L}-centered`]:c},M,r,i,ae.root,z,B,R),classNames:{...ae,popup:J(p,z,B,R,ae.popup?.root)},styles:G,style:{...G.root,...N,..._},editable:H,more:{icon:I?.more?.icon??I?.moreIcon??d??v.createElement(hC,null),transitionName:`${U}-slide-up`,...f},prefixCls:L,animated:te,indicator:ne,destroyOnHidden:w??C,tabPosition:re})});ST.TabPane=xT;var CT=({prefixCls:e,className:t,hoverable:n=!0,...r})=>{let{getPrefixCls:i}=v.useContext(Ye),a=i(`card`,e),o=J(`${a}-grid`,t,{[`${a}-grid-hoverable`]:n});return v.createElement(`div`,{...r,className:o})},wT=e=>{let{antCls:t,componentCls:n,headerHeight:r,headerPadding:i,tabsMarginBottom:a}=e;return{display:`flex`,justifyContent:`center`,flexDirection:`column`,minHeight:r,marginBottom:-1,padding:`0 ${Y(i)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${Y(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${Y(e.borderRadiusLG)} ${Y(e.borderRadiusLG)} 0 0`,...Ha(),"&-wrapper":{width:`100%`,display:`flex`,alignItems:`center`},"&-title":{display:`inline-block`,flex:1,...za,[`
|
|
215
|
+
& > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:`top`},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{}}}}},hw=e=>{let{componentCls:t,controlHeightSM:n,lineWidth:r,calc:i}=e,a=i(n).sub(i(r).mul(2)).sub(16).div(2).equal();return{[t]:{...Ba(e),...pw(e),...QC(e),...iw(e),...tw(e),...lw(e),'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:a,paddingBottom:a}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:`none`}}}},gw=e=>{let{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:`pointer`,transition:`color ${e.motionDurationSlow}`,border:`none`,outline:`none`,backgroundColor:`transparent`,"&:hover":{color:e.colorIcon},"&:focus-visible":{color:e.colorIcon,borderRadius:e.borderRadiusSM,...Ua(e)},"&:active":{color:e.colorText},"&-hidden":{visibility:`hidden`},"&-has-suffix":{margin:`0 ${Y(e.inputAffixPadding)}`}}}},_w=e=>{let{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:i,colorIcon:a,colorIconHover:o,iconCls:s}=e,c=`${t}-affix-wrapper`,l=`${t}-affix-wrapper-disabled`;return{[c]:{...pw(e),display:`inline-flex`,"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:`inherit`,border:`none`,borderRadius:0,outline:`none`,background:`transparent`,color:`inherit`,"&::-ms-reveal":{display:`none`},"&:focus":{boxShadow:`none !important`}},"&::before":{display:`inline-block`,width:0,visibility:`hidden`,content:`"\\a0"`},[t]:{"&-prefix, &-suffix":{display:`flex`,flex:`none`,alignItems:`center`,"> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r,direction:`ltr`},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}},...gw(e),[`${s}${t}-password-icon`]:{color:a,cursor:`pointer`,transition:`all ${i}`,"&:hover":{color:o}}},[`${t}-underlined`]:{borderRadius:0},[l]:{[`${s}${t}-password-icon`]:{color:a,cursor:`not-allowed`,"&:hover":{color:a}}}}},vw=e=>{let{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:{...Ba(e),...mw(e),"&-rtl":{direction:`rtl`},"&-wrapper":{display:`inline-block`,width:`100%`,textAlign:`start`,verticalAlign:`top`,"&-rtl":{direction:`rtl`},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}},...ew(e),...ow(e),[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}}},yw=e=>{let{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},bw=Ya([`Input`,`Shared`],e=>{let t=ci(e,KC(e));return[hw(t),_w(t)]},qC,{resetFont:!1}),xw=Ya([`Input`,`Component`],e=>{let t=ci(e,KC(e));return[vw(t),yw(t),up(t,{focus:!0,focusElCls:`${t.componentCls}-affix-wrapper-focused`})]},qC,{resetFont:!1}),Sw={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z`}},{tag:`path`,attrs:{d:`M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z`}}]},name:`plus`,theme:`outlined`};function Cw(){return Cw=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},Cw.apply(this,arguments)}var ww=v.forwardRef((e,t)=>v.createElement(Co,Cw({},e,{ref:t,icon:Sw}))),Tw=l(o(((e,t)=>{t.exports=a,t.exports.isMobile=a,t.exports.default=a;var n=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|redmi|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,r=/CrOS/,i=/android|ipad|playbook|silk/i;function a(e){e||={};let t=e.ua;if(!t&&typeof navigator<`u`&&(t=navigator.userAgent),t&&t.headers&&typeof t.headers[`user-agent`]==`string`&&(t=t.headers[`user-agent`]),typeof t!=`string`)return!1;let a=n.test(t)&&!r.test(t)||!!e.tablet&&i.test(t);return!a&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&t.indexOf(`Macintosh`)!==-1&&t.indexOf(`Safari`)!==-1&&(a=!0),a}}))()),Ew,Dw=()=>(Ew===void 0&&(Ew=(0,Tw.default)()),Ew),Ow=(0,v.createContext)(null),kw=e=>{let{activeTabOffset:t,horizontal:n,rtl:r,indicator:i={}}=e,{size:a,align:o=`center`}=i,[s,c]=(0,v.useState)(),l=(0,v.useRef)(),u=v.useCallback(e=>typeof a==`function`?a(e):typeof a==`number`?a:e,[a]);function d(){Ke.cancel(l.current)}return(0,v.useEffect)(()=>{let e={};if(t)if(n){e.width=u(t.width);let n=r?`right`:`left`;o===`start`&&(e[n]=t[n]),o===`center`&&(e[n]=t[n]+t.width/2,e.transform=r?`translateX(50%)`:`translateX(-50%)`),o===`end`&&(e[n]=t[n]+t.width,e.transform=`translateX(-100%)`)}else e.height=u(t.height),o===`start`&&(e.top=t.top),o===`center`&&(e.top=t.top+t.height/2,e.transform=`translateY(-50%)`),o===`end`&&(e.top=t.top+t.height,e.transform=`translateY(-100%)`);return d(),l.current=Ke(()=>{s&&e&&Object.keys(e).every(t=>{let n=e[t],r=s[t];return typeof n==`number`&&typeof r==`number`?Math.round(n)===Math.round(r):n===r})||c(e)}),d},[JSON.stringify(t),n,r,o,u]),{style:s}},Aw={width:0,height:0,left:0,top:0};function jw(e,t,n){return(0,v.useMemo)(()=>{let n=new Map,r=t.get(e[0]?.key)||Aw,i=r.left+r.width;for(let r=0;r<e.length;r+=1){let{key:a}=e[r],o=t.get(a);o||=t.get(e[r-1]?.key)||Aw;let s=n.get(a)||{...o};s.right=i-s.left-s.width,n.set(a,s)}return n},[e.map(e=>e.key).join(`_`),t,n])}function Mw(e,t){let n=v.useRef(e),[,r]=v.useState({});function i(e){let i=typeof e==`function`?e(n.current):e;i!==n.current&&t(i,n.current),n.current=i,r({})}return[n.current,i]}var Nw=.1,Pw=.01,Fw=20,Iw=.995**Fw;function Lw(e,t){let[n,r]=(0,v.useState)(),[i,a]=(0,v.useState)(0),[o,s]=(0,v.useState)(0),[c,l]=(0,v.useState)(),u=(0,v.useRef)();function d(e){let{screenX:t,screenY:n}=e.touches[0];r({x:t,y:n}),window.clearInterval(u.current)}function f(e){if(!n)return;let{screenX:o,screenY:c}=e.touches[0];r({x:o,y:c});let u=o-n.x,d=c-n.y;t(u,d);let f=Date.now();a(f),s(f-i),l({x:u,y:d})}function p(){if(n&&(r(null),l(null),c)){let e=c.x/o,n=c.y/o;if(Math.max(Math.abs(e),Math.abs(n))<Nw)return;let r=e,i=n;u.current=window.setInterval(()=>{if(Math.abs(r)<Pw&&Math.abs(i)<Pw){window.clearInterval(u.current);return}r*=Iw,i*=Iw,t(r*Fw,i*Fw)},Fw)}}let m=(0,v.useRef)();function h(e){let{deltaX:n,deltaY:r}=e,i=0,a=Math.abs(n),o=Math.abs(r);a===o?i=m.current===`x`?n:r:a>o?(i=n,m.current=`x`):(i=r,m.current=`y`),t(-i,-i)&&e.preventDefault()}let g=(0,v.useRef)(null);g.current={onTouchStart:d,onTouchMove:f,onTouchEnd:p,onWheel:h},v.useEffect(()=>{function t(e){g.current.onTouchStart(e)}function n(e){g.current.onTouchMove(e)}function r(e){g.current.onTouchEnd(e)}function i(e){g.current.onWheel(e)}return document.addEventListener(`touchmove`,n,{passive:!1}),document.addEventListener(`touchend`,r,{passive:!0}),e.current.addEventListener(`touchstart`,t,{passive:!0}),e.current.addEventListener(`wheel`,i,{passive:!1}),()=>{document.removeEventListener(`touchmove`,n),document.removeEventListener(`touchend`,r)}},[])}function Rw(e){let[t,n]=(0,v.useState)(0),r=(0,v.useRef)(0),i=(0,v.useRef)();return i.current=e,C(()=>{i.current?.()},[t]),()=>{r.current===t&&(r.current+=1,n(r.current))}}function zw(e){let t=(0,v.useRef)([]),[,n]=(0,v.useState)({}),r=(0,v.useRef)(typeof e==`function`?e():e),i=Rw(()=>{let e=r.current;t.current.forEach(t=>{e=t(e)}),t.current=[],r.current=e,n({})});function a(e){t.current.push(e),i()}return[r.current,a]}var Bw={width:0,height:0,left:0,top:0,right:0};function Vw(e,t,n,r,i,a,{tabs:o,tabPosition:s,rtl:c}){let l,u,d;return[`top`,`bottom`].includes(s)?(l=`width`,u=c?`right`:`left`,d=Math.abs(n)):(l=`height`,u=`top`,d=-n),(0,v.useMemo)(()=>{if(!o.length)return[0,0];let n=o.length,r=n;for(let i=0;i<n;i+=1){let n=e.get(o[i].key)||Bw;if(Math.floor(n[u]+n[l])>Math.floor(d+t)){r=i-1;break}}let i=0;for(let t=n-1;t>=0;--t)if((e.get(o[t].key)||Bw)[u]<d){i=t+1;break}return i>r?[0,-1]:[i,r]},[e,t,r,i,a,d,s,o.map(e=>e.key).join(`_`),c])}function Hw(e){let t;return e instanceof Map?(t={},e.forEach((e,n)=>{t[n]=e})):t=e,JSON.stringify(t)}var Uw=`TABS_DQ`;function Ww(e){return String(e).replace(/"/g,Uw)}function Gw(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var Kw=v.forwardRef((e,t)=>{let{prefixCls:n,editable:r,locale:i,style:a}=e;return!r||r.showAdd===!1?null:v.createElement(`button`,{ref:t,type:`button`,className:`${n}-nav-add`,style:a,"aria-label":i?.addAriaLabel||`Add tab`,onClick:e=>{r.onEdit(`add`,{event:e})}},r.addIcon||`+`)}),qw=v.forwardRef((e,t)=>{let{position:n,prefixCls:r,extra:i}=e;if(!i)return null;let a,o={};return typeof i==`object`&&!v.isValidElement(i)?o=i:o.right=i,n===`right`&&(a=o.right),n===`left`&&(a=o.left),a?v.createElement(`div`,{className:`${r}-extra-content`,ref:t},a):null});function Jw(){return Jw=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},Jw.apply(this,arguments)}var Yw=v.forwardRef((e,t)=>{let{prefixCls:n,id:r,tabs:i,locale:a,mobile:o,more:s={},style:c,className:l,editable:u,tabBarGutter:d,rtl:f,removeAriaLabel:p,onTabClick:m,getPopupContainer:h,popupClassName:g,popupStyle:_}=e,[y,b]=(0,v.useState)(!1),[x,S]=(0,v.useState)(null),{icon:C=`More`}=s,w=`${r}-more-popup`,T=`${n}-dropdown`,E=x===null?null:`${w}-${x}`,D=a?.dropdownAriaLabel;function O(e,t){e.preventDefault(),e.stopPropagation(),u.onEdit(`remove`,{key:t,event:e})}let k=v.createElement(tC,{onClick:({key:e,domEvent:t})=>{m(e,t),b(!1)},prefixCls:`${T}-menu`,id:w,tabIndex:-1,role:`listbox`,"aria-activedescendant":E,selectedKeys:[x],"aria-label":D===void 0?`expanded dropdown`:D},i.map(e=>{let{closable:t,disabled:n,closeIcon:i,key:a,label:o}=e,s=Gw(t,i,u,n);return v.createElement(jS,{key:a,id:`${w}-${a}`,role:`option`,"aria-controls":r&&`${r}-panel-${a}`,disabled:n},v.createElement(`span`,null,o),s&&v.createElement(`button`,{type:`button`,"aria-label":p||`remove`,tabIndex:0,className:`${T}-menu-item-remove`,onClick:e=>{e.stopPropagation(),O(e,a)}},i||u.removeIcon||`×`))}));function A(e){let t=i.filter(e=>!e.disabled),n=t.findIndex(e=>e.key===x)||0,r=t.length;for(let i=0;i<r;i+=1){n=(n+e+r)%r;let i=t[n];if(!i.disabled){S(i.key);return}}}function j(e){let{which:t}=e;if(!y){[X.DOWN,X.SPACE,X.ENTER].includes(t)&&(b(!0),e.preventDefault());return}switch(t){case X.UP:A(-1),e.preventDefault();break;case X.DOWN:A(1),e.preventDefault();break;case X.ESC:b(!1);break;case X.SPACE:case X.ENTER:x!==null&&m(x,e);break}}(0,v.useEffect)(()=>{let e=document.getElementById(E);e?.scrollIntoView&&e.scrollIntoView(!1)},[E,x]),(0,v.useEffect)(()=>{y||S(null)},[y]);let M={marginInlineStart:d};i.length||(M.visibility=`hidden`,M.order=1);let N=J(g,{[`${T}-rtl`]:f}),P=o?null:v.createElement(Bx,Jw({prefixCls:T,overlay:k,visible:i.length?y:!1,onVisibleChange:b,overlayClassName:N,overlayStyle:_,mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:h},s),v.createElement(`button`,{type:`button`,className:`${n}-nav-more`,style:M,"aria-haspopup":`listbox`,"aria-controls":w,id:`${r}-more`,"aria-expanded":y,onKeyDown:j},C));return v.createElement(`div`,{className:J(`${n}-nav-operations`,l),style:c,ref:t},P,v.createElement(Kw,{prefixCls:n,locale:a,editable:u}))}),Xw=v.memo(Yw,(e,t)=>t.tabMoving),Zw=e=>{let{prefixCls:t,id:n,active:r,focus:i,tab:{key:a,label:o,disabled:s,closeIcon:c,icon:l},closable:u,renderWrapper:d,removeAriaLabel:f,editable:p,onClick:m,onFocus:h,onBlur:g,onKeyDown:_,onMouseDown:y,onMouseUp:b,style:x,className:S,tabCount:C,currentPosition:w}=e,T=`${t}-tab`,E=Gw(u,c,p,s);function D(e){s||m(e)}function O(e){e.preventDefault(),e.stopPropagation(),p.onEdit(`remove`,{key:a,event:e})}let k=v.useMemo(()=>l&&typeof o==`string`?v.createElement(`span`,null,o):o,[o,l]),A=v.useRef(null);v.useEffect(()=>{i&&A.current&&A.current.focus()},[i]);let j=v.createElement(`div`,{key:a,"data-node-key":Ww(a),className:J(T,S,{[`${T}-with-remove`]:E,[`${T}-active`]:r,[`${T}-disabled`]:s,[`${T}-focus`]:i}),style:x,onClick:D},v.createElement(`div`,{ref:A,role:`tab`,"aria-selected":r,id:n&&`${n}-tab-${a}`,className:`${T}-btn`,"aria-controls":n&&`${n}-panel-${a}`,"aria-disabled":s,tabIndex:s?null:r?0:-1,onClick:e=>{e.stopPropagation(),D(e)},onKeyDown:_,onMouseDown:y,onMouseUp:b,onFocus:h,onBlur:g},i&&v.createElement(`div`,{"aria-live":`polite`,style:{width:0,height:0,position:`absolute`,overflow:`hidden`,opacity:0}},`Tab ${w} of ${C}`),l&&v.createElement(`span`,{className:`${T}-icon`},l),o&&k),E&&v.createElement(`button`,{type:`button`,"aria-label":f||`remove`,tabIndex:r?0:-1,className:`${T}-remove`,onClick:e=>{e.stopPropagation(),O(e)}},c||p.removeIcon||`×`));return d?d(j):j};function Qw(){return Qw=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},Qw.apply(this,arguments)}var $w=(e,t)=>{let{offsetWidth:n,offsetHeight:r,offsetTop:i,offsetLeft:a}=e,{width:o,height:s,left:c,top:l}=e.getBoundingClientRect();return Math.abs(o-n)<1?[o,s,c-t.left,l-t.top]:[n,r,a,i]},eT=e=>{let{offsetWidth:t=0,offsetHeight:n=0}=e.current||{};if(e.current){let{width:n,height:r}=e.current.getBoundingClientRect();if(Math.abs(n-t)<1)return[n,r]}return[t,n]},tT=(e,t)=>e[+!t],nT=v.forwardRef((e,t)=>{let{className:n,style:r,id:i,animated:a,activeKey:o,rtl:s,extra:c,editable:l,locale:u,tabPosition:d,tabBarGutter:f,children:p,onTabClick:m,onTabScroll:h,indicator:g,classNames:_,styles:b}=e,{prefixCls:x,tabs:S}=v.useContext(Ow),C=(0,v.useRef)(null),w=(0,v.useRef)(null),T=(0,v.useRef)(null),E=(0,v.useRef)(null),D=(0,v.useRef)(null),O=(0,v.useRef)(null),k=(0,v.useRef)(null),A=d===`top`||d===`bottom`,[j,M]=Mw(0,(e,t)=>{A&&h&&h({direction:e>t?`left`:`right`})}),[N,P]=Mw(0,(e,t)=>{!A&&h&&h({direction:e>t?`top`:`bottom`})}),[F,I]=(0,v.useState)([0,0]),[R,z]=(0,v.useState)([0,0]),[B,V]=(0,v.useState)([0,0]),[H,U]=(0,v.useState)([0,0]),[W,ee]=zw(new Map),te=jw(S,W,R[0]),ne=tT(F,A),re=tT(R,A),ie=tT(B,A),ae=tT(H,A),G=Math.floor(ne)<Math.floor(re+ie),K=G?ne-ae:ne-ie,oe=`${x}-nav-operations-hidden`,se=0,ce=0;A&&s?(se=0,ce=Math.max(0,re-K)):(se=Math.min(0,K-re),ce=0);function q(e){return e<se?se:e>ce?ce:e}let le=(0,v.useRef)(null),[ue,de]=(0,v.useState)();function fe(){de(Date.now())}function pe(){le.current&&clearTimeout(le.current)}Lw(E,(e,t)=>{function n(e,t){e(e=>q(e+t))}return G?(A?n(M,e):n(P,t),pe(),fe(),!0):!1}),(0,v.useEffect)(()=>(pe(),ue&&(le.current=setTimeout(()=>{de(0)},100)),pe),[ue]);let[me,he]=Vw(te,K,A?j:N,re,ie,ae,{...e,tabs:S}),ge=y((e=o)=>{let t=te.get(e)||{width:0,height:0,left:0,right:0,top:0};if(A){let e=j;s?t.right<j?e=t.right:t.right+t.width>j+K&&(e=t.right+t.width-K):t.left<-j?e=-t.left:t.left+t.width>-j+K&&(e=-(t.left+t.width-K)),P(0),M(q(e))}else{let e=N;t.top<-N?e=-t.top:t.top+t.height>-N+K&&(e=-(t.top+t.height-K)),M(0),P(q(e))}}),[_e,ve]=(0,v.useState)(),[ye,be]=(0,v.useState)(!1),xe=S.filter(e=>!e.disabled).map(e=>e.key),Se=e=>{let t=xe.indexOf(_e||o),n=xe.length,r=xe[(t+e+n)%n];ve(r)},Ce=(e,t)=>{let n=xe.indexOf(e),r=S.find(t=>t.key===e);Gw(r?.closable,r?.closeIcon,l,r?.disabled)&&(t.preventDefault(),t.stopPropagation(),l.onEdit(`remove`,{key:e,event:t}),n===xe.length-1?Se(-1):Se(1))},we=(e,t)=>{be(!0),t.button===1&&Ce(e,t)},Te=e=>{let{code:t}=e,n=s&&A,r=xe[0],i=xe[xe.length-1];switch(t){case`ArrowLeft`:A&&Se(n?1:-1);break;case`ArrowRight`:A&&Se(n?-1:1);break;case`ArrowUp`:e.preventDefault(),A||Se(-1);break;case`ArrowDown`:e.preventDefault(),A||Se(1);break;case`Home`:e.preventDefault(),ve(r);break;case`End`:e.preventDefault(),ve(i);break;case`Enter`:case`Space`:e.preventDefault(),m(_e??o,e);break;case`Backspace`:case`Delete`:Ce(_e,e);break}},Ee={};A?Ee.marginInlineStart=f:Ee.marginTop=f;let De=S.map((e,t)=>{let{key:n}=e;return v.createElement(Zw,{id:i,prefixCls:x,key:n,tab:e,className:_?.item,style:t===0?b?.item:{...Ee,...b?.item},closable:e.closable,editable:l,active:n===o,focus:n===_e,renderWrapper:p,removeAriaLabel:u?.removeAriaLabel,tabCount:xe.length,currentPosition:t+1,onClick:e=>{m(n,e)},onKeyDown:Te,onFocus:()=>{ye||ve(n),ge(n),fe(),E.current&&(s||(E.current.scrollLeft=0),E.current.scrollTop=0)},onBlur:()=>{ve(void 0)},onMouseDown:e=>we(n,e),onMouseUp:()=>{be(!1)}})}),Oe=()=>ee(()=>{let e=new Map,t=D.current?.getBoundingClientRect();return S.forEach(({key:n})=>{let r=D.current?.querySelector(`[data-node-key="${Ww(n)}"]`);if(r){let[i,a,o,s]=$w(r,t);e.set(n,{width:i,height:a,left:o,top:s})}}),e});(0,v.useEffect)(()=>{Oe()},[S.map(e=>e.key).join(`_`)]);let ke=Rw(()=>{let e=eT(C),t=eT(w),n=eT(T);I([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);let r=eT(k);V(r),U(eT(O));let i=eT(D);z([i[0]-r[0],i[1]-r[1]]),Oe()}),Ae=S.slice(0,me),je=S.slice(he+1),Me=[...Ae,...je],Pe=te.get(o),{style:Fe}=kw({activeTabOffset:Pe,horizontal:A,indicator:g,rtl:s});(0,v.useEffect)(()=>{ge()},[o,se,ce,Hw(Pe),Hw(te),A]),(0,v.useEffect)(()=>{ke()},[s]);let Ie=!!Me.length,Le=`${x}-nav-wrap`,Re,ze,Be,Ve;return A?s?(ze=j>0,Re=j!==ce):(Re=j<0,ze=j!==se):(Be=N<0,Ve=N!==se),v.createElement(Ne,{onResize:ke},v.createElement(`div`,{ref:L(t,C),role:`tablist`,"aria-orientation":A?`horizontal`:`vertical`,className:J(`${x}-nav`,n,_?.header),style:{...b?.header,...r},onKeyDown:()=>{fe()}},v.createElement(qw,{ref:w,position:`left`,extra:c,prefixCls:x}),v.createElement(Ne,{onResize:ke},v.createElement(`div`,{className:J(Le,{[`${Le}-ping-left`]:Re,[`${Le}-ping-right`]:ze,[`${Le}-ping-top`]:Be,[`${Le}-ping-bottom`]:Ve}),ref:E},v.createElement(Ne,{onResize:ke},v.createElement(`div`,{ref:D,className:`${x}-nav-list`,style:{transform:`translate(${j}px, ${N}px)`,transition:ue?`none`:void 0}},De,v.createElement(Kw,{ref:k,prefixCls:x,locale:u,editable:l,style:{...De.length===0?void 0:Ee,visibility:Ie?`hidden`:null}}),v.createElement(`div`,{className:J(`${x}-ink-bar`,_?.indicator,{[`${x}-ink-bar-animated`]:a.inkBar}),style:{...Fe,...b?.indicator}}))))),v.createElement(Xw,Qw({},e,{removeAriaLabel:u?.removeAriaLabel,ref:O,prefixCls:x,tabs:Me,className:!Ie&&oe,popupStyle:b?.popup,tabMoving:!!ue})),v.createElement(qw,{ref:T,position:`right`,extra:c,prefixCls:x})))}),rT=({renderTabBar:e,...t})=>e?e(t,nT):v.createElement(nT,t),iT=v.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:i,id:a,active:o,tabKey:s,children:c}=e,l=v.Children.count(c)>0;return v.createElement(`div`,{id:a&&`${a}-panel-${s}`,role:`tabpanel`,tabIndex:o&&l?0:-1,"aria-labelledby":a&&`${a}-tab-${s}`,"aria-hidden":!o,style:i,className:J(n,o&&`${n}-active`,r),ref:t},c)});function aT(){return aT=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},aT.apply(this,arguments)}var oT=e=>{let{id:t,activeKey:n,animated:r,tabPosition:i,destroyOnHidden:a,contentStyle:o,contentClassName:s}=e,{prefixCls:c,tabs:l}=v.useContext(Ow),u=r.tabPane,d=`${c}-tabpane`;return v.createElement(`div`,{className:J(`${c}-content-holder`)},v.createElement(`div`,{className:J(`${c}-content`,`${c}-content-${i}`,{[`${c}-content-animated`]:u})},l.map(e=>{let{key:i,forceRender:c,style:l,className:f,destroyOnHidden:p,...m}=e,h=i===n;return v.createElement(ks,aT({key:i,visible:h,forceRender:c,removeOnLeave:!!(a??p),leavedClassName:`${d}-hidden`},r.tabPaneMotion),({style:e,className:n},r)=>v.createElement(iT,aT({},m,{prefixCls:d,id:t,tabKey:i,animated:u,active:h,style:{...o,...l,...e},className:J(s,f,n),ref:r})))})))};function sT(e={inkBar:!0,tabPane:!1}){let t;return t=e===!1?{inkBar:!1,tabPane:!1}:e===!0?{inkBar:!0,tabPane:!1}:{inkBar:!0,...typeof e==`object`?e:{}},t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}function cT(){return cT=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},cT.apply(this,arguments)}var lT=0,uT=v.forwardRef((e,t)=>{let{id:n,prefixCls:r=`rc-tabs`,className:i,items:a,direction:o,activeKey:s,defaultActiveKey:c,editable:l,animated:u,tabPosition:d=`top`,tabBarGutter:f,tabBarStyle:p,tabBarExtraContent:m,locale:h,more:g,destroyOnHidden:_,renderTabBar:y,onChange:b,onTabClick:x,onTabScroll:S,getPopupContainer:C,popupClassName:w,indicator:E,classNames:D,styles:O,...k}=e,A=v.useMemo(()=>(a||[]).filter(e=>e&&typeof e==`object`&&`key`in e),[a]),j=o===`rtl`,M=sT(u),[N,P]=(0,v.useState)(!1);(0,v.useEffect)(()=>{P(Dw())},[]);let[F,I]=T(c??A[0]?.key,s),[L,R]=(0,v.useState)(()=>A.findIndex(e=>e.key===F));(0,v.useEffect)(()=>{let e=A.findIndex(e=>e.key===F);e===-1&&(e=Math.max(0,Math.min(L,A.length-1)),I(A[e]?.key)),R(e)},[A.map(e=>e.key).join(`_`),F,L]);let[z,B]=T(null,n);(0,v.useEffect)(()=>{n||(B(`rc-tabs-${lT}`),lT+=1)},[]);function V(e,t){x?.(e,t);let n=e!==F;I(e),n&&b?.(e)}let H={id:z,activeKey:F,animated:M,tabPosition:d,rtl:j,mobile:N},U={...H,editable:l,locale:h,more:g,tabBarGutter:f,onTabClick:V,onTabScroll:S,extra:m,style:p,getPopupContainer:C,popupClassName:J(w,D?.popup),indicator:E,styles:O,classNames:D},W=v.useMemo(()=>({tabs:A,prefixCls:r}),[A,r]);return v.createElement(Ow.Provider,{value:W},v.createElement(`div`,cT({ref:t,id:n,className:J(r,`${r}-${d}`,{[`${r}-mobile`]:N,[`${r}-editable`]:l,[`${r}-rtl`]:j},i)},k),v.createElement(rT,cT({},U,{renderTabBar:y})),v.createElement(oT,cT({destroyOnHidden:_},H,{contentStyle:O?.content,contentClassName:D?.content,animated:M}))))}),dT={motionAppear:!1,motionEnter:!0,motionLeave:!0};function fT(e,t={inkBar:!0,tabPane:!1}){let n;return n=t===!1?{inkBar:!1,tabPane:!1}:t===!0?{inkBar:!0,tabPane:!0}:{inkBar:!0,...cc(t)?t:{}},n.tabPane&&(n.tabPaneMotion={...dT,motionName:xd(e,`switch`)}),n}function pT(e){return e.filter(e=>e)}function mT(e,t){return e?e.map(e=>({...e,destroyOnHidden:e.destroyOnHidden??e.destroyInactiveTabPane})):pT(fe(t).map(e=>{if(v.isValidElement(e)){let{key:t,props:n}=e,{tab:r,...i}=n||{};return{key:String(t),...i,label:r}}return null}))}var hT=e=>{let{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:`none`,"&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:`absolute`,transition:`none`,inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[xf(e,`slide-up`),xf(e,`slide-down`)]]},gT=e=>{let{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:i,colorBorderSecondary:a,itemSelectedColor:o}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${Y(e.lineWidth)} ${e.lineType} ${a}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:o,background:e.colorBgContainer},[`${t}-tab-focus:has(${t}-tab-btn:focus-visible)`]:Ua(e,-3),[`& ${t}-tab${t}-tab-focus ${t}-tab-btn:focus-visible`]:{outline:`none`},[`${t}-ink-bar`]:{visibility:`hidden`}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:Y(i)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${Y(e.borderRadiusLG)} ${Y(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${Y(e.borderRadiusLG)} ${Y(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:Y(i)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Y(e.borderRadiusLG)} 0 0 ${Y(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Y(e.borderRadiusLG)} ${Y(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},_T=e=>{let{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:{...Ba(e),position:`absolute`,top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:`block`,"&-hidden":{display:`none`},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${Y(r)} 0`,overflowX:`hidden`,overflowY:`auto`,textAlign:{_skip_check_:!0,value:`left`},listStyleType:`none`,backgroundColor:e.colorBgContainer,backgroundClip:`padding-box`,borderRadius:e.borderRadiusLG,outline:`none`,boxShadow:e.boxShadowSecondary,"&-item":{...za,display:`flex`,alignItems:`center`,minWidth:e.tabsDropdownWidth,margin:0,padding:`${Y(e.paddingXXS)} ${Y(e.paddingSM)}`,color:e.colorText,fontWeight:`normal`,fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:`pointer`,transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:`nowrap`},"&-remove":{flex:`none`,marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorIcon,fontSize:e.fontSizeSM,background:`transparent`,border:0,cursor:`pointer`,"&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:`transparent`,cursor:`not-allowed`}}}}}}},vT=e=>{let{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:i,verticalItemPadding:a,verticalItemMargin:o,motionDurationSlow:s,calc:c}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:`column`,[`> ${t}-nav, > div > ${t}-nav`]:{margin:i,"&::before":{position:`absolute`,right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${Y(e.lineWidth)} ${e.lineType} ${r}`,content:`''`},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:[`width`,`left`,`right`].map(e=>`${e} ${s}`).join(`, `)}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,
|
|
216
|
+
> div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:`column`,minWidth:c(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:a,textAlign:`center`},[`${t}-tab + ${t}-tab`]:{margin:o},[`${t}-nav-wrap`]:{flexDirection:`column`,"&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:[`height`,`top`].map(e=>`${e} ${s}`).join(`, `)}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:`1 0 auto`,flexDirection:`column`}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:Y(c(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${Y(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:c(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${Y(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},yT=e=>{let{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,cardHeightSM:i,cardHeightLG:a,horizontalItemPaddingSM:o,horizontalItemPaddingLG:s}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:s,fontSize:e.titleFontSizeLG,lineHeight:e.lineHeightLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n},[`${t}-nav-add`]:{minWidth:i,minHeight:i}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${Y(e.borderRadius)} ${Y(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${Y(e.borderRadius)} ${Y(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Y(e.borderRadius)} ${Y(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Y(e.borderRadius)} 0 0 ${Y(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r},[`${t}-nav-add`]:{minWidth:a,minHeight:a}}}}}},bT=e=>{let{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:i,tabsHorizontalItemMargin:a,horizontalItemPadding:o,itemSelectedColor:s,itemColor:c}=e,l=`${t}-tab`;return{[l]:{position:`relative`,WebkitTouchCallout:`none`,WebkitTapHighlightColor:`transparent`,display:`inline-flex`,alignItems:`center`,padding:o,fontSize:e.titleFontSize,background:`transparent`,border:0,outline:`none`,cursor:`pointer`,color:c,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:`none`,transition:`all ${e.motionDurationSlow}`,[`${l}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:`none`,lineHeight:1,marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorIcon,fontSize:e.fontSizeSM,background:`transparent`,border:`none`,outline:`none`,cursor:`pointer`,transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading},...Wa(e)},"&:hover":{color:r},[`&${l}-active ${l}-btn`]:{color:s},[`&${l}-focus ${l}-btn:focus-visible`]:Ua(e),[`&${l}-disabled`]:{color:e.colorTextDisabled,cursor:`not-allowed`},[`&${l}-disabled ${l}-btn, &${l}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${l}-remove ${i}`]:{margin:0,verticalAlign:`middle`},[`${i}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${l} + ${l}`]:{margin:{_skip_check_:!0,value:a}}}},xT=e=>{let{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:i,calc:a}=e;return{[`${t}-rtl`]:{direction:`rtl`,[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:e.marginSM}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:e.marginXS},marginLeft:{_skip_check_:!0,value:a(e.marginXXS).mul(-1).equal()},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:i},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:`rtl`},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:`right`}}}}},ST=e=>{let{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:i,itemHoverColor:a,itemActiveColor:o,colorBorderSecondary:s}=e;return{[t]:{...Ba(e),display:`flex`,[`> ${t}-nav, > div > ${t}-nav`]:{position:`relative`,display:`flex`,flex:`none`,alignItems:`center`,[`${t}-nav-wrap`]:{position:`relative`,display:`flex`,flex:`auto`,alignSelf:`stretch`,overflow:`hidden`,whiteSpace:`nowrap`,transform:`translate(0)`,"&::before, &::after":{position:`absolute`,zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:`''`,pointerEvents:`none`}},[`${t}-nav-list`]:{position:`relative`,display:`flex`,transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:`flex`,alignSelf:`stretch`},[`${t}-nav-operations-hidden`]:{position:`absolute`,visibility:`hidden`,pointerEvents:`none`},[`${t}-nav-more`]:{position:`relative`,padding:n,background:`transparent`,border:0,color:e.colorText,"&::after":{position:`absolute`,right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:`translateY(100%)`,content:`''`}},[`${t}-nav-add`]:{minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:i},background:`transparent`,border:`${Y(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${Y(e.borderRadiusLG)} ${Y(e.borderRadiusLG)} 0 0`,outline:`none`,cursor:`pointer`,color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:a},"&:active, &:focus:not(:focus-visible)":{color:o},...Wa(e,-3)}},[`${t}-extra-content`]:{flex:`none`},[`${t}-ink-bar`]:{position:`absolute`,background:e.inkBarColor,pointerEvents:`none`},...bT(e),[`${t}-content`]:{position:`relative`,width:`100%`},[`${t}-content-holder`]:{flex:`auto`,minWidth:0,minHeight:0},[`${t}-tabpane`]:{...Wa(e),"&-hidden":{display:`none`}}},[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping']) > ${t}-nav-list`]:{margin:`auto`}}}}}},CT=Ya(`Tabs`,e=>{let t=ci(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${Y(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${Y(e.horizontalItemGutter)}`});return[yT(t),xT(t),vT(t),_T(t),gT(t),ST(t),hT(t)]},e=>{let{cardHeight:t,cardHeightSM:n,cardHeightLG:r,controlHeight:i,controlHeightLG:a}=e,o=t||a,s=n||i,c=r||a+8;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:o,cardHeightSM:s,cardHeightLG:c,cardPadding:`${(o-e.fontHeight)/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${(s-e.fontHeight)/2-e.lineWidth}px ${e.paddingXS}px`,cardPaddingLG:`${(c-e.fontHeightLG)/2-e.lineWidth}px ${e.padding}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:``,horizontalItemMarginRTL:``,horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}}),wT=()=>null,TT=v.forwardRef((e,t)=>{let{type:n,className:r,rootClassName:i,size:a,onEdit:o,hideAdd:s,centered:c,addIcon:l,removeIcon:u,moreIcon:d,more:f,popupClassName:p,children:m,items:h,animated:g,style:_,indicatorSize:y,indicator:b,classNames:x,styles:S,destroyInactiveTabPane:C,destroyOnHidden:w,tabPlacement:T,tabPosition:E,...D}=e,{prefixCls:O}=D,{getPrefixCls:k,direction:A,getPopupContainer:j,className:M,style:N,classNames:P,styles:F}=Qe(`tabs`),{tabs:I}=v.useContext(Ye),L=k(`tabs`,O),R=Xc(L),[z,B]=CT(L,R),V=v.useRef(null);v.useImperativeHandle(t,()=>({nativeElement:V.current}));let H;n===`editable-card`&&(H={onEdit:(e,{key:t,event:n})=>{o?.(e===`add`?n:t,e)},removeIcon:u??I?.removeIcon??v.createElement(jo,null),addIcon:(l??I?.addIcon)||v.createElement(ww,null),showAdd:s!==!0});let U=k(),W=jd(a),ee=mT(h,m),te=fT(L,g),ne={align:b?.align??I?.indicator?.align,size:b?.size??y??I?.indicator?.size??I?.indicatorSize},re=v.useMemo(()=>{let e=T??E??void 0,t=A===`rtl`;switch(e){case`start`:return t?`right`:`left`;case`end`:return t?`left`:`right`;default:return e}},[T,E,A]),ie={...e,size:W,tabPlacement:re,items:ee},[ae,G]=Oc([P,x],[F,S],{props:ie},{popup:{_default:`root`}});return v.createElement(uT,{ref:V,direction:A,getPopupContainer:j,...D,items:ee,className:J({[`${L}-large`]:W===`large`,[`${L}-small`]:W===`small`,[`${L}-card`]:[`card`,`editable-card`].includes(n),[`${L}-editable-card`]:n===`editable-card`,[`${L}-centered`]:c},M,r,i,ae.root,z,B,R),classNames:{...ae,popup:J(p,z,B,R,ae.popup?.root)},styles:G,style:{...G.root,...N,..._},editable:H,more:{icon:I?.more?.icon??I?.moreIcon??d??v.createElement(vC,null),transitionName:`${U}-slide-up`,...f},prefixCls:L,animated:te,indicator:ne,destroyOnHidden:w??C,tabPosition:re})});TT.TabPane=wT;var ET=({prefixCls:e,className:t,hoverable:n=!0,...r})=>{let{getPrefixCls:i}=v.useContext(Ye),a=i(`card`,e),o=J(`${a}-grid`,t,{[`${a}-grid-hoverable`]:n});return v.createElement(`div`,{...r,className:o})},DT=e=>{let{antCls:t,componentCls:n,headerHeight:r,headerPadding:i,tabsMarginBottom:a}=e;return{display:`flex`,justifyContent:`center`,flexDirection:`column`,minHeight:r,marginBottom:-1,padding:`0 ${Y(i)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${Y(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${Y(e.borderRadiusLG)} ${Y(e.borderRadiusLG)} 0 0`,...Ha(),"&-wrapper":{width:`100%`,display:`flex`,alignItems:`center`},"&-title":{display:`inline-block`,flex:1,...za,[`
|
|
217
217
|
> ${n}-typography,
|
|
218
218
|
> ${n}-typography-edit-content
|
|
219
|
-
`]:{insetInlineStart:0,marginTop:0,marginBottom:0}},[`${t}-tabs-top`]:{clear:`both`,marginBottom:a,color:e.colorText,fontWeight:`normal`,fontSize:e.fontSize,"&-bar":{borderBottom:`${Y(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}}},
|
|
219
|
+
`]:{insetInlineStart:0,marginTop:0,marginBottom:0}},[`${t}-tabs-top`]:{clear:`both`,marginBottom:a,color:e.colorText,fontWeight:`normal`,fontSize:e.fontSize,"&-bar":{borderBottom:`${Y(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}}},OT=e=>{let{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:i}=e;return{width:`33.33%`,padding:t,border:0,borderRadius:0,boxShadow:`
|
|
220
220
|
${Y(i)} 0 0 0 ${n},
|
|
221
221
|
0 ${Y(i)} 0 0 ${n},
|
|
222
222
|
${Y(i)} ${Y(i)} 0 0 ${n},
|
|
223
223
|
${Y(i)} 0 0 0 ${n} inset,
|
|
224
224
|
0 ${Y(i)} 0 0 ${n} inset;
|
|
225
|
-
`,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:`relative`,zIndex:1,boxShadow:r}}},ET=e=>{let{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:i,colorBorderSecondary:a,actionsBg:o}=e;return{margin:0,padding:0,listStyle:`none`,background:o,borderTop:`${Y(e.lineWidth)} ${e.lineType} ${a}`,display:`flex`,borderRadius:`0 0 ${Y(e.borderRadiusLG)} ${Y(e.borderRadiusLG)}`,...Ha(),"& > li":{margin:r,color:e.colorTextDescription,textAlign:`center`,"> span":{position:`relative`,display:`block`,minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:`pointer`,"&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:`inline-block`,width:`100%`,color:e.colorIcon,lineHeight:Y(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:i,lineHeight:Y(e.calc(i).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${Y(e.lineWidth)} ${e.lineType} ${a}`}}}},DT=e=>({margin:`${Y(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:`flex`,...Ha(),"&-avatar":{paddingInlineEnd:e.padding},"&-section":{overflow:`hidden`,flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,...za},"&-description":{color:e.colorTextDescription}}),OT=e=>{let{componentCls:t,colorFillAlter:n,headerPadding:r,bodyPadding:i}=e;return{[`${t}-head`]:{padding:`0 ${Y(r)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${Y(e.padding)} ${Y(i)}`}}},kT=e=>{let{componentCls:t}=e;return{overflow:`hidden`,[`${t}-body`]:{userSelect:`none`}}},AT=e=>{let{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:i,boxShadowTertiary:a,bodyPadding:o,extraColor:s,motionDurationMid:c}=e;return{[t]:{...Ba(e),position:`relative`,background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:a},[`${t}-head`]:wT(e),[`${t}-extra`]:{marginInlineStart:`auto`,color:s,fontWeight:`normal`,fontSize:e.fontSize},[`${t}-body`]:{padding:o,borderRadius:`0 0 ${Y(e.borderRadiusLG)} ${Y(e.borderRadiusLG)}`,"&:first-child":{borderStartStartRadius:e.borderRadiusLG,borderStartEndRadius:e.borderRadiusLG},"&:not(:last-child)":{borderEndStartRadius:0,borderEndEndRadius:0}},[`${t}-grid`]:TT(e),[`${t}-cover`]:{"> *":{display:`block`,width:`100%`,borderRadius:`${Y(e.borderRadiusLG)} ${Y(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:ET(e),[`${t}-meta`]:DT(e)},[`${t}-bordered`]:{border:`${Y(e.lineWidth)} ${e.lineType} ${i}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:`pointer`,transition:[`box-shadow`,`border-color`].map(e=>`${e} ${c}`).join(`, `),"&:hover":{borderColor:`transparent`,boxShadow:n}},[`${t}-contain-grid`]:{borderRadius:`${Y(e.borderRadiusLG)} ${Y(e.borderRadiusLG)} 0 0 `,[`&:not(:has(> ${t}-head))`]:{borderRadius:0},[`${t}-body`]:{display:`flex`,flexWrap:`wrap`},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:r}}},[`${t}-type-inner`]:OT(e),[`${t}-loading`]:kT(e),[`${t}-rtl`]:{direction:`rtl`}}},jT=e=>{let{componentCls:t,bodyPaddingSM:n,headerPaddingSM:r,headerHeightSM:i,headerFontSizeSM:a}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:i,padding:`0 ${Y(r)}`,fontSize:a,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:`flex`,alignItems:`center`}}}}},MT=Ya(`Card`,e=>{let t=ci(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[AT(t),jT(t)]},e=>({headerBg:`transparent`,headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText,bodyPaddingSM:12,headerPaddingSM:12,bodyPadding:e.bodyPadding??e.paddingLG,headerPadding:e.headerPadding??e.paddingLG})),NT=e=>{let{actionClasses:t,actions:n=[],actionStyle:r}=e;return v.createElement(`ul`,{className:t,style:r},n.map((e,t)=>{let r=`action-${t}`;return v.createElement(`li`,{style:{width:`${100/n.length}%`},key:r},v.createElement(`span`,null,e))}))},PT=v.forwardRef((e,t)=>{let{prefixCls:n,className:r,rootClassName:i,style:a,extra:o,headStyle:s={},bodyStyle:c={},title:l,loading:u,bordered:d,variant:f,size:p,type:m,cover:h,actions:g,tabList:_,children:y,activeTabKey:b,defaultActiveTabKey:x,tabBarExtraContent:S,hoverable:C,tabProps:w={},classNames:T,styles:E,...D}=e,{getPrefixCls:O,direction:k,className:A,style:j,classNames:M,styles:N}=Qe(`card`),[P]=ab(`card`,f,d),F=jd(p),I={...e,size:F,variant:P},[L,R]=Oc([M,T],[N,E],{props:I}),z=t=>{e.onTabChange?.(t)},B=v.useMemo(()=>fe(y),[y]),V=v.useMemo(()=>B.some(e=>v.isValidElement(e)&&e.type===CT),[B]),H=O(`card`,n),[U,W]=MT(H),ee=v.createElement(Cg,{loading:!0,active:!0,paragraph:{rows:4},title:!1},y),te=b!==void 0,ne={...w,[te?`activeKey`:`defaultActiveKey`]:te?b:x,tabBarExtraContent:S},re,ie=F===`small`?F:`large`,ae=_?v.createElement(ST,{size:ie,...ne,className:`${H}-head-tabs`,onChange:z,items:_.map(({tab:e,...t})=>({label:e,...t}))}):null;if(l||o||ae){let e=J(`${H}-head`,L.header),t=J(`${H}-head-title`,L.title),n=J(`${H}-extra`,L.extra),r={...s,...R.header};re=v.createElement(`div`,{className:e,style:r},v.createElement(`div`,{className:`${H}-head-wrapper`},l&&v.createElement(`div`,{className:t,style:R.title},l),o&&v.createElement(`div`,{className:n,style:R.extra},o)),ae)}let G=J(`${H}-cover`,L.cover),K=h?v.createElement(`div`,{className:G,style:R.cover},h):null,oe=J(`${H}-body`,L.body),se={...c,...R.body},ce=u||B.length?v.createElement(`div`,{className:oe,style:se},u?ee:y):null,q=J(`${H}-actions`,L.actions),le=g?.length?v.createElement(NT,{actionClasses:q,actionStyle:R.actions,actions:g}):null,ue=de(D,[`onTabChange`]),pe=J(H,A,{[`${H}-loading`]:u,[`${H}-bordered`]:P!==`borderless`,[`${H}-hoverable`]:C,[`${H}-contain-grid`]:V,[`${H}-contain-tabs`]:_?.length,[`${H}-small`]:F===`small`,[`${H}-type-${m}`]:!!m,[`${H}-rtl`]:k===`rtl`},r,i,U,W,L.root),me={...R.root,...j,...a};return v.createElement(`div`,{ref:t,...ue,className:pe,style:me},re,K,ce,le)}),FT=e=>{let{prefixCls:t,className:n,avatar:r,title:i,description:a,style:o,classNames:s,styles:c,...l}=e,{getPrefixCls:u,className:d,style:f,classNames:p,styles:m}=Qe(`cardMeta`),h=`${u(`card`,t)}-meta`,[g,_]=Oc([p,s],[m,c],{props:e}),y=J(h,n,d,g.root),b={...f,..._.root,...o},x=J(`${h}-avatar`,g.avatar),S=J(`${h}-title`,g.title),C=J(`${h}-description`,g.description),w=J(`${h}-section`,g.section),T=r?v.createElement(`div`,{className:x,style:_.avatar},r):null,E=i?v.createElement(`div`,{className:S,style:_.title},i):null,D=a?v.createElement(`div`,{className:C,style:_.description},a):null,O=E||D?v.createElement(`div`,{className:w,style:_.section},E,D):null;return v.createElement(`div`,{...l,className:y,style:b},T,O)},IT=PT;IT.Grid=CT,IT.Meta=FT;function LT(e,t,n){var r=n||{},i=r.noTrailing,a=i===void 0?!1:i,o=r.noLeading,s=o===void 0?!1:o,c=r.debounceMode,l=c===void 0?void 0:c,u,d=!1,f=0;function p(){u&&clearTimeout(u)}function m(e){var t=(e||{}).upcomingOnly,n=t===void 0?!1:t;p(),d=!n}function h(){var n=[...arguments],r=this,i=Date.now()-f;if(d)return;function o(){f=Date.now(),t.apply(r,n)}function c(){u=void 0}!s&&l&&!u&&o(),p(),l===void 0&&i>e?s?(f=Date.now(),a||(u=setTimeout(l?c:o,e))):o():a!==!0&&(u=setTimeout(l?c:o,l===void 0?e-i:e))}return h.cancel=m,h}function RT(e,t,n){var r=(n||{}).atBegin;return LT(e,t,{debounceMode:(r===void 0?!1:r)!==!1})}var zT=(0,v.createContext)({});function BT(e){return e===`auto`?`1 1 auto`:oc(e)?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}var VT=v.forwardRef((e,t)=>{let{getPrefixCls:n,direction:r}=v.useContext(Ye),{gutter:i,wrap:a}=v.useContext(zT),{prefixCls:o,span:s,order:c,offset:l,push:u,pull:d,className:f,children:p,flex:m,style:h,...g}=e,_=n(`col`,o),y=n(),[b,x]=Bg(_),[S]=Qa(y,`col`),C={},w={};Ib.forEach(t=>{let n={},i=e[t];oc(i)?n.span=i:cc(i)&&(n=i||{}),delete g[t],w={...w,[`${_}-${t}-${n.span}`]:ac(n.span),[`${_}-${t}-order-${n.order}`]:n.order||n.order===0,[`${_}-${t}-offset-${n.offset}`]:n.offset||n.offset===0,[`${_}-${t}-push-${n.push}`]:n.push||n.push===0,[`${_}-${t}-pull-${n.pull}`]:n.pull||n.pull===0,[`${_}-rtl`]:r===`rtl`},n.flex&&(w[`${_}-${t}-flex`]=!0,C[S(`${t}-flex`)]=BT(n.flex))});let T=J(_,{[`${_}-${s}`]:s!==void 0,[`${_}-order-${c}`]:c,[`${_}-offset-${l}`]:l,[`${_}-push-${u}`]:u,[`${_}-pull-${d}`]:d},f,w,b,x),E={};return i?.[0]&&(E.paddingInline=oc(i[0])?`${i[0]/2}px`:`calc(${i[0]} / 2)`),m&&(E.flex=BT(m),a===!1&&!E.minWidth&&(E.minWidth=0)),v.createElement(`div`,{...g,style:{...E,...h,...C},className:T,ref:t},p)});function HT(e,t){let n=[void 0,void 0],r=Array.isArray(e)?e:[e,void 0],i=t||{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0,xxxl:!0};return r.forEach((e,t)=>{if(cc(e))for(let r=0;r<Fb.length;r++){let a=Fb[r];if(i[a]&&e[a]!==void 0){n[t]=e[a];break}}else n[t]=e}),n}var UT=(e,t)=>{let[n,r]=v.useState(()=>sc(e)?e:``),i=()=>{if(sc(e)&&r(e),cc(e))for(let n=0;n<Fb.length;n++){let i=Fb[n];if(!t||!t[i])continue;let a=e[i];if(a!==void 0){r(a);return}}};return v.useEffect(()=>{i()},[JSON.stringify(e),t]),n},WT=v.forwardRef((e,t)=>{let{prefixCls:n,justify:r,align:i,className:a,style:o,children:s,gutter:c=0,wrap:l,...u}=e,{getPrefixCls:d,direction:f}=v.useContext(Ye),p=Bb(!0,null),m=UT(i,p),h=UT(r,p),g=d(`row`,n),[_,y]=Rg(g),b=HT(c,p),x=J(g,{[`${g}-no-wrap`]:l===!1,[`${g}-${h}`]:h,[`${g}-${m}`]:m,[`${g}-rtl`]:f===`rtl`},a,_,y),S={};b?.[0]&&(S.marginInline=oc(b[0])?`${b[0]/-2}px`:`calc(${b[0]} / -2)`);let[C,w]=b;S.rowGap=w;let T=v.useMemo(()=>({gutter:[C,w],wrap:l}),[C,w,l]);return v.createElement(zT.Provider,{value:T},v.createElement(`div`,{...u,className:x,style:{...S,...o},ref:t},s))}),GT=(e,t)=>{if(!e)return null;let n={left:e.offsetLeft,right:e.parentElement.clientWidth-e.clientWidth-e.offsetLeft,width:e.clientWidth,top:e.offsetTop,bottom:e.parentElement.clientHeight-e.clientHeight-e.offsetTop,height:e.clientHeight};return t?{left:0,right:0,width:0,top:n.top,bottom:n.bottom,height:n.height}:{left:n.left,right:n.right,width:n.width,top:0,bottom:0,height:0}},KT=e=>e===void 0?void 0:`${e}px`;function qT(e){let{prefixCls:t,containerRef:n,value:r,getValueIndex:i,motionName:a,onMotionStart:o,onMotionEnd:s,direction:c,vertical:l=!1}=e,u=v.useRef(null),[d,f]=v.useState(r),p=e=>{let r=i(e),a=n.current?.querySelectorAll(`.${t}-item`)[r];return a?.offsetParent&&a},[m,h]=v.useState(null),[g,_]=v.useState(null);S(()=>{if(d!==r){let e=p(d),t=p(r),n=GT(e,l),i=GT(t,l);f(r),h(n),_(i),e&&t?o():s()}},[r]);let y=v.useMemo(()=>KT(l?m?.top??0:c===`rtl`?-m?.right:m?.left),[l,c,m]),b=v.useMemo(()=>KT(l?g?.top??0:c===`rtl`?-g?.right:g?.left),[l,c,g]);return!m||!g?null:v.createElement(ks,{visible:!0,motionName:a,motionAppear:!0,onAppearStart:()=>l?{transform:`translateY(var(--thumb-start-top))`,height:`var(--thumb-start-height)`}:{transform:`translateX(var(--thumb-start-left))`,width:`var(--thumb-start-width)`},onAppearActive:()=>l?{transform:`translateY(var(--thumb-active-top))`,height:`var(--thumb-active-height)`}:{transform:`translateX(var(--thumb-active-left))`,width:`var(--thumb-active-width)`},onVisibleChanged:()=>{h(null),_(null),s()}},({className:e,style:n},r)=>{let i={...n,"--thumb-start-left":y,"--thumb-start-width":KT(m?.width),"--thumb-active-left":b,"--thumb-active-width":KT(g?.width),"--thumb-start-top":y,"--thumb-start-height":KT(m?.height),"--thumb-active-top":b,"--thumb-active-height":KT(g?.height)},a={ref:I(u,r),style:i,className:J(`${t}-thumb`,e)};return v.createElement(`div`,a)})}function JT(e){if(e.title!==void 0)return e.title;if(typeof e.label!=`object`)return e.label?.toString()}function YT(e){return e.map(e=>{if(typeof e==`object`&&e){let t=JT(e);return{...e,title:t}}return{label:e?.toString(),title:e?.toString(),value:e}})}var XT=({prefixCls:e,className:t,style:n,styles:r,classNames:i,data:a,disabled:o,checked:s,label:c,title:l,value:u,name:d,onChange:f,onFocus:p,onBlur:m,onKeyDown:h,onKeyUp:g,onMouseDown:_,itemRender:y=e=>e})=>{let b=e=>{o||f(e,u)};return y(v.createElement(`label`,{className:J(t,{[`${e}-item-disabled`]:o}),style:n,onMouseDown:_},v.createElement(`input`,{name:d,className:`${e}-item-input`,type:`radio`,disabled:o,checked:s,onChange:b,onFocus:p,onBlur:m,onKeyDown:h,onKeyUp:g}),v.createElement(`div`,{className:J(`${e}-item-label`,i?.label),title:l,style:r?.label},c)),{item:a})},ZT=v.forwardRef((e,t)=>{let{prefixCls:n=`rc-segmented`,direction:r,vertical:i,options:a=[],disabled:o,defaultValue:s,value:c,name:l,onChange:u,className:d=``,style:f,styles:p,classNames:m,motionName:h=`thumb-motion`,itemRender:g,..._}=e,y=v.useRef(null),b=v.useMemo(()=>I(y,t),[y,t]),x=v.useMemo(()=>YT(a),[a]),[S,C]=T(s??x[0]?.value,c),[w,E]=v.useState(!1),D=(e,t)=>{C(t),u?.(t)},O=de(_,[`children`]),[k,A]=v.useState(!1),[j,M]=v.useState(!1),N=()=>{M(!0)},P=()=>{M(!1)},F=()=>{A(!1)},L=e=>{e.key===`Tab`&&A(!0)},R=e=>{let t=x.findIndex(e=>e.value===S),n=x.length,r=x[(t+e+n)%n];r&&(C(r.value),u?.(r.value))},z=e=>{switch(e.key){case`ArrowLeft`:case`ArrowUp`:R(-1);break;case`ArrowRight`:case`ArrowDown`:R(1);break}},B=e=>{let{value:t,disabled:r}=e;return v.createElement(XT,Jf({},e,{name:l,data:e,itemRender:g,key:t,prefixCls:n,className:J(e.className,`${n}-item`,m?.item,{[`${n}-item-selected`]:t===S&&!w,[`${n}-item-focused`]:j&&k&&t===S}),style:p?.item,classNames:m,styles:p,checked:t===S,onChange:D,onFocus:N,onBlur:P,onKeyDown:z,onKeyUp:L,onMouseDown:F,disabled:!!o||!!r}))};return v.createElement(`div`,Jf({role:`radiogroup`,"aria-label":`segmented control`,tabIndex:o?void 0:0,"aria-orientation":i?`vertical`:`horizontal`,style:f},O,{className:J(n,{[`${n}-rtl`]:r===`rtl`,[`${n}-disabled`]:o,[`${n}-vertical`]:i},d),ref:b}),v.createElement(`div`,{className:`${n}-group`},v.createElement(qT,{vertical:i,prefixCls:n,value:S,containerRef:y,motionName:`${n}-${h}`,direction:r,getValueIndex:e=>x.findIndex(t=>t.value===e),onMotionStart:()=>{E(!0)},onMotionEnd:()=>{E(!1)}}),x.map(B)))});function QT(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:`not-allowed`}}}var $T=e=>({background:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}),eE={overflow:`hidden`,...za},tE=e=>{let{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,motionDurationMid:i}=e,a=e.calc(e.controlHeight).sub(e.calc(e.trackPadding).mul(2)).equal(),o=e.calc(e.controlHeightLG).sub(e.calc(e.trackPadding).mul(2)).equal(),s=e.calc(e.controlHeightSM).sub(e.calc(e.trackPadding).mul(2)).equal();return{[t]:{...Ba(e),display:`inline-block`,padding:e.trackPadding,color:e.itemColor,background:e.trackBg,borderRadius:e.borderRadius,transition:`all ${i}`,...Wa(e),[`${t}-group`]:{position:`relative`,display:`flex`,alignItems:`stretch`,justifyItems:`flex-start`,flexDirection:`row`,width:`100%`},[`&${t}-rtl`]:{direction:`rtl`},[`&${t}-vertical`]:{[`${t}-group`]:{flexDirection:`column`},[`${t}-thumb`]:{width:`100%`,height:0,padding:`0 ${Y(e.paddingXXS)}`}},[`&${t}-block`]:{display:`flex`},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:`relative`,textAlign:`center`,cursor:`pointer`,transition:`color ${i}`,borderRadius:e.borderRadiusSM,transform:`translateZ(0)`,"&-selected":{...$T(e),color:e.itemSelectedColor},"&-focused":Ua(e),"&::after":{content:`""`,position:`absolute`,zIndex:-1,width:`100%`,height:`100%`,top:0,insetInlineStart:0,borderRadius:`inherit`,opacity:0,pointerEvents:`none`,transition:[`opacity`,`background-color`].map(e=>`${e} ${i}`).join(`, `)},[`&:not(${t}-item-selected):not(${t}-item-disabled)`]:{"&:hover, &:active":{color:e.itemHoverColor},"&:hover::after":{opacity:1,backgroundColor:e.itemHoverBg},"&:active::after":{opacity:1,backgroundColor:e.itemActiveBg}},"&-label":{minHeight:a,lineHeight:Y(a),padding:`0 ${Y(e.segmentedPaddingHorizontal)}`,...eE},"&-icon + *":{marginInlineStart:e.calc(e.marginSM).div(2).equal()},"&-input":{position:`absolute`,insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:`none`}},[`${t}-thumb`]:{...$T(e),position:`absolute`,insetBlockStart:0,insetInlineStart:0,width:0,height:`100%`,padding:`${Y(e.paddingXXS)} 0`,borderRadius:e.borderRadiusSM,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:`transparent`}},[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[`${t}-item-label`]:{minHeight:o,lineHeight:Y(o),padding:`0 ${Y(e.segmentedPaddingHorizontal)}`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:s,lineHeight:Y(s),padding:`0 ${Y(e.segmentedPaddingHorizontalSM)}`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}},...QT(`&-disabled ${t}-item`,e),...QT(`${t}-item-disabled`,e),[`${t}-thumb-motion-appear-active`]:{willChange:`transform, width`,transition:[`transform`,`width`].map(e=>`${e} ${n} ${r}`).join(`, `)},[`&${t}-shape-round`]:{borderRadius:9999,[`${t}-item, ${t}-thumb`]:{borderRadius:9999}}}}},nE=Ya(`Segmented`,e=>{let{lineWidth:t,calc:n}=e;return tE(ci(e,{segmentedPaddingHorizontal:n(e.controlPaddingHorizontal).sub(t).equal(),segmentedPaddingHorizontalSM:n(e.controlPaddingHorizontalSM).sub(t).equal()}))},e=>{let{colorTextLabel:t,colorText:n,colorFillSecondary:r,colorBgElevated:i,colorFill:a,lineWidthBold:o,colorBgLayout:s}=e;return{trackPadding:o,trackBg:s,itemColor:t,itemHoverColor:n,itemHoverBg:r,itemSelectedBg:i,itemActiveBg:a,itemSelectedColor:n}});function rE(e){return cc(e)&&!!e?.icon}var iE=v.forwardRef((e,t)=>{let n=fl(),{prefixCls:r,className:i,rootClassName:a,block:o,options:s=[],size:c,style:l,vertical:u,orientation:d,shape:f=`default`,name:p=n,styles:m,classNames:h,...g}=e,{getPrefixCls:_,direction:y,className:b,style:x,classNames:S,styles:C}=Qe(`segmented`),w={...e,options:s,size:c,shape:f},[T,E]=Oc([S,h],[C,m],{props:w}),D=_(`segmented`,r),[O,k]=nE(D),A=jd(c),j=v.useMemo(()=>s.map(e=>{if(rE(e)){let{icon:t,label:n,...r}=e;return{...r,label:v.createElement(v.Fragment,null,v.createElement(`span`,{className:J(`${D}-item-icon`,T.icon),style:E.icon},t),n&&v.createElement(`span`,null,n))}}return e}),[s,D,T.icon,E.icon]),[,M]=Ac(d,u),N=J(i,a,b,T.root,{[`${D}-block`]:o,[`${D}-sm`]:A===`small`,[`${D}-lg`]:A===`large`,[`${D}-vertical`]:M,[`${D}-shape-${f}`]:f===`round`},O,k),P={...E.root,...x,...l},F=(e,{item:t})=>{if(!t.tooltip)return e;let n=cc(t.tooltip)?t.tooltip:{title:t.tooltip};return v.createElement(_x,{...n},e)};return v.createElement(ZT,{...g,name:p,className:N,style:P,classNames:T,styles:E,itemRender:F,options:j,ref:t,prefixCls:D,direction:y,vertical:M})}),aE=e=>{let{componentCls:t,borderRadius:n,paddingSM:r,colorBorder:i,paddingXS:a,fontSizeLG:o,fontSizeSM:s,borderRadiusLG:c,borderRadiusSM:l,colorBgContainerDisabled:u,lineWidth:d,antCls:f}=e,[p,m]=Qa(f,`space`);return{[t]:[{display:`inline-flex`,alignItems:`center`,gap:0,whiteSpace:`nowrap`,paddingInline:r,margin:0,borderWidth:d,borderStyle:`solid`,borderRadius:n,"&:hover":{zIndex:0},[`&${t}-disabled`]:{color:e.colorTextDisabled},"&-large":{fontSize:o,borderRadius:c},"&-small":{paddingInline:a,borderRadius:l,fontSize:s},"&-compact-last-item":{borderEndStartRadius:0,borderStartStartRadius:0},"&-compact-first-item":{borderEndEndRadius:0,borderStartEndRadius:0},"&-compact-item:not(:first-child):not(:last-child)":{borderRadius:0},"&-compact-item:not(:last-child)":{borderInlineEndWidth:0},"&-compact-item:not(:first-child)":{borderInlineStartWidth:0}},{[p(`addon-border-color`)]:i,[p(`addon-background`)]:u,[p(`addon-border-color-outlined`)]:i,[p(`addon-background-filled`)]:u,borderColor:m(`addon-border-color`),background:m(`addon-background`),"&-variant-outlined":{[p(`addon-border-color`)]:m(`addon-border-color-outlined`)},"&-variant-filled":{[p(`addon-border-color`)]:`transparent`,[p(`addon-background`)]:m(`addon-background-filled`),[`&${t}-disabled`]:{[p(`addon-border-color`)]:i,[p(`addon-background`)]:u}},"&-variant-borderless":{border:`none`,background:`transparent`},"&-variant-underlined":{border:`none`,background:`transparent`}},{"&-status-error":{[p(`addon-border-color-outlined`)]:e.colorError,[p(`addon-background-filled`)]:e.colorErrorBg,color:e.colorError},"&-status-warning":{[p(`addon-border-color-outlined`)]:e.colorWarning,[p(`addon-background-filled`)]:e.colorWarningBg,color:e.colorWarning}}]}},oE=Ya([`Space`,`Addon`],e=>[aE(e),up(e,{focus:!1})]),sE=v.forwardRef((e,t)=>{let{className:n,children:r,style:i,prefixCls:a,variant:o=`outlined`,disabled:s,status:c,...l}=e,{getPrefixCls:u,direction:d}=v.useContext(Ye),f=u(`space-addon`,a),[p,m]=oE(f),{compactItemClassnames:h,compactSize:g}=Pd(f,d),_=Yy(f,c),y=J(f,p,h,m,`${f}-variant-${o}`,_,{[`${f}-${g}`]:g,[`${f}-disabled`]:s},n);return v.createElement(`div`,{ref:t,className:y,style:i,...l},r)});function cE(e){return!!(e.addonBefore||e.addonAfter)}function lE(e){return!!(e.prefix||e.suffix||e.allowClear)}function uE(e,t,n){let r=t.cloneNode(!0),i=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,typeof t.selectionStart==`number`&&typeof t.selectionEnd==`number`&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=(...e)=>{t.setSelectionRange(...e)},i}function dE(e,t,n,r){if(!n)return;let i=t;if(t.type===`click`){i=uE(t,e,``),n(i);return}if(e.type!==`file`&&r!==void 0){i=uE(t,e,r),n(i);return}n(i)}function fE(){return fE=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},fE.apply(this,arguments)}var pE=v.forwardRef((e,t)=>{let{inputElement:n,children:r,prefixCls:i,prefix:a,suffix:o,addonBefore:s,addonAfter:c,className:l,style:u,disabled:d,readOnly:f,focused:p,triggerFocus:m,allowClear:h,value:g,handleReset:_,hidden:y,classes:b,classNames:x,dataAttrs:S,styles:C,components:w,onClear:T}=e,E=r??n,D=w?.affixWrapper||`span`,O=w?.groupWrapper||`span`,k=w?.wrapper||`span`,A=w?.groupAddon||`span`,j=(0,v.useRef)(null),M=e=>{j.current?.contains(e.target)&&m?.()},N=lE(e),P=(0,v.cloneElement)(E,{value:g,className:J(E.props?.className,!N&&x?.variant)||null}),F=(0,v.useRef)(null);if(v.useImperativeHandle(t,()=>({nativeElement:F.current||j.current})),N){let e=null;if(h){let t=!d&&!f&&g,n=`${i}-clear-icon`,r=typeof h==`object`&&h?.clearIcon?h.clearIcon:`✖`;e=v.createElement(`button`,{type:`button`,tabIndex:-1,onClick:e=>{_?.(e),T?.()},onMouseDown:e=>e.preventDefault(),className:J(n,{[`${n}-hidden`]:!t,[`${n}-has-suffix`]:!!o})},r)}let t=`${i}-affix-wrapper`,n=J(t,{[`${i}-disabled`]:d,[`${t}-disabled`]:d,[`${t}-focused`]:p,[`${t}-readonly`]:f,[`${t}-input-with-clear-btn`]:o&&h&&g},b?.affixWrapper,x?.affixWrapper,x?.variant),r=(o||h)&&v.createElement(`span`,{className:J(`${i}-suffix`,x?.suffix),style:C?.suffix},e,o);P=v.createElement(D,fE({className:n,style:C?.affixWrapper,onClick:M},S?.affixWrapper,{ref:j}),a&&v.createElement(`span`,{className:J(`${i}-prefix`,x?.prefix),style:C?.prefix},a),P,r)}if(cE(e)){let e=`${i}-group`,t=`${e}-addon`,n=`${e}-wrapper`,r=J(`${i}-wrapper`,e,b?.wrapper,x?.wrapper),a=J(n,{[`${n}-disabled`]:d},b?.group,x?.groupWrapper);P=v.createElement(O,{className:a,ref:F},v.createElement(k,{className:r},s&&v.createElement(A,{className:t},s),P,c&&v.createElement(A,{className:t},c)))}return v.cloneElement(P,{className:J(P.props?.className,l)||null,style:{...P.props?.style,...u},hidden:y})});function mE(e,t){return v.useMemo(()=>{let n={};t&&(n.show=typeof t==`object`&&t.formatter?t.formatter:!!t),n={...n,...e};let{show:r,...i}=n;return{...i,show:!!r,showFormatter:typeof r==`function`?r:void 0,strategy:i.strategy||(e=>e.length)}},[e,t])}function hE(){return hE=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},hE.apply(this,arguments)}var gE=(0,v.forwardRef)((e,t)=>{let{autoComplete:n,onChange:r,onFocus:i,onBlur:a,onPressEnter:o,onKeyDown:s,onKeyUp:c,prefixCls:l=`rc-input`,disabled:u,htmlSize:d,className:f,maxLength:p,suffix:m,showCount:h,count:g,type:_=`text`,classes:y,classNames:b,styles:x,onCompositionStart:S,onCompositionEnd:C,...w}=e,[E,D]=(0,v.useState)(!1),O=(0,v.useRef)(!1),k=(0,v.useRef)(!1),A=(0,v.useRef)(null),j=(0,v.useRef)(null),M=e=>{A.current&&Ap(A.current,e)},[N,P]=T(e.defaultValue,e.value),F=N==null?``:String(N),[I,L]=(0,v.useState)(null),R=mE(g,h),z=R.max||p,B=R.strategy(F),V=!!z&&B>z;(0,v.useImperativeHandle)(t,()=>({focus:M,blur:()=>{A.current?.blur()},setSelectionRange:(e,t,n)=>{A.current?.setSelectionRange(e,t,n)},select:()=>{A.current?.select()},input:A.current,nativeElement:j.current?.nativeElement||A.current})),(0,v.useEffect)(()=>{k.current&&=!1,D(e=>e&&u?!1:e)},[u]);let H=(e,t,n)=>{let i=t;if(!O.current&&R.exceedFormatter&&R.max&&R.strategy(t)>R.max)i=R.exceedFormatter(t,{max:R.max}),t!==i&&L([A.current?.selectionStart||0,A.current?.selectionEnd||0]);else if(n.source===`compositionEnd`)return;P(i),A.current&&dE(A.current,e,r,i)};(0,v.useEffect)(()=>{I&&A.current?.setSelectionRange(...I)},[I]);let U=e=>{H(e,e.target.value,{source:`change`})},W=e=>{O.current=!1,H(e,e.currentTarget.value,{source:`compositionEnd`}),C?.(e)},ee=e=>{o&&e.key===`Enter`&&!k.current&&!e.nativeEvent.isComposing&&(k.current=!0,o(e)),s?.(e)},te=e=>{e.key===`Enter`&&(k.current=!1),c?.(e)},ne=e=>{D(!0),i?.(e)},re=e=>{k.current&&=!1,D(!1),a?.(e)},ie=e=>{P(``),M(),A.current&&dE(A.current,e,r)},ae=V&&`${l}-out-of-range`;return v.createElement(pE,hE({},w,{prefixCls:l,className:J(f,ae),handleReset:ie,value:F,focused:E,triggerFocus:M,suffix:(()=>{let e=Number(z)>0;if(m||R.show){let t=R.showFormatter?R.showFormatter({value:F,count:B,maxLength:z}):`${B}${e?` / ${z}`:``}`;return v.createElement(v.Fragment,null,R.show&&v.createElement(`span`,{className:J(`${l}-show-count-suffix`,{[`${l}-show-count-has-suffix`]:!!m},b?.count),style:{...x?.count}},t),m)}return null})(),disabled:u,classes:y,classNames:b,styles:x,ref:j}),(()=>{let t=de(e,[`prefixCls`,`onPressEnter`,`addonBefore`,`addonAfter`,`prefix`,`suffix`,`allowClear`,`defaultValue`,`showCount`,`count`,`classes`,`htmlSize`,`styles`,`classNames`,`onClear`]);return v.createElement(`input`,hE({autoComplete:n},t,{onChange:U,onFocus:ne,onBlur:re,onKeyDown:ee,onKeyUp:te,className:J(l,{[`${l}-disabled`]:u},b?.input),style:x?.input,ref:A,size:d,type:_,onCompositionStart:e=>{O.current=!0,S?.(e)},onCompositionEnd:W}))})())}),_E=e=>{let t;return cc(e)&&e?.clearIcon?t=e:e&&(t={clearIcon:v.createElement(Oo,null)}),t};function vE(e,t){let n=(0,v.useRef)([]),r=()=>{n.current.push(setTimeout(()=>{e.current?.input&&e.current?.input.getAttribute(`type`)===`password`&&e.current?.input.hasAttribute(`value`)&&e.current?.input.removeAttribute(`value`)}))};return(0,v.useEffect)(()=>(t&&r(),()=>n.current.forEach(e=>{e&&clearTimeout(e)})),[]),r}function yE(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var bE=(0,v.forwardRef)((e,t)=>{let{prefixCls:n,bordered:r=!0,status:i,size:a,disabled:o,onBlur:s,onFocus:c,suffix:l,allowClear:u,addonAfter:d,addonBefore:f,className:p,style:m,styles:h,rootClassName:g,onChange:_,classNames:y,variant:b,...x}=e,{getPrefixCls:S,direction:C,allowClear:w,autoComplete:T,className:E,style:D,classNames:O,styles:k}=Qe(`input`),A=S(`input`,n),j=(0,v.useRef)(null),M=Xc(A),[N,P]=_w(A,g);vw(A,M);let{compactSize:F,compactItemClassnames:L}=Pd(A,C),R=jd(e=>a??F??e),z=v.useContext(fu),B=o??z,V={...e,size:R,disabled:B},[H,U]=Oc([O,y],[k,h],{props:V}),{status:W,hasFeedback:ee,feedbackIcon:te}=(0,v.useContext)(zh),ne=Xy(W,i);(0,v.useRef)(yE(e)||!!ee);let re=vE(j,!0),ie=e=>{re(),s?.(e)},ae=e=>{re(),c?.(e)},G=e=>{re(),_?.(e)},K=(ee||l)&&v.createElement(v.Fragment,null,l,ee&&te),oe=_E(u??w),[se,ce]=ab(`input`,b,r);return v.createElement(gE,{ref:I(t,j),prefixCls:A,autoComplete:T,...x,disabled:B,onBlur:ie,onFocus:ae,style:{...U.root,...D,...m},styles:U,suffix:K,allowClear:oe,className:J(p,g,P,M,L,E,H.root),onChange:G,addonBefore:f&&v.createElement(Hh,{form:!0,space:!0},f),addonAfter:d&&v.createElement(Hh,{form:!0,space:!0},d),classNames:{...H,input:J({[`${A}-sm`]:R===`small`,[`${A}-lg`]:R===`large`,[`${A}-rtl`]:C===`rtl`},H.input,N),variant:J({[`${A}-${se}`]:ce},Yy(A,ne)),affixWrapper:J({[`${A}-affix-wrapper-sm`]:R===`small`,[`${A}-affix-wrapper-lg`]:R===`large`,[`${A}-affix-wrapper-rtl`]:C===`rtl`},N),wrapper:J({[`${A}-group-rtl`]:C===`rtl`},N),groupWrapper:J({[`${A}-group-wrapper-sm`]:R===`small`,[`${A}-group-wrapper-lg`]:R===`large`,[`${A}-group-wrapper-rtl`]:C===`rtl`,[`${A}-group-wrapper-${se}`]:ce},Yy(`${A}-group-wrapper`,ne,ee),N)}})});function xE(e){return[`small`,`middle`,`medium`,`large`].includes(e)}function SE(e){return e?oc(e):!1}var CE=v.createContext({latestIndex:0}),wE=CE.Provider,TE=e=>{let{className:t,prefix:n,index:r,children:i,separator:a,style:o,classNames:s,styles:c}=e,{latestIndex:l}=v.useContext(CE);return ac(i)?v.createElement(v.Fragment,null,v.createElement(`div`,{className:t,style:o},i),r<l&&a&&v.createElement(`span`,{className:J(`${n}-item-separator`,s?.separator),style:c?.separator},a)):null},EE=e=>{let{componentCls:t,antCls:n}=e;return{[t]:{display:`inline-flex`,"&-rtl":{direction:`rtl`},"&-vertical":{flexDirection:`column`},"&-align":{flexDirection:`column`,"&-center":{alignItems:`center`},"&-start":{alignItems:`flex-start`},"&-end":{alignItems:`flex-end`},"&-baseline":{alignItems:`baseline`}},[`${t}-item:empty`]:{display:`none`},[`${t}-item > ${n}-badge-not-a-wrapper:only-child`]:{display:`block`}}}},DE=e=>{let{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-medium, &-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-medium, &-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},OE=Ya(`Space`,e=>{let t=ci(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[EE(t),DE(t)]},()=>({}),{resetStyle:!1}),kE=v.forwardRef((e,t)=>{let{getPrefixCls:n,direction:r,size:i,className:a,style:o,classNames:s,styles:c}=Qe(`space`),{size:l=i??`small`,align:u,className:d,rootClassName:f,children:p,direction:m,orientation:h,prefixCls:g,split:_,separator:y,style:b,vertical:x,wrap:S=!1,classNames:C,styles:w,...T}=e,[E,D]=Array.isArray(l)?l:[l,l],O=xE(D),k=xE(E),A=SE(D),j=SE(E),M=fe(p,{keepEmpty:!0}),[N,P]=Ac(h,x,m),F=u===void 0&&!P?`center`:u,I=y??_,L=n(`space`,g),[R,z]=OE(L),B={...e,size:l,orientation:N,align:F},[V,H]=Oc([s,C],[c,w],{props:B}),U=J(L,a,R,`${L}-${N}`,{[`${L}-rtl`]:r===`rtl`,[`${L}-align-${F}`]:F,[`${L}-gap-row-${D}`]:O,[`${L}-gap-col-${E}`]:k},d,f,z,V.root),W=J(`${L}-item`,V.item),ee=M.map((e,t)=>{let n=e?.key||`${W}-${t}`;return v.createElement(TE,{prefix:L,classNames:V,styles:H,className:W,key:n,index:t,separator:I,style:H.item},e)}),te=v.useMemo(()=>({latestIndex:M.reduce((e,t,n)=>ac(t)?n:e,0)}),[M]);if(M.length===0)return null;let ne={};return S&&(ne.flexWrap=`wrap`),!k&&j&&(ne.columnGap=E),!O&&A&&(ne.rowGap=D),v.createElement(`div`,{ref:t,className:U,style:{...ne,...H.root,...o,...b},...T},v.createElement(wE,{value:te},ee))});kE.Compact=Ld,kE.Addon=sE;var AE=e=>{let{getPopupContainer:t,getPrefixCls:n,direction:r}=v.useContext(Ye),{prefixCls:i,type:a=`default`,danger:o,disabled:s,loading:c,onClick:l,htmlType:u,children:d,className:f,menu:p,arrow:m,autoFocus:h,trigger:g,align:_,open:y,onOpenChange:b,placement:x,getPopupContainer:S,href:C,icon:w=v.createElement(hC,null),title:T,buttonsRender:E=e=>e,mouseEnterDelay:D,mouseLeaveDelay:O,overlayClassName:k,overlayStyle:A,destroyOnHidden:j,destroyPopupOnHide:M,dropdownRender:N,popupRender:P,...F}=e,I=n(`dropdown`,i),L=`${I}-button`,R={menu:p,arrow:m,autoFocus:h,align:_,disabled:s,trigger:s?[]:g,onOpenChange:b,getPopupContainer:S||t,mouseEnterDelay:D,mouseLeaveDelay:O,classNames:{root:k},styles:{root:A},destroyOnHidden:j,popupRender:P||N},{compactSize:z,compactItemClassnames:B}=Pd(I,r),V=J(L,B,f);`destroyPopupOnHide`in e&&(R.destroyPopupOnHide=M),`open`in e&&(R.open=y),`placement`in e?R.placement=x:R.placement=r===`rtl`?`bottomLeft`:`bottomRight`;let[H,U]=E([v.createElement(HC,{type:a,danger:o,disabled:s,loading:c,onClick:l,htmlType:u,href:C,title:T},d),v.createElement(HC,{type:a,danger:o,icon:w})]);return v.createElement(kE.Compact,{className:V,size:z,block:!0,...F},H,v.createElement(BC,{...R},U))};AE.__ANT_BUTTON=!0;var jE=BC;jE.Button=AE;var ME=[`wrap`,`nowrap`,`wrap-reverse`],NE=[`flex-start`,`flex-end`,`start`,`end`,`center`,`space-between`,`space-around`,`space-evenly`,`stretch`,`normal`,`left`,`right`],PE=[`center`,`start`,`end`,`flex-start`,`flex-end`,`self-start`,`self-end`,`baseline`,`normal`,`stretch`],FE=(e,t)=>{let n=t.wrap===!0?`wrap`:t.wrap;return{[`${e}-wrap-${n}`]:n&&ME.includes(n)}},IE=(e,t)=>{let n={};return PE.forEach(r=>{n[`${e}-align-${r}`]=t.align===r}),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n},LE=(e,t)=>{let n={};return NE.forEach(r=>{n[`${e}-justify-${r}`]=t.justify===r}),n},RE=(e,t)=>J({...FE(e,t),...IE(e,t),...LE(e,t)}),zE=e=>{let{componentCls:t}=e;return{[t]:{display:`flex`,margin:0,padding:0,"&-vertical":{flexDirection:`column`},"&-rtl":{direction:`rtl`},"&:empty":{display:`none`}}}},BE=e=>{let{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-medium, &-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},VE=e=>{let{componentCls:t}=e,n={};return ME.forEach(e=>{n[`${t}-wrap-${e}`]={flexWrap:e}}),n},HE=e=>{let{componentCls:t}=e,n={};return PE.forEach(e=>{n[`${t}-align-${e}`]={alignItems:e}}),n},UE=e=>{let{componentCls:t}=e,n={};return NE.forEach(e=>{n[`${t}-justify-${e}`]={justifyContent:e}}),n},WE=Ya(`Flex`,e=>{let{paddingXS:t,padding:n,paddingLG:r}=e,i=ci(e,{flexGapSM:t,flexGap:n,flexGapLG:r});return[zE(i),BE(i),VE(i),HE(i),UE(i)]},()=>({}),{resetStyle:!1}),GE=v.forwardRef((e,t)=>{let{prefixCls:n,rootClassName:r,className:i,style:a,flex:o,gap:s,vertical:c,orientation:l,component:u=`div`,children:d,...f}=e,{flex:p,direction:m,getPrefixCls:h}=v.useContext(Ye),g=h(`flex`,n),[_,y]=WE(g),[,b]=Ac(l,c??p?.vertical),x=J(i,r,p?.className,g,_,y,RE(g,{...e,vertical:b}),{[`${g}-rtl`]:m===`rtl`,[`${g}-gap-${s}`]:xE(s),[`${g}-vertical`]:b}),S={...p?.style,...a};return ac(o)&&(S.flex=o),ac(s)&&!xE(s)&&(S.gap=s),v.createElement(u,{ref:t,className:x,style:S,...de(f,[`justify`,`wrap`,`align`])},d)}),KE=e=>{let{getPrefixCls:t,direction:n}=(0,v.useContext)(Ye),{prefixCls:r,className:i}=e,a=t(`input-group`,r),[o,s]=vw(t(`input`)),c=J(a,s,{[`${a}-lg`]:e.size===`large`,[`${a}-sm`]:e.size===`small`,[`${a}-compact`]:e.compact,[`${a}-rtl`]:n===`rtl`},o,i),l=(0,v.useContext)(zh),u=(0,v.useMemo)(()=>({...l,isFormItemInput:!1}),[l]);return v.createElement(zh.Provider,{value:u},v.createElement(kE.Compact,{className:c,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},e.children))},qE=e=>{let{componentCls:t,paddingXS:n}=e;return{[t]:{display:`inline-flex`,alignItems:`center`,flexWrap:`nowrap`,columnGap:n,[`${t}-input-wrapper`]:{position:`relative`,[`${t}-mask-icon`]:{position:`absolute`,zIndex:`1`,top:`50%`,right:`50%`,transform:`translate(50%, -50%)`,pointerEvents:`none`},[`${t}-mask-input`]:{color:`transparent`,caretColor:e.colorText,"&::selection":{color:`transparent`}},[`${t}-mask-input[type=number]::-webkit-inner-spin-button`]:{"-webkit-appearance":`none`,margin:0},[`${t}-mask-input[type=number]`]:{"-moz-appearance":`textfield`}},"&-rtl":{direction:`rtl`},[`${t}-input`]:{textAlign:`center`,paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},JE=Ya([`Input`,`OTP`],e=>qE(ci(e,UC(e))),WC),YE=v.forwardRef((e,t)=>{let{className:n,value:r,onChange:i,onActiveChange:a,index:o,mask:s,onFocus:c,...l}=e,{getPrefixCls:u}=v.useContext(Ye),d=u(`otp`),f=typeof s==`string`?s:r,p=v.useRef(null);v.useImperativeHandle(t,()=>p.current);let m=e=>{i(o,e.target.value)},h=()=>{Ke(()=>{let e=p.current?.input;document.activeElement===e&&e&&e.select()})},g=e=>{c?.(e),h()},_=e=>{let{key:t,ctrlKey:n,metaKey:i}=e;t===`ArrowLeft`?a(o-1):t===`ArrowRight`?a(o+1):t===`z`&&(n||i)?e.preventDefault():t===`Backspace`&&!r&&a(o-1),h()};return v.createElement(`span`,{className:`${d}-input-wrapper`,role:`presentation`},s&&r!==``&&r!==void 0&&v.createElement(`span`,{className:`${d}-mask-icon`,"aria-hidden":`true`},f),v.createElement(bE,{"aria-label":`OTP Input ${o+1}`,type:s===!0?`password`:`text`,...l,ref:p,value:r,onInput:m,onFocus:g,onKeyDown:_,onMouseDown:h,onMouseUp:h,className:J(n,{[`${d}-mask-input`]:s})}))});function XE(e){return(e||``).split(``)}var ZE=e=>{let{index:t,prefixCls:n,separator:r,className:i,style:a}=e,o=typeof r==`function`?r(t):r;return o?v.createElement(`span`,{className:J(`${n}-separator`,i),style:a},o):null},QE=v.forwardRef((e,t)=>{let{prefixCls:n,length:r=6,size:i,defaultValue:a,value:o,onChange:s,formatter:c,separator:l,variant:u,disabled:d,status:f,autoFocus:p,mask:m,type:h,autoComplete:g,onInput:_,onFocus:b,inputMode:x,classNames:S,styles:C,className:w,style:T,...E}=e,{classNames:D,styles:O,getPrefixCls:k,direction:A,style:j,className:M}=Qe(`otp`),N=k(`otp`,n),P={...e,length:r},[F,I]=Oc([D,S],[O,C],{props:P}),L=Ps(E,{aria:!0,data:!0,attr:!0}),[R,z]=JE(N),B=jd(e=>i??e),V=v.useContext(zh),H=Xy(V.status,f),U=v.useMemo(()=>({...V,status:H,hasFeedback:!1,feedbackIcon:null}),[V,H]),W=v.useRef(null),ee=v.useRef({});v.useImperativeHandle(t,()=>({focus:()=>{ee.current[0]?.focus()},blur:()=>{for(let e=0;e<r;e+=1)ee.current[e]?.blur()},nativeElement:W.current}));let te=e=>c?c(e):e,[ne,re]=v.useState(()=>XE(te(a||``)));v.useEffect(()=>{o!==void 0&&re(XE(o))},[o]);let ie=y(e=>{re(e),_&&_(e),s&&e.length===r&&e.every(e=>e)&&e.some((e,t)=>ne[t]!==e)&&s(e.join(``))}),ae=y((e,t)=>{let n=Be(ne);for(let t=0;t<e;t+=1)n[t]||(n[t]=``);t.length<=1?n[e]=t:n=n.slice(0,e).concat(XE(t)),n=n.slice(0,r);for(let e=n.length-1;e>=0&&!n[e];--e)n.pop();return n=XE(te(n.map(e=>e||` `).join(``))).map((e,t)=>e===` `&&!n[t]?n[t]:e),n}),G=(e,t)=>{let n=ae(e,t),i=Math.min(e+t.length,r-1);i!==e&&n[e]!==void 0&&ee.current[i]?.focus(),ie(n)},K=e=>{ee.current[e]?.focus()},oe=(e,t)=>{for(let e=0;e<t;e+=1)if(!ee.current[e]?.input?.value){ee.current[e]?.focus();break}b?.(e)},se={variant:u,disabled:d,status:H,mask:m,type:h,inputMode:x,autoComplete:g};return v.createElement(`div`,{...L,ref:W,className:J(w,N,{[`${N}-sm`]:B===`small`,[`${N}-lg`]:B===`large`,[`${N}-rtl`]:A===`rtl`},z,R,M,F.root),style:{...I.root,...j,...T},role:`group`},v.createElement(zh.Provider,{value:U},Array.from({length:r}).map((e,t)=>{let n=`otp-${t}`,i=ne[t]||``;return v.createElement(v.Fragment,{key:n},v.createElement(YE,{ref:e=>{ee.current[t]=e},index:t,size:B,htmlSize:1,className:J(F.input,`${N}-input`),style:I.input,onChange:G,value:i,onActiveChange:K,autoFocus:t===0&&p,onFocus:e=>oe(e,t),...se}),t<r-1&&v.createElement(ZE,{separator:l,index:t,prefixCls:N,className:J(F.separator),style:I.separator}))})))}),$E={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z`}},{tag:`path`,attrs:{d:`M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z`}}]},name:`eye-invisible`,theme:`outlined`};function eD(){return eD=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},eD.apply(this,arguments)}var tD=v.forwardRef((e,t)=>v.createElement(Co,eD({},e,{ref:t,icon:$E}))),nD={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z`}}]},name:`eye`,theme:`outlined`};function rD(){return rD=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},rD.apply(this,arguments)}var iD=v.forwardRef((e,t)=>v.createElement(Co,rD({},e,{ref:t,icon:nD}))),aD=e=>e?v.createElement(iD,null):v.createElement(tD,null),oD={click:`onClick`,hover:`onMouseOver`},sD=v.forwardRef((e,t)=>{let{disabled:n,action:r=`click`,visibilityToggle:i=!0,iconRender:a=aD,suffix:o}=e,s=v.useContext(fu),c=n??s,l=cc(i)&&i.visible!==void 0,[u,d]=(0,v.useState)(()=>l?i.visible:!1),f=(0,v.useRef)(null);v.useEffect(()=>{l&&d(i.visible)},[l,i]);let p=vE(f),m=()=>{if(c)return;u&&p();let e=!u;d(e),cc(i)&&i.onVisibleChange?.(e)},h=e=>{let t=oD[r]||``,n=a(u),i={[t]:m,className:`${e}-icon`,key:`passwordIcon`,onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return v.cloneElement(v.isValidElement(n)?n:v.createElement(`span`,null,n),i)},{className:g,prefixCls:_,inputPrefixCls:y,size:b,...x}=e,{getPrefixCls:S}=v.useContext(Ye),C=S(`input`,y),w=S(`input-password`,_),T=i&&h(w),E=J(w,g,{[`${w}-${b}`]:!!b}),D={...de(x,[`suffix`,`iconRender`,`visibilityToggle`]),type:u?`text`:`password`,className:E,prefixCls:C,suffix:v.createElement(v.Fragment,null,T,o)};return b&&(D.size=b),v.createElement(bE,{ref:I(t,f),...D})}),cD=Ya([`Input`,`Search`],e=>{let{componentCls:t}=e,n=`${t}-btn`;return{[t]:{width:`100%`,[n]:{"&-filled":{background:e.colorFillTertiary,"&:not(:disabled)":{"&:hover":{background:e.colorFillSecondary},"&:active":{background:e.colorFill}}}}}}}),lD=v.forwardRef((e,t)=>{let{prefixCls:n,inputPrefixCls:r,className:i,size:a,style:o,enterButton:s=!1,addonAfter:c,loading:l,disabled:u,onSearch:d,onChange:f,onCompositionStart:p,onCompositionEnd:m,variant:h,onPressEnter:g,classNames:_,styles:y,hidden:b,...x}=e,{direction:S,getPrefixCls:C,classNames:w,styles:T}=Qe(`inputSearch`),E={...e,enterButton:s},[D,O]=Oc([w,_],[T,y],{props:E},{button:{_default:`root`}}),k=v.useRef(!1),A=C(`input-search`,n),j=C(`input`,r),[M,N]=cD(A),{compactSize:P}=Pd(A,S),F=jd(e=>a??P??e),L=v.useRef(null),R=e=>{e?.target&&e.type===`click`&&d&&d(e.target.value,e,{source:`clear`}),f?.(e)},z=e=>{document.activeElement===L.current?.input&&e.preventDefault()},B=e=>{d&&d(L.current?.input?.value,e,{source:`input`})},V=e=>{k.current||l||(g?.(e),B(e))},H=typeof s==`boolean`?v.createElement(Ob,null):null,U=`${A}-btn`,W=J(U,{[`${U}-${h}`]:h}),ee,te=s||{},ne=te.type&&te.type.__ANT_BUTTON===!0;ee=ne||te.type===`button`?su(te,{onMouseDown:z,onClick:e=>{te?.props?.onClick?.(e),B(e)},key:`enterButton`,...ne?{className:W,size:F}:{}}):v.createElement(vp,{classNames:D.button,styles:O.button,className:W,color:s?`primary`:`default`,size:F,disabled:u,key:`enterButton`,onMouseDown:z,onClick:B,loading:l,icon:H,variant:h===`borderless`||h===`filled`||h===`underlined`?`text`:s?`solid`:void 0},s),c&&(ee=[ee,su(c,{key:`addonAfter`})]);let re=J(A,N,{[`${A}-rtl`]:S===`rtl`,[`${A}-${F}`]:!!F,[`${A}-with-button`]:!!s},i,M,D.root),ie=e=>{k.current=!0,p?.(e)},ae=e=>{k.current=!1,m?.(e)},G=Ps(x,{data:!0}),K=de({...x,classNames:de(D,[`button`,`root`]),styles:de(O,[`button`,`root`]),prefixCls:j,type:`search`,size:F,variant:h,onPressEnter:V,onCompositionStart:ie,onCompositionEnd:ae,onChange:R,disabled:u},Object.keys(G));return v.createElement(Ld,{className:re,style:{...o,...O.root},...G,hidden:b},v.createElement(bE,{ref:I(L,t),...K}),ee)}),uD=`
|
|
225
|
+
`,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:`relative`,zIndex:1,boxShadow:r}}},kT=e=>{let{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:i,colorBorderSecondary:a,actionsBg:o}=e;return{margin:0,padding:0,listStyle:`none`,background:o,borderTop:`${Y(e.lineWidth)} ${e.lineType} ${a}`,display:`flex`,borderRadius:`0 0 ${Y(e.borderRadiusLG)} ${Y(e.borderRadiusLG)}`,...Ha(),"& > li":{margin:r,color:e.colorTextDescription,textAlign:`center`,"> span":{position:`relative`,display:`block`,minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:`pointer`,"&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:`inline-block`,width:`100%`,color:e.colorIcon,lineHeight:Y(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:i,lineHeight:Y(e.calc(i).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${Y(e.lineWidth)} ${e.lineType} ${a}`}}}},AT=e=>({margin:`${Y(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:`flex`,...Ha(),"&-avatar":{paddingInlineEnd:e.padding},"&-section":{overflow:`hidden`,flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,...za},"&-description":{color:e.colorTextDescription}}),jT=e=>{let{componentCls:t,colorFillAlter:n,headerPadding:r,bodyPadding:i}=e;return{[`${t}-head`]:{padding:`0 ${Y(r)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${Y(e.padding)} ${Y(i)}`}}},MT=e=>{let{componentCls:t}=e;return{overflow:`hidden`,[`${t}-body`]:{userSelect:`none`}}},NT=e=>{let{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:i,boxShadowTertiary:a,bodyPadding:o,extraColor:s,motionDurationMid:c}=e;return{[t]:{...Ba(e),position:`relative`,background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:a},[`${t}-head`]:DT(e),[`${t}-extra`]:{marginInlineStart:`auto`,color:s,fontWeight:`normal`,fontSize:e.fontSize},[`${t}-body`]:{padding:o,borderRadius:`0 0 ${Y(e.borderRadiusLG)} ${Y(e.borderRadiusLG)}`,"&:first-child":{borderStartStartRadius:e.borderRadiusLG,borderStartEndRadius:e.borderRadiusLG},"&:not(:last-child)":{borderEndStartRadius:0,borderEndEndRadius:0}},[`${t}-grid`]:OT(e),[`${t}-cover`]:{"> *":{display:`block`,width:`100%`,borderRadius:`${Y(e.borderRadiusLG)} ${Y(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:kT(e),[`${t}-meta`]:AT(e)},[`${t}-bordered`]:{border:`${Y(e.lineWidth)} ${e.lineType} ${i}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:`pointer`,transition:[`box-shadow`,`border-color`].map(e=>`${e} ${c}`).join(`, `),"&:hover":{borderColor:`transparent`,boxShadow:n}},[`${t}-contain-grid`]:{borderRadius:`${Y(e.borderRadiusLG)} ${Y(e.borderRadiusLG)} 0 0 `,[`&:not(:has(> ${t}-head))`]:{borderRadius:0},[`${t}-body`]:{display:`flex`,flexWrap:`wrap`},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:r}}},[`${t}-type-inner`]:jT(e),[`${t}-loading`]:MT(e),[`${t}-rtl`]:{direction:`rtl`}}},PT=e=>{let{componentCls:t,bodyPaddingSM:n,headerPaddingSM:r,headerHeightSM:i,headerFontSizeSM:a}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:i,padding:`0 ${Y(r)}`,fontSize:a,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:`flex`,alignItems:`center`}}}}},FT=Ya(`Card`,e=>{let t=ci(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[NT(t),PT(t)]},e=>({headerBg:`transparent`,headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText,bodyPaddingSM:12,headerPaddingSM:12,bodyPadding:e.bodyPadding??e.paddingLG,headerPadding:e.headerPadding??e.paddingLG})),IT=e=>{let{actionClasses:t,actions:n=[],actionStyle:r}=e;return v.createElement(`ul`,{className:t,style:r},n.map((e,t)=>{let r=`action-${t}`;return v.createElement(`li`,{style:{width:`${100/n.length}%`},key:r},v.createElement(`span`,null,e))}))},LT=v.forwardRef((e,t)=>{let{prefixCls:n,className:r,rootClassName:i,style:a,extra:o,headStyle:s={},bodyStyle:c={},title:l,loading:u,bordered:d,variant:f,size:p,type:m,cover:h,actions:g,tabList:_,children:y,activeTabKey:b,defaultActiveTabKey:x,tabBarExtraContent:S,hoverable:C,tabProps:w={},classNames:T,styles:E,...D}=e,{getPrefixCls:O,direction:k,className:A,style:j,classNames:M,styles:N}=Qe(`card`),[P]=ab(`card`,f,d),F=jd(p),I={...e,size:F,variant:P},[L,R]=Oc([M,T],[N,E],{props:I}),z=t=>{e.onTabChange?.(t)},B=v.useMemo(()=>fe(y),[y]),V=v.useMemo(()=>B.some(e=>v.isValidElement(e)&&e.type===ET),[B]),H=O(`card`,n),[U,W]=FT(H),ee=v.createElement(Cg,{loading:!0,active:!0,paragraph:{rows:4},title:!1},y),te=b!==void 0,ne={...w,[te?`activeKey`:`defaultActiveKey`]:te?b:x,tabBarExtraContent:S},re,ie=F===`small`?F:`large`,ae=_?v.createElement(TT,{size:ie,...ne,className:`${H}-head-tabs`,onChange:z,items:_.map(({tab:e,...t})=>({label:e,...t}))}):null;if(l||o||ae){let e=J(`${H}-head`,L.header),t=J(`${H}-head-title`,L.title),n=J(`${H}-extra`,L.extra),r={...s,...R.header};re=v.createElement(`div`,{className:e,style:r},v.createElement(`div`,{className:`${H}-head-wrapper`},l&&v.createElement(`div`,{className:t,style:R.title},l),o&&v.createElement(`div`,{className:n,style:R.extra},o)),ae)}let G=J(`${H}-cover`,L.cover),K=h?v.createElement(`div`,{className:G,style:R.cover},h):null,oe=J(`${H}-body`,L.body),se={...c,...R.body},ce=u||B.length?v.createElement(`div`,{className:oe,style:se},u?ee:y):null,q=J(`${H}-actions`,L.actions),le=g?.length?v.createElement(IT,{actionClasses:q,actionStyle:R.actions,actions:g}):null,ue=de(D,[`onTabChange`]),pe=J(H,A,{[`${H}-loading`]:u,[`${H}-bordered`]:P!==`borderless`,[`${H}-hoverable`]:C,[`${H}-contain-grid`]:V,[`${H}-contain-tabs`]:_?.length,[`${H}-small`]:F===`small`,[`${H}-type-${m}`]:!!m,[`${H}-rtl`]:k===`rtl`},r,i,U,W,L.root),me={...R.root,...j,...a};return v.createElement(`div`,{ref:t,...ue,className:pe,style:me},re,K,ce,le)}),RT=e=>{let{prefixCls:t,className:n,avatar:r,title:i,description:a,style:o,classNames:s,styles:c,...l}=e,{getPrefixCls:u,className:d,style:f,classNames:p,styles:m}=Qe(`cardMeta`),h=`${u(`card`,t)}-meta`,[g,_]=Oc([p,s],[m,c],{props:e}),y=J(h,n,d,g.root),b={...f,..._.root,...o},x=J(`${h}-avatar`,g.avatar),S=J(`${h}-title`,g.title),C=J(`${h}-description`,g.description),w=J(`${h}-section`,g.section),T=r?v.createElement(`div`,{className:x,style:_.avatar},r):null,E=i?v.createElement(`div`,{className:S,style:_.title},i):null,D=a?v.createElement(`div`,{className:C,style:_.description},a):null,O=E||D?v.createElement(`div`,{className:w,style:_.section},E,D):null;return v.createElement(`div`,{...l,className:y,style:b},T,O)},zT=LT;zT.Grid=ET,zT.Meta=RT;function BT(e,t,n){var r=n||{},i=r.noTrailing,a=i===void 0?!1:i,o=r.noLeading,s=o===void 0?!1:o,c=r.debounceMode,l=c===void 0?void 0:c,u,d=!1,f=0;function p(){u&&clearTimeout(u)}function m(e){var t=(e||{}).upcomingOnly,n=t===void 0?!1:t;p(),d=!n}function h(){var n=[...arguments],r=this,i=Date.now()-f;if(d)return;function o(){f=Date.now(),t.apply(r,n)}function c(){u=void 0}!s&&l&&!u&&o(),p(),l===void 0&&i>e?s?(f=Date.now(),a||(u=setTimeout(l?c:o,e))):o():a!==!0&&(u=setTimeout(l?c:o,l===void 0?e-i:e))}return h.cancel=m,h}function VT(e,t,n){var r=(n||{}).atBegin;return BT(e,t,{debounceMode:(r===void 0?!1:r)!==!1})}var HT=(0,v.createContext)({});function UT(e){return e===`auto`?`1 1 auto`:oc(e)?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}var WT=v.forwardRef((e,t)=>{let{getPrefixCls:n,direction:r}=v.useContext(Ye),{gutter:i,wrap:a}=v.useContext(HT),{prefixCls:o,span:s,order:c,offset:l,push:u,pull:d,className:f,children:p,flex:m,style:h,...g}=e,_=n(`col`,o),y=n(),[b,x]=Bg(_),[S]=Qa(y,`col`),C={},w={};Ib.forEach(t=>{let n={},i=e[t];oc(i)?n.span=i:cc(i)&&(n=i||{}),delete g[t],w={...w,[`${_}-${t}-${n.span}`]:ac(n.span),[`${_}-${t}-order-${n.order}`]:n.order||n.order===0,[`${_}-${t}-offset-${n.offset}`]:n.offset||n.offset===0,[`${_}-${t}-push-${n.push}`]:n.push||n.push===0,[`${_}-${t}-pull-${n.pull}`]:n.pull||n.pull===0,[`${_}-rtl`]:r===`rtl`},n.flex&&(w[`${_}-${t}-flex`]=!0,C[S(`${t}-flex`)]=UT(n.flex))});let T=J(_,{[`${_}-${s}`]:s!==void 0,[`${_}-order-${c}`]:c,[`${_}-offset-${l}`]:l,[`${_}-push-${u}`]:u,[`${_}-pull-${d}`]:d},f,w,b,x),E={};return i?.[0]&&(E.paddingInline=oc(i[0])?`${i[0]/2}px`:`calc(${i[0]} / 2)`),m&&(E.flex=UT(m),a===!1&&!E.minWidth&&(E.minWidth=0)),v.createElement(`div`,{...g,style:{...E,...h,...C},className:T,ref:t},p)});function GT(e,t){let n=[void 0,void 0],r=Array.isArray(e)?e:[e,void 0],i=t||{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0,xxxl:!0};return r.forEach((e,t)=>{if(cc(e))for(let r=0;r<Fb.length;r++){let a=Fb[r];if(i[a]&&e[a]!==void 0){n[t]=e[a];break}}else n[t]=e}),n}var KT=(e,t)=>{let[n,r]=v.useState(()=>sc(e)?e:``),i=()=>{if(sc(e)&&r(e),cc(e))for(let n=0;n<Fb.length;n++){let i=Fb[n];if(!t||!t[i])continue;let a=e[i];if(a!==void 0){r(a);return}}};return v.useEffect(()=>{i()},[JSON.stringify(e),t]),n},qT=v.forwardRef((e,t)=>{let{prefixCls:n,justify:r,align:i,className:a,style:o,children:s,gutter:c=0,wrap:l,...u}=e,{getPrefixCls:d,direction:f}=v.useContext(Ye),p=Bb(!0,null),m=KT(i,p),h=KT(r,p),g=d(`row`,n),[_,y]=Rg(g),b=GT(c,p),x=J(g,{[`${g}-no-wrap`]:l===!1,[`${g}-${h}`]:h,[`${g}-${m}`]:m,[`${g}-rtl`]:f===`rtl`},a,_,y),S={};b?.[0]&&(S.marginInline=oc(b[0])?`${b[0]/-2}px`:`calc(${b[0]} / -2)`);let[C,w]=b;S.rowGap=w;let T=v.useMemo(()=>({gutter:[C,w],wrap:l}),[C,w,l]);return v.createElement(HT.Provider,{value:T},v.createElement(`div`,{...u,className:x,style:{...S,...o},ref:t},s))}),JT=(e,t)=>{if(!e)return null;let n={left:e.offsetLeft,right:e.parentElement.clientWidth-e.clientWidth-e.offsetLeft,width:e.clientWidth,top:e.offsetTop,bottom:e.parentElement.clientHeight-e.clientHeight-e.offsetTop,height:e.clientHeight};return t?{left:0,right:0,width:0,top:n.top,bottom:n.bottom,height:n.height}:{left:n.left,right:n.right,width:n.width,top:0,bottom:0,height:0}},YT=e=>e===void 0?void 0:`${e}px`;function XT(e){let{prefixCls:t,containerRef:n,value:r,getValueIndex:i,motionName:a,onMotionStart:o,onMotionEnd:s,direction:c,vertical:l=!1}=e,u=v.useRef(null),[d,f]=v.useState(r),p=e=>{let r=i(e),a=n.current?.querySelectorAll(`.${t}-item`)[r];return a?.offsetParent&&a},[m,h]=v.useState(null),[g,_]=v.useState(null);S(()=>{if(d!==r){let e=p(d),t=p(r),n=JT(e,l),i=JT(t,l);f(r),h(n),_(i),e&&t?o():s()}},[r]);let y=v.useMemo(()=>YT(l?m?.top??0:c===`rtl`?-m?.right:m?.left),[l,c,m]),b=v.useMemo(()=>YT(l?g?.top??0:c===`rtl`?-g?.right:g?.left),[l,c,g]);return!m||!g?null:v.createElement(ks,{visible:!0,motionName:a,motionAppear:!0,onAppearStart:()=>l?{transform:`translateY(var(--thumb-start-top))`,height:`var(--thumb-start-height)`}:{transform:`translateX(var(--thumb-start-left))`,width:`var(--thumb-start-width)`},onAppearActive:()=>l?{transform:`translateY(var(--thumb-active-top))`,height:`var(--thumb-active-height)`}:{transform:`translateX(var(--thumb-active-left))`,width:`var(--thumb-active-width)`},onVisibleChanged:()=>{h(null),_(null),s()}},({className:e,style:n},r)=>{let i={...n,"--thumb-start-left":y,"--thumb-start-width":YT(m?.width),"--thumb-active-left":b,"--thumb-active-width":YT(g?.width),"--thumb-start-top":y,"--thumb-start-height":YT(m?.height),"--thumb-active-top":b,"--thumb-active-height":YT(g?.height)},a={ref:I(u,r),style:i,className:J(`${t}-thumb`,e)};return v.createElement(`div`,a)})}function ZT(e){if(e.title!==void 0)return e.title;if(typeof e.label!=`object`)return e.label?.toString()}function QT(e){return e.map(e=>{if(typeof e==`object`&&e){let t=ZT(e);return{...e,title:t}}return{label:e?.toString(),title:e?.toString(),value:e}})}var $T=({prefixCls:e,className:t,style:n,styles:r,classNames:i,data:a,disabled:o,checked:s,label:c,title:l,value:u,name:d,onChange:f,onFocus:p,onBlur:m,onKeyDown:h,onKeyUp:g,onMouseDown:_,itemRender:y=e=>e})=>{let b=e=>{o||f(e,u)};return y(v.createElement(`label`,{className:J(t,{[`${e}-item-disabled`]:o}),style:n,onMouseDown:_},v.createElement(`input`,{name:d,className:`${e}-item-input`,type:`radio`,disabled:o,checked:s,onChange:b,onFocus:p,onBlur:m,onKeyDown:h,onKeyUp:g}),v.createElement(`div`,{className:J(`${e}-item-label`,i?.label),title:l,style:r?.label},c)),{item:a})},eE=v.forwardRef((e,t)=>{let{prefixCls:n=`rc-segmented`,direction:r,vertical:i,options:a=[],disabled:o,defaultValue:s,value:c,name:l,onChange:u,className:d=``,style:f,styles:p,classNames:m,motionName:h=`thumb-motion`,itemRender:g,..._}=e,y=v.useRef(null),b=v.useMemo(()=>I(y,t),[y,t]),x=v.useMemo(()=>QT(a),[a]),[S,C]=T(s??x[0]?.value,c),[w,E]=v.useState(!1),D=(e,t)=>{C(t),u?.(t)},O=de(_,[`children`]),[k,A]=v.useState(!1),[j,M]=v.useState(!1),N=()=>{M(!0)},P=()=>{M(!1)},F=()=>{A(!1)},L=e=>{e.key===`Tab`&&A(!0)},R=e=>{let t=x.findIndex(e=>e.value===S),n=x.length,r=x[(t+e+n)%n];r&&(C(r.value),u?.(r.value))},z=e=>{switch(e.key){case`ArrowLeft`:case`ArrowUp`:R(-1);break;case`ArrowRight`:case`ArrowDown`:R(1);break}},B=e=>{let{value:t,disabled:r}=e;return v.createElement($T,Jf({},e,{name:l,data:e,itemRender:g,key:t,prefixCls:n,className:J(e.className,`${n}-item`,m?.item,{[`${n}-item-selected`]:t===S&&!w,[`${n}-item-focused`]:j&&k&&t===S}),style:p?.item,classNames:m,styles:p,checked:t===S,onChange:D,onFocus:N,onBlur:P,onKeyDown:z,onKeyUp:L,onMouseDown:F,disabled:!!o||!!r}))};return v.createElement(`div`,Jf({role:`radiogroup`,"aria-label":`segmented control`,tabIndex:o?void 0:0,"aria-orientation":i?`vertical`:`horizontal`,style:f},O,{className:J(n,{[`${n}-rtl`]:r===`rtl`,[`${n}-disabled`]:o,[`${n}-vertical`]:i},d),ref:b}),v.createElement(`div`,{className:`${n}-group`},v.createElement(XT,{vertical:i,prefixCls:n,value:S,containerRef:y,motionName:`${n}-${h}`,direction:r,getValueIndex:e=>x.findIndex(t=>t.value===e),onMotionStart:()=>{E(!0)},onMotionEnd:()=>{E(!1)}}),x.map(B)))});function tE(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:`not-allowed`}}}var nE=e=>({background:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}),rE={overflow:`hidden`,...za},iE=e=>{let{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,motionDurationMid:i}=e,a=e.calc(e.controlHeight).sub(e.calc(e.trackPadding).mul(2)).equal(),o=e.calc(e.controlHeightLG).sub(e.calc(e.trackPadding).mul(2)).equal(),s=e.calc(e.controlHeightSM).sub(e.calc(e.trackPadding).mul(2)).equal();return{[t]:{...Ba(e),display:`inline-block`,padding:e.trackPadding,color:e.itemColor,background:e.trackBg,borderRadius:e.borderRadius,transition:`all ${i}`,...Wa(e),[`${t}-group`]:{position:`relative`,display:`flex`,alignItems:`stretch`,justifyItems:`flex-start`,flexDirection:`row`,width:`100%`},[`&${t}-rtl`]:{direction:`rtl`},[`&${t}-vertical`]:{[`${t}-group`]:{flexDirection:`column`},[`${t}-thumb`]:{width:`100%`,height:0,padding:`0 ${Y(e.paddingXXS)}`}},[`&${t}-block`]:{display:`flex`},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:`relative`,textAlign:`center`,cursor:`pointer`,transition:`color ${i}`,borderRadius:e.borderRadiusSM,transform:`translateZ(0)`,"&-selected":{...nE(e),color:e.itemSelectedColor},"&-focused":Ua(e),"&::after":{content:`""`,position:`absolute`,zIndex:-1,width:`100%`,height:`100%`,top:0,insetInlineStart:0,borderRadius:`inherit`,opacity:0,pointerEvents:`none`,transition:[`opacity`,`background-color`].map(e=>`${e} ${i}`).join(`, `)},[`&:not(${t}-item-selected):not(${t}-item-disabled)`]:{"&:hover, &:active":{color:e.itemHoverColor},"&:hover::after":{opacity:1,backgroundColor:e.itemHoverBg},"&:active::after":{opacity:1,backgroundColor:e.itemActiveBg}},"&-label":{minHeight:a,lineHeight:Y(a),padding:`0 ${Y(e.segmentedPaddingHorizontal)}`,...rE},"&-icon + *":{marginInlineStart:e.calc(e.marginSM).div(2).equal()},"&-input":{position:`absolute`,insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:`none`}},[`${t}-thumb`]:{...nE(e),position:`absolute`,insetBlockStart:0,insetInlineStart:0,width:0,height:`100%`,padding:`${Y(e.paddingXXS)} 0`,borderRadius:e.borderRadiusSM,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:`transparent`}},[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[`${t}-item-label`]:{minHeight:o,lineHeight:Y(o),padding:`0 ${Y(e.segmentedPaddingHorizontal)}`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:s,lineHeight:Y(s),padding:`0 ${Y(e.segmentedPaddingHorizontalSM)}`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}},...tE(`&-disabled ${t}-item`,e),...tE(`${t}-item-disabled`,e),[`${t}-thumb-motion-appear-active`]:{willChange:`transform, width`,transition:[`transform`,`width`].map(e=>`${e} ${n} ${r}`).join(`, `)},[`&${t}-shape-round`]:{borderRadius:9999,[`${t}-item, ${t}-thumb`]:{borderRadius:9999}}}}},aE=Ya(`Segmented`,e=>{let{lineWidth:t,calc:n}=e;return iE(ci(e,{segmentedPaddingHorizontal:n(e.controlPaddingHorizontal).sub(t).equal(),segmentedPaddingHorizontalSM:n(e.controlPaddingHorizontalSM).sub(t).equal()}))},e=>{let{colorTextLabel:t,colorText:n,colorFillSecondary:r,colorBgElevated:i,colorFill:a,lineWidthBold:o,colorBgLayout:s}=e;return{trackPadding:o,trackBg:s,itemColor:t,itemHoverColor:n,itemHoverBg:r,itemSelectedBg:i,itemActiveBg:a,itemSelectedColor:n}});function oE(e){return cc(e)&&!!e?.icon}var sE=v.forwardRef((e,t)=>{let n=fl(),{prefixCls:r,className:i,rootClassName:a,block:o,options:s=[],size:c,style:l,vertical:u,orientation:d,shape:f=`default`,name:p=n,styles:m,classNames:h,...g}=e,{getPrefixCls:_,direction:y,className:b,style:x,classNames:S,styles:C}=Qe(`segmented`),w={...e,options:s,size:c,shape:f},[T,E]=Oc([S,h],[C,m],{props:w}),D=_(`segmented`,r),[O,k]=aE(D),A=jd(c),j=v.useMemo(()=>s.map(e=>{if(oE(e)){let{icon:t,label:n,...r}=e;return{...r,label:v.createElement(v.Fragment,null,v.createElement(`span`,{className:J(`${D}-item-icon`,T.icon),style:E.icon},t),n&&v.createElement(`span`,null,n))}}return e}),[s,D,T.icon,E.icon]),[,M]=Ac(d,u),N=J(i,a,b,T.root,{[`${D}-block`]:o,[`${D}-sm`]:A===`small`,[`${D}-lg`]:A===`large`,[`${D}-vertical`]:M,[`${D}-shape-${f}`]:f===`round`},O,k),P={...E.root,...x,...l},F=(e,{item:t})=>{if(!t.tooltip)return e;let n=cc(t.tooltip)?t.tooltip:{title:t.tooltip};return v.createElement(_x,{...n},e)};return v.createElement(eE,{...g,name:p,className:N,style:P,classNames:T,styles:E,itemRender:F,options:j,ref:t,prefixCls:D,direction:y,vertical:M})}),cE=e=>{let{componentCls:t,borderRadius:n,paddingSM:r,colorBorder:i,paddingXS:a,fontSizeLG:o,fontSizeSM:s,borderRadiusLG:c,borderRadiusSM:l,colorBgContainerDisabled:u,lineWidth:d,antCls:f}=e,[p,m]=Qa(f,`space`);return{[t]:[{display:`inline-flex`,alignItems:`center`,gap:0,whiteSpace:`nowrap`,paddingInline:r,margin:0,borderWidth:d,borderStyle:`solid`,borderRadius:n,"&:hover":{zIndex:0},[`&${t}-disabled`]:{color:e.colorTextDisabled},"&-large":{fontSize:o,borderRadius:c},"&-small":{paddingInline:a,borderRadius:l,fontSize:s},"&-compact-last-item":{borderEndStartRadius:0,borderStartStartRadius:0},"&-compact-first-item":{borderEndEndRadius:0,borderStartEndRadius:0},"&-compact-item:not(:first-child):not(:last-child)":{borderRadius:0},"&-compact-item:not(:last-child)":{borderInlineEndWidth:0},"&-compact-item:not(:first-child)":{borderInlineStartWidth:0}},{[p(`addon-border-color`)]:i,[p(`addon-background`)]:u,[p(`addon-border-color-outlined`)]:i,[p(`addon-background-filled`)]:u,borderColor:m(`addon-border-color`),background:m(`addon-background`),"&-variant-outlined":{[p(`addon-border-color`)]:m(`addon-border-color-outlined`)},"&-variant-filled":{[p(`addon-border-color`)]:`transparent`,[p(`addon-background`)]:m(`addon-background-filled`),[`&${t}-disabled`]:{[p(`addon-border-color`)]:i,[p(`addon-background`)]:u}},"&-variant-borderless":{border:`none`,background:`transparent`},"&-variant-underlined":{border:`none`,background:`transparent`}},{"&-status-error":{[p(`addon-border-color-outlined`)]:e.colorError,[p(`addon-background-filled`)]:e.colorErrorBg,color:e.colorError},"&-status-warning":{[p(`addon-border-color-outlined`)]:e.colorWarning,[p(`addon-background-filled`)]:e.colorWarningBg,color:e.colorWarning}}]}},lE=Ya([`Space`,`Addon`],e=>[cE(e),up(e,{focus:!1})]),uE=v.forwardRef((e,t)=>{let{className:n,children:r,style:i,prefixCls:a,variant:o=`outlined`,disabled:s,status:c,...l}=e,{getPrefixCls:u,direction:d}=v.useContext(Ye),f=u(`space-addon`,a),[p,m]=lE(f),{compactItemClassnames:h,compactSize:g}=Pd(f,d),_=Yy(f,c),y=J(f,p,h,m,`${f}-variant-${o}`,_,{[`${f}-${g}`]:g,[`${f}-disabled`]:s},n);return v.createElement(`div`,{ref:t,className:y,style:i,...l},r)});function dE(e){return!!(e.addonBefore||e.addonAfter)}function fE(e){return!!(e.prefix||e.suffix||e.allowClear)}function pE(e,t,n){let r=t.cloneNode(!0),i=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,typeof t.selectionStart==`number`&&typeof t.selectionEnd==`number`&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=(...e)=>{t.setSelectionRange(...e)},i}function mE(e,t,n,r){if(!n)return;let i=t;if(t.type===`click`){i=pE(t,e,``),n(i);return}if(e.type!==`file`&&r!==void 0){i=pE(t,e,r),n(i);return}n(i)}function hE(){return hE=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},hE.apply(this,arguments)}var gE=v.forwardRef((e,t)=>{let{inputElement:n,children:r,prefixCls:i,prefix:a,suffix:o,addonBefore:s,addonAfter:c,className:l,style:u,disabled:d,readOnly:f,focused:p,triggerFocus:m,allowClear:h,value:g,handleReset:_,hidden:y,classes:b,classNames:x,dataAttrs:S,styles:C,components:w,onClear:T}=e,E=r??n,D=w?.affixWrapper||`span`,O=w?.groupWrapper||`span`,k=w?.wrapper||`span`,A=w?.groupAddon||`span`,j=(0,v.useRef)(null),M=e=>{j.current?.contains(e.target)&&m?.()},N=fE(e),P=(0,v.cloneElement)(E,{value:g,className:J(E.props?.className,!N&&x?.variant)||null}),F=(0,v.useRef)(null);if(v.useImperativeHandle(t,()=>({nativeElement:F.current||j.current})),N){let e=null;if(h){let t=!d&&!f&&g,n=`${i}-clear-icon`,r=typeof h==`object`&&h?.clearIcon?h.clearIcon:`✖`;e=v.createElement(`button`,{type:`button`,tabIndex:-1,onClick:e=>{_?.(e),T?.()},onMouseDown:e=>e.preventDefault(),className:J(n,{[`${n}-hidden`]:!t,[`${n}-has-suffix`]:!!o})},r)}let t=`${i}-affix-wrapper`,n=J(t,{[`${i}-disabled`]:d,[`${t}-disabled`]:d,[`${t}-focused`]:p,[`${t}-readonly`]:f,[`${t}-input-with-clear-btn`]:o&&h&&g},b?.affixWrapper,x?.affixWrapper,x?.variant),r=(o||h)&&v.createElement(`span`,{className:J(`${i}-suffix`,x?.suffix),style:C?.suffix},e,o);P=v.createElement(D,hE({className:n,style:C?.affixWrapper,onClick:M},S?.affixWrapper,{ref:j}),a&&v.createElement(`span`,{className:J(`${i}-prefix`,x?.prefix),style:C?.prefix},a),P,r)}if(dE(e)){let e=`${i}-group`,t=`${e}-addon`,n=`${e}-wrapper`,r=J(`${i}-wrapper`,e,b?.wrapper,x?.wrapper),a=J(n,{[`${n}-disabled`]:d},b?.group,x?.groupWrapper);P=v.createElement(O,{className:a,ref:F},v.createElement(k,{className:r},s&&v.createElement(A,{className:t},s),P,c&&v.createElement(A,{className:t},c)))}return v.cloneElement(P,{className:J(P.props?.className,l)||null,style:{...P.props?.style,...u},hidden:y})});function _E(e,t){return v.useMemo(()=>{let n={};t&&(n.show=typeof t==`object`&&t.formatter?t.formatter:!!t),n={...n,...e};let{show:r,...i}=n;return{...i,show:!!r,showFormatter:typeof r==`function`?r:void 0,strategy:i.strategy||(e=>e.length)}},[e,t])}function vE(){return vE=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},vE.apply(this,arguments)}var yE=(0,v.forwardRef)((e,t)=>{let{autoComplete:n,onChange:r,onFocus:i,onBlur:a,onPressEnter:o,onKeyDown:s,onKeyUp:c,prefixCls:l=`rc-input`,disabled:u,htmlSize:d,className:f,maxLength:p,suffix:m,showCount:h,count:g,type:_=`text`,classes:y,classNames:b,styles:x,onCompositionStart:S,onCompositionEnd:C,...w}=e,[E,D]=(0,v.useState)(!1),O=(0,v.useRef)(!1),k=(0,v.useRef)(!1),A=(0,v.useRef)(null),j=(0,v.useRef)(null),M=e=>{A.current&&Ap(A.current,e)},[N,P]=T(e.defaultValue,e.value),F=N==null?``:String(N),[I,L]=(0,v.useState)(null),R=_E(g,h),z=R.max||p,B=R.strategy(F),V=!!z&&B>z;(0,v.useImperativeHandle)(t,()=>({focus:M,blur:()=>{A.current?.blur()},setSelectionRange:(e,t,n)=>{A.current?.setSelectionRange(e,t,n)},select:()=>{A.current?.select()},input:A.current,nativeElement:j.current?.nativeElement||A.current})),(0,v.useEffect)(()=>{k.current&&=!1,D(e=>e&&u?!1:e)},[u]);let H=(e,t,n)=>{let i=t;if(!O.current&&R.exceedFormatter&&R.max&&R.strategy(t)>R.max)i=R.exceedFormatter(t,{max:R.max}),t!==i&&L([A.current?.selectionStart||0,A.current?.selectionEnd||0]);else if(n.source===`compositionEnd`)return;P(i),A.current&&mE(A.current,e,r,i)};(0,v.useEffect)(()=>{I&&A.current?.setSelectionRange(...I)},[I]);let U=e=>{H(e,e.target.value,{source:`change`})},W=e=>{O.current=!1,H(e,e.currentTarget.value,{source:`compositionEnd`}),C?.(e)},ee=e=>{o&&e.key===`Enter`&&!k.current&&!e.nativeEvent.isComposing&&(k.current=!0,o(e)),s?.(e)},te=e=>{e.key===`Enter`&&(k.current=!1),c?.(e)},ne=e=>{D(!0),i?.(e)},re=e=>{k.current&&=!1,D(!1),a?.(e)},ie=e=>{P(``),M(),A.current&&mE(A.current,e,r)},ae=V&&`${l}-out-of-range`;return v.createElement(gE,vE({},w,{prefixCls:l,className:J(f,ae),handleReset:ie,value:F,focused:E,triggerFocus:M,suffix:(()=>{let e=Number(z)>0;if(m||R.show){let t=R.showFormatter?R.showFormatter({value:F,count:B,maxLength:z}):`${B}${e?` / ${z}`:``}`;return v.createElement(v.Fragment,null,R.show&&v.createElement(`span`,{className:J(`${l}-show-count-suffix`,{[`${l}-show-count-has-suffix`]:!!m},b?.count),style:{...x?.count}},t),m)}return null})(),disabled:u,classes:y,classNames:b,styles:x,ref:j}),(()=>{let t=de(e,[`prefixCls`,`onPressEnter`,`addonBefore`,`addonAfter`,`prefix`,`suffix`,`allowClear`,`defaultValue`,`showCount`,`count`,`classes`,`htmlSize`,`styles`,`classNames`,`onClear`]);return v.createElement(`input`,vE({autoComplete:n},t,{onChange:U,onFocus:ne,onBlur:re,onKeyDown:ee,onKeyUp:te,className:J(l,{[`${l}-disabled`]:u},b?.input),style:x?.input,ref:A,size:d,type:_,onCompositionStart:e=>{O.current=!0,S?.(e)},onCompositionEnd:W}))})())}),bE=e=>{let t;return cc(e)&&e?.clearIcon?t=e:e&&(t={clearIcon:v.createElement(Oo,null)}),t};function xE(e,t){let n=(0,v.useRef)([]),r=()=>{n.current.push(setTimeout(()=>{e.current?.input&&e.current?.input.getAttribute(`type`)===`password`&&e.current?.input.hasAttribute(`value`)&&e.current?.input.removeAttribute(`value`)}))};return(0,v.useEffect)(()=>(t&&r(),()=>n.current.forEach(e=>{e&&clearTimeout(e)})),[]),r}function SE(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var CE=(0,v.forwardRef)((e,t)=>{let{prefixCls:n,bordered:r=!0,status:i,size:a,disabled:o,onBlur:s,onFocus:c,suffix:l,allowClear:u,addonAfter:d,addonBefore:f,className:p,style:m,styles:h,rootClassName:g,onChange:_,classNames:y,variant:b,...x}=e,{getPrefixCls:S,direction:C,allowClear:w,autoComplete:T,className:E,style:D,classNames:O,styles:k}=Qe(`input`),A=S(`input`,n),j=(0,v.useRef)(null),M=Xc(A),[N,P]=bw(A,g);xw(A,M);let{compactSize:F,compactItemClassnames:L}=Pd(A,C),R=jd(e=>a??F??e),z=v.useContext(fu),B=o??z,V={...e,size:R,disabled:B},[H,U]=Oc([O,y],[k,h],{props:V}),{status:W,hasFeedback:ee,feedbackIcon:te}=(0,v.useContext)(zh),ne=Xy(W,i);(0,v.useRef)(SE(e)||!!ee);let re=xE(j,!0),ie=e=>{re(),s?.(e)},ae=e=>{re(),c?.(e)},G=e=>{re(),_?.(e)},K=(ee||l)&&v.createElement(v.Fragment,null,l,ee&&te),oe=bE(u??w),[se,ce]=ab(`input`,b,r);return v.createElement(yE,{ref:I(t,j),prefixCls:A,autoComplete:T,...x,disabled:B,onBlur:ie,onFocus:ae,style:{...U.root,...D,...m},styles:U,suffix:K,allowClear:oe,className:J(p,g,P,M,L,E,H.root),onChange:G,addonBefore:f&&v.createElement(Hh,{form:!0,space:!0},f),addonAfter:d&&v.createElement(Hh,{form:!0,space:!0},d),classNames:{...H,input:J({[`${A}-sm`]:R===`small`,[`${A}-lg`]:R===`large`,[`${A}-rtl`]:C===`rtl`},H.input,N),variant:J({[`${A}-${se}`]:ce},Yy(A,ne)),affixWrapper:J({[`${A}-affix-wrapper-sm`]:R===`small`,[`${A}-affix-wrapper-lg`]:R===`large`,[`${A}-affix-wrapper-rtl`]:C===`rtl`},N),wrapper:J({[`${A}-group-rtl`]:C===`rtl`},N),groupWrapper:J({[`${A}-group-wrapper-sm`]:R===`small`,[`${A}-group-wrapper-lg`]:R===`large`,[`${A}-group-wrapper-rtl`]:C===`rtl`,[`${A}-group-wrapper-${se}`]:ce},Yy(`${A}-group-wrapper`,ne,ee),N)}})});function wE(e){return[`small`,`middle`,`medium`,`large`].includes(e)}function TE(e){return e?oc(e):!1}var EE=v.createContext({latestIndex:0}),DE=EE.Provider,OE=e=>{let{className:t,prefix:n,index:r,children:i,separator:a,style:o,classNames:s,styles:c}=e,{latestIndex:l}=v.useContext(EE);return ac(i)?v.createElement(v.Fragment,null,v.createElement(`div`,{className:t,style:o},i),r<l&&a&&v.createElement(`span`,{className:J(`${n}-item-separator`,s?.separator),style:c?.separator},a)):null},kE=e=>{let{componentCls:t,antCls:n}=e;return{[t]:{display:`inline-flex`,"&-rtl":{direction:`rtl`},"&-vertical":{flexDirection:`column`},"&-align":{flexDirection:`column`,"&-center":{alignItems:`center`},"&-start":{alignItems:`flex-start`},"&-end":{alignItems:`flex-end`},"&-baseline":{alignItems:`baseline`}},[`${t}-item:empty`]:{display:`none`},[`${t}-item > ${n}-badge-not-a-wrapper:only-child`]:{display:`block`}}}},AE=e=>{let{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-medium, &-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-medium, &-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},jE=Ya(`Space`,e=>{let t=ci(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[kE(t),AE(t)]},()=>({}),{resetStyle:!1}),ME=v.forwardRef((e,t)=>{let{getPrefixCls:n,direction:r,size:i,className:a,style:o,classNames:s,styles:c}=Qe(`space`),{size:l=i??`small`,align:u,className:d,rootClassName:f,children:p,direction:m,orientation:h,prefixCls:g,split:_,separator:y,style:b,vertical:x,wrap:S=!1,classNames:C,styles:w,...T}=e,[E,D]=Array.isArray(l)?l:[l,l],O=wE(D),k=wE(E),A=TE(D),j=TE(E),M=fe(p,{keepEmpty:!0}),[N,P]=Ac(h,x,m),F=u===void 0&&!P?`center`:u,I=y??_,L=n(`space`,g),[R,z]=jE(L),B={...e,size:l,orientation:N,align:F},[V,H]=Oc([s,C],[c,w],{props:B}),U=J(L,a,R,`${L}-${N}`,{[`${L}-rtl`]:r===`rtl`,[`${L}-align-${F}`]:F,[`${L}-gap-row-${D}`]:O,[`${L}-gap-col-${E}`]:k},d,f,z,V.root),W=J(`${L}-item`,V.item),ee=M.map((e,t)=>{let n=e?.key||`${W}-${t}`;return v.createElement(OE,{prefix:L,classNames:V,styles:H,className:W,key:n,index:t,separator:I,style:H.item},e)}),te=v.useMemo(()=>({latestIndex:M.reduce((e,t,n)=>ac(t)?n:e,0)}),[M]);if(M.length===0)return null;let ne={};return S&&(ne.flexWrap=`wrap`),!k&&j&&(ne.columnGap=E),!O&&A&&(ne.rowGap=D),v.createElement(`div`,{ref:t,className:U,style:{...ne,...H.root,...o,...b},...T},v.createElement(DE,{value:te},ee))});ME.Compact=Ld,ME.Addon=uE;var NE=e=>{let{getPopupContainer:t,getPrefixCls:n,direction:r}=v.useContext(Ye),{prefixCls:i,type:a=`default`,danger:o,disabled:s,loading:c,onClick:l,htmlType:u,children:d,className:f,menu:p,arrow:m,autoFocus:h,trigger:g,align:_,open:y,onOpenChange:b,placement:x,getPopupContainer:S,href:C,icon:w=v.createElement(vC,null),title:T,buttonsRender:E=e=>e,mouseEnterDelay:D,mouseLeaveDelay:O,overlayClassName:k,overlayStyle:A,destroyOnHidden:j,destroyPopupOnHide:M,dropdownRender:N,popupRender:P,...F}=e,I=n(`dropdown`,i),L=`${I}-button`,R={menu:p,arrow:m,autoFocus:h,align:_,disabled:s,trigger:s?[]:g,onOpenChange:b,getPopupContainer:S||t,mouseEnterDelay:D,mouseLeaveDelay:O,classNames:{root:k},styles:{root:A},destroyOnHidden:j,popupRender:P||N},{compactSize:z,compactItemClassnames:B}=Pd(I,r),V=J(L,B,f);`destroyPopupOnHide`in e&&(R.destroyPopupOnHide=M),`open`in e&&(R.open=y),`placement`in e?R.placement=x:R.placement=r===`rtl`?`bottomLeft`:`bottomRight`;let[H,U]=E([v.createElement(GC,{type:a,danger:o,disabled:s,loading:c,onClick:l,htmlType:u,href:C,title:T},d),v.createElement(GC,{type:a,danger:o,icon:w})]);return v.createElement(ME.Compact,{className:V,size:z,block:!0,...F},H,v.createElement(UC,{...R},U))};NE.__ANT_BUTTON=!0;var PE=UC;PE.Button=NE;var FE=[`wrap`,`nowrap`,`wrap-reverse`],IE=[`flex-start`,`flex-end`,`start`,`end`,`center`,`space-between`,`space-around`,`space-evenly`,`stretch`,`normal`,`left`,`right`],LE=[`center`,`start`,`end`,`flex-start`,`flex-end`,`self-start`,`self-end`,`baseline`,`normal`,`stretch`],RE=(e,t)=>{let n=t.wrap===!0?`wrap`:t.wrap;return{[`${e}-wrap-${n}`]:n&&FE.includes(n)}},zE=(e,t)=>{let n={};return LE.forEach(r=>{n[`${e}-align-${r}`]=t.align===r}),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n},BE=(e,t)=>{let n={};return IE.forEach(r=>{n[`${e}-justify-${r}`]=t.justify===r}),n},VE=(e,t)=>J({...RE(e,t),...zE(e,t),...BE(e,t)}),HE=e=>{let{componentCls:t}=e;return{[t]:{display:`flex`,margin:0,padding:0,"&-vertical":{flexDirection:`column`},"&-rtl":{direction:`rtl`},"&:empty":{display:`none`}}}},UE=e=>{let{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-medium, &-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},WE=e=>{let{componentCls:t}=e,n={};return FE.forEach(e=>{n[`${t}-wrap-${e}`]={flexWrap:e}}),n},GE=e=>{let{componentCls:t}=e,n={};return LE.forEach(e=>{n[`${t}-align-${e}`]={alignItems:e}}),n},KE=e=>{let{componentCls:t}=e,n={};return IE.forEach(e=>{n[`${t}-justify-${e}`]={justifyContent:e}}),n},qE=Ya(`Flex`,e=>{let{paddingXS:t,padding:n,paddingLG:r}=e,i=ci(e,{flexGapSM:t,flexGap:n,flexGapLG:r});return[HE(i),UE(i),WE(i),GE(i),KE(i)]},()=>({}),{resetStyle:!1}),JE=v.forwardRef((e,t)=>{let{prefixCls:n,rootClassName:r,className:i,style:a,flex:o,gap:s,vertical:c,orientation:l,component:u=`div`,children:d,...f}=e,{flex:p,direction:m,getPrefixCls:h}=v.useContext(Ye),g=h(`flex`,n),[_,y]=qE(g),[,b]=Ac(l,c??p?.vertical),x=J(i,r,p?.className,g,_,y,VE(g,{...e,vertical:b}),{[`${g}-rtl`]:m===`rtl`,[`${g}-gap-${s}`]:wE(s),[`${g}-vertical`]:b}),S={...p?.style,...a};return ac(o)&&(S.flex=o),ac(s)&&!wE(s)&&(S.gap=s),v.createElement(u,{ref:t,className:x,style:S,...de(f,[`justify`,`wrap`,`align`])},d)}),YE=e=>{let{getPrefixCls:t,direction:n}=(0,v.useContext)(Ye),{prefixCls:r,className:i}=e,a=t(`input-group`,r),[o,s]=xw(t(`input`)),c=J(a,s,{[`${a}-lg`]:e.size===`large`,[`${a}-sm`]:e.size===`small`,[`${a}-compact`]:e.compact,[`${a}-rtl`]:n===`rtl`},o,i),l=(0,v.useContext)(zh),u=(0,v.useMemo)(()=>({...l,isFormItemInput:!1}),[l]);return v.createElement(zh.Provider,{value:u},v.createElement(ME.Compact,{className:c,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},e.children))},XE=e=>{let{componentCls:t,paddingXS:n}=e;return{[t]:{display:`inline-flex`,alignItems:`center`,flexWrap:`nowrap`,columnGap:n,[`${t}-input-wrapper`]:{position:`relative`,[`${t}-mask-icon`]:{position:`absolute`,zIndex:`1`,top:`50%`,right:`50%`,transform:`translate(50%, -50%)`,pointerEvents:`none`},[`${t}-mask-input`]:{color:`transparent`,caretColor:e.colorText,"&::selection":{color:`transparent`}},[`${t}-mask-input[type=number]::-webkit-inner-spin-button`]:{"-webkit-appearance":`none`,margin:0},[`${t}-mask-input[type=number]`]:{"-moz-appearance":`textfield`}},"&-rtl":{direction:`rtl`},[`${t}-input`]:{textAlign:`center`,paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},ZE=Ya([`Input`,`OTP`],e=>XE(ci(e,KC(e))),qC),QE=v.forwardRef((e,t)=>{let{className:n,value:r,onChange:i,onActiveChange:a,index:o,mask:s,onFocus:c,...l}=e,{getPrefixCls:u}=v.useContext(Ye),d=u(`otp`),f=typeof s==`string`?s:r,p=v.useRef(null);v.useImperativeHandle(t,()=>p.current);let m=e=>{i(o,e.target.value)},h=()=>{Ke(()=>{let e=p.current?.input;document.activeElement===e&&e&&e.select()})},g=e=>{c?.(e),h()},_=e=>{let{key:t,ctrlKey:n,metaKey:i}=e;t===`ArrowLeft`?a(o-1):t===`ArrowRight`?a(o+1):t===`z`&&(n||i)?e.preventDefault():t===`Backspace`&&!r&&a(o-1),h()};return v.createElement(`span`,{className:`${d}-input-wrapper`,role:`presentation`},s&&r!==``&&r!==void 0&&v.createElement(`span`,{className:`${d}-mask-icon`,"aria-hidden":`true`},f),v.createElement(CE,{"aria-label":`OTP Input ${o+1}`,type:s===!0?`password`:`text`,...l,ref:p,value:r,onInput:m,onFocus:g,onKeyDown:_,onMouseDown:h,onMouseUp:h,className:J(n,{[`${d}-mask-input`]:s})}))});function $E(e){return(e||``).split(``)}var eD=e=>{let{index:t,prefixCls:n,separator:r,className:i,style:a}=e,o=typeof r==`function`?r(t):r;return o?v.createElement(`span`,{className:J(`${n}-separator`,i),style:a},o):null},tD=v.forwardRef((e,t)=>{let{prefixCls:n,length:r=6,size:i,defaultValue:a,value:o,onChange:s,formatter:c,separator:l,variant:u,disabled:d,status:f,autoFocus:p,mask:m,type:h,autoComplete:g,onInput:_,onFocus:b,inputMode:x,classNames:S,styles:C,className:w,style:T,...E}=e,{classNames:D,styles:O,getPrefixCls:k,direction:A,style:j,className:M}=Qe(`otp`),N=k(`otp`,n),P={...e,length:r},[F,I]=Oc([D,S],[O,C],{props:P}),L=Ps(E,{aria:!0,data:!0,attr:!0}),[R,z]=ZE(N),B=jd(e=>i??e),V=v.useContext(zh),H=Xy(V.status,f),U=v.useMemo(()=>({...V,status:H,hasFeedback:!1,feedbackIcon:null}),[V,H]),W=v.useRef(null),ee=v.useRef({});v.useImperativeHandle(t,()=>({focus:()=>{ee.current[0]?.focus()},blur:()=>{for(let e=0;e<r;e+=1)ee.current[e]?.blur()},nativeElement:W.current}));let te=e=>c?c(e):e,[ne,re]=v.useState(()=>$E(te(a||``)));v.useEffect(()=>{o!==void 0&&re($E(o))},[o]);let ie=y(e=>{re(e),_&&_(e),s&&e.length===r&&e.every(e=>e)&&e.some((e,t)=>ne[t]!==e)&&s(e.join(``))}),ae=y((e,t)=>{let n=Be(ne);for(let t=0;t<e;t+=1)n[t]||(n[t]=``);t.length<=1?n[e]=t:n=n.slice(0,e).concat($E(t)),n=n.slice(0,r);for(let e=n.length-1;e>=0&&!n[e];--e)n.pop();return n=$E(te(n.map(e=>e||` `).join(``))).map((e,t)=>e===` `&&!n[t]?n[t]:e),n}),G=(e,t)=>{let n=ae(e,t),i=Math.min(e+t.length,r-1);i!==e&&n[e]!==void 0&&ee.current[i]?.focus(),ie(n)},K=e=>{ee.current[e]?.focus()},oe=(e,t)=>{for(let e=0;e<t;e+=1)if(!ee.current[e]?.input?.value){ee.current[e]?.focus();break}b?.(e)},se={variant:u,disabled:d,status:H,mask:m,type:h,inputMode:x,autoComplete:g};return v.createElement(`div`,{...L,ref:W,className:J(w,N,{[`${N}-sm`]:B===`small`,[`${N}-lg`]:B===`large`,[`${N}-rtl`]:A===`rtl`},z,R,M,F.root),style:{...I.root,...j,...T},role:`group`},v.createElement(zh.Provider,{value:U},Array.from({length:r}).map((e,t)=>{let n=`otp-${t}`,i=ne[t]||``;return v.createElement(v.Fragment,{key:n},v.createElement(QE,{ref:e=>{ee.current[t]=e},index:t,size:B,htmlSize:1,className:J(F.input,`${N}-input`),style:I.input,onChange:G,value:i,onActiveChange:K,autoFocus:t===0&&p,onFocus:e=>oe(e,t),...se}),t<r-1&&v.createElement(eD,{separator:l,index:t,prefixCls:N,className:J(F.separator),style:I.separator}))})))}),nD={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z`}},{tag:`path`,attrs:{d:`M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z`}}]},name:`eye-invisible`,theme:`outlined`};function rD(){return rD=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},rD.apply(this,arguments)}var iD=v.forwardRef((e,t)=>v.createElement(Co,rD({},e,{ref:t,icon:nD}))),aD={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z`}}]},name:`eye`,theme:`outlined`};function oD(){return oD=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},oD.apply(this,arguments)}var sD=v.forwardRef((e,t)=>v.createElement(Co,oD({},e,{ref:t,icon:aD}))),cD=e=>e?v.createElement(sD,null):v.createElement(iD,null),lD={click:`onClick`,hover:`onMouseOver`},uD=v.forwardRef((e,t)=>{let{disabled:n,action:r=`click`,visibilityToggle:i=!0,iconRender:a=cD,suffix:o}=e,s=v.useContext(fu),c=n??s,l=cc(i)&&i.visible!==void 0,[u,d]=(0,v.useState)(()=>l?i.visible:!1),f=(0,v.useRef)(null);v.useEffect(()=>{l&&d(i.visible)},[l,i]);let p=xE(f),m=()=>{if(c)return;u&&p();let e=!u;d(e),cc(i)&&i.onVisibleChange?.(e)},h=e=>{let t=lD[r]||``,n=a(u),i={[t]:m,className:`${e}-icon`,key:`passwordIcon`,onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return v.cloneElement(v.isValidElement(n)?n:v.createElement(`span`,null,n),i)},{className:g,prefixCls:_,inputPrefixCls:y,size:b,...x}=e,{getPrefixCls:S}=v.useContext(Ye),C=S(`input`,y),w=S(`input-password`,_),T=i&&h(w),E=J(w,g,{[`${w}-${b}`]:!!b}),D={...de(x,[`suffix`,`iconRender`,`visibilityToggle`]),type:u?`text`:`password`,className:E,prefixCls:C,suffix:v.createElement(v.Fragment,null,T,o)};return b&&(D.size=b),v.createElement(CE,{ref:I(t,f),...D})}),dD=Ya([`Input`,`Search`],e=>{let{componentCls:t}=e,n=`${t}-btn`;return{[t]:{width:`100%`,[n]:{"&-filled":{background:e.colorFillTertiary,"&:not(:disabled)":{"&:hover":{background:e.colorFillSecondary},"&:active":{background:e.colorFill}}}}}}}),fD=v.forwardRef((e,t)=>{let{prefixCls:n,inputPrefixCls:r,className:i,size:a,style:o,enterButton:s=!1,addonAfter:c,loading:l,disabled:u,onSearch:d,onChange:f,onCompositionStart:p,onCompositionEnd:m,variant:h,onPressEnter:g,classNames:_,styles:y,hidden:b,...x}=e,{direction:S,getPrefixCls:C,classNames:w,styles:T}=Qe(`inputSearch`),E={...e,enterButton:s},[D,O]=Oc([w,_],[T,y],{props:E},{button:{_default:`root`}}),k=v.useRef(!1),A=C(`input-search`,n),j=C(`input`,r),[M,N]=dD(A),{compactSize:P}=Pd(A,S),F=jd(e=>a??P??e),L=v.useRef(null),R=e=>{e?.target&&e.type===`click`&&d&&d(e.target.value,e,{source:`clear`}),f?.(e)},z=e=>{document.activeElement===L.current?.input&&e.preventDefault()},B=e=>{d&&d(L.current?.input?.value,e,{source:`input`})},V=e=>{k.current||l||(g?.(e),B(e))},H=typeof s==`boolean`?v.createElement(Ob,null):null,U=`${A}-btn`,W=J(U,{[`${U}-${h}`]:h}),ee,te=s||{},ne=te.type&&te.type.__ANT_BUTTON===!0;ee=ne||te.type===`button`?su(te,{onMouseDown:z,onClick:e=>{te?.props?.onClick?.(e),B(e)},key:`enterButton`,...ne?{className:W,size:F}:{}}):v.createElement(vp,{classNames:D.button,styles:O.button,className:W,color:s?`primary`:`default`,size:F,disabled:u,key:`enterButton`,onMouseDown:z,onClick:B,loading:l,icon:H,variant:h===`borderless`||h===`filled`||h===`underlined`?`text`:s?`solid`:void 0},s),c&&(ee=[ee,su(c,{key:`addonAfter`})]);let re=J(A,N,{[`${A}-rtl`]:S===`rtl`,[`${A}-${F}`]:!!F,[`${A}-with-button`]:!!s},i,M,D.root),ie=e=>{k.current=!0,p?.(e)},ae=e=>{k.current=!1,m?.(e)},G=Ps(x,{data:!0}),K=de({...x,classNames:de(D,[`button`,`root`]),styles:de(O,[`button`,`root`]),prefixCls:j,type:`search`,size:F,variant:h,onPressEnter:V,onCompositionStart:ie,onCompositionEnd:ae,onChange:R,disabled:u},Object.keys(G));return v.createElement(Ld,{className:re,style:{...o,...O.root},...G,hidden:b},v.createElement(CE,{ref:I(L,t),...K}),ee)}),pD=`
|
|
226
226
|
min-height:0 !important;
|
|
227
227
|
max-height:none !important;
|
|
228
228
|
height:0 !important;
|
|
@@ -233,10 +233,10 @@ html body {
|
|
|
233
233
|
top:0 !important;
|
|
234
234
|
right:0 !important;
|
|
235
235
|
pointer-events: none !important;
|
|
236
|
-
`,
|
|
236
|
+
`,mD=[`letter-spacing`,`line-height`,`padding-top`,`padding-bottom`,`font-family`,`font-weight`,`font-size`,`font-variant`,`text-rendering`,`text-transform`,`width`,`text-indent`,`padding-left`,`padding-right`,`border-width`,`box-sizing`,`word-break`,`white-space`],hD={},gD;function _D(e,t=!1){let n=e.getAttribute(`id`)||e.getAttribute(`data-reactid`)||e.getAttribute(`name`);if(t&&hD[n])return hD[n];let r=window.getComputedStyle(e),i=r.getPropertyValue(`box-sizing`)||r.getPropertyValue(`-moz-box-sizing`)||r.getPropertyValue(`-webkit-box-sizing`),a=parseFloat(r.getPropertyValue(`padding-bottom`))+parseFloat(r.getPropertyValue(`padding-top`)),o=parseFloat(r.getPropertyValue(`border-bottom-width`))+parseFloat(r.getPropertyValue(`border-top-width`)),s={sizingStyle:mD.map(e=>`${e}:${r.getPropertyValue(e)}`).join(`;`),paddingSize:a,borderSize:o,boxSizing:i};return t&&n&&(hD[n]=s),s}function vD(e,t=!1,n=null,r=null){gD||(gD=document.createElement(`textarea`),gD.setAttribute(`tab-index`,`-1`),gD.setAttribute(`aria-hidden`,`true`),gD.setAttribute(`name`,`hiddenTextarea`),document.body.appendChild(gD)),e.getAttribute(`wrap`)?gD.setAttribute(`wrap`,e.getAttribute(`wrap`)):gD.removeAttribute(`wrap`);let{paddingSize:i,borderSize:a,boxSizing:o,sizingStyle:s}=_D(e,t);gD.setAttribute(`style`,`${s};${pD}`),gD.value=e.value||e.placeholder||``;let c,l,u,d=gD.scrollHeight;if(o===`border-box`?d+=a:o===`content-box`&&(d-=i),n!==null||r!==null){gD.value=` `;let e=gD.scrollHeight-i;n!==null&&(c=e*n,o===`border-box`&&(c=c+i+a),d=Math.max(c,d)),r!==null&&(l=e*r,o===`border-box`&&(l=l+i+a),u=d>l?``:`hidden`,d=Math.min(l,d))}let f={height:d,overflowY:u,resize:`none`};return c&&(f.minHeight=c),l&&(f.maxHeight=l),f}function yD(){return yD=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},yD.apply(this,arguments)}var bD=0,xD=1,SD=2,CD=v.forwardRef((e,t)=>{let{prefixCls:n,defaultValue:r,value:i,autoSize:a,onResize:o,className:s,style:c,disabled:l,onChange:u,onInternalAutoSize:d,...f}=e,[p,m]=T(r,i),h=p??``,g=e=>{m(e.target.value),u?.(e)},_=v.useRef();v.useImperativeHandle(t,()=>({textArea:_.current}));let[y,b]=v.useMemo(()=>a&&typeof a==`object`?[a.minRows,a.maxRows]:[],[a]),x=!!a,[C,w]=v.useState(SD),[E,D]=v.useState(),O=()=>{w(bD)};S(()=>{x&&O()},[i,y,b,x]),S(()=>{if(C===bD)w(xD);else if(C===xD){let e=vD(_.current,!1,y,b);w(SD),D(e)}},[C]);let k=v.useRef(),A=()=>{Ke.cancel(k.current)},j=e=>{C===SD&&(o?.(e),a&&(A(),k.current=Ke(()=>{O()})))};v.useEffect(()=>A,[]);let M=x?E:null,N={...c,...M};return(C===bD||C===xD)&&(N.overflowY=`hidden`,N.overflowX=`hidden`),v.createElement(Ne,{onResize:j,disabled:!(a||o)},v.createElement(`textarea`,yD({},f,{ref:_,style:N,className:J(n,s,{[`${n}-disabled`]:l}),disabled:l,value:h,onChange:g})))});function wD(){return wD=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},wD.apply(this,arguments)}var TD=v.forwardRef(({defaultValue:e,value:t,onFocus:n,onBlur:r,onChange:i,allowClear:a,maxLength:o,onCompositionStart:s,onCompositionEnd:c,suffix:l,prefixCls:u=`rc-textarea`,showCount:d,count:f,className:p,style:m,disabled:h,hidden:g,classNames:_,styles:y,onResize:b,onClear:x,onPressEnter:S,readOnly:C,autoSize:w,onKeyDown:E,...D},O)=>{let[k,A]=T(e,t),j=k==null?``:String(k),[M,N]=v.useState(!1),P=v.useRef(!1),[F,I]=v.useState(null),L=(0,v.useRef)(null),R=(0,v.useRef)(null),z=()=>R.current?.textArea,B=()=>{z().focus()};(0,v.useImperativeHandle)(O,()=>({resizableTextArea:R.current,focus:B,blur:()=>{z().blur()},nativeElement:L.current?.nativeElement||z()})),(0,v.useEffect)(()=>{N(e=>!h&&e)},[h]);let[V,H]=v.useState(null);v.useEffect(()=>{V&&z().setSelectionRange(...V)},[V]);let U=_E(f,d),W=U.max??o,ee=Number(W)>0,te=U.strategy(j),ne=!!W&&te>W,re=(e,t)=>{let n=t;!P.current&&U.exceedFormatter&&U.max&&U.strategy(t)>U.max&&(n=U.exceedFormatter(t,{max:U.max}),t!==n&&H([z().selectionStart||0,z().selectionEnd||0])),A(n),mE(e.currentTarget,e,i,n)},ie=e=>{P.current=!0,s?.(e)},ae=e=>{P.current=!1,re(e,e.currentTarget.value),c?.(e)},G=e=>{re(e,e.target.value)},K=e=>{e.key===`Enter`&&S&&!e.nativeEvent.isComposing&&S(e),E?.(e)},oe=e=>{N(!0),n?.(e)},se=e=>{N(!1),r?.(e)},ce=e=>{A(``),B(),mE(z(),e,i)},q=l,le;U.show&&(le=U.showFormatter?U.showFormatter({value:j,count:te,maxLength:W}):`${te}${ee?` / ${W}`:``}`,q=v.createElement(v.Fragment,null,q,v.createElement(`span`,{className:J(`${u}-data-count`,_?.count),style:y?.count},le)));let ue=e=>{b?.(e),z()?.style.height&&I(!0)},de=!w&&!d&&!a;return v.createElement(gE,{ref:L,value:j,allowClear:a,handleReset:ce,suffix:q,prefixCls:u,classNames:{..._,affixWrapper:J(_?.affixWrapper,{[`${u}-show-count`]:d,[`${u}-textarea-allow-clear`]:a})},disabled:h,focused:M,className:J(p,ne&&`${u}-out-of-range`),style:{...m,...F&&!de?{height:`auto`}:{}},dataAttrs:{affixWrapper:{"data-count":typeof le==`string`?le:void 0}},hidden:g,readOnly:C,onClear:x},v.createElement(CD,wD({},D,{autoSize:w,maxLength:o,onKeyDown:K,onChange:G,onFocus:oe,onBlur:se,onCompositionStart:ie,onCompositionEnd:ae,className:J(_?.textarea),style:{resize:m?.resize,...y?.textarea},disabled:h,prefixCls:u,onResize:ue,ref:R,readOnly:C})))}),ED=e=>{let{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[`textarea${t}`]:{maxWidth:`100%`,height:`auto`,minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:`bottom`,transition:`all ${e.motionDurationSlow}`,resize:`vertical`,[`&${t}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[`${t}-textarea-affix-wrapper-resize-dirty`]:{width:`auto`},[r]:{position:`relative`,"&-show-count":{[`${t}-data-count`]:{position:`absolute`,bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:`nowrap`,pointerEvents:`none`}},[`
|
|
237
237
|
&-allow-clear > ${t},
|
|
238
238
|
&-affix-wrapper${r}-has-feedback ${t}
|
|
239
|
-
`]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:`inherit`,border:`none`,outline:`none`,background:`transparent`,minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:`none !important`}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:`absolute`,insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:`absolute`,top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:`inline-flex`,alignItems:`center`,margin:`auto`,pointerEvents:`none`}}},[`&-affix-wrapper${t}-affix-wrapper-rtl`]:{[`${t}-suffix`]:{[`${t}-data-count`]:{direction:`ltr`,insetInlineStart:0}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},wD=Ya([`Input`,`TextArea`],e=>CD(ci(e,UC(e))),WC,{resetFont:!1}),TD=(0,v.forwardRef)((e,t)=>{let{prefixCls:n,bordered:r=!0,size:i,disabled:a,status:o,allowClear:s,classNames:c,rootClassName:l,className:u,style:d,styles:f,variant:p,showCount:m,onMouseDown:h,onResize:g,..._}=e,{getPrefixCls:y,direction:b,allowClear:x,autoComplete:S,className:C,style:w,classNames:T,styles:E}=Qe(`textArea`),D=v.useContext(fu),O=a??D,{status:k,hasFeedback:A,feedbackIcon:j}=v.useContext(zh),M=Xy(k,o),[N,P]=Oc([T,c],[E,f],{props:e}),F=v.useRef(null);v.useImperativeHandle(t,()=>({resizableTextArea:F.current?.resizableTextArea,focus:e=>{Ap(F.current?.resizableTextArea?.textArea,e)},blur:()=>F.current?.blur(),nativeElement:F.current?.nativeElement||null}));let I=y(`input`,n),L=Xc(I),[R,z]=_w(I,l);wD(I,L);let{compactSize:B,compactItemClassnames:V}=Pd(I,b),H=jd(e=>i??B??e),[U,W]=ab(`textArea`,p,r),ee=_E(s??x),[te,ne]=v.useState(!1),[re,ie]=v.useState(!1),ae=e=>{ne(!0),h?.(e);let t=()=>{ne(!1),document.removeEventListener(`mouseup`,t)};document.addEventListener(`mouseup`,t)},G=e=>{if(g?.(e),te&&typeof getComputedStyle==`function`){let e=F.current?.nativeElement?.querySelector(`textarea`);e&&getComputedStyle(e).resize===`both`&&ie(!0)}};return v.createElement(SD,{autoComplete:S,..._,style:{...P.root,...w,...d},styles:P,disabled:O,allowClear:ee,className:J(z,L,u,l,V,C,N.root,{[`${I}-textarea-affix-wrapper-resize-dirty`]:re}),classNames:{...N,textarea:J({[`${I}-sm`]:H===`small`,[`${I}-lg`]:H===`large`},R,N.textarea,te&&`${I}-mouse-active`),variant:J({[`${I}-${U}`]:W},Yy(I,M)),affixWrapper:J(`${I}-textarea-affix-wrapper`,{[`${I}-affix-wrapper-rtl`]:b===`rtl`,[`${I}-affix-wrapper-sm`]:H===`small`,[`${I}-affix-wrapper-lg`]:H===`large`,[`${I}-textarea-show-count`]:m||e.count?.show},R)},prefixCls:I,suffix:A&&v.createElement(`span`,{className:`${I}-textarea-suffix`},j),showCount:m,ref:F,onResize:G,onMouseDown:ae})}),ED=bE;ED.Group=KE,ED.Search=lD,ED.TextArea=TD,ED.Password=sD,ED.OTP=QE;function DD(e,t,n){return typeof n==`boolean`?n:e.length?!0:fe(t).some(e=>e.type===fC)}var OD=({suffixCls:e,tagName:t,displayName:n})=>n=>v.forwardRef((r,i)=>v.createElement(n,{ref:i,suffixCls:e,tagName:t,...r})),kD=v.forwardRef((e,t)=>{let{prefixCls:n,suffixCls:r,className:i,tagName:a,...o}=e,{getPrefixCls:s}=v.useContext(Ye),c=s(`layout`,n),[l]=oC(c),u=r?`${c}-${r}`:c;return v.createElement(a,{className:J(n||u,i,l),ref:t,...o})}),AD=v.forwardRef((e,t)=>{let{direction:n}=v.useContext(Ye),[r,i]=v.useState([]),{prefixCls:a,className:o,rootClassName:s,children:c,hasSider:l,tagName:u,style:d,...f}=e,p=de(f,[`suffixCls`]),{getPrefixCls:m,className:h,style:g}=Qe(`layout`),_=m(`layout`,a),y=DD(r,c,l),[b,x]=oC(_),S=J(_,{[`${_}-has-sider`]:y,[`${_}-rtl`]:n===`rtl`},h,o,s,b,x),C=v.useMemo(()=>({siderHook:{addSider:e=>{i(t=>[].concat(Be(t),[e]))},removeSider:e=>{i(t=>t.filter(t=>t!==e))}}}),[]);return v.createElement(nC.Provider,{value:C},v.createElement(u,{ref:t,className:S,style:{...g,...d},...p},c))}),jD=OD({tagName:`div`,displayName:`Layout`})(AD),MD=OD({suffixCls:`header`,tagName:`header`,displayName:`Header`})(kD),ND=OD({suffixCls:`footer`,tagName:`footer`,displayName:`Footer`})(kD),PD=OD({suffixCls:`content`,tagName:`main`,displayName:`Content`})(kD),FD=jD;FD.Header=MD,FD.Footer=ND,FD.Content=PD,FD.Sider=fC,FD._InternalSiderContext=uC;var ID={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z`}}]},name:`double-left`,theme:`outlined`};function LD(){return LD=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},LD.apply(this,arguments)}var RD=v.forwardRef((e,t)=>v.createElement(Co,LD({},e,{ref:t,icon:ID}))),zD={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z`}}]},name:`double-right`,theme:`outlined`};function BD(){return BD=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},BD.apply(this,arguments)}var VD=v.forwardRef((e,t)=>v.createElement(Co,BD({},e,{ref:t,icon:zD}))),HD={items_per_page:`条/页`,jump_to:`跳至`,jump_to_confirm:`确定`,page:`页`,prev_page:`上一页`,next_page:`下一页`,prev_5:`向前 5 页`,next_5:`向后 5 页`,prev_3:`向前 3 页`,next_3:`向后 3 页`,page_size:`页码`},UD=[10,20,50,100],WD=e=>{let{pageSizeOptions:t=UD,locale:n,changeSize:r,pageSize:i,goButton:a,quickGo:o,rootPrefixCls:s,disabled:c,buildOptionText:l,showSizeChanger:u,sizeChangerRender:d}=e,[f,p]=v.useState(``),m=v.useMemo(()=>!f||Number.isNaN(f)?void 0:Number(f),[f]),h=typeof l==`function`?l:e=>`${e} ${n.items_per_page}`,g=e=>{let t=e.target.value;/^\d*$/.test(t)&&p(t)},_=e=>{a||f===``||(p(``),!(e.relatedTarget&&(e.relatedTarget.className.includes(`${s}-item-link`)||e.relatedTarget.className.includes(`${s}-item`)))&&o?.(m))},y=e=>{f!==``&&(e.keyCode===X.ENTER||e.type===`click`)&&(p(``),o?.(m))},b=()=>t.some(e=>e.toString()===i.toString())?t:t.concat([i]).sort((e,t)=>(Number.isNaN(Number(e))?0:Number(e))-(Number.isNaN(Number(t))?0:Number(t))),x=`${s}-options`;if(!u&&!o)return null;let S=null,C=null,w=null;return u&&d&&(S=d({disabled:c,size:i,onSizeChange:e=>{r?.(Number(e))},"aria-label":n.page_size,className:`${x}-size-changer`,options:b().map(e=>({label:h(e),value:e}))})),o&&(a&&(w=typeof a==`boolean`?v.createElement(`button`,{type:`button`,onClick:y,onKeyUp:y,disabled:c,className:`${x}-quick-jumper-button`},n.jump_to_confirm):v.createElement(`span`,{onClick:y,onKeyUp:y},a)),C=v.createElement(`div`,{className:`${x}-quick-jumper`},n.jump_to,v.createElement(`input`,{disabled:c,type:`text`,value:f,onChange:g,onKeyUp:y,onBlur:_,"aria-label":n.page}),n.page,w)),v.createElement(`li`,{className:x},S,C)},GD=e=>{let{rootPrefixCls:t,page:n,active:r,className:i,style:a,showTitle:o,onClick:s,onKeyPress:c,itemRender:l}=e,u=`${t}-item`,d=J(u,`${u}-${n}`,{[`${u}-active`]:r,[`${u}-disabled`]:!n},i),f=()=>{s(n)},p=e=>{c(e,s,n)},m=l(n,`page`,v.createElement(`a`,{rel:`nofollow`},n));return m?v.createElement(`li`,{title:o?String(n):null,className:d,style:a,onClick:f,onKeyDown:p,tabIndex:0},m):null};function KD(){return KD=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},KD.apply(this,arguments)}var qD=(e,t,n)=>n;function JD(){}function YD(e){let t=Number(e);return typeof t==`number`&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function XD(e,t,n){let r=e===void 0?t:e;return Math.floor((n-1)/r)+1}var ZD=e=>{let{prefixCls:t=`rc-pagination`,selectPrefixCls:n=`rc-select`,className:r,classNames:i,styles:a,current:o,defaultCurrent:s=1,total:c=0,pageSize:l,defaultPageSize:u=10,onChange:d=JD,hideOnSinglePage:f,align:p,showPrevNextJumpers:m=!0,showQuickJumper:h,showLessItems:g,showTitle:_=!0,onShowSizeChange:y=JD,locale:b=HD,style:x,totalBoundaryShowSizeChanger:S=50,disabled:C,simple:w,showTotal:E,showSizeChanger:D=c>S,sizeChangerRender:O,pageSizeOptions:k,itemRender:A=qD,jumpPrevIcon:j,jumpNextIcon:M,prevIcon:N,nextIcon:P}=e,F=v.useRef(null),[I,L]=T(u,l),[R,z]=T(s,o),B=Math.max(1,Math.min(R,XD(void 0,I,c))),[V,H]=v.useState(B);(0,v.useEffect)(()=>{H(B)},[B]),`current`in e;let U=Math.max(1,B-(g?3:5)),W=Math.min(XD(void 0,I,c),B+(g?3:5));function ee(n,r){let i=n||v.createElement(`button`,{type:`button`,"aria-label":r,className:`${t}-item-link`});return typeof n==`function`&&(i=v.createElement(n,e)),i}function te(e){let t=e.target.value,n=XD(void 0,I,c),r;return r=t===``?t:Number.isNaN(Number(t))?V:t>=n?n:Number(t),r}function ne(e){return YD(e)&&e!==B&&YD(c)&&c>0}let re=c>I?h:!1;function ie(e){(e.keyCode===X.UP||e.keyCode===X.DOWN)&&e.preventDefault()}function ae(e){let t=te(e);switch(t!==V&&H(t),e.keyCode){case X.ENTER:oe(t);break;case X.UP:oe(t-1);break;case X.DOWN:oe(t+1);break;default:break}}function G(e){oe(te(e))}function K(e){let t=XD(e,I,c),n=B>t&&t!==0?t:B;L(e),H(n),y?.(B,e),z(n),d?.(n,e)}function oe(e){if(ne(e)&&!C){let t=XD(void 0,I,c),n=e;return e>t?n=t:e<1&&(n=1),n!==V&&H(n),z(n),d?.(n,I),n}return B}let se=B>1,ce=B<XD(void 0,I,c);function q(){se&&oe(B-1)}function le(){ce&&oe(B+1)}function ue(){oe(U)}function de(){oe(W)}function fe(e,t,...n){(e.key===`Enter`||e.charCode===X.ENTER||e.keyCode===X.ENTER)&&t(...n)}function pe(e){fe(e,q)}function me(e){fe(e,le)}function he(e){fe(e,ue)}function ge(e){fe(e,de)}function _e(e){let t=A(e,`prev`,ee(N,`prev page`));return v.isValidElement(t)?v.cloneElement(t,{disabled:!se}):t}function ve(e){let t=A(e,`next`,ee(P,`next page`));return v.isValidElement(t)?v.cloneElement(t,{disabled:!ce}):t}function ye(e){(e.type===`click`||e.keyCode===X.ENTER)&&oe(V)}let be=null,xe=Ps(e,{aria:!0,data:!0}),Se=E&&v.createElement(`li`,{className:`${t}-total-text`},E(c,[c===0?0:(B-1)*I+1,B*I>c?c:B*I])),Ce=null,we=XD(void 0,I,c);if(f&&c<=I)return null;let Te=[],Ee={rootPrefixCls:t,onClick:oe,onKeyPress:fe,showTitle:_,itemRender:A,page:-1,className:i?.item,style:a?.item},De=B-1>0?B-1:0,Oe=B+1<we?B+1:we,ke=h&&h.goButton,Ae=typeof w==`object`?w.readOnly:!w,je=ke,Me=null;w&&(ke&&(je=typeof ke==`boolean`?v.createElement(`button`,{type:`button`,onClick:ye,onKeyUp:ye},b.jump_to_confirm):v.createElement(`span`,{onClick:ye,onKeyUp:ye},ke),je=v.createElement(`li`,{title:_?`${b.jump_to}${B}/${we}`:null,className:`${t}-simple-pager`},je)),Me=v.createElement(`li`,{title:_?`${B}/${we}`:null,className:J(`${t}-simple-pager`,i?.item),style:a?.item},Ae?V:v.createElement(`input`,{type:`text`,"aria-label":b.jump_to,value:V,disabled:C,onKeyDown:ie,onKeyUp:ae,onChange:ae,onBlur:G,size:3}),v.createElement(`span`,{className:`${t}-slash`},`/`),we));let Ne=g?1:2;if(we<=3+Ne*2){we||Te.push(v.createElement(GD,KD({},Ee,{key:`noPager`,page:1,className:`${t}-item-disabled`})));for(let e=1;e<=we;e+=1)Te.push(v.createElement(GD,KD({},Ee,{key:e,page:e,active:B===e})))}else{let e=g?b.prev_3:b.prev_5,n=g?b.next_3:b.next_5,r=A(U,`jump-prev`,ee(j,`prev page`)),i=A(W,`jump-next`,ee(M,`next page`));m&&(be=r?v.createElement(`li`,{title:_?e:null,key:`prev`,onClick:ue,tabIndex:0,onKeyDown:he,className:J(`${t}-jump-prev`,{[`${t}-jump-prev-custom-icon`]:!!j})},r):null,Ce=i?v.createElement(`li`,{title:_?n:null,key:`next`,onClick:de,tabIndex:0,onKeyDown:ge,className:J(`${t}-jump-next`,{[`${t}-jump-next-custom-icon`]:!!M})},i):null);let a=Math.max(1,B-Ne),o=Math.min(B+Ne,we);B-1<=Ne&&(o=1+Ne*2),we-B<=Ne&&(a=we-Ne*2);for(let e=a;e<=o;e+=1)Te.push(v.createElement(GD,KD({},Ee,{key:e,page:e,active:B===e})));if(B-1>=Ne*2&&B!==3&&(Te[0]=v.cloneElement(Te[0],{className:J(`${t}-item-after-jump-prev`,Te[0].props.className)}),Te.unshift(be)),we-B>=Ne*2&&B!==we-2){let e=Te[Te.length-1];Te[Te.length-1]=v.cloneElement(e,{className:J(`${t}-item-before-jump-next`,e.props.className)}),Te.push(Ce)}a!==1&&Te.unshift(v.createElement(GD,KD({},Ee,{key:1,page:1}))),o!==we&&Te.push(v.createElement(GD,KD({},Ee,{key:we,page:we})))}let Pe=_e(De);if(Pe){let e=!se||!we;Pe=v.createElement(`li`,{title:_?b.prev_page:null,onClick:q,tabIndex:e?null:0,onKeyDown:pe,className:J(`${t}-prev`,i?.item,{[`${t}-disabled`]:e}),style:a?.item,"aria-disabled":e},Pe)}let Fe=ve(Oe);if(Fe){let e,n;w?(e=!ce,n=se?0:null):(e=!ce||!we,n=e?null:0),Fe=v.createElement(`li`,{title:_?b.next_page:null,onClick:le,tabIndex:n,onKeyDown:me,className:J(`${t}-next`,i?.item,{[`${t}-disabled`]:e}),style:a?.item,"aria-disabled":e},Fe)}let Ie=J(t,r,{[`${t}-start`]:p===`start`,[`${t}-center`]:p===`center`,[`${t}-end`]:p===`end`,[`${t}-simple`]:w,[`${t}-disabled`]:C});return v.createElement(`ul`,KD({className:Ie,style:x,ref:F},xe),Se,Pe,w?Me:Te,Fe,v.createElement(WD,{locale:b,rootPrefixCls:t,disabled:C,selectPrefixCls:n,changeSize:K,pageSize:I,pageSizeOptions:k,quickGo:re?oe:null,goButton:je,showSizeChanger:D,sizeChangerRender:O}))},QD=e=>{let{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:`not-allowed`,[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:`not-allowed`}},"&:focus-visible":{cursor:`not-allowed`,[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:`not-allowed`}}},[`&${t}-disabled`]:{cursor:`not-allowed`,[`${t}-item`]:{cursor:`not-allowed`,backgroundColor:`transparent`,"&:hover, &:active":{backgroundColor:`transparent`},a:{color:e.colorTextDisabled,backgroundColor:`transparent`,border:`none`,cursor:`not-allowed`},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:`not-allowed`,"&:hover, &:active":{backgroundColor:`transparent`},[`${t}-simple&`]:{backgroundColor:`transparent`,"&:hover, &:active":{backgroundColor:`transparent`}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}}}},$D=e=>{let{componentCls:t}=e;return{[`&${t}-small ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-quick-jumper":{input:{...lw(e),width:e.paginationMiniQuickJumperInputWidth}}}}},eO=e=>{let{componentCls:t}=e;return{[`&${t}-large ${t}-options`]:{"&-quick-jumper":{input:{...cw(e)}}}}},tO=e=>{let{componentCls:t,antCls:n}=e,[,r]=Qa(n,`pagination`);return{[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{height:r(`item-size-actual`),lineHeight:r(`item-size-actual`),verticalAlign:`top`,[`${t}-item-link`]:{height:r(`item-size-actual`),backgroundColor:`transparent`,border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:r(`item-size-actual`),lineHeight:r(`item-size-actual`)}}},[`${t}-simple-pager`]:{display:`inline-flex`,alignItems:`center`,height:r(`item-size-actual`),marginInlineEnd:r(`item-spacing-actual`),input:{boxSizing:`border-box`,height:`100%`,width:e.quickJumperInputWidth,padding:`0 ${Y(e.paginationItemPaddingInline)}`,textAlign:`center`,backgroundColor:e.itemInputBg,border:`${Y(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:`none`,transition:`border-color ${e.motionDurationMid}`,color:`inherit`,"&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${Y(e.inputOutlineOffset)} 0 ${Y(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:`not-allowed`}}},[`&${t}-disabled`]:{[`${t}-prev, ${t}-next`]:{[`${t}-item-link`]:{"&:hover, &:active":{backgroundColor:`transparent`}}}},[`&${t}-small`]:{[`${t}-simple-pager`]:{input:{width:e.paginationMiniQuickJumperInputWidth}}}}}},nO=e=>{let{componentCls:t,antCls:n}=e,[,r]=Qa(n,`pagination`);return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:`relative`,[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:`auto`}},[`${t}-item-ellipsis`]:{position:`absolute`,top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:`block`,margin:`auto`,color:e.colorTextDisabled,letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:`center`,textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[`
|
|
239
|
+
`]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:`inherit`,border:`none`,outline:`none`,background:`transparent`,minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:`none !important`}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:`absolute`,insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:`absolute`,top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:`inline-flex`,alignItems:`center`,margin:`auto`,pointerEvents:`none`}}},[`&-affix-wrapper${t}-affix-wrapper-rtl`]:{[`${t}-suffix`]:{[`${t}-data-count`]:{direction:`ltr`,insetInlineStart:0}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},DD=Ya([`Input`,`TextArea`],e=>ED(ci(e,KC(e))),qC,{resetFont:!1}),OD=(0,v.forwardRef)((e,t)=>{let{prefixCls:n,bordered:r=!0,size:i,disabled:a,status:o,allowClear:s,classNames:c,rootClassName:l,className:u,style:d,styles:f,variant:p,showCount:m,onMouseDown:h,onResize:g,..._}=e,{getPrefixCls:y,direction:b,allowClear:x,autoComplete:S,className:C,style:w,classNames:T,styles:E}=Qe(`textArea`),D=v.useContext(fu),O=a??D,{status:k,hasFeedback:A,feedbackIcon:j}=v.useContext(zh),M=Xy(k,o),[N,P]=Oc([T,c],[E,f],{props:e}),F=v.useRef(null);v.useImperativeHandle(t,()=>({resizableTextArea:F.current?.resizableTextArea,focus:e=>{Ap(F.current?.resizableTextArea?.textArea,e)},blur:()=>F.current?.blur(),nativeElement:F.current?.nativeElement||null}));let I=y(`input`,n),L=Xc(I),[R,z]=bw(I,l);DD(I,L);let{compactSize:B,compactItemClassnames:V}=Pd(I,b),H=jd(e=>i??B??e),[U,W]=ab(`textArea`,p,r),ee=bE(s??x),[te,ne]=v.useState(!1),[re,ie]=v.useState(!1),ae=e=>{ne(!0),h?.(e);let t=()=>{ne(!1),document.removeEventListener(`mouseup`,t)};document.addEventListener(`mouseup`,t)},G=e=>{if(g?.(e),te&&typeof getComputedStyle==`function`){let e=F.current?.nativeElement?.querySelector(`textarea`);e&&getComputedStyle(e).resize===`both`&&ie(!0)}};return v.createElement(TD,{autoComplete:S,..._,style:{...P.root,...w,...d},styles:P,disabled:O,allowClear:ee,className:J(z,L,u,l,V,C,N.root,{[`${I}-textarea-affix-wrapper-resize-dirty`]:re}),classNames:{...N,textarea:J({[`${I}-sm`]:H===`small`,[`${I}-lg`]:H===`large`},R,N.textarea,te&&`${I}-mouse-active`),variant:J({[`${I}-${U}`]:W},Yy(I,M)),affixWrapper:J(`${I}-textarea-affix-wrapper`,{[`${I}-affix-wrapper-rtl`]:b===`rtl`,[`${I}-affix-wrapper-sm`]:H===`small`,[`${I}-affix-wrapper-lg`]:H===`large`,[`${I}-textarea-show-count`]:m||e.count?.show},R)},prefixCls:I,suffix:A&&v.createElement(`span`,{className:`${I}-textarea-suffix`},j),showCount:m,ref:F,onResize:G,onMouseDown:ae})}),kD=CE;kD.Group=YE,kD.Search=fD,kD.TextArea=OD,kD.Password=uD,kD.OTP=tD;function AD(e,t,n){return typeof n==`boolean`?n:e.length?!0:fe(t).some(e=>e.type===hC)}var jD=({suffixCls:e,tagName:t,displayName:n})=>n=>v.forwardRef((r,i)=>v.createElement(n,{ref:i,suffixCls:e,tagName:t,...r})),MD=v.forwardRef((e,t)=>{let{prefixCls:n,suffixCls:r,className:i,tagName:a,...o}=e,{getPrefixCls:s}=v.useContext(Ye),c=s(`layout`,n),[l]=lC(c),u=r?`${c}-${r}`:c;return v.createElement(a,{className:J(n||u,i,l),ref:t,...o})}),ND=v.forwardRef((e,t)=>{let{direction:n}=v.useContext(Ye),[r,i]=v.useState([]),{prefixCls:a,className:o,rootClassName:s,children:c,hasSider:l,tagName:u,style:d,...f}=e,p=de(f,[`suffixCls`]),{getPrefixCls:m,className:h,style:g}=Qe(`layout`),_=m(`layout`,a),y=AD(r,c,l),[b,x]=lC(_),S=J(_,{[`${_}-has-sider`]:y,[`${_}-rtl`]:n===`rtl`},h,o,s,b,x),C=v.useMemo(()=>({siderHook:{addSider:e=>{i(t=>[].concat(Be(t),[e]))},removeSider:e=>{i(t=>t.filter(t=>t!==e))}}}),[]);return v.createElement(aC.Provider,{value:C},v.createElement(u,{ref:t,className:S,style:{...g,...d},...p},c))}),PD=jD({tagName:`div`,displayName:`Layout`})(ND),FD=jD({suffixCls:`header`,tagName:`header`,displayName:`Header`})(MD),ID=jD({suffixCls:`footer`,tagName:`footer`,displayName:`Footer`})(MD),LD=jD({suffixCls:`content`,tagName:`main`,displayName:`Content`})(MD),RD=PD;RD.Header=FD,RD.Footer=ID,RD.Content=LD,RD.Sider=hC,RD._InternalSiderContext=pC;var zD={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z`}}]},name:`double-left`,theme:`outlined`};function BD(){return BD=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},BD.apply(this,arguments)}var VD=v.forwardRef((e,t)=>v.createElement(Co,BD({},e,{ref:t,icon:zD}))),HD={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z`}}]},name:`double-right`,theme:`outlined`};function UD(){return UD=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},UD.apply(this,arguments)}var WD=v.forwardRef((e,t)=>v.createElement(Co,UD({},e,{ref:t,icon:HD}))),GD={items_per_page:`条/页`,jump_to:`跳至`,jump_to_confirm:`确定`,page:`页`,prev_page:`上一页`,next_page:`下一页`,prev_5:`向前 5 页`,next_5:`向后 5 页`,prev_3:`向前 3 页`,next_3:`向后 3 页`,page_size:`页码`},KD=[10,20,50,100],qD=e=>{let{pageSizeOptions:t=KD,locale:n,changeSize:r,pageSize:i,goButton:a,quickGo:o,rootPrefixCls:s,disabled:c,buildOptionText:l,showSizeChanger:u,sizeChangerRender:d}=e,[f,p]=v.useState(``),m=v.useMemo(()=>!f||Number.isNaN(f)?void 0:Number(f),[f]),h=typeof l==`function`?l:e=>`${e} ${n.items_per_page}`,g=e=>{let t=e.target.value;/^\d*$/.test(t)&&p(t)},_=e=>{a||f===``||(p(``),!(e.relatedTarget&&(e.relatedTarget.className.includes(`${s}-item-link`)||e.relatedTarget.className.includes(`${s}-item`)))&&o?.(m))},y=e=>{f!==``&&(e.keyCode===X.ENTER||e.type===`click`)&&(p(``),o?.(m))},b=()=>t.some(e=>e.toString()===i.toString())?t:t.concat([i]).sort((e,t)=>(Number.isNaN(Number(e))?0:Number(e))-(Number.isNaN(Number(t))?0:Number(t))),x=`${s}-options`;if(!u&&!o)return null;let S=null,C=null,w=null;return u&&d&&(S=d({disabled:c,size:i,onSizeChange:e=>{r?.(Number(e))},"aria-label":n.page_size,className:`${x}-size-changer`,options:b().map(e=>({label:h(e),value:e}))})),o&&(a&&(w=typeof a==`boolean`?v.createElement(`button`,{type:`button`,onClick:y,onKeyUp:y,disabled:c,className:`${x}-quick-jumper-button`},n.jump_to_confirm):v.createElement(`span`,{onClick:y,onKeyUp:y},a)),C=v.createElement(`div`,{className:`${x}-quick-jumper`},n.jump_to,v.createElement(`input`,{disabled:c,type:`text`,value:f,onChange:g,onKeyUp:y,onBlur:_,"aria-label":n.page}),n.page,w)),v.createElement(`li`,{className:x},S,C)},JD=e=>{let{rootPrefixCls:t,page:n,active:r,className:i,style:a,showTitle:o,onClick:s,onKeyPress:c,itemRender:l}=e,u=`${t}-item`,d=J(u,`${u}-${n}`,{[`${u}-active`]:r,[`${u}-disabled`]:!n},i),f=()=>{s(n)},p=e=>{c(e,s,n)},m=l(n,`page`,v.createElement(`a`,{rel:`nofollow`},n));return m?v.createElement(`li`,{title:o?String(n):null,className:d,style:a,onClick:f,onKeyDown:p,tabIndex:0},m):null};function YD(){return YD=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},YD.apply(this,arguments)}var XD=(e,t,n)=>n;function ZD(){}function QD(e){let t=Number(e);return typeof t==`number`&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function $D(e,t,n){let r=e===void 0?t:e;return Math.floor((n-1)/r)+1}var eO=e=>{let{prefixCls:t=`rc-pagination`,selectPrefixCls:n=`rc-select`,className:r,classNames:i,styles:a,current:o,defaultCurrent:s=1,total:c=0,pageSize:l,defaultPageSize:u=10,onChange:d=ZD,hideOnSinglePage:f,align:p,showPrevNextJumpers:m=!0,showQuickJumper:h,showLessItems:g,showTitle:_=!0,onShowSizeChange:y=ZD,locale:b=GD,style:x,totalBoundaryShowSizeChanger:S=50,disabled:C,simple:w,showTotal:E,showSizeChanger:D=c>S,sizeChangerRender:O,pageSizeOptions:k,itemRender:A=XD,jumpPrevIcon:j,jumpNextIcon:M,prevIcon:N,nextIcon:P}=e,F=v.useRef(null),[I,L]=T(u,l),[R,z]=T(s,o),B=Math.max(1,Math.min(R,$D(void 0,I,c))),[V,H]=v.useState(B);(0,v.useEffect)(()=>{H(B)},[B]),`current`in e;let U=Math.max(1,B-(g?3:5)),W=Math.min($D(void 0,I,c),B+(g?3:5));function ee(n,r){let i=n||v.createElement(`button`,{type:`button`,"aria-label":r,className:`${t}-item-link`});return typeof n==`function`&&(i=v.createElement(n,e)),i}function te(e){let t=e.target.value,n=$D(void 0,I,c),r;return r=t===``?t:Number.isNaN(Number(t))?V:t>=n?n:Number(t),r}function ne(e){return QD(e)&&e!==B&&QD(c)&&c>0}let re=c>I?h:!1;function ie(e){(e.keyCode===X.UP||e.keyCode===X.DOWN)&&e.preventDefault()}function ae(e){let t=te(e);switch(t!==V&&H(t),e.keyCode){case X.ENTER:oe(t);break;case X.UP:oe(t-1);break;case X.DOWN:oe(t+1);break;default:break}}function G(e){oe(te(e))}function K(e){let t=$D(e,I,c),n=B>t&&t!==0?t:B;L(e),H(n),y?.(B,e),z(n),d?.(n,e)}function oe(e){if(ne(e)&&!C){let t=$D(void 0,I,c),n=e;return e>t?n=t:e<1&&(n=1),n!==V&&H(n),z(n),d?.(n,I),n}return B}let se=B>1,ce=B<$D(void 0,I,c);function q(){se&&oe(B-1)}function le(){ce&&oe(B+1)}function ue(){oe(U)}function de(){oe(W)}function fe(e,t,...n){(e.key===`Enter`||e.charCode===X.ENTER||e.keyCode===X.ENTER)&&t(...n)}function pe(e){fe(e,q)}function me(e){fe(e,le)}function he(e){fe(e,ue)}function ge(e){fe(e,de)}function _e(e){let t=A(e,`prev`,ee(N,`prev page`));return v.isValidElement(t)?v.cloneElement(t,{disabled:!se}):t}function ve(e){let t=A(e,`next`,ee(P,`next page`));return v.isValidElement(t)?v.cloneElement(t,{disabled:!ce}):t}function ye(e){(e.type===`click`||e.keyCode===X.ENTER)&&oe(V)}let be=null,xe=Ps(e,{aria:!0,data:!0}),Se=E&&v.createElement(`li`,{className:`${t}-total-text`},E(c,[c===0?0:(B-1)*I+1,B*I>c?c:B*I])),Ce=null,we=$D(void 0,I,c);if(f&&c<=I)return null;let Te=[],Ee={rootPrefixCls:t,onClick:oe,onKeyPress:fe,showTitle:_,itemRender:A,page:-1,className:i?.item,style:a?.item},De=B-1>0?B-1:0,Oe=B+1<we?B+1:we,ke=h&&h.goButton,Ae=typeof w==`object`?w.readOnly:!w,je=ke,Me=null;w&&(ke&&(je=typeof ke==`boolean`?v.createElement(`button`,{type:`button`,onClick:ye,onKeyUp:ye},b.jump_to_confirm):v.createElement(`span`,{onClick:ye,onKeyUp:ye},ke),je=v.createElement(`li`,{title:_?`${b.jump_to}${B}/${we}`:null,className:`${t}-simple-pager`},je)),Me=v.createElement(`li`,{title:_?`${B}/${we}`:null,className:J(`${t}-simple-pager`,i?.item),style:a?.item},Ae?V:v.createElement(`input`,{type:`text`,"aria-label":b.jump_to,value:V,disabled:C,onKeyDown:ie,onKeyUp:ae,onChange:ae,onBlur:G,size:3}),v.createElement(`span`,{className:`${t}-slash`},`/`),we));let Ne=g?1:2;if(we<=3+Ne*2){we||Te.push(v.createElement(JD,YD({},Ee,{key:`noPager`,page:1,className:`${t}-item-disabled`})));for(let e=1;e<=we;e+=1)Te.push(v.createElement(JD,YD({},Ee,{key:e,page:e,active:B===e})))}else{let e=g?b.prev_3:b.prev_5,n=g?b.next_3:b.next_5,r=A(U,`jump-prev`,ee(j,`prev page`)),i=A(W,`jump-next`,ee(M,`next page`));m&&(be=r?v.createElement(`li`,{title:_?e:null,key:`prev`,onClick:ue,tabIndex:0,onKeyDown:he,className:J(`${t}-jump-prev`,{[`${t}-jump-prev-custom-icon`]:!!j})},r):null,Ce=i?v.createElement(`li`,{title:_?n:null,key:`next`,onClick:de,tabIndex:0,onKeyDown:ge,className:J(`${t}-jump-next`,{[`${t}-jump-next-custom-icon`]:!!M})},i):null);let a=Math.max(1,B-Ne),o=Math.min(B+Ne,we);B-1<=Ne&&(o=1+Ne*2),we-B<=Ne&&(a=we-Ne*2);for(let e=a;e<=o;e+=1)Te.push(v.createElement(JD,YD({},Ee,{key:e,page:e,active:B===e})));if(B-1>=Ne*2&&B!==3&&(Te[0]=v.cloneElement(Te[0],{className:J(`${t}-item-after-jump-prev`,Te[0].props.className)}),Te.unshift(be)),we-B>=Ne*2&&B!==we-2){let e=Te[Te.length-1];Te[Te.length-1]=v.cloneElement(e,{className:J(`${t}-item-before-jump-next`,e.props.className)}),Te.push(Ce)}a!==1&&Te.unshift(v.createElement(JD,YD({},Ee,{key:1,page:1}))),o!==we&&Te.push(v.createElement(JD,YD({},Ee,{key:we,page:we})))}let Pe=_e(De);if(Pe){let e=!se||!we;Pe=v.createElement(`li`,{title:_?b.prev_page:null,onClick:q,tabIndex:e?null:0,onKeyDown:pe,className:J(`${t}-prev`,i?.item,{[`${t}-disabled`]:e}),style:a?.item,"aria-disabled":e},Pe)}let Fe=ve(Oe);if(Fe){let e,n;w?(e=!ce,n=se?0:null):(e=!ce||!we,n=e?null:0),Fe=v.createElement(`li`,{title:_?b.next_page:null,onClick:le,tabIndex:n,onKeyDown:me,className:J(`${t}-next`,i?.item,{[`${t}-disabled`]:e}),style:a?.item,"aria-disabled":e},Fe)}let Ie=J(t,r,{[`${t}-start`]:p===`start`,[`${t}-center`]:p===`center`,[`${t}-end`]:p===`end`,[`${t}-simple`]:w,[`${t}-disabled`]:C});return v.createElement(`ul`,YD({className:Ie,style:x,ref:F},xe),Se,Pe,w?Me:Te,Fe,v.createElement(qD,{locale:b,rootPrefixCls:t,disabled:C,selectPrefixCls:n,changeSize:K,pageSize:I,pageSizeOptions:k,quickGo:re?oe:null,goButton:je,showSizeChanger:D,sizeChangerRender:O}))},tO=e=>{let{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:`not-allowed`,[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:`not-allowed`}},"&:focus-visible":{cursor:`not-allowed`,[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:`not-allowed`}}},[`&${t}-disabled`]:{cursor:`not-allowed`,[`${t}-item`]:{cursor:`not-allowed`,backgroundColor:`transparent`,"&:hover, &:active":{backgroundColor:`transparent`},a:{color:e.colorTextDisabled,backgroundColor:`transparent`,border:`none`,cursor:`not-allowed`},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:`not-allowed`,"&:hover, &:active":{backgroundColor:`transparent`},[`${t}-simple&`]:{backgroundColor:`transparent`,"&:hover, &:active":{backgroundColor:`transparent`}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}}}},nO=e=>{let{componentCls:t}=e;return{[`&${t}-small ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-quick-jumper":{input:{...fw(e),width:e.paginationMiniQuickJumperInputWidth}}}}},rO=e=>{let{componentCls:t}=e;return{[`&${t}-large ${t}-options`]:{"&-quick-jumper":{input:{...dw(e)}}}}},iO=e=>{let{componentCls:t,antCls:n}=e,[,r]=Qa(n,`pagination`);return{[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{height:r(`item-size-actual`),lineHeight:r(`item-size-actual`),verticalAlign:`top`,[`${t}-item-link`]:{height:r(`item-size-actual`),backgroundColor:`transparent`,border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:r(`item-size-actual`),lineHeight:r(`item-size-actual`)}}},[`${t}-simple-pager`]:{display:`inline-flex`,alignItems:`center`,height:r(`item-size-actual`),marginInlineEnd:r(`item-spacing-actual`),input:{boxSizing:`border-box`,height:`100%`,width:e.quickJumperInputWidth,padding:`0 ${Y(e.paginationItemPaddingInline)}`,textAlign:`center`,backgroundColor:e.itemInputBg,border:`${Y(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:`none`,transition:`border-color ${e.motionDurationMid}`,color:`inherit`,"&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${Y(e.inputOutlineOffset)} 0 ${Y(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:`not-allowed`}}},[`&${t}-disabled`]:{[`${t}-prev, ${t}-next`]:{[`${t}-item-link`]:{"&:hover, &:active":{backgroundColor:`transparent`}}}},[`&${t}-small`]:{[`${t}-simple-pager`]:{input:{width:e.paginationMiniQuickJumperInputWidth}}}}}},aO=e=>{let{componentCls:t,antCls:n}=e,[,r]=Qa(n,`pagination`);return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:`relative`,[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:`auto`}},[`${t}-item-ellipsis`]:{position:`absolute`,top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:`block`,margin:`auto`,color:e.colorTextDisabled,letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:`center`,textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[`
|
|
240
240
|
${t}-prev,
|
|
241
241
|
${t}-jump-prev,
|
|
242
242
|
${t}-jump-next
|
|
@@ -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:`${Y(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:{...uw(e),...qC(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow}),"&[disabled]":{...KC(e)},width:e.quickJumperInputWidth,height:r(`item-size-actual`),boxSizing:`border-box`,margin:0,marginInlineStart:r(`item-spacing-actual`),marginInlineEnd:r(`item-spacing-actual`)}}}}},rO=e=>{let{componentCls:t,antCls:n}=e,[,r]=Qa(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:Y(e.calc(r(`item-size-actual`)).sub(2).equal()),textAlign:`center`,verticalAlign:`middle`,listStyle:`none`,backgroundColor:e.itemBg,border:`${Y(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:`pointer`,userSelect:`none`,a:{display:`block`,padding:`0 ${Y(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}}}}},iO=e=>{let{componentCls:t,antCls:n}=e,[r,i]=Qa(n,`pagination`);return{[t]:{[r(`item-size-actual`)]:Y(e.itemSize),[r(`item-spacing-actual`)]:Y(e.marginXS),"&-small":{[r(`item-size-actual`)]:Y(e.itemSizeSM),[r(`item-spacing-actual`)]:Y(e.marginXXS)},"&-large":{[r(`item-size-actual`)]:Y(e.itemSizeLG),[r(`item-spacing-actual`)]:Y(e.marginSM)},...Ba(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:Y(e.calc(i(`item-size-actual`)).sub(2).equal()),verticalAlign:`middle`},...rO(e),...nO(e),...tO(e),...$D(e),...eO(e),...QD(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`}}},aO=e=>{let{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:{...Wa(e)},[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0},...Ua(e)}},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Ua(e)}}}},oO=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,...WC(e)}),sO=e=>ci(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`},UC(e)),cO=Ya(`Pagination`,e=>{let t=sO(e);return[iO(t),aO(t)]},oO),lO=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:`${Y(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}}}}},uO=Za([`Pagination`,`bordered`],e=>lO(sO(e)),oO);function dO(e){return(0,v.useMemo)(()=>typeof e==`boolean`?[e,{}]:cc(e)?[!0,e]:[void 0,void 0],[e])}var fO=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}=Bb(l),[,_]=Ra(),{getPrefixCls:y,direction:b,showSizeChanger:x,className:S,style:C,classNames:w,styles:T,totalBoundaryShowSizeChanger:E}=Qe(`pagination`),D=y(`pagination`,n),[O,k]=cO(D),A=jd(s),j=A===`small`||!!(g&&!A&&l),M={...e,size:A},[N,P]=Oc([w,m],[T,p],{props:M}),[F]=tc(`Pagination`,Fs),I={...F,...c},[L,R]=dO(u),[z,B]=dO(x),V=L??z,H=R??B,U=d||Nb,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:J(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(qf,null):v.createElement(Ox,null)),nextIcon:v.createElement(`button`,{className:`${D}-item-link`,type:`button`,tabIndex:-1},b===`rtl`?v.createElement(Ox,null):v.createElement(qf,null)),jumpPrevIcon:v.createElement(`a`,{className:`${D}-item-link`},v.createElement(`div`,{className:`${D}-item-container`},b===`rtl`?v.createElement(VD,{className:`${D}-item-link-icon`}):v.createElement(RD,{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(RD,{className:`${D}-item-link-icon`}):v.createElement(VD,{className:`${D}-item-link-icon`}),e))}},[b,D]),ne=y(`select`,r),re=J({[`${D}-${t}`]:!!t,[`${D}-${A}`]:A,[`${D}-mini`]:j,[`${D}-rtl`]:b===`rtl`,[`${D}-bordered`]:_.wireframe},S,i,a,N.root,O,k),ie={...P.root,...C,...o};return v.createElement(v.Fragment,null,_.wireframe&&v.createElement(uO,{prefixCls:D}),v.createElement(ZD,{...te,...h,styles:P,classNames:N,style:ie,prefixCls:D,selectPrefixCls:ne,className:re,locale:I,pageSizeOptions:W,showSizeChanger:V,totalBoundaryShowSizeChanger:h.totalBoundaryShowSizeChanger??E,sizeChangerRender:ee}))},pO=100,mO=pO/5,hO=pO/2-mO/2,gO=hO*2*Math.PI,_O=50,vO=e=>{let{dotClassName:t,style:n,hasCircleCls:r}=e;return v.createElement(`circle`,{className:J(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:hO,cx:_O,cy:_O,strokeWidth:mO,style:n})},yO=({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:`${gO/4}`,strokeDasharray:`${gO*s/100} ${gO*(100-s)/100}`};return v.createElement(`span`,{className:J(r,`${n}-progress`,{[i]:s<=0})},v.createElement(`svg`,{viewBox:`0 0 ${pO} ${pO}`,role:`progressbar`,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":s},v.createElement(vO,{dotClassName:n,hasCircleCls:!0}),v.createElement(vO,{dotClassName:n,style:c})))};function bO(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:J(o,r,n>0&&s),style:i},v.createElement(`span`,{className:J(a,`${t}-dot-spin`)},[1,2,3,4].map(e=>v.createElement(`i`,{className:`${t}-dot-item`,key:e})))),v.createElement(yO,{prefixCls:t,percent:n}))}function xO(e){let{prefixCls:t,indicator:n,percent:r,className:i,style:a}=e,o=`${t}-dot`;return n&&v.isValidElement(n)?su(n,e=>({className:J(e.className,o,i),style:{...e.style,...a},percent:r})):v.createElement(bO,{prefixCls:t,percent:r,className:i,style:a})}var SO=new kr(`antSpinMove`,{to:{opacity:1}}),CO=new kr(`antRotate`,{to:{transform:`rotate(405deg)`}}),wO=e=>{let{componentCls:t}=e,n=`${t}-section`;return{[t]:{...Ba(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}}}}}},TO=e=>{let{componentCls:t,antCls:n,motionDurationSlow:r}=e,[i,a]=Qa(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:CO,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:SO,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}}}}},EO=e=>{let{componentCls:t}=e,[n]=Qa(e.antCls,`spin`);return{[t]:{"&-sm":{[n(`dot-holder-size`)]:e.dotSizeSM},"&-lg":{[n(`dot-holder-size`)]:e.dotSizeLG}}}},DO=Ya(`Spin`,e=>{let t=ci(e,{spinDotDefault:e.colorTextDescription});return[wO(t),TO(t),EO(t)]},e=>{let{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}}),OO=200,kO=[[30,.05],[70,.03],[96,.01]];function AO(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<kO.length;n+=1){let[r,i]=kO[n];if(e<=r)return e+t*i}return e})},OO)),()=>{i.current&&=(clearInterval(i.current),null)}),[a,e]),a?n:t}var jO;function MO(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}var NO=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}=Qe(`spin`),E=y(`spin`,t),[D,O]=DO(E),[k,A]=v.useState(()=>n&&!MO(n,r)),j=AO(k,m);v.useEffect(()=>{if(n){let e=RT(r,()=>{A(!0)});return e(),()=>{e?.cancel?.()}}A(!1)},[r,n]);let M=jd(e=>o??e),N=c??s,P={...e,size:M,spinning:k,tip:N,description:N,fullscreen:f,children:d,percent:j},[F,I]=Oc([w,h],[T,g],{props:P}),L=p??x??jO,R=d!==void 0,z=R||f,B=v.createElement(v.Fragment,null,v.createElement(xO,{className:J(F.indicator),style:I.indicator,prefixCls:E,indicator:L,percent:j}),N&&v.createElement(`div`,{className:J(`${E}-description`,F.tip,F.description),style:{...I.tip,...I.description}},N));return v.createElement(`div`,{className:J(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:J(`${E}-section`,F.section),style:I.section},B):B),R&&v.createElement(`div`,{className:J(`${E}-container`,F.container),style:I.container},d))};NO.setDefaultIndicator=e=>{jO=e};var PO=v.createContext({});PO.Consumer;var FO=({prefixCls:e,className:t,avatar:n,title:r,description:i,...a})=>{let{getPrefixCls:o}=(0,v.useContext)(Ye),s=o(`list`,e),c=J(`${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)},IO=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)(PO),{getPrefixCls:p,list:m}=(0,v.useContext)(Ye),h=e=>J(m?.item?.classNames?.[e],c?.[e]),g=e=>({...m?.item?.styles?.[e],...o?.[e]}),_=()=>{let e=fe(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:J(`${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:J(`${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:J(`${b}-item-extra`,h(`extra`)),key:`extra`,style:g(`extra`)},a)]:[r,x,su(a,{key:`extra`})]);return d?v.createElement(VT,{ref:t,flex:1,style:l},C):C});IO.Meta=FO;var LO=e=>{let{listBorderedCls:t,componentCls:n,paddingLG:r,margin:i,itemPaddingSM:a,itemPaddingLG:o,marginLG:s,borderRadiusLG:c}=e,l=Y(e.calc(c).sub(e.lineWidth).equal());return{[t]:{border:`${Y(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:`${Y(i)} ${Y(s)}`}},[`${t}${n}-sm`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:a}},[`${t}${n}-lg`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:o}}}},RO=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 ${Y(o)}`}}}}}},zO=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]:{...Ba(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 ${Y(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 ${Y(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:`${Y(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 ${Y(s)}`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${Y(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:`none`}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${Y(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${Y(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:`${Y(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`}}}}},BO=Ya(`List`,e=>{let t=ci(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG});return[zO(t),LO(t),RO(t)]},e=>({contentWidth:220,itemPadding:`${Y(e.paddingContentVertical)} 0`,itemPaddingSM:`${Y(e.paddingContentVerticalSM)} ${Y(e.paddingContentHorizontal)}`,itemPaddingLG:`${Y(e.paddingContentVerticalLG)} ${Y(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`]}),VO=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=cc(n)?n:{},[w,T]=v.useState(C.defaultCurrent||1),[E,D]=v.useState(C.defaultPageSize||10),{getPrefixCls:O,direction:k,className:A,style:j}=Qe(`list`),{renderEmpty:M}=v.useContext(Ye),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]=BO(z),H=_;typeof H==`boolean`&&(H={spinning:H});let U=!!H?.spinning,W=jd(m),ee=``;switch(W){case`large`:ee=`lg`;break;case`small`:ee=`sm`;break;default:break}let te=J(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),ne=`${z}-container`,re=ic(N,{total:p.length,current:w,pageSize:E},n||{}),ie=Math.ceil(re.total/re.pageSize);re.current=Math.min(re.current,ie);let ae=n&&v.createElement(`div`,{className:J(`${z}-pagination`)},v.createElement(fO,{align:`end`,...re,onChange:F,onShowSizeChange:I})),G=Be(p);n&&p.length>(re.current-1)*re.pageSize&&(G=Be(p).splice((re.current-1)*re.pageSize,re.pageSize));let K=Bb(Object.keys(f||{}).some(e=>Fb.includes(e))),oe=v.useMemo(()=>{for(let e=0;e<Fb.length;e+=1){let t=Fb[e];if(K[t])return t}},[K]),se=v.useMemo(()=>{if(!f)return;let e=oe&&f[oe]?f[oe]:f.column;if(e)return{width:`${100/e}%`,maxWidth:`${100/e}%`}},[JSON.stringify(f),oe]),ce=U&&v.createElement(`div`,{style:{minHeight:53}});if(G.length>0){let e=G.map(L);ce=f?v.createElement(WT,{className:J(ne,V),gutter:f.gutter},v.Children.map(e,e=>v.createElement(`div`,{key:e?.key,style:se},e))):v.createElement(`ul`,{className:J(`${z}-items`,ne,V)},e)}else !l&&!U&&(ce=v.createElement(`div`,{className:`${z}-empty-text`},x?.emptyText||M?.(`List`)||v.createElement(ib,{componentName:`List`})));let q=re.position,le=v.useMemo(()=>({grid:f,itemLayout:u}),[JSON.stringify(f),u]);return v.createElement(PO.Provider,{value:le},v.createElement(`div`,{ref:t,style:{...j,...c},className:te,...S},(q===`top`||q===`both`)&&ae,h&&v.createElement(`div`,{className:`${z}-header`},h),v.createElement(NO,{...H},ce,l),g&&v.createElement(`div`,{className:`${z}-footer`},g),d||(q===`bottom`||q===`both`)&&ae))});VO.Item=IO;var HO=(e,t={})=>!ac(e)&&t?.skipEmpty?[]:Array.isArray(e)?e:[e],UO=Y_(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(Ye),{className:p,style:m,classNames:h,styles:g}=Qe(`modal`),_=f(),y=t||f(`modal`),b=Xc(_),[x,S]=Jg(y,b),[C,w]=Oc([h,l],[g,u],{props:e}),T=`${y}-confirm`,E={};return E=a?{closable:i??!1,title:``,footer:``,children:v.createElement($g,{...e,prefixCls:y,confirmPrefixCls:T,rootPrefixCls:_,content:s})}:{closable:i??!0,title:o,footer:c!==null&&v.createElement(Ag,{...e}),children:s},v.createElement(Gp,{prefixCls:y,className:J(x,`${y}-pure-panel`,a&&T,a&&`${T}-${a}`,n,p,S,b,C.root),style:{...m,...w.root},...d,closeIcon:kg(y,r),closable:i,classNames:C,styles:w,...E})});function WO(e){return o_(s_(e))}var GO=Xg;GO.useModal=g_,GO.info=function(e){return o_(c_(e))},GO.success=function(e){return o_(l_(e))},GO.error=function(e){return o_(u_(e))},GO.warning=WO,GO.warn=WO,GO.confirm=function(e){return o_(d_(e))},GO.destroyAll=function(){for(;n_.length;){let e=n_.pop();e&&e()}},GO.config=f_,GO._InternalPanelDoNotUseOrYouWillBeFired=UO;var KO=Ya(`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}),qO=e=>{let{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:i,description:a,cancelText:o,okText:s,okType:c=`primary`,icon:l=v.createElement(Po,null),showCancel:u=!0,close:d,onConfirm:f,onCancel:p,onPopupClick:m,classNames:h,styles:g}=e,{getPrefixCls:_}=v.useContext(Ye),[y]=tc(`Popconfirm`,Js.Popconfirm),b=Vb(i),x=Vb(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:J(`${t}-title`,h?.title),style:g?.title},b),x&&v.createElement(`div`,{className:J(`${t}-description`,h?.content),style:g?.content},x))),v.createElement(`div`,{className:`${t}-buttons`},u&&v.createElement(vp,{onClick:p,size:`small`,...r},o||y?.cancelText),v.createElement(yp,{buttonProps:{size:`small`,...Hd(c),...n},actionFn:f,close:d,prefixCls:_(`btn`),quitOnNullishReturnValue:!0,emitEvent:!0},s||y?.okText)))},JO=e=>{let{prefixCls:t,placement:n,className:r,style:i,...a}=e,{getPrefixCls:o}=v.useContext(Ye),s=o(`popconfirm`,t);return KO(s),v.createElement(wx,{placement:n,className:J(s,r),style:i,content:v.createElement(qO,{prefixCls:s,...a})})},YO=v.forwardRef((e,t)=>{let{prefixCls:n,placement:r=`top`,trigger:i,okType:a=`primary`,icon:o=v.createElement(Po,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}=Qe(`popconfirm`),[C,w]=T(e.defaultOpen??!1,e.open),E=ox(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]=Oc([y,p],[b,d],{props:P}),L=J(N,g,c,F.root);return KO(N),v.createElement(Tx,{arrow:E,...de(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(qO,{okType:a,icon:o,...e,prefixCls:N,close:k,onConfirm:A,onCancel:j,classNames:F,styles:I}),"data-popover-inject":!0},s)});YO._InternalPanelDoNotUseOrYouWillBeFired=JO;var XO={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 ZO(){return ZO=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},ZO.apply(this,arguments)}var QO=v.forwardRef((e,t)=>v.createElement(Co,ZO({},e,{ref:t,icon:XO})));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(({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===X.LEFT?_(!1,e):e.which===X.RIGHT&&_(!0,e),u?.(e)}function b(e){let t=_(!h,e);c?.(t,e)}let x=J(e,t,{[`${e}-checked`]:h,[`${e}-disabled`]:i});return v.createElement(`button`,$O({},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:J(`${e}-inner-checked`,f?.content),style:d?.content},o),v.createElement(`span`,{className:J(`${e}-inner-unchecked`,f?.content),style:d?.content},s)))});ek.displayName=`Switch`;var tk=e=>{let{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:i,innerMinMarginSM:a,innerMaxMarginSM:o,handleSizeSM:s,calc:c}=e,l=`${t}-inner`,u=Y(c(s).add(c(r).mul(2)).equal()),d=Y(c(o).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:i,height:n,lineHeight:Y(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% - ${Y(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()}}}}}}},nk=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}}}},rk=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`,...Sf(),"&::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:`""`,...Sf()}},[`&${t}-checked ${s}`]:{insetInlineStart:`calc(100% - ${Y(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}}}}},ik=e=>{let{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:i,innerMaxMargin:a,handleSize:o,switchDuration:s,calc:c}=e,l=`${t}-inner`,u=Y(c(o).add(c(r).mul(2)).equal()),d=Y(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(`, `),...Sf(),[`${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(`, `),...Sf()},[`${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()}}}}}},ak=e=>{let{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:{...Ba(e),position:`relative`,display:`inline-block`,boxSizing:`border-box`,minWidth:r,height:n,lineHeight:Y(n),verticalAlign:`middle`,background:e.colorTextQuaternary,border:`0`,borderRadius:100,cursor:`pointer`,transition:`all ${e.motionDurationMid}`,userSelect:`none`,...Sf(),[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary},...Wa(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`}}}},ok=Ya(`Switch`,e=>{let t=ci(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[ak(t),ik(t),rk(t),nk(t),tk(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 Ai(`#00230b`).setA(.2).toRgbString()}`,innerMinMargin:s/2,innerMaxMargin:s+2+4,innerMinMarginSM:c/2,innerMaxMarginSM:c+2+4}}),sk=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}=Qe(`switch`),D=v.useContext(fu),O=(i??D)||a,k=b(`switch`,n),[A,j]=ok(k),M=jd(r),N={...e,size:M,disabled:O},[P,F]=Oc([w,h],[E,m],{props:N}),I=v.createElement(`div`,{className:J(`${k}-handle`,P.indicator),style:F.indicator},a&&v.createElement(Xu,{className:`${k}-loading-icon`})),L=J(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(Ad,{component:`Switch`,disabled:O},v.createElement(ek,{...g,classNames:P,styles:F,checked:_,onChange:z,prefixCls:k,className:L,style:R,disabled:O,ref:t,loadingIcon:I}))});sk.__ANT_SWITCH=!0;var ck=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]:{...Ba(e),display:`inline-block`,height:`auto`,paddingInline:o,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:`nowrap`,backgroundColor:e.defaultBg,border:`${Y(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}}}}},lk=e=>{let{lineWidth:t,fontSizeIcon:n,calc:r}=e,i=e.fontSizeSM;return ci(e,{tagFontSize:i,tagLineHeight:Y(r(e.lineHeightSM).mul(i).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},uk=e=>{let t=Xf(new Wf(e.colorBgSolid),`#fff`)?`#000`:`#fff`;return{defaultBg:new Ai(e.colorFillTertiary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText,solidTextColor:t}},dk=Ya(`Tag`,e=>ck(lk(e)),uk),fk=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(Ye),m=v.useContext(fu),h=u??m,g=e=>{h||(c?.(!a),l?.(e))},_=f(`tag`,n),[y,b]=dk(_),x=J(_,`${_}-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))}),pk=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}=Qe(`tag`),C=g(`tag`,r),w=`${C}-checkable-group`,[E,D]=dk(C,Xc(C)),[O,k]=Oc([x,s],[S,c],{props:e}),A=(0,v.useMemo)(()=>Array.isArray(u)?u.map(e=>cc(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(Be(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=Ps(h,{aria:!0,data:!0});return v.createElement(`div`,{...F,className:J(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(fk,{key:e.value,className:J(`${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 mk(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=px(n),c=mx(n),l={};if(!s&&!c&&o)if(a===`solid`)l.backgroundColor=n;else{let e=new Ai(o).toHsl();e.l=.95,l.backgroundColor=new Ai(e).toHexString(),l.color=n,a===`outlined`&&(l.borderColor=n)}return[a,o,s,c,l]},[n,r,i,t])}var hk=e=>$a(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}}})),gk=Za([`Tag`,`preset`],e=>hk(lk(e)),uk);function _k(e){return typeof e==`string`?e.charAt(0).toUpperCase()+e.slice(1):e}var vk=(e,t,n)=>{let r=_k(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}`]}}}},yk=Za([`Tag`,`status`],e=>{let t=lk(e);return[vk(t,`success`,`Success`),vk(t,`processing`,`Info`),vk(t,`error`,`Error`),vk(t,`warning`,`Warning`)]},uk),bk=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}=Qe(`tag`),[E,D,O,k,A]=mk(e,S),j=O||k,M=v.useContext(fu),N=f??M,{tag:P}=v.useContext(Ye),[F,I]=v.useState(!0),L=de(_,[`closeIcon`,`closable`]),R={...e,color:D,variant:E,disabled:N},[z,B]=Oc([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]=dk(H),ee=J(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))},[,ne]=vc(fc(e),fc(P),{closable:!1,closeIconRender:e=>ou(e,v.createElement(`span`,{className:`${H}-close-icon`,onClick:te},e),e=>({onClick:t=>{e?.onClick?.(t),te(t)},className:J(e?.className,`${H}-close-icon`)}))}),re=typeof _.onClick==`function`||o&&o.type===`a`,ie=su(s,{className:J(v.isValidElement(s)?s.props?.className:void 0,z.icon),style:B.icon}),ae=ie?v.createElement(v.Fragment,null,ie,o&&v.createElement(`span`,{className:z.content,style:B.content},o)):o,G=p?`a`:`span`,K=v.createElement(G,{...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}:{}},ae,ne,O&&v.createElement(gk,{key:`preset`,prefixCls:H}),k&&v.createElement(yk,{key:`status`,prefixCls:H}));return re?v.createElement(Ad,{component:`Tag`},K):K});bk.CheckableTag=fk,bk.CheckableTagGroup=pk;var xk={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 Sk(){return Sk=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},Sk.apply(this,arguments)}var Ck=v.forwardRef((e,t)=>v.createElement(Co,Sk({},e,{ref:t,icon:xk}))),wk={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 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 Ek=v.forwardRef((e,t)=>v.createElement(Co,Tk({},e,{ref:t,icon:wk}))),Dk={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 Ok(){return Ok=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},Ok.apply(this,arguments)}var kk=v.forwardRef((e,t)=>v.createElement(Co,Ok({},e,{ref:t,icon:Dk}))),Ak=(e,t,n,r)=>{let{titleMarginBottom:i,fontWeightStrong:a}=r;return{marginBottom:i,color:n,fontWeight:a,fontSize:e,lineHeight:t}},jk=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:`${Y(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:{...pw(e),...XC(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow}),"&[disabled]":{...YC(e)},width:e.quickJumperInputWidth,height:r(`item-size-actual`),boxSizing:`border-box`,margin:0,marginInlineStart:r(`item-spacing-actual`),marginInlineEnd:r(`item-spacing-actual`)}}}}},oO=e=>{let{componentCls:t,antCls:n}=e,[,r]=Qa(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:Y(e.calc(r(`item-size-actual`)).sub(2).equal()),textAlign:`center`,verticalAlign:`middle`,listStyle:`none`,backgroundColor:e.itemBg,border:`${Y(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:`pointer`,userSelect:`none`,a:{display:`block`,padding:`0 ${Y(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}}}}},sO=e=>{let{componentCls:t,antCls:n}=e,[r,i]=Qa(n,`pagination`);return{[t]:{[r(`item-size-actual`)]:Y(e.itemSize),[r(`item-spacing-actual`)]:Y(e.marginXS),"&-small":{[r(`item-size-actual`)]:Y(e.itemSizeSM),[r(`item-spacing-actual`)]:Y(e.marginXXS)},"&-large":{[r(`item-size-actual`)]:Y(e.itemSizeLG),[r(`item-spacing-actual`)]:Y(e.marginSM)},...Ba(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:Y(e.calc(i(`item-size-actual`)).sub(2).equal()),verticalAlign:`middle`},...oO(e),...aO(e),...iO(e),...nO(e),...rO(e),...tO(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`}}},cO=e=>{let{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:{...Wa(e)},[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0},...Ua(e)}},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Ua(e)}}}},lO=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,...qC(e)}),uO=e=>ci(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`},KC(e)),dO=Ya(`Pagination`,e=>{let t=uO(e);return[sO(t),cO(t)]},lO),fO=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:`${Y(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}}}}},pO=Za([`Pagination`,`bordered`],e=>fO(uO(e)),lO);function mO(e){return(0,v.useMemo)(()=>typeof e==`boolean`?[e,{}]:cc(e)?[!0,e]:[void 0,void 0],[e])}var hO=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}=Bb(l),[,_]=Ra(),{getPrefixCls:y,direction:b,showSizeChanger:x,className:S,style:C,classNames:w,styles:T,totalBoundaryShowSizeChanger:E}=Qe(`pagination`),D=y(`pagination`,n),[O,k]=dO(D),A=jd(s),j=A===`small`||!!(g&&!A&&l),M={...e,size:A},[N,P]=Oc([w,m],[T,p],{props:M}),[F]=tc(`Pagination`,Fs),I={...F,...c},[L,R]=mO(u),[z,B]=mO(x),V=L??z,H=R??B,U=d||Nb,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:J(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(qf,null):v.createElement(jx,null)),nextIcon:v.createElement(`button`,{className:`${D}-item-link`,type:`button`,tabIndex:-1},b===`rtl`?v.createElement(jx,null):v.createElement(qf,null)),jumpPrevIcon:v.createElement(`a`,{className:`${D}-item-link`},v.createElement(`div`,{className:`${D}-item-container`},b===`rtl`?v.createElement(WD,{className:`${D}-item-link-icon`}):v.createElement(VD,{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(VD,{className:`${D}-item-link-icon`}):v.createElement(WD,{className:`${D}-item-link-icon`}),e))}},[b,D]),ne=y(`select`,r),re=J({[`${D}-${t}`]:!!t,[`${D}-${A}`]:A,[`${D}-mini`]:j,[`${D}-rtl`]:b===`rtl`,[`${D}-bordered`]:_.wireframe},S,i,a,N.root,O,k),ie={...P.root,...C,...o};return v.createElement(v.Fragment,null,_.wireframe&&v.createElement(pO,{prefixCls:D}),v.createElement(eO,{...te,...h,styles:P,classNames:N,style:ie,prefixCls:D,selectPrefixCls:ne,className:re,locale:I,pageSizeOptions:W,showSizeChanger:V,totalBoundaryShowSizeChanger:h.totalBoundaryShowSizeChanger??E,sizeChangerRender:ee}))},gO=100,_O=gO/5,vO=gO/2-_O/2,yO=vO*2*Math.PI,bO=50,xO=e=>{let{dotClassName:t,style:n,hasCircleCls:r}=e;return v.createElement(`circle`,{className:J(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:vO,cx:bO,cy:bO,strokeWidth:_O,style:n})},SO=({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:`${yO/4}`,strokeDasharray:`${yO*s/100} ${yO*(100-s)/100}`};return v.createElement(`span`,{className:J(r,`${n}-progress`,{[i]:s<=0})},v.createElement(`svg`,{viewBox:`0 0 ${gO} ${gO}`,role:`progressbar`,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":s},v.createElement(xO,{dotClassName:n,hasCircleCls:!0}),v.createElement(xO,{dotClassName:n,style:c})))};function CO(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:J(o,r,n>0&&s),style:i},v.createElement(`span`,{className:J(a,`${t}-dot-spin`)},[1,2,3,4].map(e=>v.createElement(`i`,{className:`${t}-dot-item`,key:e})))),v.createElement(SO,{prefixCls:t,percent:n}))}function wO(e){let{prefixCls:t,indicator:n,percent:r,className:i,style:a}=e,o=`${t}-dot`;return n&&v.isValidElement(n)?su(n,e=>({className:J(e.className,o,i),style:{...e.style,...a},percent:r})):v.createElement(CO,{prefixCls:t,percent:r,className:i,style:a})}var TO=new kr(`antSpinMove`,{to:{opacity:1}}),EO=new kr(`antRotate`,{to:{transform:`rotate(405deg)`}}),DO=e=>{let{componentCls:t}=e,n=`${t}-section`;return{[t]:{...Ba(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}}}}}},OO=e=>{let{componentCls:t,antCls:n,motionDurationSlow:r}=e,[i,a]=Qa(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:EO,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:TO,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}}}}},kO=e=>{let{componentCls:t}=e,[n]=Qa(e.antCls,`spin`);return{[t]:{"&-sm":{[n(`dot-holder-size`)]:e.dotSizeSM},"&-lg":{[n(`dot-holder-size`)]:e.dotSizeLG}}}},AO=Ya(`Spin`,e=>{let t=ci(e,{spinDotDefault:e.colorTextDescription});return[DO(t),OO(t),kO(t)]},e=>{let{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}}),jO=200,MO=[[30,.05],[70,.03],[96,.01]];function NO(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<MO.length;n+=1){let[r,i]=MO[n];if(e<=r)return e+t*i}return e})},jO)),()=>{i.current&&=(clearInterval(i.current),null)}),[a,e]),a?n:t}var PO;function FO(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}var IO=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}=Qe(`spin`),E=y(`spin`,t),[D,O]=AO(E),[k,A]=v.useState(()=>n&&!FO(n,r)),j=NO(k,m);v.useEffect(()=>{if(n){let e=VT(r,()=>{A(!0)});return e(),()=>{e?.cancel?.()}}A(!1)},[r,n]);let M=jd(e=>o??e),N=c??s,P={...e,size:M,spinning:k,tip:N,description:N,fullscreen:f,children:d,percent:j},[F,I]=Oc([w,h],[T,g],{props:P}),L=p??x??PO,R=d!==void 0,z=R||f,B=v.createElement(v.Fragment,null,v.createElement(wO,{className:J(F.indicator),style:I.indicator,prefixCls:E,indicator:L,percent:j}),N&&v.createElement(`div`,{className:J(`${E}-description`,F.tip,F.description),style:{...I.tip,...I.description}},N));return v.createElement(`div`,{className:J(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:J(`${E}-section`,F.section),style:I.section},B):B),R&&v.createElement(`div`,{className:J(`${E}-container`,F.container),style:I.container},d))};IO.setDefaultIndicator=e=>{PO=e};var LO=v.createContext({});LO.Consumer;var RO=({prefixCls:e,className:t,avatar:n,title:r,description:i,...a})=>{let{getPrefixCls:o}=(0,v.useContext)(Ye),s=o(`list`,e),c=J(`${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)},zO=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)(LO),{getPrefixCls:p,list:m}=(0,v.useContext)(Ye),h=e=>J(m?.item?.classNames?.[e],c?.[e]),g=e=>({...m?.item?.styles?.[e],...o?.[e]}),_=()=>{let e=fe(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:J(`${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:J(`${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:J(`${b}-item-extra`,h(`extra`)),key:`extra`,style:g(`extra`)},a)]:[r,x,su(a,{key:`extra`})]);return d?v.createElement(WT,{ref:t,flex:1,style:l},C):C});zO.Meta=RO;var BO=e=>{let{listBorderedCls:t,componentCls:n,paddingLG:r,margin:i,itemPaddingSM:a,itemPaddingLG:o,marginLG:s,borderRadiusLG:c}=e,l=Y(e.calc(c).sub(e.lineWidth).equal());return{[t]:{border:`${Y(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:`${Y(i)} ${Y(s)}`}},[`${t}${n}-sm`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:a}},[`${t}${n}-lg`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:o}}}},VO=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 ${Y(o)}`}}}}}},HO=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]:{...Ba(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 ${Y(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 ${Y(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:`${Y(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 ${Y(s)}`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${Y(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:`none`}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${Y(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${Y(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:`${Y(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`}}}}},UO=Ya(`List`,e=>{let t=ci(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG});return[HO(t),BO(t),VO(t)]},e=>({contentWidth:220,itemPadding:`${Y(e.paddingContentVertical)} 0`,itemPaddingSM:`${Y(e.paddingContentVerticalSM)} ${Y(e.paddingContentHorizontal)}`,itemPaddingLG:`${Y(e.paddingContentVerticalLG)} ${Y(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`]}),WO=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=cc(n)?n:{},[w,T]=v.useState(C.defaultCurrent||1),[E,D]=v.useState(C.defaultPageSize||10),{getPrefixCls:O,direction:k,className:A,style:j}=Qe(`list`),{renderEmpty:M}=v.useContext(Ye),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]=UO(z),H=_;typeof H==`boolean`&&(H={spinning:H});let U=!!H?.spinning,W=jd(m),ee=``;switch(W){case`large`:ee=`lg`;break;case`small`:ee=`sm`;break;default:break}let te=J(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),ne=`${z}-container`,re=ic(N,{total:p.length,current:w,pageSize:E},n||{}),ie=Math.ceil(re.total/re.pageSize);re.current=Math.min(re.current,ie);let ae=n&&v.createElement(`div`,{className:J(`${z}-pagination`)},v.createElement(hO,{align:`end`,...re,onChange:F,onShowSizeChange:I})),G=Be(p);n&&p.length>(re.current-1)*re.pageSize&&(G=Be(p).splice((re.current-1)*re.pageSize,re.pageSize));let K=Bb(Object.keys(f||{}).some(e=>Fb.includes(e))),oe=v.useMemo(()=>{for(let e=0;e<Fb.length;e+=1){let t=Fb[e];if(K[t])return t}},[K]),se=v.useMemo(()=>{if(!f)return;let e=oe&&f[oe]?f[oe]:f.column;if(e)return{width:`${100/e}%`,maxWidth:`${100/e}%`}},[JSON.stringify(f),oe]),ce=U&&v.createElement(`div`,{style:{minHeight:53}});if(G.length>0){let e=G.map(L);ce=f?v.createElement(qT,{className:J(ne,V),gutter:f.gutter},v.Children.map(e,e=>v.createElement(`div`,{key:e?.key,style:se},e))):v.createElement(`ul`,{className:J(`${z}-items`,ne,V)},e)}else !l&&!U&&(ce=v.createElement(`div`,{className:`${z}-empty-text`},x?.emptyText||M?.(`List`)||v.createElement(ib,{componentName:`List`})));let q=re.position,le=v.useMemo(()=>({grid:f,itemLayout:u}),[JSON.stringify(f),u]);return v.createElement(LO.Provider,{value:le},v.createElement(`div`,{ref:t,style:{...j,...c},className:te,...S},(q===`top`||q===`both`)&&ae,h&&v.createElement(`div`,{className:`${z}-header`},h),v.createElement(IO,{...H},ce,l),g&&v.createElement(`div`,{className:`${z}-footer`},g),d||(q===`bottom`||q===`both`)&&ae))});WO.Item=zO;var GO=(e,t={})=>!ac(e)&&t?.skipEmpty?[]:Array.isArray(e)?e:[e],KO=Y_(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(Ye),{className:p,style:m,classNames:h,styles:g}=Qe(`modal`),_=f(),y=t||f(`modal`),b=Xc(_),[x,S]=Jg(y,b),[C,w]=Oc([h,l],[g,u],{props:e}),T=`${y}-confirm`,E={};return E=a?{closable:i??!1,title:``,footer:``,children:v.createElement($g,{...e,prefixCls:y,confirmPrefixCls:T,rootPrefixCls:_,content:s})}:{closable:i??!0,title:o,footer:c!==null&&v.createElement(Ag,{...e}),children:s},v.createElement(Gp,{prefixCls:y,className:J(x,`${y}-pure-panel`,a&&T,a&&`${T}-${a}`,n,p,S,b,C.root),style:{...m,...w.root},...d,closeIcon:kg(y,r),closable:i,classNames:C,styles:w,...E})});function qO(e){return o_(s_(e))}var JO=Xg;JO.useModal=g_,JO.info=function(e){return o_(c_(e))},JO.success=function(e){return o_(l_(e))},JO.error=function(e){return o_(u_(e))},JO.warning=qO,JO.warn=qO,JO.confirm=function(e){return o_(d_(e))},JO.destroyAll=function(){for(;n_.length;){let e=n_.pop();e&&e()}},JO.config=f_,JO._InternalPanelDoNotUseOrYouWillBeFired=KO;var YO=Ya(`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}),XO=e=>{let{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:i,description:a,cancelText:o,okText:s,okType:c=`primary`,icon:l=v.createElement(Po,null),showCancel:u=!0,close:d,onConfirm:f,onCancel:p,onPopupClick:m,classNames:h,styles:g}=e,{getPrefixCls:_}=v.useContext(Ye),[y]=tc(`Popconfirm`,Js.Popconfirm),b=Vb(i),x=Vb(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:J(`${t}-title`,h?.title),style:g?.title},b),x&&v.createElement(`div`,{className:J(`${t}-description`,h?.content),style:g?.content},x))),v.createElement(`div`,{className:`${t}-buttons`},u&&v.createElement(vp,{onClick:p,size:`small`,...r},o||y?.cancelText),v.createElement(yp,{buttonProps:{size:`small`,...Hd(c),...n},actionFn:f,close:d,prefixCls:_(`btn`),quitOnNullishReturnValue:!0,emitEvent:!0},s||y?.okText)))},ZO=e=>{let{prefixCls:t,placement:n,className:r,style:i,...a}=e,{getPrefixCls:o}=v.useContext(Ye),s=o(`popconfirm`,t);return YO(s),v.createElement(wx,{placement:n,className:J(s,r),style:i,content:v.createElement(XO,{prefixCls:s,...a})})},QO=v.forwardRef((e,t)=>{let{prefixCls:n,placement:r=`top`,trigger:i,okType:a=`primary`,icon:o=v.createElement(Po,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}=Qe(`popconfirm`),[C,w]=T(e.defaultOpen??!1,e.open),E=ox(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]=Oc([y,p],[b,d],{props:P}),L=J(N,g,c,F.root);return YO(N),v.createElement(Tx,{arrow:E,...de(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(XO,{okType:a,icon:o,...e,prefixCls:N,close:k,onConfirm:A,onCancel:j,classNames:F,styles:I}),"data-popover-inject":!0},s)});QO._InternalPanelDoNotUseOrYouWillBeFired=ZO;var $O={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 ek(){return ek=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},ek.apply(this,arguments)}var tk=v.forwardRef((e,t)=>v.createElement(Co,ek({},e,{ref:t,icon:$O})));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 rk=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===X.LEFT?_(!1,e):e.which===X.RIGHT&&_(!0,e),u?.(e)}function b(e){let t=_(!h,e);c?.(t,e)}let x=J(e,t,{[`${e}-checked`]:h,[`${e}-disabled`]:i});return v.createElement(`button`,nk({},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:J(`${e}-inner-checked`,f?.content),style:d?.content},o),v.createElement(`span`,{className:J(`${e}-inner-unchecked`,f?.content),style:d?.content},s)))});rk.displayName=`Switch`;var ik=e=>{let{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:i,innerMinMarginSM:a,innerMaxMarginSM:o,handleSizeSM:s,calc:c}=e,l=`${t}-inner`,u=Y(c(s).add(c(r).mul(2)).equal()),d=Y(c(o).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:i,height:n,lineHeight:Y(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% - ${Y(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()}}}}}}},ak=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}}}},ok=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`,...Sf(),"&::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:`""`,...Sf()}},[`&${t}-checked ${s}`]:{insetInlineStart:`calc(100% - ${Y(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}}}}},sk=e=>{let{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:i,innerMaxMargin:a,handleSize:o,switchDuration:s,calc:c}=e,l=`${t}-inner`,u=Y(c(o).add(c(r).mul(2)).equal()),d=Y(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(`, `),...Sf(),[`${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(`, `),...Sf()},[`${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()}}}}}},ck=e=>{let{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:{...Ba(e),position:`relative`,display:`inline-block`,boxSizing:`border-box`,minWidth:r,height:n,lineHeight:Y(n),verticalAlign:`middle`,background:e.colorTextQuaternary,border:`0`,borderRadius:100,cursor:`pointer`,transition:`all ${e.motionDurationMid}`,userSelect:`none`,...Sf(),[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary},...Wa(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`}}}},lk=Ya(`Switch`,e=>{let t=ci(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[ck(t),sk(t),ok(t),ak(t),ik(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 Ai(`#00230b`).setA(.2).toRgbString()}`,innerMinMargin:s/2,innerMaxMargin:s+2+4,innerMinMarginSM:c/2,innerMaxMarginSM:c+2+4}}),uk=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}=Qe(`switch`),D=v.useContext(fu),O=(i??D)||a,k=b(`switch`,n),[A,j]=lk(k),M=jd(r),N={...e,size:M,disabled:O},[P,F]=Oc([w,h],[E,m],{props:N}),I=v.createElement(`div`,{className:J(`${k}-handle`,P.indicator),style:F.indicator},a&&v.createElement(Xu,{className:`${k}-loading-icon`})),L=J(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(Ad,{component:`Switch`,disabled:O},v.createElement(rk,{...g,classNames:P,styles:F,checked:_,onChange:z,prefixCls:k,className:L,style:R,disabled:O,ref:t,loadingIcon:I}))});uk.__ANT_SWITCH=!0;var dk=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]:{...Ba(e),display:`inline-block`,height:`auto`,paddingInline:o,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:`nowrap`,backgroundColor:e.defaultBg,border:`${Y(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}}}}},fk=e=>{let{lineWidth:t,fontSizeIcon:n,calc:r}=e,i=e.fontSizeSM;return ci(e,{tagFontSize:i,tagLineHeight:Y(r(e.lineHeightSM).mul(i).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},pk=e=>{let t=Xf(new Wf(e.colorBgSolid),`#fff`)?`#000`:`#fff`;return{defaultBg:new Ai(e.colorFillTertiary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText,solidTextColor:t}},mk=Ya(`Tag`,e=>dk(fk(e)),pk),hk=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(Ye),m=v.useContext(fu),h=u??m,g=e=>{h||(c?.(!a),l?.(e))},_=f(`tag`,n),[y,b]=mk(_),x=J(_,`${_}-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))}),gk=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}=Qe(`tag`),C=g(`tag`,r),w=`${C}-checkable-group`,[E,D]=mk(C,Xc(C)),[O,k]=Oc([x,s],[S,c],{props:e}),A=(0,v.useMemo)(()=>Array.isArray(u)?u.map(e=>cc(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(Be(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=Ps(h,{aria:!0,data:!0});return v.createElement(`div`,{...F,className:J(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(hk,{key:e.value,className:J(`${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 _k(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=px(n),c=mx(n),l={};if(!s&&!c&&o)if(a===`solid`)l.backgroundColor=n;else{let e=new Ai(o).toHsl();e.l=.95,l.backgroundColor=new Ai(e).toHexString(),l.color=n,a===`outlined`&&(l.borderColor=n)}return[a,o,s,c,l]},[n,r,i,t])}var vk=e=>$a(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}}})),yk=Za([`Tag`,`preset`],e=>vk(fk(e)),pk);function bk(e){return typeof e==`string`?e.charAt(0).toUpperCase()+e.slice(1):e}var xk=(e,t,n)=>{let r=bk(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}`]}}}},Sk=Za([`Tag`,`status`],e=>{let t=fk(e);return[xk(t,`success`,`Success`),xk(t,`processing`,`Info`),xk(t,`error`,`Error`),xk(t,`warning`,`Warning`)]},pk),Ck=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}=Qe(`tag`),[E,D,O,k,A]=_k(e,S),j=O||k,M=v.useContext(fu),N=f??M,{tag:P}=v.useContext(Ye),[F,I]=v.useState(!0),L=de(_,[`closeIcon`,`closable`]),R={...e,color:D,variant:E,disabled:N},[z,B]=Oc([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]=mk(H),ee=J(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))},[,ne]=vc(fc(e),fc(P),{closable:!1,closeIconRender:e=>ou(e,v.createElement(`span`,{className:`${H}-close-icon`,onClick:te},e),e=>({onClick:t=>{e?.onClick?.(t),te(t)},className:J(e?.className,`${H}-close-icon`)}))}),re=typeof _.onClick==`function`||o&&o.type===`a`,ie=su(s,{className:J(v.isValidElement(s)?s.props?.className:void 0,z.icon),style:B.icon}),ae=ie?v.createElement(v.Fragment,null,ie,o&&v.createElement(`span`,{className:z.content,style:B.content},o)):o,G=p?`a`:`span`,K=v.createElement(G,{...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}:{}},ae,ne,O&&v.createElement(yk,{key:`preset`,prefixCls:H}),k&&v.createElement(Sk,{key:`status`,prefixCls:H}));return re?v.createElement(Ad,{component:`Tag`},K):K});Ck.CheckableTag=hk,Ck.CheckableTagGroup=gk;var wk={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 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 Ek=v.forwardRef((e,t)=>v.createElement(Co,Tk({},e,{ref:t,icon:wk}))),Dk={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 Ok(){return Ok=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},Ok.apply(this,arguments)}var kk=v.forwardRef((e,t)=>v.createElement(Co,Ok({},e,{ref:t,icon:Dk}))),Ak={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 jk(){return jk=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},jk.apply(this,arguments)}var Mk=v.forwardRef((e,t)=>v.createElement(Co,jk({},e,{ref:t,icon:Ak}))),Nk=(e,t,n,r)=>{let{titleMarginBottom:i,fontWeightStrong:a}=r;return{marginBottom:i,color:n,fontWeight:a,fontSize:e,lineHeight:t}},Pk=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
|
+
`]=Nk(e[`fontSizeHeading${t}`],e[`lineHeightHeading${t}`],e.colorTextHeading,e)}),n},Fk=e=>{let{componentCls:t}=e;return{[`&${`${t}-link`}`]:{...Ja(e),userSelect:`text`,[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:`not-allowed`,"&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:`none`,[`${t}-actions`]:{pointerEvents:`auto`}}}}}},Ik=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:qi[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}}),Lk=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`}}}},Rk=e=>({[`${e.componentCls}-copy-success`]:{"&, &:hover, &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),zk=()=>({"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`}}),Bk=Ya(`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`},...Pk(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}},...Ik(e),...Fk(e),[`${t}-actions`]:{display:`inline`},[`
|
|
254
254
|
${t}-expand,
|
|
255
255
|
${t}-collapse,
|
|
256
256
|
${t}-edit,
|
|
257
257
|
${t}-copy
|
|
258
|
-
`]:{...Ja(e),marginInlineStart:e.marginXXS},...Pk(e),...Fk(e),...Ik(),"&-rtl":{direction:`rtl`}}}},()=>({titleMarginTop:`1.2em`,titleMarginBottom:`0.5em`})),Rk=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(kk,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===X.ENTER?(w(),d?.()):e===X.ESC&&u())},E=()=>{w()},[D,O]=Lk(t),k=J(t,`${t}-edit-content`,{[`${t}-rtl`]:a===`rtl`,[`${t}-${f}`]:!!f},r,D,O);return v.createElement(`div`,{className:k,style:i},v.createElement(TD,{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:su(p,{className:`${t}-edit-content-confirm`}))},zk=(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})}},Bk=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 Vk(e,t){if(typeof e!=`string`)return!1;let n=t?.format===`text/html`;return!!(await Bk(e,n)||zk(e,n))}var Hk=({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 Vk((typeof e.text==`function`?await e.text():e.text)||HO(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 Uk(e,t){return v.useMemo(()=>{let n=!!e;return[n,{...t,...n&&typeof e==`object`?e:null}]},[e])}var Wk=e=>{let t=(0,v.useRef)(void 0);return(0,v.useEffect)(()=>{t.current=e}),t.current},Gk=(e,t,n)=>(0,v.useMemo)(()=>e===!0?{title:t??n}:(0,v.isValidElement)(e)?{title:e}:cc(e)?{title:t??n,...e}:{title:e},[e,t,n]),Kk=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}=Qe(`typography`),m=s??d,h=u(`typography`,n),[g,_]=Lk(h),y=J(h,f,{[`${h}-rtl`]:m===`rtl`},i,a,g,_),b={...p,...c};return v.createElement(r,{className:y,style:b,ref:t,...l},o)}),qk={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 Jk(){return Jk=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},Jk.apply(this,arguments)}var Yk=v.forwardRef((e,t)=>v.createElement(Co,Jk({},e,{ref:t,icon:qk}))),Xk=e=>e===!1?[!1,!1]:HO(e);function Zk(e,t,n){return e===!0||e===void 0?t:e||n&&t}function Qk(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 $k=e=>[`string`,`number`].includes(typeof e),eA=e=>{let{prefixCls:t,copied:n,locale:r,iconOnly:i,tooltips:a,icon:o,tabIndex:s,onCopy:c,loading:l}=e,u=Xk(a),d=Xk(o),{copied:f,copy:p}=r??{},m=n?f:p,h=Zk(u[+!!n],m),g=typeof h==`string`?h:m;return v.createElement(_x,{title:h},v.createElement(`button`,{type:`button`,className:J(`${t}-copy`,{[`${t}-copy-success`]:n,[`${t}-copy-icon-only`]:i}),onClick:c,"aria-label":g,tabIndex:s},n?Zk(d[1],v.createElement(Sb,null),!0):Zk(d[0],l?v.createElement(Xu,null):v.createElement(Yk,null),!0)))},tA=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)}),nA=e=>e.reduce((e,t)=>e+($k(t)?String(t).length:1),0);function rA(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=$k(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 iA=0,aA=1,oA=2,sA=3,cA=4,lA={display:`-webkit-box`,overflow:`hidden`,WebkitBoxOrient:`vertical`};function uA(e){let{enableMeasure:t,width:n,text:r,children:i,rows:a,expanded:o,miscDeps:s,onEllipsis:c}=e,l=v.useMemo(()=>fe(r),[r]),u=v.useMemo(()=>nA(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(iA),[T,E]=v.useState(0),[D,O]=v.useState(null);S(()=>{w(t&&n&&u?aA:iA)},[n,r,a,t,l]),S(()=>{if(C===aA)w(oA),O(h.current&&getComputedStyle(h.current).whiteSpace);else if(C===oA){let e=!!g.current?.isExceed();w(e?sA:cA),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!==sA||!f||f[0]!==f[1]){let e=i(l,!1);return[cA,iA].includes(C)?e:v.createElement(`span`,{style:{...lA,WebkitLineClamp:a}},e)}return i(o?l:rA(l,f[0]),b)},[o,C,f,l].concat(Be(s))),j={width:n,margin:0,padding:0,whiteSpace:D===`nowrap`?`normal`:`inherit`};return v.createElement(v.Fragment,null,A,C===oA&&v.createElement(v.Fragment,null,v.createElement(tA,{style:{...j,...lA,WebkitLineClamp:a},ref:g},d),v.createElement(tA,{style:{...j,...lA,WebkitLineClamp:a-1},ref:_},d),v.createElement(tA,{style:{...j,...lA,WebkitLineClamp:1},ref:y},i([],!0))),C===sA&&f&&f[0]!==f[1]&&v.createElement(tA,{style:{...j,top:400},ref:m},i(rA(l,k),!0)),C===aA&&v.createElement(`span`,{style:{whiteSpace:`inherit`},ref:h}))}var dA=({enableEllipsis:e,isEllipsis:t,open:n,children:r,tooltipProps:i})=>{if(!i?.title||!e)return r;let a=n&&t;return v.createElement(_x,{open:a,...i},r)};function fA({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 pA=`...`,mA=[`delete`,`mark`,`code`,`underline`,`strong`,`keyboard`,`italic`],hA=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(Ye),[y]=tc(`Text`),b=v.useRef(null),x=v.useRef(null),C=g(`typography`,n),w=de(h,mA),[E,D]=Uk(l),[O,k]=T(!1,D.editing),{triggerType:A=[`icon`]}=D,j=e=>{e&&D.onStart?.(),k(e)},M=Wk(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]=Uk(u),{copied:z,copyLoading:B,onClick:V}=Hk({copyConfig:R,children:s}),[H,U]=v.useState(!1),[W,ee]=v.useState(!1),[te,ne]=v.useState(!1),[re,ie]=v.useState(!1),[ae,G]=v.useState(!0),[K,oe]=Uk(c,{expandable:!1,symbol:e=>e?y?.collapse:y?.expand}),[se,ce]=T(oe.defaultExpanded||!1,oe.expanded),q=K&&(!se||oe.expandable===`collapsible`),{rows:le=1}=oe,ue=v.useMemo(()=>q&&(oe.suffix!==void 0||oe.onEllipsis||oe.expandable||E||L),[q,oe,E,L]);S(()=>{K&&!ue&&(U(Gh(`webkitLineClamp`)),ee(Gh(`textOverflow`)))},[ue,K]);let[pe,me]=v.useState(q),he=v.useMemo(()=>ue?!1:le===1?W:H,[ue,W,H]);S(()=>{me(he&&q)},[he,q]);let ge=Gk(oe.tooltip,D.text,s),_e=pe&&!!ge.title,ve=q&&(pe?_e&&re:te),ye=q&&le===1&&pe,be=q&&le>1&&pe,xe=(e,t)=>{ce(t.expanded),oe.onExpand?.(e,t)},[Se,Ce]=v.useState(0),[we,Te]=v.useState(!1),[Ee,De]=v.useState(!1),Oe=({offsetWidth:e})=>{Ce(e)},ke=e=>{ne(e),te!==e&&oe.onEllipsis?.(e)};v.useEffect(()=>{let e=b.current;if(K&&_e&&e){let t=Qk(e);re!==t&&ie(t)}},[K,_e,s,be,ae,Se]),v.useEffect(()=>{let e=b.current;if(typeof IntersectionObserver>`u`||!e||!_e||!q)return;let t=new IntersectionObserver(()=>{G(!!e.offsetParent)});return t.observe(e),()=>{t.disconnect()}},[_e,q]);let Ae=v.useMemo(()=>{if(!(!K||pe))return[D.text,s,f,ge.title].find($k)},[K,pe,f,ge.title,ve]);if(O)return v.createElement(Rk,{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 je=()=>{let{expandable:e,symbol:t}=oe;return e?v.createElement(`button`,{type:`button`,key:`expand`,className:`${C}-${se?`collapse`:`expand`}`,onClick:e=>xe(e,{expanded:!se}),"aria-label":se?y.collapse:y?.expand},typeof t==`function`?t(se):t):null},Me=()=>{if(!E)return;let{icon:e,tooltip:t,tabIndex:n}=D,r=fe(t)[0]||y?.edit,i=typeof r==`string`?r:``;return A.includes(`icon`)?v.createElement(_x,{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(Ek,{role:`button`}))):null},Pe=()=>L?v.createElement(eA,{key:`copy`,...R,prefixCls:C,copied:z,locale:y,onCopy:V,loading:B,iconOnly:!ac(s)}):null,Fe=e=>{let t=e&&je(),n=Me(),r=Pe();return!t&&!n&&!r?null:v.createElement(`span`,{key:`operations`,className:`${C}-actions`,onMouseEnter:()=>Te(!0),onMouseLeave:()=>Te(!1)},t,n,r)},Ie=e=>[e&&!se&&v.createElement(`span`,{"aria-hidden":!0,key:`ellipsis`},pA),oe.suffix,Fe(e)];return v.createElement(Ne,{onResize:Oe,disabled:!q},c=>v.createElement(dA,{tooltipProps:ge,enableEllipsis:q,isEllipsis:ve,open:Ee&&!we},v.createElement(Kk,{onMouseEnter:e=>{De(!0),p?.(e)},onMouseLeave:e=>{De(!1),m?.(e)},className:J({[`${C}-${a}`]:a,[`${C}-disabled`]:o,[`${C}-ellipsis`]:K,[`${C}-ellipsis-single-line`]:ye,[`${C}-ellipsis-multiple-line`]:be,[`${C}-link`]:d===`a`},r),prefixCls:n,style:{...i,WebkitLineClamp:be?le:void 0},component:d,ref:I(c,b,t),direction:_,onClick:A.includes(`text`)?N:void 0,"aria-label":Ae?.toString(),title:f,...w},v.createElement(uA,{enableMeasure:q&&!pe,text:s,rows:le,width:Se,onEllipsis:ke,expanded:se,miscDeps:[z,se,B,E,L,y].concat(Be(mA.map(t=>e[t])))},(t,n)=>fA(e,v.createElement(v.Fragment,null,t.length>0&&n&&!se&&Ae?v.createElement(`span`,{key:`show-content`,"aria-hidden":!0},t):t,Ie(n)))))))}),gA=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(hA,{...s,ref:t,ellipsis:!!n,component:`a`},i)}),_A=v.forwardRef((e,t)=>{let{children:n,...r}=e;return v.createElement(hA,{ref:t,...r,component:`div`},n)}),vA=v.forwardRef((e,t)=>{let{ellipsis:n,children:r,...i}=e,a=v.useMemo(()=>cc(n)?de(n,[`expandable`,`rows`]):n,[n]);return v.createElement(hA,{ref:t,...i,ellipsis:a,component:`span`},r)}),yA=[1,2,3,4,5],bA=v.forwardRef((e,t)=>{let{level:n=1,children:r,...i}=e,a=yA.includes(n)?`h${n}`:`h1`;return v.createElement(hA,{ref:t,...i,component:a},r)}),xA=Kk;xA.Text=vA,xA.Link=gA,xA.Title=bA,xA.Paragraph=_A;var SA={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 CA(){return CA=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},CA.apply(this,arguments)}var wA=v.forwardRef((e,t)=>v.createElement(Co,CA({},e,{ref:t,icon:SA}))),TA={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 EA(){return EA=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},EA.apply(this,arguments)}var DA=v.forwardRef((e,t)=>v.createElement(Co,EA({},e,{ref:t,icon:TA}))),OA={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 AA=v.forwardRef((e,t)=>v.createElement(Co,kA({},e,{ref:t,icon:OA}))),Z={shell:`_shell_17nrn_1`,sidebar:`_sidebar_17nrn_23`,threadRail:`_threadRail_17nrn_24`,reviewPane:`_reviewPane_17nrn_38`,brand:`_brand_17nrn_46`,brandMark:`_brandMark_17nrn_52`,brandCopy:`_brandCopy_17nrn_63`,repoName:`_repoName_17nrn_68`,productName:`_productName_17nrn_78`,sideCard:`_sideCard_17nrn_82`,fileRailHeader:`_fileRailHeader_17nrn_91`,threadRailHeader:`_threadRailHeader_17nrn_92`,topToolbar:`_topToolbar_17nrn_93`,threadRailTitle:`_threadRailTitle_17nrn_101`,fileList:`_fileList_17nrn_108`,fileItem:`_fileItem_17nrn_114`,fileItemActive:`_fileItemActive_17nrn_124`,fileMeta:`_fileMeta_17nrn_128`,fileName:`_fileName_17nrn_138`,fileStats:`_fileStats_17nrn_147`,fileStatAdd:`_fileStatAdd_17nrn_150`,fileStatDelete:`_fileStatDelete_17nrn_154`,viewModeSwitcher:`_viewModeSwitcher_17nrn_163`,reviewSurface:`_reviewSurface_17nrn_169`,fileHeader:`_fileHeader_17nrn_180`,headerTop:`_headerTop_17nrn_188`,headerIntro:`_headerIntro_17nrn_194`,eyebrow:`_eyebrow_17nrn_197`,headerActions:`_headerActions_17nrn_203`,threadActions:`_threadActions_17nrn_204`,threadCount:`_threadCount_17nrn_210`,fileLevelInlineThreads:`_fileLevelInlineThreads_17nrn_213`,inlineThreadHeader:`_inlineThreadHeader_17nrn_218`,inlineThreadBody:`_inlineThreadBody_17nrn_221`,inlineThreadActions:`_inlineThreadActions_17nrn_225`,diffCard:`_diffCard_17nrn_228`,markdownShell:`_markdownShell_17nrn_229`,hunk:`_hunk_17nrn_235`,hunkHeader:`_hunkHeader_17nrn_242`,diffRow:`_diffRow_17nrn_251`,splitTable:`_splitTable_17nrn_258`,splitHead:`_splitHead_17nrn_261`,splitRow:`_splitRow_17nrn_262`,splitCell:`_splitCell_17nrn_279`,add:`_add_17nrn_289`,remove:`_remove_17nrn_292`,emptyCell:`_emptyCell_17nrn_295`,lineNo:`_lineNo_17nrn_298`,lineSign:`_lineSign_17nrn_308`,signAdd:`_signAdd_17nrn_318`,signRemove:`_signRemove_17nrn_321`,codeLine:`_codeLine_17nrn_324`,commentTrigger:`_commentTrigger_17nrn_333`,markdownCommentBlock:`_markdownCommentBlock_17nrn_358`,composer:`_composer_17nrn_361`,popover:`_popover_17nrn_368`,ghost:`_ghost_17nrn_380`,markdownLoading:`_markdownLoading_17nrn_383`,deletedBanner:`_deletedBanner_17nrn_388`,markdownArticle:`_markdownArticle_17nrn_391`,markdownBody:`_markdownBody_17nrn_397`,markdownCommentContent:`_markdownCommentContent_17nrn_407`,markdownInlineCode:`_markdownInlineCode_17nrn_429`,markdownPre:`_markdownPre_17nrn_439`,markdownTableScroll:`_markdownTableScroll_17nrn_481`,mermaidDiagram:`_mermaidDiagram_17nrn_529`,mermaidLoading:`_mermaidLoading_17nrn_530`,mermaidFallback:`_mermaidFallback_17nrn_531`,mermaidError:`_mermaidError_17nrn_557`,threads:`_threads_17nrn_562`,threadScopeBar:`_threadScopeBar_17nrn_566`,threadScopeLabel:`_threadScopeLabel_17nrn_576`,threadScopeSwitchRow:`_threadScopeSwitchRow_17nrn_583`,threadScopeSwitchRowDisabled:`_threadScopeSwitchRowDisabled_17nrn_593`,threadScopeOption:`_threadScopeOption_17nrn_596`,threadScopeOptionActive:`_threadScopeOptionActive_17nrn_618`,threadScopeSwitch:`_threadScopeSwitch_17nrn_583`,threadListToolbar:`_threadListToolbar_17nrn_630`,threadFilterWrap:`_threadFilterWrap_17nrn_639`,threadFilterStack:`_threadFilterStack_17nrn_643`,threadBatchButton:`_threadBatchButton_17nrn_662`,threadRailBody:`_threadRailBody_17nrn_708`,thread:`_thread_17nrn_24`,threadLocateFlash:`_threadLocateFlash_17nrn_722`,threadTopButton:`_threadTopButton_17nrn_728`,threadTop:`_threadTop_17nrn_728`,threadAnchor:`_threadAnchor_17nrn_747`,threadTag:`_threadTag_17nrn_754`,threadTagResolved:`_threadTagResolved_17nrn_763`,threadTagSubmit:`_threadTagSubmit_17nrn_768`,threadTagReplied:`_threadTagReplied_17nrn_773`,threadBody:`_threadBody_17nrn_789`,threadComment:`_threadComment_17nrn_796`,threadAgentComment:`_threadAgentComment_17nrn_799`,threadCommentAuthor:`_threadCommentAuthor_17nrn_806`,threadReplyLabel:`_threadReplyLabel_17nrn_807`,threadReply:`_threadReply_17nrn_807`,threadReplyComposer:`_threadReplyComposer_17nrn_822`,replied:`_replied_17nrn_825`,resolved:`_resolved_17nrn_829`,inlineThreadStack:`_inlineThreadStack_17nrn_833`,inlineThread:`_inlineThread_17nrn_218`,inlineThreadSubmit:`_inlineThreadSubmit_17nrn_852`,inlineThreadReplied:`_inlineThreadReplied_17nrn_857`,inlineThreadResolved:`_inlineThreadResolved_17nrn_862`,inlineThreadSection:`_inlineThreadSection_17nrn_874`,inlineThreadSectionUser:`_inlineThreadSectionUser_17nrn_880`,inlineThreadAgentLabel:`_inlineThreadAgentLabel_17nrn_884`,inlineThreadCommentItem:`_inlineThreadCommentItem_17nrn_891`,inlineThreadCommentItemAgent:`_inlineThreadCommentItemAgent_17nrn_899`,inlineThreadCommentActions:`_inlineThreadCommentActions_17nrn_907`,threadIconBtn:`_threadIconBtn_17nrn_913`,commentRow:`_commentRow_17nrn_920`,commentContent:`_commentContent_17nrn_926`,inlineThreadComposer:`_inlineThreadComposer_17nrn_937`,inlineThreadEdit:`_inlineThreadEdit_17nrn_940`,inlineThreadEditActions:`_inlineThreadEditActions_17nrn_946`,headerAction:`_headerAction_17nrn_203`,threadActionBtn:`_threadActionBtn_17nrn_964`,threadEmpty:`_threadEmpty_17nrn_970`,threadListInlineBorderless:`_threadListInlineBorderless_17nrn_973`,emptyStateCard:`_emptyStateCard_17nrn_979`},jA=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=jA()}))();function MA({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:Z.composer,style:e,onSubmit:e=>{e.preventDefault(),a.trim()&&(c(!0),n(a.trim()).then(()=>o(``)).finally(()=>c(!1)))},children:[(0,Q.jsx)(ED.TextArea,{placeholder:t,value:a,onChange:e=>o(e.target.value),autoSize:{minRows:3,maxRows:8}}),(0,Q.jsxs)(GE,{gap:`small`,justify:`end`,children:[(0,Q.jsx)(HC,{htmlType:`submit`,loading:s,type:`primary`,size:`small`,children:r}),i?(0,Q.jsx)(HC,{onClick:i,size:`small`,children:`取消`}):null]})]})}function NA({onCancel:e,onSubmit:t}){return(0,Q.jsx)(`div`,{className:Z.popover,children:(0,Q.jsx)(MA,{placeholder:`请输入行内评论...`,submitLabel:`评论`,onSubmit:t,onCancel:e})})}var PA={submit:`待提交`,replied:`已回复`,resolved:`已解决`};function FA(e,t){return e.filePath===t.path&&e.fileSnapshotHash===t.snapshotHash}function IA(e){return e.status===`resolved`?`resolved`:LA(e)}function LA(e){return e.comments.some(e=>e.author===`agent`)?`replied`:`submit`}function RA(e){return e.length>0&&e.every(e=>IA(e)===`resolved`)?`resolved`:e.some(e=>LA(e)===`replied`)?`replied`:`submit`}function zA({threads:e,onFocus:t,onPatch:n,onDeleteThread:r,onReply:i,onPatchComment:a,onCopy:o,showStatusTag:s=!0}){let[c,l]=v.useState(null),[u,d]=v.useState(null),[f,p]=v.useState(``),m=e[0],h=RA(e),g=HA(e),_=g?IA(g):h,y=_===`resolved`,b=g?.comments.at(-1),x=UA(_,b?.author);return m?(0,Q.jsxs)(`div`,{className:`${Z.inlineThread} ${BA(h)}`,onClick:()=>t(m.id),children:[(0,Q.jsx)(`div`,{className:Z.inlineThreadHeader,children:s&&h!==`replied`?(0,Q.jsx)(bk,{className:`${Z.threadTag} ${VA(h)}`,children:PA[h]}):null}),e.map(e=>{let n=IA(e);return(0,Q.jsx)(`div`,{className:Z.inlineThreadSection,onClick:n=>{n.stopPropagation(),t(e.id)},children:e.comments.map(t=>{let r=t.author===`agent`,i=h===`submit`&&n===`submit`&&!r;return(0,Q.jsx)(`div`,{className:`${Z.inlineThreadCommentItem} ${r?Z.inlineThreadCommentItemAgent:``}`,children:(0,Q.jsxs)(`div`,{className:Z.commentRow,children:[(0,Q.jsxs)(`div`,{className:Z.commentContent,children:[r?(0,Q.jsx)(xA.Text,{className:Z.inlineThreadAgentLabel,strong:!0,children:`Agent`}):null,u===t.id?(0,Q.jsxs)(`div`,{className:Z.inlineThreadEdit,children:[(0,Q.jsx)(ED.TextArea,{value:f,autoSize:{minRows:3,maxRows:8},onClick:e=>e.stopPropagation(),onChange:e=>p(e.target.value)}),(0,Q.jsxs)(`div`,{className:Z.inlineThreadEditActions,children:[(0,Q.jsx)(HC,{size:`small`,onClick:e=>{e.stopPropagation(),d(null),p(``)},children:`取消`}),(0,Q.jsx)(HC,{size:`small`,type:`primary`,onClick:async n=>{n.stopPropagation(),await a(e.id,t.id,f),d(null),p(``)},children:`保存`})]})]}):(0,Q.jsx)(xA.Paragraph,{className:Z.inlineThreadBody,children:t.body})]}),i&&u!==t.id?(0,Q.jsx)(`div`,{className:Z.inlineThreadCommentActions,children:(0,Q.jsx)(HC,{className:Z.threadIconBtn,type:`text`,icon:(0,Q.jsx)(Ek,{}),onClick:e=>{e.stopPropagation(),d(t.id),p(t.body)}})}):null]})},t.id)})},e.id)}),g&&c===g.id?(0,Q.jsx)(`div`,{className:Z.inlineThreadComposer,children:(0,Q.jsx)(MA,{placeholder:`继续评论...`,submitLabel:`回复`,onCancel:()=>{l(null)},onSubmit:async e=>{await i(g.id,e),l(null)}})}):null,g?(0,Q.jsxs)(`div`,{className:Z.inlineThreadActions,children:[x?(0,Q.jsx)(HC,{type:`primary`,className:Z.threadActionBtn,icon:(0,Q.jsx)(Yk,{}),onClick:e=>{e.stopPropagation(),o({type:`thread`,threadId:g.id})},children:`复制`}):null,_===`replied`?(0,Q.jsx)(HC,{className:Z.threadActionBtn,icon:(0,Q.jsx)(AA,{}),onClick:e=>{e.stopPropagation(),l(g.id)},children:`要求再改`}):null,_===`replied`?null:(0,Q.jsx)(YO,{title:e.length>1?`删除这组评论?`:`删除这条评论线程?`,okText:`删除`,cancelText:`取消`,onConfirm:async()=>{for(let t of e)await r(t.id)},children:(0,Q.jsx)(HC,{className:Z.threadActionBtn,icon:(0,Q.jsx)(Ck,{}),danger:!0,onClick:e=>e.stopPropagation(),children:`删除`})}),y?(0,Q.jsx)(HC,{className:Z.threadActionBtn,icon:(0,Q.jsx)(QO,{}),onClick:e=>{e.stopPropagation(),n(g.id,`submit`)},children:`重新打开`}):null,_===`replied`?(0,Q.jsx)(HC,{className:Z.threadActionBtn,icon:(0,Q.jsx)(Sb,{}),onClick:e=>{e.stopPropagation(),n(g.id,`resolved`)},children:`确认完成`}):null]}):null]}):null}function BA(e){return e===`submit`?Z.inlineThreadSubmit:e===`replied`?Z.inlineThreadReplied:Z.inlineThreadResolved}function VA(e){return e===`submit`?Z.threadTagSubmit:e===`replied`?Z.threadTagReplied:Z.threadTagResolved}function HA(e){return e.find(e=>IA(e)===`replied`)??e.find(e=>IA(e)===`submit`)??e[0]}function UA(e,t){return e===`submit`?!0:e===`replied`&&t===`user`}function WA(e){return e.anchor.type===`file`?0:e.anchor.lineNumber}function GA(e,t){return t.filter(t=>t.filePath===e&&t.status!==`resolved`).sort((e,t)=>WA(e)-WA(t)||e.createdAt.localeCompare(t.createdAt))[0]}function KA(e){return e.anchor.type===`diff-line`?`${e.anchor.side}:${e.anchor.lineNumber}`:null}function qA(e){e.scrollTop=0}function JA(e,t){let n=e.getBoundingClientRect(),r=t.getBoundingClientRect();e.scrollTop+=r.top-n.top}function YA(e){return e===`add`?`+`:e===`remove`?`-`:``}function XA({file:e,threads:t,locateTarget:n,onCreate:r,onLocateThread:i,onPatchThread:a,onDeleteThread:o,onReplyThread:s,onPatchComment:c,onCopyThread:l,viewMode:u}){let[d,f]=v.useState(null),p=v.useRef(null),m=v.useRef(``);v.useEffect(()=>{let n=p.current;if(!n)return;let r=`${e.path}:${u}`;if(m.current===r)return;m.current=r;let i=GA(e.path,t);window.requestAnimationFrame(()=>{if(!i||i.anchor.type===`file`){qA(n);return}let e=KA(i),t=e?n.querySelector(`[data-review-anchor="${CSS.escape(e)}"]`):null;if(!t){qA(n);return}JA(n,t)})},[e.path,t,u]),v.useEffect(()=>{let t=p.current;if(!t||!n||n.anchor.filePath!==e.path)return;if(n.anchor.type===`file`){qA(t);return}if(n.anchor.type!==`diff-line`)return;let{side:r,lineNumber:i}=n.anchor,a=t.querySelector(`[data-review-anchor="${CSS.escape(`${r}:${i}`)}"]`);if(a){JA(t,a);return}let o=[...t.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===r).sort((e,t)=>Math.abs(e.lineNumber-i)-Math.abs(t.lineNumber-i));o[0]?JA(t,o[0].node):qA(t)},[e.path,n,u]);function h(e){return e.length===0?null:(0,Q.jsx)(`div`,{className:Z.inlineThreadStack,children:(0,Q.jsx)(zA,{threads:e,onFocus:i,onPatch:a,onDeleteThread:o,onReply:s,onPatchComment:c,onCopy:l})})}function g(n,i,a){let o=n.type===`remove`?`old`:`new`,s=o===`old`?n.oldLineNumber:n.newLineNumber,c=`${a}-${o}-${s}-${i}`,l=t.filter(t=>t.anchor.type===`diff-line`&&t.anchor.filePath===e.path&&t.anchor.side===o&&t.anchor.lineNumber===s);return(0,Q.jsxs)(`div`,{className:n.type===`add`?`${Z.diffRow} ${Z.add}`:n.type===`remove`?`${Z.diffRow} ${Z.remove}`:Z.diffRow,"data-review-anchor":`${o}:${s}`,children:[(0,Q.jsx)(`button`,{className:Z.lineNo,onClick:()=>n.oldLineNumber&&f(c),children:n.oldLineNumber??``}),(0,Q.jsx)(`button`,{className:Z.lineNo,onClick:()=>n.newLineNumber&&f(c),children:n.newLineNumber??``}),(0,Q.jsx)(`span`,{className:n.type===`add`?`${Z.lineSign} ${Z.signAdd}`:n.type===`remove`?`${Z.lineSign} ${Z.signRemove}`:Z.lineSign,children:YA(n.type)}),(0,Q.jsx)(`pre`,{className:Z.codeLine,children:n.content||` `}),s&&l.length===0?(0,Q.jsx)(`button`,{className:Z.commentTrigger,type:`button`,"aria-label":`添加行评论`,onClick:()=>f(c),children:(0,Q.jsx)(wA,{})}):null,d===c&&s?(0,Q.jsx)(NA,{onCancel:()=>f(null),onSubmit:async t=>{await r({type:`diff-line`,filePath:e.path,side:o,lineNumber:s},t),f(null)}}):null,h(l)]},c)}function _(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 y(n,i){let a=n.lineNumber?t.filter(t=>t.anchor.type===`diff-line`&&t.anchor.filePath===e.path&&t.anchor.side===n.side&&t.anchor.lineNumber===n.lineNumber):[],o=`${i}-${n.side}-${n.lineNumber??`empty`}`;return(0,Q.jsxs)(`div`,{className:n.type===`add`?`${Z.splitCell} ${Z.add}`:n.type===`remove`?`${Z.splitCell} ${Z.remove}`:n.type===`empty`?`${Z.splitCell} ${Z.emptyCell}`:Z.splitCell,"data-review-anchor":n.lineNumber?`${n.side}:${n.lineNumber}`:void 0,children:[(0,Q.jsx)(`button`,{className:Z.lineNo,onClick:()=>n.lineNumber&&f(o),children:n.lineNumber??``}),(0,Q.jsx)(`span`,{className:n.type===`add`?`${Z.lineSign} ${Z.signAdd}`:n.type===`remove`?`${Z.lineSign} ${Z.signRemove}`:Z.lineSign,children:YA(n.type)}),(0,Q.jsx)(`pre`,{className:Z.codeLine,children:n.content||` `}),n.lineNumber&&a.length===0?(0,Q.jsx)(`button`,{className:Z.commentTrigger,type:`button`,"aria-label":`添加行评论`,onClick:()=>f(o),children:(0,Q.jsx)(wA,{})}):null,d===o&&n.lineNumber?(0,Q.jsx)(NA,{onCancel:()=>f(null),onSubmit:async t=>{await r({type:`diff-line`,filePath:e.path,side:n.side,lineNumber:n.lineNumber},t),f(null)}}):null,h(a)]},o)}return(0,Q.jsx)(`div`,{className:Z.diffCard,ref:p,children:e.hunks.map(e=>(0,Q.jsxs)(`div`,{className:Z.hunk,children:[(0,Q.jsx)(`div`,{className:Z.hunkHeader,children:e.header}),u===`inline`?e.lines.map((t,n)=>g(t,n,e.header)):(0,Q.jsxs)(`div`,{className:Z.splitTable,children:[(0,Q.jsxs)(`div`,{className:Z.splitHead,children:[(0,Q.jsx)(`div`,{children:`Old`}),(0,Q.jsx)(`div`,{children:`New`})]}),_(e).map(e=>(0,Q.jsxs)(`div`,{className:Z.splitRow,children:[y(e.oldCell,e.key),y(e.newCell,e.key)]},e.key))]})]},e.header))})}function ZA({file:e,threads:t,onCreate:n,onCopy:r,onLocateThread:i,onPatchThread:a,onDeleteThread:o,onReplyThread:s,onPatchComment:c,onCopyThread:l}){let[u,d]=v.useState(!1),f=t.filter(t=>t.filePath===e.path&&t.status!==`resolved`),p=t.filter(t=>t.filePath===e.path&&t.anchor.type===`file`);return(0,Q.jsxs)(IT,{className:Z.fileHeader,children:[(0,Q.jsxs)(`div`,{className:Z.headerTop,children:[(0,Q.jsx)(xA.Text,{strong:!0,children:e.path}),(0,Q.jsxs)(`div`,{className:Z.headerActions,children:[(0,Q.jsx)(HC,{disabled:f.length===0,type:`primary`,className:Z.headerAction,icon:(0,Q.jsx)(Yk,{}),onClick:()=>void r({type:`file-unresolved`,filePath:e.path}),children:`批量提交当前文件的review`}),(0,Q.jsx)(HC,{className:Z.headerAction,icon:(0,Q.jsx)(wA,{}),type:u?`primary`:`default`,onClick:()=>d(e=>!e),children:`文件级评论`})]})]}),u?(0,Q.jsx)(MA,{style:{marginTop:16},placeholder:`请输入文件级审查评论...`,onSubmit:async t=>{await n({type:`file`,filePath:e.path},t),d(!1)},onCancel:()=>d(!1)}):null,f.length>0?(0,Q.jsxs)(bk,{className:Z.threadCount,color:`gold`,children:[f.length,` 个评论线程`]}):null,p.length>0?(0,Q.jsx)(`div`,{className:Z.fileLevelInlineThreads,children:(0,Q.jsx)(zA,{threads:p,onFocus:i,onPatch:a,onDeleteThread:o,onReply:s,onPatchComment:c,onCopy:l})}):null]})}function QA(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}var $A=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ej=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,tj={};function nj(e,t){return((t||tj).jsx?ej:$A).test(e)}var rj=/[ \t\n\f\r]/g;function ij(e){return typeof e==`object`?e.type===`text`?aj(e.value):!1:aj(e)}function aj(e){return e.replace(rj,``)===``}var oj=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};oj.prototype.normal={},oj.prototype.property={},oj.prototype.space=void 0;function sj(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new oj(n,r,t)}function cj(e){return e.toLowerCase()}var lj=class{constructor(e,t){this.attribute=t,this.property=e}};lj.prototype.attribute=``,lj.prototype.booleanish=!1,lj.prototype.boolean=!1,lj.prototype.commaOrSpaceSeparated=!1,lj.prototype.commaSeparated=!1,lj.prototype.defined=!1,lj.prototype.mustUseProperty=!1,lj.prototype.number=!1,lj.prototype.overloadedBoolean=!1,lj.prototype.property=``,lj.prototype.spaceSeparated=!1,lj.prototype.space=void 0;var uj=s({boolean:()=>fj,booleanish:()=>pj,commaOrSpaceSeparated:()=>_j,commaSeparated:()=>gj,number:()=>$,overloadedBoolean:()=>mj,spaceSeparated:()=>hj}),dj=0,fj=vj(),pj=vj(),mj=vj(),$=vj(),hj=vj(),gj=vj(),_j=vj();function vj(){return 2**++dj}var yj=Object.keys(uj),bj=class extends lj{constructor(e,t,n,r){let i=-1;if(super(e,t),xj(this,`space`,r),typeof n==`number`)for(;++i<yj.length;){let e=yj[i];xj(this,yj[i],(n&uj[e])===uj[e])}}};bj.prototype.defined=!0;function xj(e,t,n){n&&(e[t]=n)}function Sj(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new bj(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[cj(r)]=r,n[cj(a.attribute)]=r}return new oj(t,n,e.space)}var Cj=Sj({properties:{ariaActiveDescendant:null,ariaAtomic:pj,ariaAutoComplete:null,ariaBusy:pj,ariaChecked:pj,ariaColCount:$,ariaColIndex:$,ariaColSpan:$,ariaControls:hj,ariaCurrent:null,ariaDescribedBy:hj,ariaDetails:null,ariaDisabled:pj,ariaDropEffect:hj,ariaErrorMessage:null,ariaExpanded:pj,ariaFlowTo:hj,ariaGrabbed:pj,ariaHasPopup:null,ariaHidden:pj,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:hj,ariaLevel:$,ariaLive:null,ariaModal:pj,ariaMultiLine:pj,ariaMultiSelectable:pj,ariaOrientation:null,ariaOwns:hj,ariaPlaceholder:null,ariaPosInSet:$,ariaPressed:pj,ariaReadOnly:pj,ariaRelevant:null,ariaRequired:pj,ariaRoleDescription:hj,ariaRowCount:$,ariaRowIndex:$,ariaRowSpan:$,ariaSelected:pj,ariaSetSize:$,ariaSort:null,ariaValueMax:$,ariaValueMin:$,ariaValueNow:$,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function wj(e,t){return t in e?e[t]:t}function Tj(e,t){return wj(e,t.toLowerCase())}var Ej=Sj({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:gj,acceptCharset:hj,accessKey:hj,action:null,allow:null,allowFullScreen:fj,allowPaymentRequest:fj,allowUserMedia:fj,alt:null,as:null,async:fj,autoCapitalize:null,autoComplete:hj,autoFocus:fj,autoPlay:fj,blocking:hj,capture:null,charSet:null,checked:fj,cite:null,className:hj,cols:$,colSpan:null,content:null,contentEditable:pj,controls:fj,controlsList:hj,coords:$|gj,crossOrigin:null,data:null,dateTime:null,decoding:null,default:fj,defer:fj,dir:null,dirName:null,disabled:fj,download:mj,draggable:pj,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:fj,formTarget:null,headers:hj,height:$,hidden:mj,high:$,href:null,hrefLang:null,htmlFor:hj,httpEquiv:hj,id:null,imageSizes:null,imageSrcSet:null,inert:fj,inputMode:null,integrity:null,is:null,isMap:fj,itemId:null,itemProp:hj,itemRef:hj,itemScope:fj,itemType:hj,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:fj,low:$,manifest:null,max:null,maxLength:$,media:null,method:null,min:null,minLength:$,multiple:fj,muted:fj,name:null,nonce:null,noModule:fj,noValidate:fj,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:fj,optimum:$,pattern:null,ping:hj,placeholder:null,playsInline:fj,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:fj,referrerPolicy:null,rel:hj,required:fj,reversed:fj,rows:$,rowSpan:$,sandbox:hj,scope:null,scoped:fj,seamless:fj,selected:fj,shadowRootClonable:fj,shadowRootDelegatesFocus:fj,shadowRootMode:null,shape:null,size:$,sizes:null,slot:null,span:$,spellCheck:pj,src:null,srcDoc:null,srcLang:null,srcSet:null,start:$,step:null,style:null,tabIndex:$,target:null,title:null,translate:null,type:null,typeMustMatch:fj,useMap:null,value:pj,width:$,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:hj,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:fj,declare:fj,event:null,face:null,frame:null,frameBorder:null,hSpace:$,leftMargin:$,link:null,longDesc:null,lowSrc:null,marginHeight:$,marginWidth:$,noResize:fj,noHref:fj,noShade:fj,noWrap:fj,object:null,profile:null,prompt:null,rev:null,rightMargin:$,rules:null,scheme:null,scrolling:pj,standby:null,summary:null,text:null,topMargin:$,valueType:null,version:null,vAlign:null,vLink:null,vSpace:$,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:fj,disableRemotePlayback:fj,prefix:null,property:null,results:$,security:null,unselectable:null},space:`html`,transform:Tj}),Dj=Sj({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:_j,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:hj,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:fj,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:gj,g2:gj,glyphName:gj,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:_j,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:hj,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:$,pointsAtY:$,pointsAtZ:$,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:_j,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:_j,rev:_j,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:_j,requiredFeatures:_j,requiredFonts:_j,requiredFormats:_j,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:_j,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:$,strokeOpacity:$,strokeWidth:null,style:null,surfaceScale:$,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:_j,tabIndex:$,tableValues:null,target:null,targetX:$,targetY:$,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:_j,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:wj}),Oj=Sj({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()}}),kj=Sj({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:Tj}),Aj=Sj({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),jj={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`},Mj=/[A-Z]/g,Nj=/-[a-z]/g,Pj=/^data[-\w.:]+$/i;function Fj(e,t){let n=cj(t),r=t,i=lj;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&Pj.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(Nj,Lj);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!Nj.test(e)){let n=e.replace(Mj,Ij);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=bj}return new i(r,t)}function Ij(e){return`-`+e.toLowerCase()}function Lj(e){return e.charAt(1).toUpperCase()}var Rj=sj([Cj,Ej,Oj,kj,Aj],`html`),zj=sj([Cj,Dj,Oj,kj,Aj],`svg`);function Bj(e){return e.join(` `).trim()}var Vj=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})),Hj=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(Vj());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}})),Uj=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))}})),Wj=o(((e,t)=>{var n=(e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(Hj()),r=Uj();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})),Gj=qj(`end`),Kj=qj(`start`);function qj(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 Jj(e){let t=Kj(e),n=Gj(e);if(t&&n)return{start:t,end:n}}function Yj(e){return!e||typeof e!=`object`?``:`position`in e||`type`in e?Zj(e.position):`start`in e||`end`in e?Zj(e):`line`in e||`column`in e?Xj(e):``}function Xj(e){return Qj(e&&e.line)+`:`+Qj(e&&e.column)}function Zj(e){return Xj(e&&e.start)+`-`+Xj(e&&e.end)}function Qj(e){return e&&typeof e==`number`?e:1}var $j=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=Yj(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}};$j.prototype.file=``,$j.prototype.name=``,$j.prototype.reason=``,$j.prototype.message=``,$j.prototype.stack=``,$j.prototype.column=void 0,$j.prototype.line=void 0,$j.prototype.ancestors=void 0,$j.prototype.cause=void 0,$j.prototype.fatal=void 0,$j.prototype.place=void 0,$j.prototype.ruleId=void 0,$j.prototype.source=void 0;var eM=l(Wj(),1),tM={}.hasOwnProperty,nM=new Map,rM=/[A-Z]/g,iM=new Set([`table`,`tbody`,`thead`,`tfoot`,`tr`]),aM=new Set([`td`,`th`]),oM=`https://github.com/syntax-tree/hast-util-to-jsx-runtime`;function sM(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=vM(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=_M(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`?zj:Rj,stylePropertyNameCase:t.stylePropertyNameCase||`dom`,tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=cM(i,e,void 0);return a&&typeof a!=`string`?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function cM(e,t,n){if(t.type===`element`)return lM(e,t,n);if(t.type===`mdxFlowExpression`||t.type===`mdxTextExpression`)return uM(e,t);if(t.type===`mdxJsxFlowElement`||t.type===`mdxJsxTextElement`)return fM(e,t,n);if(t.type===`mdxjsEsm`)return dM(e,t);if(t.type===`root`)return pM(e,t,n);if(t.type===`text`)return mM(e,t)}function lM(e,t,n){let r=e.schema,i=r;t.tagName.toLowerCase()===`svg`&&r.space===`html`&&(i=zj,e.schema=i),e.ancestors.push(t);let a=wM(e,t.tagName,!1),o=yM(e,t),s=xM(e,t);return iM.has(t.tagName)&&(s=s.filter(function(e){return typeof e==`string`?!ij(e):!0})),hM(e,o,a,t),gM(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function uM(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)}TM(e,t.position)}function dM(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);TM(e,t.position)}function fM(e,t,n){let r=e.schema,i=r;t.name===`svg`&&r.space===`html`&&(i=zj,e.schema=i),e.ancestors.push(t);let a=t.name===null?e.Fragment:wM(e,t.name,!0),o=bM(e,t),s=xM(e,t);return hM(e,o,a,t),gM(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function pM(e,t,n){let r={};return gM(r,xM(e,t)),e.create(t,e.Fragment,r,n)}function mM(e,t){return t.value}function hM(e,t,n,r){typeof n!=`string`&&n!==e.Fragment&&e.passNode&&(t.node=r)}function gM(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function _M(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 vM(e,t){return n;function n(n,r,i,a){let o=Array.isArray(i.children),s=Kj(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 yM(e,t){let n={},r,i;for(i in t.properties)if(i!==`children`&&tM.call(t.properties,i)){let a=SM(e,i,t.properties[i]);if(a){let[i,o]=a;e.tableCellAlignToStyle&&i===`align`&&typeof o==`string`&&aM.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 bM(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 TM(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 TM(e,t.position);else a=r.value===null?!0:r.value;n[i]=a}return n}function xM(e,t){let n=[],r=-1,i=e.passKeys?new Map:nM;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=cM(e,a,o);s!==void 0&&n.push(s)}return n}function SM(e,t,n){let r=Fj(e.schema,t);if(!(n==null||typeof n==`number`&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?QA(n):Bj(n)),r.property===`style`){let t=typeof n==`object`?n:CM(e,String(n));return e.stylePropertyNameCase===`css`&&(t=EM(t)),[`style`,t]}return[e.elementAttributeNameCase===`react`&&r.space?jj[r.property]||r.property:r.attribute,n]}}function CM(e,t){try{return(0,eM.default)(t,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};let n=t,r=new $j("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=oM+`#cannot-parse-style-attribute`,r}}function wM(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=nj(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=nj(t)&&!/^[a-z]/.test(t)?{type:`Identifier`,name:t}:{type:`Literal`,value:t};if(r.type===`Literal`){let t=r.value;return tM.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);TM(e)}function TM(e,t){let n=new $j("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=oM+`#cannot-handle-mdx-estrees-without-createevaluater`,n}function EM(e){let t={},n;for(n in e)tM.call(e,n)&&(t[DM(n)]=e[n]);return t}function DM(e){let t=e.replace(rM,OM);return t.slice(0,3)===`ms-`&&(t=`-`+t),t}function OM(e){return`-`+e.toLowerCase()}var kM={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`]},AM={};function jM(e,t){let n=t||AM;return MM(e,typeof n.includeImageAlt==`boolean`?n.includeImageAlt:!0,typeof n.includeHtml==`boolean`?n.includeHtml:!0)}function MM(e,t,n){if(PM(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 NM(e.children,t,n)}return Array.isArray(e)?NM(e,t,n):``}function NM(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=MM(e[i],t,n);return r.join(``)}function PM(e){return!!(e&&typeof e==`object`)}var FM=document.createElement(`i`);function IM(e){let t=`&`+e+`;`;FM.innerHTML=t;let n=FM.textContent;return n.charCodeAt(n.length-1)===59&&e!==`semi`||n===t?!1:n}function LM(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 RM(e,t){return e.length>0?(LM(e,e.length,0,t),e):t}var zM={}.hasOwnProperty;function BM(e){let t={},n=-1;for(;++n<e.length;)VM(t,e[n]);return t}function VM(e,t){let n;for(n in t){let r=(zM.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n],a;if(i)for(a in i){zM.call(r,a)||(r[a]=[]);let e=i[a];HM(r[a],Array.isArray(e)?e:e?[e]:[])}}}function HM(e,t){let n=-1,r=[];for(;++n<t.length;)(t[n].add===`after`?e:r).push(t[n]);LM(e,0,0,r)}function UM(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 WM(e){return e.replace(/[\t\n\r ]+/g,` `).replace(/^ | $/g,``).toLowerCase().toUpperCase()}var GM=rN(/[A-Za-z]/),KM=rN(/[\dA-Za-z]/),qM=rN(/[#-'*+\--9=?A-Z^-~]/);function JM(e){return e!==null&&(e<32||e===127)}var YM=rN(/\d/),XM=rN(/[\dA-Fa-f]/),ZM=rN(/[!-/:-@[-`{-~]/);function QM(e){return e!==null&&e<-2}function $M(e){return e!==null&&(e<0||e===32)}function eN(e){return e===-2||e===-1||e===32}var tN=rN(/\p{P}|\p{S}/u),nN=rN(/\s/);function rN(e){return t;function t(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function iN(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let a=e.charCodeAt(n),o=``;if(a===37&&KM(e.charCodeAt(n+1))&&KM(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 aN(e,t,n,r){let i=r?r-1:1/0,a=0;return o;function o(r){return eN(r)?(e.enter(n),s(r)):t(r)}function s(r){return eN(r)&&a++<i?(e.consume(r),s):(e.exit(n),t(r))}}var oN={tokenize:sN};function sN(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`),aN(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 QM(t)?(e.consume(t),e.exit(`chunkText`),a):(e.consume(t),o)}}var cN={tokenize:uN},lN={tokenize:dN};function uN(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 LM(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(lN,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(lN,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 QM(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++;LM(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 dN(e,t,n){return aN(e,e.attempt(this.parser.constructs.document,t,n),`linePrefix`,this.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)}function fN(e){if(e===null||$M(e)||nN(e))return 1;if(tN(e))return 2}function pN(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 mN={name:`attention`,resolveAll:hN,tokenize:gN};function hN(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};_N(d,-c),_N(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=RM(l,[[`enter`,e[r][1],t],[`exit`,e[r][1],t]])),l=RM(l,[[`enter`,i,t],[`enter`,o,t],[`exit`,o,t],[`enter`,a,t]]),l=RM(l,pN(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=RM(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=RM(l,[[`enter`,e[n][1],t],[`exit`,e[n][1],t]])):u=0,LM(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 gN(e,t){let n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=fN(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=fN(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 _N(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var vN={name:`autolink`,tokenize:yN};function yN(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 GM(t)?(e.consume(t),o):t===64?n(t):l(t)}function o(e){return e===43||e===45||e===46||KM(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||KM(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||JM(r)?n(r):(e.consume(r),c)}function l(t){return t===64?(e.consume(t),u):qM(t)?(e.consume(t),l):n(t)}function u(e){return KM(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||KM(t))&&r++<63){let n=t===45?f:d;return e.consume(t),n}return n(t)}}var bN={partial:!0,tokenize:xN};function xN(e,t,n){return r;function r(t){return eN(t)?aN(e,i,`linePrefix`)(t):i(t)}function i(e){return e===null||QM(e)?t(e):n(e)}}var SN={continuation:{tokenize:wN},exit:TN,name:`blockQuote`,tokenize:CN};function CN(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 eN(n)?(e.enter(`blockQuotePrefixWhitespace`),e.consume(n),e.exit(`blockQuotePrefixWhitespace`),e.exit(`blockQuotePrefix`),t):(e.exit(`blockQuotePrefix`),t(n))}}function wN(e,t,n){let r=this;return i;function i(t){return eN(t)?aN(e,a,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):a(t)}function a(r){return e.attempt(SN,t,n)(r)}}function TN(e){e.exit(`blockQuote`)}var EN={name:`characterEscape`,tokenize:DN};function DN(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 ZM(r)?(e.enter(`characterEscapeValue`),e.consume(r),e.exit(`characterEscapeValue`),e.exit(`characterEscape`),t):n(r)}}var ON={name:`characterReference`,tokenize:kN};function kN(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=KM,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=XM,u):(e.enter(`characterReferenceValue`),a=7,o=YM,u(t))}function u(s){if(s===59&&i){let i=e.exit(`characterReferenceValue`);return o===KM&&!IM(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 AN={partial:!0,tokenize:NN},jN={concrete:!0,name:`codeFenced`,tokenize:MN};function MN(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`),eN(t)?aN(e,d,`whitespace`)(t):d(t))}function d(n){return n===null||QM(n)?(e.exit(`codeFencedFence`),r.interrupt?t(n):e.check(AN,h,b)(n)):(e.enter(`codeFencedFenceInfo`),e.enter(`chunkString`,{contentType:`string`}),f(n))}function f(t){return t===null||QM(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),d(t)):eN(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),aN(e,p,`whitespace`)(t)):t===96&&t===s?n(t):(e.consume(t),f)}function p(t){return t===null||QM(t)?d(t):(e.enter(`codeFencedFenceMeta`),e.enter(`chunkString`,{contentType:`string`}),m(t))}function m(t){return t===null||QM(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&&eN(t)?aN(e,v,`linePrefix`,a+1)(t):v(t)}function v(t){return t===null||QM(t)?e.check(AN,h,b)(t):(e.enter(`codeFlowValue`),y(t))}function y(t){return t===null||QM(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`),eN(t)?aN(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`),eN(t)?aN(e,d,`whitespace`)(t):d(t)):n(t)}function d(r){return r===null||QM(r)?(e.exit(`codeFencedFence`),t(r)):n(r)}}}function NN(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 PN={name:`codeIndented`,tokenize:IN},FN={partial:!0,tokenize:LN};function IN(e,t,n){let r=this;return i;function i(t){return e.enter(`codeIndented`),aN(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):QM(t)?e.attempt(FN,o,c)(t):(e.enter(`codeFlowValue`),s(t))}function s(t){return t===null||QM(t)?(e.exit(`codeFlowValue`),o(t)):(e.consume(t),s)}function c(n){return e.exit(`codeIndented`),t(n)}}function LN(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):QM(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),i):aN(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):QM(e)?i(e):n(e)}}var RN={name:`codeText`,previous:BN,resolve:zN,tokenize:VN};function zN(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 BN(e){return e!==96||this.events[this.events.length-1][1].type===`characterEscape`}function VN(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)):QM(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||QM(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 HN=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&&UN(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),UN(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),UN(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);UN(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);UN(this.left,t.reverse())}}};function UN(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 WN(e){let t={},n=-1,r,i,a,o,s,c,l,u=new HN(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,GN(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 LM(e,0,1/0,u.slice(0)),!l}function GN(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 KN={resolve:JN,tokenize:YN},qN={partial:!0,tokenize:XN};function JN(e){return WN(e),e}function YN(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):QM(t)?e.check(qN,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 XN(e,t,n){let r=this;return i;function i(t){return e.exit(`chunkContent`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),aN(e,a,`linePrefix`)}function a(i){if(i===null||QM(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 ZN(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||JM(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||QM(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||$M(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||JM(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 QN(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):QM(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||QM(t)||s++>999?(e.exit(`chunkString`),u(t)):(e.consume(t),c||=!eN(t),t===92?f:d)}function f(t){return t===91||t===92||t===93?(e.consume(t),s++,d):d(t)}}function $N(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):QM(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),aN(e,l,`linePrefix`)):(e.enter(`chunkString`,{contentType:`string`}),u(t))}function u(t){return t===o||t===null||QM(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 eP(e,t){let n;return r;function r(i){return QM(i)?(e.enter(`lineEnding`),e.consume(i),e.exit(`lineEnding`),n=!0,r):eN(i)?aN(e,r,n?`linePrefix`:`lineSuffix`)(i):t(i)}}var tP={name:`definition`,tokenize:rP},nP={partial:!0,tokenize:iP};function rP(e,t,n){let r=this,i;return a;function a(t){return e.enter(`definition`),o(t)}function o(t){return QN.call(r,e,s,n,`definitionLabel`,`definitionLabelMarker`,`definitionLabelString`)(t)}function s(t){return i=WM(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 $M(t)?eP(e,l)(t):l(t)}function l(t){return ZN(e,u,n,`definitionDestination`,`definitionDestinationLiteral`,`definitionDestinationLiteralMarker`,`definitionDestinationRaw`,`definitionDestinationString`)(t)}function u(t){return e.attempt(nP,d,d)(t)}function d(t){return eN(t)?aN(e,f,`whitespace`)(t):f(t)}function f(a){return a===null||QM(a)?(e.exit(`definition`),r.parser.defined.push(i),t(a)):n(a)}}function iP(e,t,n){return r;function r(t){return $M(t)?eP(e,i)(t):n(t)}function i(t){return $N(e,a,n,`definitionTitle`,`definitionTitleMarker`,`definitionTitleString`)(t)}function a(t){return eN(t)?aN(e,o,`whitespace`)(t):o(t)}function o(e){return e===null||QM(e)?t(e):n(e)}}var aP={name:`hardBreakEscape`,tokenize:oP};function oP(e,t,n){return r;function r(t){return e.enter(`hardBreakEscape`),e.consume(t),i}function i(r){return QM(r)?(e.exit(`hardBreakEscape`),t(r)):n(r)}}var sP={name:`headingAtx`,resolve:cP,tokenize:lP};function cP(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`},LM(e,r,n-r+1,[[`enter`,i,t],[`enter`,a,t],[`exit`,a,t],[`exit`,i,t]])),e}function lP(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||$M(t)?(e.exit(`atxHeadingSequence`),s(t)):n(t)}function s(n){return n===35?(e.enter(`atxHeadingSequence`),c(n)):n===null||QM(n)?(e.exit(`atxHeading`),t(n)):eN(n)?aN(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||$M(t)?(e.exit(`atxHeadingText`),s(t)):(e.consume(t),l)}}var uP=`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(`.`),dP=[`pre`,`script`,`style`,`textarea`],fP={concrete:!0,name:`htmlFlow`,resolveTo:hP,tokenize:gP},pP={partial:!0,tokenize:vP},mP={partial:!0,tokenize:_P};function hP(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 gP(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):GM(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):GM(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 GM(t)?(e.consume(t),o=String.fromCharCode(t),g):n(t)}function g(s){if(s===null||s===47||s===62||$M(s)){let c=s===47,l=o.toLowerCase();return!c&&!a&&dP.includes(l)?(i=1,r.interrupt?t(s):O(s)):uP.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||KM(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 eN(t)?(e.consume(t),v):E(t)}function y(t){return t===47?(e.consume(t),E):t===58||t===95||GM(t)?(e.consume(t),b):eN(t)?(e.consume(t),y):E(t)}function b(t){return t===45||t===46||t===58||t===95||KM(t)?(e.consume(t),b):x(t)}function x(t){return t===61?(e.consume(t),S):eN(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):eN(t)?(e.consume(t),S):w(t)}function C(t){return t===c?(e.consume(t),c=null,T):t===null||QM(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||$M(t)?x(t):(e.consume(t),w)}function T(e){return e===47||e===62||eN(e)?y(e):n(e)}function E(t){return t===62?(e.consume(t),D):n(t)}function D(t){return t===null||QM(t)?O(t):eN(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):QM(t)&&(i===6||i===7)?(e.exit(`htmlFlowData`),e.check(pP,R,k)(t)):t===null||QM(t)?(e.exit(`htmlFlowData`),k(t)):(e.consume(t),O)}function k(t){return e.check(mP,A,R)(t)}function A(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),j}function j(t){return t===null||QM(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 dP.includes(n)?(e.consume(t),L):O(t)}return GM(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||QM(t)?(e.exit(`htmlFlowData`),R(t)):(e.consume(t),L)}function R(n){return e.exit(`htmlFlow`),t(n)}}function _P(e,t,n){let r=this;return i;function i(t){return QM(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 vP(e,t,n){return r;function r(r){return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),e.attempt(bN,t,n)}}var yP={name:`htmlText`,tokenize:bP};function bP(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):GM(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):GM(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):QM(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):QM(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):QM(t)?(o=v,N(t)):(e.consume(t),v)}function y(t){return t===null?n(t):t===63?(e.consume(t),b):QM(t)?(o=y,N(t)):(e.consume(t),y)}function b(e){return e===62?M(e):y(e)}function x(t){return GM(t)?(e.consume(t),S):n(t)}function S(t){return t===45||KM(t)?(e.consume(t),S):C(t)}function C(t){return QM(t)?(o=C,N(t)):eN(t)?(e.consume(t),C):M(t)}function w(t){return t===45||KM(t)?(e.consume(t),w):t===47||t===62||$M(t)?T(t):n(t)}function T(t){return t===47?(e.consume(t),M):t===58||t===95||GM(t)?(e.consume(t),E):QM(t)?(o=T,N(t)):eN(t)?(e.consume(t),T):M(t)}function E(t){return t===45||t===46||t===58||t===95||KM(t)?(e.consume(t),E):D(t)}function D(t){return t===61?(e.consume(t),O):QM(t)?(o=D,N(t)):eN(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):QM(t)?(o=O,N(t)):eN(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):QM(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||$M(t)?T(t):(e.consume(t),A)}function j(e){return e===47||e===62||$M(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 eN(t)?aN(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 xP={name:`labelEnd`,resolveAll:TP,resolveTo:EP,tokenize:DP},SP={tokenize:OP},CP={tokenize:kP},wP={tokenize:AP};function TP(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&&LM(e,0,e.length,n),e}function EP(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=RM(s,e.slice(a+1,a+r+3)),s=RM(s,[[`enter`,u,t]]),s=RM(s,pN(t.parser.constructs.insideSpan.null,e.slice(a+r+4,o-3),t)),s=RM(s,[[`exit`,u,t],e[o-2],e[o-1],[`exit`,l,t]]),s=RM(s,e.slice(o+1)),s=RM(s,[[`exit`,c,t]]),LM(e,a,e.length,s),e}function DP(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(WM(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(SP,u,o?u:d)(t):t===91?e.attempt(CP,u,o?l:d)(t):o?u(t):d(t)}function l(t){return e.attempt(wP,u,d)(t)}function u(e){return t(e)}function d(e){return a._balanced=!0,n(e)}}function OP(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 $M(t)?eP(e,a)(t):a(t)}function a(t){return t===41?u(t):ZN(e,o,s,`resourceDestination`,`resourceDestinationLiteral`,`resourceDestinationLiteralMarker`,`resourceDestinationRaw`,`resourceDestinationString`,32)(t)}function o(t){return $M(t)?eP(e,c)(t):u(t)}function s(e){return n(e)}function c(t){return t===34||t===39||t===40?$N(e,l,n,`resourceTitle`,`resourceTitleMarker`,`resourceTitleString`)(t):u(t)}function l(t){return $M(t)?eP(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 kP(e,t,n){let r=this;return i;function i(t){return QN.call(r,e,a,o,`reference`,`referenceMarker`,`referenceString`)(t)}function a(e){return r.parser.defined.includes(WM(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}function AP(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 jP={name:`labelStartImage`,resolveAll:xP.resolveAll,tokenize:MP};function MP(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 NP={name:`labelStartLink`,resolveAll:xP.resolveAll,tokenize:PP};function PP(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 FP={name:`lineEnding`,tokenize:IP};function IP(e,t){return n;function n(n){return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),aN(e,t,`linePrefix`)}}var LP={name:`thematicBreak`,tokenize:RP};function RP(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||QM(a))?(e.exit(`thematicBreak`),t(a)):n(a)}function c(t){return t===i?(e.consume(t),r++,c):(e.exit(`thematicBreakSequence`),eN(t)?aN(e,s,`whitespace`)(t):s(t))}}var zP={continuation:{tokenize:UP},exit:GP,name:`list`,tokenize:HP},BP={partial:!0,tokenize:KP},VP={partial:!0,tokenize:WP};function HP(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:YM(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(LP,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 YM(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(bN,r.interrupt?n:u,e.attempt(BP,f,d))}function u(e){return r.containerState.initialBlankLine=!0,a++,f(e)}function d(t){return eN(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 UP(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(bN,i,a);function i(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,aN(e,t,`listItemIndent`,r.containerState.size+1)(n)}function a(n){return r.containerState.furtherBlankLines||!eN(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(VP,t,o)(n))}function o(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,aN(e,e.attempt(zP,t,n),`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(i)}}function WP(e,t,n){let r=this;return aN(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 GP(e){e.exit(this.containerState.type)}function KP(e,t,n){let r=this;return aN(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!eN(e)&&i&&i[1].type===`listItemPrefixWhitespace`?t(e):n(e)}}var qP={name:`setextUnderline`,resolveTo:JP,tokenize:YP};function JP(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 YP(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`),eN(t)?aN(e,c,`lineSuffix`)(t):c(t))}function c(r){return r===null||QM(r)?(e.exit(`setextHeadingLine`),t(r)):n(r)}}var XP={tokenize:ZP};function ZP(e){let t=this,n=e.attempt(bN,r,e.attempt(this.parser.constructs.flowInitial,i,aN(e,e.attempt(this.parser.constructs.flow,i,e.attempt(KN,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 QP={resolveAll:nF()},$P=tF(`string`),eF=tF(`text`);function tF(e){return{resolveAll:nF(e===`text`?rF: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 nF(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 rF(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 iF=s({attentionMarkers:()=>fF,contentInitial:()=>oF,disable:()=>pF,document:()=>aF,flow:()=>cF,flowInitial:()=>sF,insideSpan:()=>dF,string:()=>lF,text:()=>uF}),aF={42:zP,43:zP,45:zP,48:zP,49:zP,50:zP,51:zP,52:zP,53:zP,54:zP,55:zP,56:zP,57:zP,62:SN},oF={91:tP},sF={[-2]:PN,[-1]:PN,32:PN},cF={35:sP,42:LP,45:[qP,LP],60:fP,61:qP,95:LP,96:jN,126:jN},lF={38:ON,92:EN},uF={[-5]:FP,[-4]:FP,[-3]:FP,33:jP,38:ON,42:mN,60:[vN,yP],91:NP,92:[aP,EN],93:xP,95:mN,96:RN},dF={null:[mN,QP]},fF={null:[42,95]},pF={null:[]};function mF(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=RM(o,e),g(),o[o.length-1]===null?(w(t,0),l.events=pN(a,l.events,l),l.events):[]}function f(e,t){return gF(p(e),t)}function p(e){return hF(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){QM(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&&LM(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 hF(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 gF(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
|
+
`]:{...Ja(e),marginInlineStart:e.marginXXS},...Lk(e),...Rk(e),...zk(),"&-rtl":{direction:`rtl`}}}},()=>({titleMarginTop:`1.2em`,titleMarginBottom:`0.5em`})),Vk=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(Mk,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===X.ENTER?(w(),d?.()):e===X.ESC&&u())},E=()=>{w()},[D,O]=Bk(t),k=J(t,`${t}-edit-content`,{[`${t}-rtl`]:a===`rtl`,[`${t}-${f}`]:!!f},r,D,O);return v.createElement(`div`,{className:k,style:i},v.createElement(OD,{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:su(p,{className:`${t}-edit-content-confirm`}))},Hk=(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})}},Uk=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 Wk(e,t){if(typeof e!=`string`)return!1;let n=t?.format===`text/html`;return!!(await Uk(e,n)||Hk(e,n))}var Gk=({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 Wk((typeof e.text==`function`?await e.text():e.text)||GO(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 Kk(e,t){return v.useMemo(()=>{let n=!!e;return[n,{...t,...n&&typeof e==`object`?e:null}]},[e])}var qk=e=>{let t=(0,v.useRef)(void 0);return(0,v.useEffect)(()=>{t.current=e}),t.current},Jk=(e,t,n)=>(0,v.useMemo)(()=>e===!0?{title:t??n}:(0,v.isValidElement)(e)?{title:e}:cc(e)?{title:t??n,...e}:{title:e},[e,t,n]),Yk=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}=Qe(`typography`),m=s??d,h=u(`typography`,n),[g,_]=Bk(h),y=J(h,f,{[`${h}-rtl`]:m===`rtl`},i,a,g,_),b={...p,...c};return v.createElement(r,{className:y,style:b,ref:t,...l},o)}),Xk={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 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 Qk=v.forwardRef((e,t)=>v.createElement(Co,Zk({},e,{ref:t,icon:Xk}))),$k=e=>e===!1?[!1,!1]:GO(e);function eA(e,t,n){return e===!0||e===void 0?t:e||n&&t}function tA(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 nA=e=>[`string`,`number`].includes(typeof e),rA=e=>{let{prefixCls:t,copied:n,locale:r,iconOnly:i,tooltips:a,icon:o,tabIndex:s,onCopy:c,loading:l}=e,u=$k(a),d=$k(o),{copied:f,copy:p}=r??{},m=n?f:p,h=eA(u[+!!n],m),g=typeof h==`string`?h:m;return v.createElement(_x,{title:h},v.createElement(`button`,{type:`button`,className:J(`${t}-copy`,{[`${t}-copy-success`]:n,[`${t}-copy-icon-only`]:i}),onClick:c,"aria-label":g,tabIndex:s},n?eA(d[1],v.createElement(Sb,null),!0):eA(d[0],l?v.createElement(Xu,null):v.createElement(Qk,null),!0)))},iA=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)}),aA=e=>e.reduce((e,t)=>e+(nA(t)?String(t).length:1),0);function oA(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=nA(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 sA=0,cA=1,lA=2,uA=3,dA=4,fA={display:`-webkit-box`,overflow:`hidden`,WebkitBoxOrient:`vertical`};function pA(e){let{enableMeasure:t,width:n,text:r,children:i,rows:a,expanded:o,miscDeps:s,onEllipsis:c}=e,l=v.useMemo(()=>fe(r),[r]),u=v.useMemo(()=>aA(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(sA),[T,E]=v.useState(0),[D,O]=v.useState(null);S(()=>{w(t&&n&&u?cA:sA)},[n,r,a,t,l]),S(()=>{if(C===cA)w(lA),O(h.current&&getComputedStyle(h.current).whiteSpace);else if(C===lA){let e=!!g.current?.isExceed();w(e?uA:dA),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!==uA||!f||f[0]!==f[1]){let e=i(l,!1);return[dA,sA].includes(C)?e:v.createElement(`span`,{style:{...fA,WebkitLineClamp:a}},e)}return i(o?l:oA(l,f[0]),b)},[o,C,f,l].concat(Be(s))),j={width:n,margin:0,padding:0,whiteSpace:D===`nowrap`?`normal`:`inherit`};return v.createElement(v.Fragment,null,A,C===lA&&v.createElement(v.Fragment,null,v.createElement(iA,{style:{...j,...fA,WebkitLineClamp:a},ref:g},d),v.createElement(iA,{style:{...j,...fA,WebkitLineClamp:a-1},ref:_},d),v.createElement(iA,{style:{...j,...fA,WebkitLineClamp:1},ref:y},i([],!0))),C===uA&&f&&f[0]!==f[1]&&v.createElement(iA,{style:{...j,top:400},ref:m},i(oA(l,k),!0)),C===cA&&v.createElement(`span`,{style:{whiteSpace:`inherit`},ref:h}))}var mA=({enableEllipsis:e,isEllipsis:t,open:n,children:r,tooltipProps:i})=>{if(!i?.title||!e)return r;let a=n&&t;return v.createElement(_x,{open:a,...i},r)};function hA({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 gA=`...`,_A=[`delete`,`mark`,`code`,`underline`,`strong`,`keyboard`,`italic`],vA=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(Ye),[y]=tc(`Text`),b=v.useRef(null),x=v.useRef(null),C=g(`typography`,n),w=de(h,_A),[E,D]=Kk(l),[O,k]=T(!1,D.editing),{triggerType:A=[`icon`]}=D,j=e=>{e&&D.onStart?.(),k(e)},M=qk(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]=Kk(u),{copied:z,copyLoading:B,onClick:V}=Gk({copyConfig:R,children:s}),[H,U]=v.useState(!1),[W,ee]=v.useState(!1),[te,ne]=v.useState(!1),[re,ie]=v.useState(!1),[ae,G]=v.useState(!0),[K,oe]=Kk(c,{expandable:!1,symbol:e=>e?y?.collapse:y?.expand}),[se,ce]=T(oe.defaultExpanded||!1,oe.expanded),q=K&&(!se||oe.expandable===`collapsible`),{rows:le=1}=oe,ue=v.useMemo(()=>q&&(oe.suffix!==void 0||oe.onEllipsis||oe.expandable||E||L),[q,oe,E,L]);S(()=>{K&&!ue&&(U(Gh(`webkitLineClamp`)),ee(Gh(`textOverflow`)))},[ue,K]);let[pe,me]=v.useState(q),he=v.useMemo(()=>ue?!1:le===1?W:H,[ue,W,H]);S(()=>{me(he&&q)},[he,q]);let ge=Jk(oe.tooltip,D.text,s),_e=pe&&!!ge.title,ve=q&&(pe?_e&&re:te),ye=q&&le===1&&pe,be=q&&le>1&&pe,xe=(e,t)=>{ce(t.expanded),oe.onExpand?.(e,t)},[Se,Ce]=v.useState(0),[we,Te]=v.useState(!1),[Ee,De]=v.useState(!1),Oe=({offsetWidth:e})=>{Ce(e)},ke=e=>{ne(e),te!==e&&oe.onEllipsis?.(e)};v.useEffect(()=>{let e=b.current;if(K&&_e&&e){let t=tA(e);re!==t&&ie(t)}},[K,_e,s,be,ae,Se]),v.useEffect(()=>{let e=b.current;if(typeof IntersectionObserver>`u`||!e||!_e||!q)return;let t=new IntersectionObserver(()=>{G(!!e.offsetParent)});return t.observe(e),()=>{t.disconnect()}},[_e,q]);let Ae=v.useMemo(()=>{if(!(!K||pe))return[D.text,s,f,ge.title].find(nA)},[K,pe,f,ge.title,ve]);if(O)return v.createElement(Vk,{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 je=()=>{let{expandable:e,symbol:t}=oe;return e?v.createElement(`button`,{type:`button`,key:`expand`,className:`${C}-${se?`collapse`:`expand`}`,onClick:e=>xe(e,{expanded:!se}),"aria-label":se?y.collapse:y?.expand},typeof t==`function`?t(se):t):null},Me=()=>{if(!E)return;let{icon:e,tooltip:t,tabIndex:n}=D,r=fe(t)[0]||y?.edit,i=typeof r==`string`?r:``;return A.includes(`icon`)?v.createElement(_x,{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(kk,{role:`button`}))):null},Pe=()=>L?v.createElement(rA,{key:`copy`,...R,prefixCls:C,copied:z,locale:y,onCopy:V,loading:B,iconOnly:!ac(s)}):null,Fe=e=>{let t=e&&je(),n=Me(),r=Pe();return!t&&!n&&!r?null:v.createElement(`span`,{key:`operations`,className:`${C}-actions`,onMouseEnter:()=>Te(!0),onMouseLeave:()=>Te(!1)},t,n,r)},Ie=e=>[e&&!se&&v.createElement(`span`,{"aria-hidden":!0,key:`ellipsis`},gA),oe.suffix,Fe(e)];return v.createElement(Ne,{onResize:Oe,disabled:!q},c=>v.createElement(mA,{tooltipProps:ge,enableEllipsis:q,isEllipsis:ve,open:Ee&&!we},v.createElement(Yk,{onMouseEnter:e=>{De(!0),p?.(e)},onMouseLeave:e=>{De(!1),m?.(e)},className:J({[`${C}-${a}`]:a,[`${C}-disabled`]:o,[`${C}-ellipsis`]:K,[`${C}-ellipsis-single-line`]:ye,[`${C}-ellipsis-multiple-line`]:be,[`${C}-link`]:d===`a`},r),prefixCls:n,style:{...i,WebkitLineClamp:be?le:void 0},component:d,ref:I(c,b,t),direction:_,onClick:A.includes(`text`)?N:void 0,"aria-label":Ae?.toString(),title:f,...w},v.createElement(pA,{enableMeasure:q&&!pe,text:s,rows:le,width:Se,onEllipsis:ke,expanded:se,miscDeps:[z,se,B,E,L,y].concat(Be(_A.map(t=>e[t])))},(t,n)=>hA(e,v.createElement(v.Fragment,null,t.length>0&&n&&!se&&Ae?v.createElement(`span`,{key:`show-content`,"aria-hidden":!0},t):t,Ie(n)))))))}),yA=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(vA,{...s,ref:t,ellipsis:!!n,component:`a`},i)}),bA=v.forwardRef((e,t)=>{let{children:n,...r}=e;return v.createElement(vA,{ref:t,...r,component:`div`},n)}),xA=v.forwardRef((e,t)=>{let{ellipsis:n,children:r,...i}=e,a=v.useMemo(()=>cc(n)?de(n,[`expandable`,`rows`]):n,[n]);return v.createElement(vA,{ref:t,...i,ellipsis:a,component:`span`},r)}),SA=[1,2,3,4,5],CA=v.forwardRef((e,t)=>{let{level:n=1,children:r,...i}=e,a=SA.includes(n)?`h${n}`:`h1`;return v.createElement(vA,{ref:t,...i,component:a},r)}),wA=Yk;wA.Text=xA,wA.Link=yA,wA.Title=CA,wA.Paragraph=bA;var TA={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 EA(){return EA=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},EA.apply(this,arguments)}var DA=v.forwardRef((e,t)=>v.createElement(Co,EA({},e,{ref:t,icon:TA}))),OA={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 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 AA=v.forwardRef((e,t)=>v.createElement(Co,kA({},e,{ref:t,icon:OA}))),jA={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 MA(){return MA=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},MA.apply(this,arguments)}var NA=v.forwardRef((e,t)=>v.createElement(Co,MA({},e,{ref:t,icon:jA}))),PA={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 FA(){return FA=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},FA.apply(this,arguments)}var IA=v.forwardRef((e,t)=>v.createElement(Co,FA({},e,{ref:t,icon:PA}))),LA={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 RA(){return RA=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},RA.apply(this,arguments)}var zA=v.forwardRef((e,t)=>v.createElement(Co,RA({},e,{ref:t,icon:LA}))),BA={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 VA(){return VA=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},VA.apply(this,arguments)}var HA=v.forwardRef((e,t)=>v.createElement(Co,VA({},e,{ref:t,icon:BA}))),UA={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 WA(){return WA=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},WA.apply(this,arguments)}var GA=v.forwardRef((e,t)=>v.createElement(Co,WA({},e,{ref:t,icon:UA})));function KA(e){return e.anchor.type===`file`?0:e.anchor.lineNumber}function qA(e,t){return t.filter(t=>t.filePath===e&&t.status!==`resolved`).sort((e,t)=>KA(e)-KA(t)||e.createdAt.localeCompare(t.createdAt))[0]}function JA(e){return e.anchor.type===`diff-line`?`${e.anchor.side}:${e.anchor.lineNumber}`:null}function YA(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 XA(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=YA(t,`old`),i=YA(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 ZA(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 QA(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 $A(e){e.scrollTop=0}function ej(e,t){let n=e.getBoundingClientRect(),r=t.getBoundingClientRect();e.scrollTop+=r.top-n.top}function tj(e){return e===`add`?`+`:e===`remove`?`-`:``}function nj(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 rj(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 ij(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 aj({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=qA(e,n);window.requestAnimationFrame(()=>{if(!u||u.anchor.type===`file`){$A(a),c.current=l;return}let e=JA(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=rj(i,e,t);if(n){o(e=>({...e,[n.key]:n.hiddenCount}));return}}$A(a),c.current=l;return}ej(a,t),c.current=l})},[c,a,r,e,i,s,o,n,t])}function oj({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`){$A(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){ej(n,l);return}if(!r)return;let u=rj(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]?ej(n,d[0].node):$A(n)},[a,r,e,i,t,s,o,n])}var Z={shell:`_shell_93dk9_1`,sidebar:`_sidebar_93dk9_23`,threadRail:`_threadRail_93dk9_24`,reviewPane:`_reviewPane_93dk9_38`,brand:`_brand_93dk9_46`,brandMark:`_brandMark_93dk9_52`,brandCopy:`_brandCopy_93dk9_63`,repoName:`_repoName_93dk9_68`,productName:`_productName_93dk9_78`,sideCard:`_sideCard_93dk9_82`,fileRailHeader:`_fileRailHeader_93dk9_91`,threadRailHeader:`_threadRailHeader_93dk9_92`,topToolbar:`_topToolbar_93dk9_93`,threadRailTitle:`_threadRailTitle_93dk9_101`,fileList:`_fileList_93dk9_108`,fileItem:`_fileItem_93dk9_114`,fileItemActive:`_fileItemActive_93dk9_124`,fileMeta:`_fileMeta_93dk9_128`,fileName:`_fileName_93dk9_138`,fileStats:`_fileStats_93dk9_147`,fileStatAdd:`_fileStatAdd_93dk9_150`,fileStatDelete:`_fileStatDelete_93dk9_154`,viewModeSwitcher:`_viewModeSwitcher_93dk9_163`,reviewSurface:`_reviewSurface_93dk9_169`,fileHeader:`_fileHeader_93dk9_180`,headerTop:`_headerTop_93dk9_188`,filePathBlock:`_filePathBlock_93dk9_194`,filePathText:`_filePathText_93dk9_200`,fileExpandBtn:`_fileExpandBtn_93dk9_204`,headerIntro:`_headerIntro_93dk9_215`,eyebrow:`_eyebrow_93dk9_218`,headerActions:`_headerActions_93dk9_224`,threadActions:`_threadActions_93dk9_225`,threadCount:`_threadCount_93dk9_231`,fileLevelInlineThreads:`_fileLevelInlineThreads_93dk9_234`,inlineThreadHeader:`_inlineThreadHeader_93dk9_239`,inlineThreadBody:`_inlineThreadBody_93dk9_242`,inlineThreadActions:`_inlineThreadActions_93dk9_246`,diffCard:`_diffCard_93dk9_249`,markdownShell:`_markdownShell_93dk9_250`,hunk:`_hunk_93dk9_256`,hunkHeader:`_hunkHeader_93dk9_263`,hunkHeaderRail:`_hunkHeaderRail_93dk9_269`,hunkHeaderExpand:`_hunkHeaderExpand_93dk9_278`,hunkHeaderBody:`_hunkHeaderBody_93dk9_302`,diffRow:`_diffRow_93dk9_308`,splitTable:`_splitTable_93dk9_315`,splitRow:`_splitRow_93dk9_318`,splitCell:`_splitCell_93dk9_322`,add:`_add_93dk9_332`,remove:`_remove_93dk9_335`,emptyCell:`_emptyCell_93dk9_338`,expandGapRow:`_expandGapRow_93dk9_341`,expandGapControl:`_expandGapControl_93dk9_350`,expandGapChevron:`_expandGapChevron_93dk9_365`,lineNo:`_lineNo_93dk9_368`,lineSign:`_lineSign_93dk9_378`,signAdd:`_signAdd_93dk9_388`,signRemove:`_signRemove_93dk9_391`,codeLine:`_codeLine_93dk9_394`,commentTrigger:`_commentTrigger_93dk9_403`,markdownCommentBlock:`_markdownCommentBlock_93dk9_428`,composer:`_composer_93dk9_431`,popover:`_popover_93dk9_438`,ghost:`_ghost_93dk9_450`,markdownLoading:`_markdownLoading_93dk9_453`,deletedBanner:`_deletedBanner_93dk9_458`,markdownArticle:`_markdownArticle_93dk9_461`,markdownBody:`_markdownBody_93dk9_467`,markdownCommentContent:`_markdownCommentContent_93dk9_477`,markdownInlineCode:`_markdownInlineCode_93dk9_499`,markdownPre:`_markdownPre_93dk9_509`,markdownTableScroll:`_markdownTableScroll_93dk9_551`,mermaidDiagram:`_mermaidDiagram_93dk9_599`,mermaidLoading:`_mermaidLoading_93dk9_600`,mermaidFallback:`_mermaidFallback_93dk9_601`,mermaidError:`_mermaidError_93dk9_627`,threads:`_threads_93dk9_632`,threadScopeBar:`_threadScopeBar_93dk9_636`,threadScopeLabel:`_threadScopeLabel_93dk9_646`,threadScopeSwitchRow:`_threadScopeSwitchRow_93dk9_653`,threadScopeSwitchRowDisabled:`_threadScopeSwitchRowDisabled_93dk9_663`,threadScopeOption:`_threadScopeOption_93dk9_666`,threadScopeOptionActive:`_threadScopeOptionActive_93dk9_688`,threadScopeSwitch:`_threadScopeSwitch_93dk9_653`,threadListToolbar:`_threadListToolbar_93dk9_700`,threadFilterWrap:`_threadFilterWrap_93dk9_709`,threadFilterStack:`_threadFilterStack_93dk9_713`,threadBatchButton:`_threadBatchButton_93dk9_732`,threadRailBody:`_threadRailBody_93dk9_778`,thread:`_thread_93dk9_24`,threadLocateFlash:`_threadLocateFlash_93dk9_792`,threadTopButton:`_threadTopButton_93dk9_798`,threadTop:`_threadTop_93dk9_798`,threadAnchor:`_threadAnchor_93dk9_817`,threadTag:`_threadTag_93dk9_824`,threadTagResolved:`_threadTagResolved_93dk9_833`,threadTagSubmit:`_threadTagSubmit_93dk9_838`,threadTagReplied:`_threadTagReplied_93dk9_843`,threadBody:`_threadBody_93dk9_859`,threadComment:`_threadComment_93dk9_866`,threadAgentComment:`_threadAgentComment_93dk9_869`,threadCommentAuthor:`_threadCommentAuthor_93dk9_876`,threadReplyLabel:`_threadReplyLabel_93dk9_877`,threadReply:`_threadReply_93dk9_877`,threadReplyComposer:`_threadReplyComposer_93dk9_892`,replied:`_replied_93dk9_895`,resolved:`_resolved_93dk9_899`,inlineThreadStack:`_inlineThreadStack_93dk9_903`,inlineThread:`_inlineThread_93dk9_239`,inlineThreadSubmit:`_inlineThreadSubmit_93dk9_922`,inlineThreadReplied:`_inlineThreadReplied_93dk9_927`,inlineThreadResolved:`_inlineThreadResolved_93dk9_932`,inlineThreadSection:`_inlineThreadSection_93dk9_944`,inlineThreadSectionUser:`_inlineThreadSectionUser_93dk9_950`,inlineThreadAgentLabel:`_inlineThreadAgentLabel_93dk9_954`,inlineThreadCommentItem:`_inlineThreadCommentItem_93dk9_961`,inlineThreadCommentItemAgent:`_inlineThreadCommentItemAgent_93dk9_969`,inlineThreadCommentActions:`_inlineThreadCommentActions_93dk9_977`,threadIconBtn:`_threadIconBtn_93dk9_983`,commentRow:`_commentRow_93dk9_990`,commentContent:`_commentContent_93dk9_996`,inlineThreadComposer:`_inlineThreadComposer_93dk9_1007`,inlineThreadEdit:`_inlineThreadEdit_93dk9_1010`,inlineThreadEditActions:`_inlineThreadEditActions_93dk9_1016`,headerAction:`_headerAction_93dk9_224`,threadActionBtn:`_threadActionBtn_93dk9_1034`,threadEmpty:`_threadEmpty_93dk9_1040`,threadListInlineBorderless:`_threadListInlineBorderless_93dk9_1043`,emptyStateCard:`_emptyStateCard_93dk9_1049`},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:Z.composer,style:e,onSubmit:e=>{e.preventDefault(),a.trim()&&(c(!0),n(a.trim()).then(()=>o(``)).finally(()=>c(!1)))},children:[(0,Q.jsx)(kD.TextArea,{placeholder:t,value:a,onChange:e=>o(e.target.value),autoSize:{minRows:3,maxRows:8}}),(0,Q.jsxs)(JE,{gap:`small`,justify:`end`,children:[(0,Q.jsx)(GC,{htmlType:`submit`,loading:s,type:`primary`,size:`small`,children:r}),i?(0,Q.jsx)(GC,{onClick:i,size:`small`,children:`取消`}):null]})]})}function lj({onCancel:e,onSubmit:t}){return(0,Q.jsx)(`div`,{className:Z.popover,children:(0,Q.jsx)(cj,{placeholder:`请输入行内评论...`,submitLabel:`评论`,onSubmit:t,onCancel:e})})}var uj={submit:`待提交`,replied:`已回复`,resolved:`已解决`};function dj(e,t){return e.filePath===t.path&&e.fileSnapshotHash===t.snapshotHash}function fj(e){return e.status===`resolved`?`resolved`:pj(e)}function pj(e){return e.comments.some(e=>e.author===`agent`)?`replied`:`submit`}function mj(e){return e.length>0&&e.every(e=>fj(e)===`resolved`)?`resolved`:e.some(e=>pj(e)===`replied`)?`replied`:`submit`}function hj({threads:e,onFocus:t,onPatch:n,onDeleteThread:r,onReply:i,onPatchComment:a,onCopy:o,showStatusTag:s=!0}){let[c,l]=v.useState(null),[u,d]=v.useState(null),[f,p]=v.useState(``),m=e[0],h=mj(e),g=vj(e),_=g?fj(g):h,y=_===`resolved`,b=g?.comments.at(-1),x=yj(_,b?.author);return m?(0,Q.jsxs)(`div`,{className:`${Z.inlineThread} ${gj(h)}`,onClick:()=>t(m.id),children:[(0,Q.jsx)(`div`,{className:Z.inlineThreadHeader,children:s&&h!==`replied`?(0,Q.jsx)(Ck,{className:`${Z.threadTag} ${_j(h)}`,children:uj[h]}):null}),e.map(e=>{let n=fj(e);return(0,Q.jsx)(`div`,{className:Z.inlineThreadSection,onClick:n=>{n.stopPropagation(),t(e.id)},children:e.comments.map(t=>{let r=t.author===`agent`,i=h===`submit`&&n===`submit`&&!r;return(0,Q.jsx)(`div`,{className:`${Z.inlineThreadCommentItem} ${r?Z.inlineThreadCommentItemAgent:``}`,children:(0,Q.jsxs)(`div`,{className:Z.commentRow,children:[(0,Q.jsxs)(`div`,{className:Z.commentContent,children:[r?(0,Q.jsx)(wA.Text,{className:Z.inlineThreadAgentLabel,strong:!0,children:`Agent`}):null,u===t.id?(0,Q.jsxs)(`div`,{className:Z.inlineThreadEdit,children:[(0,Q.jsx)(kD.TextArea,{value:f,autoSize:{minRows:3,maxRows:8},onClick:e=>e.stopPropagation(),onChange:e=>p(e.target.value)}),(0,Q.jsxs)(`div`,{className:Z.inlineThreadEditActions,children:[(0,Q.jsx)(GC,{size:`small`,onClick:e=>{e.stopPropagation(),d(null),p(``)},children:`取消`}),(0,Q.jsx)(GC,{size:`small`,type:`primary`,onClick:async n=>{n.stopPropagation(),await a(e.id,t.id,f),d(null),p(``)},children:`保存`})]})]}):(0,Q.jsx)(wA.Paragraph,{className:Z.inlineThreadBody,children:t.body})]}),i&&u!==t.id?(0,Q.jsx)(`div`,{className:Z.inlineThreadCommentActions,children:(0,Q.jsx)(GC,{className:Z.threadIconBtn,type:`text`,icon:(0,Q.jsx)(kk,{}),onClick:e=>{e.stopPropagation(),d(t.id),p(t.body)}})}):null]})},t.id)})},e.id)}),g&&c===g.id?(0,Q.jsx)(`div`,{className:Z.inlineThreadComposer,children:(0,Q.jsx)(cj,{placeholder:`继续评论...`,submitLabel:`回复`,onCancel:()=>{l(null)},onSubmit:async e=>{await i(g.id,e),l(null)}})}):null,g?(0,Q.jsxs)(`div`,{className:Z.inlineThreadActions,children:[x?(0,Q.jsx)(GC,{type:`primary`,className:Z.threadActionBtn,icon:(0,Q.jsx)(Qk,{}),onClick:e=>{e.stopPropagation(),o({type:`thread`,threadId:g.id})},children:`复制`}):null,_===`replied`?(0,Q.jsx)(GC,{className:Z.threadActionBtn,icon:(0,Q.jsx)(IA,{}),onClick:e=>{e.stopPropagation(),l(g.id)},children:`要求再改`}):null,_===`replied`?null:(0,Q.jsx)(QO,{title:e.length>1?`删除这组评论?`:`删除这条评论线程?`,okText:`删除`,cancelText:`取消`,onConfirm:async()=>{for(let t of e)await r(t.id)},children:(0,Q.jsx)(GC,{className:Z.threadActionBtn,icon:(0,Q.jsx)(Ek,{}),danger:!0,onClick:e=>e.stopPropagation(),children:`删除`})}),y?(0,Q.jsx)(GC,{className:Z.threadActionBtn,icon:(0,Q.jsx)(tk,{}),onClick:e=>{e.stopPropagation(),n(g.id,`submit`)},children:`重新打开`}):null,_===`replied`?(0,Q.jsx)(GC,{className:Z.threadActionBtn,icon:(0,Q.jsx)(Sb,{}),onClick:e=>{e.stopPropagation(),n(g.id,`resolved`)},children:`确认完成`}):null]}):null]}):null}function gj(e){return e===`submit`?Z.inlineThreadSubmit:e===`replied`?Z.inlineThreadReplied:Z.inlineThreadResolved}function _j(e){return e===`submit`?Z.threadTagSubmit:e===`replied`?Z.threadTagReplied:Z.threadTagResolved}function vj(e){return e.find(e=>fj(e)===`replied`)??e.find(e=>fj(e)===`submit`)??e[0]}function yj(e,t){return e===`submit`?!0:e===`replied`&&t===`user`}function bj({threads:e,onLocateThread:t,onPatchThread:n,onDeleteThread:r,onReplyThread:i,onPatchComment:a,onCopyThread:o}){return e.length===0?null:(0,Q.jsx)(`div`,{className:Z.inlineThreadStack,children:(0,Q.jsx)(hj,{threads:e,onFocus:t,onPatch:n,onDeleteThread:r,onReply:i,onPatchComment:a,onCopy:o})})}function xj({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`?`${Z.diffRow} ${Z.add}`:t.type===`remove`?`${Z.diffRow} ${Z.remove}`:Z.diffRow,"data-review-anchor":`${h}:${g}`,children:[(0,Q.jsx)(`button`,{className:Z.lineNo,onClick:()=>t.oldLineNumber&&o(_),children:t.oldLineNumber??``}),(0,Q.jsx)(`button`,{className:Z.lineNo,onClick:()=>t.newLineNumber&&o(_),children:t.newLineNumber??``}),(0,Q.jsx)(`span`,{className:t.type===`add`?`${Z.lineSign} ${Z.signAdd}`:t.type===`remove`?`${Z.lineSign} ${Z.signRemove}`:Z.lineSign,children:tj(t.type)}),(0,Q.jsx)(`pre`,{className:Z.codeLine,children:t.content||` `}),g&&v.length===0?(0,Q.jsx)(`button`,{className:Z.commentTrigger,type:`button`,"aria-label":`添加行评论`,onClick:()=>o(_),children:(0,Q.jsx)(AA,{})}):null,a===_&&g?(0,Q.jsx)(lj,{onCancel:()=>o(null),onSubmit:async t=>{await c({type:`diff-line`,filePath:e,side:h,lineNumber:g},t),o(null)}}):null,(0,Q.jsx)(bj,{threads:v,onLocateThread:l,onPatchThread:u,onDeleteThread:d,onReplyThread:f,onPatchComment:p,onCopyThread:m})]})}function Sj({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`?`${Z.splitCell} ${Z.add}`:e.type===`remove`?`${Z.splitCell} ${Z.remove}`:e.type===`empty`?`${Z.splitCell} ${Z.emptyCell}`:Z.splitCell,"data-review-anchor":e.lineNumber?`${e.side}:${e.lineNumber}`:void 0,children:[(0,Q.jsx)(`button`,{className:Z.lineNo,onClick:()=>e.lineNumber&&i(m),children:e.lineNumber??``}),(0,Q.jsx)(`span`,{className:e.type===`add`?`${Z.lineSign} ${Z.signAdd}`:e.type===`remove`?`${Z.lineSign} ${Z.signRemove}`:Z.lineSign,children:tj(e.type)}),(0,Q.jsx)(`pre`,{className:Z.codeLine,children:e.content||` `}),e.lineNumber&&p.length===0?(0,Q.jsx)(`button`,{className:Z.commentTrigger,type:`button`,"aria-label":`添加行评论`,onClick:()=>i(m),children:(0,Q.jsx)(AA,{})}):null,r===m&&e.lineNumber?(0,Q.jsx)(lj,{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)(bj,{threads:p,onLocateThread:s,onPatchThread:c,onDeleteThread:l,onReplyThread:u,onPatchComment:d,onCopyThread:f})]})}function Cj({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:Z.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)(Ox,{})})}if(t===`middle`&&n&&e){let e=a(n);if(e<=20){let t=`展开全部 ${e} 行隐藏上下文`;return(0,Q.jsx)(`button`,{className:Z.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)(GA,{})})}return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(`button`,{className:Z.hunkHeaderExpand,type:`button`,onClick:()=>o(n,`down`),"aria-label":`向下展开 20 行隐藏上下文`,children:(0,Q.jsx)(HA,{})}),(0,Q.jsx)(`button`,{className:Z.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)(Ox,{})})]})}if(t===`bottom`&&r&&s){let e=a(r);if(e<=20){let t=`展开全部 ${e} 行隐藏上下文`;return(0,Q.jsx)(`button`,{className:Z.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)(GA,{})})}return(0,Q.jsx)(`button`,{className:Z.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)(Ox,{})})}return null}return(0,Q.jsxs)(`div`,{className:Z.hunkHeader,"data-hunk-header":`true`,children:[(0,Q.jsx)(`div`,{className:Z.hunkHeaderRail,children:l()}),(0,Q.jsx)(`div`,{className:Z.hunkHeaderBody,children:e})]})}function wj({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),x=e.hiddenCount-b,S=m(e),C=ZA(r,{...e,direction:S},b);return(0,Q.jsxs)(v.Fragment,{children:[y,n===`inline`?C.map(({key:n,line:r},m)=>(0,Q.jsx)(xj,{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}`)):C.map(({key:e,line:n})=>(0,Q.jsxs)(`div`,{className:Z.splitRow,children:[(0,Q.jsx)(Sj,{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)(Sj,{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)),e.position===`tail`&&x>0&&r?(0,Q.jsxs)(`div`,{className:Z.hunkHeader,"data-hunk-header":`true`,children:[(0,Q.jsx)(`div`,{className:Z.hunkHeaderRail,children:(0,Q.jsx)(`button`,{className:Z.hunkHeaderExpand,type:`button`,onClick:()=>x<=20?_(e):g(e,`down`),"aria-label":x<=20?`展开全部 ${x} 行隐藏上下文`:`向下展开 20 行隐藏上下文`,children:x<=20?(0,Q.jsx)(GA,{}):(0,Q.jsx)(HA,{})})}),(0,Q.jsx)(`div`,{className:Z.hunkHeaderBody})]}):null]})}function Tj({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=ij(e.path),x=v.useRef(null),S=v.useRef(``),C=v.useRef(``),w=v.useMemo(()=>XA(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(()=>QA(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]),aj({filePath:e.path,viewMode:f,threads:t,fileContents:b,gapDescriptors:w,expandedGapLines:h,setExpandedGapLines:g,scrollRef:x,autoScrollKeyRef:S}),oj({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)(Cj,{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:Z.diffCard,ref:x,children:E.map(n=>n.type===`gap`?(0,Q.jsx)(wj,{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:Z.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)(xj,{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:Z.splitTable,children:nj(n.hunk).map(n=>(0,Q.jsxs)(`div`,{className:Z.splitRow,children:[(0,Q.jsx)(Sj,{cell:n.oldCell,rowKey:n.key,filePath:e.path,activeLine:p,setActiveLine:m,threads:t,onCreate:a,...O}),(0,Q.jsx)(Sj,{cell:n.newCell,rowKey:n.key,filePath:e.path,activeLine:p,setActiveLine:m,threads:t,onCreate:a,...O})]},n.key))})]})})()},n.key))})}function Ej({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)(zT,{className:Z.fileHeader,children:[(0,Q.jsxs)(`div`,{className:Z.headerTop,children:[(0,Q.jsxs)(`div`,{className:Z.filePathBlock,children:[n?(0,Q.jsx)(_x,{title:h,children:(0,Q.jsx)(GC,{className:Z.fileExpandBtn,type:`text`,icon:r?(0,Q.jsx)(zA,{}):(0,Q.jsx)(DA,{}),"aria-label":g,onClick:()=>o(e.path)})}):null,(0,Q.jsx)(wA.Text,{strong:!0,className:Z.filePathText,children:e.path})]}),(0,Q.jsxs)(`div`,{className:Z.headerActions,children:[(0,Q.jsx)(GC,{disabled:_.length===0,type:`primary`,className:Z.headerAction,icon:(0,Q.jsx)(Qk,{}),onClick:()=>void a({type:`file-unresolved`,filePath:e.path}),children:`批量提交当前文件的review`}),(0,Q.jsx)(GC,{className:Z.headerAction,icon:(0,Q.jsx)(AA,{}),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)(Ck,{className:Z.threadCount,color:`gold`,children:[_.length,` 个评论线程`]}):null,y.length>0?(0,Q.jsx)(`div`,{className:Z.fileLevelInlineThreads,children:(0,Q.jsx)(hj,{threads:y,onFocus:s,onPatch:c,onDeleteThread:l,onReply:u,onPatchComment:d,onCopy:f})}):null]})}function Dj(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}var Oj=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,kj=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Aj={};function jj(e,t){return((t||Aj).jsx?kj:Oj).test(e)}var Mj=/[ \t\n\f\r]/g;function Nj(e){return typeof e==`object`?e.type===`text`?Pj(e.value):!1:Pj(e)}function Pj(e){return e.replace(Mj,``)===``}var Fj=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};Fj.prototype.normal={},Fj.prototype.property={},Fj.prototype.space=void 0;function Ij(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new Fj(n,r,t)}function Lj(e){return e.toLowerCase()}var Rj=class{constructor(e,t){this.attribute=t,this.property=e}};Rj.prototype.attribute=``,Rj.prototype.booleanish=!1,Rj.prototype.boolean=!1,Rj.prototype.commaOrSpaceSeparated=!1,Rj.prototype.commaSeparated=!1,Rj.prototype.defined=!1,Rj.prototype.mustUseProperty=!1,Rj.prototype.number=!1,Rj.prototype.overloadedBoolean=!1,Rj.prototype.property=``,Rj.prototype.spaceSeparated=!1,Rj.prototype.space=void 0;var zj=s({boolean:()=>Vj,booleanish:()=>Hj,commaOrSpaceSeparated:()=>Kj,commaSeparated:()=>Gj,number:()=>$,overloadedBoolean:()=>Uj,spaceSeparated:()=>Wj}),Bj=0,Vj=qj(),Hj=qj(),Uj=qj(),$=qj(),Wj=qj(),Gj=qj(),Kj=qj();function qj(){return 2**++Bj}var Jj=Object.keys(zj),Yj=class extends Rj{constructor(e,t,n,r){let i=-1;if(super(e,t),Xj(this,`space`,r),typeof n==`number`)for(;++i<Jj.length;){let e=Jj[i];Xj(this,Jj[i],(n&zj[e])===zj[e])}}};Yj.prototype.defined=!0;function Xj(e,t,n){n&&(e[t]=n)}function Zj(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new Yj(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[Lj(r)]=r,n[Lj(a.attribute)]=r}return new Fj(t,n,e.space)}var Qj=Zj({properties:{ariaActiveDescendant:null,ariaAtomic:Hj,ariaAutoComplete:null,ariaBusy:Hj,ariaChecked:Hj,ariaColCount:$,ariaColIndex:$,ariaColSpan:$,ariaControls:Wj,ariaCurrent:null,ariaDescribedBy:Wj,ariaDetails:null,ariaDisabled:Hj,ariaDropEffect:Wj,ariaErrorMessage:null,ariaExpanded:Hj,ariaFlowTo:Wj,ariaGrabbed:Hj,ariaHasPopup:null,ariaHidden:Hj,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Wj,ariaLevel:$,ariaLive:null,ariaModal:Hj,ariaMultiLine:Hj,ariaMultiSelectable:Hj,ariaOrientation:null,ariaOwns:Wj,ariaPlaceholder:null,ariaPosInSet:$,ariaPressed:Hj,ariaReadOnly:Hj,ariaRelevant:null,ariaRequired:Hj,ariaRoleDescription:Wj,ariaRowCount:$,ariaRowIndex:$,ariaRowSpan:$,ariaSelected:Hj,ariaSetSize:$,ariaSort:null,ariaValueMax:$,ariaValueMin:$,ariaValueNow:$,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function $j(e,t){return t in e?e[t]:t}function eM(e,t){return $j(e,t.toLowerCase())}var tM=Zj({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:Gj,acceptCharset:Wj,accessKey:Wj,action:null,allow:null,allowFullScreen:Vj,allowPaymentRequest:Vj,allowUserMedia:Vj,alt:null,as:null,async:Vj,autoCapitalize:null,autoComplete:Wj,autoFocus:Vj,autoPlay:Vj,blocking:Wj,capture:null,charSet:null,checked:Vj,cite:null,className:Wj,cols:$,colSpan:null,content:null,contentEditable:Hj,controls:Vj,controlsList:Wj,coords:$|Gj,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Vj,defer:Vj,dir:null,dirName:null,disabled:Vj,download:Uj,draggable:Hj,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Vj,formTarget:null,headers:Wj,height:$,hidden:Uj,high:$,href:null,hrefLang:null,htmlFor:Wj,httpEquiv:Wj,id:null,imageSizes:null,imageSrcSet:null,inert:Vj,inputMode:null,integrity:null,is:null,isMap:Vj,itemId:null,itemProp:Wj,itemRef:Wj,itemScope:Vj,itemType:Wj,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Vj,low:$,manifest:null,max:null,maxLength:$,media:null,method:null,min:null,minLength:$,multiple:Vj,muted:Vj,name:null,nonce:null,noModule:Vj,noValidate:Vj,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:Vj,optimum:$,pattern:null,ping:Wj,placeholder:null,playsInline:Vj,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Vj,referrerPolicy:null,rel:Wj,required:Vj,reversed:Vj,rows:$,rowSpan:$,sandbox:Wj,scope:null,scoped:Vj,seamless:Vj,selected:Vj,shadowRootClonable:Vj,shadowRootDelegatesFocus:Vj,shadowRootMode:null,shape:null,size:$,sizes:null,slot:null,span:$,spellCheck:Hj,src:null,srcDoc:null,srcLang:null,srcSet:null,start:$,step:null,style:null,tabIndex:$,target:null,title:null,translate:null,type:null,typeMustMatch:Vj,useMap:null,value:Hj,width:$,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Wj,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:Vj,declare:Vj,event:null,face:null,frame:null,frameBorder:null,hSpace:$,leftMargin:$,link:null,longDesc:null,lowSrc:null,marginHeight:$,marginWidth:$,noResize:Vj,noHref:Vj,noShade:Vj,noWrap:Vj,object:null,profile:null,prompt:null,rev:null,rightMargin:$,rules:null,scheme:null,scrolling:Hj,standby:null,summary:null,text:null,topMargin:$,valueType:null,version:null,vAlign:null,vLink:null,vSpace:$,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Vj,disableRemotePlayback:Vj,prefix:null,property:null,results:$,security:null,unselectable:null},space:`html`,transform:eM}),nM=Zj({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:Kj,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:Wj,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:Vj,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:Gj,g2:Gj,glyphName:Gj,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:Kj,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:Wj,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:$,pointsAtY:$,pointsAtZ:$,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Kj,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Kj,rev:Kj,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Kj,requiredFeatures:Kj,requiredFonts:Kj,requiredFormats:Kj,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:Kj,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:$,strokeOpacity:$,strokeWidth:null,style:null,surfaceScale:$,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Kj,tabIndex:$,tableValues:null,target:null,targetX:$,targetY:$,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Kj,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:$j}),rM=Zj({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=Zj({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:eM}),aM=Zj({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),oM={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`},sM=/[A-Z]/g,cM=/-[a-z]/g,lM=/^data[-\w.:]+$/i;function uM(e,t){let n=Lj(t),r=t,i=Rj;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&lM.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(cM,fM);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!cM.test(e)){let n=e.replace(sM,dM);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=Yj}return new i(r,t)}function dM(e){return`-`+e.toLowerCase()}function fM(e){return e.charAt(1).toUpperCase()}var pM=Ij([Qj,tM,rM,iM,aM],`html`),mM=Ij([Qj,nM,rM,iM,aM],`svg`);function hM(e){return e.join(` `).trim()}var gM=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})),_M=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(gM());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}})),vM=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))}})),yM=o(((e,t)=>{var n=(e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(_M()),r=vM();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})),bM=SM(`end`),xM=SM(`start`);function SM(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 CM(e){let t=xM(e),n=bM(e);if(t&&n)return{start:t,end:n}}function wM(e){return!e||typeof e!=`object`?``:`position`in e||`type`in e?EM(e.position):`start`in e||`end`in e?EM(e):`line`in e||`column`in e?TM(e):``}function TM(e){return DM(e&&e.line)+`:`+DM(e&&e.column)}function EM(e){return TM(e&&e.start)+`-`+TM(e&&e.end)}function DM(e){return e&&typeof e==`number`?e:1}var OM=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=wM(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}};OM.prototype.file=``,OM.prototype.name=``,OM.prototype.reason=``,OM.prototype.message=``,OM.prototype.stack=``,OM.prototype.column=void 0,OM.prototype.line=void 0,OM.prototype.ancestors=void 0,OM.prototype.cause=void 0,OM.prototype.fatal=void 0,OM.prototype.place=void 0,OM.prototype.ruleId=void 0,OM.prototype.source=void 0;var kM=l(yM(),1),AM={}.hasOwnProperty,jM=new Map,MM=/[A-Z]/g,NM=new Set([`table`,`tbody`,`thead`,`tfoot`,`tr`]),PM=new Set([`td`,`th`]),FM=`https://github.com/syntax-tree/hast-util-to-jsx-runtime`;function IM(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=qM(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=KM(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`?mM:pM,stylePropertyNameCase:t.stylePropertyNameCase||`dom`,tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=LM(i,e,void 0);return a&&typeof a!=`string`?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function LM(e,t,n){if(t.type===`element`)return RM(e,t,n);if(t.type===`mdxFlowExpression`||t.type===`mdxTextExpression`)return zM(e,t);if(t.type===`mdxJsxFlowElement`||t.type===`mdxJsxTextElement`)return VM(e,t,n);if(t.type===`mdxjsEsm`)return BM(e,t);if(t.type===`root`)return HM(e,t,n);if(t.type===`text`)return UM(e,t)}function RM(e,t,n){let r=e.schema,i=r;t.tagName.toLowerCase()===`svg`&&r.space===`html`&&(i=mM,e.schema=i),e.ancestors.push(t);let a=$M(e,t.tagName,!1),o=JM(e,t),s=XM(e,t);return NM.has(t.tagName)&&(s=s.filter(function(e){return typeof e==`string`?!Nj(e):!0})),WM(e,o,a,t),GM(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function zM(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)}eN(e,t.position)}function BM(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);eN(e,t.position)}function VM(e,t,n){let r=e.schema,i=r;t.name===`svg`&&r.space===`html`&&(i=mM,e.schema=i),e.ancestors.push(t);let a=t.name===null?e.Fragment:$M(e,t.name,!0),o=YM(e,t),s=XM(e,t);return WM(e,o,a,t),GM(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function HM(e,t,n){let r={};return GM(r,XM(e,t)),e.create(t,e.Fragment,r,n)}function UM(e,t){return t.value}function WM(e,t,n,r){typeof n!=`string`&&n!==e.Fragment&&e.passNode&&(t.node=r)}function GM(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function KM(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 qM(e,t){return n;function n(n,r,i,a){let o=Array.isArray(i.children),s=xM(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 JM(e,t){let n={},r,i;for(i in t.properties)if(i!==`children`&&AM.call(t.properties,i)){let a=ZM(e,i,t.properties[i]);if(a){let[i,o]=a;e.tableCellAlignToStyle&&i===`align`&&typeof o==`string`&&PM.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 YM(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 eN(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 eN(e,t.position);else a=r.value===null?!0:r.value;n[i]=a}return n}function XM(e,t){let n=[],r=-1,i=e.passKeys?new Map:jM;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=LM(e,a,o);s!==void 0&&n.push(s)}return n}function ZM(e,t,n){let r=uM(e.schema,t);if(!(n==null||typeof n==`number`&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?Dj(n):hM(n)),r.property===`style`){let t=typeof n==`object`?n:QM(e,String(n));return e.stylePropertyNameCase===`css`&&(t=tN(t)),[`style`,t]}return[e.elementAttributeNameCase===`react`&&r.space?oM[r.property]||r.property:r.attribute,n]}}function QM(e,t){try{return(0,kM.default)(t,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};let n=t,r=new OM("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=FM+`#cannot-parse-style-attribute`,r}}function $M(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=jj(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=jj(t)&&!/^[a-z]/.test(t)?{type:`Identifier`,name:t}:{type:`Literal`,value:t};if(r.type===`Literal`){let t=r.value;return AM.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);eN(e)}function eN(e,t){let n=new OM("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=FM+`#cannot-handle-mdx-estrees-without-createevaluater`,n}function tN(e){let t={},n;for(n in e)AM.call(e,n)&&(t[nN(n)]=e[n]);return t}function nN(e){let t=e.replace(MM,rN);return t.slice(0,3)===`ms-`&&(t=`-`+t),t}function rN(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`]},aN={};function oN(e,t){let n=t||aN;return sN(e,typeof n.includeImageAlt==`boolean`?n.includeImageAlt:!0,typeof n.includeHtml==`boolean`?n.includeHtml:!0)}function sN(e,t,n){if(lN(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 cN(e.children,t,n)}return Array.isArray(e)?cN(e,t,n):``}function cN(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=sN(e[i],t,n);return r.join(``)}function lN(e){return!!(e&&typeof e==`object`)}var uN=document.createElement(`i`);function dN(e){let t=`&`+e+`;`;uN.innerHTML=t;let n=uN.textContent;return n.charCodeAt(n.length-1)===59&&e!==`semi`||n===t?!1:n}function fN(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 pN(e,t){return e.length>0?(fN(e,e.length,0,t),e):t}var mN={}.hasOwnProperty;function hN(e){let t={},n=-1;for(;++n<e.length;)gN(t,e[n]);return t}function gN(e,t){let n;for(n in t){let r=(mN.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n],a;if(i)for(a in i){mN.call(r,a)||(r[a]=[]);let e=i[a];_N(r[a],Array.isArray(e)?e:e?[e]:[])}}}function _N(e,t){let n=-1,r=[];for(;++n<t.length;)(t[n].add===`after`?e:r).push(t[n]);fN(e,0,0,r)}function vN(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 yN(e){return e.replace(/[\t\n\r ]+/g,` `).replace(/^ | $/g,``).toLowerCase().toUpperCase()}var bN=MN(/[A-Za-z]/),xN=MN(/[\dA-Za-z]/),SN=MN(/[#-'*+\--9=?A-Z^-~]/);function CN(e){return e!==null&&(e<32||e===127)}var wN=MN(/\d/),TN=MN(/[\dA-Fa-f]/),EN=MN(/[!-/:-@[-`{-~]/);function DN(e){return e!==null&&e<-2}function ON(e){return e!==null&&(e<0||e===32)}function kN(e){return e===-2||e===-1||e===32}var AN=MN(/\p{P}|\p{S}/u),jN=MN(/\s/);function MN(e){return t;function t(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function NN(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let a=e.charCodeAt(n),o=``;if(a===37&&xN(e.charCodeAt(n+1))&&xN(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 PN(e,t,n,r){let i=r?r-1:1/0,a=0;return o;function o(r){return kN(r)?(e.enter(n),s(r)):t(r)}function s(r){return kN(r)&&a++<i?(e.consume(r),s):(e.exit(n),t(r))}}var FN={tokenize:IN};function IN(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`),PN(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 DN(t)?(e.consume(t),e.exit(`chunkText`),a):(e.consume(t),o)}}var LN={tokenize:zN},RN={tokenize:BN};function zN(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 fN(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(RN,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(RN,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 DN(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++;fN(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 BN(e,t,n){return PN(e,e.attempt(this.parser.constructs.document,t,n),`linePrefix`,this.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)}function VN(e){if(e===null||ON(e)||jN(e))return 1;if(AN(e))return 2}function HN(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 UN={name:`attention`,resolveAll:WN,tokenize:GN};function WN(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};KN(d,-c),KN(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=pN(l,[[`enter`,e[r][1],t],[`exit`,e[r][1],t]])),l=pN(l,[[`enter`,i,t],[`enter`,o,t],[`exit`,o,t],[`enter`,a,t]]),l=pN(l,HN(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=pN(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=pN(l,[[`enter`,e[n][1],t],[`exit`,e[n][1],t]])):u=0,fN(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 GN(e,t){let n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=VN(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=VN(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 KN(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var qN={name:`autolink`,tokenize:JN};function JN(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 bN(t)?(e.consume(t),o):t===64?n(t):l(t)}function o(e){return e===43||e===45||e===46||xN(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||xN(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||CN(r)?n(r):(e.consume(r),c)}function l(t){return t===64?(e.consume(t),u):SN(t)?(e.consume(t),l):n(t)}function u(e){return xN(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||xN(t))&&r++<63){let n=t===45?f:d;return e.consume(t),n}return n(t)}}var YN={partial:!0,tokenize:XN};function XN(e,t,n){return r;function r(t){return kN(t)?PN(e,i,`linePrefix`)(t):i(t)}function i(e){return e===null||DN(e)?t(e):n(e)}}var ZN={continuation:{tokenize:$N},exit:eP,name:`blockQuote`,tokenize:QN};function QN(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 kN(n)?(e.enter(`blockQuotePrefixWhitespace`),e.consume(n),e.exit(`blockQuotePrefixWhitespace`),e.exit(`blockQuotePrefix`),t):(e.exit(`blockQuotePrefix`),t(n))}}function $N(e,t,n){let r=this;return i;function i(t){return kN(t)?PN(e,a,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):a(t)}function a(r){return e.attempt(ZN,t,n)(r)}}function eP(e){e.exit(`blockQuote`)}var tP={name:`characterEscape`,tokenize:nP};function nP(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 EN(r)?(e.enter(`characterEscapeValue`),e.consume(r),e.exit(`characterEscapeValue`),e.exit(`characterEscape`),t):n(r)}}var rP={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=xN,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=TN,u):(e.enter(`characterReferenceValue`),a=7,o=wN,u(t))}function u(s){if(s===59&&i){let i=e.exit(`characterReferenceValue`);return o===xN&&!dN(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 aP={partial:!0,tokenize:cP},oP={concrete:!0,name:`codeFenced`,tokenize:sP};function sP(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`),kN(t)?PN(e,d,`whitespace`)(t):d(t))}function d(n){return n===null||DN(n)?(e.exit(`codeFencedFence`),r.interrupt?t(n):e.check(aP,h,b)(n)):(e.enter(`codeFencedFenceInfo`),e.enter(`chunkString`,{contentType:`string`}),f(n))}function f(t){return t===null||DN(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),d(t)):kN(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),PN(e,p,`whitespace`)(t)):t===96&&t===s?n(t):(e.consume(t),f)}function p(t){return t===null||DN(t)?d(t):(e.enter(`codeFencedFenceMeta`),e.enter(`chunkString`,{contentType:`string`}),m(t))}function m(t){return t===null||DN(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&&kN(t)?PN(e,v,`linePrefix`,a+1)(t):v(t)}function v(t){return t===null||DN(t)?e.check(aP,h,b)(t):(e.enter(`codeFlowValue`),y(t))}function y(t){return t===null||DN(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`),kN(t)?PN(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`),kN(t)?PN(e,d,`whitespace`)(t):d(t)):n(t)}function d(r){return r===null||DN(r)?(e.exit(`codeFencedFence`),t(r)):n(r)}}}function cP(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 lP={name:`codeIndented`,tokenize:dP},uP={partial:!0,tokenize:fP};function dP(e,t,n){let r=this;return i;function i(t){return e.enter(`codeIndented`),PN(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):DN(t)?e.attempt(uP,o,c)(t):(e.enter(`codeFlowValue`),s(t))}function s(t){return t===null||DN(t)?(e.exit(`codeFlowValue`),o(t)):(e.consume(t),s)}function c(n){return e.exit(`codeIndented`),t(n)}}function fP(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):DN(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),i):PN(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):DN(e)?i(e):n(e)}}var pP={name:`codeText`,previous:hP,resolve:mP,tokenize:gP};function mP(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 hP(e){return e!==96||this.events[this.events.length-1][1].type===`characterEscape`}function gP(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)):DN(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||DN(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 _P=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&&vP(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),vP(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),vP(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);vP(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);vP(this.left,t.reverse())}}};function vP(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 yP(e){let t={},n=-1,r,i,a,o,s,c,l,u=new _P(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,bP(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 fN(e,0,1/0,u.slice(0)),!l}function bP(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 xP={resolve:CP,tokenize:wP},SP={partial:!0,tokenize:TP};function CP(e){return yP(e),e}function wP(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):DN(t)?e.check(SP,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 TP(e,t,n){let r=this;return i;function i(t){return e.exit(`chunkContent`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),PN(e,a,`linePrefix`)}function a(i){if(i===null||DN(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 EP(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||CN(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||DN(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||ON(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||CN(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 DP(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):DN(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||DN(t)||s++>999?(e.exit(`chunkString`),u(t)):(e.consume(t),c||=!kN(t),t===92?f:d)}function f(t){return t===91||t===92||t===93?(e.consume(t),s++,d):d(t)}}function OP(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):DN(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),PN(e,l,`linePrefix`)):(e.enter(`chunkString`,{contentType:`string`}),u(t))}function u(t){return t===o||t===null||DN(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 kP(e,t){let n;return r;function r(i){return DN(i)?(e.enter(`lineEnding`),e.consume(i),e.exit(`lineEnding`),n=!0,r):kN(i)?PN(e,r,n?`linePrefix`:`lineSuffix`)(i):t(i)}}var AP={name:`definition`,tokenize:MP},jP={partial:!0,tokenize:NP};function MP(e,t,n){let r=this,i;return a;function a(t){return e.enter(`definition`),o(t)}function o(t){return DP.call(r,e,s,n,`definitionLabel`,`definitionLabelMarker`,`definitionLabelString`)(t)}function s(t){return i=yN(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 ON(t)?kP(e,l)(t):l(t)}function l(t){return EP(e,u,n,`definitionDestination`,`definitionDestinationLiteral`,`definitionDestinationLiteralMarker`,`definitionDestinationRaw`,`definitionDestinationString`)(t)}function u(t){return e.attempt(jP,d,d)(t)}function d(t){return kN(t)?PN(e,f,`whitespace`)(t):f(t)}function f(a){return a===null||DN(a)?(e.exit(`definition`),r.parser.defined.push(i),t(a)):n(a)}}function NP(e,t,n){return r;function r(t){return ON(t)?kP(e,i)(t):n(t)}function i(t){return OP(e,a,n,`definitionTitle`,`definitionTitleMarker`,`definitionTitleString`)(t)}function a(t){return kN(t)?PN(e,o,`whitespace`)(t):o(t)}function o(e){return e===null||DN(e)?t(e):n(e)}}var PP={name:`hardBreakEscape`,tokenize:FP};function FP(e,t,n){return r;function r(t){return e.enter(`hardBreakEscape`),e.consume(t),i}function i(r){return DN(r)?(e.exit(`hardBreakEscape`),t(r)):n(r)}}var IP={name:`headingAtx`,resolve:LP,tokenize:RP};function LP(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`},fN(e,r,n-r+1,[[`enter`,i,t],[`enter`,a,t],[`exit`,a,t],[`exit`,i,t]])),e}function RP(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||ON(t)?(e.exit(`atxHeadingSequence`),s(t)):n(t)}function s(n){return n===35?(e.enter(`atxHeadingSequence`),c(n)):n===null||DN(n)?(e.exit(`atxHeading`),t(n)):kN(n)?PN(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||ON(t)?(e.exit(`atxHeadingText`),s(t)):(e.consume(t),l)}}var zP=`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(`.`),BP=[`pre`,`script`,`style`,`textarea`],VP={concrete:!0,name:`htmlFlow`,resolveTo:WP,tokenize:GP},HP={partial:!0,tokenize:qP},UP={partial:!0,tokenize:KP};function WP(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 GP(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):bN(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):bN(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 bN(t)?(e.consume(t),o=String.fromCharCode(t),g):n(t)}function g(s){if(s===null||s===47||s===62||ON(s)){let c=s===47,l=o.toLowerCase();return!c&&!a&&BP.includes(l)?(i=1,r.interrupt?t(s):O(s)):zP.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||xN(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 kN(t)?(e.consume(t),v):E(t)}function y(t){return t===47?(e.consume(t),E):t===58||t===95||bN(t)?(e.consume(t),b):kN(t)?(e.consume(t),y):E(t)}function b(t){return t===45||t===46||t===58||t===95||xN(t)?(e.consume(t),b):x(t)}function x(t){return t===61?(e.consume(t),S):kN(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):kN(t)?(e.consume(t),S):w(t)}function C(t){return t===c?(e.consume(t),c=null,T):t===null||DN(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||ON(t)?x(t):(e.consume(t),w)}function T(e){return e===47||e===62||kN(e)?y(e):n(e)}function E(t){return t===62?(e.consume(t),D):n(t)}function D(t){return t===null||DN(t)?O(t):kN(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):DN(t)&&(i===6||i===7)?(e.exit(`htmlFlowData`),e.check(HP,R,k)(t)):t===null||DN(t)?(e.exit(`htmlFlowData`),k(t)):(e.consume(t),O)}function k(t){return e.check(UP,A,R)(t)}function A(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),j}function j(t){return t===null||DN(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 BP.includes(n)?(e.consume(t),L):O(t)}return bN(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||DN(t)?(e.exit(`htmlFlowData`),R(t)):(e.consume(t),L)}function R(n){return e.exit(`htmlFlow`),t(n)}}function KP(e,t,n){let r=this;return i;function i(t){return DN(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 qP(e,t,n){return r;function r(r){return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),e.attempt(YN,t,n)}}var JP={name:`htmlText`,tokenize:YP};function YP(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):bN(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):bN(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):DN(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):DN(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):DN(t)?(o=v,N(t)):(e.consume(t),v)}function y(t){return t===null?n(t):t===63?(e.consume(t),b):DN(t)?(o=y,N(t)):(e.consume(t),y)}function b(e){return e===62?M(e):y(e)}function x(t){return bN(t)?(e.consume(t),S):n(t)}function S(t){return t===45||xN(t)?(e.consume(t),S):C(t)}function C(t){return DN(t)?(o=C,N(t)):kN(t)?(e.consume(t),C):M(t)}function w(t){return t===45||xN(t)?(e.consume(t),w):t===47||t===62||ON(t)?T(t):n(t)}function T(t){return t===47?(e.consume(t),M):t===58||t===95||bN(t)?(e.consume(t),E):DN(t)?(o=T,N(t)):kN(t)?(e.consume(t),T):M(t)}function E(t){return t===45||t===46||t===58||t===95||xN(t)?(e.consume(t),E):D(t)}function D(t){return t===61?(e.consume(t),O):DN(t)?(o=D,N(t)):kN(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):DN(t)?(o=O,N(t)):kN(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):DN(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||ON(t)?T(t):(e.consume(t),A)}function j(e){return e===47||e===62||ON(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 kN(t)?PN(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 XP={name:`labelEnd`,resolveAll:eF,resolveTo:tF,tokenize:nF},ZP={tokenize:rF},QP={tokenize:iF},$P={tokenize:aF};function eF(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&&fN(e,0,e.length,n),e}function tF(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=pN(s,e.slice(a+1,a+r+3)),s=pN(s,[[`enter`,u,t]]),s=pN(s,HN(t.parser.constructs.insideSpan.null,e.slice(a+r+4,o-3),t)),s=pN(s,[[`exit`,u,t],e[o-2],e[o-1],[`exit`,l,t]]),s=pN(s,e.slice(o+1)),s=pN(s,[[`exit`,c,t]]),fN(e,a,e.length,s),e}function nF(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(yN(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(ZP,u,o?u:d)(t):t===91?e.attempt(QP,u,o?l:d)(t):o?u(t):d(t)}function l(t){return e.attempt($P,u,d)(t)}function u(e){return t(e)}function d(e){return a._balanced=!0,n(e)}}function rF(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 ON(t)?kP(e,a)(t):a(t)}function a(t){return t===41?u(t):EP(e,o,s,`resourceDestination`,`resourceDestinationLiteral`,`resourceDestinationLiteralMarker`,`resourceDestinationRaw`,`resourceDestinationString`,32)(t)}function o(t){return ON(t)?kP(e,c)(t):u(t)}function s(e){return n(e)}function c(t){return t===34||t===39||t===40?OP(e,l,n,`resourceTitle`,`resourceTitleMarker`,`resourceTitleString`)(t):u(t)}function l(t){return ON(t)?kP(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 DP.call(r,e,a,o,`reference`,`referenceMarker`,`referenceString`)(t)}function a(e){return r.parser.defined.includes(yN(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}function aF(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 oF={name:`labelStartImage`,resolveAll:XP.resolveAll,tokenize:sF};function sF(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 cF={name:`labelStartLink`,resolveAll:XP.resolveAll,tokenize:lF};function lF(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 uF={name:`lineEnding`,tokenize:dF};function dF(e,t){return n;function n(n){return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),PN(e,t,`linePrefix`)}}var fF={name:`thematicBreak`,tokenize:pF};function pF(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||DN(a))?(e.exit(`thematicBreak`),t(a)):n(a)}function c(t){return t===i?(e.consume(t),r++,c):(e.exit(`thematicBreakSequence`),kN(t)?PN(e,s,`whitespace`)(t):s(t))}}var mF={continuation:{tokenize:vF},exit:bF,name:`list`,tokenize:_F},hF={partial:!0,tokenize:xF},gF={partial:!0,tokenize:yF};function _F(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:wN(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(fF,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 wN(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(YN,r.interrupt?n:u,e.attempt(hF,f,d))}function u(e){return r.containerState.initialBlankLine=!0,a++,f(e)}function d(t){return kN(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 vF(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(YN,i,a);function i(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,PN(e,t,`listItemIndent`,r.containerState.size+1)(n)}function a(n){return r.containerState.furtherBlankLines||!kN(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(gF,t,o)(n))}function o(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,PN(e,e.attempt(mF,t,n),`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(i)}}function yF(e,t,n){let r=this;return PN(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 bF(e){e.exit(this.containerState.type)}function xF(e,t,n){let r=this;return PN(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!kN(e)&&i&&i[1].type===`listItemPrefixWhitespace`?t(e):n(e)}}var SF={name:`setextUnderline`,resolveTo:CF,tokenize:wF};function CF(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 wF(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`),kN(t)?PN(e,c,`lineSuffix`)(t):c(t))}function c(r){return r===null||DN(r)?(e.exit(`setextHeadingLine`),t(r)):n(r)}}var TF={tokenize:EF};function EF(e){let t=this,n=e.attempt(YN,r,e.attempt(this.parser.constructs.flowInitial,i,PN(e,e.attempt(this.parser.constructs.flow,i,e.attempt(xP,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 DF={resolveAll:jF()},OF=AF(`string`),kF=AF(`text`);function AF(e){return{resolveAll:jF(e===`text`?MF: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 jF(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 MF(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 NF=s({attentionMarkers:()=>VF,contentInitial:()=>FF,disable:()=>HF,document:()=>PF,flow:()=>LF,flowInitial:()=>IF,insideSpan:()=>BF,string:()=>RF,text:()=>zF}),PF={42:mF,43:mF,45:mF,48:mF,49:mF,50:mF,51:mF,52:mF,53:mF,54:mF,55:mF,56:mF,57:mF,62:ZN},FF={91:AP},IF={[-2]:lP,[-1]:lP,32:lP},LF={35:IP,42:fF,45:[SF,fF],60:VP,61:SF,95:fF,96:oP,126:oP},RF={38:rP,92:tP},zF={[-5]:uF,[-4]:uF,[-3]:uF,33:oF,38:rP,42:UN,60:[qN,JP],91:cF,92:[PP,tP],93:XP,95:UN,96:pP},BF={null:[UN,DF]},VF={null:[42,95]},HF={null:[]};function UF(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=pN(o,e),g(),o[o.length-1]===null?(w(t,0),l.events=HN(a,l.events,l),l.events):[]}function f(e,t){return GF(p(e),t)}function p(e){return WF(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){DN(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&&fN(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 WF(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 GF(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 _F(e){let t={constructs:BM([iF,...(e||{}).extensions||[]]),content:n(oN),defined:[],document:n(cN),flow:n(XP),lazy:{},string:n($P),text:n(eF)};return t;function n(e){return n;function n(n){return mF(t,e,n)}}}function vF(e){for(;!WN(e););return e}var yF=/[\0\t\n\r]/g;function bF(){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(yF.lastIndex=u,c=yF.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 xF=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function SF(e){return e.replace(xF,CF)}function CF(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){let e=n.charCodeAt(1),t=e===120||e===88;return UM(n.slice(t?2:1),t?16:10)}return IM(n)||e}var wF={}.hasOwnProperty;function TF(e,t,n){return t&&typeof t==`object`&&(n=t,t=void 0),EF(n)(vF(_F(n).document().write(bF()(e,t,!0))))}function EF(e){let t={transforms:[],canContainEols:[`emphasis`,`fragment`,`heading`,`paragraph`,`strong`],enter:{autolink:a(ce),autolinkProtocol:T,autolinkEmail:T,atxHeading:a(G),blockQuote:a(te),characterEscape:T,characterReference:T,codeFenced:a(ne),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:a(ne,o),codeText:a(re,o),codeTextData:T,data:T,codeFlowValue:T,definition:a(ie),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:a(ae),hardBreakEscape:a(K),hardBreakTrailing:a(K),htmlFlow:a(oe,o),htmlFlowData:T,htmlText:a(oe,o),htmlTextData:T,image:a(se),label:o,link:a(ce),listItem:a(le),listItemValue:f,listOrdered:a(q,d),listUnordered:a(q),paragraph:a(ue),reference:z,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:a(G),strong:a(de),thematicBreak:a(pe)},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()}};OF(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]];wF.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]||AF).call(a,void 0,e[0])}for(r.position={start:DF(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:DF(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:DF(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]||AF).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+Yj({start:e.start,end:e.end})+`): it’s not open`);n.position.end=DF(e.end)}function u(){return jM(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=WM(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=fe(),n.position={start:DF(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=DF(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=DF(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=SF(t),n.identifier=WM(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=WM(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=UM(t,n===`characterReferenceMarkerNumeric`?10:16),this.data.characterReferenceType=void 0):r=IM(t);let i=this.stack[this.stack.length-1];i.value+=r}function U(e){let t=this.stack.pop();t.position.end=DF(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 ne(){return{type:`code`,lang:null,meta:null,value:``}}function re(){return{type:`inlineCode`,value:``}}function ie(){return{type:`definition`,identifier:``,label:null,title:null,url:``}}function ae(){return{type:`emphasis`,children:[]}}function G(){return{type:`heading`,depth:0,children:[]}}function K(){return{type:`break`}}function oe(){return{type:`html`,value:``}}function se(){return{type:`image`,title:null,url:``,alt:null}}function ce(){return{type:`link`,title:null,url:``,children:[]}}function q(e){return{type:`list`,ordered:e.type===`listOrdered`,start:null,spread:e._spread,children:[]}}function le(e){return{type:`listItem`,spread:e._spread,checked:null,children:[]}}function ue(){return{type:`paragraph`,children:[]}}function de(){return{type:`strong`,children:[]}}function fe(){return{type:`text`,value:``}}function pe(){return{type:`thematicBreak`}}}function DF(e){return{line:e.line,column:e.column,offset:e.offset}}function OF(e,t){let n=-1;for(;++n<t.length;){let r=t[n];Array.isArray(r)?OF(e,r):kF(e,r)}}function kF(e,t){let n;for(n in t)if(wF.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 AF(e,t){throw Error(e?"Cannot close `"+e.type+"` ("+Yj({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Yj({start:t.start,end:t.end})+`) is open`:"Cannot close document, a token (`"+t.type+"`, "+Yj({start:t.start,end:t.end})+`) is still open`)}function jF(e){let t=this;t.parser=n;function n(n){return TF(n,{...t.data(`settings`),...e,extensions:t.data(`micromarkExtensions`)||[],mdastExtensions:t.data(`fromMarkdownExtensions`)||[]})}}function MF(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 NF(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 KF(e){let t={constructs:hN([NF,...(e||{}).extensions||[]]),content:n(FN),defined:[],document:n(LN),flow:n(TF),lazy:{},string:n(OF),text:n(kF)};return t;function n(e){return n;function n(n){return UF(t,e,n)}}}function qF(e){for(;!yP(e););return e}var JF=/[\0\t\n\r]/g;function YF(){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(JF.lastIndex=u,c=JF.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 XF=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function ZF(e){return e.replace(XF,QF)}function QF(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){let e=n.charCodeAt(1),t=e===120||e===88;return vN(n.slice(t?2:1),t?16:10)}return dN(n)||e}var $F={}.hasOwnProperty;function eI(e,t,n){return t&&typeof t==`object`&&(n=t,t=void 0),tI(n)(qF(KF(n).document().write(YF()(e,t,!0))))}function tI(e){let t={transforms:[],canContainEols:[`emphasis`,`fragment`,`heading`,`paragraph`,`strong`],enter:{autolink:a(ce),autolinkProtocol:T,autolinkEmail:T,atxHeading:a(G),blockQuote:a(te),characterEscape:T,characterReference:T,codeFenced:a(ne),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:a(ne,o),codeText:a(re,o),codeTextData:T,data:T,codeFlowValue:T,definition:a(ie),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:a(ae),hardBreakEscape:a(K),hardBreakTrailing:a(K),htmlFlow:a(oe,o),htmlFlowData:T,htmlText:a(oe,o),htmlTextData:T,image:a(se),label:o,link:a(ce),listItem:a(le),listItemValue:f,listOrdered:a(q,d),listUnordered:a(q),paragraph:a(ue),reference:z,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:a(G),strong:a(de),thematicBreak:a(pe)},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()}};rI(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]];$F.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]||aI).call(a,void 0,e[0])}for(r.position={start:nI(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:nI(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:nI(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]||aI).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+wM({start:e.start,end:e.end})+`): it’s not open`);n.position.end=nI(e.end)}function u(){return oN(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=yN(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=fe(),n.position={start:nI(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=nI(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=nI(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=ZF(t),n.identifier=yN(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=yN(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=vN(t,n===`characterReferenceMarkerNumeric`?10:16),this.data.characterReferenceType=void 0):r=dN(t);let i=this.stack[this.stack.length-1];i.value+=r}function U(e){let t=this.stack.pop();t.position.end=nI(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 ne(){return{type:`code`,lang:null,meta:null,value:``}}function re(){return{type:`inlineCode`,value:``}}function ie(){return{type:`definition`,identifier:``,label:null,title:null,url:``}}function ae(){return{type:`emphasis`,children:[]}}function G(){return{type:`heading`,depth:0,children:[]}}function K(){return{type:`break`}}function oe(){return{type:`html`,value:``}}function se(){return{type:`image`,title:null,url:``,alt:null}}function ce(){return{type:`link`,title:null,url:``,children:[]}}function q(e){return{type:`list`,ordered:e.type===`listOrdered`,start:null,spread:e._spread,children:[]}}function le(e){return{type:`listItem`,spread:e._spread,checked:null,children:[]}}function ue(){return{type:`paragraph`,children:[]}}function de(){return{type:`strong`,children:[]}}function fe(){return{type:`text`,value:``}}function pe(){return{type:`thematicBreak`}}}function nI(e){return{line:e.line,column:e.column,offset:e.offset}}function rI(e,t){let n=-1;for(;++n<t.length;){let r=t[n];Array.isArray(r)?rI(e,r):iI(e,r)}}function iI(e,t){let n;for(n in t)if($F.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 aI(e,t){throw Error(e?"Cannot close `"+e.type+"` ("+wM({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+wM({start:t.start,end:t.end})+`) is open`:"Cannot close document, a token (`"+t.type+"`, "+wM({start:t.start,end:t.end})+`) is still open`)}function oI(e){let t=this;t.parser=n;function n(n){return eI(n,{...t.data(`settings`),...e,extensions:t.data(`micromarkExtensions`)||[],mdastExtensions:t.data(`fromMarkdownExtensions`)||[]})}}function sI(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 cI(e,t){let n={type:`element`,tagName:`br`,properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:`text`,value:`
|
|
262
|
+
`}]}function lI(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 uI(e,t){let n={type:`element`,tagName:`del`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function dI(e,t){let n={type:`element`,tagName:`em`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function fI(e,t){let n=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,r=String(t.identifier).toUpperCase(),i=NN(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 pI(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 mI(e,t){if(e.options.allowDangerousHtml){let n={type:`raw`,value:t.value};return e.patch(t,n),e.applyData(t,n)}}function hI(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 gI(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return hI(e,t);let i={src:NN(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 _I(e,t){let n={src:NN(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 vI(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 yI(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return hI(e,t);let i={href:NN(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 bI(e,t){let n={href:NN(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 xI(e,t,n){let r=e.all(t),i=n?SI(n):CI(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 SI(e){let t=!1;if(e.type===`list`){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r<n.length;)t=CI(n[r])}return t}function CI(e){return e.spread??e.children.length>1}function wI(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 TI(e,t){let n={type:`element`,tagName:`p`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function EI(e,t){let n={type:`root`,children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function DI(e,t){let n={type:`element`,tagName:`strong`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function OI(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=xM(t.children[1]),o=bM(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 kI(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 AI(e,t){let n={type:`element`,tagName:`td`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}var jI=9,MI=32;function NI(e){let t=String(e),n=/\r?\n|\r/g,r=n.exec(t),i=0,a=[];for(;r;)a.push(PI(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(PI(t.slice(i),i>0,!1)),a.join(``)}function PI(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;t===jI||t===MI;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;t===jI||t===MI;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):``}function FI(e,t){let n={type:`text`,value:NI(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function II(e,t){let n={type:`element`,tagName:`hr`,properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}var LI={blockquote:sI,break:cI,code:lI,delete:uI,emphasis:dI,footnoteReference:fI,heading:pI,html:mI,imageReference:gI,image:_I,inlineCode:vI,linkReference:yI,link:bI,listItem:xI,list:wI,paragraph:TI,root:EI,strong:DI,table:OI,tableCell:AI,tableRow:kI,text:FI,thematicBreak:II,toml:RI,yaml:RI,definition:RI,footnoteDefinition:RI};function RI(){}var zI=typeof self==`object`?self:globalThis,BI=(e,t)=>{switch(e){case`Function`:case`SharedWorker`:case`Worker`:case`eval`:case`setInterval`:case`setTimeout`:throw TypeError(`unable to deserialize `+e)}return new zI[e](t)},VI=(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(BI(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(BI(a,o),i)};return r},HI=e=>VI(new Map,e)(0),UI=``,{toString:WI}={},{keys:GI}=Object,KI=e=>{let t=typeof e;if(t!==`object`||!e)return[0,t];let n=WI.call(e).slice(8,-1);switch(n){case`Array`:return[1,UI];case`Object`:return[2,UI];case`Date`:return[3,UI];case`RegExp`:return[4,UI];case`Map`:return[5,UI];case`Set`:return[6,UI];case`DataView`:return[1,n]}return n.includes(`Array`)?[1,n]:n.includes(`Error`)?[7,n]:[2,n]},qI=([e,t])=>e===0&&(t===`function`||t===`symbol`),JI=(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]=KI(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 GI(r))(e||!qI(KI(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||!(qI(KI(n))||qI(KI(i))))&&t.push([a(n),a(i)]);return n}case 6:{let t=[],n=i([o,t],r);for(let n of r)(e||!qI(KI(n)))&&t.push(a(n));return n}}let{message:c}=r;return i([o,{name:s,message:c}],r)};return a},YI=(e,{json:t,lossy:n}={})=>{let r=[];return JI(!(t||n),!!t,new Map,r)(e),r},XI=typeof structuredClone==`function`?(e,t)=>t&&(`json`in t||`lossy`in t)?HI(YI(e,t)):structuredClone(e):(e,t)=>HI(YI(e,t));function ZI(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 QI(e,t){return`Back to reference `+(e+1)+(t>1?`-`+t:``)}function $I(e){let t=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,n=e.options.footnoteBackContent||ZI,r=e.options.footnoteBackLabel||QI,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=NN(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:{...XI(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 eL=(function(e){if(e==null)return aL;if(typeof e==`function`)return iL(e);if(typeof e==`object`)return Array.isArray(e)?tL(e):nL(e);if(typeof e==`string`)return rL(e);throw Error(`Expected function, string, or object as test`)});function tL(e){let t=[],n=-1;for(;++n<e.length;)t[n]=eL(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 nL(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 rL(e){return iL(t);function t(t){return t&&t.type===e}}function iL(e){return t;function t(t,n,r){return!!(oL(t)&&e.call(this,t,typeof n==`number`?n:void 0,r||void 0))}}function aL(){return!0}function oL(e){return typeof e==`object`&&!!e&&`type`in e}function sL(e){return e}var cL=[];function lL(e,t,n,r){let i;typeof t==`function`&&typeof n!=`function`?(r=n,n=t):i=t;let a=eL(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 (`+sL(e.type+(t?`<`+t+`>`:``))+`)`})}return u;function u(){let l=cL,u,d,f;if((!t||a(e,i,c[c.length-1]||void 0))&&(l=uL(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 uL(e){return Array.isArray(e)?e:typeof e==`number`?[!0,e]:e==null?cL:[e]}function dL(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),lL(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 fL={}.hasOwnProperty,pL={};function mL(e,t){let n=t||pL,r=new Map,i=new Map,a={all:s,applyData:gL,definitionById:r,footnoteById:i,footnoteCounts:new Map,footnoteOrder:[],handlers:{...LI,...n.handlers},one:o,options:n,patch:hL,wrap:vL};return dL(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(fL.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=XI(n);return r.children=a.all(e),r}return XI(e)}return(a.options.unknownHandler||_L)(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=yL(i.value)),!Array.isArray(i)&&i.type===`element`)){let e=i.children[0];e&&e.type===`text`&&(e.value=yL(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t}}function hL(e,t){e.position&&(t.position=CM(e))}function gL(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,XI(i)),`children`in n&&n.children&&r!=null&&(n.children=r)}return n}function _L(e,t){let n=t.data||{},r=`value`in t&&!(fL.call(n,`hProperties`)||fL.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 vL(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 KI(e,t){return e&&`run`in e?async function(n,r){let i=GI(n,{file:r,...t});await e.run(i,r)}:function(n,r){return GI(n,{file:r,...e||t})}}function qI(e){if(e)throw e}var JI=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 YI(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 XI(){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?ZI(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 ZI(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 QI={basename:$I,dirname:eL,extname:tL,join:nL,sep:`/`};function $I(e,t){if(t!==void 0&&typeof t!=`string`)throw TypeError(`"ext" argument must be a string`);aL(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 eL(e){if(aL(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 tL(e){aL(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 nL(...e){let t=-1,n;for(;++t<e.length;)aL(e[t]),e[t]&&(n=n===void 0?e[t]:n+`/`+e[t]);return n===void 0?`.`:rL(n)}function rL(e){aL(e);let t=e.codePointAt(0)===47,n=iL(e,!t);return n.length===0&&!t&&(n=`.`),n.length>0&&e.codePointAt(e.length-1)===47&&(n+=`/`),t?`/`+n:n}function iL(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 aL(e){if(typeof e!=`string`)throw TypeError(`Path must be a string. Received `+JSON.stringify(e))}var oL={cwd:sL};function sL(){return`/`}function cL(e){return!!(typeof e==`object`&&e&&`href`in e&&e.href&&`protocol`in e&&e.protocol&&e.auth===void 0)}function lL(e){if(typeof e==`string`)e=new URL(e);else if(!cL(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 uL(e)}function uL(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 dL=[`history`,`path`,`basename`,`stem`,`extname`,`dirname`],fL=class{constructor(e){let t;t=e?cL(e)?{path:e}:typeof e==`string`||gL(e)?{value:e}:e:{},this.cwd=`cwd`in t?``:oL.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<dL.length;){let e=dL[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)dL.includes(r)||(this[r]=t[r])}get basename(){return typeof this.path==`string`?QI.basename(this.path):void 0}set basename(e){mL(e,`basename`),pL(e,`basename`),this.path=QI.join(this.dirname||``,e)}get dirname(){return typeof this.path==`string`?QI.dirname(this.path):void 0}set dirname(e){hL(this.basename,`dirname`),this.path=QI.join(e||``,this.basename)}get extname(){return typeof this.path==`string`?QI.extname(this.path):void 0}set extname(e){if(pL(e,`extname`),hL(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=QI.join(this.dirname,this.stem+(e||``))}get path(){return this.history[this.history.length-1]}set path(e){cL(e)&&(e=lL(e)),mL(e,`path`),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path==`string`?QI.basename(this.path,this.extname):void 0}set stem(e){mL(e,`stem`),pL(e,`stem`),this.path=QI.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 $j(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 pL(e,t){if(e&&e.includes(QI.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+QI.sep+"`")}function mL(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function hL(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}function gL(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var _L=(function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r}),vL=l(JI(),1),yL={}.hasOwnProperty,bL=new class e extends _L{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=XI()}copy(){let t=new e,n=-1;for(;++n<this.attachers.length;){let e=this.attachers[n];t.use(...e)}return t.data((0,vL.default)(!0,{},this.namespace)),t}data(e,t){return typeof e==`string`?arguments.length===2?(CL(`data`,this.frozen),this.namespace[e]=t,this):yL.call(this.namespace,e)&&this.namespace[e]||void 0:e?(CL(`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=EL(e),n=this.parser||this.Parser;return xL(`parse`,n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),xL(`process`,this.parser||this.Parser),SL(`process`,this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let a=EL(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);OL(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(),xL(`processSync`,this.parser||this.Parser),SL(`processSync`,this.compiler||this.Compiler),this.process(e,r),TL(`processSync`,`process`,t),n;function r(e,r){t=!0,qI(e),n=r}}run(e,t,n){wL(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=EL(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),TL(`runSync`,`run`,n),r;function i(e,t){qI(e),r=t,n=!0}}stringify(e,t){this.freeze();let n=EL(t),r=this.compiler||this.Compiler;return SL(`stringify`,r),wL(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(CL(`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,vL.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];YI(o)&&YI(r)&&(r=(0,vL.default)(!0,o,r)),n[i]=[e,r,...a]}}}}().freeze();function xL(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `parser`")}function SL(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `compiler`")}function CL(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 wL(e){if(!YI(e)||typeof e.type!=`string`)throw TypeError("Expected node, got `"+e+"`")}function TL(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function EL(e){return DL(e)?e:new fL(e)}function DL(e){return!!(e&&typeof e==`object`&&`message`in e&&`messages`in e)}function OL(e){return typeof e==`string`||kL(e)}function kL(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var AL=[],jL={allowDangerousHtml:!0},ML=/^(https?|ircs?|mailto|xmpp)$/i,NL=[{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 PL(e){let t=FL(e),n=IL(e);return LL(t.runSync(t.parse(n),n),e)}function FL(e){let t=e.rehypePlugins||AL,n=e.remarkPlugins||AL,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...jL}:jL;return bL().use(jF).use(n).use(KI,r).use(t)}function IL(e){let t=e.children||``,n=new fL;return typeof t==`string`?n.value=t:``+t,n}function LL(e,t){let n=t.allowedElements,r=t.allowElement,i=t.components,a=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,c=t.urlTransform||RL;for(let e of NL)Object.hasOwn(t,e.from)&&``+e.from+(e.to?"use `"+e.to+"` instead":`remove it`)+e.id;return II(e,l),sM(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 kM)if(Object.hasOwn(kM,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=kM[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 RL(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||ML.test(e.slice(0,t))?e:``}var zL=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),BL=Object.assign(VL(Error),{eval:VL(EvalError),range:VL(RangeError),reference:VL(ReferenceError),syntax:VL(SyntaxError),type:VL(TypeError),uri:VL(URIError)});function VL(e){return t.displayName=e.displayName||e.name,t;function t(t,...n){return new e(t&&(0,zL.default)(t,...n))}}var HL={}.hasOwnProperty,UL={yaml:`-`,toml:`+`};function WL(e){let t=[],n=-1,r=Array.isArray(e)?e:e?[e]:[`yaml`];for(;++n<r.length;)t[n]=GL(r[n]);return t}function GL(e){let t=e;if(typeof t==`string`){if(!HL.call(UL,t))throw BL("Missing matter definition for `%s`",t);t={type:t,marker:UL[t]}}else if(typeof t!=`object`)throw BL("Expected matter to be an object, not `%j`",t);if(!HL.call(t,`type`))throw BL("Missing `type` in matter `%j`",t);if(!HL.call(t,`fence`)&&!HL.call(t,`marker`))throw BL("Missing `marker` or `fence` in matter `%j`",t);return t}function KL(e){let t=WL(e),n={},r=-1;for(;++r<t.length;){let e=t[r],i=JL(e,`open`).charCodeAt(0),a=qL(e),o=n[i];Array.isArray(o)?o.push(a):n[i]=[a]}return{flow:n}}function qL(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=JL(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),eN(e)?(l.enter(`whitespace`),h(e)):g(e)):e===s.charCodeAt(c++)?(l.consume(e),m):d(e)}function h(e){return eN(e)?(l.consume(e),h):(l.exit(`whitespace`),g(e))}function g(t){return QM(t)?(l.exit(r),l.enter(`lineEnding`),l.consume(t),l.exit(`lineEnding`),s=JL(e,`close`),c=0,l.attempt(o,b,_)):d(t)}function _(e){return e===null||QM(e)?y(e):(l.enter(a),v(e))}function v(e){return e===null||QM(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),eN(t)?(e.enter(`whitespace`),l(t)):u(t)):t===s.charCodeAt(a++)?(e.consume(t),c):n(t)}function l(t){return eN(t)?(e.consume(t),l):(e.exit(`whitespace`),u(t))}function u(i){return i===null||QM(i)?(e.exit(r),t(i)):n(i)}}}function JL(e,t){return e.marker?YL(e.marker,t).repeat(3):YL(e.fence,t)}function YL(e,t){return typeof e==`string`?e:e[t]}function XL(e){if(typeof e!=`string`)throw TypeError(`Expected a string`);return e.replace(/[|\\{}()[\]^$+*?.]/g,`\\$&`).replace(/-/g,`\\x2d`)}function ZL(e){let t=WL(e),n={},r={},i=-1;for(;++i<t.length;){let e=t[i];n[e.type]=QL(e),r[e.type]=$L,r[e.type+`Value`]=eR}return{enter:n,exit:r}}function QL(e){return t;function t(t){this.enter({type:e.type,value:``},t),this.buffer()}}function $L(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 eR(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function tR(e){let t=[],n={},r=WL(e),i=-1;for(;++i<r.length;){let e=r[i];n[e.type]=nR(e);let a=rR(e,`open`);t.push({atBreak:!0,character:a.charAt(0),after:XL(a.charAt(1))})}return{unsafe:t,handlers:n}}function nR(e){let t=rR(e,`open`),n=rR(e,`close`);return r;function r(e){return t+(e.value?`
|
|
270
|
+
`}),n}function yL(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function bL(e,t){let n=mL(e,t),r=n.one(e,void 0),i=$I(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 xL(e,t){return e&&`run`in e?async function(n,r){let i=bL(n,{file:r,...t});await e.run(i,r)}:function(n,r){return bL(n,{file:r,...e||t})}}function SL(e){if(e)throw e}var CL=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 wL(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 TL(){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?EL(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 EL(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 DL={basename:OL,dirname:kL,extname:AL,join:jL,sep:`/`};function OL(e,t){if(t!==void 0&&typeof t!=`string`)throw TypeError(`"ext" argument must be a string`);PL(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 kL(e){if(PL(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 AL(e){PL(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 jL(...e){let t=-1,n;for(;++t<e.length;)PL(e[t]),e[t]&&(n=n===void 0?e[t]:n+`/`+e[t]);return n===void 0?`.`:ML(n)}function ML(e){PL(e);let t=e.codePointAt(0)===47,n=NL(e,!t);return n.length===0&&!t&&(n=`.`),n.length>0&&e.codePointAt(e.length-1)===47&&(n+=`/`),t?`/`+n:n}function NL(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 PL(e){if(typeof e!=`string`)throw TypeError(`Path must be a string. Received `+JSON.stringify(e))}var FL={cwd:IL};function IL(){return`/`}function LL(e){return!!(typeof e==`object`&&e&&`href`in e&&e.href&&`protocol`in e&&e.protocol&&e.auth===void 0)}function RL(e){if(typeof e==`string`)e=new URL(e);else if(!LL(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 zL(e)}function zL(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 BL=[`history`,`path`,`basename`,`stem`,`extname`,`dirname`],VL=class{constructor(e){let t;t=e?LL(e)?{path:e}:typeof e==`string`||GL(e)?{value:e}:e:{},this.cwd=`cwd`in t?``:FL.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<BL.length;){let e=BL[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)BL.includes(r)||(this[r]=t[r])}get basename(){return typeof this.path==`string`?DL.basename(this.path):void 0}set basename(e){UL(e,`basename`),HL(e,`basename`),this.path=DL.join(this.dirname||``,e)}get dirname(){return typeof this.path==`string`?DL.dirname(this.path):void 0}set dirname(e){WL(this.basename,`dirname`),this.path=DL.join(e||``,this.basename)}get extname(){return typeof this.path==`string`?DL.extname(this.path):void 0}set extname(e){if(HL(e,`extname`),WL(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=DL.join(this.dirname,this.stem+(e||``))}get path(){return this.history[this.history.length-1]}set path(e){LL(e)&&(e=RL(e)),UL(e,`path`),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path==`string`?DL.basename(this.path,this.extname):void 0}set stem(e){UL(e,`stem`),HL(e,`stem`),this.path=DL.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 OM(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 HL(e,t){if(e&&e.includes(DL.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+DL.sep+"`")}function UL(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function WL(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}function GL(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var KL=(function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r}),qL=l(CL(),1),JL={}.hasOwnProperty,YL=new class e extends KL{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=TL()}copy(){let t=new e,n=-1;for(;++n<this.attachers.length;){let e=this.attachers[n];t.use(...e)}return t.data((0,qL.default)(!0,{},this.namespace)),t}data(e,t){return typeof e==`string`?arguments.length===2?(QL(`data`,this.frozen),this.namespace[e]=t,this):JL.call(this.namespace,e)&&this.namespace[e]||void 0:e?(QL(`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=tR(e),n=this.parser||this.Parser;return XL(`parse`,n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),XL(`process`,this.parser||this.Parser),ZL(`process`,this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let a=tR(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);rR(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(),XL(`processSync`,this.parser||this.Parser),ZL(`processSync`,this.compiler||this.Compiler),this.process(e,r),eR(`processSync`,`process`,t),n;function r(e,r){t=!0,SL(e),n=r}}run(e,t,n){$L(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=tR(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),eR(`runSync`,`run`,n),r;function i(e,t){SL(e),r=t,n=!0}}stringify(e,t){this.freeze();let n=tR(t),r=this.compiler||this.Compiler;return ZL(`stringify`,r),$L(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(QL(`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,qL.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];wL(o)&&wL(r)&&(r=(0,qL.default)(!0,o,r)),n[i]=[e,r,...a]}}}}().freeze();function XL(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `parser`")}function ZL(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `compiler`")}function QL(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 $L(e){if(!wL(e)||typeof e.type!=`string`)throw TypeError("Expected node, got `"+e+"`")}function eR(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function tR(e){return nR(e)?e:new VL(e)}function nR(e){return!!(e&&typeof e==`object`&&`message`in e&&`messages`in e)}function rR(e){return typeof e==`string`||iR(e)}function iR(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var aR=[],oR={allowDangerousHtml:!0},sR=/^(https?|ircs?|mailto|xmpp)$/i,cR=[{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 lR(e){let t=uR(e),n=dR(e);return fR(t.runSync(t.parse(n),n),e)}function uR(e){let t=e.rehypePlugins||aR,n=e.remarkPlugins||aR,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...oR}:oR;return YL().use(oI).use(n).use(xL,r).use(t)}function dR(e){let t=e.children||``,n=new VL;return typeof t==`string`?n.value=t:``+t,n}function fR(e,t){let n=t.allowedElements,r=t.allowElement,i=t.components,a=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,c=t.urlTransform||pR;for(let e of cR)Object.hasOwn(t,e.from)&&``+e.from+(e.to?"use `"+e.to+"` instead":`remove it`)+e.id;return dL(e,l),IM(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 pR(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||sR.test(e.slice(0,t))?e:``}var mR=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),hR=Object.assign(gR(Error),{eval:gR(EvalError),range:gR(RangeError),reference:gR(ReferenceError),syntax:gR(SyntaxError),type:gR(TypeError),uri:gR(URIError)});function gR(e){return t.displayName=e.displayName||e.name,t;function t(t,...n){return new e(t&&(0,mR.default)(t,...n))}}var _R={}.hasOwnProperty,vR={yaml:`-`,toml:`+`};function yR(e){let t=[],n=-1,r=Array.isArray(e)?e:e?[e]:[`yaml`];for(;++n<r.length;)t[n]=bR(r[n]);return t}function bR(e){let t=e;if(typeof t==`string`){if(!_R.call(vR,t))throw hR("Missing matter definition for `%s`",t);t={type:t,marker:vR[t]}}else if(typeof t!=`object`)throw hR("Expected matter to be an object, not `%j`",t);if(!_R.call(t,`type`))throw hR("Missing `type` in matter `%j`",t);if(!_R.call(t,`fence`)&&!_R.call(t,`marker`))throw hR("Missing `marker` or `fence` in matter `%j`",t);return t}function xR(e){let t=yR(e),n={},r=-1;for(;++r<t.length;){let e=t[r],i=CR(e,`open`).charCodeAt(0),a=SR(e),o=n[i];Array.isArray(o)?o.push(a):n[i]=[a]}return{flow:n}}function SR(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=CR(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),kN(e)?(l.enter(`whitespace`),h(e)):g(e)):e===s.charCodeAt(c++)?(l.consume(e),m):d(e)}function h(e){return kN(e)?(l.consume(e),h):(l.exit(`whitespace`),g(e))}function g(t){return DN(t)?(l.exit(r),l.enter(`lineEnding`),l.consume(t),l.exit(`lineEnding`),s=CR(e,`close`),c=0,l.attempt(o,b,_)):d(t)}function _(e){return e===null||DN(e)?y(e):(l.enter(a),v(e))}function v(e){return e===null||DN(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),kN(t)?(e.enter(`whitespace`),l(t)):u(t)):t===s.charCodeAt(a++)?(e.consume(t),c):n(t)}function l(t){return kN(t)?(e.consume(t),l):(e.exit(`whitespace`),u(t))}function u(i){return i===null||DN(i)?(e.exit(r),t(i)):n(i)}}}function CR(e,t){return e.marker?wR(e.marker,t).repeat(3):wR(e.fence,t)}function wR(e,t){return typeof e==`string`?e:e[t]}function TR(e){if(typeof e!=`string`)throw TypeError(`Expected a string`);return e.replace(/[|\\{}()[\]^$+*?.]/g,`\\$&`).replace(/-/g,`\\x2d`)}function ER(e){let t=yR(e),n={},r={},i=-1;for(;++i<t.length;){let e=t[i];n[e.type]=DR(e),r[e.type]=OR,r[e.type+`Value`]=kR}return{enter:n,exit:r}}function DR(e){return t;function t(t){this.enter({type:e.type,value:``},t),this.buffer()}}function OR(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 kR(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function AR(e){let t=[],n={},r=yR(e),i=-1;for(;++i<r.length;){let e=r[i];n[e.type]=jR(e);let a=MR(e,`open`);t.push({atBreak:!0,character:a.charAt(0),after:TR(a.charAt(1))})}return{unsafe:t,handlers:n}}function jR(e){let t=MR(e,`open`),n=MR(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 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]}var PR=`yaml`;function FR(e){let t=this,n=e||PR,r=t.data(),i=r.micromarkExtensions||=[],a=r.fromMarkdownExtensions||=[],o=r.toMarkdownExtensions||=[];i.push(xR(n)),a.push(ER(n)),o.push(AR(n))}function IR(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 LR(e,t,n){let r=eL((n||{}).ignore||[]),i=RR(t),a=-1;for(;++a<i.length;)lL(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 RR(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([zR(e[0]),BR(e[1])])}return t}function zR(e){return typeof e==`string`?new RegExp(TR(e),`g`):e}function BR(e){return typeof e==`function`?e:function(){return e}}var VR=`phrasing`,HR=[`autolink`,`link`,`image`,`label`];function UR(){return{transforms:[ZR],enter:{literalAutolink:GR,literalAutolinkEmail:KR,literalAutolinkHttp:KR,literalAutolinkWww:KR},exit:{literalAutolink:XR,literalAutolinkEmail:YR,literalAutolinkHttp:qR,literalAutolinkWww:JR}}}function WR(){return{unsafe:[{character:`@`,before:`[+\\-.\\w]`,after:`[\\-.\\w]`,inConstruct:VR,notInConstruct:HR},{character:`.`,before:`[Ww]`,after:`[\\-.\\w]`,inConstruct:VR,notInConstruct:HR},{character:`:`,before:`[ps]`,after:`\\/`,inConstruct:VR,notInConstruct:HR}]}}function GR(e){this.enter({type:`link`,title:null,url:``,children:[]},e)}function KR(e){this.config.enter.autolinkProtocol.call(this,e)}function qR(e){this.config.exit.autolinkProtocol.call(this,e)}function JR(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 YR(e){this.config.exit.autolinkEmail.call(this,e)}function XR(e){this.exit(e)}function ZR(e){LR(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,QR],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,$R]],{ignore:[`link`,`linkReference`]})}function QR(e,t,n,r,i){let a=``;if(!nz(i)||(/^w/i.test(t)&&(n=t+n,t=``,a=`http://`),!ez(n)))return!1;let o=tz(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 $R(e,t,n,r){return!nz(r,!0)||/[-\d_]$/.test(n)?!1:{type:`link`,title:null,url:`mailto:`+t+`@`+n,children:[{type:`text`,value:t+`@`+n}]}}function ez(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 tz(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=IR(e,`(`),a=IR(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 nz(e,t){let n=e.input.charCodeAt(e.index-1);return(e.index===0||jN(n)||AN(n))&&(!t||n!==47)}fz.peek=dz;function rz(){this.buffer()}function iz(e){this.enter({type:`footnoteReference`,identifier:``,label:``},e)}function az(){this.buffer()}function oz(e){this.enter({type:`footnoteDefinition`,identifier:``,label:``,children:[]},e)}function sz(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=yN(this.sliceSerialize(e)).toLowerCase(),n.label=t}function cz(e){this.exit(e)}function lz(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=yN(this.sliceSerialize(e)).toLowerCase(),n.label=t}function uz(e){this.exit(e)}function dz(){return`[`}function fz(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 pz(){return{enter:{gfmFootnoteCallString:rz,gfmFootnoteCall:iz,gfmFootnoteDefinitionLabelString:az,gfmFootnoteDefinition:oz},exit:{gfmFootnoteCallString:sz,gfmFootnoteCall:cz,gfmFootnoteDefinitionLabelString:lz,gfmFootnoteDefinition:uz}}}function mz(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:fz},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?gz:hz))),s(),o}}function hz(e,t,n){return t===0?e:gz(e,t,n)}function gz(e,t,n){return(n?``:` `)+e}var _z=[`autolink`,`destinationLiteral`,`destinationRaw`,`reference`,`titleQuote`,`titleApostrophe`];Sz.peek=Cz;function vz(){return{canContainEols:[`delete`],enter:{strikethrough:bz},exit:{strikethrough:xz}}}function yz(){return{unsafe:[{character:`~`,inConstruct:`phrasing`,notInConstruct:_z}],handlers:{delete:Sz}}}function bz(e){this.enter({type:`delete`,children:[]},e)}function xz(e){this.exit(e)}function Sz(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 Cz(){return`~`}function wz(e){return e.length}function Tz(e,t){let n=t||{},r=(n.align||[]).concat(),i=n.stringLength||wz,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=Ez(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]=Dz(r[d]);else{let e=Dz(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 Ez(e){return e==null?``:String(e)}function Dz(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 Oz(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()),kz);return i(),o}function kz(e,t,n){return`>`+(n?``:` `)+e}function Az(e,t){return jz(e,t.inConstruct,!0)&&!jz(e,t.notInConstruct,!1)}function jz(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 Mz(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
|
|
276
|
+
`&&Az(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?``:` `;return`\\
|
|
277
|
+
`}function Nz(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 Pz(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 Fz(e){let t=e.options.fence||"`";if(t!=="`"&&t!==`~`)throw Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function Iz(e,t,n,r){let i=Fz(n),a=e.value||``,o=i==="`"?`GraveAccent`:`Tilde`;if(Pz(e,n)){let e=n.enter(`codeIndented`),t=n.indentLines(a,Lz);return e(),t}let s=n.createTracker(r),c=i.repeat(Math.max(Nz(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 Lz(e,t,n){return(n?``:` `)+e}function Rz(e){let t=e.options.quote||`"`;if(t!==`"`&&t!==`'`)throw Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function zz(e,t,n,r){let i=Rz(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 Bz(e){let t=e.options.emphasis||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function Vz(e){return`&#x`+e.toString(16).toUpperCase()+`;`}function Hz(e,t,n){let r=VN(e),i=VN(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}}Uz.peek=Wz;function Uz(e,t,n,r){let i=Bz(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=Hz(r.before.charCodeAt(r.before.length-1),l,i);u.inside&&(c=Vz(l)+c.slice(1));let d=c.charCodeAt(c.length-1),f=Hz(r.after.charCodeAt(0),d,i);f.inside&&(c=c.slice(0,-1)+Vz(d));let p=o.move(i);return a(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},s+c+p}function Wz(e,t,n){return n.options.emphasis||`*`}function Gz(e,t){let n=!1;return dL(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)&&oN(e)&&(t.options.setext||n))}function Kz(e,t,n,r){let i=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(Gz(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=Vz(l.charCodeAt(0))+l.slice(1)),l=l?o+` `+l:o,n.options.closeAtx&&(l+=` `+o),c(),s(),l}qz.peek=Jz;function qz(e){return e.value||``}function Jz(){return`<`}Yz.peek=Xz;function Yz(e,t,n,r){let i=Rz(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 Xz(){return`!`}Zz.peek=Qz;function Zz(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 Qz(){return`!`}$z.peek=eB;function $z(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 eB(){return"`"}function tB(e,t){let n=oN(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))}nB.peek=rB;function nB(e,t,n,r){let i=Rz(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.createTracker(r),s,c;if(tB(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 rB(e,t,n){return tB(e,n)?`<`:`[`}iB.peek=aB;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 aB(){return`[`}function oB(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 sB(e){let t=oB(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 cB(e){let t=e.options.bulletOrdered||`.`;if(t!==`.`&&t!==`)`)throw Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function lB(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 uB(e,t,n,r){let i=n.enter(`list`),a=n.bulletCurrent,o=e.ordered?cB(n):oB(n),s=e.ordered?o===`.`?`)`:`.`:sB(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),lB(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 dB(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 fB(e,t,n,r){let i=dB(n),a=n.bulletCurrent||oB(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 pB(e,t,n,r){let i=n.enter(`paragraph`),a=n.enter(`phrasing`),o=n.containerPhrasing(e,r);return a(),i(),o}var mB=eL([`break`,`delete`,`emphasis`,`footnote`,`footnoteReference`,`image`,`imageReference`,`inlineCode`,`inlineMath`,`link`,`linkReference`,`mdxJsxTextElement`,`mdxTextExpression`,`strong`,`text`,`textDirective`]);function hB(e,t,n,r){return(e.children.some(function(e){return mB(e)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function gB(e){let t=e.options.strong||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}_B.peek=vB;function _B(e,t,n,r){let i=gB(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=Hz(r.before.charCodeAt(r.before.length-1),l,i);u.inside&&(c=Vz(l)+c.slice(1));let d=c.charCodeAt(c.length-1),f=Hz(r.after.charCodeAt(0),d,i);f.inside&&(c=c.slice(0,-1)+Vz(d));let p=o.move(i+i);return a(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},s+c+p}function vB(e,t,n){return n.options.strong||`*`}function yB(e,t,n,r){return n.safe(e.value,r)}function bB(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 xB(e,t,n){let r=(lB(n)+(n.options.ruleSpaces?` `:``)).repeat(bB(n));return n.options.ruleSpaces?r.slice(0,-1):r}var SB={blockquote:Oz,break:Mz,code:Iz,definition:zz,emphasis:Uz,hardBreak:Mz,heading:Kz,html:qz,image:Yz,imageReference:Zz,inlineCode:$z,link:nB,linkReference:iB,list:uB,listItem:fB,paragraph:pB,root:hB,strong:_B,text:yB,thematicBreak:xB};function CB(){return{enter:{table:wB,tableData:OB,tableHeader:OB,tableRow:EB},exit:{codeText:kB,table:TB,tableData:DB,tableHeader:DB,tableRow:DB}}}function wB(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 TB(e){this.exit(e),this.data.inTable=void 0}function EB(e){this.enter({type:`tableRow`,children:[]},e)}function DB(e){this.exit(e)}function OB(e){this.enter({type:`tableCell`,children:[]},e)}function kB(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,AB));let n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function AB(e,t){return t===`|`?t:e}function jB(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 XR(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=qz.inlineCode(e,t,n);return n.stack.includes(`tableCell`)&&(r=r.replace(/\|/g,`\\$&`)),r}}function rB(){return{exit:{taskListCheckValueChecked:aB,taskListCheckValueUnchecked:aB,paragraph:oB}}}function iB(){return{unsafe:[{atBreak:!0,character:`-`,after:`[:|-]`}],handlers:{listItem:sB}}}function aB(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type===`taskListCheckValueChecked`}function oB(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 sB(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=qz.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 cB(){return[mR(),RR(),UR(),Jz(),rB()]}function lB(e){return{extensions:[hR(),zR(e),WR(),nB(e),iB()]}}var uB={tokenize:wB,partial:!0},dB={tokenize:TB,partial:!0},fB={tokenize:EB,partial:!0},pB={tokenize:DB,partial:!0},mB={tokenize:OB,partial:!0},hB={name:`wwwAutolink`,tokenize:SB,previous:kB},gB={name:`protocolAutolink`,tokenize:CB,previous:AB},_B={name:`emailAutolink`,tokenize:xB,previous:jB},vB={};function yB(){return{text:vB}}for(var bB=48;bB<123;)vB[bB]=_B,bB++,bB===58?bB=65:bB===91&&(bB=97);vB[43]=_B,vB[45]=_B,vB[46]=_B,vB[95]=_B,vB[72]=[_B,gB],vB[104]=[_B,gB],vB[87]=[_B,hB],vB[119]=[_B,hB];function xB(e,t,n){let r=this,i,a;return o;function o(t){return!MB(t)||!jB.call(r,r.previous)||NB(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkEmail`),s(t))}function s(t){return MB(t)?(e.consume(t),s):t===64?(e.consume(t),c):n(t)}function c(t){return t===46?e.check(mB,u,l)(t):t===45||t===95||KM(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&&GM(r.previous)?(e.exit(`literalAutolinkEmail`),e.exit(`literalAutolink`),t(o)):n(o)}}function SB(e,t,n){let r=this;return i;function i(t){return t!==87&&t!==119||!kB.call(r,r.previous)||NB(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkWww`),e.check(uB,e.attempt(dB,e.attempt(fB,a),n),n)(t))}function a(n){return e.exit(`literalAutolinkWww`),e.exit(`literalAutolink`),t(n)}}function CB(e,t,n){let r=this,i=``,a=!1;return o;function o(t){return(t===72||t===104)&&AB.call(r,r.previous)&&!NB(r.events)?(e.enter(`literalAutolink`),e.enter(`literalAutolinkHttp`),i+=String.fromCodePoint(t),e.consume(t),s):n(t)}function s(t){if(GM(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||JM(t)||$M(t)||nN(t)||tN(t)?n(t):e.attempt(dB,e.attempt(fB,u),n)(t)}function u(n){return e.exit(`literalAutolinkHttp`),e.exit(`literalAutolink`),t(n)}}function wB(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 TB(e,t,n){let r,i,a;return o;function o(t){return t===46||t===95?e.check(pB,c,s)(t):t===null||$M(t)||nN(t)||t!==45&&tN(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 EB(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(pB,t,a)(o):o===null||$M(o)||nN(o)?t(o):(e.consume(o),i)}function a(t){return t===41&&r++,e.consume(t),i}}function DB(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||$M(o)||nN(o)?t(o):n(o)}function i(e){return e===null||e===40||e===91||$M(e)||nN(e)?t(e):r(e)}function a(e){return GM(e)?o(e):n(e)}function o(t){return t===59?(e.consume(t),r):GM(t)?(e.consume(t),o):n(t)}}function OB(e,t,n){return r;function r(t){return e.consume(t),i}function i(e){return KM(e)?n(e):t(e)}}function kB(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||$M(e)}function AB(e){return!GM(e)}function jB(e){return!(e===47||MB(e))}function MB(e){return e===43||e===45||e===46||e===95||KM(e)}function NB(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 PB={tokenize:HB,partial:!0};function FB(){return{document:{91:{name:`gfmFootnoteDefinition`,tokenize:zB,continuation:{tokenize:BB},exit:VB}},text:{91:{name:`gfmFootnoteCall`,tokenize:RB},93:{name:`gfmPotentialFootnoteCall`,add:`after`,tokenize:IB,resolveTo:LB}}}}function IB(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=WM(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 LB(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 RB(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||$M(s))return n(s);if(s===93){e.exit(`chunkString`);let a=e.exit(`gfmFootnoteCallString`);return i.includes(WM(r.sliceSerialize(a)))?(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(s),e.exit(`gfmFootnoteCallLabelMarker`),e.exit(`gfmFootnoteCall`),t):n(s)}return $M(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 zB(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||$M(t))return n(t);if(t===93){e.exit(`chunkString`);let n=e.exit(`gfmFootnoteDefinitionLabelString`);return a=WM(r.sliceSerialize(n)),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),e.exit(`gfmFootnoteDefinitionLabel`),f}return $M(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),aN(e,p,`gfmFootnoteDefinitionWhitespace`)):n(t)}function p(e){return t(e)}}function BB(e,t,n){return e.check(bN,t,e.attempt(PB,t,n))}function VB(e){e.exit(`gfmFootnoteDefinition`)}function HB(e,t,n){let r=this;return aN(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 UB(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&&LM(o,o.length,0,pN(s,e.slice(r+1,n),t)),LM(o,o.length,0,[[`exit`,a,t],[`enter`,e[n][1],t],[`exit`,e[n][1],t],[`exit`,i,t]]),LM(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=fN(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=fN(a);return l._open=!u||u===2&&!!s,l._close=!s||s===2&&!!u,n(a)}}}var WB=class{constructor(){this.map=[]}add(e,t,n){GB(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 GB(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 KB(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 qB(){return{flow:{null:{name:`table`,tokenize:JB,resolveAll:YB}}}}function JB(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):QM(t)?a>1?(a=0,r.interrupt=!0,e.exit(`tableRow`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),p):n(t):eN(t)?aN(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||$M(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,eN(t)?aN(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 eN(t)?aN(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||QM(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 eN(t)?aN(e,b,`whitespace`)(t):b(t)}function b(n){return n===124?m(n):n===null||QM(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||QM(n)?(e.exit(`tableRow`),t(n)):eN(n)?aN(e,C,`whitespace`)(n):(e.enter(`data`),w(n))}function w(t){return t===null||t===124||$M(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 YB(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 WB;for(;++n<e.length;){let p=e[n],m=p[1];p[0]===`enter`?m.type===`tableHead`?(s=!1,c!==0&&(ZB(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=XB(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=XB(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=XB(f,t,o,i,n,d)):(o[0]=o[1],d=XB(f,t,a,i,n,d)),i=0):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)&&(o[3]=n)}for(c!==0&&ZB(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=KB(t.events,n))}return e}function XB(e,t,n,r,i,a){let o=r===1?`tableHeader`:r===2?`tableDelimiter`:`tableData`;n[0]!==0&&(a.end=Object.assign({},QB(t.events,n[0])),e.add(n[0],0,[[`exit`,a,t]]));let s=QB(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=QB(t.events,n[2]),a=QB(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({},QB(t.events,i)),e.add(i,0,[[`exit`,a,t]]),a=void 0),a}function ZB(e,t,n,r,i){let a=[],o=QB(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 QB(e,t){let n=e[t],r=n[0]===`enter`?`start`:`end`;return n[1][r]}var $B={name:`tasklistCheck`,tokenize:tV};function eV(){return{text:{91:$B}}}function tV(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 $M(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 QM(r)?t(r):eN(r)?e.check({tokenize:nV},t,n)(r):n(r)}}function nV(e,t,n){return aN(e,r,`whitespace`);function r(e){return e===null?n(e):t(e)}}function rV(e){return BM([yB(),FB(),UB(e),qB(),eV()])}var iV={};function aV(e){let t=this,n=e||iV,r=t.data(),i=r.micromarkExtensions||=[],a=r.fromMarkdownExtensions||=[],o=r.toMarkdownExtensions||=[];i.push(rV(n)),a.push(cB()),o.push(lB(n))}var oV=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:Z.markdownCommentBlock,"data-review-anchor":`line:${e}`,"data-review-line":e,children:[(0,Q.jsx)(`div`,{className:Z.markdownCommentContent,children:r}),n.length===0?(0,Q.jsx)(`button`,{className:Z.commentTrigger,type:`button`,"aria-label":`添加行评论`,onClick:()=>f(!0),children:(0,Q.jsx)(wA,{})}):null,d?(0,Q.jsx)(NA,{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:Z.inlineThreadStack,children:(0,Q.jsx)(zA,{threads:n,onFocus:a,onPatch:o,onDeleteThread:s,onReply:c,onPatchComment:l,onCopy:u})}):null]})}),sV=`modulepreload`,cV=function(e){return`/`+e},lV={},uV=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=cV(t,n),t in lV)return;lV[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`:sV,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 dV({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 uV(async()=>{let{default:e}=await import(`./mermaid.core-BcjNq9LF.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:Z.mermaidFallback,children:[(0,Q.jsxs)(`div`,{className:Z.mermaidError,children:[`Mermaid 渲染失败:`,a]}),(0,Q.jsx)(`pre`,{children:(0,Q.jsx)(`code`,{children:e})})]}):r?(0,Q.jsx)(`div`,{className:Z.mermaidDiagram,dangerouslySetInnerHTML:{__html:r}}):(0,Q.jsx)(`div`,{className:Z.mermaidLoading,children:`正在渲染图表...`})}var fV=[oR,aV];function pV(e){return e.anchor.type===`file`?0:e.anchor.type===`markdown-line`?e.anchor.lineNumber:2**53-1}function mV(e,t){return t.filter(t=>t.filePath===e&&t.status!==`resolved`).sort((e,t)=>pV(e)-pV(t)||e.createdAt.localeCompare(t.createdAt))[0]}function hV(e){e.scrollTop=0}function gV(e,t){let n=e.getBoundingClientRect(),r=t.getBoundingClientRect();e.scrollTop+=r.top-n.top}function _V(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 vV(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 yV(e){return/^(https?:|mailto:|#|\.{0,2}\/|\/)/i.test(e.trim())}function bV(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 xV(e,t){if(!t||/^https?:|^mailto:|^#/i.test(t)||t.startsWith(`/`))return t;let n=t.split(`#`)[0]?.split(`?`)[0]??t,r=bV(e);r.pop();let i=bV(n),a=[...r,...i].join(`/`);return a?`/api/markdown-asset?path=${encodeURIComponent(a)}`:t}function SV(e){return typeof e==`string`||typeof e==`number`?String(e):Array.isArray(e)?e.map(SV).join(``):v.isValidElement(e)?SV(e.props.children):``}function CV(e){return Array.isArray(e)?e.filter(e=>typeof e==`string`).join(` `):typeof e==`string`?e:``}function wV(e){return v.isValidElement(e)&&!!(e.props.className||e.props.children)}function TV(e){let t=e?.position?.start?.line;return typeof t==`number`?t:void 0}function EV(e){let t=e?.children?.find(e=>e.tagName===`code`);return CV(t?.properties?.className)}function DV(e){return e?e.type===`text`?e.value??``:e.children?.map(DV).join(``)??``:``}function OV(e){let t=e?.children?.find(e=>e.tagName===`code`);return DV(t)}function kV({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=mV(e.path,t);window.requestAnimationFrame(()=>{if(!r||r.anchor.type===`file`||r.anchor.type!==`markdown-line`){hV(n);return}let e=vV(u,r.anchor.lineNumber),t=n.querySelector(`[data-review-line="${e}"]`)??_V(n,e);if(!t){hV(n);return}gV(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`){hV(t);return}if(n.anchor.type!==`markdown-line`)return;let r=vV(u,n.anchor.lineNumber),i=t.querySelector(`[data-review-line="${r}"]`)??_V(t,r);i?gV(t,i):hV(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)(oV,{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(TV(t),(0,Q.jsx)(`h1`,{...n,children:e}))},h2({children:e,node:t,...n}){return h(TV(t),(0,Q.jsx)(`h2`,{...n,children:e}))},h3({children:e,node:t,...n}){return h(TV(t),(0,Q.jsx)(`h3`,{...n,children:e}))},h4({children:e,node:t,...n}){return h(TV(t),(0,Q.jsx)(`h4`,{...n,children:e}))},h5({children:e,node:t,...n}){return h(TV(t),(0,Q.jsx)(`h5`,{...n,children:e}))},h6({children:e,node:t,...n}){return h(TV(t),(0,Q.jsx)(`h6`,{...n,children:e}))},p({children:e,node:t,...n}){return h(TV(t),(0,Q.jsx)(`p`,{...n,children:e}))},blockquote({children:e,node:t,...n}){return h(TV(t),(0,Q.jsx)(`blockquote`,{...n,children:e}))},pre({children:e,node:t,...n}){let r=v.Children.toArray(e).find(wV),i=SV(r??e)||OV(t),a=r?.props.className??EV(t),o=/language-(\S+)/.exec(a)?.[1],s=i.replace(/\n$/,``),c=TV(t);return o===`mermaid`&&s.trim()?h(c,(0,Q.jsx)(dV,{chart:s})):h(c,(0,Q.jsx)(`pre`,{className:Z.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:Z.markdownInlineCode,...r,children:t})},table({children:e,node:t,...n}){return h(TV(t),(0,Q.jsx)(`div`,{className:Z.markdownTableScroll,children:(0,Q.jsx)(`table`,{...n,children:e})}))},a({href:e,children:t,node:n,...r}){let i=e??``;if(!i||!yV(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||!yV(a)?null:(0,Q.jsx)(`img`,{src:xV(e.path,a),alt:n??``,loading:`lazy`,...i})}}),[e.path,h]);return u?(0,Q.jsxs)(`div`,{className:Z.markdownShell,ref:f,children:[u.deleted?(0,Q.jsx)(Yc,{className:Z.deletedBanner,message:`该文件已删除,仅展示删除前预览`,type:`warning`,showIcon:!0}):null,(0,Q.jsx)(`article`,{className:Z.markdownArticle,children:(0,Q.jsx)(`div`,{className:Z.markdownBody,children:(0,Q.jsx)(PL,{remarkPlugins:fV,urlTransform:e=>yV(e)?e:``,components:g,children:u.content})})})]}):(0,Q.jsx)(`div`,{className:Z.markdownLoading,children:(0,Q.jsx)(NO,{})})}function AV(e){return e.mode.kind===`revision`?`范围:${e.mode.base}..${e.mode.target}`:e.mode.kind===`staged`?`范围:暂存区`:e.mode.kind===`working`?`范围:工作区`:`范围:未知`}function jV(e){return e.anchor.type===`file`?e.filePath:`${e.filePath}:${e.anchor.lineNumber}`}function MV(e){return e===`added`?`A`:e===`modified`?`M`:e===`deleted`?`D`:e===`renamed`?`R`:e}var NV={submit:0,replied:1,resolved:2};function PV({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=IA(e.thread);return u===`resolved`?t===`resolved`:u===`pending`?t!==`resolved`:!0}).sort((e,t)=>{let n=IA(e.thread),r=IA(t.thread);return NV[n]-NV[r]}),[u,b]),S=v.useMemo(()=>({resolved:y.filter(e=>IA(e)===`resolved`),submit:y.filter(e=>IA(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`?`清空`:`删除`;GO.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:Z.threadScopeBar,children:[(0,Q.jsx)(xA.Text,{className:Z.threadScopeLabel,children:`查看范围`}),(0,Q.jsxs)(`div`,{className:n?Z.threadScopeSwitchRow:`${Z.threadScopeSwitchRow} ${Z.threadScopeSwitchRowDisabled}`,children:[(0,Q.jsxs)(`button`,{type:`button`,className:f===`current-file`?`${Z.threadScopeOption} ${Z.threadScopeOptionActive}`:Z.threadScopeOption,onClick:()=>p(`current-file`),disabled:!n,children:[`当前文件 (`,_,`)`]}),(0,Q.jsx)(sk,{className:Z.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`?`${Z.threadScopeOption} ${Z.threadScopeOptionActive}`:Z.threadScopeOption,onClick:()=>p(`all-diff`),disabled:!n,children:[`全部评论 (`,e.length,`)`]})]})]}),(0,Q.jsxs)(`div`,{className:Z.threadListToolbar,children:[(0,Q.jsx)(`div`,{className:Z.threadFilterWrap,children:(0,Q.jsx)(iE,{value:u,onChange:e=>d(e),options:[{label:`全部 (${b.length})`,value:`all`},{label:`未解决 (${b.filter(e=>IA(e.thread)!==`resolved`).length})`,value:`pending`},{label:`已解决 (${b.filter(e=>IA(e.thread)===`resolved`).length})`,value:`resolved`}],size:`small`})}),(0,Q.jsx)(jE,{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)(HC,{size:`small`,className:Z.threadBatchButton,children:[`批量操作 `,(0,Q.jsx)(Tb,{})]})})]}),x.length===0?(0,Q.jsx)(rb,{className:Z.threadEmpty,description:`暂无评论,悬停到行右侧或添加文件级评论即可开始。`}):(0,Q.jsx)(`div`,{className:Z.threads,children:x.map(e=>{let n=e.thread,r=IA(n);n.id;let u=!t.some(e=>FA(n,e));return(0,Q.jsxs)(IT,{className:[Z.thread,IV(r),m===n.id?Z.threadLocateFlash:``].filter(Boolean).join(` `),ref:t=>{g.current[e.key]=t},children:[(0,Q.jsx)(`button`,{type:`button`,className:Z.threadTopButton,onClick:()=>i(n.id),children:(0,Q.jsxs)(kE,{className:Z.threadTop,align:`start`,size:8,children:[(0,Q.jsx)(xA.Text,{className:Z.threadAnchor,strong:!0,children:jV(n)}),(0,Q.jsxs)(GE,{gap:`small`,children:[r===`replied`?null:(0,Q.jsx)(bk,{className:`${Z.threadTag} ${FV(r)}`,children:PA[r]}),u?(0,Q.jsx)(bk,{className:Z.threadTag,children:`历史快照`}):null]})]})}),(0,Q.jsx)(`div`,{className:Z.threadListInlineBorderless,children:(0,Q.jsx)(zA,{threads:[n],showStatusTag:!1,onFocus:i,onPatch:a,onDeleteThread:o,onReply:s,onPatchComment:c,onCopy:l})})]},e.key)})})]})}function FV(e){return e===`submit`?Z.threadTagSubmit:e===`replied`?Z.threadTagReplied:Z.threadTagResolved}function IV(e){return e===`submit`?Z.submit:e===`replied`?Z.replied:Z.resolved}var LV=36,RV=18;function zV(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 BV(e){return e?e.repoName||e.repoRoot.split(/[\\/]/).filter(Boolean).at(-1)||e.repoRoot:`正在加载仓库`}function VV(e,t){return e===t?!0:e.length===t.length?JSON.stringify(e)===JSON.stringify(t):!1}function HV(){let{message:e}=J_.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=r.find(e=>e.path===s)??r[0],g=v.useMemo(()=>a.filter(e=>r.some(t=>FA(e,t))),[r,a]),_=v.useMemo(()=>h?g.filter(e=>FA(e,h)):[],[g,h]),y=g.filter(e=>e.status!==`resolved`).length;v.useEffect(()=>{b()},[]),v.useEffect(()=>{let e=()=>{document.visibilityState===`visible`&&x()},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 b(){await x(!0)}async function x(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=>VV(e,r.threads)?e:r.threads),d&&!r.threads.some(e=>e.id===d)&&f(null)}async function S(e,t){await fetch(`/api/threads`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({filePath:e.filePath,anchor:e,body:t})}),await x()}async function C(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 x()}async function w(e){await fetch(`/api/threads/${e}`,{method:`DELETE`}),await x()}async function T(e,t){await fetch(`/api/threads/${e}/comments`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({body:t,author:`user`})}),await x()}async function E(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 x()}async function D(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 O(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)}return v.useEffect(()=>{f(null)},[s]),(0,Q.jsxs)(FD,{className:Z.shell,children:[(0,Q.jsxs)(`aside`,{className:Z.sidebar,children:[(0,Q.jsxs)(`div`,{className:Z.brand,children:[(0,Q.jsx)(`div`,{className:Z.brandMark,children:`DR`}),(0,Q.jsxs)(`div`,{className:Z.brandCopy,children:[(0,Q.jsx)(xA.Text,{className:Z.repoName,title:t?.repoRoot,children:BV(t)}),(0,Q.jsx)(xA.Text,{className:Z.productName,children:`Diff 审查台`}),(0,Q.jsx)(xA.Text,{type:`secondary`,children:t?AV(t):`正在加载会话`})]})]}),(0,Q.jsx)(IT,{className:Z.sideCard,bordered:!1,children:(0,Q.jsxs)(kE,{size:8,wrap:!0,children:[(0,Q.jsx)(bk,{color:`blue`,children:t?.mode.kind===`revision`?`混合模式`:`本地模式`}),(0,Q.jsxs)(bk,{color:`gold`,children:[r.length,` files`]})]})}),(0,Q.jsx)(`div`,{className:Z.fileRailHeader,children:(0,Q.jsx)(xA.Text,{strong:!0,children:`文件列表`})}),(0,Q.jsx)(VO,{className:Z.fileList,dataSource:r,renderItem:e=>{let t=e.path===h?.path,n=g.filter(t=>FA(t,e)&&t.status!==`resolved`);return(0,Q.jsxs)(VO.Item,{className:t?`${Z.fileItem} ${Z.fileItemActive}`:Z.fileItem,onClick:()=>c(e.path),children:[(0,Q.jsxs)(`div`,{className:Z.fileMeta,children:[(0,Q.jsx)(bk,{color:e.status===`deleted`?`error`:e.status===`added`?`green`:`processing`,children:MV(e.status)}),(0,Q.jsx)(xA.Text,{strong:!0,className:Z.fileName,title:e.path,children:zV(e.path,LV,RV)})]}),(0,Q.jsxs)(xA.Text,{className:Z.fileStats,type:`secondary`,children:[(0,Q.jsxs)(`span`,{className:Z.fileStatAdd,children:[`+`,e.additions]}),` / `,(0,Q.jsxs)(`span`,{className:Z.fileStatDelete,children:[`-`,e.deletions]})]}),n.length>0?(0,Q.jsx)(bk,{className:Z.fileThreadCount,icon:(0,Q.jsx)(wA,{}),children:n.length}):null]})}})]}),(0,Q.jsx)(`section`,{className:Z.reviewPane,children:h?(0,Q.jsxs)(Q.Fragment,{children:[h.isMarkdown?null:(0,Q.jsx)(`div`,{className:Z.topToolbar,children:(0,Q.jsx)(iE,{className:Z.viewModeSwitcher,options:[{label:`Side by side`,value:`split`,icon:(0,Q.jsx)(DA,{})},{label:`Inline`,value:`inline`,icon:(0,Q.jsx)(iD,{})}],value:l,onChange:e=>u(e)})}),(0,Q.jsxs)(`div`,{className:Z.reviewSurface,children:[(0,Q.jsx)(ZA,{file:h,threads:_,onCreate:S,onCopy:D,onLocateThread:O,onPatchThread:C,onDeleteThread:w,onReplyThread:T,onPatchComment:E,onCopyThread:D}),h.isMarkdown?(0,Q.jsx)(kV,{file:h,threads:_,locateTarget:p,onCreate:S,onLocateThread:O,onPatchThread:C,onDeleteThread:w,onReplyThread:T,onPatchComment:E,onCopyThread:D},t?.id):(0,Q.jsx)(XA,{file:h,threads:_,locateTarget:p,onCreate:S,onLocateThread:O,onPatchThread:C,onDeleteThread:w,onReplyThread:T,onPatchComment:E,onCopyThread:D,viewMode:l},t?.id)]})]}):(0,Q.jsx)(IT,{className:Z.emptyStateCard,bordered:!1,children:(0,Q.jsx)(xA.Text,{type:`secondary`,children:`未发现变更,当前工作区很安静。`})})}),(0,Q.jsxs)(`aside`,{className:Z.threadRail,children:[(0,Q.jsxs)(`div`,{className:Z.threadRailHeader,children:[(0,Q.jsxs)(xA.Title,{className:Z.threadRailTitle,level:4,children:[`评论 (`,y,`)`]}),(0,Q.jsx)(HC,{disabled:y===0,icon:(0,Q.jsx)(Yk,{}),type:`primary`,onClick:()=>void D({type:`all-unresolved`}),children:`批量提交给 Agent`})]}),(0,Q.jsx)(`div`,{className:Z.threadRailBody,children:(0,Q.jsx)(PV,{threads:a,currentFiles:r,currentFilePath:h?.path??``,focusedThreadId:d,onLocateThread:O,onPatch:C,onDeleteThread:w,onReply:T,onPatchComment:E,onCopy:D})})]})]})}(0,dd.createRoot)(document.getElementById(`root`)).render((0,Q.jsx)(v.StrictMode,{children:(0,Q.jsx)(Mu,{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)(J_,{children:(0,Q.jsx)(HV,{})})})}));export{tr as a,mn as c,dn as d,o as f,cr as i,ln as l,lr as n,on as o,l as p,sr as r,pn as s,uV as t,hn 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 Tz(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=SB.inlineCode(e,t,n);return n.stack.includes(`tableCell`)&&(r=r.replace(/\|/g,`\\$&`)),r}}function MB(){return{exit:{taskListCheckValueChecked:PB,taskListCheckValueUnchecked:PB,paragraph:FB}}}function NB(){return{unsafe:[{atBreak:!0,character:`-`,after:`[:|-]`}],handlers:{listItem:IB}}}function PB(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type===`taskListCheckValueChecked`}function FB(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 IB(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=SB.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 LB(){return[UR(),pz(),vz(),CB(),MB()]}function RB(e){return{extensions:[WR(),mz(e),yz(),jB(e),NB()]}}var zB={tokenize:$B,partial:!0},BB={tokenize:eV,partial:!0},VB={tokenize:tV,partial:!0},HB={tokenize:nV,partial:!0},UB={tokenize:rV,partial:!0},WB={name:`wwwAutolink`,tokenize:ZB,previous:iV},GB={name:`protocolAutolink`,tokenize:QB,previous:aV},KB={name:`emailAutolink`,tokenize:XB,previous:oV},qB={};function JB(){return{text:qB}}for(var YB=48;YB<123;)qB[YB]=KB,YB++,YB===58?YB=65:YB===91&&(YB=97);qB[43]=KB,qB[45]=KB,qB[46]=KB,qB[95]=KB,qB[72]=[KB,GB],qB[104]=[KB,GB],qB[87]=[KB,WB],qB[119]=[KB,WB];function XB(e,t,n){let r=this,i,a;return o;function o(t){return!sV(t)||!oV.call(r,r.previous)||cV(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkEmail`),s(t))}function s(t){return sV(t)?(e.consume(t),s):t===64?(e.consume(t),c):n(t)}function c(t){return t===46?e.check(UB,u,l)(t):t===45||t===95||xN(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&&bN(r.previous)?(e.exit(`literalAutolinkEmail`),e.exit(`literalAutolink`),t(o)):n(o)}}function ZB(e,t,n){let r=this;return i;function i(t){return t!==87&&t!==119||!iV.call(r,r.previous)||cV(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkWww`),e.check(zB,e.attempt(BB,e.attempt(VB,a),n),n)(t))}function a(n){return e.exit(`literalAutolinkWww`),e.exit(`literalAutolink`),t(n)}}function QB(e,t,n){let r=this,i=``,a=!1;return o;function o(t){return(t===72||t===104)&&aV.call(r,r.previous)&&!cV(r.events)?(e.enter(`literalAutolink`),e.enter(`literalAutolinkHttp`),i+=String.fromCodePoint(t),e.consume(t),s):n(t)}function s(t){if(bN(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||CN(t)||ON(t)||jN(t)||AN(t)?n(t):e.attempt(BB,e.attempt(VB,u),n)(t)}function u(n){return e.exit(`literalAutolinkHttp`),e.exit(`literalAutolink`),t(n)}}function $B(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 eV(e,t,n){let r,i,a;return o;function o(t){return t===46||t===95?e.check(HB,c,s)(t):t===null||ON(t)||jN(t)||t!==45&&AN(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 tV(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(HB,t,a)(o):o===null||ON(o)||jN(o)?t(o):(e.consume(o),i)}function a(t){return t===41&&r++,e.consume(t),i}}function nV(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||ON(o)||jN(o)?t(o):n(o)}function i(e){return e===null||e===40||e===91||ON(e)||jN(e)?t(e):r(e)}function a(e){return bN(e)?o(e):n(e)}function o(t){return t===59?(e.consume(t),r):bN(t)?(e.consume(t),o):n(t)}}function rV(e,t,n){return r;function r(t){return e.consume(t),i}function i(e){return xN(e)?n(e):t(e)}}function iV(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||ON(e)}function aV(e){return!bN(e)}function oV(e){return!(e===47||sV(e))}function sV(e){return e===43||e===45||e===46||e===95||xN(e)}function cV(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 lV={tokenize:_V,partial:!0};function uV(){return{document:{91:{name:`gfmFootnoteDefinition`,tokenize:mV,continuation:{tokenize:hV},exit:gV}},text:{91:{name:`gfmFootnoteCall`,tokenize:pV},93:{name:`gfmPotentialFootnoteCall`,add:`after`,tokenize:dV,resolveTo:fV}}}}function dV(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=yN(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 fV(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 pV(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||ON(s))return n(s);if(s===93){e.exit(`chunkString`);let a=e.exit(`gfmFootnoteCallString`);return i.includes(yN(r.sliceSerialize(a)))?(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(s),e.exit(`gfmFootnoteCallLabelMarker`),e.exit(`gfmFootnoteCall`),t):n(s)}return ON(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 mV(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||ON(t))return n(t);if(t===93){e.exit(`chunkString`);let n=e.exit(`gfmFootnoteDefinitionLabelString`);return a=yN(r.sliceSerialize(n)),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),e.exit(`gfmFootnoteDefinitionLabel`),f}return ON(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),PN(e,p,`gfmFootnoteDefinitionWhitespace`)):n(t)}function p(e){return t(e)}}function hV(e,t,n){return e.check(YN,t,e.attempt(lV,t,n))}function gV(e){e.exit(`gfmFootnoteDefinition`)}function _V(e,t,n){let r=this;return PN(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 vV(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&&fN(o,o.length,0,HN(s,e.slice(r+1,n),t)),fN(o,o.length,0,[[`exit`,a,t],[`enter`,e[n][1],t],[`exit`,e[n][1],t],[`exit`,i,t]]),fN(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=VN(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=VN(a);return l._open=!u||u===2&&!!s,l._close=!s||s===2&&!!u,n(a)}}}var yV=class{constructor(){this.map=[]}add(e,t,n){bV(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 bV(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 xV(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 SV(){return{flow:{null:{name:`table`,tokenize:CV,resolveAll:wV}}}}function CV(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):DN(t)?a>1?(a=0,r.interrupt=!0,e.exit(`tableRow`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),p):n(t):kN(t)?PN(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||ON(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,kN(t)?PN(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 kN(t)?PN(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||DN(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 kN(t)?PN(e,b,`whitespace`)(t):b(t)}function b(n){return n===124?m(n):n===null||DN(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||DN(n)?(e.exit(`tableRow`),t(n)):kN(n)?PN(e,C,`whitespace`)(n):(e.enter(`data`),w(n))}function w(t){return t===null||t===124||ON(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 wV(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 yV;for(;++n<e.length;){let p=e[n],m=p[1];p[0]===`enter`?m.type===`tableHead`?(s=!1,c!==0&&(EV(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=TV(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=TV(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=TV(f,t,o,i,n,d)):(o[0]=o[1],d=TV(f,t,a,i,n,d)),i=0):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)&&(o[3]=n)}for(c!==0&&EV(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=xV(t.events,n))}return e}function TV(e,t,n,r,i,a){let o=r===1?`tableHeader`:r===2?`tableDelimiter`:`tableData`;n[0]!==0&&(a.end=Object.assign({},DV(t.events,n[0])),e.add(n[0],0,[[`exit`,a,t]]));let s=DV(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=DV(t.events,n[2]),a=DV(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({},DV(t.events,i)),e.add(i,0,[[`exit`,a,t]]),a=void 0),a}function EV(e,t,n,r,i){let a=[],o=DV(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 DV(e,t){let n=e[t],r=n[0]===`enter`?`start`:`end`;return n[1][r]}var OV={name:`tasklistCheck`,tokenize:AV};function kV(){return{text:{91:OV}}}function AV(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 ON(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 DN(r)?t(r):kN(r)?e.check({tokenize:jV},t,n)(r):n(r)}}function jV(e,t,n){return PN(e,r,`whitespace`);function r(e){return e===null?n(e):t(e)}}function MV(e){return hN([JB(),uV(),vV(e),SV(),kV()])}var NV={};function PV(e){let t=this,n=e||NV,r=t.data(),i=r.micromarkExtensions||=[],a=r.fromMarkdownExtensions||=[],o=r.toMarkdownExtensions||=[];i.push(MV(n)),a.push(LB()),o.push(RB(n))}var FV=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:Z.markdownCommentBlock,"data-review-anchor":`line:${e}`,"data-review-line":e,children:[(0,Q.jsx)(`div`,{className:Z.markdownCommentContent,children:r}),n.length===0?(0,Q.jsx)(`button`,{className:Z.commentTrigger,type:`button`,"aria-label":`添加行评论`,onClick:()=>f(!0),children:(0,Q.jsx)(AA,{})}):null,d?(0,Q.jsx)(lj,{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:Z.inlineThreadStack,children:(0,Q.jsx)(hj,{threads:n,onFocus:a,onPatch:o,onDeleteThread:s,onReply:c,onPatchComment:l,onCopy:u})}):null]})}),IV=`modulepreload`,LV=function(e){return`/`+e},RV={},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=LV(t,n),t in RV)return;RV[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`:IV,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 BV({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-sLgwusnq.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:Z.mermaidFallback,children:[(0,Q.jsxs)(`div`,{className:Z.mermaidError,children:[`Mermaid 渲染失败:`,a]}),(0,Q.jsx)(`pre`,{children:(0,Q.jsx)(`code`,{children:e})})]}):r?(0,Q.jsx)(`div`,{className:Z.mermaidDiagram,dangerouslySetInnerHTML:{__html:r}}):(0,Q.jsx)(`div`,{className:Z.mermaidLoading,children:`正在渲染图表...`})}var VV=[FR,PV];function HV(e){return e.anchor.type===`file`?0:e.anchor.type===`markdown-line`?e.anchor.lineNumber:2**53-1}function UV(e,t){return t.filter(t=>t.filePath===e&&t.status!==`resolved`).sort((e,t)=>HV(e)-HV(t)||e.createdAt.localeCompare(t.createdAt))[0]}function WV(e){e.scrollTop=0}function GV(e,t){let n=e.getBoundingClientRect(),r=t.getBoundingClientRect();e.scrollTop+=r.top-n.top}function KV(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 qV(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 JV(e){return/^(https?:|mailto:|#|\.{0,2}\/|\/)/i.test(e.trim())}function YV(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 XV(e,t){if(!t||/^https?:|^mailto:|^#/i.test(t)||t.startsWith(`/`))return t;let n=t.split(`#`)[0]?.split(`?`)[0]??t,r=YV(e);r.pop();let i=YV(n),a=[...r,...i].join(`/`);return a?`/api/markdown-asset?path=${encodeURIComponent(a)}`:t}function ZV(e){return typeof e==`string`||typeof e==`number`?String(e):Array.isArray(e)?e.map(ZV).join(``):v.isValidElement(e)?ZV(e.props.children):``}function QV(e){return Array.isArray(e)?e.filter(e=>typeof e==`string`).join(` `):typeof e==`string`?e:``}function $V(e){return v.isValidElement(e)&&!!(e.props.className||e.props.children)}function eH(e){let t=e?.position?.start?.line;return typeof t==`number`?t:void 0}function tH(e){let t=e?.children?.find(e=>e.tagName===`code`);return QV(t?.properties?.className)}function nH(e){return e?e.type===`text`?e.value??``:e.children?.map(nH).join(``)??``:``}function rH(e){let t=e?.children?.find(e=>e.tagName===`code`);return nH(t)}function iH({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=UV(e.path,t);window.requestAnimationFrame(()=>{if(!r||r.anchor.type===`file`||r.anchor.type!==`markdown-line`){WV(n);return}let e=qV(u,r.anchor.lineNumber),t=n.querySelector(`[data-review-line="${e}"]`)??KV(n,e);if(!t){WV(n);return}GV(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`){WV(t);return}if(n.anchor.type!==`markdown-line`)return;let r=qV(u,n.anchor.lineNumber),i=t.querySelector(`[data-review-line="${r}"]`)??KV(t,r);i?GV(t,i):WV(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)(FV,{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(eH(t),(0,Q.jsx)(`h1`,{...n,children:e}))},h2({children:e,node:t,...n}){return h(eH(t),(0,Q.jsx)(`h2`,{...n,children:e}))},h3({children:e,node:t,...n}){return h(eH(t),(0,Q.jsx)(`h3`,{...n,children:e}))},h4({children:e,node:t,...n}){return h(eH(t),(0,Q.jsx)(`h4`,{...n,children:e}))},h5({children:e,node:t,...n}){return h(eH(t),(0,Q.jsx)(`h5`,{...n,children:e}))},h6({children:e,node:t,...n}){return h(eH(t),(0,Q.jsx)(`h6`,{...n,children:e}))},p({children:e,node:t,...n}){return h(eH(t),(0,Q.jsx)(`p`,{...n,children:e}))},blockquote({children:e,node:t,...n}){return h(eH(t),(0,Q.jsx)(`blockquote`,{...n,children:e}))},pre({children:e,node:t,...n}){let r=v.Children.toArray(e).find($V),i=ZV(r??e)||rH(t),a=r?.props.className??tH(t),o=/language-(\S+)/.exec(a)?.[1],s=i.replace(/\n$/,``),c=eH(t);return o===`mermaid`&&s.trim()?h(c,(0,Q.jsx)(BV,{chart:s})):h(c,(0,Q.jsx)(`pre`,{className:Z.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:Z.markdownInlineCode,...r,children:t})},table({children:e,node:t,...n}){return h(eH(t),(0,Q.jsx)(`div`,{className:Z.markdownTableScroll,children:(0,Q.jsx)(`table`,{...n,children:e})}))},a({href:e,children:t,node:n,...r}){let i=e??``;if(!i||!JV(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||!JV(a)?null:(0,Q.jsx)(`img`,{src:XV(e.path,a),alt:n??``,loading:`lazy`,...i})}}),[e.path,h]);return u?(0,Q.jsxs)(`div`,{className:Z.markdownShell,ref:f,children:[u.deleted?(0,Q.jsx)(Yc,{className:Z.deletedBanner,message:`该文件已删除,仅展示删除前预览`,type:`warning`,showIcon:!0}):null,(0,Q.jsx)(`article`,{className:Z.markdownArticle,children:(0,Q.jsx)(`div`,{className:Z.markdownBody,children:(0,Q.jsx)(lR,{remarkPlugins:VV,urlTransform:e=>JV(e)?e:``,components:g,children:u.content})})})]}):(0,Q.jsx)(`div`,{className:Z.markdownLoading,children:(0,Q.jsx)(IO,{})})}function aH(e){return e.mode.kind===`revision`?`范围:${e.mode.base}..${e.mode.target}`:e.mode.kind===`staged`?`范围:暂存区`:e.mode.kind===`working`?`范围:工作区`:`范围:未知`}function oH(e){return e.anchor.type===`file`?e.filePath:`${e.filePath}:${e.anchor.lineNumber}`}function sH(e){return e===`added`?`A`:e===`modified`?`M`:e===`deleted`?`D`:e===`renamed`?`R`:e}var cH={submit:0,replied:1,resolved:2};function lH({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=fj(e.thread);return u===`resolved`?t===`resolved`:u===`pending`?t!==`resolved`:!0}).sort((e,t)=>{let n=fj(e.thread),r=fj(t.thread);return cH[n]-cH[r]}),[u,b]),S=v.useMemo(()=>({resolved:y.filter(e=>fj(e)===`resolved`),submit:y.filter(e=>fj(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`?`清空`:`删除`;JO.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:Z.threadScopeBar,children:[(0,Q.jsx)(wA.Text,{className:Z.threadScopeLabel,children:`查看范围`}),(0,Q.jsxs)(`div`,{className:n?Z.threadScopeSwitchRow:`${Z.threadScopeSwitchRow} ${Z.threadScopeSwitchRowDisabled}`,children:[(0,Q.jsxs)(`button`,{type:`button`,className:f===`current-file`?`${Z.threadScopeOption} ${Z.threadScopeOptionActive}`:Z.threadScopeOption,onClick:()=>p(`current-file`),disabled:!n,children:[`当前文件 (`,_,`)`]}),(0,Q.jsx)(uk,{className:Z.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`?`${Z.threadScopeOption} ${Z.threadScopeOptionActive}`:Z.threadScopeOption,onClick:()=>p(`all-diff`),disabled:!n,children:[`全部评论 (`,e.length,`)`]})]})]}),(0,Q.jsxs)(`div`,{className:Z.threadListToolbar,children:[(0,Q.jsx)(`div`,{className:Z.threadFilterWrap,children:(0,Q.jsx)(sE,{value:u,onChange:e=>d(e),options:[{label:`全部 (${b.length})`,value:`all`},{label:`未解决 (${b.filter(e=>fj(e.thread)!==`resolved`).length})`,value:`pending`},{label:`已解决 (${b.filter(e=>fj(e.thread)===`resolved`).length})`,value:`resolved`}],size:`small`})}),(0,Q.jsx)(PE,{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)(GC,{size:`small`,className:Z.threadBatchButton,children:[`批量操作 `,(0,Q.jsx)(Tb,{})]})})]}),x.length===0?(0,Q.jsx)(rb,{className:Z.threadEmpty,description:`暂无评论,悬停到行右侧或添加文件级评论即可开始。`}):(0,Q.jsx)(`div`,{className:Z.threads,children:x.map(e=>{let n=e.thread,r=fj(n);n.id;let u=!t.some(e=>dj(n,e));return(0,Q.jsxs)(zT,{className:[Z.thread,dH(r),m===n.id?Z.threadLocateFlash:``].filter(Boolean).join(` `),ref:t=>{g.current[e.key]=t},children:[(0,Q.jsx)(`button`,{type:`button`,className:Z.threadTopButton,onClick:()=>i(n.id),children:(0,Q.jsxs)(ME,{className:Z.threadTop,align:`start`,size:8,children:[(0,Q.jsx)(wA.Text,{className:Z.threadAnchor,strong:!0,children:oH(n)}),(0,Q.jsxs)(JE,{gap:`small`,children:[r===`replied`?null:(0,Q.jsx)(Ck,{className:`${Z.threadTag} ${uH(r)}`,children:uj[r]}),u?(0,Q.jsx)(Ck,{className:Z.threadTag,children:`历史快照`}):null]})]})}),(0,Q.jsx)(`div`,{className:Z.threadListInlineBorderless,children:(0,Q.jsx)(hj,{threads:[n],showStatusTag:!1,onFocus:i,onPatch:a,onDeleteThread:o,onReply:s,onPatchComment:c,onCopy:l})})]},e.key)})})]})}function uH(e){return e===`submit`?Z.threadTagSubmit:e===`replied`?Z.threadTagReplied:Z.threadTagResolved}function dH(e){return e===`submit`?Z.submit:e===`replied`?Z.replied:Z.resolved}var fH=36,pH=18;function mH(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 hH(e){return/\.(avif|bmp|gif|heic|heif|ico|jpe?g|png|svg|tiff?|webp)$/i.test(e)}function gH(e){return e?e.repoName||e.repoRoot.split(/[\\/]/).filter(Boolean).at(-1)||e.repoRoot:`正在加载仓库`}function _H(e,t){return e===t?!0:e.length===t.length?JSON.stringify(e)===JSON.stringify(t):!1}function vH(){let{message:e}=J_.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=>_H(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)(RD,{className:Z.shell,children:[(0,Q.jsxs)(`aside`,{className:Z.sidebar,children:[(0,Q.jsxs)(`div`,{className:Z.brand,children:[(0,Q.jsx)(`div`,{className:Z.brandMark,children:`DR`}),(0,Q.jsxs)(`div`,{className:Z.brandCopy,children:[(0,Q.jsx)(wA.Text,{className:Z.repoName,title:t?.repoRoot,children:gH(t)}),(0,Q.jsx)(wA.Text,{className:Z.productName,children:`Diff 审查台`}),(0,Q.jsx)(wA.Text,{type:`secondary`,children:t?aH(t):`正在加载会话`})]})]}),(0,Q.jsx)(zT,{className:Z.sideCard,bordered:!1,children:(0,Q.jsxs)(ME,{size:8,wrap:!0,children:[(0,Q.jsx)(Ck,{color:`blue`,children:t?.mode.kind===`revision`?`混合模式`:`本地模式`}),(0,Q.jsxs)(Ck,{color:`gold`,children:[r.length,` files`]})]})}),(0,Q.jsx)(`div`,{className:Z.fileRailHeader,children:(0,Q.jsx)(wA.Text,{strong:!0,children:`文件列表`})}),(0,Q.jsx)(WO,{className:Z.fileList,dataSource:r,renderItem:e=>{let t=e.path===b?.path,n=x.filter(t=>dj(t,e)&&t.status!==`resolved`);return(0,Q.jsxs)(WO.Item,{className:t?`${Z.fileItem} ${Z.fileItemActive}`:Z.fileItem,onClick:()=>c(e.path),children:[(0,Q.jsxs)(`div`,{className:Z.fileMeta,children:[(0,Q.jsx)(Ck,{color:e.status===`deleted`?`error`:e.status===`added`?`green`:`processing`,children:sH(e.status)}),(0,Q.jsx)(wA.Text,{strong:!0,className:Z.fileName,title:e.path,children:mH(e.path,fH,pH)})]}),(0,Q.jsxs)(wA.Text,{className:Z.fileStats,type:`secondary`,children:[(0,Q.jsxs)(`span`,{className:Z.fileStatAdd,children:[`+`,e.additions]}),` / `,(0,Q.jsxs)(`span`,{className:Z.fileStatDelete,children:[`-`,e.deletions]})]}),n.length>0?(0,Q.jsx)(Ck,{className:Z.fileThreadCount,icon:(0,Q.jsx)(AA,{}),children:n.length}):null]})}})]}),(0,Q.jsx)(`section`,{className:Z.reviewPane,children:b?(0,Q.jsxs)(Q.Fragment,{children:[b.isMarkdown?null:(0,Q.jsx)(`div`,{className:Z.topToolbar,children:(0,Q.jsx)(sE,{className:Z.viewModeSwitcher,options:[{label:`Side by side`,value:`split`,icon:(0,Q.jsx)(NA,{})},{label:`Inline`,value:`inline`,icon:(0,Q.jsx)(sD,{})}],value:l,onChange:e=>u(e)})}),(0,Q.jsxs)(`div`,{className:Z.reviewSurface,children:[(0,Q.jsx)(Ej,{file:b,threads:S,showToggleAllLines:!b.isMarkdown&&!hH(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)(iH,{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)(Tj,{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)(zT,{className:Z.emptyStateCard,bordered:!1,children:(0,Q.jsx)(wA.Text,{type:`secondary`,children:`未发现变更,当前工作区很安静。`})})}),(0,Q.jsxs)(`aside`,{className:Z.threadRail,children:[(0,Q.jsxs)(`div`,{className:Z.threadRailHeader,children:[(0,Q.jsxs)(wA.Title,{className:Z.threadRailTitle,level:4,children:[`评论 (`,C,`)`]}),(0,Q.jsx)(GC,{disabled:C===0,icon:(0,Q.jsx)(Qk,{}),type:`primary`,onClick:()=>void j({type:`all-unresolved`}),children:`批量提交给 Agent`})]}),(0,Q.jsx)(`div`,{className:Z.threadRailBody,children:(0,Q.jsx)(lH,{threads:a,currentFiles:r,currentFilePath:b?.path??``,focusedThreadId:d,onLocateThread:M,onPatch:D,onDeleteThread:O,onReply:k,onPatchComment:A,onCopy:j})})]})]})}(0,dd.createRoot)(document.getElementById(`root`)).render((0,Q.jsx)(v.StrictMode,{children:(0,Q.jsx)(Mu,{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)(J_,{children:(0,Q.jsx)(vH,{})})})}));export{tr as a,mn as c,dn as d,o as f,cr as i,ln as l,lr as n,on as o,l as p,sr as r,pn as s,zV as t,hn as u};
|